configure revision 1.1.1.10 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for libfontenc 1.1.9.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/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/libfontenc/-/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='libfontenc'
617 PACKAGE_TARNAME='libfontenc'
618 PACKAGE_VERSION='1.1.9'
619 PACKAGE_STRING='libfontenc 1.1.9'
620 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/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 LINT_FALSE
661 LINT_TRUE
662 LINT_FLAGS
663 LINT
664 LIBOBJS
665 FONTENC_LIBS
666 FONTENC_CFLAGS
667 Z_REQUIRES
668 ZLIB_LIBS
669 ZLIB_CFLAGS
670 ENCODINGSDIR
671 FONTROOTDIR
672 MAN_SUBSTS
673 XORG_MAN_PAGE
674 ADMIN_MAN_DIR
675 DRIVER_MAN_DIR
676 MISC_MAN_DIR
677 FILE_MAN_DIR
678 LIB_MAN_DIR
679 APP_MAN_DIR
680 ADMIN_MAN_SUFFIX
681 DRIVER_MAN_SUFFIX
682 MISC_MAN_SUFFIX
683 FILE_MAN_SUFFIX
684 LIB_MAN_SUFFIX
685 APP_MAN_SUFFIX
686 INSTALL_CMD
687 PKG_CONFIG_LIBDIR
688 PKG_CONFIG_PATH
689 PKG_CONFIG
690 CHANGELOG_CMD
691 STRICT_CFLAGS
692 CWARNFLAGS
693 BASE_CFLAGS
694 LT_SYS_LIBRARY_PATH
695 OTOOL64
696 OTOOL
697 LIPO
698 NMEDIT
699 DSYMUTIL
700 MANIFEST_TOOL
701 RANLIB
702 ac_ct_AR
703 AR
704 DLLTOOL
705 OBJDUMP
706 FILECMD
707 LN_S
708 NM
709 ac_ct_DUMPBIN
710 DUMPBIN
711 LD
712 FGREP
713 EGREP
714 GREP
715 SED
716 host_os
717 host_vendor
718 host_cpu
719 host
720 build_os
721 build_vendor
722 build_cpu
723 build
724 LIBTOOL
725 am__xargs_n
726 am__rm_f_notfound
727 AM_BACKSLASH
728 AM_DEFAULT_VERBOSITY
729 AM_DEFAULT_V
730 AM_V
731 CSCOPE
732 ETAGS
733 CTAGS
734 am__fastdepCC_FALSE
735 am__fastdepCC_TRUE
736 CCDEPMODE
737 am__nodep
738 AMDEPBACKSLASH
739 AMDEP_FALSE
740 AMDEP_TRUE
741 am__include
742 DEPDIR
743 am__untar
744 am__tar
745 AMTAR
746 am__leading_dot
747 SET_MAKE
748 AWK
749 mkdir_p
750 MKDIR_P
751 INSTALL_STRIP_PROGRAM
752 STRIP
753 install_sh
754 MAKEINFO
755 AUTOHEADER
756 AUTOMAKE
757 AUTOCONF
758 ACLOCAL
759 VERSION
760 PACKAGE
761 CYGPATH_W
762 am__isrc
763 INSTALL_DATA
764 INSTALL_SCRIPT
765 INSTALL_PROGRAM
766 OBJEXT
767 EXEEXT
768 ac_ct_CC
769 CPPFLAGS
770 LDFLAGS
771 CFLAGS
772 CC
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 runstatedir
793 localstatedir
794 sharedstatedir
795 sysconfdir
796 datadir
797 datarootdir
798 libexecdir
799 sbindir
800 bindir
801 program_transform_name
802 prefix
803 exec_prefix
804 PACKAGE_URL
805 PACKAGE_BUGREPORT
806 PACKAGE_STRING
807 PACKAGE_VERSION
808 PACKAGE_TARNAME
809 PACKAGE_NAME
810 PATH_SEPARATOR
811 SHELL
812 am__quote'
813 ac_subst_files=''
814 ac_user_opts='
815 enable_option_checking
816 enable_dependency_tracking
817 enable_silent_rules
818 enable_shared
819 enable_static
820 enable_pic
821 with_pic
822 enable_fast_install
823 enable_aix_soname
824 with_aix_soname
825 with_gnu_ld
826 with_sysroot
827 enable_libtool_lock
828 enable_selective_werror
829 enable_strict_compilation
830 with_fontrootdir
831 with_encodingsdir
832 enable_largefile
833 with_lint
834 enable_year2038
835 '
836 ac_precious_vars='build_alias
837 host_alias
838 target_alias
839 CC
840 CFLAGS
841 LDFLAGS
842 LIBS
843 CPPFLAGS
844 LT_SYS_LIBRARY_PATH
845 PKG_CONFIG
846 PKG_CONFIG_PATH
847 PKG_CONFIG_LIBDIR
848 ZLIB_CFLAGS
849 ZLIB_LIBS
850 FONTENC_CFLAGS
851 FONTENC_LIBS
852 LINT
853 LINT_FLAGS'
854
855
856 # Initialize some variables set by options.
857 ac_init_help=
858 ac_init_version=false
859 ac_unrecognized_opts=
860 ac_unrecognized_sep=
861 # The variables have the same names as the options, with
862 # dashes changed to underlines.
863 cache_file=/dev/null
864 exec_prefix=NONE
865 no_create=
866 no_recursion=
867 prefix=NONE
868 program_prefix=NONE
869 program_suffix=NONE
870 program_transform_name=s,x,x,
871 silent=
872 site=
873 srcdir=
874 verbose=
875 x_includes=NONE
876 x_libraries=NONE
877
878 # Installation directory options.
879 # These are left unexpanded so users can "make install exec_prefix=/foo"
880 # and all the variables that are supposed to be based on exec_prefix
881 # by default will actually change.
882 # Use braces instead of parens because sh, perl, etc. also accept them.
883 # (The list follows the same order as the GNU Coding Standards.)
884 bindir='${exec_prefix}/bin'
885 sbindir='${exec_prefix}/sbin'
886 libexecdir='${exec_prefix}/libexec'
887 datarootdir='${prefix}/share'
888 datadir='${datarootdir}'
889 sysconfdir='${prefix}/etc'
890 sharedstatedir='${prefix}/com'
891 localstatedir='${prefix}/var'
892 runstatedir='${localstatedir}/run'
893 includedir='${prefix}/include'
894 oldincludedir='/usr/include'
895 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
896 infodir='${datarootdir}/info'
897 htmldir='${docdir}'
898 dvidir='${docdir}'
899 pdfdir='${docdir}'
900 psdir='${docdir}'
901 libdir='${exec_prefix}/lib'
902 localedir='${datarootdir}/locale'
903 mandir='${datarootdir}/man'
904
905 ac_prev=
906 ac_dashdash=
907 for ac_option
908 do
909 # If the previous option needs an argument, assign it.
910 if test -n "$ac_prev"; then
911 eval $ac_prev=\$ac_option
912 ac_prev=
913 continue
914 fi
915
916 case $ac_option in
917 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
918 *=) ac_optarg= ;;
919 *) ac_optarg=yes ;;
920 esac
921
922 case $ac_dashdash$ac_option in
923 --)
924 ac_dashdash=yes ;;
925
926 -bindir | --bindir | --bindi | --bind | --bin | --bi)
927 ac_prev=bindir ;;
928 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
929 bindir=$ac_optarg ;;
930
931 -build | --build | --buil | --bui | --bu)
932 ac_prev=build_alias ;;
933 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
934 build_alias=$ac_optarg ;;
935
936 -cache-file | --cache-file | --cache-fil | --cache-fi \
937 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
938 ac_prev=cache_file ;;
939 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
940 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
941 cache_file=$ac_optarg ;;
942
943 --config-cache | -C)
944 cache_file=config.cache ;;
945
946 -datadir | --datadir | --datadi | --datad)
947 ac_prev=datadir ;;
948 -datadir=* | --datadir=* | --datadi=* | --datad=*)
949 datadir=$ac_optarg ;;
950
951 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
952 | --dataroo | --dataro | --datar)
953 ac_prev=datarootdir ;;
954 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
955 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
956 datarootdir=$ac_optarg ;;
957
958 -disable-* | --disable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
960 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error $? "invalid feature name: '$ac_useropt'"
963 ac_useropt_orig=$ac_useropt
964 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in
966 *"
967 "enable_$ac_useropt"
968 "*) ;;
969 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
970 ac_unrecognized_sep=', ';;
971 esac
972 eval enable_$ac_useropt=no ;;
973
974 -docdir | --docdir | --docdi | --doc | --do)
975 ac_prev=docdir ;;
976 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
977 docdir=$ac_optarg ;;
978
979 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
980 ac_prev=dvidir ;;
981 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
982 dvidir=$ac_optarg ;;
983
984 -enable-* | --enable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: '$ac_useropt'"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=\$ac_optarg ;;
999
1000 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1001 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1002 | --exec | --exe | --ex)
1003 ac_prev=exec_prefix ;;
1004 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1005 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1006 | --exec=* | --exe=* | --ex=*)
1007 exec_prefix=$ac_optarg ;;
1008
1009 -gas | --gas | --ga | --g)
1010 # Obsolete; use --with-gas.
1011 with_gas=yes ;;
1012
1013 -help | --help | --hel | --he | -h)
1014 ac_init_help=long ;;
1015 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1016 ac_init_help=recursive ;;
1017 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1018 ac_init_help=short ;;
1019
1020 -host | --host | --hos | --ho)
1021 ac_prev=host_alias ;;
1022 -host=* | --host=* | --hos=* | --ho=*)
1023 host_alias=$ac_optarg ;;
1024
1025 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1026 ac_prev=htmldir ;;
1027 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1028 | --ht=*)
1029 htmldir=$ac_optarg ;;
1030
1031 -includedir | --includedir | --includedi | --included | --include \
1032 | --includ | --inclu | --incl | --inc)
1033 ac_prev=includedir ;;
1034 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1035 | --includ=* | --inclu=* | --incl=* | --inc=*)
1036 includedir=$ac_optarg ;;
1037
1038 -infodir | --infodir | --infodi | --infod | --info | --inf)
1039 ac_prev=infodir ;;
1040 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1041 infodir=$ac_optarg ;;
1042
1043 -libdir | --libdir | --libdi | --libd)
1044 ac_prev=libdir ;;
1045 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1046 libdir=$ac_optarg ;;
1047
1048 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1049 | --libexe | --libex | --libe)
1050 ac_prev=libexecdir ;;
1051 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1052 | --libexe=* | --libex=* | --libe=*)
1053 libexecdir=$ac_optarg ;;
1054
1055 -localedir | --localedir | --localedi | --localed | --locale)
1056 ac_prev=localedir ;;
1057 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1058 localedir=$ac_optarg ;;
1059
1060 -localstatedir | --localstatedir | --localstatedi | --localstated \
1061 | --localstate | --localstat | --localsta | --localst | --locals)
1062 ac_prev=localstatedir ;;
1063 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1064 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1065 localstatedir=$ac_optarg ;;
1066
1067 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1068 ac_prev=mandir ;;
1069 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1070 mandir=$ac_optarg ;;
1071
1072 -nfp | --nfp | --nf)
1073 # Obsolete; use --without-fp.
1074 with_fp=no ;;
1075
1076 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1077 | --no-cr | --no-c | -n)
1078 no_create=yes ;;
1079
1080 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1081 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1082 no_recursion=yes ;;
1083
1084 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1085 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1086 | --oldin | --oldi | --old | --ol | --o)
1087 ac_prev=oldincludedir ;;
1088 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1089 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1090 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1091 oldincludedir=$ac_optarg ;;
1092
1093 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1094 ac_prev=prefix ;;
1095 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1096 prefix=$ac_optarg ;;
1097
1098 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1099 | --program-pre | --program-pr | --program-p)
1100 ac_prev=program_prefix ;;
1101 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1102 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1103 program_prefix=$ac_optarg ;;
1104
1105 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1106 | --program-suf | --program-su | --program-s)
1107 ac_prev=program_suffix ;;
1108 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1109 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1110 program_suffix=$ac_optarg ;;
1111
1112 -program-transform-name | --program-transform-name \
1113 | --program-transform-nam | --program-transform-na \
1114 | --program-transform-n | --program-transform- \
1115 | --program-transform | --program-transfor \
1116 | --program-transfo | --program-transf \
1117 | --program-trans | --program-tran \
1118 | --progr-tra | --program-tr | --program-t)
1119 ac_prev=program_transform_name ;;
1120 -program-transform-name=* | --program-transform-name=* \
1121 | --program-transform-nam=* | --program-transform-na=* \
1122 | --program-transform-n=* | --program-transform-=* \
1123 | --program-transform=* | --program-transfor=* \
1124 | --program-transfo=* | --program-transf=* \
1125 | --program-trans=* | --program-tran=* \
1126 | --progr-tra=* | --program-tr=* | --program-t=*)
1127 program_transform_name=$ac_optarg ;;
1128
1129 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1130 ac_prev=pdfdir ;;
1131 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1132 pdfdir=$ac_optarg ;;
1133
1134 -psdir | --psdir | --psdi | --psd | --ps)
1135 ac_prev=psdir ;;
1136 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1137 psdir=$ac_optarg ;;
1138
1139 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1140 | -silent | --silent | --silen | --sile | --sil)
1141 silent=yes ;;
1142
1143 -runstatedir | --runstatedir | --runstatedi | --runstated \
1144 | --runstate | --runstat | --runsta | --runst | --runs \
1145 | --run | --ru | --r)
1146 ac_prev=runstatedir ;;
1147 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1148 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1149 | --run=* | --ru=* | --r=*)
1150 runstatedir=$ac_optarg ;;
1151
1152 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1153 ac_prev=sbindir ;;
1154 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1155 | --sbi=* | --sb=*)
1156 sbindir=$ac_optarg ;;
1157
1158 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1159 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1160 | --sharedst | --shareds | --shared | --share | --shar \
1161 | --sha | --sh)
1162 ac_prev=sharedstatedir ;;
1163 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1164 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1165 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1166 | --sha=* | --sh=*)
1167 sharedstatedir=$ac_optarg ;;
1168
1169 -site | --site | --sit)
1170 ac_prev=site ;;
1171 -site=* | --site=* | --sit=*)
1172 site=$ac_optarg ;;
1173
1174 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1175 ac_prev=srcdir ;;
1176 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1177 srcdir=$ac_optarg ;;
1178
1179 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1180 | --syscon | --sysco | --sysc | --sys | --sy)
1181 ac_prev=sysconfdir ;;
1182 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1183 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1184 sysconfdir=$ac_optarg ;;
1185
1186 -target | --target | --targe | --targ | --tar | --ta | --t)
1187 ac_prev=target_alias ;;
1188 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1189 target_alias=$ac_optarg ;;
1190
1191 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1192 verbose=yes ;;
1193
1194 -version | --version | --versio | --versi | --vers | -V)
1195 ac_init_version=: ;;
1196
1197 -with-* | --with-*)
1198 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1199 # Reject names that are not valid shell variable names.
1200 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1201 as_fn_error $? "invalid package name: '$ac_useropt'"
1202 ac_useropt_orig=$ac_useropt
1203 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1204 case $ac_user_opts in
1205 *"
1206 "with_$ac_useropt"
1207 "*) ;;
1208 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1209 ac_unrecognized_sep=', ';;
1210 esac
1211 eval with_$ac_useropt=\$ac_optarg ;;
1212
1213 -without-* | --without-*)
1214 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1215 # Reject names that are not valid shell variable names.
1216 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1217 as_fn_error $? "invalid package name: '$ac_useropt'"
1218 ac_useropt_orig=$ac_useropt
1219 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1220 case $ac_user_opts in
1221 *"
1222 "with_$ac_useropt"
1223 "*) ;;
1224 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1225 ac_unrecognized_sep=', ';;
1226 esac
1227 eval with_$ac_useropt=no ;;
1228
1229 --x)
1230 # Obsolete; use --with-x.
1231 with_x=yes ;;
1232
1233 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1234 | --x-incl | --x-inc | --x-in | --x-i)
1235 ac_prev=x_includes ;;
1236 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1237 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1238 x_includes=$ac_optarg ;;
1239
1240 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1241 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1242 ac_prev=x_libraries ;;
1243 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1244 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1245 x_libraries=$ac_optarg ;;
1246
1247 -*) as_fn_error $? "unrecognized option: '$ac_option'
1248 Try '$0 --help' for more information"
1249 ;;
1250
1251 *=*)
1252 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1253 # Reject names that are not valid shell variable names.
1254 case $ac_envvar in #(
1255 '' | [0-9]* | *[!_$as_cr_alnum]* )
1256 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
1257 esac
1258 eval $ac_envvar=\$ac_optarg
1259 export $ac_envvar ;;
1260
1261 *)
1262 # FIXME: should be removed in autoconf 3.0.
1263 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1264 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1265 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1266 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1267 ;;
1268
1269 esac
1270 done
1271
1272 if test -n "$ac_prev"; then
1273 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1274 as_fn_error $? "missing argument to $ac_option"
1275 fi
1276
1277 if test -n "$ac_unrecognized_opts"; then
1278 case $enable_option_checking in
1279 no) ;;
1280 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1281 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1282 esac
1283 fi
1284
1285 # Check all directory arguments for consistency.
1286 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 datadir sysconfdir sharedstatedir localstatedir includedir \
1288 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1289 libdir localedir mandir runstatedir
1290 do
1291 eval ac_val=\$$ac_var
1292 # Remove trailing slashes.
1293 case $ac_val in
1294 */ )
1295 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1296 eval $ac_var=\$ac_val;;
1297 esac
1298 # Be sure to have absolute directory names.
1299 case $ac_val in
1300 [\\/$]* | ?:[\\/]* ) continue;;
1301 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1302 esac
1303 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1304 done
1305
1306 # There might be people who depend on the old broken behavior: '$host'
1307 # used to hold the argument of --host etc.
1308 # FIXME: To remove some day.
1309 build=$build_alias
1310 host=$host_alias
1311 target=$target_alias
1312
1313 # FIXME: To remove some day.
1314 if test "x$host_alias" != x; then
1315 if test "x$build_alias" = x; then
1316 cross_compiling=maybe
1317 elif test "x$build_alias" != "x$host_alias"; then
1318 cross_compiling=yes
1319 fi
1320 fi
1321
1322 ac_tool_prefix=
1323 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1324
1325 test "$silent" = yes && exec 6>/dev/null
1326
1327
1328 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di=`ls -di .` &&
1330 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error $? "working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error $? "pwd does not report name of working directory"
1334
1335
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 printf "%s\n" X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)[^/].*/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\/\)$/{
1355 s//\1/
1356 q
1357 }
1358 /^X\(\/\).*/{
1359 s//\1/
1360 q
1361 }
1362 s/.*/./; q'`
1363 srcdir=$ac_confdir
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 srcdir=..
1366 fi
1367 else
1368 ac_srcdir_defaulted=no
1369 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1373 fi
1374 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
1375 ac_abs_confdir=`(
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1377 pwd)`
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1380 srcdir=.
1381 fi
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1385 case $srcdir in
1386 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1387 esac
1388 for ac_var in $ac_precious_vars; do
1389 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_${ac_var}_value=\$${ac_var}
1391 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1393 done
1394
1395 #
1396 # Report the --help message.
1397 #
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1401 cat <<_ACEOF
1402 'configure' configures libfontenc 1.1.9 to adapt to many kinds of systems.
1403
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1405
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1408
1409 Defaults for the options are specified in brackets.
1410
1411 Configuration:
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print 'checking ...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for '--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or '..']
1421
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1426 [PREFIX]
1427
1428 By default, 'make install' will install all the files in
1429 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than '$ac_default_prefix' using '--prefix',
1431 for instance '--prefix=\$HOME'.
1432
1433 For better control, use the options below.
1434
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1443 --libdir=DIR object code libraries [EPREFIX/lib]
1444 --includedir=DIR C header files [PREFIX/include]
1445 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1446 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1447 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1448 --infodir=DIR info documentation [DATAROOTDIR/info]
1449 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1450 --mandir=DIR man documentation [DATAROOTDIR/man]
1451 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc]
1452 --htmldir=DIR html documentation [DOCDIR]
1453 --dvidir=DIR dvi documentation [DOCDIR]
1454 --pdfdir=DIR pdf documentation [DOCDIR]
1455 --psdir=DIR ps documentation [DOCDIR]
1456 _ACEOF
1457
1458 cat <<\_ACEOF
1459
1460 Program names:
1461 --program-prefix=PREFIX prepend PREFIX to installed program names
1462 --program-suffix=SUFFIX append SUFFIX to installed program names
1463 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1464
1465 System types:
1466 --build=BUILD configure for building on BUILD [guessed]
1467 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1468 _ACEOF
1469 fi
1470
1471 if test -n "$ac_init_help"; then
1472 case $ac_init_help in
1473 short | recursive ) echo "Configuration of libfontenc 1.1.9:";;
1474 esac
1475 cat <<\_ACEOF
1476
1477 Optional Features:
1478 --disable-option-checking ignore unrecognized --enable/--with options
1479 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1480 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1481 --enable-dependency-tracking
1482 do not reject slow dependency extractors
1483 --disable-dependency-tracking
1484 speeds up one-time build
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-shared[=PKGS] build shared libraries [default=yes]
1488 --enable-static[=PKGS] build static libraries [default=yes]
1489 --enable-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --enable-fast-install[=PKGS]
1492 optimize for fast installation [default=yes]
1493 --enable-aix-soname=aix|svr4|both
1494 shared library versioning (aka "SONAME") variant to
1495 provide on AIX, [default=aix].
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --disable-selective-werror
1498 Turn off selective compiler errors. (default:
1499 enabled)
1500 --enable-strict-compilation
1501 Enable all warnings from compiler and make them
1502 errors (default: disabled)
1503 --disable-largefile omit support for large files
1504 --enable-year2038 support timestamps after 2038
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1510 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1511 compiler's sysroot if not specified).
1512 --with-fontrootdir=DIR Path to root directory for font files
1513 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1514 --with-lint Use a lint-style source code checker (default:
1515 disabled)
1516
1517 Some influential environment variables:
1518 CC C compiler command
1519 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir>
1525 LT_SYS_LIBRARY_PATH
1526 User-defined run-time library search path.
1527 PKG_CONFIG path to pkg-config utility
1528 PKG_CONFIG_PATH
1529 directories to add to pkg-config's search path
1530 PKG_CONFIG_LIBDIR
1531 path overriding pkg-config's built-in search path
1532 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1533 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1534 FONTENC_CFLAGS
1535 C compiler flags for FONTENC, overriding pkg-config
1536 FONTENC_LIBS
1537 linker flags for FONTENC, overriding pkg-config
1538 LINT Path to a lint-style command
1539 LINT_FLAGS Flags for the lint-style command
1540
1541 Use these variables to override the choices made by 'configure' or to help
1542 it to find libraries and programs with nonstandard names/locations.
1543
1544 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>.
1545 _ACEOF
1546 ac_status=$?
1547 fi
1548
1549 if test "$ac_init_help" = "recursive"; then
1550 # If there are subdirs, report their specific --help.
1551 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1552 test -d "$ac_dir" ||
1553 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1554 continue
1555 ac_builddir=.
1556
1557 case "$ac_dir" in
1558 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1559 *)
1560 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1561 # A ".." for each directory in $ac_dir_suffix.
1562 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1563 case $ac_top_builddir_sub in
1564 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1565 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1566 esac ;;
1567 esac
1568 ac_abs_top_builddir=$ac_pwd
1569 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1570 # for backward compatibility:
1571 ac_top_builddir=$ac_top_build_prefix
1572
1573 case $srcdir in
1574 .) # We are building in place.
1575 ac_srcdir=.
1576 ac_top_srcdir=$ac_top_builddir_sub
1577 ac_abs_top_srcdir=$ac_pwd ;;
1578 [\\/]* | ?:[\\/]* ) # Absolute name.
1579 ac_srcdir=$srcdir$ac_dir_suffix;
1580 ac_top_srcdir=$srcdir
1581 ac_abs_top_srcdir=$srcdir ;;
1582 *) # Relative name.
1583 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1584 ac_top_srcdir=$ac_top_build_prefix$srcdir
1585 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1586 esac
1587 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1588
1589 cd "$ac_dir" || { ac_status=$?; continue; }
1590 # Check for configure.gnu first; this name is used for a wrapper for
1591 # Metaconfig's "Configure" on case-insensitive file systems.
1592 if test -f "$ac_srcdir/configure.gnu"; then
1593 echo &&
1594 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1595 elif test -f "$ac_srcdir/configure"; then
1596 echo &&
1597 $SHELL "$ac_srcdir/configure" --help=recursive
1598 else
1599 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1600 fi || ac_status=$?
1601 cd "$ac_pwd" || { ac_status=$?; break; }
1602 done
1603 fi
1604
1605 test -n "$ac_init_help" && exit $ac_status
1606 if $ac_init_version; then
1607 cat <<\_ACEOF
1608 libfontenc configure 1.1.9
1609 generated by GNU Autoconf 2.72
1610
1611 Copyright (C) 2023 Free Software Foundation, Inc.
1612 This configure script is free software; the Free Software Foundation
1613 gives unlimited permission to copy, distribute and modify it.
1614 _ACEOF
1615 exit
1616 fi
1617
1618 ## ------------------------ ##
1619 ## Autoconf initialization. ##
1620 ## ------------------------ ##
1621
1622 # ac_fn_c_try_compile LINENO
1623 # --------------------------
1624 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1625 ac_fn_c_try_compile ()
1626 {
1627 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628 rm -f conftest.$ac_objext conftest.beam
1629 if { { ac_try="$ac_compile"
1630 case "(($ac_try" in
1631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632 *) ac_try_echo=$ac_try;;
1633 esac
1634 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635 printf "%s\n" "$ac_try_echo"; } >&5
1636 (eval "$ac_compile") 2>conftest.err
1637 ac_status=$?
1638 if test -s conftest.err; then
1639 grep -v '^ *+' conftest.err >conftest.er1
1640 cat conftest.er1 >&5
1641 mv -f conftest.er1 conftest.err
1642 fi
1643 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644 test $ac_status = 0; } && {
1645 test -z "$ac_c_werror_flag" ||
1646 test ! -s conftest.err
1647 } && test -s conftest.$ac_objext
1648 then :
1649 ac_retval=0
1650 else case e in #(
1651 e) printf "%s\n" "$as_me: failed program was:" >&5
1652 sed 's/^/| /' conftest.$ac_ext >&5
1653
1654 ac_retval=1 ;;
1655 esac
1656 fi
1657 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1658 as_fn_set_status $ac_retval
1659
1660 } # ac_fn_c_try_compile
1661
1662 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1663 # -------------------------------------------------------
1664 # Tests whether HEADER exists and can be compiled using the include files in
1665 # INCLUDES, setting the cache variable VAR accordingly.
1666 ac_fn_c_check_header_compile ()
1667 {
1668 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 printf %s "checking for $2... " >&6; }
1671 if eval test \${$3+y}
1672 then :
1673 printf %s "(cached) " >&6
1674 else case e in #(
1675 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676 /* end confdefs.h. */
1677 $4
1678 #include <$2>
1679 _ACEOF
1680 if ac_fn_c_try_compile "$LINENO"
1681 then :
1682 eval "$3=yes"
1683 else case e in #(
1684 e) eval "$3=no" ;;
1685 esac
1686 fi
1687 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
1688 esac
1689 fi
1690 eval ac_res=\$$3
1691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1692 printf "%s\n" "$ac_res" >&6; }
1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1694
1695 } # ac_fn_c_check_header_compile
1696
1697 # ac_fn_c_try_link LINENO
1698 # -----------------------
1699 # Try to link conftest.$ac_ext, and return whether this succeeded.
1700 ac_fn_c_try_link ()
1701 {
1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1703 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1704 if { { ac_try="$ac_link"
1705 case "(($ac_try" in
1706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1707 *) ac_try_echo=$ac_try;;
1708 esac
1709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1710 printf "%s\n" "$ac_try_echo"; } >&5
1711 (eval "$ac_link") 2>conftest.err
1712 ac_status=$?
1713 if test -s conftest.err; then
1714 grep -v '^ *+' conftest.err >conftest.er1
1715 cat conftest.er1 >&5
1716 mv -f conftest.er1 conftest.err
1717 fi
1718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && {
1720 test -z "$ac_c_werror_flag" ||
1721 test ! -s conftest.err
1722 } && test -s conftest$ac_exeext && {
1723 test "$cross_compiling" = yes ||
1724 test -x conftest$ac_exeext
1725 }
1726 then :
1727 ac_retval=0
1728 else case e in #(
1729 e) printf "%s\n" "$as_me: failed program was:" >&5
1730 sed 's/^/| /' conftest.$ac_ext >&5
1731
1732 ac_retval=1 ;;
1733 esac
1734 fi
1735 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1736 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1737 # interfere with the next link command; also delete a directory that is
1738 # left behind by Apple's compiler. We do this before executing the actions.
1739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 as_fn_set_status $ac_retval
1742
1743 } # ac_fn_c_try_link
1744
1745 # ac_fn_c_check_func LINENO FUNC VAR
1746 # ----------------------------------
1747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1748 ac_fn_c_check_func ()
1749 {
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752 printf %s "checking for $2... " >&6; }
1753 if eval test \${$3+y}
1754 then :
1755 printf %s "(cached) " >&6
1756 else case e in #(
1757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1758 /* end confdefs.h. */
1759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1761 #define $2 innocuous_$2
1762
1763 /* System header to define __stub macros and hopefully few prototypes,
1764 which can conflict with char $2 (void); below. */
1765
1766 #include <limits.h>
1767 #undef $2
1768
1769 /* Override any GCC internal prototype to avoid an error.
1770 Use char because int might match the return type of a GCC
1771 builtin and then its argument prototype would still apply. */
1772 #ifdef __cplusplus
1773 extern "C"
1774 #endif
1775 char $2 (void);
1776 /* The GNU C library defines this for functions which it implements
1777 to always fail with ENOSYS. Some functions are actually named
1778 something starting with __ and the normal name is an alias. */
1779 #if defined __stub_$2 || defined __stub___$2
1780 choke me
1781 #endif
1782
1783 int
1784 main (void)
1785 {
1786 return $2 ();
1787 ;
1788 return 0;
1789 }
1790 _ACEOF
1791 if ac_fn_c_try_link "$LINENO"
1792 then :
1793 eval "$3=yes"
1794 else case e in #(
1795 e) eval "$3=no" ;;
1796 esac
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1799 conftest$ac_exeext conftest.$ac_ext ;;
1800 esac
1801 fi
1802 eval ac_res=\$$3
1803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1804 printf "%s\n" "$ac_res" >&6; }
1805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1806
1807 } # ac_fn_c_check_func
1808
1809 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1810 # ------------------------------------------------------------------
1811 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1812 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1813 ac_fn_check_decl ()
1814 {
1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1816 as_decl_name=`echo $2|sed 's/ *(.*//'`
1817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1818 printf %s "checking whether $as_decl_name is declared... " >&6; }
1819 if eval test \${$3+y}
1820 then :
1821 printf %s "(cached) " >&6
1822 else case e in #(
1823 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1824 eval ac_save_FLAGS=\$$6
1825 as_fn_append $6 " $5"
1826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1827 /* end confdefs.h. */
1828 $4
1829 int
1830 main (void)
1831 {
1832 #ifndef $as_decl_name
1833 #ifdef __cplusplus
1834 (void) $as_decl_use;
1835 #else
1836 (void) $as_decl_name;
1837 #endif
1838 #endif
1839
1840 ;
1841 return 0;
1842 }
1843 _ACEOF
1844 if ac_fn_c_try_compile "$LINENO"
1845 then :
1846 eval "$3=yes"
1847 else case e in #(
1848 e) eval "$3=no" ;;
1849 esac
1850 fi
1851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1852 eval $6=\$ac_save_FLAGS
1853 ;;
1854 esac
1855 fi
1856 eval ac_res=\$$3
1857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858 printf "%s\n" "$ac_res" >&6; }
1859 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1860
1861 } # ac_fn_check_decl
1862 ac_configure_args_raw=
1863 for ac_arg
1864 do
1865 case $ac_arg in
1866 *\'*)
1867 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1868 esac
1869 as_fn_append ac_configure_args_raw " '$ac_arg'"
1870 done
1871
1872 case $ac_configure_args_raw in
1873 *$as_nl*)
1874 ac_safe_unquote= ;;
1875 *)
1876 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1877 ac_unsafe_a="$ac_unsafe_z#~"
1878 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1879 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1880 esac
1881
1882 cat >config.log <<_ACEOF
1883 This file contains any messages produced by compilers while
1884 running configure, to aid debugging if configure makes a mistake.
1885
1886 It was created by libfontenc $as_me 1.1.9, which was
1887 generated by GNU Autoconf 2.72. Invocation command line was
1888
1889 $ $0$ac_configure_args_raw
1890
1891 _ACEOF
1892 exec 5>>config.log
1893 {
1894 cat <<_ASUNAME
1895 ## --------- ##
1896 ## Platform. ##
1897 ## --------- ##
1898
1899 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1900 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1901 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1902 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1903 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1904
1905 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1906 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1907
1908 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1909 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1910 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1911 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1912 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1913 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1914 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1915
1916 _ASUNAME
1917
1918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1919 for as_dir in $PATH
1920 do
1921 IFS=$as_save_IFS
1922 case $as_dir in #(((
1923 '') as_dir=./ ;;
1924 */) ;;
1925 *) as_dir=$as_dir/ ;;
1926 esac
1927 printf "%s\n" "PATH: $as_dir"
1928 done
1929 IFS=$as_save_IFS
1930
1931 } >&5
1932
1933 cat >&5 <<_ACEOF
1934
1935
1936 ## ----------- ##
1937 ## Core tests. ##
1938 ## ----------- ##
1939
1940 _ACEOF
1941
1942
1943 # Keep a trace of the command line.
1944 # Strip out --no-create and --no-recursion so they do not pile up.
1945 # Strip out --silent because we don't want to record it for future runs.
1946 # Also quote any args containing shell meta-characters.
1947 # Make two passes to allow for proper duplicate-argument suppression.
1948 ac_configure_args=
1949 ac_configure_args0=
1950 ac_configure_args1=
1951 ac_must_keep_next=false
1952 for ac_pass in 1 2
1953 do
1954 for ac_arg
1955 do
1956 case $ac_arg in
1957 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1959 | -silent | --silent | --silen | --sile | --sil)
1960 continue ;;
1961 *\'*)
1962 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1963 esac
1964 case $ac_pass in
1965 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1966 2)
1967 as_fn_append ac_configure_args1 " '$ac_arg'"
1968 if test $ac_must_keep_next = true; then
1969 ac_must_keep_next=false # Got value, back to normal.
1970 else
1971 case $ac_arg in
1972 *=* | --config-cache | -C | -disable-* | --disable-* \
1973 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1974 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1975 | -with-* | --with-* | -without-* | --without-* | --x)
1976 case "$ac_configure_args0 " in
1977 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1978 esac
1979 ;;
1980 -* ) ac_must_keep_next=true ;;
1981 esac
1982 fi
1983 as_fn_append ac_configure_args " '$ac_arg'"
1984 ;;
1985 esac
1986 done
1987 done
1988 { ac_configure_args0=; unset ac_configure_args0;}
1989 { ac_configure_args1=; unset ac_configure_args1;}
1990
1991 # When interrupted or exit'd, cleanup temporary files, and complete
1992 # config.log. We remove comments because anyway the quotes in there
1993 # would cause problems or look ugly.
1994 # WARNING: Use '\'' to represent an apostrophe within the trap.
1995 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1996 trap 'exit_status=$?
1997 # Sanitize IFS.
1998 IFS=" "" $as_nl"
1999 # Save into config.log some information that might help in debugging.
2000 {
2001 echo
2002
2003 printf "%s\n" "## ---------------- ##
2004 ## Cache variables. ##
2005 ## ---------------- ##"
2006 echo
2007 # The following way of writing the cache mishandles newlines in values,
2008 (
2009 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2010 eval ac_val=\$$ac_var
2011 case $ac_val in #(
2012 *${as_nl}*)
2013 case $ac_var in #(
2014 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2015 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2016 esac
2017 case $ac_var in #(
2018 _ | IFS | as_nl) ;; #(
2019 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2020 *) { eval $ac_var=; unset $ac_var;} ;;
2021 esac ;;
2022 esac
2023 done
2024 (set) 2>&1 |
2025 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2026 *${as_nl}ac_space=\ *)
2027 sed -n \
2028 "s/'\''/'\''\\\\'\'''\''/g;
2029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2030 ;; #(
2031 *)
2032 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2033 ;;
2034 esac |
2035 sort
2036 )
2037 echo
2038
2039 printf "%s\n" "## ----------------- ##
2040 ## Output variables. ##
2041 ## ----------------- ##"
2042 echo
2043 for ac_var in $ac_subst_vars
2044 do
2045 eval ac_val=\$$ac_var
2046 case $ac_val in
2047 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2048 esac
2049 printf "%s\n" "$ac_var='\''$ac_val'\''"
2050 done | sort
2051 echo
2052
2053 if test -n "$ac_subst_files"; then
2054 printf "%s\n" "## ------------------- ##
2055 ## File substitutions. ##
2056 ## ------------------- ##"
2057 echo
2058 for ac_var in $ac_subst_files
2059 do
2060 eval ac_val=\$$ac_var
2061 case $ac_val in
2062 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2063 esac
2064 printf "%s\n" "$ac_var='\''$ac_val'\''"
2065 done | sort
2066 echo
2067 fi
2068
2069 if test -s confdefs.h; then
2070 printf "%s\n" "## ----------- ##
2071 ## confdefs.h. ##
2072 ## ----------- ##"
2073 echo
2074 cat confdefs.h
2075 echo
2076 fi
2077 test "$ac_signal" != 0 &&
2078 printf "%s\n" "$as_me: caught signal $ac_signal"
2079 printf "%s\n" "$as_me: exit $exit_status"
2080 } >&5
2081 rm -f core *.core core.conftest.* &&
2082 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2083 exit $exit_status
2084 ' 0
2085 for ac_signal in 1 2 13 15; do
2086 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2087 done
2088 ac_signal=0
2089
2090 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2091 rm -f -r conftest* confdefs.h
2092
2093 printf "%s\n" "/* confdefs.h */" > confdefs.h
2094
2095 # Predefined preprocessor variables.
2096
2097 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2098
2099 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2100
2101 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2102
2103 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2104
2105 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2106
2107 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2108
2109
2110 # Let the site file select an alternate cache file if it wants to.
2111 # Prefer an explicitly selected file to automatically selected ones.
2112 if test -n "$CONFIG_SITE"; then
2113 ac_site_files="$CONFIG_SITE"
2114 elif test "x$prefix" != xNONE; then
2115 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2116 else
2117 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2118 fi
2119
2120 for ac_site_file in $ac_site_files
2121 do
2122 case $ac_site_file in #(
2123 */*) :
2124 ;; #(
2125 *) :
2126 ac_site_file=./$ac_site_file ;;
2127 esac
2128 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2130 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2131 sed 's/^/| /' "$ac_site_file" >&5
2132 . "$ac_site_file" \
2133 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2134 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2135 as_fn_error $? "failed to load site script $ac_site_file
2136 See 'config.log' for more details" "$LINENO" 5; }
2137 fi
2138 done
2139
2140 if test -r "$cache_file"; then
2141 # Some versions of bash will fail to source /dev/null (special files
2142 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2143 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2145 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2146 case $cache_file in
2147 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2148 *) . "./$cache_file";;
2149 esac
2150 fi
2151 else
2152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2153 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2154 >$cache_file
2155 fi
2156
2157 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2158 # Test code for whether the C compiler supports C89 (global declarations)
2159 ac_c_conftest_c89_globals='
2160 /* Does the compiler advertise C89 conformance?
2161 Do not test the value of __STDC__, because some compilers set it to 0
2162 while being otherwise adequately conformant. */
2163 #if !defined __STDC__
2164 # error "Compiler does not advertise C89 conformance"
2165 #endif
2166
2167 #include <stddef.h>
2168 #include <stdarg.h>
2169 struct stat;
2170 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2171 struct buf { int x; };
2172 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2173 static char *e (char **p, int i)
2174 {
2175 return p[i];
2176 }
2177 static char *f (char * (*g) (char **, int), char **p, ...)
2178 {
2179 char *s;
2180 va_list v;
2181 va_start (v,p);
2182 s = g (p, va_arg (v,int));
2183 va_end (v);
2184 return s;
2185 }
2186
2187 /* C89 style stringification. */
2188 #define noexpand_stringify(a) #a
2189 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2190
2191 /* C89 style token pasting. Exercises some of the corner cases that
2192 e.g. old MSVC gets wrong, but not very hard. */
2193 #define noexpand_concat(a,b) a##b
2194 #define expand_concat(a,b) noexpand_concat(a,b)
2195 extern int vA;
2196 extern int vbee;
2197 #define aye A
2198 #define bee B
2199 int *pvA = &expand_concat(v,aye);
2200 int *pvbee = &noexpand_concat(v,bee);
2201
2202 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2203 function prototypes and stuff, but not \xHH hex character constants.
2204 These do not provoke an error unfortunately, instead are silently treated
2205 as an "x". The following induces an error, until -std is added to get
2206 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2207 array size at least. It is necessary to write \x00 == 0 to get something
2208 that is true only with -std. */
2209 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2210
2211 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2212 inside strings and character constants. */
2213 #define FOO(x) '\''x'\''
2214 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2215
2216 int test (int i, double x);
2217 struct s1 {int (*f) (int a);};
2218 struct s2 {int (*f) (double a);};
2219 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2220 int, int);'
2221
2222 # Test code for whether the C compiler supports C89 (body of main).
2223 ac_c_conftest_c89_main='
2224 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2225 '
2226
2227 # Test code for whether the C compiler supports C99 (global declarations)
2228 ac_c_conftest_c99_globals='
2229 /* Does the compiler advertise C99 conformance? */
2230 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2231 # error "Compiler does not advertise C99 conformance"
2232 #endif
2233
2234 // See if C++-style comments work.
2235
2236 #include <stdbool.h>
2237 extern int puts (const char *);
2238 extern int printf (const char *, ...);
2239 extern int dprintf (int, const char *, ...);
2240 extern void *malloc (size_t);
2241 extern void free (void *);
2242
2243 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2244 // dprintf is used instead of fprintf to avoid needing to declare
2245 // FILE and stderr.
2246 #define debug(...) dprintf (2, __VA_ARGS__)
2247 #define showlist(...) puts (#__VA_ARGS__)
2248 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2249 static void
2250 test_varargs_macros (void)
2251 {
2252 int x = 1234;
2253 int y = 5678;
2254 debug ("Flag");
2255 debug ("X = %d\n", x);
2256 showlist (The first, second, and third items.);
2257 report (x>y, "x is %d but y is %d", x, y);
2258 }
2259
2260 // Check long long types.
2261 #define BIG64 18446744073709551615ull
2262 #define BIG32 4294967295ul
2263 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2264 #if !BIG_OK
2265 #error "your preprocessor is broken"
2266 #endif
2267 #if BIG_OK
2268 #else
2269 #error "your preprocessor is broken"
2270 #endif
2271 static long long int bignum = -9223372036854775807LL;
2272 static unsigned long long int ubignum = BIG64;
2273
2274 struct incomplete_array
2275 {
2276 int datasize;
2277 double data[];
2278 };
2279
2280 struct named_init {
2281 int number;
2282 const wchar_t *name;
2283 double average;
2284 };
2285
2286 typedef const char *ccp;
2287
2288 static inline int
2289 test_restrict (ccp restrict text)
2290 {
2291 // Iterate through items via the restricted pointer.
2292 // Also check for declarations in for loops.
2293 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2294 continue;
2295 return 0;
2296 }
2297
2298 // Check varargs and va_copy.
2299 static bool
2300 test_varargs (const char *format, ...)
2301 {
2302 va_list args;
2303 va_start (args, format);
2304 va_list args_copy;
2305 va_copy (args_copy, args);
2306
2307 const char *str = "";
2308 int number = 0;
2309 float fnumber = 0;
2310
2311 while (*format)
2312 {
2313 switch (*format++)
2314 {
2315 case '\''s'\'': // string
2316 str = va_arg (args_copy, const char *);
2317 break;
2318 case '\''d'\'': // int
2319 number = va_arg (args_copy, int);
2320 break;
2321 case '\''f'\'': // float
2322 fnumber = va_arg (args_copy, double);
2323 break;
2324 default:
2325 break;
2326 }
2327 }
2328 va_end (args_copy);
2329 va_end (args);
2330
2331 return *str && number && fnumber;
2332 }
2333 '
2334
2335 # Test code for whether the C compiler supports C99 (body of main).
2336 ac_c_conftest_c99_main='
2337 // Check bool.
2338 _Bool success = false;
2339 success |= (argc != 0);
2340
2341 // Check restrict.
2342 if (test_restrict ("String literal") == 0)
2343 success = true;
2344 char *restrict newvar = "Another string";
2345
2346 // Check varargs.
2347 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2348 test_varargs_macros ();
2349
2350 // Check flexible array members.
2351 struct incomplete_array *ia =
2352 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2353 ia->datasize = 10;
2354 for (int i = 0; i < ia->datasize; ++i)
2355 ia->data[i] = i * 1.234;
2356 // Work around memory leak warnings.
2357 free (ia);
2358
2359 // Check named initializers.
2360 struct named_init ni = {
2361 .number = 34,
2362 .name = L"Test wide string",
2363 .average = 543.34343,
2364 };
2365
2366 ni.number = 58;
2367
2368 int dynamic_array[ni.number];
2369 dynamic_array[0] = argv[0][0];
2370 dynamic_array[ni.number - 1] = 543;
2371
2372 // work around unused variable warnings
2373 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2374 || dynamic_array[ni.number - 1] != 543);
2375 '
2376
2377 # Test code for whether the C compiler supports C11 (global declarations)
2378 ac_c_conftest_c11_globals='
2379 /* Does the compiler advertise C11 conformance? */
2380 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2381 # error "Compiler does not advertise C11 conformance"
2382 #endif
2383
2384 // Check _Alignas.
2385 char _Alignas (double) aligned_as_double;
2386 char _Alignas (0) no_special_alignment;
2387 extern char aligned_as_int;
2388 char _Alignas (0) _Alignas (int) aligned_as_int;
2389
2390 // Check _Alignof.
2391 enum
2392 {
2393 int_alignment = _Alignof (int),
2394 int_array_alignment = _Alignof (int[100]),
2395 char_alignment = _Alignof (char)
2396 };
2397 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2398
2399 // Check _Noreturn.
2400 int _Noreturn does_not_return (void) { for (;;) continue; }
2401
2402 // Check _Static_assert.
2403 struct test_static_assert
2404 {
2405 int x;
2406 _Static_assert (sizeof (int) <= sizeof (long int),
2407 "_Static_assert does not work in struct");
2408 long int y;
2409 };
2410
2411 // Check UTF-8 literals.
2412 #define u8 syntax error!
2413 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2414
2415 // Check duplicate typedefs.
2416 typedef long *long_ptr;
2417 typedef long int *long_ptr;
2418 typedef long_ptr long_ptr;
2419
2420 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2421 struct anonymous
2422 {
2423 union {
2424 struct { int i; int j; };
2425 struct { int k; long int l; } w;
2426 };
2427 int m;
2428 } v1;
2429 '
2430
2431 # Test code for whether the C compiler supports C11 (body of main).
2432 ac_c_conftest_c11_main='
2433 _Static_assert ((offsetof (struct anonymous, i)
2434 == offsetof (struct anonymous, w.k)),
2435 "Anonymous union alignment botch");
2436 v1.i = 2;
2437 v1.w.k = 5;
2438 ok |= v1.i != 5;
2439 '
2440
2441 # Test code for whether the C compiler supports C11 (complete).
2442 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2443 ${ac_c_conftest_c99_globals}
2444 ${ac_c_conftest_c11_globals}
2445
2446 int
2447 main (int argc, char **argv)
2448 {
2449 int ok = 0;
2450 ${ac_c_conftest_c89_main}
2451 ${ac_c_conftest_c99_main}
2452 ${ac_c_conftest_c11_main}
2453 return ok;
2454 }
2455 "
2456
2457 # Test code for whether the C compiler supports C99 (complete).
2458 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2459 ${ac_c_conftest_c99_globals}
2460
2461 int
2462 main (int argc, char **argv)
2463 {
2464 int ok = 0;
2465 ${ac_c_conftest_c89_main}
2466 ${ac_c_conftest_c99_main}
2467 return ok;
2468 }
2469 "
2470
2471 # Test code for whether the C compiler supports C89 (complete).
2472 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2473
2474 int
2475 main (int argc, char **argv)
2476 {
2477 int ok = 0;
2478 ${ac_c_conftest_c89_main}
2479 return ok;
2480 }
2481 "
2482
2483 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2484 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2485 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2486 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2487 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2488 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2489 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2490 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2491 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2492 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2493
2494 # Auxiliary files required by this configure script.
2495 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2496
2497 # Locations in which to look for auxiliary files.
2498 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2499
2500 # Search for a directory containing all of the required auxiliary files,
2501 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2502 # If we don't find one directory that contains all the files we need,
2503 # we report the set of missing files from the *first* directory in
2504 # $ac_aux_dir_candidates and give up.
2505 ac_missing_aux_files=""
2506 ac_first_candidate=:
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 as_found=false
2510 for as_dir in $ac_aux_dir_candidates
2511 do
2512 IFS=$as_save_IFS
2513 case $as_dir in #(((
2514 '') as_dir=./ ;;
2515 */) ;;
2516 *) as_dir=$as_dir/ ;;
2517 esac
2518 as_found=:
2519
2520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2521 ac_aux_dir_found=yes
2522 ac_install_sh=
2523 for ac_aux in $ac_aux_files
2524 do
2525 # As a special case, if "install-sh" is required, that requirement
2526 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2527 # and $ac_install_sh is set appropriately for whichever one is found.
2528 if test x"$ac_aux" = x"install-sh"
2529 then
2530 if test -f "${as_dir}install-sh"; then
2531 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2532 ac_install_sh="${as_dir}install-sh -c"
2533 elif test -f "${as_dir}install.sh"; then
2534 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2535 ac_install_sh="${as_dir}install.sh -c"
2536 elif test -f "${as_dir}shtool"; then
2537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2538 ac_install_sh="${as_dir}shtool install -c"
2539 else
2540 ac_aux_dir_found=no
2541 if $ac_first_candidate; then
2542 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2543 else
2544 break
2545 fi
2546 fi
2547 else
2548 if test -f "${as_dir}${ac_aux}"; then
2549 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2550 else
2551 ac_aux_dir_found=no
2552 if $ac_first_candidate; then
2553 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2554 else
2555 break
2556 fi
2557 fi
2558 fi
2559 done
2560 if test "$ac_aux_dir_found" = yes; then
2561 ac_aux_dir="$as_dir"
2562 break
2563 fi
2564 ac_first_candidate=false
2565
2566 as_found=false
2567 done
2568 IFS=$as_save_IFS
2569 if $as_found
2570 then :
2571
2572 else case e in #(
2573 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
2574 esac
2575 fi
2576
2577
2578 # These three variables are undocumented and unsupported,
2579 # and are intended to be withdrawn in a future Autoconf release.
2580 # They can cause serious problems if a builder's source tree is in a directory
2581 # whose full name contains unusual characters.
2582 if test -f "${ac_aux_dir}config.guess"; then
2583 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2584 fi
2585 if test -f "${ac_aux_dir}config.sub"; then
2586 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2587 fi
2588 if test -f "$ac_aux_dir/configure"; then
2589 ac_configure="$SHELL ${ac_aux_dir}configure"
2590 fi
2591
2592 # Check that the precious variables saved in the cache have kept the same
2593 # value.
2594 ac_cache_corrupted=false
2595 for ac_var in $ac_precious_vars; do
2596 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2597 eval ac_new_set=\$ac_env_${ac_var}_set
2598 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2599 eval ac_new_val=\$ac_env_${ac_var}_value
2600 case $ac_old_set,$ac_new_set in
2601 set,)
2602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
2603 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
2604 ac_cache_corrupted=: ;;
2605 ,set)
2606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
2607 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
2608 ac_cache_corrupted=: ;;
2609 ,);;
2610 *)
2611 if test "x$ac_old_val" != "x$ac_new_val"; then
2612 # differences in whitespace do not lead to failure.
2613 ac_old_val_w=`echo x $ac_old_val`
2614 ac_new_val_w=`echo x $ac_new_val`
2615 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
2617 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
2618 ac_cache_corrupted=:
2619 else
2620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
2621 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
2622 eval $ac_var=\$ac_old_val
2623 fi
2624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
2625 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
2627 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
2628 fi;;
2629 esac
2630 # Pass precious variables to config.status.
2631 if test "$ac_new_set" = set; then
2632 case $ac_new_val in
2633 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2634 *) ac_arg=$ac_var=$ac_new_val ;;
2635 esac
2636 case " $ac_configure_args " in
2637 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2638 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2639 esac
2640 fi
2641 done
2642 if $ac_cache_corrupted; then
2643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2644 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
2645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2646 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2647 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
2648 and start over" "$LINENO" 5
2649 fi
2650 ## -------------------- ##
2651 ## Main body of script. ##
2652 ## -------------------- ##
2653
2654 ac_ext=c
2655 ac_cpp='$CPP $CPPFLAGS'
2656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2659
2660
2661
2662 ac_config_headers="$ac_config_headers config.h"
2663
2664
2665
2666 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2667 # Must be called before any macros that run the compiler (like LT_INIT)
2668 # to avoid autoconf errors.
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680 # Expand $ac_aux_dir to an absolute path.
2681 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2682
2683 ac_ext=c
2684 ac_cpp='$CPP $CPPFLAGS'
2685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2686 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2688 if test -n "$ac_tool_prefix"; then
2689 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2690 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2692 printf %s "checking for $ac_word... " >&6; }
2693 if test ${ac_cv_prog_CC+y}
2694 then :
2695 printf %s "(cached) " >&6
2696 else case e in #(
2697 e) if test -n "$CC"; then
2698 ac_cv_prog_CC="$CC" # Let the user override the test.
2699 else
2700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2701 for as_dir in $PATH
2702 do
2703 IFS=$as_save_IFS
2704 case $as_dir in #(((
2705 '') as_dir=./ ;;
2706 */) ;;
2707 *) as_dir=$as_dir/ ;;
2708 esac
2709 for ac_exec_ext in '' $ac_executable_extensions; do
2710 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2711 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2713 break 2
2714 fi
2715 done
2716 done
2717 IFS=$as_save_IFS
2718
2719 fi ;;
2720 esac
2721 fi
2722 CC=$ac_cv_prog_CC
2723 if test -n "$CC"; then
2724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2725 printf "%s\n" "$CC" >&6; }
2726 else
2727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2728 printf "%s\n" "no" >&6; }
2729 fi
2730
2731
2732 fi
2733 if test -z "$ac_cv_prog_CC"; then
2734 ac_ct_CC=$CC
2735 # Extract the first word of "gcc", so it can be a program name with args.
2736 set dummy gcc; ac_word=$2
2737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 printf %s "checking for $ac_word... " >&6; }
2739 if test ${ac_cv_prog_ac_ct_CC+y}
2740 then :
2741 printf %s "(cached) " >&6
2742 else case e in #(
2743 e) if test -n "$ac_ct_CC"; then
2744 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2745 else
2746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 for as_dir in $PATH
2748 do
2749 IFS=$as_save_IFS
2750 case $as_dir in #(((
2751 '') as_dir=./ ;;
2752 */) ;;
2753 *) as_dir=$as_dir/ ;;
2754 esac
2755 for ac_exec_ext in '' $ac_executable_extensions; do
2756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_ac_ct_CC="gcc"
2758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2759 break 2
2760 fi
2761 done
2762 done
2763 IFS=$as_save_IFS
2764
2765 fi ;;
2766 esac
2767 fi
2768 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2769 if test -n "$ac_ct_CC"; then
2770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2771 printf "%s\n" "$ac_ct_CC" >&6; }
2772 else
2773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2774 printf "%s\n" "no" >&6; }
2775 fi
2776
2777 if test "x$ac_ct_CC" = x; then
2778 CC=""
2779 else
2780 case $cross_compiling:$ac_tool_warned in
2781 yes:)
2782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2783 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2784 ac_tool_warned=yes ;;
2785 esac
2786 CC=$ac_ct_CC
2787 fi
2788 else
2789 CC="$ac_cv_prog_CC"
2790 fi
2791
2792 if test -z "$CC"; then
2793 if test -n "$ac_tool_prefix"; then
2794 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2795 set dummy ${ac_tool_prefix}cc; ac_word=$2
2796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2797 printf %s "checking for $ac_word... " >&6; }
2798 if test ${ac_cv_prog_CC+y}
2799 then :
2800 printf %s "(cached) " >&6
2801 else case e in #(
2802 e) if test -n "$CC"; then
2803 ac_cv_prog_CC="$CC" # Let the user override the test.
2804 else
2805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2806 for as_dir in $PATH
2807 do
2808 IFS=$as_save_IFS
2809 case $as_dir in #(((
2810 '') as_dir=./ ;;
2811 */) ;;
2812 *) as_dir=$as_dir/ ;;
2813 esac
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_CC="${ac_tool_prefix}cc"
2817 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2818 break 2
2819 fi
2820 done
2821 done
2822 IFS=$as_save_IFS
2823
2824 fi ;;
2825 esac
2826 fi
2827 CC=$ac_cv_prog_CC
2828 if test -n "$CC"; then
2829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2830 printf "%s\n" "$CC" >&6; }
2831 else
2832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2833 printf "%s\n" "no" >&6; }
2834 fi
2835
2836
2837 fi
2838 fi
2839 if test -z "$CC"; then
2840 # Extract the first word of "cc", so it can be a program name with args.
2841 set dummy cc; ac_word=$2
2842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2843 printf %s "checking for $ac_word... " >&6; }
2844 if test ${ac_cv_prog_CC+y}
2845 then :
2846 printf %s "(cached) " >&6
2847 else case e in #(
2848 e) if test -n "$CC"; then
2849 ac_cv_prog_CC="$CC" # Let the user override the test.
2850 else
2851 ac_prog_rejected=no
2852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2853 for as_dir in $PATH
2854 do
2855 IFS=$as_save_IFS
2856 case $as_dir in #(((
2857 '') as_dir=./ ;;
2858 */) ;;
2859 *) as_dir=$as_dir/ ;;
2860 esac
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2863 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2864 ac_prog_rejected=yes
2865 continue
2866 fi
2867 ac_cv_prog_CC="cc"
2868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2869 break 2
2870 fi
2871 done
2872 done
2873 IFS=$as_save_IFS
2874
2875 if test $ac_prog_rejected = yes; then
2876 # We found a bogon in the path, so make sure we never use it.
2877 set dummy $ac_cv_prog_CC
2878 shift
2879 if test $# != 0; then
2880 # We chose a different compiler from the bogus one.
2881 # However, it has the same basename, so the bogon will be chosen
2882 # first if we set CC to just the basename; use the full file name.
2883 shift
2884 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2885 fi
2886 fi
2887 fi ;;
2888 esac
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 printf "%s\n" "$CC" >&6; }
2894 else
2895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 printf "%s\n" "no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2904 do
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 printf %s "checking for $ac_word... " >&6; }
2909 if test ${ac_cv_prog_CC+y}
2910 then :
2911 printf %s "(cached) " >&6
2912 else case e in #(
2913 e) if test -n "$CC"; then
2914 ac_cv_prog_CC="$CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 case $as_dir in #(((
2921 '') as_dir=./ ;;
2922 */) ;;
2923 *) as_dir=$as_dir/ ;;
2924 esac
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2927 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi ;;
2936 esac
2937 fi
2938 CC=$ac_cv_prog_CC
2939 if test -n "$CC"; then
2940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2941 printf "%s\n" "$CC" >&6; }
2942 else
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2944 printf "%s\n" "no" >&6; }
2945 fi
2946
2947
2948 test -n "$CC" && break
2949 done
2950 fi
2951 if test -z "$CC"; then
2952 ac_ct_CC=$CC
2953 for ac_prog in cl.exe
2954 do
2955 # Extract the first word of "$ac_prog", so it can be a program name with args.
2956 set dummy $ac_prog; ac_word=$2
2957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2958 printf %s "checking for $ac_word... " >&6; }
2959 if test ${ac_cv_prog_ac_ct_CC+y}
2960 then :
2961 printf %s "(cached) " >&6
2962 else case e in #(
2963 e) if test -n "$ac_ct_CC"; then
2964 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2968 do
2969 IFS=$as_save_IFS
2970 case $as_dir in #(((
2971 '') as_dir=./ ;;
2972 */) ;;
2973 *) as_dir=$as_dir/ ;;
2974 esac
2975 for ac_exec_ext in '' $ac_executable_extensions; do
2976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2977 ac_cv_prog_ac_ct_CC="$ac_prog"
2978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2979 break 2
2980 fi
2981 done
2982 done
2983 IFS=$as_save_IFS
2984
2985 fi ;;
2986 esac
2987 fi
2988 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2989 if test -n "$ac_ct_CC"; then
2990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2991 printf "%s\n" "$ac_ct_CC" >&6; }
2992 else
2993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2994 printf "%s\n" "no" >&6; }
2995 fi
2996
2997
2998 test -n "$ac_ct_CC" && break
2999 done
3000
3001 if test "x$ac_ct_CC" = x; then
3002 CC=""
3003 else
3004 case $cross_compiling:$ac_tool_warned in
3005 yes:)
3006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3007 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3008 ac_tool_warned=yes ;;
3009 esac
3010 CC=$ac_ct_CC
3011 fi
3012 fi
3013
3014 fi
3015 if test -z "$CC"; then
3016 if test -n "$ac_tool_prefix"; then
3017 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3018 set dummy ${ac_tool_prefix}clang; ac_word=$2
3019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020 printf %s "checking for $ac_word... " >&6; }
3021 if test ${ac_cv_prog_CC+y}
3022 then :
3023 printf %s "(cached) " >&6
3024 else case e in #(
3025 e) if test -n "$CC"; then
3026 ac_cv_prog_CC="$CC" # Let the user override the test.
3027 else
3028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3029 for as_dir in $PATH
3030 do
3031 IFS=$as_save_IFS
3032 case $as_dir in #(((
3033 '') as_dir=./ ;;
3034 */) ;;
3035 *) as_dir=$as_dir/ ;;
3036 esac
3037 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3039 ac_cv_prog_CC="${ac_tool_prefix}clang"
3040 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3041 break 2
3042 fi
3043 done
3044 done
3045 IFS=$as_save_IFS
3046
3047 fi ;;
3048 esac
3049 fi
3050 CC=$ac_cv_prog_CC
3051 if test -n "$CC"; then
3052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3053 printf "%s\n" "$CC" >&6; }
3054 else
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 printf "%s\n" "no" >&6; }
3057 fi
3058
3059
3060 fi
3061 if test -z "$ac_cv_prog_CC"; then
3062 ac_ct_CC=$CC
3063 # Extract the first word of "clang", so it can be a program name with args.
3064 set dummy clang; ac_word=$2
3065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3066 printf %s "checking for $ac_word... " >&6; }
3067 if test ${ac_cv_prog_ac_ct_CC+y}
3068 then :
3069 printf %s "(cached) " >&6
3070 else case e in #(
3071 e) if test -n "$ac_ct_CC"; then
3072 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3073 else
3074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3075 for as_dir in $PATH
3076 do
3077 IFS=$as_save_IFS
3078 case $as_dir in #(((
3079 '') as_dir=./ ;;
3080 */) ;;
3081 *) as_dir=$as_dir/ ;;
3082 esac
3083 for ac_exec_ext in '' $ac_executable_extensions; do
3084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3085 ac_cv_prog_ac_ct_CC="clang"
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3087 break 2
3088 fi
3089 done
3090 done
3091 IFS=$as_save_IFS
3092
3093 fi ;;
3094 esac
3095 fi
3096 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097 if test -n "$ac_ct_CC"; then
3098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3099 printf "%s\n" "$ac_ct_CC" >&6; }
3100 else
3101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 printf "%s\n" "no" >&6; }
3103 fi
3104
3105 if test "x$ac_ct_CC" = x; then
3106 CC=""
3107 else
3108 case $cross_compiling:$ac_tool_warned in
3109 yes:)
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3112 ac_tool_warned=yes ;;
3113 esac
3114 CC=$ac_ct_CC
3115 fi
3116 else
3117 CC="$ac_cv_prog_CC"
3118 fi
3119
3120 fi
3121
3122
3123 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3124 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3125 as_fn_error $? "no acceptable C compiler found in \$PATH
3126 See 'config.log' for more details" "$LINENO" 5; }
3127
3128 # Provide some information about the compiler.
3129 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3130 set X $ac_compile
3131 ac_compiler=$2
3132 for ac_option in --version -v -V -qversion -version; do
3133 { { ac_try="$ac_compiler $ac_option >&5"
3134 case "(($ac_try" in
3135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3136 *) ac_try_echo=$ac_try;;
3137 esac
3138 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3139 printf "%s\n" "$ac_try_echo"; } >&5
3140 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3141 ac_status=$?
3142 if test -s conftest.err; then
3143 sed '10a\
3144 ... rest of stderr output deleted ...
3145 10q' conftest.err >conftest.er1
3146 cat conftest.er1 >&5
3147 fi
3148 rm -f conftest.er1 conftest.err
3149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3150 test $ac_status = 0; }
3151 done
3152
3153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154 /* end confdefs.h. */
3155
3156 int
3157 main (void)
3158 {
3159
3160 ;
3161 return 0;
3162 }
3163 _ACEOF
3164 ac_clean_files_save=$ac_clean_files
3165 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3166 # Try to create an executable without -o first, disregard a.out.
3167 # It will help us diagnose broken compilers, and finding out an intuition
3168 # of exeext.
3169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3170 printf %s "checking whether the C compiler works... " >&6; }
3171 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3172
3173 # The possible output files:
3174 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3175
3176 ac_rmfiles=
3177 for ac_file in $ac_files
3178 do
3179 case $ac_file in
3180 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3181 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3182 esac
3183 done
3184 rm -f $ac_rmfiles
3185
3186 if { { ac_try="$ac_link_default"
3187 case "(($ac_try" in
3188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3189 *) ac_try_echo=$ac_try;;
3190 esac
3191 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3192 printf "%s\n" "$ac_try_echo"; } >&5
3193 (eval "$ac_link_default") 2>&5
3194 ac_status=$?
3195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3196 test $ac_status = 0; }
3197 then :
3198 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
3199 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
3200 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3201 # so that the user can short-circuit this test for compilers unknown to
3202 # Autoconf.
3203 for ac_file in $ac_files ''
3204 do
3205 test -f "$ac_file" || continue
3206 case $ac_file in
3207 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3208 ;;
3209 [ab].out )
3210 # We found the default executable, but exeext='' is most
3211 # certainly right.
3212 break;;
3213 *.* )
3214 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3215 then :; else
3216 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 fi
3218 # We set ac_cv_exeext here because the later test for it is not
3219 # safe: cross compilers may not add the suffix if given an '-o'
3220 # argument, so we may need to know it at that point already.
3221 # Even if this section looks crufty: it has the advantage of
3222 # actually working.
3223 break;;
3224 * )
3225 break;;
3226 esac
3227 done
3228 test "$ac_cv_exeext" = no && ac_cv_exeext=
3229
3230 else case e in #(
3231 e) ac_file='' ;;
3232 esac
3233 fi
3234 if test -z "$ac_file"
3235 then :
3236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 printf "%s\n" "no" >&6; }
3238 printf "%s\n" "$as_me: failed program was:" >&5
3239 sed 's/^/| /' conftest.$ac_ext >&5
3240
3241 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3242 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3243 as_fn_error 77 "C compiler cannot create executables
3244 See 'config.log' for more details" "$LINENO" 5; }
3245 else case e in #(
3246 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3247 printf "%s\n" "yes" >&6; } ;;
3248 esac
3249 fi
3250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3251 printf %s "checking for C compiler default output file name... " >&6; }
3252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3253 printf "%s\n" "$ac_file" >&6; }
3254 ac_exeext=$ac_cv_exeext
3255
3256 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3257 ac_clean_files=$ac_clean_files_save
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3259 printf %s "checking for suffix of executables... " >&6; }
3260 if { { ac_try="$ac_link"
3261 case "(($ac_try" in
3262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3263 *) ac_try_echo=$ac_try;;
3264 esac
3265 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3266 printf "%s\n" "$ac_try_echo"; } >&5
3267 (eval "$ac_link") 2>&5
3268 ac_status=$?
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3270 test $ac_status = 0; }
3271 then :
3272 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
3273 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
3274 # work properly (i.e., refer to 'conftest.exe'), while it won't with
3275 # 'rm'.
3276 for ac_file in conftest.exe conftest conftest.*; do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
3279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3280 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3281 break;;
3282 * ) break;;
3283 esac
3284 done
3285 else case e in #(
3286 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3287 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3288 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3289 See 'config.log' for more details" "$LINENO" 5; } ;;
3290 esac
3291 fi
3292 rm -f conftest conftest$ac_cv_exeext
3293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3294 printf "%s\n" "$ac_cv_exeext" >&6; }
3295
3296 rm -f conftest.$ac_ext
3297 EXEEXT=$ac_cv_exeext
3298 ac_exeext=$EXEEXT
3299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3300 /* end confdefs.h. */
3301 #include <stdio.h>
3302 int
3303 main (void)
3304 {
3305 FILE *f = fopen ("conftest.out", "w");
3306 if (!f)
3307 return 1;
3308 return ferror (f) || fclose (f) != 0;
3309
3310 ;
3311 return 0;
3312 }
3313 _ACEOF
3314 ac_clean_files="$ac_clean_files conftest.out"
3315 # Check that the compiler produces executables we can run. If not, either
3316 # the compiler is broken, or we cross compile.
3317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3318 printf %s "checking whether we are cross compiling... " >&6; }
3319 if test "$cross_compiling" != yes; then
3320 { { ac_try="$ac_link"
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_link") 2>&5
3328 ac_status=$?
3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3330 test $ac_status = 0; }
3331 if { ac_try='./conftest$ac_cv_exeext'
3332 { { case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3335 esac
3336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3337 printf "%s\n" "$ac_try_echo"; } >&5
3338 (eval "$ac_try") 2>&5
3339 ac_status=$?
3340 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3341 test $ac_status = 0; }; }; then
3342 cross_compiling=no
3343 else
3344 if test "$cross_compiling" = maybe; then
3345 cross_compiling=yes
3346 else
3347 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3348 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3349 as_fn_error 77 "cannot run C compiled programs.
3350 If you meant to cross compile, use '--host'.
3351 See 'config.log' for more details" "$LINENO" 5; }
3352 fi
3353 fi
3354 fi
3355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3356 printf "%s\n" "$cross_compiling" >&6; }
3357
3358 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
3359 conftest.o conftest.obj conftest.out
3360 ac_clean_files=$ac_clean_files_save
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3362 printf %s "checking for suffix of object files... " >&6; }
3363 if test ${ac_cv_objext+y}
3364 then :
3365 printf %s "(cached) " >&6
3366 else case e in #(
3367 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3368 /* end confdefs.h. */
3369
3370 int
3371 main (void)
3372 {
3373
3374 ;
3375 return 0;
3376 }
3377 _ACEOF
3378 rm -f conftest.o conftest.obj
3379 if { { ac_try="$ac_compile"
3380 case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383 esac
3384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385 printf "%s\n" "$ac_try_echo"; } >&5
3386 (eval "$ac_compile") 2>&5
3387 ac_status=$?
3388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }
3390 then :
3391 for ac_file in conftest.o conftest.obj conftest.*; do
3392 test -f "$ac_file" || continue;
3393 case $ac_file in
3394 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3395 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3396 break;;
3397 esac
3398 done
3399 else case e in #(
3400 e) printf "%s\n" "$as_me: failed program was:" >&5
3401 sed 's/^/| /' conftest.$ac_ext >&5
3402
3403 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3404 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3405 as_fn_error $? "cannot compute suffix of object files: cannot compile
3406 See 'config.log' for more details" "$LINENO" 5; } ;;
3407 esac
3408 fi
3409 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
3410 esac
3411 fi
3412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3413 printf "%s\n" "$ac_cv_objext" >&6; }
3414 OBJEXT=$ac_cv_objext
3415 ac_objext=$OBJEXT
3416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3417 printf %s "checking whether the compiler supports GNU C... " >&6; }
3418 if test ${ac_cv_c_compiler_gnu+y}
3419 then :
3420 printf %s "(cached) " >&6
3421 else case e in #(
3422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3423 /* end confdefs.h. */
3424
3425 int
3426 main (void)
3427 {
3428 #ifndef __GNUC__
3429 choke me
3430 #endif
3431
3432 ;
3433 return 0;
3434 }
3435 _ACEOF
3436 if ac_fn_c_try_compile "$LINENO"
3437 then :
3438 ac_compiler_gnu=yes
3439 else case e in #(
3440 e) ac_compiler_gnu=no ;;
3441 esac
3442 fi
3443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3444 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3445 ;;
3446 esac
3447 fi
3448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3449 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3451
3452 if test $ac_compiler_gnu = yes; then
3453 GCC=yes
3454 else
3455 GCC=
3456 fi
3457 ac_test_CFLAGS=${CFLAGS+y}
3458 ac_save_CFLAGS=$CFLAGS
3459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3460 printf %s "checking whether $CC accepts -g... " >&6; }
3461 if test ${ac_cv_prog_cc_g+y}
3462 then :
3463 printf %s "(cached) " >&6
3464 else case e in #(
3465 e) ac_save_c_werror_flag=$ac_c_werror_flag
3466 ac_c_werror_flag=yes
3467 ac_cv_prog_cc_g=no
3468 CFLAGS="-g"
3469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3470 /* end confdefs.h. */
3471
3472 int
3473 main (void)
3474 {
3475
3476 ;
3477 return 0;
3478 }
3479 _ACEOF
3480 if ac_fn_c_try_compile "$LINENO"
3481 then :
3482 ac_cv_prog_cc_g=yes
3483 else case e in #(
3484 e) CFLAGS=""
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3487
3488 int
3489 main (void)
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 if ac_fn_c_try_compile "$LINENO"
3497 then :
3498
3499 else case e in #(
3500 e) ac_c_werror_flag=$ac_save_c_werror_flag
3501 CFLAGS="-g"
3502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3503 /* end confdefs.h. */
3504
3505 int
3506 main (void)
3507 {
3508
3509 ;
3510 return 0;
3511 }
3512 _ACEOF
3513 if ac_fn_c_try_compile "$LINENO"
3514 then :
3515 ac_cv_prog_cc_g=yes
3516 fi
3517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3518 esac
3519 fi
3520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3521 esac
3522 fi
3523 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3524 ac_c_werror_flag=$ac_save_c_werror_flag ;;
3525 esac
3526 fi
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3528 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3529 if test $ac_test_CFLAGS; then
3530 CFLAGS=$ac_save_CFLAGS
3531 elif test $ac_cv_prog_cc_g = yes; then
3532 if test "$GCC" = yes; then
3533 CFLAGS="-g -O2"
3534 else
3535 CFLAGS="-g"
3536 fi
3537 else
3538 if test "$GCC" = yes; then
3539 CFLAGS="-O2"
3540 else
3541 CFLAGS=
3542 fi
3543 fi
3544 ac_prog_cc_stdc=no
3545 if test x$ac_prog_cc_stdc = xno
3546 then :
3547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3548 printf %s "checking for $CC option to enable C11 features... " >&6; }
3549 if test ${ac_cv_prog_cc_c11+y}
3550 then :
3551 printf %s "(cached) " >&6
3552 else case e in #(
3553 e) ac_cv_prog_cc_c11=no
3554 ac_save_CC=$CC
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556 /* end confdefs.h. */
3557 $ac_c_conftest_c11_program
3558 _ACEOF
3559 for ac_arg in '' -std=gnu11
3560 do
3561 CC="$ac_save_CC $ac_arg"
3562 if ac_fn_c_try_compile "$LINENO"
3563 then :
3564 ac_cv_prog_cc_c11=$ac_arg
3565 fi
3566 rm -f core conftest.err conftest.$ac_objext conftest.beam
3567 test "x$ac_cv_prog_cc_c11" != "xno" && break
3568 done
3569 rm -f conftest.$ac_ext
3570 CC=$ac_save_CC ;;
3571 esac
3572 fi
3573
3574 if test "x$ac_cv_prog_cc_c11" = xno
3575 then :
3576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3577 printf "%s\n" "unsupported" >&6; }
3578 else case e in #(
3579 e) if test "x$ac_cv_prog_cc_c11" = x
3580 then :
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3582 printf "%s\n" "none needed" >&6; }
3583 else case e in #(
3584 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3585 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3586 CC="$CC $ac_cv_prog_cc_c11" ;;
3587 esac
3588 fi
3589 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3590 ac_prog_cc_stdc=c11 ;;
3591 esac
3592 fi
3593 fi
3594 if test x$ac_prog_cc_stdc = xno
3595 then :
3596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3597 printf %s "checking for $CC option to enable C99 features... " >&6; }
3598 if test ${ac_cv_prog_cc_c99+y}
3599 then :
3600 printf %s "(cached) " >&6
3601 else case e in #(
3602 e) ac_cv_prog_cc_c99=no
3603 ac_save_CC=$CC
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3605 /* end confdefs.h. */
3606 $ac_c_conftest_c99_program
3607 _ACEOF
3608 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3609 do
3610 CC="$ac_save_CC $ac_arg"
3611 if ac_fn_c_try_compile "$LINENO"
3612 then :
3613 ac_cv_prog_cc_c99=$ac_arg
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.beam
3616 test "x$ac_cv_prog_cc_c99" != "xno" && break
3617 done
3618 rm -f conftest.$ac_ext
3619 CC=$ac_save_CC ;;
3620 esac
3621 fi
3622
3623 if test "x$ac_cv_prog_cc_c99" = xno
3624 then :
3625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3626 printf "%s\n" "unsupported" >&6; }
3627 else case e in #(
3628 e) if test "x$ac_cv_prog_cc_c99" = x
3629 then :
3630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3631 printf "%s\n" "none needed" >&6; }
3632 else case e in #(
3633 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3634 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3635 CC="$CC $ac_cv_prog_cc_c99" ;;
3636 esac
3637 fi
3638 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3639 ac_prog_cc_stdc=c99 ;;
3640 esac
3641 fi
3642 fi
3643 if test x$ac_prog_cc_stdc = xno
3644 then :
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3646 printf %s "checking for $CC option to enable C89 features... " >&6; }
3647 if test ${ac_cv_prog_cc_c89+y}
3648 then :
3649 printf %s "(cached) " >&6
3650 else case e in #(
3651 e) ac_cv_prog_cc_c89=no
3652 ac_save_CC=$CC
3653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654 /* end confdefs.h. */
3655 $ac_c_conftest_c89_program
3656 _ACEOF
3657 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3658 do
3659 CC="$ac_save_CC $ac_arg"
3660 if ac_fn_c_try_compile "$LINENO"
3661 then :
3662 ac_cv_prog_cc_c89=$ac_arg
3663 fi
3664 rm -f core conftest.err conftest.$ac_objext conftest.beam
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
3666 done
3667 rm -f conftest.$ac_ext
3668 CC=$ac_save_CC ;;
3669 esac
3670 fi
3671
3672 if test "x$ac_cv_prog_cc_c89" = xno
3673 then :
3674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 printf "%s\n" "unsupported" >&6; }
3676 else case e in #(
3677 e) if test "x$ac_cv_prog_cc_c89" = x
3678 then :
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3680 printf "%s\n" "none needed" >&6; }
3681 else case e in #(
3682 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3683 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3684 CC="$CC $ac_cv_prog_cc_c89" ;;
3685 esac
3686 fi
3687 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3688 ac_prog_cc_stdc=c89 ;;
3689 esac
3690 fi
3691 fi
3692
3693 ac_ext=c
3694 ac_cpp='$CPP $CPPFLAGS'
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3698
3699
3700 ac_ext=c
3701 ac_cpp='$CPP $CPPFLAGS'
3702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3706 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3707 if test ${am_cv_prog_cc_c_o+y}
3708 then :
3709 printf %s "(cached) " >&6
3710 else case e in #(
3711 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3712 /* end confdefs.h. */
3713
3714 int
3715 main (void)
3716 {
3717
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 # Make sure it works both with $CC and with simple cc.
3723 # Following AC_PROG_CC_C_O, we do the test twice because some
3724 # compilers refuse to overwrite an existing .o file with -o,
3725 # though they will create one.
3726 am_cv_prog_cc_c_o=yes
3727 for am_i in 1 2; do
3728 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3729 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); } \
3733 && test -f conftest2.$ac_objext; then
3734 : OK
3735 else
3736 am_cv_prog_cc_c_o=no
3737 break
3738 fi
3739 done
3740 # aligned with autoconf, so not including core; see bug#72225.
3741 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
3742 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
3743 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
3744 unset am_i ;;
3745 esac
3746 fi
3747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3748 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3749 if test "$am_cv_prog_cc_c_o" != yes; then
3750 # Losing compiler, so override with the script.
3751 # FIXME: It is wrong to rewrite CC.
3752 # But if we don't then we get into trouble of one sort or another.
3753 # A longer-term fix would be to have automake use am__CC in this case,
3754 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3755 CC="$am_aux_dir/compile $CC"
3756 fi
3757 ac_ext=c
3758 ac_cpp='$CPP $CPPFLAGS'
3759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3762
3763
3764
3765 ac_header= ac_cache=
3766 for ac_item in $ac_header_c_list
3767 do
3768 if test $ac_cache; then
3769 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3770 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3771 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3772 fi
3773 ac_header= ac_cache=
3774 elif test $ac_header; then
3775 ac_cache=$ac_item
3776 else
3777 ac_header=$ac_item
3778 fi
3779 done
3780
3781
3782
3783
3784
3785
3786
3787
3788 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3789 then :
3790
3791 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3792
3793 fi
3794
3795
3796
3797
3798
3799
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3801 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3802 if test ${ac_cv_safe_to_define___extensions__+y}
3803 then :
3804 printf %s "(cached) " >&6
3805 else case e in #(
3806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808
3809 # define __EXTENSIONS__ 1
3810 $ac_includes_default
3811 int
3812 main (void)
3813 {
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 if ac_fn_c_try_compile "$LINENO"
3820 then :
3821 ac_cv_safe_to_define___extensions__=yes
3822 else case e in #(
3823 e) ac_cv_safe_to_define___extensions__=no ;;
3824 esac
3825 fi
3826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3827 esac
3828 fi
3829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3830 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3831
3832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3833 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3834 if test ${ac_cv_should_define__xopen_source+y}
3835 then :
3836 printf %s "(cached) " >&6
3837 else case e in #(
3838 e) ac_cv_should_define__xopen_source=no
3839 if test $ac_cv_header_wchar_h = yes
3840 then :
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 #include <wchar.h>
3845 mbstate_t x;
3846 int
3847 main (void)
3848 {
3849
3850 ;
3851 return 0;
3852 }
3853 _ACEOF
3854 if ac_fn_c_try_compile "$LINENO"
3855 then :
3856
3857 else case e in #(
3858 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860
3861 #define _XOPEN_SOURCE 500
3862 #include <wchar.h>
3863 mbstate_t x;
3864 int
3865 main (void)
3866 {
3867
3868 ;
3869 return 0;
3870 }
3871 _ACEOF
3872 if ac_fn_c_try_compile "$LINENO"
3873 then :
3874 ac_cv_should_define__xopen_source=yes
3875 fi
3876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3877 esac
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3880 fi ;;
3881 esac
3882 fi
3883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3884 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3885
3886 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3887
3888 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3889
3890 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3891
3892 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3893
3894 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3895
3896 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3897
3898 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3899
3900 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3901
3902 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3903
3904 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3905
3906 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
3907
3908 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3909
3910 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3911
3912 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3913
3914 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3915
3916 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3917
3918 if test $ac_cv_header_minix_config_h = yes
3919 then :
3920 MINIX=yes
3921 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3922
3923 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3924
3925 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3926
3927 else case e in #(
3928 e) MINIX= ;;
3929 esac
3930 fi
3931 if test $ac_cv_safe_to_define___extensions__ = yes
3932 then :
3933 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3934
3935 fi
3936 if test $ac_cv_should_define__xopen_source = yes
3937 then :
3938 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3939
3940 fi
3941
3942
3943 # Initialize Automake
3944 am__api_version='1.18'
3945
3946
3947 # Find a good install program. We prefer a C program (faster),
3948 # so one script is as good as another. But avoid the broken or
3949 # incompatible versions:
3950 # SysV /etc/install, /usr/sbin/install
3951 # SunOS /usr/etc/install
3952 # IRIX /sbin/install
3953 # AIX /bin/install
3954 # AmigaOS /C/install, which installs bootblocks on floppy discs
3955 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3958 # OS/2's system install, which has a completely different semantic
3959 # ./install, which can be erroneously created by make from ./install.sh.
3960 # Reject install programs that cannot install multiple files.
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3962 printf %s "checking for a BSD-compatible install... " >&6; }
3963 if test -z "$INSTALL"; then
3964 if test ${ac_cv_path_install+y}
3965 then :
3966 printf %s "(cached) " >&6
3967 else case e in #(
3968 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 for as_dir in $PATH
3970 do
3971 IFS=$as_save_IFS
3972 case $as_dir in #(((
3973 '') as_dir=./ ;;
3974 */) ;;
3975 *) as_dir=$as_dir/ ;;
3976 esac
3977 # Account for fact that we put trailing slashes in our PATH walk.
3978 case $as_dir in #((
3979 ./ | /[cC]/* | \
3980 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3981 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3982 /usr/ucb/* ) ;;
3983 *)
3984 # OSF1 and SCO ODT 3.0 have their own names for install.
3985 # Don't use installbsd from OSF since it installs stuff as root
3986 # by default.
3987 for ac_prog in ginstall scoinst install; do
3988 for ac_exec_ext in '' $ac_executable_extensions; do
3989 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3990 if test $ac_prog = install &&
3991 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3992 # AIX install. It has an incompatible calling convention.
3993 :
3994 elif test $ac_prog = install &&
3995 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3996 # program-specific install script used by HP pwplus--don't use.
3997 :
3998 else
3999 rm -rf conftest.one conftest.two conftest.dir
4000 echo one > conftest.one
4001 echo two > conftest.two
4002 mkdir conftest.dir
4003 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4004 test -s conftest.one && test -s conftest.two &&
4005 test -s conftest.dir/conftest.one &&
4006 test -s conftest.dir/conftest.two
4007 then
4008 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4009 break 3
4010 fi
4011 fi
4012 fi
4013 done
4014 done
4015 ;;
4016 esac
4017
4018 done
4019 IFS=$as_save_IFS
4020
4021 rm -rf conftest.one conftest.two conftest.dir
4022 ;;
4023 esac
4024 fi
4025 if test ${ac_cv_path_install+y}; then
4026 INSTALL=$ac_cv_path_install
4027 else
4028 # As a last resort, use the slow shell script. Don't cache a
4029 # value for INSTALL within a source directory, because that will
4030 # break other packages using the cache if that directory is
4031 # removed, or if the value is a relative name.
4032 INSTALL=$ac_install_sh
4033 fi
4034 fi
4035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4036 printf "%s\n" "$INSTALL" >&6; }
4037
4038 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4039 # It thinks the first close brace ends the variable substitution.
4040 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4041
4042 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4043
4044 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4045
4046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4047 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4048 if test ${am_cv_sleep_fractional_seconds+y}
4049 then :
4050 printf %s "(cached) " >&6
4051 else case e in #(
4052 e) if sleep 0.001 2>/dev/null
4053 then :
4054 am_cv_sleep_fractional_seconds=yes
4055 else case e in #(
4056 e) am_cv_sleep_fractional_seconds=no ;;
4057 esac
4058 fi
4059 ;;
4060 esac
4061 fi
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4063 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4064
4065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4066 printf %s "checking filesystem timestamp resolution... " >&6; }
4067 if test ${am_cv_filesystem_timestamp_resolution+y}
4068 then :
4069 printf %s "(cached) " >&6
4070 else case e in #(
4071 e) # Default to the worst case.
4072 am_cv_filesystem_timestamp_resolution=2
4073
4074 # Only try to go finer than 1 sec if sleep can do it.
4075 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4076 # - 1 sec is not much of a win compared to 2 sec, and
4077 # - it takes 2 seconds to perform the test whether 1 sec works.
4078 #
4079 # Instead, just use the default 2s on platforms that have 1s resolution,
4080 # accept the extra 1s delay when using $sleep in the Automake tests, in
4081 # exchange for not incurring the 2s delay for running the test for all
4082 # packages.
4083 #
4084 am_try_resolutions=
4085 if test "$am_cv_sleep_fractional_seconds" = yes; then
4086 # Even a millisecond often causes a bunch of false positives,
4087 # so just try a hundredth of a second. The time saved between .001 and
4088 # .01 is not terribly consequential.
4089 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4090 fi
4091
4092 # In order to catch current-generation FAT out, we must *modify* files
4093 # that already exist; the *creation* timestamp is finer. Use names
4094 # that make ls -t sort them differently when they have equal
4095 # timestamps than when they have distinct timestamps, keeping
4096 # in mind that ls -t prints the *newest* file first.
4097 rm -f conftest.ts?
4098 : > conftest.ts1
4099 : > conftest.ts2
4100 : > conftest.ts3
4101
4102 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4103 # clobber the current shell's arguments. (Outer-level square brackets
4104 # are removed by m4; they're present so that m4 does not expand
4105 # <dollar><star>; be careful, easy to get confused.)
4106 if (
4107 set X `ls -t conftest.ts[12]` &&
4108 {
4109 test "$*" != "X conftest.ts1 conftest.ts2" ||
4110 test "$*" != "X conftest.ts2 conftest.ts1";
4111 }
4112 ); then :; else
4113 # If neither matched, then we have a broken ls. This can happen
4114 # if, for instance, CONFIG_SHELL is bash and it inherits a
4115 # broken ls alias from the environment. This has actually
4116 # happened. Such a system could not be considered "sane".
4117 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4118 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4119 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4120 as_fn_error $? "ls -t produces unexpected output.
4121 Make sure there is not a broken ls alias in your environment.
4122 See 'config.log' for more details" "$LINENO" 5; }
4123 fi
4124
4125 for am_try_res in $am_try_resolutions; do
4126 # Any one fine-grained sleep might happen to cross the boundary
4127 # between two values of a coarser actual resolution, but if we do
4128 # two fine-grained sleeps in a row, at least one of them will fall
4129 # entirely within a coarse interval.
4130 echo alpha > conftest.ts1
4131 sleep $am_try_res
4132 echo beta > conftest.ts2
4133 sleep $am_try_res
4134 echo gamma > conftest.ts3
4135
4136 # We assume that 'ls -t' will make use of high-resolution
4137 # timestamps if the operating system supports them at all.
4138 if (set X `ls -t conftest.ts?` &&
4139 test "$2" = conftest.ts3 &&
4140 test "$3" = conftest.ts2 &&
4141 test "$4" = conftest.ts1); then
4142 #
4143 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4144 # because we don't need to test make.
4145 make_ok=true
4146 if test $am_try_res != 1; then
4147 # But if we've succeeded so far with a subsecond resolution, we
4148 # have one more thing to check: make. It can happen that
4149 # everything else supports the subsecond mtimes, but make doesn't;
4150 # notably on macOS, which ships make 3.81 from 2006 (the last one
4151 # released under GPLv2). https://bugs.gnu.org/68808
4152 #
4153 # We test $MAKE if it is defined in the environment, else "make".
4154 # It might get overridden later, but our hope is that in practice
4155 # it does not matter: it is the system "make" which is (by far)
4156 # the most likely to be broken, whereas if the user overrides it,
4157 # probably they did so with a better, or at least not worse, make.
4158 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4159 #
4160 # Create a Makefile (real tab character here):
4161 rm -f conftest.mk
4162 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4163 echo ' touch conftest.ts2' >>conftest.mk
4164 #
4165 # Now, running
4166 # touch conftest.ts1; touch conftest.ts2; make
4167 # should touch ts1 because ts2 is newer. This could happen by luck,
4168 # but most often, it will fail if make's support is insufficient. So
4169 # test for several consecutive successes.
4170 #
4171 # (We reuse conftest.ts[12] because we still want to modify existing
4172 # files, not create new ones, per above.)
4173 n=0
4174 make=${MAKE-make}
4175 until test $n -eq 3; do
4176 echo one > conftest.ts1
4177 sleep $am_try_res
4178 echo two > conftest.ts2 # ts2 should now be newer than ts1
4179 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4180 make_ok=false
4181 break # out of $n loop
4182 fi
4183 n=`expr $n + 1`
4184 done
4185 fi
4186 #
4187 if $make_ok; then
4188 # Everything we know to check worked out, so call this resolution good.
4189 am_cv_filesystem_timestamp_resolution=$am_try_res
4190 break # out of $am_try_res loop
4191 fi
4192 # Otherwise, we'll go on to check the next resolution.
4193 fi
4194 done
4195 rm -f conftest.ts?
4196 # (end _am_filesystem_timestamp_resolution)
4197 ;;
4198 esac
4199 fi
4200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4201 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4202
4203 # This check should not be cached, as it may vary across builds of
4204 # different projects.
4205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4206 printf %s "checking whether build environment is sane... " >&6; }
4207 # Reject unsafe characters in $srcdir or the absolute working directory
4208 # name. Accept space and tab only in the latter.
4209 am_lf='
4210 '
4211 case `pwd` in
4212 *[\\\"\#\$\&\'\`$am_lf]*)
4213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 printf "%s\n" "no" >&6; }
4215 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4216 esac
4217 case $srcdir in
4218 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 printf "%s\n" "no" >&6; }
4221 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4222 esac
4223
4224 # Do 'set' in a subshell so we don't clobber the current shell's
4225 # arguments. Must try -L first in case configure is actually a
4226 # symlink; some systems play weird games with the mod time of symlinks
4227 # (eg FreeBSD returns the mod time of the symlink's containing
4228 # directory).
4229 am_build_env_is_sane=no
4230 am_has_slept=no
4231 rm -f conftest.file
4232 for am_try in 1 2; do
4233 echo "timestamp, slept: $am_has_slept" > conftest.file
4234 if (
4235 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4236 if test "$*" = "X"; then
4237 # -L didn't work.
4238 set X `ls -t "$srcdir/configure" conftest.file`
4239 fi
4240 test "$2" = conftest.file
4241 ); then
4242 am_build_env_is_sane=yes
4243 break
4244 fi
4245 # Just in case.
4246 sleep "$am_cv_filesystem_timestamp_resolution"
4247 am_has_slept=yes
4248 done
4249
4250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4251 printf "%s\n" "$am_build_env_is_sane" >&6; }
4252 if test "$am_build_env_is_sane" = no; then
4253 as_fn_error $? "newly created file is older than distributed files!
4254 Check your system clock" "$LINENO" 5
4255 fi
4256
4257 # If we didn't sleep, we still need to ensure time stamps of config.status and
4258 # generated files are strictly newer.
4259 am_sleep_pid=
4260 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4261 then :
4262
4263 else case e in #(
4264 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4265 am_sleep_pid=$!
4266 ;;
4267 esac
4268 fi
4269
4270 rm -f conftest.file
4271
4272 test "$program_prefix" != NONE &&
4273 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4274 # Use a double $ so make ignores it.
4275 test "$program_suffix" != NONE &&
4276 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4277 # Double any \ or $.
4278 # By default was 's,x,x', remove it if useless.
4279 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4280 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4281
4282
4283 if test x"${MISSING+set}" != xset; then
4284 MISSING="\${SHELL} '$am_aux_dir/missing'"
4285 fi
4286 # Use eval to expand $SHELL
4287 if eval "$MISSING --is-lightweight"; then
4288 am_missing_run="$MISSING "
4289 else
4290 am_missing_run=
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4292 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4293 fi
4294
4295 if test x"${install_sh+set}" != xset; then
4296 case $am_aux_dir in
4297 *\ * | *\ *)
4298 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4299 *)
4300 install_sh="\${SHELL} $am_aux_dir/install-sh"
4301 esac
4302 fi
4303
4304 # Installed binaries are usually stripped using 'strip' when the user
4305 # run "make install-strip". However 'strip' might not be the right
4306 # tool to use in cross-compilation environments, therefore Automake
4307 # will honor the 'STRIP' environment variable to overrule this program.
4308 if test "$cross_compiling" != no; then
4309 if test -n "$ac_tool_prefix"; then
4310 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4311 set dummy ${ac_tool_prefix}strip; ac_word=$2
4312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 printf %s "checking for $ac_word... " >&6; }
4314 if test ${ac_cv_prog_STRIP+y}
4315 then :
4316 printf %s "(cached) " >&6
4317 else case e in #(
4318 e) if test -n "$STRIP"; then
4319 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4320 else
4321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4322 for as_dir in $PATH
4323 do
4324 IFS=$as_save_IFS
4325 case $as_dir in #(((
4326 '') as_dir=./ ;;
4327 */) ;;
4328 *) as_dir=$as_dir/ ;;
4329 esac
4330 for ac_exec_ext in '' $ac_executable_extensions; do
4331 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4333 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4334 break 2
4335 fi
4336 done
4337 done
4338 IFS=$as_save_IFS
4339
4340 fi ;;
4341 esac
4342 fi
4343 STRIP=$ac_cv_prog_STRIP
4344 if test -n "$STRIP"; then
4345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4346 printf "%s\n" "$STRIP" >&6; }
4347 else
4348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4349 printf "%s\n" "no" >&6; }
4350 fi
4351
4352
4353 fi
4354 if test -z "$ac_cv_prog_STRIP"; then
4355 ac_ct_STRIP=$STRIP
4356 # Extract the first word of "strip", so it can be a program name with args.
4357 set dummy strip; ac_word=$2
4358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4359 printf %s "checking for $ac_word... " >&6; }
4360 if test ${ac_cv_prog_ac_ct_STRIP+y}
4361 then :
4362 printf %s "(cached) " >&6
4363 else case e in #(
4364 e) if test -n "$ac_ct_STRIP"; then
4365 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4369 do
4370 IFS=$as_save_IFS
4371 case $as_dir in #(((
4372 '') as_dir=./ ;;
4373 */) ;;
4374 *) as_dir=$as_dir/ ;;
4375 esac
4376 for ac_exec_ext in '' $ac_executable_extensions; do
4377 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4378 ac_cv_prog_ac_ct_STRIP="strip"
4379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4380 break 2
4381 fi
4382 done
4383 done
4384 IFS=$as_save_IFS
4385
4386 fi ;;
4387 esac
4388 fi
4389 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4390 if test -n "$ac_ct_STRIP"; then
4391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4392 printf "%s\n" "$ac_ct_STRIP" >&6; }
4393 else
4394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4395 printf "%s\n" "no" >&6; }
4396 fi
4397
4398 if test "x$ac_ct_STRIP" = x; then
4399 STRIP=":"
4400 else
4401 case $cross_compiling:$ac_tool_warned in
4402 yes:)
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4404 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4405 ac_tool_warned=yes ;;
4406 esac
4407 STRIP=$ac_ct_STRIP
4408 fi
4409 else
4410 STRIP="$ac_cv_prog_STRIP"
4411 fi
4412
4413 fi
4414 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4415
4416
4417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4418 printf %s "checking for a race-free mkdir -p... " >&6; }
4419 if test -z "$MKDIR_P"; then
4420 if test ${ac_cv_path_mkdir+y}
4421 then :
4422 printf %s "(cached) " >&6
4423 else case e in #(
4424 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4425 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4426 do
4427 IFS=$as_save_IFS
4428 case $as_dir in #(((
4429 '') as_dir=./ ;;
4430 */) ;;
4431 *) as_dir=$as_dir/ ;;
4432 esac
4433 for ac_prog in mkdir gmkdir; do
4434 for ac_exec_ext in '' $ac_executable_extensions; do
4435 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4436 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4437 'mkdir ('*'coreutils) '* | \
4438 *'BusyBox '* | \
4439 'mkdir (fileutils) '4.1*)
4440 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4441 break 3;;
4442 esac
4443 done
4444 done
4445 done
4446 IFS=$as_save_IFS
4447 ;;
4448 esac
4449 fi
4450
4451 test -d ./--version && rmdir ./--version
4452 if test ${ac_cv_path_mkdir+y}; then
4453 MKDIR_P="$ac_cv_path_mkdir -p"
4454 else
4455 # As a last resort, use plain mkdir -p,
4456 # in the hope it doesn't have the bugs of ancient mkdir.
4457 MKDIR_P='mkdir -p'
4458 fi
4459 fi
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4461 printf "%s\n" "$MKDIR_P" >&6; }
4462
4463 for ac_prog in gawk mawk nawk awk
4464 do
4465 # Extract the first word of "$ac_prog", so it can be a program name with args.
4466 set dummy $ac_prog; ac_word=$2
4467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4468 printf %s "checking for $ac_word... " >&6; }
4469 if test ${ac_cv_prog_AWK+y}
4470 then :
4471 printf %s "(cached) " >&6
4472 else case e in #(
4473 e) if test -n "$AWK"; then
4474 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4475 else
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4477 for as_dir in $PATH
4478 do
4479 IFS=$as_save_IFS
4480 case $as_dir in #(((
4481 '') as_dir=./ ;;
4482 */) ;;
4483 *) as_dir=$as_dir/ ;;
4484 esac
4485 for ac_exec_ext in '' $ac_executable_extensions; do
4486 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4487 ac_cv_prog_AWK="$ac_prog"
4488 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4489 break 2
4490 fi
4491 done
4492 done
4493 IFS=$as_save_IFS
4494
4495 fi ;;
4496 esac
4497 fi
4498 AWK=$ac_cv_prog_AWK
4499 if test -n "$AWK"; then
4500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4501 printf "%s\n" "$AWK" >&6; }
4502 else
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4504 printf "%s\n" "no" >&6; }
4505 fi
4506
4507
4508 test -n "$AWK" && break
4509 done
4510
4511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4512 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4513 set x ${MAKE-make}
4514 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4515 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4516 then :
4517 printf %s "(cached) " >&6
4518 else case e in #(
4519 e) cat >conftest.make <<\_ACEOF
4520 SHELL = /bin/sh
4521 all:
4522 @echo '@@@%%%=$(MAKE)=@@@%%%'
4523 _ACEOF
4524 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4525 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4526 *@@@%%%=?*=@@@%%%*)
4527 eval ac_cv_prog_make_${ac_make}_set=yes;;
4528 *)
4529 eval ac_cv_prog_make_${ac_make}_set=no;;
4530 esac
4531 rm -f conftest.make ;;
4532 esac
4533 fi
4534 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4536 printf "%s\n" "yes" >&6; }
4537 SET_MAKE=
4538 else
4539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4540 printf "%s\n" "no" >&6; }
4541 SET_MAKE="MAKE=${MAKE-make}"
4542 fi
4543
4544 rm -rf .tst 2>/dev/null
4545 mkdir .tst 2>/dev/null
4546 if test -d .tst; then
4547 am__leading_dot=.
4548 else
4549 am__leading_dot=_
4550 fi
4551 rmdir .tst 2>/dev/null
4552
4553 DEPDIR="${am__leading_dot}deps"
4554
4555 ac_config_commands="$ac_config_commands depfiles"
4556
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4558 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4559 cat > confinc.mk << 'END'
4560 am__doit:
4561 @echo this is the am__doit target >confinc.out
4562 .PHONY: am__doit
4563 END
4564 am__include="#"
4565 am__quote=
4566 # BSD make does it like this.
4567 echo '.include "confinc.mk" # ignored' > confmf.BSD
4568 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4569 echo 'include confinc.mk # ignored' > confmf.GNU
4570 _am_result=no
4571 for s in GNU BSD; do
4572 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4573 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }
4577 case $?:`cat confinc.out 2>/dev/null` in #(
4578 '0:this is the am__doit target') :
4579 case $s in #(
4580 BSD) :
4581 am__include='.include' am__quote='"' ;; #(
4582 *) :
4583 am__include='include' am__quote='' ;;
4584 esac ;; #(
4585 *) :
4586 ;;
4587 esac
4588 if test "$am__include" != "#"; then
4589 _am_result="yes ($s style)"
4590 break
4591 fi
4592 done
4593 rm -f confinc.* confmf.*
4594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4595 printf "%s\n" "${_am_result}" >&6; }
4596
4597 # Check whether --enable-dependency-tracking was given.
4598 if test ${enable_dependency_tracking+y}
4599 then :
4600 enableval=$enable_dependency_tracking;
4601 fi
4602
4603 if test "x$enable_dependency_tracking" != xno; then
4604 am_depcomp="$ac_aux_dir/depcomp"
4605 AMDEPBACKSLASH='\'
4606 am__nodep='_no'
4607 fi
4608 if test "x$enable_dependency_tracking" != xno; then
4609 AMDEP_TRUE=
4610 AMDEP_FALSE='#'
4611 else
4612 AMDEP_TRUE='#'
4613 AMDEP_FALSE=
4614 fi
4615
4616
4617 AM_DEFAULT_VERBOSITY=1
4618 # Check whether --enable-silent-rules was given.
4619 if test ${enable_silent_rules+y}
4620 then :
4621 enableval=$enable_silent_rules;
4622 fi
4623
4624 am_make=${MAKE-make}
4625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4626 printf %s "checking whether $am_make supports nested variables... " >&6; }
4627 if test ${am_cv_make_support_nested_variables+y}
4628 then :
4629 printf %s "(cached) " >&6
4630 else case e in #(
4631 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4632 BAR0=false
4633 BAR1=true
4634 V=1
4635 am__doit:
4636 @$(TRUE)
4637 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4638 am_cv_make_support_nested_variables=yes
4639 else
4640 am_cv_make_support_nested_variables=no
4641 fi ;;
4642 esac
4643 fi
4644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4645 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4646 AM_BACKSLASH='\'
4647
4648 am__rm_f_notfound=
4649 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4650 then :
4651
4652 else case e in #(
4653 e) am__rm_f_notfound='""' ;;
4654 esac
4655 fi
4656
4657
4658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4659 printf %s "checking xargs -n works... " >&6; }
4660 if test ${am_cv_xargs_n_works+y}
4661 then :
4662 printf %s "(cached) " >&6
4663 else case e in #(
4664 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4665 3"
4666 then :
4667 am_cv_xargs_n_works=yes
4668 else case e in #(
4669 e) am_cv_xargs_n_works=no ;;
4670 esac
4671 fi ;;
4672 esac
4673 fi
4674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4675 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4676 if test "$am_cv_xargs_n_works" = yes
4677 then :
4678 am__xargs_n='xargs -n'
4679 else case e in #(
4680 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4681 ;;
4682 esac
4683 fi
4684
4685 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4686 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4687 # is not polluted with repeated "-I."
4688 am__isrc=' -I$(srcdir)'
4689 # test to see if srcdir already configured
4690 if test -f $srcdir/config.status; then
4691 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4692 fi
4693 fi
4694
4695 # test whether we have cygpath
4696 if test -z "$CYGPATH_W"; then
4697 if (cygpath --version) >/dev/null 2>/dev/null; then
4698 CYGPATH_W='cygpath -w'
4699 else
4700 CYGPATH_W=echo
4701 fi
4702 fi
4703
4704
4705 # Define the identity of the package.
4706 PACKAGE='libfontenc'
4707 VERSION='1.1.9'
4708
4709
4710 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4711
4712
4713 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4714
4715 # Some tools Automake needs.
4716
4717 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4718
4719
4720 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4721
4722
4723 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4724
4725
4726 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4727
4728
4729 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4730
4731 # For better backward compatibility. To be removed once Automake 1.9.x
4732 # dies out for good. For more background, see:
4733 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4734 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4735 mkdir_p='$(MKDIR_P)'
4736
4737 # We need awk for the "check" target (and possibly the TAP driver). The
4738 # system "awk" is bad on some platforms.
4739 # Always define AMTAR for backward compatibility. Yes, it's still used
4740 # in the wild :-( We should find a proper way to deprecate it ...
4741 AMTAR='$${TAR-tar}'
4742
4743
4744 # We'll loop over all known methods to create a tar archive until one works.
4745 _am_tools='gnutar plaintar pax cpio none'
4746
4747 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4748 # There is notably a 21 bits limit for the UID and the GID. In fact,
4749 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4750 # and bug#13588).
4751 am_max_uid=2097151 # 2^21 - 1
4752 am_max_gid=$am_max_uid
4753 # The $UID and $GID variables are not portable, so we need to resort
4754 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4755 # below are definitely unexpected, so allow the users to see them
4756 # (that is, avoid stderr redirection).
4757 am_uid=`id -u || echo unknown`
4758 am_gid=`id -g || echo unknown`
4759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4760 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4761 if test x$am_uid = xunknown; then
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4763 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4764 elif test $am_uid -le $am_max_uid; then
4765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4766 printf "%s\n" "yes" >&6; }
4767 else
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769 printf "%s\n" "no" >&6; }
4770 _am_tools=none
4771 fi
4772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4773 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4774 if test x$gm_gid = xunknown; then
4775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4776 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4777 elif test $am_gid -le $am_max_gid; then
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4779 printf "%s\n" "yes" >&6; }
4780 else
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf "%s\n" "no" >&6; }
4783 _am_tools=none
4784 fi
4785
4786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4787 printf %s "checking how to create a ustar tar archive... " >&6; }
4788
4789 # Go ahead even if we have the value already cached. We do so because we
4790 # need to set the values for the 'am__tar' and 'am__untar' variables.
4791 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4792
4793 for _am_tool in $_am_tools; do
4794 case $_am_tool in
4795 gnutar)
4796 for _am_tar in tar gnutar gtar; do
4797 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4798 ($_am_tar --version) >&5 2>&5
4799 ac_status=$?
4800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801 (exit $ac_status); } && break
4802 done
4803 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4804 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4805 am__untar="$_am_tar -xf -"
4806 ;;
4807 plaintar)
4808 # Must skip GNU tar: if it does not support --format= it doesn't create
4809 # ustar tarball either.
4810 (tar --version) >/dev/null 2>&1 && continue
4811 am__tar='tar chf - "$$tardir"'
4812 am__tar_='tar chf - "$tardir"'
4813 am__untar='tar xf -'
4814 ;;
4815 pax)
4816 am__tar='pax -L -x ustar -w "$$tardir"'
4817 am__tar_='pax -L -x ustar -w "$tardir"'
4818 am__untar='pax -r'
4819 ;;
4820 cpio)
4821 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4822 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4823 am__untar='cpio -i -H ustar -d'
4824 ;;
4825 none)
4826 am__tar=false
4827 am__tar_=false
4828 am__untar=false
4829 ;;
4830 esac
4831
4832 # If the value was cached, stop now. We just wanted to have am__tar
4833 # and am__untar set.
4834 test -n "${am_cv_prog_tar_ustar}" && break
4835
4836 # tar/untar a dummy directory, and stop if the command works.
4837 rm -rf conftest.dir
4838 mkdir conftest.dir
4839 echo GrepMe > conftest.dir/file
4840 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4841 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4842 ac_status=$?
4843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4844 (exit $ac_status); }
4845 rm -rf conftest.dir
4846 if test -s conftest.tar; then
4847 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4848 ($am__untar <conftest.tar) >&5 2>&5
4849 ac_status=$?
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); }
4852 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4853 (cat conftest.dir/file) >&5 2>&5
4854 ac_status=$?
4855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856 (exit $ac_status); }
4857 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4858 fi
4859 done
4860 rm -rf conftest.dir
4861
4862 if test ${am_cv_prog_tar_ustar+y}
4863 then :
4864 printf %s "(cached) " >&6
4865 else case e in #(
4866 e) am_cv_prog_tar_ustar=$_am_tool ;;
4867 esac
4868 fi
4869
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4871 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4872
4873
4874
4875
4876
4877 depcc="$CC" am_compiler_list=
4878
4879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4880 printf %s "checking dependency style of $depcc... " >&6; }
4881 if test ${am_cv_CC_dependencies_compiler_type+y}
4882 then :
4883 printf %s "(cached) " >&6
4884 else case e in #(
4885 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4886 # We make a subdir and do the tests there. Otherwise we can end up
4887 # making bogus files that we don't know about and never remove. For
4888 # instance it was reported that on HP-UX the gcc test will end up
4889 # making a dummy file named 'D' -- because '-MD' means "put the output
4890 # in D".
4891 rm -rf conftest.dir
4892 mkdir conftest.dir
4893 # Copy depcomp to subdir because otherwise we won't find it if we're
4894 # using a relative directory.
4895 cp "$am_depcomp" conftest.dir
4896 cd conftest.dir
4897 # We will build objects and dependencies in a subdirectory because
4898 # it helps to detect inapplicable dependency modes. For instance
4899 # both Tru64's cc and ICC support -MD to output dependencies as a
4900 # side effect of compilation, but ICC will put the dependencies in
4901 # the current directory while Tru64 will put them in the object
4902 # directory.
4903 mkdir sub
4904
4905 am_cv_CC_dependencies_compiler_type=none
4906 if test "$am_compiler_list" = ""; then
4907 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4908 fi
4909 am__universal=false
4910 case " $depcc " in #(
4911 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4912 esac
4913
4914 for depmode in $am_compiler_list; do
4915 # Setup a source with many dependencies, because some compilers
4916 # like to wrap large dependency lists on column 80 (with \), and
4917 # we should not choose a depcomp mode which is confused by this.
4918 #
4919 # We need to recreate these files for each test, as the compiler may
4920 # overwrite some of them when testing with obscure command lines.
4921 # This happens at least with the AIX C compiler.
4922 : > sub/conftest.c
4923 for i in 1 2 3 4 5 6; do
4924 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4925 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4926 # Solaris 10 /bin/sh.
4927 echo '/* dummy */' > sub/conftst$i.h
4928 done
4929 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4930
4931 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4932 # mode. It turns out that the SunPro C++ compiler does not properly
4933 # handle '-M -o', and we need to detect this. Also, some Intel
4934 # versions had trouble with output in subdirs.
4935 am__obj=sub/conftest.${OBJEXT-o}
4936 am__minus_obj="-o $am__obj"
4937 case $depmode in
4938 gcc)
4939 # This depmode causes a compiler race in universal mode.
4940 test "$am__universal" = false || continue
4941 ;;
4942 nosideeffect)
4943 # After this tag, mechanisms are not by side-effect, so they'll
4944 # only be used when explicitly requested.
4945 if test "x$enable_dependency_tracking" = xyes; then
4946 continue
4947 else
4948 break
4949 fi
4950 ;;
4951 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4952 # This compiler won't grok '-c -o', but also, the minuso test has
4953 # not run yet. These depmodes are late enough in the game, and
4954 # so weak that their functioning should not be impacted.
4955 am__obj=conftest.${OBJEXT-o}
4956 am__minus_obj=
4957 ;;
4958 none) break ;;
4959 esac
4960 if depmode=$depmode \
4961 source=sub/conftest.c object=$am__obj \
4962 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4963 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4964 >/dev/null 2>conftest.err &&
4965 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4966 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4967 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4968 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4969 # icc doesn't choke on unknown options, it will just issue warnings
4970 # or remarks (even with -Werror). So we grep stderr for any message
4971 # that says an option was ignored or not supported.
4972 # When given -MP, icc 7.0 and 7.1 complain thus:
4973 # icc: Command line warning: ignoring option '-M'; no argument required
4974 # The diagnosis changed in icc 8.0:
4975 # icc: Command line remark: option '-MP' not supported
4976 if (grep 'ignoring option' conftest.err ||
4977 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4978 am_cv_CC_dependencies_compiler_type=$depmode
4979 break
4980 fi
4981 fi
4982 done
4983
4984 cd ..
4985 rm -rf conftest.dir
4986 else
4987 am_cv_CC_dependencies_compiler_type=none
4988 fi
4989 ;;
4990 esac
4991 fi
4992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4993 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4994 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4995
4996 if
4997 test "x$enable_dependency_tracking" != xno \
4998 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4999 am__fastdepCC_TRUE=
5000 am__fastdepCC_FALSE='#'
5001 else
5002 am__fastdepCC_TRUE='#'
5003 am__fastdepCC_FALSE=
5004 fi
5005
5006
5007 # Variables for tags utilities; see am/tags.am
5008 if test -z "$CTAGS"; then
5009 CTAGS=ctags
5010 fi
5011
5012 if test -z "$ETAGS"; then
5013 ETAGS=etags
5014 fi
5015
5016 if test -z "$CSCOPE"; then
5017 CSCOPE=cscope
5018 fi
5019
5020
5021
5022
5023
5024
5025
5026
5027 # Initialize libtool
5028 case `pwd` in
5029 *\ * | *\ *)
5030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5031 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5032 esac
5033
5034
5035
5036 macro_version='2.5.4'
5037 macro_revision='2.5.4'
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 ltmain=$ac_aux_dir/ltmain.sh
5053
5054
5055
5056 # Make sure we can run config.sub.
5057 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
5058 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
5059
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5061 printf %s "checking build system type... " >&6; }
5062 if test ${ac_cv_build+y}
5063 then :
5064 printf %s "(cached) " >&6
5065 else case e in #(
5066 e) ac_build_alias=$build_alias
5067 test "x$ac_build_alias" = x &&
5068 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
5069 test "x$ac_build_alias" = x &&
5070 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5071 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
5072 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
5073 ;;
5074 esac
5075 fi
5076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5077 printf "%s\n" "$ac_cv_build" >&6; }
5078 case $ac_cv_build in
5079 *-*-*) ;;
5080 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5081 esac
5082 build=$ac_cv_build
5083 ac_save_IFS=$IFS; IFS='-'
5084 set x $ac_cv_build
5085 shift
5086 build_cpu=$1
5087 build_vendor=$2
5088 shift; shift
5089 # Remember, the first character of IFS is used to create $*,
5090 # except with old shells:
5091 build_os=$*
5092 IFS=$ac_save_IFS
5093 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5094
5095
5096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5097 printf %s "checking host system type... " >&6; }
5098 if test ${ac_cv_host+y}
5099 then :
5100 printf %s "(cached) " >&6
5101 else case e in #(
5102 e) if test "x$host_alias" = x; then
5103 ac_cv_host=$ac_cv_build
5104 else
5105 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5106 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5107 fi
5108 ;;
5109 esac
5110 fi
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5112 printf "%s\n" "$ac_cv_host" >&6; }
5113 case $ac_cv_host in
5114 *-*-*) ;;
5115 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5116 esac
5117 host=$ac_cv_host
5118 ac_save_IFS=$IFS; IFS='-'
5119 set x $ac_cv_host
5120 shift
5121 host_cpu=$1
5122 host_vendor=$2
5123 shift; shift
5124 # Remember, the first character of IFS is used to create $*,
5125 # except with old shells:
5126 host_os=$*
5127 IFS=$ac_save_IFS
5128 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5129
5130
5131 # Backslashify metacharacters that are still active within
5132 # double-quoted strings.
5133 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5134
5135 # Same as above, but do not quote variable references.
5136 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5137
5138 # Sed substitution to delay expansion of an escaped shell variable in a
5139 # double_quote_subst'ed string.
5140 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5141
5142 # Sed substitution to delay expansion of an escaped single quote.
5143 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5144
5145 # Sed substitution to avoid accidental globbing in evaled expressions
5146 no_glob_subst='s/\*/\\\*/g'
5147
5148 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5149 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5150 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5151
5152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5153 printf %s "checking how to print strings... " >&6; }
5154 # Test print first, because it will be a builtin if present.
5155 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5156 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5157 ECHO='print -r --'
5158 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5159 ECHO='printf %s\n'
5160 else
5161 # Use this function as a fallback that always works.
5162 func_fallback_echo ()
5163 {
5164 eval 'cat <<_LTECHO_EOF
5165 $1
5166 _LTECHO_EOF'
5167 }
5168 ECHO='func_fallback_echo'
5169 fi
5170
5171 # func_echo_all arg...
5172 # Invoke $ECHO with all args, space-separated.
5173 func_echo_all ()
5174 {
5175 $ECHO ""
5176 }
5177
5178 case $ECHO in
5179 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5180 printf "%s\n" "printf" >&6; } ;;
5181 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5182 printf "%s\n" "print -r" >&6; } ;;
5183 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5184 printf "%s\n" "cat" >&6; } ;;
5185 esac
5186
5187
5188
5189
5190
5191
5192
5193
5194
5195
5196
5197
5198
5199
5200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5201 printf %s "checking for a sed that does not truncate output... " >&6; }
5202 if test ${ac_cv_path_SED+y}
5203 then :
5204 printf %s "(cached) " >&6
5205 else case e in #(
5206 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5207 for ac_i in 1 2 3 4 5 6 7; do
5208 ac_script="$ac_script$as_nl$ac_script"
5209 done
5210 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5211 { ac_script=; unset ac_script;}
5212 if test -z "$SED"; then
5213 ac_path_SED_found=false
5214 # Loop through the user's path and test for each of PROGNAME-LIST
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in $PATH
5217 do
5218 IFS=$as_save_IFS
5219 case $as_dir in #(((
5220 '') as_dir=./ ;;
5221 */) ;;
5222 *) as_dir=$as_dir/ ;;
5223 esac
5224 for ac_prog in sed gsed
5225 do
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5228 as_fn_executable_p "$ac_path_SED" || continue
5229 # Check for GNU ac_path_SED and select it if it is found.
5230 # Check for GNU $ac_path_SED
5231 case `"$ac_path_SED" --version 2>&1` in #(
5232 *GNU*)
5233 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5234 #(
5235 *)
5236 ac_count=0
5237 printf %s 0123456789 >"conftest.in"
5238 while :
5239 do
5240 cat "conftest.in" "conftest.in" >"conftest.tmp"
5241 mv "conftest.tmp" "conftest.in"
5242 cp "conftest.in" "conftest.nl"
5243 printf "%s\n" '' >> "conftest.nl"
5244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5246 as_fn_arith $ac_count + 1 && ac_count=$as_val
5247 if test $ac_count -gt ${ac_path_SED_max-0}; then
5248 # Best one so far, save it but keep looking for a better one
5249 ac_cv_path_SED="$ac_path_SED"
5250 ac_path_SED_max=$ac_count
5251 fi
5252 # 10*(2^10) chars as input seems more than enough
5253 test $ac_count -gt 10 && break
5254 done
5255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5256 esac
5257
5258 $ac_path_SED_found && break 3
5259 done
5260 done
5261 done
5262 IFS=$as_save_IFS
5263 if test -z "$ac_cv_path_SED"; then
5264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5265 fi
5266 else
5267 ac_cv_path_SED=$SED
5268 fi
5269 ;;
5270 esac
5271 fi
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5273 printf "%s\n" "$ac_cv_path_SED" >&6; }
5274 SED="$ac_cv_path_SED"
5275 rm -f conftest.sed
5276
5277 test -z "$SED" && SED=sed
5278 Xsed="$SED -e 1s/^X//"
5279
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5291 printf %s "checking for grep that handles long lines and -e... " >&6; }
5292 if test ${ac_cv_path_GREP+y}
5293 then :
5294 printf %s "(cached) " >&6
5295 else case e in #(
5296 e) if test -z "$GREP"; then
5297 ac_path_GREP_found=false
5298 # Loop through the user's path and test for each of PROGNAME-LIST
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5301 do
5302 IFS=$as_save_IFS
5303 case $as_dir in #(((
5304 '') as_dir=./ ;;
5305 */) ;;
5306 *) as_dir=$as_dir/ ;;
5307 esac
5308 for ac_prog in grep ggrep
5309 do
5310 for ac_exec_ext in '' $ac_executable_extensions; do
5311 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5312 as_fn_executable_p "$ac_path_GREP" || continue
5313 # Check for GNU ac_path_GREP and select it if it is found.
5314 # Check for GNU $ac_path_GREP
5315 case `"$ac_path_GREP" --version 2>&1` in #(
5316 *GNU*)
5317 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5318 #(
5319 *)
5320 ac_count=0
5321 printf %s 0123456789 >"conftest.in"
5322 while :
5323 do
5324 cat "conftest.in" "conftest.in" >"conftest.tmp"
5325 mv "conftest.tmp" "conftest.in"
5326 cp "conftest.in" "conftest.nl"
5327 printf "%s\n" 'GREP' >> "conftest.nl"
5328 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5329 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5330 as_fn_arith $ac_count + 1 && ac_count=$as_val
5331 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5332 # Best one so far, save it but keep looking for a better one
5333 ac_cv_path_GREP="$ac_path_GREP"
5334 ac_path_GREP_max=$ac_count
5335 fi
5336 # 10*(2^10) chars as input seems more than enough
5337 test $ac_count -gt 10 && break
5338 done
5339 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5340 esac
5341
5342 $ac_path_GREP_found && break 3
5343 done
5344 done
5345 done
5346 IFS=$as_save_IFS
5347 if test -z "$ac_cv_path_GREP"; then
5348 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5349 fi
5350 else
5351 ac_cv_path_GREP=$GREP
5352 fi
5353 ;;
5354 esac
5355 fi
5356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5357 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5358 GREP="$ac_cv_path_GREP"
5359
5360
5361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5362 printf %s "checking for egrep... " >&6; }
5363 if test ${ac_cv_path_EGREP+y}
5364 then :
5365 printf %s "(cached) " >&6
5366 else case e in #(
5367 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5368 then ac_cv_path_EGREP="$GREP -E"
5369 else
5370 if test -z "$EGREP"; then
5371 ac_path_EGREP_found=false
5372 # Loop through the user's path and test for each of PROGNAME-LIST
5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5374 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5375 do
5376 IFS=$as_save_IFS
5377 case $as_dir in #(((
5378 '') as_dir=./ ;;
5379 */) ;;
5380 *) as_dir=$as_dir/ ;;
5381 esac
5382 for ac_prog in egrep
5383 do
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5386 as_fn_executable_p "$ac_path_EGREP" || continue
5387 # Check for GNU ac_path_EGREP and select it if it is found.
5388 # Check for GNU $ac_path_EGREP
5389 case `"$ac_path_EGREP" --version 2>&1` in #(
5390 *GNU*)
5391 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5392 #(
5393 *)
5394 ac_count=0
5395 printf %s 0123456789 >"conftest.in"
5396 while :
5397 do
5398 cat "conftest.in" "conftest.in" >"conftest.tmp"
5399 mv "conftest.tmp" "conftest.in"
5400 cp "conftest.in" "conftest.nl"
5401 printf "%s\n" 'EGREP' >> "conftest.nl"
5402 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5403 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5404 as_fn_arith $ac_count + 1 && ac_count=$as_val
5405 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5406 # Best one so far, save it but keep looking for a better one
5407 ac_cv_path_EGREP="$ac_path_EGREP"
5408 ac_path_EGREP_max=$ac_count
5409 fi
5410 # 10*(2^10) chars as input seems more than enough
5411 test $ac_count -gt 10 && break
5412 done
5413 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5414 esac
5415
5416 $ac_path_EGREP_found && break 3
5417 done
5418 done
5419 done
5420 IFS=$as_save_IFS
5421 if test -z "$ac_cv_path_EGREP"; then
5422 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5423 fi
5424 else
5425 ac_cv_path_EGREP=$EGREP
5426 fi
5427
5428 fi ;;
5429 esac
5430 fi
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5432 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5433 EGREP="$ac_cv_path_EGREP"
5434
5435 EGREP_TRADITIONAL=$EGREP
5436 ac_cv_path_EGREP_TRADITIONAL=$EGREP
5437
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5439 printf %s "checking for fgrep... " >&6; }
5440 if test ${ac_cv_path_FGREP+y}
5441 then :
5442 printf %s "(cached) " >&6
5443 else case e in #(
5444 e) if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5445 then ac_cv_path_FGREP="$GREP -F"
5446 else
5447 if test -z "$FGREP"; then
5448 ac_path_FGREP_found=false
5449 # Loop through the user's path and test for each of PROGNAME-LIST
5450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5452 do
5453 IFS=$as_save_IFS
5454 case $as_dir in #(((
5455 '') as_dir=./ ;;
5456 */) ;;
5457 *) as_dir=$as_dir/ ;;
5458 esac
5459 for ac_prog in fgrep
5460 do
5461 for ac_exec_ext in '' $ac_executable_extensions; do
5462 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5463 as_fn_executable_p "$ac_path_FGREP" || continue
5464 # Check for GNU ac_path_FGREP and select it if it is found.
5465 # Check for GNU $ac_path_FGREP
5466 case `"$ac_path_FGREP" --version 2>&1` in #(
5467 *GNU*)
5468 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5469 #(
5470 *)
5471 ac_count=0
5472 printf %s 0123456789 >"conftest.in"
5473 while :
5474 do
5475 cat "conftest.in" "conftest.in" >"conftest.tmp"
5476 mv "conftest.tmp" "conftest.in"
5477 cp "conftest.in" "conftest.nl"
5478 printf "%s\n" 'FGREP' >> "conftest.nl"
5479 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5481 as_fn_arith $ac_count + 1 && ac_count=$as_val
5482 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5483 # Best one so far, save it but keep looking for a better one
5484 ac_cv_path_FGREP="$ac_path_FGREP"
5485 ac_path_FGREP_max=$ac_count
5486 fi
5487 # 10*(2^10) chars as input seems more than enough
5488 test $ac_count -gt 10 && break
5489 done
5490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5491 esac
5492
5493 $ac_path_FGREP_found && break 3
5494 done
5495 done
5496 done
5497 IFS=$as_save_IFS
5498 if test -z "$ac_cv_path_FGREP"; then
5499 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5500 fi
5501 else
5502 ac_cv_path_FGREP=$FGREP
5503 fi
5504
5505 fi ;;
5506 esac
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5509 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5510 FGREP="$ac_cv_path_FGREP"
5511
5512
5513 test -z "$GREP" && GREP=grep
5514
5515
5516
5517
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 # Check whether --with-gnu-ld was given.
5534 if test ${with_gnu_ld+y}
5535 then :
5536 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5537 else case e in #(
5538 e) with_gnu_ld=no ;;
5539 esac
5540 fi
5541
5542 ac_prog=ld
5543 if test yes = "$GCC"; then
5544 # Check if gcc -print-prog-name=ld gives a path.
5545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5546 printf %s "checking for ld used by $CC... " >&6; }
5547 case $host in
5548 *-*-mingw* | *-*-windows*)
5549 # gcc leaves a trailing carriage return, which upsets mingw
5550 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5551 *)
5552 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5553 esac
5554 case $ac_prog in
5555 # Accept absolute paths.
5556 [\\/]* | ?:[\\/]*)
5557 re_direlt='/[^/][^/]*/\.\./'
5558 # Canonicalize the pathname of ld
5559 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5560 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5561 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5562 done
5563 test -z "$LD" && LD=$ac_prog
5564 ;;
5565 "")
5566 # If it fails, then pretend we aren't using GCC.
5567 ac_prog=ld
5568 ;;
5569 *)
5570 # If it is relative, then search for the first ld in PATH.
5571 with_gnu_ld=unknown
5572 ;;
5573 esac
5574 elif test yes = "$with_gnu_ld"; then
5575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5576 printf %s "checking for GNU ld... " >&6; }
5577 else
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5579 printf %s "checking for non-GNU ld... " >&6; }
5580 fi
5581 if test ${lt_cv_path_LD+y}
5582 then :
5583 printf %s "(cached) " >&6
5584 else case e in #(
5585 e) if test -z "$LD"; then
5586 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5587 for ac_dir in $PATH; do
5588 IFS=$lt_save_ifs
5589 test -z "$ac_dir" && ac_dir=.
5590 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5591 lt_cv_path_LD=$ac_dir/$ac_prog
5592 # Check to see if the program is GNU ld. I'd rather use --version,
5593 # but apparently some variants of GNU ld only accept -v.
5594 # Break only if it was the GNU/non-GNU ld that we prefer.
5595 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5596 *GNU* | *'with BFD'*)
5597 test no != "$with_gnu_ld" && break
5598 ;;
5599 *)
5600 test yes != "$with_gnu_ld" && break
5601 ;;
5602 esac
5603 fi
5604 done
5605 IFS=$lt_save_ifs
5606 else
5607 lt_cv_path_LD=$LD # Let the user override the test with a path.
5608 fi ;;
5609 esac
5610 fi
5611
5612 LD=$lt_cv_path_LD
5613 if test -n "$LD"; then
5614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5615 printf "%s\n" "$LD" >&6; }
5616 else
5617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5618 printf "%s\n" "no" >&6; }
5619 fi
5620 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5622 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5623 if test ${lt_cv_prog_gnu_ld+y}
5624 then :
5625 printf %s "(cached) " >&6
5626 else case e in #(
5627 e) # I'd rather use --version here, but apparently some GNU lds only accept -v.
5628 case `$LD -v 2>&1 </dev/null` in
5629 *GNU* | *'with BFD'*)
5630 lt_cv_prog_gnu_ld=yes
5631 ;;
5632 *)
5633 lt_cv_prog_gnu_ld=no
5634 ;;
5635 esac ;;
5636 esac
5637 fi
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5639 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5640 with_gnu_ld=$lt_cv_prog_gnu_ld
5641
5642
5643
5644
5645
5646
5647
5648
5649
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5651 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5652 if test ${lt_cv_path_NM+y}
5653 then :
5654 printf %s "(cached) " >&6
5655 else case e in #(
5656 e) if test -n "$NM"; then
5657 # Let the user override the test.
5658 lt_cv_path_NM=$NM
5659 else
5660 lt_nm_to_check=${ac_tool_prefix}nm
5661 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5662 lt_nm_to_check="$lt_nm_to_check nm"
5663 fi
5664 for lt_tmp_nm in $lt_nm_to_check; do
5665 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5666 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5667 IFS=$lt_save_ifs
5668 test -z "$ac_dir" && ac_dir=.
5669 tmp_nm=$ac_dir/$lt_tmp_nm
5670 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5671 # Check to see if the nm accepts a BSD-compat flag.
5672 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5673 # nm: unknown option "B" ignored
5674 # Tru64's nm complains that /dev/null is an invalid object file
5675 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5676 case $build_os in
5677 mingw* | windows*) lt_bad_file=conftest.nm/nofile ;;
5678 *) lt_bad_file=/dev/null ;;
5679 esac
5680 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5681 *$lt_bad_file* | *'Invalid file or object type'*)
5682 lt_cv_path_NM="$tmp_nm -B"
5683 break 2
5684 ;;
5685 *)
5686 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5687 */dev/null*)
5688 lt_cv_path_NM="$tmp_nm -p"
5689 break 2
5690 ;;
5691 *)
5692 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5693 continue # so that we can try to find one that supports BSD flags
5694 ;;
5695 esac
5696 ;;
5697 esac
5698 fi
5699 done
5700 IFS=$lt_save_ifs
5701 done
5702 : ${lt_cv_path_NM=no}
5703 fi ;;
5704 esac
5705 fi
5706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5707 printf "%s\n" "$lt_cv_path_NM" >&6; }
5708 if test no != "$lt_cv_path_NM"; then
5709 NM=$lt_cv_path_NM
5710 else
5711 # Didn't find any BSD compatible name lister, look for dumpbin.
5712 if test -n "$DUMPBIN"; then :
5713 # Let the user override the test.
5714 else
5715 if test -n "$ac_tool_prefix"; then
5716 for ac_prog in dumpbin "link -dump"
5717 do
5718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5719 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721 printf %s "checking for $ac_word... " >&6; }
5722 if test ${ac_cv_prog_DUMPBIN+y}
5723 then :
5724 printf %s "(cached) " >&6
5725 else case e in #(
5726 e) if test -n "$DUMPBIN"; then
5727 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732 IFS=$as_save_IFS
5733 case $as_dir in #(((
5734 '') as_dir=./ ;;
5735 */) ;;
5736 *) as_dir=$as_dir/ ;;
5737 esac
5738 for ac_exec_ext in '' $ac_executable_extensions; do
5739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5740 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5742 break 2
5743 fi
5744 done
5745 done
5746 IFS=$as_save_IFS
5747
5748 fi ;;
5749 esac
5750 fi
5751 DUMPBIN=$ac_cv_prog_DUMPBIN
5752 if test -n "$DUMPBIN"; then
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5754 printf "%s\n" "$DUMPBIN" >&6; }
5755 else
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 printf "%s\n" "no" >&6; }
5758 fi
5759
5760
5761 test -n "$DUMPBIN" && break
5762 done
5763 fi
5764 if test -z "$DUMPBIN"; then
5765 ac_ct_DUMPBIN=$DUMPBIN
5766 for ac_prog in dumpbin "link -dump"
5767 do
5768 # Extract the first word of "$ac_prog", so it can be a program name with args.
5769 set dummy $ac_prog; ac_word=$2
5770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 printf %s "checking for $ac_word... " >&6; }
5772 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5773 then :
5774 printf %s "(cached) " >&6
5775 else case e in #(
5776 e) if test -n "$ac_ct_DUMPBIN"; then
5777 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5778 else
5779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5780 for as_dir in $PATH
5781 do
5782 IFS=$as_save_IFS
5783 case $as_dir in #(((
5784 '') as_dir=./ ;;
5785 */) ;;
5786 *) as_dir=$as_dir/ ;;
5787 esac
5788 for ac_exec_ext in '' $ac_executable_extensions; do
5789 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5790 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5791 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5792 break 2
5793 fi
5794 done
5795 done
5796 IFS=$as_save_IFS
5797
5798 fi ;;
5799 esac
5800 fi
5801 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5802 if test -n "$ac_ct_DUMPBIN"; then
5803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5804 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5805 else
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807 printf "%s\n" "no" >&6; }
5808 fi
5809
5810
5811 test -n "$ac_ct_DUMPBIN" && break
5812 done
5813
5814 if test "x$ac_ct_DUMPBIN" = x; then
5815 DUMPBIN=":"
5816 else
5817 case $cross_compiling:$ac_tool_warned in
5818 yes:)
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821 ac_tool_warned=yes ;;
5822 esac
5823 DUMPBIN=$ac_ct_DUMPBIN
5824 fi
5825 fi
5826
5827 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5828 *COFF*)
5829 DUMPBIN="$DUMPBIN -symbols -headers"
5830 ;;
5831 *)
5832 DUMPBIN=:
5833 ;;
5834 esac
5835 fi
5836
5837 if test : != "$DUMPBIN"; then
5838 NM=$DUMPBIN
5839 fi
5840 fi
5841 test -z "$NM" && NM=nm
5842
5843
5844
5845
5846
5847
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5849 printf %s "checking the name lister ($NM) interface... " >&6; }
5850 if test ${lt_cv_nm_interface+y}
5851 then :
5852 printf %s "(cached) " >&6
5853 else case e in #(
5854 e) lt_cv_nm_interface="BSD nm"
5855 echo "int some_variable = 0;" > conftest.$ac_ext
5856 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5857 (eval "$ac_compile" 2>conftest.err)
5858 cat conftest.err >&5
5859 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5860 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5861 cat conftest.err >&5
5862 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5863 cat conftest.out >&5
5864 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5865 lt_cv_nm_interface="MS dumpbin"
5866 fi
5867 rm -f conftest* ;;
5868 esac
5869 fi
5870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5871 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5872
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5874 printf %s "checking whether ln -s works... " >&6; }
5875 LN_S=$as_ln_s
5876 if test "$LN_S" = "ln -s"; then
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5878 printf "%s\n" "yes" >&6; }
5879 else
5880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5881 printf "%s\n" "no, using $LN_S" >&6; }
5882 fi
5883
5884 # find the maximum length of command line arguments
5885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5886 printf %s "checking the maximum length of command line arguments... " >&6; }
5887 if test ${lt_cv_sys_max_cmd_len+y}
5888 then :
5889 printf %s "(cached) " >&6
5890 else case e in #(
5891 e) i=0
5892 teststring=ABCD
5893
5894 case $build_os in
5895 msdosdjgpp*)
5896 # On DJGPP, this test can blow up pretty badly due to problems in libc
5897 # (any single argument exceeding 2000 bytes causes a buffer overrun
5898 # during glob expansion). Even if it were fixed, the result of this
5899 # check would be larger than it should be.
5900 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5901 ;;
5902
5903 gnu* | ironclad*)
5904 # Under GNU Hurd and Ironclad, this test is not required because there
5905 # is no limit to the length of command line arguments.
5906 # Libtool will interpret -1 as no limit whatsoever
5907 lt_cv_sys_max_cmd_len=-1;
5908 ;;
5909
5910 cygwin* | mingw* | windows* | cegcc*)
5911 # On Win9x/ME, this test blows up -- it succeeds, but takes
5912 # about 5 minutes as the teststring grows exponentially.
5913 # Worse, since 9x/ME are not pre-emptively multitasking,
5914 # you end up with a "frozen" computer, even though with patience
5915 # the test eventually succeeds (with a max line length of 256k).
5916 # Instead, let's just punt: use the minimum linelength reported by
5917 # all of the supported platforms: 8192 (on NT/2K/XP).
5918 lt_cv_sys_max_cmd_len=8192;
5919 ;;
5920
5921 mint*)
5922 # On MiNT this can take a long time and run out of memory.
5923 lt_cv_sys_max_cmd_len=8192;
5924 ;;
5925
5926 amigaos*)
5927 # On AmigaOS with pdksh, this test takes hours, literally.
5928 # So we just punt and use a minimum line length of 8192.
5929 lt_cv_sys_max_cmd_len=8192;
5930 ;;
5931
5932 darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5933 # This has been around since 386BSD, at least. Likely further.
5934 if test -x /sbin/sysctl; then
5935 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5936 elif test -x /usr/sbin/sysctl; then
5937 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5938 else
5939 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5940 fi
5941 # And add a safety zone
5942 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5943 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5944 ;;
5945
5946 interix*)
5947 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5948 lt_cv_sys_max_cmd_len=196608
5949 ;;
5950
5951 os2*)
5952 # The test takes a long time on OS/2.
5953 lt_cv_sys_max_cmd_len=8192
5954 ;;
5955
5956 osf*)
5957 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5958 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5959 # nice to cause kernel panics so lets avoid the loop below.
5960 # First set a reasonable default.
5961 lt_cv_sys_max_cmd_len=16384
5962 #
5963 if test -x /sbin/sysconfig; then
5964 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5965 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5966 esac
5967 fi
5968 ;;
5969 sco3.2v5*)
5970 lt_cv_sys_max_cmd_len=102400
5971 ;;
5972 sysv5* | sco5v6* | sysv4.2uw2*)
5973 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5974 if test -n "$kargmax"; then
5975 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5976 else
5977 lt_cv_sys_max_cmd_len=32768
5978 fi
5979 ;;
5980 *)
5981 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5982 if test -n "$lt_cv_sys_max_cmd_len" && \
5983 test undefined != "$lt_cv_sys_max_cmd_len"; then
5984 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5986 else
5987 # Make teststring a little bigger before we do anything with it.
5988 # a 1K string should be a reasonable start.
5989 for i in 1 2 3 4 5 6 7 8; do
5990 teststring=$teststring$teststring
5991 done
5992 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5993 # If test is not a shell built-in, we'll probably end up computing a
5994 # maximum length that is only half of the actual maximum length, but
5995 # we can't tell.
5996 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5997 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5998 test 17 != "$i" # 1/2 MB should be enough
5999 do
6000 i=`expr $i + 1`
6001 teststring=$teststring$teststring
6002 done
6003 # Only check the string length outside the loop.
6004 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6005 teststring=
6006 # Add a significant safety factor because C++ compilers can tack on
6007 # massive amounts of additional arguments before passing them to the
6008 # linker. It appears as though 1/2 is a usable value.
6009 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6010 fi
6011 ;;
6012 esac
6013 ;;
6014 esac
6015 fi
6016
6017 if test -n "$lt_cv_sys_max_cmd_len"; then
6018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6019 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
6020 else
6021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
6022 printf "%s\n" "none" >&6; }
6023 fi
6024 max_cmd_len=$lt_cv_sys_max_cmd_len
6025
6026
6027
6028
6029
6030
6031 : ${CP="cp -f"}
6032 : ${MV="mv -f"}
6033 : ${RM="rm -f"}
6034
6035 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6036 lt_unset=unset
6037 else
6038 lt_unset=false
6039 fi
6040
6041
6042
6043
6044
6045 # test EBCDIC or ASCII
6046 case `echo X|tr X '\101'` in
6047 A) # ASCII based system
6048 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6049 lt_SP2NL='tr \040 \012'
6050 lt_NL2SP='tr \015\012 \040\040'
6051 ;;
6052 *) # EBCDIC based system
6053 lt_SP2NL='tr \100 \n'
6054 lt_NL2SP='tr \r\n \100\100'
6055 ;;
6056 esac
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6067 printf %s "checking how to convert $build file names to $host format... " >&6; }
6068 if test ${lt_cv_to_host_file_cmd+y}
6069 then :
6070 printf %s "(cached) " >&6
6071 else case e in #(
6072 e) case $host in
6073 *-*-mingw* )
6074 case $build in
6075 *-*-mingw* | *-*-windows* ) # actually msys
6076 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6077 ;;
6078 *-*-cygwin* )
6079 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6080 ;;
6081 * ) # otherwise, assume *nix
6082 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6083 ;;
6084 esac
6085 ;;
6086 *-*-cygwin* )
6087 case $build in
6088 *-*-mingw* | *-*-windows* ) # actually msys
6089 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6090 ;;
6091 *-*-cygwin* )
6092 lt_cv_to_host_file_cmd=func_convert_file_noop
6093 ;;
6094 * ) # otherwise, assume *nix
6095 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6096 ;;
6097 esac
6098 ;;
6099 * ) # unhandled hosts (and "normal" native builds)
6100 lt_cv_to_host_file_cmd=func_convert_file_noop
6101 ;;
6102 esac
6103 ;;
6104 esac
6105 fi
6106
6107 to_host_file_cmd=$lt_cv_to_host_file_cmd
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6109 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
6110
6111
6112
6113
6114
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6116 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
6117 if test ${lt_cv_to_tool_file_cmd+y}
6118 then :
6119 printf %s "(cached) " >&6
6120 else case e in #(
6121 e) #assume ordinary cross tools, or native build.
6122 lt_cv_to_tool_file_cmd=func_convert_file_noop
6123 case $host in
6124 *-*-mingw* | *-*-windows* )
6125 case $build in
6126 *-*-mingw* | *-*-windows* ) # actually msys
6127 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6128 ;;
6129 esac
6130 ;;
6131 esac
6132 ;;
6133 esac
6134 fi
6135
6136 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6138 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6139
6140
6141
6142
6143
6144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6145 printf %s "checking for $LD option to reload object files... " >&6; }
6146 if test ${lt_cv_ld_reload_flag+y}
6147 then :
6148 printf %s "(cached) " >&6
6149 else case e in #(
6150 e) lt_cv_ld_reload_flag='-r' ;;
6151 esac
6152 fi
6153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6154 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6155 reload_flag=$lt_cv_ld_reload_flag
6156 case $reload_flag in
6157 "" | " "*) ;;
6158 *) reload_flag=" $reload_flag" ;;
6159 esac
6160 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6161 case $host_os in
6162 cygwin* | mingw* | windows* | pw32* | cegcc*)
6163 if test yes != "$GCC"; then
6164 reload_cmds=false
6165 fi
6166 ;;
6167 darwin*)
6168 if test yes = "$GCC"; then
6169 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6170 else
6171 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6172 fi
6173 ;;
6174 esac
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184 # Extract the first word of "file", so it can be a program name with args.
6185 set dummy file; ac_word=$2
6186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6187 printf %s "checking for $ac_word... " >&6; }
6188 if test ${ac_cv_prog_FILECMD+y}
6189 then :
6190 printf %s "(cached) " >&6
6191 else case e in #(
6192 e) if test -n "$FILECMD"; then
6193 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6194 else
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6196 for as_dir in $PATH
6197 do
6198 IFS=$as_save_IFS
6199 case $as_dir in #(((
6200 '') as_dir=./ ;;
6201 */) ;;
6202 *) as_dir=$as_dir/ ;;
6203 esac
6204 for ac_exec_ext in '' $ac_executable_extensions; do
6205 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6206 ac_cv_prog_FILECMD="file"
6207 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6208 break 2
6209 fi
6210 done
6211 done
6212 IFS=$as_save_IFS
6213
6214 test -z "$ac_cv_prog_FILECMD" && ac_cv_prog_FILECMD=":"
6215 fi ;;
6216 esac
6217 fi
6218 FILECMD=$ac_cv_prog_FILECMD
6219 if test -n "$FILECMD"; then
6220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6221 printf "%s\n" "$FILECMD" >&6; }
6222 else
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6224 printf "%s\n" "no" >&6; }
6225 fi
6226
6227
6228
6229
6230
6231
6232
6233
6234 if test -n "$ac_tool_prefix"; then
6235 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6236 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6238 printf %s "checking for $ac_word... " >&6; }
6239 if test ${ac_cv_prog_OBJDUMP+y}
6240 then :
6241 printf %s "(cached) " >&6
6242 else case e in #(
6243 e) if test -n "$OBJDUMP"; then
6244 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6245 else
6246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6247 for as_dir in $PATH
6248 do
6249 IFS=$as_save_IFS
6250 case $as_dir in #(((
6251 '') as_dir=./ ;;
6252 */) ;;
6253 *) as_dir=$as_dir/ ;;
6254 esac
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6259 break 2
6260 fi
6261 done
6262 done
6263 IFS=$as_save_IFS
6264
6265 fi ;;
6266 esac
6267 fi
6268 OBJDUMP=$ac_cv_prog_OBJDUMP
6269 if test -n "$OBJDUMP"; then
6270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6271 printf "%s\n" "$OBJDUMP" >&6; }
6272 else
6273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6274 printf "%s\n" "no" >&6; }
6275 fi
6276
6277
6278 fi
6279 if test -z "$ac_cv_prog_OBJDUMP"; then
6280 ac_ct_OBJDUMP=$OBJDUMP
6281 # Extract the first word of "objdump", so it can be a program name with args.
6282 set dummy objdump; ac_word=$2
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6284 printf %s "checking for $ac_word... " >&6; }
6285 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else case e in #(
6289 e) if test -n "$ac_ct_OBJDUMP"; then
6290 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6291 else
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6293 for as_dir in $PATH
6294 do
6295 IFS=$as_save_IFS
6296 case $as_dir in #(((
6297 '') as_dir=./ ;;
6298 */) ;;
6299 *) as_dir=$as_dir/ ;;
6300 esac
6301 for ac_exec_ext in '' $ac_executable_extensions; do
6302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6303 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6305 break 2
6306 fi
6307 done
6308 done
6309 IFS=$as_save_IFS
6310
6311 fi ;;
6312 esac
6313 fi
6314 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6315 if test -n "$ac_ct_OBJDUMP"; then
6316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6317 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6318 else
6319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6320 printf "%s\n" "no" >&6; }
6321 fi
6322
6323 if test "x$ac_ct_OBJDUMP" = x; then
6324 OBJDUMP="false"
6325 else
6326 case $cross_compiling:$ac_tool_warned in
6327 yes:)
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6329 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6330 ac_tool_warned=yes ;;
6331 esac
6332 OBJDUMP=$ac_ct_OBJDUMP
6333 fi
6334 else
6335 OBJDUMP="$ac_cv_prog_OBJDUMP"
6336 fi
6337
6338 test -z "$OBJDUMP" && OBJDUMP=objdump
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6349 printf %s "checking how to recognize dependent libraries... " >&6; }
6350 if test ${lt_cv_deplibs_check_method+y}
6351 then :
6352 printf %s "(cached) " >&6
6353 else case e in #(
6354 e) lt_cv_file_magic_cmd='$MAGIC_CMD'
6355 lt_cv_file_magic_test_file=
6356 lt_cv_deplibs_check_method='unknown'
6357 # Need to set the preceding variable on all platforms that support
6358 # interlibrary dependencies.
6359 # 'none' -- dependencies not supported.
6360 # 'unknown' -- same as none, but documents that we really don't know.
6361 # 'pass_all' -- all dependencies passed with no checks.
6362 # 'file_magic [[regex]]' -- check by looking for files in library path
6363 # that responds to the $file_magic_cmd with a given extended regex.
6364 # If you have 'file' or equivalent on your system and you're not sure
6365 # whether 'pass_all' will *always* work, you probably want this one.
6366
6367 case $host_os in
6368 aix[4-9]*)
6369 lt_cv_deplibs_check_method=pass_all
6370 ;;
6371
6372 beos*)
6373 lt_cv_deplibs_check_method=pass_all
6374 ;;
6375
6376 bsdi[45]*)
6377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6378 lt_cv_file_magic_cmd='$FILECMD -L'
6379 lt_cv_file_magic_test_file=/shlib/libc.so
6380 ;;
6381
6382 cygwin*)
6383 # func_win32_libid is a shell function defined in ltmain.sh
6384 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6385 lt_cv_file_magic_cmd='func_win32_libid'
6386 ;;
6387
6388 mingw* | windows* | pw32*)
6389 # Base MSYS/MinGW do not provide the 'file' command needed by
6390 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6391 # unless we find 'file', for example because we are cross-compiling.
6392 if ( file / ) >/dev/null 2>&1; then
6393 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6394 lt_cv_file_magic_cmd='func_win32_libid'
6395 else
6396 # Keep this pattern in sync with the one in func_win32_libid.
6397 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64|pe-aarch64)'
6398 lt_cv_file_magic_cmd='$OBJDUMP -f'
6399 fi
6400 ;;
6401
6402 cegcc*)
6403 # use the weaker test based on 'objdump'. See mingw*.
6404 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6405 lt_cv_file_magic_cmd='$OBJDUMP -f'
6406 ;;
6407
6408 darwin* | rhapsody*)
6409 lt_cv_deplibs_check_method=pass_all
6410 ;;
6411
6412 freebsd* | dragonfly* | midnightbsd*)
6413 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6414 case $host_cpu in
6415 i*86 )
6416 # Not sure whether the presence of OpenBSD here was a mistake.
6417 # Let's accept both of them until this is cleared up.
6418 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6419 lt_cv_file_magic_cmd=$FILECMD
6420 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6421 ;;
6422 esac
6423 else
6424 lt_cv_deplibs_check_method=pass_all
6425 fi
6426 ;;
6427
6428 haiku*)
6429 lt_cv_deplibs_check_method=pass_all
6430 ;;
6431
6432 hpux10.20* | hpux11*)
6433 lt_cv_file_magic_cmd=$FILECMD
6434 case $host_cpu in
6435 ia64*)
6436 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6437 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6438 ;;
6439 hppa*64*)
6440 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]'
6441 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6442 ;;
6443 *)
6444 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6445 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6446 ;;
6447 esac
6448 ;;
6449
6450 interix[3-9]*)
6451 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6452 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6453 ;;
6454
6455 irix5* | irix6* | nonstopux*)
6456 case $LD in
6457 *-32|*"-32 ") libmagic=32-bit;;
6458 *-n32|*"-n32 ") libmagic=N32;;
6459 *-64|*"-64 ") libmagic=64-bit;;
6460 *) libmagic=never-match;;
6461 esac
6462 lt_cv_deplibs_check_method=pass_all
6463 ;;
6464
6465 # This must be glibc/ELF.
6466 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469
6470 *-mlibc)
6471 lt_cv_deplibs_check_method=pass_all
6472 ;;
6473
6474 netbsd* | netbsdelf*-gnu)
6475 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6476 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6477 else
6478 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6479 fi
6480 ;;
6481
6482 newos6*)
6483 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6484 lt_cv_file_magic_cmd=$FILECMD
6485 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6486 ;;
6487
6488 *nto* | *qnx*)
6489 lt_cv_deplibs_check_method=pass_all
6490 ;;
6491
6492 openbsd*)
6493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6494 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6495 else
6496 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6497 fi
6498 ;;
6499
6500 osf3* | osf4* | osf5*)
6501 lt_cv_deplibs_check_method=pass_all
6502 ;;
6503
6504 rdos*)
6505 lt_cv_deplibs_check_method=pass_all
6506 ;;
6507
6508 serenity*)
6509 lt_cv_deplibs_check_method=pass_all
6510 ;;
6511
6512 solaris*)
6513 lt_cv_deplibs_check_method=pass_all
6514 ;;
6515
6516 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6517 lt_cv_deplibs_check_method=pass_all
6518 ;;
6519
6520 sysv4 | sysv4.3*)
6521 case $host_vendor in
6522 motorola)
6523 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]'
6524 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6525 ;;
6526 ncr)
6527 lt_cv_deplibs_check_method=pass_all
6528 ;;
6529 sequent)
6530 lt_cv_file_magic_cmd='/bin/file'
6531 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6532 ;;
6533 sni)
6534 lt_cv_file_magic_cmd='/bin/file'
6535 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6536 lt_cv_file_magic_test_file=/lib/libc.so
6537 ;;
6538 siemens)
6539 lt_cv_deplibs_check_method=pass_all
6540 ;;
6541 pc)
6542 lt_cv_deplibs_check_method=pass_all
6543 ;;
6544 esac
6545 ;;
6546
6547 tpf*)
6548 lt_cv_deplibs_check_method=pass_all
6549 ;;
6550 os2*)
6551 lt_cv_deplibs_check_method=pass_all
6552 ;;
6553 esac
6554 ;;
6555 esac
6556 fi
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6558 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6559
6560 file_magic_glob=
6561 want_nocaseglob=no
6562 if test "$build" = "$host"; then
6563 case $host_os in
6564 mingw* | windows* | pw32*)
6565 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6566 want_nocaseglob=yes
6567 else
6568 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6569 fi
6570 ;;
6571 esac
6572 fi
6573
6574 file_magic_cmd=$lt_cv_file_magic_cmd
6575 deplibs_check_method=$lt_cv_deplibs_check_method
6576 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599 if test -n "$ac_tool_prefix"; then
6600 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6601 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6603 printf %s "checking for $ac_word... " >&6; }
6604 if test ${ac_cv_prog_DLLTOOL+y}
6605 then :
6606 printf %s "(cached) " >&6
6607 else case e in #(
6608 e) if test -n "$DLLTOOL"; then
6609 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6610 else
6611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6612 for as_dir in $PATH
6613 do
6614 IFS=$as_save_IFS
6615 case $as_dir in #(((
6616 '') as_dir=./ ;;
6617 */) ;;
6618 *) as_dir=$as_dir/ ;;
6619 esac
6620 for ac_exec_ext in '' $ac_executable_extensions; do
6621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6622 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6624 break 2
6625 fi
6626 done
6627 done
6628 IFS=$as_save_IFS
6629
6630 fi ;;
6631 esac
6632 fi
6633 DLLTOOL=$ac_cv_prog_DLLTOOL
6634 if test -n "$DLLTOOL"; then
6635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6636 printf "%s\n" "$DLLTOOL" >&6; }
6637 else
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6639 printf "%s\n" "no" >&6; }
6640 fi
6641
6642
6643 fi
6644 if test -z "$ac_cv_prog_DLLTOOL"; then
6645 ac_ct_DLLTOOL=$DLLTOOL
6646 # Extract the first word of "dlltool", so it can be a program name with args.
6647 set dummy dlltool; ac_word=$2
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6649 printf %s "checking for $ac_word... " >&6; }
6650 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6651 then :
6652 printf %s "(cached) " >&6
6653 else case e in #(
6654 e) if test -n "$ac_ct_DLLTOOL"; then
6655 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6656 else
6657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658 for as_dir in $PATH
6659 do
6660 IFS=$as_save_IFS
6661 case $as_dir in #(((
6662 '') as_dir=./ ;;
6663 */) ;;
6664 *) as_dir=$as_dir/ ;;
6665 esac
6666 for ac_exec_ext in '' $ac_executable_extensions; do
6667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6668 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6670 break 2
6671 fi
6672 done
6673 done
6674 IFS=$as_save_IFS
6675
6676 fi ;;
6677 esac
6678 fi
6679 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6680 if test -n "$ac_ct_DLLTOOL"; then
6681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6682 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6683 else
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6685 printf "%s\n" "no" >&6; }
6686 fi
6687
6688 if test "x$ac_ct_DLLTOOL" = x; then
6689 DLLTOOL="false"
6690 else
6691 case $cross_compiling:$ac_tool_warned in
6692 yes:)
6693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6695 ac_tool_warned=yes ;;
6696 esac
6697 DLLTOOL=$ac_ct_DLLTOOL
6698 fi
6699 else
6700 DLLTOOL="$ac_cv_prog_DLLTOOL"
6701 fi
6702
6703 test -z "$DLLTOOL" && DLLTOOL=dlltool
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6715 printf %s "checking how to associate runtime and link libraries... " >&6; }
6716 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6717 then :
6718 printf %s "(cached) " >&6
6719 else case e in #(
6720 e) lt_cv_sharedlib_from_linklib_cmd='unknown'
6721
6722 case $host_os in
6723 cygwin* | mingw* | windows* | pw32* | cegcc*)
6724 # two different shell functions defined in ltmain.sh;
6725 # decide which one to use based on capabilities of $DLLTOOL
6726 case `$DLLTOOL --help 2>&1` in
6727 *--identify-strict*)
6728 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6729 ;;
6730 *)
6731 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6732 ;;
6733 esac
6734 ;;
6735 *)
6736 # fallback: assume linklib IS sharedlib
6737 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6738 ;;
6739 esac
6740 ;;
6741 esac
6742 fi
6743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6744 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6745 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6746 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6747
6748
6749
6750
6751
6752
6753
6754 if test -n "$ac_tool_prefix"; then
6755 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6756 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6758 printf %s "checking for $ac_word... " >&6; }
6759 if test ${ac_cv_prog_RANLIB+y}
6760 then :
6761 printf %s "(cached) " >&6
6762 else case e in #(
6763 e) if test -n "$RANLIB"; then
6764 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6765 else
6766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6767 for as_dir in $PATH
6768 do
6769 IFS=$as_save_IFS
6770 case $as_dir in #(((
6771 '') as_dir=./ ;;
6772 */) ;;
6773 *) as_dir=$as_dir/ ;;
6774 esac
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi ;;
6786 esac
6787 fi
6788 RANLIB=$ac_cv_prog_RANLIB
6789 if test -n "$RANLIB"; then
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6791 printf "%s\n" "$RANLIB" >&6; }
6792 else
6793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6794 printf "%s\n" "no" >&6; }
6795 fi
6796
6797
6798 fi
6799 if test -z "$ac_cv_prog_RANLIB"; then
6800 ac_ct_RANLIB=$RANLIB
6801 # Extract the first word of "ranlib", so it can be a program name with args.
6802 set dummy ranlib; ac_word=$2
6803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6804 printf %s "checking for $ac_word... " >&6; }
6805 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6806 then :
6807 printf %s "(cached) " >&6
6808 else case e in #(
6809 e) if test -n "$ac_ct_RANLIB"; then
6810 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6811 else
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6813 for as_dir in $PATH
6814 do
6815 IFS=$as_save_IFS
6816 case $as_dir in #(((
6817 '') as_dir=./ ;;
6818 */) ;;
6819 *) as_dir=$as_dir/ ;;
6820 esac
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6823 ac_cv_prog_ac_ct_RANLIB="ranlib"
6824 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6825 break 2
6826 fi
6827 done
6828 done
6829 IFS=$as_save_IFS
6830
6831 fi ;;
6832 esac
6833 fi
6834 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6835 if test -n "$ac_ct_RANLIB"; then
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6837 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6838 else
6839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 printf "%s\n" "no" >&6; }
6841 fi
6842
6843 if test "x$ac_ct_RANLIB" = x; then
6844 RANLIB=":"
6845 else
6846 case $cross_compiling:$ac_tool_warned in
6847 yes:)
6848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6849 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6850 ac_tool_warned=yes ;;
6851 esac
6852 RANLIB=$ac_ct_RANLIB
6853 fi
6854 else
6855 RANLIB="$ac_cv_prog_RANLIB"
6856 fi
6857
6858 if test -n "$ac_tool_prefix"; then
6859 for ac_prog in ar
6860 do
6861 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6862 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 printf %s "checking for $ac_word... " >&6; }
6865 if test ${ac_cv_prog_AR+y}
6866 then :
6867 printf %s "(cached) " >&6
6868 else case e in #(
6869 e) if test -n "$AR"; then
6870 ac_cv_prog_AR="$AR" # Let the user override the test.
6871 else
6872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6873 for as_dir in $PATH
6874 do
6875 IFS=$as_save_IFS
6876 case $as_dir in #(((
6877 '') as_dir=./ ;;
6878 */) ;;
6879 *) as_dir=$as_dir/ ;;
6880 esac
6881 for ac_exec_ext in '' $ac_executable_extensions; do
6882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6883 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6885 break 2
6886 fi
6887 done
6888 done
6889 IFS=$as_save_IFS
6890
6891 fi ;;
6892 esac
6893 fi
6894 AR=$ac_cv_prog_AR
6895 if test -n "$AR"; then
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6897 printf "%s\n" "$AR" >&6; }
6898 else
6899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6900 printf "%s\n" "no" >&6; }
6901 fi
6902
6903
6904 test -n "$AR" && break
6905 done
6906 fi
6907 if test -z "$AR"; then
6908 ac_ct_AR=$AR
6909 for ac_prog in ar
6910 do
6911 # Extract the first word of "$ac_prog", so it can be a program name with args.
6912 set dummy $ac_prog; ac_word=$2
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6914 printf %s "checking for $ac_word... " >&6; }
6915 if test ${ac_cv_prog_ac_ct_AR+y}
6916 then :
6917 printf %s "(cached) " >&6
6918 else case e in #(
6919 e) if test -n "$ac_ct_AR"; then
6920 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6921 else
6922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6923 for as_dir in $PATH
6924 do
6925 IFS=$as_save_IFS
6926 case $as_dir in #(((
6927 '') as_dir=./ ;;
6928 */) ;;
6929 *) as_dir=$as_dir/ ;;
6930 esac
6931 for ac_exec_ext in '' $ac_executable_extensions; do
6932 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6933 ac_cv_prog_ac_ct_AR="$ac_prog"
6934 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6935 break 2
6936 fi
6937 done
6938 done
6939 IFS=$as_save_IFS
6940
6941 fi ;;
6942 esac
6943 fi
6944 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6945 if test -n "$ac_ct_AR"; then
6946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6947 printf "%s\n" "$ac_ct_AR" >&6; }
6948 else
6949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 printf "%s\n" "no" >&6; }
6951 fi
6952
6953
6954 test -n "$ac_ct_AR" && break
6955 done
6956
6957 if test "x$ac_ct_AR" = x; then
6958 AR="false"
6959 else
6960 case $cross_compiling:$ac_tool_warned in
6961 yes:)
6962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6963 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6964 ac_tool_warned=yes ;;
6965 esac
6966 AR=$ac_ct_AR
6967 fi
6968 fi
6969
6970 : ${AR=ar}
6971
6972
6973
6974
6975
6976
6977 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6978 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6979 # higher priority because that's what people were doing historically (setting
6980 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6981 # variable obsoleted/removed.
6982
6983 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6984 lt_ar_flags=$AR_FLAGS
6985
6986
6987
6988
6989
6990
6991 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6992 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6993
6994
6995
6996
6997
6998
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7000 printf %s "checking for archiver @FILE support... " >&6; }
7001 if test ${lt_cv_ar_at_file+y}
7002 then :
7003 printf %s "(cached) " >&6
7004 else case e in #(
7005 e) lt_cv_ar_at_file=no
7006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7007 /* end confdefs.h. */
7008
7009 int
7010 main (void)
7011 {
7012
7013 ;
7014 return 0;
7015 }
7016 _ACEOF
7017 if ac_fn_c_try_compile "$LINENO"
7018 then :
7019 echo conftest.$ac_objext > conftest.lst
7020 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7021 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7022 (eval $lt_ar_try) 2>&5
7023 ac_status=$?
7024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7025 test $ac_status = 0; }
7026 if test 0 -eq "$ac_status"; then
7027 # Ensure the archiver fails upon bogus file names.
7028 rm -f conftest.$ac_objext libconftest.a
7029 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7030 (eval $lt_ar_try) 2>&5
7031 ac_status=$?
7032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7033 test $ac_status = 0; }
7034 if test 0 -ne "$ac_status"; then
7035 lt_cv_ar_at_file=@
7036 fi
7037 fi
7038 rm -f conftest.* libconftest.a
7039
7040 fi
7041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7042 ;;
7043 esac
7044 fi
7045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7046 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
7047
7048 if test no = "$lt_cv_ar_at_file"; then
7049 archiver_list_spec=
7050 else
7051 archiver_list_spec=$lt_cv_ar_at_file
7052 fi
7053
7054
7055
7056
7057
7058
7059
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}strip; ac_word=$2
7063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 printf %s "checking for $ac_word... " >&6; }
7065 if test ${ac_cv_prog_STRIP+y}
7066 then :
7067 printf %s "(cached) " >&6
7068 else case e in #(
7069 e) if test -n "$STRIP"; then
7070 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7074 do
7075 IFS=$as_save_IFS
7076 case $as_dir in #(((
7077 '') as_dir=./ ;;
7078 */) ;;
7079 *) as_dir=$as_dir/ ;;
7080 esac
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7084 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091 fi ;;
7092 esac
7093 fi
7094 STRIP=$ac_cv_prog_STRIP
7095 if test -n "$STRIP"; then
7096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7097 printf "%s\n" "$STRIP" >&6; }
7098 else
7099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7100 printf "%s\n" "no" >&6; }
7101 fi
7102
7103
7104 fi
7105 if test -z "$ac_cv_prog_STRIP"; then
7106 ac_ct_STRIP=$STRIP
7107 # Extract the first word of "strip", so it can be a program name with args.
7108 set dummy strip; ac_word=$2
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 printf %s "checking for $ac_word... " >&6; }
7111 if test ${ac_cv_prog_ac_ct_STRIP+y}
7112 then :
7113 printf %s "(cached) " >&6
7114 else case e in #(
7115 e) if test -n "$ac_ct_STRIP"; then
7116 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121 IFS=$as_save_IFS
7122 case $as_dir in #(((
7123 '') as_dir=./ ;;
7124 */) ;;
7125 *) as_dir=$as_dir/ ;;
7126 esac
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7129 ac_cv_prog_ac_ct_STRIP="strip"
7130 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7131 break 2
7132 fi
7133 done
7134 done
7135 IFS=$as_save_IFS
7136
7137 fi ;;
7138 esac
7139 fi
7140 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7141 if test -n "$ac_ct_STRIP"; then
7142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7143 printf "%s\n" "$ac_ct_STRIP" >&6; }
7144 else
7145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7146 printf "%s\n" "no" >&6; }
7147 fi
7148
7149 if test "x$ac_ct_STRIP" = x; then
7150 STRIP=":"
7151 else
7152 case $cross_compiling:$ac_tool_warned in
7153 yes:)
7154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7155 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7156 ac_tool_warned=yes ;;
7157 esac
7158 STRIP=$ac_ct_STRIP
7159 fi
7160 else
7161 STRIP="$ac_cv_prog_STRIP"
7162 fi
7163
7164 test -z "$STRIP" && STRIP=:
7165
7166
7167
7168
7169
7170
7171
7172 test -z "$RANLIB" && RANLIB=:
7173
7174
7175
7176
7177
7178
7179 # Determine commands to create old-style static archives.
7180 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7181 old_postinstall_cmds='chmod 644 $oldlib'
7182 old_postuninstall_cmds=
7183
7184 if test -n "$RANLIB"; then
7185 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7186 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7187 fi
7188
7189 case $host_os in
7190 darwin*)
7191 lock_old_archive_extraction=yes ;;
7192 *)
7193 lock_old_archive_extraction=no ;;
7194 esac
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214
7215
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234 # If no C compiler was specified, use CC.
7235 LTCC=${LTCC-"$CC"}
7236
7237 # If no C compiler flags were specified, use CFLAGS.
7238 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7239
7240 # Allow CC to be a program name with arguments.
7241 compiler=$CC
7242
7243
7244 # Check for command to grab the raw symbol name followed by C symbol from nm.
7245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7246 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7247 if test ${lt_cv_sys_global_symbol_pipe+y}
7248 then :
7249 printf %s "(cached) " >&6
7250 else case e in #(
7251 e)
7252 # These are sane defaults that work on at least a few old systems.
7253 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7254
7255 # Character class describing NM global symbol codes.
7256 symcode='[BCDEGRST]'
7257
7258 # Regexp to match symbols that can be accessed directly from C.
7259 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7260
7261 # Define system-specific variables.
7262 case $host_os in
7263 aix*)
7264 symcode='[BCDT]'
7265 ;;
7266 cygwin* | mingw* | windows* | pw32* | cegcc*)
7267 symcode='[ABCDGISTW]'
7268 ;;
7269 hpux*)
7270 if test ia64 = "$host_cpu"; then
7271 symcode='[ABCDEGRST]'
7272 fi
7273 ;;
7274 irix* | nonstopux*)
7275 symcode='[BCDEGRST]'
7276 ;;
7277 osf*)
7278 symcode='[BCDEGQRST]'
7279 ;;
7280 solaris*)
7281 symcode='[BCDRT]'
7282 ;;
7283 sco3.2v5*)
7284 symcode='[DT]'
7285 ;;
7286 sysv4.2uw2*)
7287 symcode='[DT]'
7288 ;;
7289 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7290 symcode='[ABDT]'
7291 ;;
7292 sysv4)
7293 symcode='[DFNSTU]'
7294 ;;
7295 esac
7296
7297 # If we're using GNU nm, then use its standard symbol codes.
7298 case `$NM -V 2>&1` in
7299 *GNU* | *'with BFD'*)
7300 symcode='[ABCDGIRSTW]' ;;
7301 esac
7302
7303 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7304 # Gets list of data symbols to import.
7305 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7306 # Adjust the below global symbol transforms to fixup imported variables.
7307 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7308 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7309 lt_c_name_lib_hook="\
7310 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7311 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7312 else
7313 # Disable hooks by default.
7314 lt_cv_sys_global_symbol_to_import=
7315 lt_cdecl_hook=
7316 lt_c_name_hook=
7317 lt_c_name_lib_hook=
7318 fi
7319
7320 # Transform an extracted symbol line into a proper C declaration.
7321 # Some systems (esp. on ia64) link data and code symbols differently,
7322 # so use this general approach.
7323 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7324 $lt_cdecl_hook\
7325 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7326 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7327
7328 # Transform an extracted symbol line into symbol name and symbol address
7329 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7330 $lt_c_name_hook\
7331 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7332 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7333
7334 # Transform an extracted symbol line into symbol name with lib prefix and
7335 # symbol address.
7336 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7337 $lt_c_name_lib_hook\
7338 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7339 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7340 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7341
7342 # Handle CRLF in mingw tool chain
7343 opt_cr=
7344 case $build_os in
7345 mingw* | windows*)
7346 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7347 ;;
7348 esac
7349
7350 # Try without a prefix underscore, then with it.
7351 for ac_symprfx in "" "_"; do
7352
7353 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7354 symxfrm="\\1 $ac_symprfx\\2 \\2"
7355
7356 # Write the raw and C identifiers.
7357 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7358 # Fake it for dumpbin and say T for any non-static function,
7359 # D for any global variable and I for any imported variable.
7360 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7361 # which start with @ or ?.
7362 lt_cv_sys_global_symbol_pipe="$AWK '"\
7363 " {last_section=section; section=\$ 3};"\
7364 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7365 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7366 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7367 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7368 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7369 " \$ 0!~/External *\|/{next};"\
7370 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7371 " {if(hide[section]) next};"\
7372 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7373 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7374 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7375 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7376 " ' prfx=^$ac_symprfx"
7377 else
7378 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7379 fi
7380 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7381
7382 # Check to see that the pipe works correctly.
7383 pipe_works=no
7384
7385 rm -f conftest*
7386 cat > conftest.$ac_ext <<_LT_EOF
7387 #ifdef __cplusplus
7388 extern "C" {
7389 #endif
7390 char nm_test_var;
7391 void nm_test_func(void);
7392 void nm_test_func(void){}
7393 #ifdef __cplusplus
7394 }
7395 #endif
7396 int main(void){nm_test_var='a';nm_test_func();return(0);}
7397 _LT_EOF
7398
7399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7400 (eval $ac_compile) 2>&5
7401 ac_status=$?
7402 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7403 test $ac_status = 0; }; then
7404 # Now try to grab the symbols.
7405 nlist=conftest.nm
7406 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
7407 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
7408 # Try sorting and uniquifying the output.
7409 if sort "$nlist" | uniq > "$nlist"T; then
7410 mv -f "$nlist"T "$nlist"
7411 else
7412 rm -f "$nlist"T
7413 fi
7414
7415 # Make sure that we snagged all the symbols we need.
7416 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7417 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7418 cat <<_LT_EOF > conftest.$ac_ext
7419 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7420 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7421 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7422 relocations are performed -- see ld's documentation on pseudo-relocs. */
7423 # define LT_DLSYM_CONST
7424 #elif defined __osf__
7425 /* This system does not cope well with relocations in const data. */
7426 # define LT_DLSYM_CONST
7427 #else
7428 # define LT_DLSYM_CONST const
7429 #endif
7430
7431 #ifdef __cplusplus
7432 extern "C" {
7433 #endif
7434
7435 _LT_EOF
7436 # Now generate the symbol file.
7437 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7438
7439 cat <<_LT_EOF >> conftest.$ac_ext
7440
7441 /* The mapping between symbol names and symbols. */
7442 LT_DLSYM_CONST struct {
7443 const char *name;
7444 void *address;
7445 }
7446 lt__PROGRAM__LTX_preloaded_symbols[] =
7447 {
7448 { "@PROGRAM@", (void *) 0 },
7449 _LT_EOF
7450 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7451 cat <<\_LT_EOF >> conftest.$ac_ext
7452 {0, (void *) 0}
7453 };
7454
7455 /* This works around a problem in FreeBSD linker */
7456 #ifdef FREEBSD_WORKAROUND
7457 static const void *lt_preloaded_setup() {
7458 return lt__PROGRAM__LTX_preloaded_symbols;
7459 }
7460 #endif
7461
7462 #ifdef __cplusplus
7463 }
7464 #endif
7465 _LT_EOF
7466 # Now try linking the two files.
7467 mv conftest.$ac_objext conftstm.$ac_objext
7468 lt_globsym_save_LIBS=$LIBS
7469 lt_globsym_save_CFLAGS=$CFLAGS
7470 LIBS=conftstm.$ac_objext
7471 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7473 (eval $ac_link) 2>&5
7474 ac_status=$?
7475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7476 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7477 pipe_works=yes
7478 fi
7479 LIBS=$lt_globsym_save_LIBS
7480 CFLAGS=$lt_globsym_save_CFLAGS
7481 else
7482 echo "cannot find nm_test_func in $nlist" >&5
7483 fi
7484 else
7485 echo "cannot find nm_test_var in $nlist" >&5
7486 fi
7487 else
7488 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7489 fi
7490 else
7491 echo "$progname: failed program was:" >&5
7492 cat conftest.$ac_ext >&5
7493 fi
7494 rm -rf conftest* conftst*
7495
7496 # Do not use the global_symbol_pipe unless it works.
7497 if test yes = "$pipe_works"; then
7498 break
7499 else
7500 lt_cv_sys_global_symbol_pipe=
7501 fi
7502 done
7503 ;;
7504 esac
7505 fi
7506
7507 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7508 lt_cv_sys_global_symbol_to_cdecl=
7509 fi
7510 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7512 printf "%s\n" "failed" >&6; }
7513 else
7514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7515 printf "%s\n" "ok" >&6; }
7516 fi
7517
7518 # Response file support.
7519 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7520 nm_file_list_spec='@'
7521 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7522 nm_file_list_spec='@'
7523 fi
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546
7547
7548
7549
7550
7551
7552
7553
7554
7555
7556
7557
7558
7559
7560
7561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7562 printf %s "checking for sysroot... " >&6; }
7563
7564 # Check whether --with-sysroot was given.
7565 if test ${with_sysroot+y}
7566 then :
7567 withval=$with_sysroot;
7568 else case e in #(
7569 e) with_sysroot=no ;;
7570 esac
7571 fi
7572
7573
7574 lt_sysroot=
7575 case $with_sysroot in #(
7576 yes)
7577 if test yes = "$GCC"; then
7578 # Trim trailing / since we'll always append absolute paths and we want
7579 # to avoid //, if only for less confusing output for the user.
7580 lt_sysroot=`$CC --print-sysroot 2>/dev/null | $SED 's:/\+$::'`
7581 fi
7582 ;; #(
7583 /*)
7584 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7585 ;; #(
7586 no|'')
7587 ;; #(
7588 *)
7589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7590 printf "%s\n" "$with_sysroot" >&6; }
7591 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7592 ;;
7593 esac
7594
7595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7596 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7597
7598
7599
7600
7601
7602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7603 printf %s "checking for a working dd... " >&6; }
7604 if test ${ac_cv_path_lt_DD+y}
7605 then :
7606 printf %s "(cached) " >&6
7607 else case e in #(
7608 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7609 cat conftest.i conftest.i >conftest2.i
7610 : ${lt_DD:=$DD}
7611 if test -z "$lt_DD"; then
7612 ac_path_lt_DD_found=false
7613 # Loop through the user's path and test for each of PROGNAME-LIST
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 case $as_dir in #(((
7619 '') as_dir=./ ;;
7620 */) ;;
7621 *) as_dir=$as_dir/ ;;
7622 esac
7623 for ac_prog in dd
7624 do
7625 for ac_exec_ext in '' $ac_executable_extensions; do
7626 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7627 as_fn_executable_p "$ac_path_lt_DD" || continue
7628 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7629 cmp -s conftest.i conftest.out \
7630 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7631 fi
7632 $ac_path_lt_DD_found && break 3
7633 done
7634 done
7635 done
7636 IFS=$as_save_IFS
7637 if test -z "$ac_cv_path_lt_DD"; then
7638 :
7639 fi
7640 else
7641 ac_cv_path_lt_DD=$lt_DD
7642 fi
7643
7644 rm -f conftest.i conftest2.i conftest.out ;;
7645 esac
7646 fi
7647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7648 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7649
7650
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7652 printf %s "checking how to truncate binary pipes... " >&6; }
7653 if test ${lt_cv_truncate_bin+y}
7654 then :
7655 printf %s "(cached) " >&6
7656 else case e in #(
7657 e) printf 0123456789abcdef0123456789abcdef >conftest.i
7658 cat conftest.i conftest.i >conftest2.i
7659 lt_cv_truncate_bin=
7660 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7661 cmp -s conftest.i conftest.out \
7662 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7663 fi
7664 rm -f conftest.i conftest2.i conftest.out
7665 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" ;;
7666 esac
7667 fi
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7669 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7670
7671
7672
7673
7674
7675
7676
7677 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7678 func_cc_basename ()
7679 {
7680 for cc_temp in $*""; do
7681 case $cc_temp in
7682 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7683 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7684 \-*) ;;
7685 *) break;;
7686 esac
7687 done
7688 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7689 }
7690
7691 # Check whether --enable-libtool-lock was given.
7692 if test ${enable_libtool_lock+y}
7693 then :
7694 enableval=$enable_libtool_lock;
7695 fi
7696
7697 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7698
7699 # Some flags need to be propagated to the compiler or linker for good
7700 # libtool support.
7701 case $host in
7702 ia64-*-hpux*)
7703 # Find out what ABI is being produced by ac_compile, and set mode
7704 # options accordingly.
7705 echo 'int i;' > conftest.$ac_ext
7706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7707 (eval $ac_compile) 2>&5
7708 ac_status=$?
7709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7710 test $ac_status = 0; }; then
7711 case `$FILECMD conftest.$ac_objext` in
7712 *ELF-32*)
7713 HPUX_IA64_MODE=32
7714 ;;
7715 *ELF-64*)
7716 HPUX_IA64_MODE=64
7717 ;;
7718 esac
7719 fi
7720 rm -rf conftest*
7721 ;;
7722 *-*-irix6*)
7723 # Find out what ABI is being produced by ac_compile, and set linker
7724 # options accordingly.
7725 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7727 (eval $ac_compile) 2>&5
7728 ac_status=$?
7729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7730 test $ac_status = 0; }; then
7731 if test yes = "$lt_cv_prog_gnu_ld"; then
7732 case `$FILECMD conftest.$ac_objext` in
7733 *32-bit*)
7734 LD="${LD-ld} -melf32bsmip"
7735 ;;
7736 *N32*)
7737 LD="${LD-ld} -melf32bmipn32"
7738 ;;
7739 *64-bit*)
7740 LD="${LD-ld} -melf64bmip"
7741 ;;
7742 esac
7743 else
7744 case `$FILECMD conftest.$ac_objext` in
7745 *32-bit*)
7746 LD="${LD-ld} -32"
7747 ;;
7748 *N32*)
7749 LD="${LD-ld} -n32"
7750 ;;
7751 *64-bit*)
7752 LD="${LD-ld} -64"
7753 ;;
7754 esac
7755 fi
7756 fi
7757 rm -rf conftest*
7758 ;;
7759
7760 mips64*-*linux*)
7761 # Find out what ABI is being produced by ac_compile, and set linker
7762 # options accordingly.
7763 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7764 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7765 (eval $ac_compile) 2>&5
7766 ac_status=$?
7767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7768 test $ac_status = 0; }; then
7769 emul=elf
7770 case `$FILECMD conftest.$ac_objext` in
7771 *32-bit*)
7772 emul="${emul}32"
7773 ;;
7774 *64-bit*)
7775 emul="${emul}64"
7776 ;;
7777 esac
7778 case `$FILECMD conftest.$ac_objext` in
7779 *MSB*)
7780 emul="${emul}btsmip"
7781 ;;
7782 *LSB*)
7783 emul="${emul}ltsmip"
7784 ;;
7785 esac
7786 case `$FILECMD conftest.$ac_objext` in
7787 *N32*)
7788 emul="${emul}n32"
7789 ;;
7790 esac
7791 LD="${LD-ld} -m $emul"
7792 fi
7793 rm -rf conftest*
7794 ;;
7795
7796 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7797 s390*-*linux*|s390*-*tpf*|sparc*-*linux*|x86_64-gnu*)
7798 # Find out what ABI is being produced by ac_compile, and set linker
7799 # options accordingly. Note that the listed cases only cover the
7800 # situations where additional linker options are needed (such as when
7801 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7802 # vice versa); the common cases where no linker options are needed do
7803 # not appear in the list.
7804 echo 'int i;' > conftest.$ac_ext
7805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7806 (eval $ac_compile) 2>&5
7807 ac_status=$?
7808 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7809 test $ac_status = 0; }; then
7810 case `$FILECMD conftest.o` in
7811 *32-bit*)
7812 case $host in
7813 x86_64-*kfreebsd*-gnu)
7814 LD="${LD-ld} -m elf_i386_fbsd"
7815 ;;
7816 x86_64-*linux*|x86_64-gnu*)
7817 case `$FILECMD conftest.o` in
7818 *x86-64*)
7819 LD="${LD-ld} -m elf32_x86_64"
7820 ;;
7821 *)
7822 LD="${LD-ld} -m elf_i386"
7823 ;;
7824 esac
7825 ;;
7826 powerpc64le-*linux*)
7827 LD="${LD-ld} -m elf32lppclinux"
7828 ;;
7829 powerpc64-*linux*)
7830 LD="${LD-ld} -m elf32ppclinux"
7831 ;;
7832 s390x-*linux*)
7833 LD="${LD-ld} -m elf_s390"
7834 ;;
7835 sparc64-*linux*)
7836 LD="${LD-ld} -m elf32_sparc"
7837 ;;
7838 esac
7839 ;;
7840 *64-bit*)
7841 case $host in
7842 x86_64-*kfreebsd*-gnu)
7843 LD="${LD-ld} -m elf_x86_64_fbsd"
7844 ;;
7845 x86_64-*linux*|x86_64-gnu*)
7846 LD="${LD-ld} -m elf_x86_64"
7847 ;;
7848 powerpcle-*linux*)
7849 LD="${LD-ld} -m elf64lppc"
7850 ;;
7851 powerpc-*linux*)
7852 LD="${LD-ld} -m elf64ppc"
7853 ;;
7854 s390*-*linux*|s390*-*tpf*)
7855 LD="${LD-ld} -m elf64_s390"
7856 ;;
7857 sparc*-*linux*)
7858 LD="${LD-ld} -m elf64_sparc"
7859 ;;
7860 esac
7861 ;;
7862 esac
7863 fi
7864 rm -rf conftest*
7865 ;;
7866
7867 *-*-sco3.2v5*)
7868 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7869 SAVE_CFLAGS=$CFLAGS
7870 CFLAGS="$CFLAGS -belf"
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7872 printf %s "checking whether the C compiler needs -belf... " >&6; }
7873 if test ${lt_cv_cc_needs_belf+y}
7874 then :
7875 printf %s "(cached) " >&6
7876 else case e in #(
7877 e) ac_ext=c
7878 ac_cpp='$CPP $CPPFLAGS'
7879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7882
7883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7884 /* end confdefs.h. */
7885
7886 int
7887 main (void)
7888 {
7889
7890 ;
7891 return 0;
7892 }
7893 _ACEOF
7894 if ac_fn_c_try_link "$LINENO"
7895 then :
7896 lt_cv_cc_needs_belf=yes
7897 else case e in #(
7898 e) lt_cv_cc_needs_belf=no ;;
7899 esac
7900 fi
7901 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7902 conftest$ac_exeext conftest.$ac_ext
7903 ac_ext=c
7904 ac_cpp='$CPP $CPPFLAGS'
7905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7908 ;;
7909 esac
7910 fi
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7912 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7913 if test yes != "$lt_cv_cc_needs_belf"; then
7914 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7915 CFLAGS=$SAVE_CFLAGS
7916 fi
7917 ;;
7918 *-*solaris*)
7919 # Find out what ABI is being produced by ac_compile, and set linker
7920 # options accordingly.
7921 echo 'int i;' > conftest.$ac_ext
7922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923 (eval $ac_compile) 2>&5
7924 ac_status=$?
7925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926 test $ac_status = 0; }; then
7927 case `$FILECMD conftest.o` in
7928 *64-bit*)
7929 case $lt_cv_prog_gnu_ld in
7930 yes*)
7931 case $host in
7932 i?86-*-solaris*|x86_64-*-solaris*)
7933 LD="${LD-ld} -m elf_x86_64"
7934 ;;
7935 sparc*-*-solaris*)
7936 LD="${LD-ld} -m elf64_sparc"
7937 ;;
7938 esac
7939 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7940 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7941 LD=${LD-ld}_sol2
7942 fi
7943 ;;
7944 *)
7945 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7946 LD="${LD-ld} -64"
7947 fi
7948 ;;
7949 esac
7950 ;;
7951 esac
7952 fi
7953 rm -rf conftest*
7954 ;;
7955 esac
7956
7957 need_locks=$enable_libtool_lock
7958
7959 if test -n "$ac_tool_prefix"; then
7960 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7961 set dummy ${ac_tool_prefix}mt; ac_word=$2
7962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7963 printf %s "checking for $ac_word... " >&6; }
7964 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7965 then :
7966 printf %s "(cached) " >&6
7967 else case e in #(
7968 e) if test -n "$MANIFEST_TOOL"; then
7969 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7973 do
7974 IFS=$as_save_IFS
7975 case $as_dir in #(((
7976 '') as_dir=./ ;;
7977 */) ;;
7978 *) as_dir=$as_dir/ ;;
7979 esac
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7983 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi ;;
7991 esac
7992 fi
7993 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7994 if test -n "$MANIFEST_TOOL"; then
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7996 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7997 else
7998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7999 printf "%s\n" "no" >&6; }
8000 fi
8001
8002
8003 fi
8004 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8005 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8006 # Extract the first word of "mt", so it can be a program name with args.
8007 set dummy mt; ac_word=$2
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 printf %s "checking for $ac_word... " >&6; }
8010 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
8011 then :
8012 printf %s "(cached) " >&6
8013 else case e in #(
8014 e) if test -n "$ac_ct_MANIFEST_TOOL"; then
8015 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 case $as_dir in #(((
8022 '') as_dir=./ ;;
8023 */) ;;
8024 *) as_dir=$as_dir/ ;;
8025 esac
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi ;;
8037 esac
8038 fi
8039 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8040 if test -n "$ac_ct_MANIFEST_TOOL"; then
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8042 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
8043 else
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 printf "%s\n" "no" >&6; }
8046 fi
8047
8048 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8049 MANIFEST_TOOL=":"
8050 else
8051 case $cross_compiling:$ac_tool_warned in
8052 yes:)
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8055 ac_tool_warned=yes ;;
8056 esac
8057 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8058 fi
8059 else
8060 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8061 fi
8062
8063 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8065 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8066 if test ${lt_cv_path_manifest_tool+y}
8067 then :
8068 printf %s "(cached) " >&6
8069 else case e in #(
8070 e) lt_cv_path_manifest_tool=no
8071 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8072 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8073 cat conftest.err >&5
8074 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8075 lt_cv_path_manifest_tool=yes
8076 fi
8077 rm -f conftest* ;;
8078 esac
8079 fi
8080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_manifest_tool" >&5
8081 printf "%s\n" "$lt_cv_path_manifest_tool" >&6; }
8082 if test yes != "$lt_cv_path_manifest_tool"; then
8083 MANIFEST_TOOL=:
8084 fi
8085
8086
8087
8088
8089
8090
8091 case $host_os in
8092 rhapsody* | darwin*)
8093 if test -n "$ac_tool_prefix"; then
8094 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8095 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8097 printf %s "checking for $ac_word... " >&6; }
8098 if test ${ac_cv_prog_DSYMUTIL+y}
8099 then :
8100 printf %s "(cached) " >&6
8101 else case e in #(
8102 e) if test -n "$DSYMUTIL"; then
8103 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8104 else
8105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8106 for as_dir in $PATH
8107 do
8108 IFS=$as_save_IFS
8109 case $as_dir in #(((
8110 '') as_dir=./ ;;
8111 */) ;;
8112 *) as_dir=$as_dir/ ;;
8113 esac
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8116 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8118 break 2
8119 fi
8120 done
8121 done
8122 IFS=$as_save_IFS
8123
8124 fi ;;
8125 esac
8126 fi
8127 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8128 if test -n "$DSYMUTIL"; then
8129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8130 printf "%s\n" "$DSYMUTIL" >&6; }
8131 else
8132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 printf "%s\n" "no" >&6; }
8134 fi
8135
8136
8137 fi
8138 if test -z "$ac_cv_prog_DSYMUTIL"; then
8139 ac_ct_DSYMUTIL=$DSYMUTIL
8140 # Extract the first word of "dsymutil", so it can be a program name with args.
8141 set dummy dsymutil; ac_word=$2
8142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8143 printf %s "checking for $ac_word... " >&6; }
8144 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8145 then :
8146 printf %s "(cached) " >&6
8147 else case e in #(
8148 e) if test -n "$ac_ct_DSYMUTIL"; then
8149 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8150 else
8151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8152 for as_dir in $PATH
8153 do
8154 IFS=$as_save_IFS
8155 case $as_dir in #(((
8156 '') as_dir=./ ;;
8157 */) ;;
8158 *) as_dir=$as_dir/ ;;
8159 esac
8160 for ac_exec_ext in '' $ac_executable_extensions; do
8161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8162 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8164 break 2
8165 fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170 fi ;;
8171 esac
8172 fi
8173 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8174 if test -n "$ac_ct_DSYMUTIL"; then
8175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8176 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8177 else
8178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8179 printf "%s\n" "no" >&6; }
8180 fi
8181
8182 if test "x$ac_ct_DSYMUTIL" = x; then
8183 DSYMUTIL=":"
8184 else
8185 case $cross_compiling:$ac_tool_warned in
8186 yes:)
8187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8188 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8189 ac_tool_warned=yes ;;
8190 esac
8191 DSYMUTIL=$ac_ct_DSYMUTIL
8192 fi
8193 else
8194 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8195 fi
8196
8197 if test -n "$ac_tool_prefix"; then
8198 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8199 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8201 printf %s "checking for $ac_word... " >&6; }
8202 if test ${ac_cv_prog_NMEDIT+y}
8203 then :
8204 printf %s "(cached) " >&6
8205 else case e in #(
8206 e) if test -n "$NMEDIT"; then
8207 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8208 else
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8211 do
8212 IFS=$as_save_IFS
8213 case $as_dir in #(((
8214 '') as_dir=./ ;;
8215 */) ;;
8216 *) as_dir=$as_dir/ ;;
8217 esac
8218 for ac_exec_ext in '' $ac_executable_extensions; do
8219 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8220 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8221 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8222 break 2
8223 fi
8224 done
8225 done
8226 IFS=$as_save_IFS
8227
8228 fi ;;
8229 esac
8230 fi
8231 NMEDIT=$ac_cv_prog_NMEDIT
8232 if test -n "$NMEDIT"; then
8233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8234 printf "%s\n" "$NMEDIT" >&6; }
8235 else
8236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 printf "%s\n" "no" >&6; }
8238 fi
8239
8240
8241 fi
8242 if test -z "$ac_cv_prog_NMEDIT"; then
8243 ac_ct_NMEDIT=$NMEDIT
8244 # Extract the first word of "nmedit", so it can be a program name with args.
8245 set dummy nmedit; ac_word=$2
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 printf %s "checking for $ac_word... " >&6; }
8248 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8249 then :
8250 printf %s "(cached) " >&6
8251 else case e in #(
8252 e) if test -n "$ac_ct_NMEDIT"; then
8253 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8254 else
8255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8256 for as_dir in $PATH
8257 do
8258 IFS=$as_save_IFS
8259 case $as_dir in #(((
8260 '') as_dir=./ ;;
8261 */) ;;
8262 *) as_dir=$as_dir/ ;;
8263 esac
8264 for ac_exec_ext in '' $ac_executable_extensions; do
8265 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8266 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8267 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8268 break 2
8269 fi
8270 done
8271 done
8272 IFS=$as_save_IFS
8273
8274 fi ;;
8275 esac
8276 fi
8277 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8278 if test -n "$ac_ct_NMEDIT"; then
8279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8280 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8281 else
8282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8283 printf "%s\n" "no" >&6; }
8284 fi
8285
8286 if test "x$ac_ct_NMEDIT" = x; then
8287 NMEDIT=":"
8288 else
8289 case $cross_compiling:$ac_tool_warned in
8290 yes:)
8291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8292 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8293 ac_tool_warned=yes ;;
8294 esac
8295 NMEDIT=$ac_ct_NMEDIT
8296 fi
8297 else
8298 NMEDIT="$ac_cv_prog_NMEDIT"
8299 fi
8300
8301 if test -n "$ac_tool_prefix"; then
8302 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8303 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 printf %s "checking for $ac_word... " >&6; }
8306 if test ${ac_cv_prog_LIPO+y}
8307 then :
8308 printf %s "(cached) " >&6
8309 else case e in #(
8310 e) if test -n "$LIPO"; then
8311 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8312 else
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8315 do
8316 IFS=$as_save_IFS
8317 case $as_dir in #(((
8318 '') as_dir=./ ;;
8319 */) ;;
8320 *) as_dir=$as_dir/ ;;
8321 esac
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8324 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8326 break 2
8327 fi
8328 done
8329 done
8330 IFS=$as_save_IFS
8331
8332 fi ;;
8333 esac
8334 fi
8335 LIPO=$ac_cv_prog_LIPO
8336 if test -n "$LIPO"; then
8337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8338 printf "%s\n" "$LIPO" >&6; }
8339 else
8340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 printf "%s\n" "no" >&6; }
8342 fi
8343
8344
8345 fi
8346 if test -z "$ac_cv_prog_LIPO"; then
8347 ac_ct_LIPO=$LIPO
8348 # Extract the first word of "lipo", so it can be a program name with args.
8349 set dummy lipo; ac_word=$2
8350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8351 printf %s "checking for $ac_word... " >&6; }
8352 if test ${ac_cv_prog_ac_ct_LIPO+y}
8353 then :
8354 printf %s "(cached) " >&6
8355 else case e in #(
8356 e) if test -n "$ac_ct_LIPO"; then
8357 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8358 else
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8360 for as_dir in $PATH
8361 do
8362 IFS=$as_save_IFS
8363 case $as_dir in #(((
8364 '') as_dir=./ ;;
8365 */) ;;
8366 *) as_dir=$as_dir/ ;;
8367 esac
8368 for ac_exec_ext in '' $ac_executable_extensions; do
8369 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8370 ac_cv_prog_ac_ct_LIPO="lipo"
8371 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8372 break 2
8373 fi
8374 done
8375 done
8376 IFS=$as_save_IFS
8377
8378 fi ;;
8379 esac
8380 fi
8381 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8382 if test -n "$ac_ct_LIPO"; then
8383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8384 printf "%s\n" "$ac_ct_LIPO" >&6; }
8385 else
8386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 printf "%s\n" "no" >&6; }
8388 fi
8389
8390 if test "x$ac_ct_LIPO" = x; then
8391 LIPO=":"
8392 else
8393 case $cross_compiling:$ac_tool_warned in
8394 yes:)
8395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8396 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8397 ac_tool_warned=yes ;;
8398 esac
8399 LIPO=$ac_ct_LIPO
8400 fi
8401 else
8402 LIPO="$ac_cv_prog_LIPO"
8403 fi
8404
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}otool; ac_word=$2
8408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 printf %s "checking for $ac_word... " >&6; }
8410 if test ${ac_cv_prog_OTOOL+y}
8411 then :
8412 printf %s "(cached) " >&6
8413 else case e in #(
8414 e) if test -n "$OTOOL"; then
8415 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8416 else
8417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8418 for as_dir in $PATH
8419 do
8420 IFS=$as_save_IFS
8421 case $as_dir in #(((
8422 '') as_dir=./ ;;
8423 */) ;;
8424 *) as_dir=$as_dir/ ;;
8425 esac
8426 for ac_exec_ext in '' $ac_executable_extensions; do
8427 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8428 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8429 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8430 break 2
8431 fi
8432 done
8433 done
8434 IFS=$as_save_IFS
8435
8436 fi ;;
8437 esac
8438 fi
8439 OTOOL=$ac_cv_prog_OTOOL
8440 if test -n "$OTOOL"; then
8441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8442 printf "%s\n" "$OTOOL" >&6; }
8443 else
8444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 printf "%s\n" "no" >&6; }
8446 fi
8447
8448
8449 fi
8450 if test -z "$ac_cv_prog_OTOOL"; then
8451 ac_ct_OTOOL=$OTOOL
8452 # Extract the first word of "otool", so it can be a program name with args.
8453 set dummy otool; ac_word=$2
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 printf %s "checking for $ac_word... " >&6; }
8456 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8457 then :
8458 printf %s "(cached) " >&6
8459 else case e in #(
8460 e) if test -n "$ac_ct_OTOOL"; then
8461 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8462 else
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464 for as_dir in $PATH
8465 do
8466 IFS=$as_save_IFS
8467 case $as_dir in #(((
8468 '') as_dir=./ ;;
8469 */) ;;
8470 *) as_dir=$as_dir/ ;;
8471 esac
8472 for ac_exec_ext in '' $ac_executable_extensions; do
8473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8474 ac_cv_prog_ac_ct_OTOOL="otool"
8475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8476 break 2
8477 fi
8478 done
8479 done
8480 IFS=$as_save_IFS
8481
8482 fi ;;
8483 esac
8484 fi
8485 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8486 if test -n "$ac_ct_OTOOL"; then
8487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8488 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8489 else
8490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8491 printf "%s\n" "no" >&6; }
8492 fi
8493
8494 if test "x$ac_ct_OTOOL" = x; then
8495 OTOOL=":"
8496 else
8497 case $cross_compiling:$ac_tool_warned in
8498 yes:)
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8500 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8501 ac_tool_warned=yes ;;
8502 esac
8503 OTOOL=$ac_ct_OTOOL
8504 fi
8505 else
8506 OTOOL="$ac_cv_prog_OTOOL"
8507 fi
8508
8509 if test -n "$ac_tool_prefix"; then
8510 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8511 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513 printf %s "checking for $ac_word... " >&6; }
8514 if test ${ac_cv_prog_OTOOL64+y}
8515 then :
8516 printf %s "(cached) " >&6
8517 else case e in #(
8518 e) if test -n "$OTOOL64"; then
8519 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524 IFS=$as_save_IFS
8525 case $as_dir in #(((
8526 '') as_dir=./ ;;
8527 */) ;;
8528 *) as_dir=$as_dir/ ;;
8529 esac
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8532 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8534 break 2
8535 fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540 fi ;;
8541 esac
8542 fi
8543 OTOOL64=$ac_cv_prog_OTOOL64
8544 if test -n "$OTOOL64"; then
8545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8546 printf "%s\n" "$OTOOL64" >&6; }
8547 else
8548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8549 printf "%s\n" "no" >&6; }
8550 fi
8551
8552
8553 fi
8554 if test -z "$ac_cv_prog_OTOOL64"; then
8555 ac_ct_OTOOL64=$OTOOL64
8556 # Extract the first word of "otool64", so it can be a program name with args.
8557 set dummy otool64; ac_word=$2
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8559 printf %s "checking for $ac_word... " >&6; }
8560 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8561 then :
8562 printf %s "(cached) " >&6
8563 else case e in #(
8564 e) if test -n "$ac_ct_OTOOL64"; then
8565 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8566 else
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570 IFS=$as_save_IFS
8571 case $as_dir in #(((
8572 '') as_dir=./ ;;
8573 */) ;;
8574 *) as_dir=$as_dir/ ;;
8575 esac
8576 for ac_exec_ext in '' $ac_executable_extensions; do
8577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8578 ac_cv_prog_ac_ct_OTOOL64="otool64"
8579 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8580 break 2
8581 fi
8582 done
8583 done
8584 IFS=$as_save_IFS
8585
8586 fi ;;
8587 esac
8588 fi
8589 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8590 if test -n "$ac_ct_OTOOL64"; then
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8592 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8593 else
8594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8595 printf "%s\n" "no" >&6; }
8596 fi
8597
8598 if test "x$ac_ct_OTOOL64" = x; then
8599 OTOOL64=":"
8600 else
8601 case $cross_compiling:$ac_tool_warned in
8602 yes:)
8603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8604 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8605 ac_tool_warned=yes ;;
8606 esac
8607 OTOOL64=$ac_ct_OTOOL64
8608 fi
8609 else
8610 OTOOL64="$ac_cv_prog_OTOOL64"
8611 fi
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636
8637
8638
8639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8640 printf %s "checking for -single_module linker flag... " >&6; }
8641 if test ${lt_cv_apple_cc_single_mod+y}
8642 then :
8643 printf %s "(cached) " >&6
8644 else case e in #(
8645 e) lt_cv_apple_cc_single_mod=no
8646 if test -z "$LT_MULTI_MODULE"; then
8647 # By default we will add the -single_module flag. You can override
8648 # by either setting the environment variable LT_MULTI_MODULE
8649 # non-empty at configure time, or by adding -multi_module to the
8650 # link flags.
8651 rm -rf libconftest.dylib*
8652 echo "int foo(void){return 1;}" > conftest.c
8653 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8654 -dynamiclib -Wl,-single_module conftest.c" >&5
8655 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8656 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8657 _lt_result=$?
8658 # If there is a non-empty error log, and "single_module"
8659 # appears in it, assume the flag caused a linker warning
8660 if test -s conftest.err && $GREP single_module conftest.err; then
8661 cat conftest.err >&5
8662 # Otherwise, if the output was created with a 0 exit code from
8663 # the compiler, it worked.
8664 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8665 lt_cv_apple_cc_single_mod=yes
8666 else
8667 cat conftest.err >&5
8668 fi
8669 rm -rf libconftest.dylib*
8670 rm -f conftest.*
8671 fi ;;
8672 esac
8673 fi
8674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8675 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8676
8677 # Feature test to disable chained fixups since it is not
8678 # compatible with '-undefined dynamic_lookup'
8679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -no_fixup_chains linker flag" >&5
8680 printf %s "checking for -no_fixup_chains linker flag... " >&6; }
8681 if test ${lt_cv_support_no_fixup_chains+y}
8682 then :
8683 printf %s "(cached) " >&6
8684 else case e in #(
8685 e) save_LDFLAGS=$LDFLAGS
8686 LDFLAGS="$LDFLAGS -Wl,-no_fixup_chains"
8687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8688 /* end confdefs.h. */
8689
8690 int
8691 main (void)
8692 {
8693
8694 ;
8695 return 0;
8696 }
8697 _ACEOF
8698 if ac_fn_c_try_link "$LINENO"
8699 then :
8700 lt_cv_support_no_fixup_chains=yes
8701 else case e in #(
8702 e) lt_cv_support_no_fixup_chains=no
8703 ;;
8704 esac
8705 fi
8706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8707 conftest$ac_exeext conftest.$ac_ext
8708 LDFLAGS=$save_LDFLAGS
8709
8710 ;;
8711 esac
8712 fi
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_support_no_fixup_chains" >&5
8714 printf "%s\n" "$lt_cv_support_no_fixup_chains" >&6; }
8715
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8717 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8718 if test ${lt_cv_ld_exported_symbols_list+y}
8719 then :
8720 printf %s "(cached) " >&6
8721 else case e in #(
8722 e) lt_cv_ld_exported_symbols_list=no
8723 save_LDFLAGS=$LDFLAGS
8724 echo "_main" > conftest.sym
8725 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8728
8729 int
8730 main (void)
8731 {
8732
8733 ;
8734 return 0;
8735 }
8736 _ACEOF
8737 if ac_fn_c_try_link "$LINENO"
8738 then :
8739 lt_cv_ld_exported_symbols_list=yes
8740 else case e in #(
8741 e) lt_cv_ld_exported_symbols_list=no ;;
8742 esac
8743 fi
8744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8745 conftest$ac_exeext conftest.$ac_ext
8746 LDFLAGS=$save_LDFLAGS
8747 ;;
8748 esac
8749 fi
8750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8751 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8752
8753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8754 printf %s "checking for -force_load linker flag... " >&6; }
8755 if test ${lt_cv_ld_force_load+y}
8756 then :
8757 printf %s "(cached) " >&6
8758 else case e in #(
8759 e) lt_cv_ld_force_load=no
8760 cat > conftest.c << _LT_EOF
8761 int forced_loaded() { return 2;}
8762 _LT_EOF
8763 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8764 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8765 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8766 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8767 echo "$RANLIB libconftest.a" >&5
8768 $RANLIB libconftest.a 2>&5
8769 cat > conftest.c << _LT_EOF
8770 int main(void) { return 0;}
8771 _LT_EOF
8772 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8773 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8774 _lt_result=$?
8775 if test -s conftest.err && $GREP force_load conftest.err; then
8776 cat conftest.err >&5
8777 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8778 lt_cv_ld_force_load=yes
8779 else
8780 cat conftest.err >&5
8781 fi
8782 rm -f conftest.err libconftest.a conftest conftest.c
8783 rm -rf conftest.dSYM
8784 ;;
8785 esac
8786 fi
8787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8788 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8789 case $host_os in
8790 rhapsody* | darwin1.[012])
8791 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8792 darwin1.*)
8793 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8794 darwin*)
8795 case $MACOSX_DEPLOYMENT_TARGET,$host in
8796 10.[012],*|,*powerpc*-darwin[5-8]*)
8797 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8798 *)
8799 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup'
8800 if test yes = "$lt_cv_support_no_fixup_chains"; then
8801 as_fn_append _lt_dar_allow_undefined ' $wl-no_fixup_chains'
8802 fi
8803 ;;
8804 esac
8805 ;;
8806 esac
8807 if test yes = "$lt_cv_apple_cc_single_mod"; then
8808 _lt_dar_single_mod='$single_module'
8809 fi
8810 _lt_dar_needs_single_mod=no
8811 case $host_os in
8812 rhapsody* | darwin1.*)
8813 _lt_dar_needs_single_mod=yes ;;
8814 darwin*)
8815 # When targeting Mac OS X 10.4 (darwin 8) or later,
8816 # -single_module is the default and -multi_module is unsupported.
8817 # The toolchain on macOS 10.14 (darwin 18) and later cannot
8818 # target any OS version that needs -single_module.
8819 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8820 10.0,*-darwin[567].*|10.[0-3],*-darwin[5-9].*|10.[0-3],*-darwin1[0-7].*)
8821 _lt_dar_needs_single_mod=yes ;;
8822 esac
8823 ;;
8824 esac
8825 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8826 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8827 else
8828 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8829 fi
8830 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8831 _lt_dsymutil='~$DSYMUTIL $lib || :'
8832 else
8833 _lt_dsymutil=
8834 fi
8835 ;;
8836 esac
8837
8838 # func_munge_path_list VARIABLE PATH
8839 # -----------------------------------
8840 # VARIABLE is name of variable containing _space_ separated list of
8841 # directories to be munged by the contents of PATH, which is string
8842 # having a format:
8843 # "DIR[:DIR]:"
8844 # string "DIR[ DIR]" will be prepended to VARIABLE
8845 # ":DIR[:DIR]"
8846 # string "DIR[ DIR]" will be appended to VARIABLE
8847 # "DIRP[:DIRP]::[DIRA:]DIRA"
8848 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8849 # "DIRA[ DIRA]" will be appended to VARIABLE
8850 # "DIR[:DIR]"
8851 # VARIABLE will be replaced by "DIR[ DIR]"
8852 func_munge_path_list ()
8853 {
8854 case x$2 in
8855 x)
8856 ;;
8857 *:)
8858 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8859 ;;
8860 x:*)
8861 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8862 ;;
8863 *::*)
8864 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8865 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8866 ;;
8867 *)
8868 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8869 ;;
8870 esac
8871 }
8872
8873 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8874 "
8875 if test "x$ac_cv_header_dlfcn_h" = xyes
8876 then :
8877 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8878
8879 fi
8880
8881
8882
8883
8884
8885 # Set options
8886
8887
8888
8889 enable_dlopen=no
8890
8891
8892 enable_win32_dll=no
8893
8894
8895 # Check whether --enable-shared was given.
8896 if test ${enable_shared+y}
8897 then :
8898 enableval=$enable_shared; p=${PACKAGE-default}
8899 case $enableval in
8900 yes) enable_shared=yes ;;
8901 no) enable_shared=no ;;
8902 *)
8903 enable_shared=no
8904 # Look at the argument we got. We use all the common list separators.
8905 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8906 for pkg in $enableval; do
8907 IFS=$lt_save_ifs
8908 if test "X$pkg" = "X$p"; then
8909 enable_shared=yes
8910 fi
8911 done
8912 IFS=$lt_save_ifs
8913 ;;
8914 esac
8915 else case e in #(
8916 e) enable_shared=yes ;;
8917 esac
8918 fi
8919
8920
8921
8922
8923
8924
8925
8926
8927
8928 # Check whether --enable-static was given.
8929 if test ${enable_static+y}
8930 then :
8931 enableval=$enable_static; p=${PACKAGE-default}
8932 case $enableval in
8933 yes) enable_static=yes ;;
8934 no) enable_static=no ;;
8935 *)
8936 enable_static=no
8937 # Look at the argument we got. We use all the common list separators.
8938 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8939 for pkg in $enableval; do
8940 IFS=$lt_save_ifs
8941 if test "X$pkg" = "X$p"; then
8942 enable_static=yes
8943 fi
8944 done
8945 IFS=$lt_save_ifs
8946 ;;
8947 esac
8948 else case e in #(
8949 e) enable_static=yes ;;
8950 esac
8951 fi
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961 # Check whether --enable-pic was given.
8962 if test ${enable_pic+y}
8963 then :
8964 enableval=$enable_pic; lt_p=${PACKAGE-default}
8965 case $enableval in
8966 yes|no) pic_mode=$enableval ;;
8967 *)
8968 pic_mode=default
8969 # Look at the argument we got. We use all the common list separators.
8970 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8971 for lt_pkg in $enableval; do
8972 IFS=$lt_save_ifs
8973 if test "X$lt_pkg" = "X$lt_p"; then
8974 pic_mode=yes
8975 fi
8976 done
8977 IFS=$lt_save_ifs
8978 ;;
8979 esac
8980 else case e in #(
8981 e) # Check whether --with-pic was given.
8982 if test ${with_pic+y}
8983 then :
8984 withval=$with_pic; lt_p=${PACKAGE-default}
8985 case $withval in
8986 yes|no) pic_mode=$withval ;;
8987 *)
8988 pic_mode=default
8989 # Look at the argument we got. We use all the common list separators.
8990 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8991 for lt_pkg in $withval; do
8992 IFS=$lt_save_ifs
8993 if test "X$lt_pkg" = "X$lt_p"; then
8994 pic_mode=yes
8995 fi
8996 done
8997 IFS=$lt_save_ifs
8998 ;;
8999 esac
9000 else case e in #(
9001 e) pic_mode=default ;;
9002 esac
9003 fi
9004
9005 ;;
9006 esac
9007 fi
9008
9009
9010
9011
9012
9013
9014
9015
9016 # Check whether --enable-fast-install was given.
9017 if test ${enable_fast_install+y}
9018 then :
9019 enableval=$enable_fast_install; p=${PACKAGE-default}
9020 case $enableval in
9021 yes) enable_fast_install=yes ;;
9022 no) enable_fast_install=no ;;
9023 *)
9024 enable_fast_install=no
9025 # Look at the argument we got. We use all the common list separators.
9026 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9027 for pkg in $enableval; do
9028 IFS=$lt_save_ifs
9029 if test "X$pkg" = "X$p"; then
9030 enable_fast_install=yes
9031 fi
9032 done
9033 IFS=$lt_save_ifs
9034 ;;
9035 esac
9036 else case e in #(
9037 e) enable_fast_install=yes ;;
9038 esac
9039 fi
9040
9041
9042
9043
9044
9045
9046
9047
9048 shared_archive_member_spec=
9049 case $host,$enable_shared in
9050 power*-*-aix[5-9]*,yes)
9051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9052 printf %s "checking which variant of shared library versioning to provide... " >&6; }
9053 # Check whether --enable-aix-soname was given.
9054 if test ${enable_aix_soname+y}
9055 then :
9056 enableval=$enable_aix_soname; case $enableval in
9057 aix|svr4|both)
9058 ;;
9059 *)
9060 as_fn_error $? "Unknown argument to --enable-aix-soname" "$LINENO" 5
9061 ;;
9062 esac
9063 lt_cv_with_aix_soname=$enable_aix_soname
9064 else case e in #(
9065 e) # Check whether --with-aix-soname was given.
9066 if test ${with_aix_soname+y}
9067 then :
9068 withval=$with_aix_soname; case $withval in
9069 aix|svr4|both)
9070 ;;
9071 *)
9072 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9073 ;;
9074 esac
9075 lt_cv_with_aix_soname=$with_aix_soname
9076 else case e in #(
9077 e) if test ${lt_cv_with_aix_soname+y}
9078 then :
9079 printf %s "(cached) " >&6
9080 else case e in #(
9081 e) lt_cv_with_aix_soname=aix ;;
9082 esac
9083 fi
9084 ;;
9085 esac
9086 fi
9087
9088 enable_aix_soname=$lt_cv_with_aix_soname ;;
9089 esac
9090 fi
9091
9092 with_aix_soname=$enable_aix_soname
9093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9094 printf "%s\n" "$with_aix_soname" >&6; }
9095 if test aix != "$with_aix_soname"; then
9096 # For the AIX way of multilib, we name the shared archive member
9097 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9098 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9099 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9100 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9101 if test 64 = "${OBJECT_MODE-32}"; then
9102 shared_archive_member_spec=shr_64
9103 else
9104 shared_archive_member_spec=shr
9105 fi
9106 fi
9107 ;;
9108 *)
9109 with_aix_soname=aix
9110 ;;
9111 esac
9112
9113
9114
9115
9116
9117
9118
9119
9120
9121
9122 # This can be used to rebuild libtool when needed
9123 LIBTOOL_DEPS=$ltmain
9124
9125 # Always use our own libtool.
9126 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9127
9128
9129
9130
9131
9132
9133
9134
9135
9136
9137
9138
9139
9140
9141
9142
9143
9144
9145
9146
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 test -z "$LN_S" && LN_S="ln -s"
9158
9159
9160
9161
9162
9163
9164
9165
9166
9167
9168
9169
9170
9171
9172 if test -n "${ZSH_VERSION+set}"; then
9173 setopt NO_GLOB_SUBST
9174 fi
9175
9176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9177 printf %s "checking for objdir... " >&6; }
9178 if test ${lt_cv_objdir+y}
9179 then :
9180 printf %s "(cached) " >&6
9181 else case e in #(
9182 e) rm -f .libs 2>/dev/null
9183 mkdir .libs 2>/dev/null
9184 if test -d .libs; then
9185 lt_cv_objdir=.libs
9186 else
9187 # MS-DOS does not allow filenames that begin with a dot.
9188 lt_cv_objdir=_libs
9189 fi
9190 rmdir .libs 2>/dev/null ;;
9191 esac
9192 fi
9193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9194 printf "%s\n" "$lt_cv_objdir" >&6; }
9195 objdir=$lt_cv_objdir
9196
9197
9198
9199
9200
9201 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9202
9203
9204
9205
9206 case $host_os in
9207 aix3*)
9208 # AIX sometimes has problems with the GCC collect2 program. For some
9209 # reason, if we set the COLLECT_NAMES environment variable, the problems
9210 # vanish in a puff of smoke.
9211 if test set != "${COLLECT_NAMES+set}"; then
9212 COLLECT_NAMES=
9213 export COLLECT_NAMES
9214 fi
9215 ;;
9216 esac
9217
9218 # Global variables:
9219 ofile=libtool
9220 can_build_shared=yes
9221
9222 # All known linkers require a '.a' archive for static linking (except MSVC and
9223 # ICC, which need '.lib').
9224 libext=a
9225
9226 with_gnu_ld=$lt_cv_prog_gnu_ld
9227
9228 old_CC=$CC
9229 old_CFLAGS=$CFLAGS
9230
9231 # Set sane defaults for various variables
9232 test -z "$CC" && CC=cc
9233 test -z "$LTCC" && LTCC=$CC
9234 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9235 test -z "$LD" && LD=ld
9236 test -z "$ac_objext" && ac_objext=o
9237
9238 func_cc_basename $compiler
9239 cc_basename=$func_cc_basename_result
9240
9241
9242 # Only perform the check for file, if the check method requires it
9243 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9244 case $deplibs_check_method in
9245 file_magic*)
9246 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9248 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9249 if test ${lt_cv_path_MAGIC_CMD+y}
9250 then :
9251 printf %s "(cached) " >&6
9252 else case e in #(
9253 e) case $MAGIC_CMD in
9254 [\\/*] | ?:[\\/]*)
9255 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9256 ;;
9257 *)
9258 lt_save_MAGIC_CMD=$MAGIC_CMD
9259 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9261 for ac_dir in $ac_dummy; do
9262 IFS=$lt_save_ifs
9263 test -z "$ac_dir" && ac_dir=.
9264 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9265 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9266 if test -n "$file_magic_test_file"; then
9267 case $deplibs_check_method in
9268 "file_magic "*)
9269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9270 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9272 $EGREP "$file_magic_regex" > /dev/null; then
9273 :
9274 else
9275 cat <<_LT_EOF 1>&2
9276
9277 *** Warning: the command libtool uses to detect shared libraries,
9278 *** $file_magic_cmd, produces output that libtool cannot recognize.
9279 *** The result is that libtool may fail to recognize shared libraries
9280 *** as such. This will affect the creation of libtool libraries that
9281 *** depend on shared libraries, but programs linked with such libtool
9282 *** libraries will work regardless of this problem. Nevertheless, you
9283 *** may want to report the problem to your system manager and/or to
9284 *** bug-libtool@gnu.org
9285
9286 _LT_EOF
9287 fi ;;
9288 esac
9289 fi
9290 break
9291 fi
9292 done
9293 IFS=$lt_save_ifs
9294 MAGIC_CMD=$lt_save_MAGIC_CMD
9295 ;;
9296 esac ;;
9297 esac
9298 fi
9299
9300 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9301 if test -n "$MAGIC_CMD"; then
9302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9303 printf "%s\n" "$MAGIC_CMD" >&6; }
9304 else
9305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9306 printf "%s\n" "no" >&6; }
9307 fi
9308
9309
9310
9311
9312
9313 if test -z "$lt_cv_path_MAGIC_CMD"; then
9314 if test -n "$ac_tool_prefix"; then
9315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9316 printf %s "checking for file... " >&6; }
9317 if test ${lt_cv_path_MAGIC_CMD+y}
9318 then :
9319 printf %s "(cached) " >&6
9320 else case e in #(
9321 e) case $MAGIC_CMD in
9322 [\\/*] | ?:[\\/]*)
9323 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9324 ;;
9325 *)
9326 lt_save_MAGIC_CMD=$MAGIC_CMD
9327 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9328 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9329 for ac_dir in $ac_dummy; do
9330 IFS=$lt_save_ifs
9331 test -z "$ac_dir" && ac_dir=.
9332 if test -f "$ac_dir/file"; then
9333 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9334 if test -n "$file_magic_test_file"; then
9335 case $deplibs_check_method in
9336 "file_magic "*)
9337 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9338 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9339 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9340 $EGREP "$file_magic_regex" > /dev/null; then
9341 :
9342 else
9343 cat <<_LT_EOF 1>&2
9344
9345 *** Warning: the command libtool uses to detect shared libraries,
9346 *** $file_magic_cmd, produces output that libtool cannot recognize.
9347 *** The result is that libtool may fail to recognize shared libraries
9348 *** as such. This will affect the creation of libtool libraries that
9349 *** depend on shared libraries, but programs linked with such libtool
9350 *** libraries will work regardless of this problem. Nevertheless, you
9351 *** may want to report the problem to your system manager and/or to
9352 *** bug-libtool@gnu.org
9353
9354 _LT_EOF
9355 fi ;;
9356 esac
9357 fi
9358 break
9359 fi
9360 done
9361 IFS=$lt_save_ifs
9362 MAGIC_CMD=$lt_save_MAGIC_CMD
9363 ;;
9364 esac ;;
9365 esac
9366 fi
9367
9368 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9369 if test -n "$MAGIC_CMD"; then
9370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9371 printf "%s\n" "$MAGIC_CMD" >&6; }
9372 else
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9374 printf "%s\n" "no" >&6; }
9375 fi
9376
9377
9378 else
9379 MAGIC_CMD=:
9380 fi
9381 fi
9382
9383 fi
9384 ;;
9385 esac
9386
9387 # Use C for the default configuration in the libtool script
9388
9389 lt_save_CC=$CC
9390 ac_ext=c
9391 ac_cpp='$CPP $CPPFLAGS'
9392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9395
9396
9397 # Source file extension for C test sources.
9398 ac_ext=c
9399
9400 # Object file extension for compiled C test sources.
9401 objext=o
9402 objext=$objext
9403
9404 # Code to be used in simple compile tests
9405 lt_simple_compile_test_code="int some_variable = 0;"
9406
9407 # Code to be used in simple link tests
9408 lt_simple_link_test_code='int main(void){return(0);}'
9409
9410
9411
9412
9413
9414
9415
9416 # If no C compiler was specified, use CC.
9417 LTCC=${LTCC-"$CC"}
9418
9419 # If no C compiler flags were specified, use CFLAGS.
9420 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9421
9422 # Allow CC to be a program name with arguments.
9423 compiler=$CC
9424
9425 # Save the default compiler, since it gets overwritten when the other
9426 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9427 compiler_DEFAULT=$CC
9428
9429 # save warnings/boilerplate of simple test code
9430 ac_outfile=conftest.$ac_objext
9431 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9432 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9433 _lt_compiler_boilerplate=`cat conftest.err`
9434 $RM conftest*
9435
9436 ac_outfile=conftest.$ac_objext
9437 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9438 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9439 _lt_linker_boilerplate=`cat conftest.err`
9440 $RM -r conftest*
9441
9442
9443 ## CAVEAT EMPTOR:
9444 ## There is no encapsulation within the following macros, do not change
9445 ## the running order or otherwise move them around unless you know exactly
9446 ## what you are doing...
9447 if test -n "$compiler"; then
9448
9449 lt_prog_compiler_no_builtin_flag=
9450
9451 if test yes = "$GCC"; then
9452 case $cc_basename in
9453 nvcc*)
9454 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9455 *)
9456 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9457 esac
9458
9459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9460 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9461 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9462 then :
9463 printf %s "(cached) " >&6
9464 else case e in #(
9465 e) lt_cv_prog_compiler_rtti_exceptions=no
9466 ac_outfile=conftest.$ac_objext
9467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9468 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9469 # Insert the option either (1) after the last *FLAGS variable, or
9470 # (2) before a word containing "conftest.", or (3) at the end.
9471 # Note that $ac_compile itself does not contain backslashes and begins
9472 # with a dollar sign (not a hyphen), so the echo should work correctly.
9473 # The option is referenced via a variable to avoid confusing sed.
9474 lt_compile=`echo "$ac_compile" | $SED \
9475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9477 -e 's:$: $lt_compiler_flag:'`
9478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9479 (eval "$lt_compile" 2>conftest.err)
9480 ac_status=$?
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 if (exit $ac_status) && test -s "$ac_outfile"; then
9484 # The compiler can only warn and ignore the option if not recognized
9485 # So say no if there are warnings other than the usual output.
9486 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9487 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9488 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9489 lt_cv_prog_compiler_rtti_exceptions=yes
9490 fi
9491 fi
9492 $RM conftest*
9493 ;;
9494 esac
9495 fi
9496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9497 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9498
9499 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9500 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9501 else
9502 :
9503 fi
9504
9505 fi
9506
9507
9508
9509
9510
9511
9512 lt_prog_compiler_wl=
9513 lt_prog_compiler_pic=
9514 lt_prog_compiler_static=
9515
9516
9517 if test yes = "$GCC"; then
9518 lt_prog_compiler_wl='-Wl,'
9519 lt_prog_compiler_static='-static'
9520
9521 case $host_os in
9522 aix*)
9523 # All AIX code is PIC.
9524 if test ia64 = "$host_cpu"; then
9525 # AIX 5 now supports IA64 processor
9526 lt_prog_compiler_static='-Bstatic'
9527 fi
9528 lt_prog_compiler_pic='-fPIC'
9529 ;;
9530
9531 amigaos*)
9532 case $host_cpu in
9533 powerpc)
9534 # see comment about AmigaOS4 .so support
9535 lt_prog_compiler_pic='-fPIC'
9536 ;;
9537 m68k)
9538 # FIXME: we need at least 68020 code to build shared libraries, but
9539 # adding the '-m68020' flag to GCC prevents building anything better,
9540 # like '-m68040'.
9541 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9542 ;;
9543 esac
9544 ;;
9545
9546 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9547 # PIC is the default for these OSes.
9548 ;;
9549
9550 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9551 # This hack is so that the source file can tell whether it is being
9552 # built for inclusion in a dll (and should export symbols for example).
9553 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9554 # (--disable-auto-import) libraries
9555 lt_prog_compiler_pic='-DDLL_EXPORT'
9556 case $host_os in
9557 os2*)
9558 lt_prog_compiler_static='$wl-static'
9559 ;;
9560 esac
9561 ;;
9562
9563 darwin* | rhapsody*)
9564 # PIC is the default on this platform
9565 # Common symbols not allowed in MH_DYLIB files
9566 lt_prog_compiler_pic='-fno-common'
9567 ;;
9568
9569 haiku*)
9570 # PIC is the default for Haiku.
9571 # The "-static" flag exists, but is broken.
9572 lt_prog_compiler_static=
9573 ;;
9574
9575 hpux*)
9576 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9577 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9578 # sets the default TLS model and affects inlining.
9579 case $host_cpu in
9580 hppa*64*)
9581 # +Z the default
9582 ;;
9583 *)
9584 lt_prog_compiler_pic='-fPIC'
9585 ;;
9586 esac
9587 ;;
9588
9589 interix[3-9]*)
9590 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9591 # Instead, we relocate shared libraries at runtime.
9592 ;;
9593
9594 msdosdjgpp*)
9595 # Just because we use GCC doesn't mean we suddenly get shared libraries
9596 # on systems that don't support them.
9597 lt_prog_compiler_can_build_shared=no
9598 enable_shared=no
9599 ;;
9600
9601 *nto* | *qnx*)
9602 # QNX uses GNU C++, but need to define -shared option too, otherwise
9603 # it will coredump.
9604 lt_prog_compiler_pic='-fPIC -shared'
9605 ;;
9606
9607 sysv4*MP*)
9608 if test -d /usr/nec; then
9609 lt_prog_compiler_pic=-Kconform_pic
9610 fi
9611 ;;
9612
9613 *)
9614 lt_prog_compiler_pic='-fPIC'
9615 ;;
9616 esac
9617
9618 case $cc_basename in
9619 nvcc*) # Cuda Compiler Driver 2.2
9620 lt_prog_compiler_wl='-Xlinker '
9621 if test -n "$lt_prog_compiler_pic"; then
9622 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9623 fi
9624 ;;
9625 esac
9626 else
9627 # PORTME Check for flag to pass linker flags through the system compiler.
9628 case $host_os in
9629 aix*)
9630 lt_prog_compiler_wl='-Wl,'
9631 if test ia64 = "$host_cpu"; then
9632 # AIX 5 now supports IA64 processor
9633 lt_prog_compiler_static='-Bstatic'
9634 else
9635 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9636 fi
9637 ;;
9638
9639 darwin* | rhapsody*)
9640 # PIC is the default on this platform
9641 # Common symbols not allowed in MH_DYLIB files
9642 lt_prog_compiler_pic='-fno-common'
9643 case $cc_basename in
9644 nagfor*)
9645 # NAG Fortran compiler
9646 lt_prog_compiler_wl='-Wl,-Wl,,'
9647 lt_prog_compiler_pic='-PIC'
9648 lt_prog_compiler_static='-Bstatic'
9649 ;;
9650 esac
9651 ;;
9652
9653 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
9654 # This hack is so that the source file can tell whether it is being
9655 # built for inclusion in a dll (and should export symbols for example).
9656 lt_prog_compiler_pic='-DDLL_EXPORT'
9657 case $host_os in
9658 os2*)
9659 lt_prog_compiler_static='$wl-static'
9660 ;;
9661 esac
9662 ;;
9663
9664 hpux9* | hpux10* | hpux11*)
9665 lt_prog_compiler_wl='-Wl,'
9666 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9667 # not for PA HP-UX.
9668 case $host_cpu in
9669 hppa*64*|ia64*)
9670 # +Z the default
9671 ;;
9672 *)
9673 lt_prog_compiler_pic='+Z'
9674 ;;
9675 esac
9676 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9677 lt_prog_compiler_static='$wl-a ${wl}archive'
9678 ;;
9679
9680 irix5* | irix6* | nonstopux*)
9681 lt_prog_compiler_wl='-Wl,'
9682 # PIC (with -KPIC) is the default.
9683 lt_prog_compiler_static='-non_shared'
9684 ;;
9685
9686 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9687 case $cc_basename in
9688 # old Intel for x86_64, which still supported -KPIC.
9689 ecc*)
9690 lt_prog_compiler_wl='-Wl,'
9691 lt_prog_compiler_pic='-KPIC'
9692 lt_prog_compiler_static='-static'
9693 ;;
9694 *flang* | ftn | f18* | f95*)
9695 # Flang compiler.
9696 lt_prog_compiler_wl='-Wl,'
9697 lt_prog_compiler_pic='-fPIC'
9698 lt_prog_compiler_static='-static'
9699 ;;
9700 # icc used to be incompatible with GCC.
9701 # ICC 10 doesn't accept -KPIC any more.
9702 icc* | ifort*)
9703 lt_prog_compiler_wl='-Wl,'
9704 lt_prog_compiler_pic='-fPIC'
9705 lt_prog_compiler_static='-static'
9706 ;;
9707 # Lahey Fortran 8.1.
9708 lf95*)
9709 lt_prog_compiler_wl='-Wl,'
9710 lt_prog_compiler_pic='--shared'
9711 lt_prog_compiler_static='--static'
9712 ;;
9713 nagfor*)
9714 # NAG Fortran compiler
9715 lt_prog_compiler_wl='-Wl,-Wl,,'
9716 lt_prog_compiler_pic='-PIC'
9717 lt_prog_compiler_static='-Bstatic'
9718 ;;
9719 tcc*)
9720 # Fabrice Bellard et al's Tiny C Compiler
9721 lt_prog_compiler_wl='-Wl,'
9722 lt_prog_compiler_pic='-fPIC'
9723 lt_prog_compiler_static='-static'
9724 ;;
9725 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9726 # Portland Group compilers (*not* the Pentium gcc compiler,
9727 # which looks to be a dead project)
9728 lt_prog_compiler_wl='-Wl,'
9729 lt_prog_compiler_pic='-fpic'
9730 lt_prog_compiler_static='-Bstatic'
9731 ;;
9732 ccc*)
9733 lt_prog_compiler_wl='-Wl,'
9734 # All Alpha code is PIC.
9735 lt_prog_compiler_static='-non_shared'
9736 ;;
9737 xl* | bgxl* | bgf* | mpixl*)
9738 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9739 lt_prog_compiler_wl='-Wl,'
9740 lt_prog_compiler_pic='-qpic'
9741 lt_prog_compiler_static='-qstaticlink'
9742 ;;
9743 *)
9744 case `$CC -V 2>&1 | $SED 5q` in
9745 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9746 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9747 lt_prog_compiler_pic='-KPIC'
9748 lt_prog_compiler_static='-Bstatic'
9749 lt_prog_compiler_wl=''
9750 ;;
9751 *Sun\ F* | *Sun*Fortran*)
9752 lt_prog_compiler_pic='-KPIC'
9753 lt_prog_compiler_static='-Bstatic'
9754 lt_prog_compiler_wl='-Qoption ld '
9755 ;;
9756 *Sun\ C*)
9757 # Sun C 5.9
9758 lt_prog_compiler_pic='-KPIC'
9759 lt_prog_compiler_static='-Bstatic'
9760 lt_prog_compiler_wl='-Wl,'
9761 ;;
9762 *Intel*\ [CF]*Compiler*)
9763 lt_prog_compiler_wl='-Wl,'
9764 lt_prog_compiler_pic='-fPIC'
9765 lt_prog_compiler_static='-static'
9766 ;;
9767 *Portland\ Group*)
9768 lt_prog_compiler_wl='-Wl,'
9769 lt_prog_compiler_pic='-fpic'
9770 lt_prog_compiler_static='-Bstatic'
9771 ;;
9772 esac
9773 ;;
9774 esac
9775 ;;
9776
9777 newsos6)
9778 lt_prog_compiler_pic='-KPIC'
9779 lt_prog_compiler_static='-Bstatic'
9780 ;;
9781
9782 *-mlibc)
9783 lt_prog_compiler_wl='-Wl,'
9784 lt_prog_compiler_pic='-fPIC'
9785 lt_prog_compiler_static='-static'
9786 ;;
9787
9788 *nto* | *qnx*)
9789 # QNX uses GNU C++, but need to define -shared option too, otherwise
9790 # it will coredump.
9791 lt_prog_compiler_pic='-fPIC -shared'
9792 ;;
9793
9794 osf3* | osf4* | osf5*)
9795 lt_prog_compiler_wl='-Wl,'
9796 # All OSF/1 code is PIC.
9797 lt_prog_compiler_static='-non_shared'
9798 ;;
9799
9800 rdos*)
9801 lt_prog_compiler_static='-non_shared'
9802 ;;
9803
9804 serenity*)
9805 ;;
9806
9807 solaris*)
9808 lt_prog_compiler_pic='-KPIC'
9809 lt_prog_compiler_static='-Bstatic'
9810 case $cc_basename in
9811 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9812 lt_prog_compiler_wl='-Qoption ld ';;
9813 *)
9814 lt_prog_compiler_wl='-Wl,';;
9815 esac
9816 ;;
9817
9818 sunos4*)
9819 lt_prog_compiler_wl='-Qoption ld '
9820 lt_prog_compiler_pic='-PIC'
9821 lt_prog_compiler_static='-Bstatic'
9822 ;;
9823
9824 sysv4 | sysv4.2uw2* | sysv4.3*)
9825 lt_prog_compiler_wl='-Wl,'
9826 lt_prog_compiler_pic='-KPIC'
9827 lt_prog_compiler_static='-Bstatic'
9828 ;;
9829
9830 sysv4*MP*)
9831 if test -d /usr/nec; then
9832 lt_prog_compiler_pic='-Kconform_pic'
9833 lt_prog_compiler_static='-Bstatic'
9834 fi
9835 ;;
9836
9837 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9838 lt_prog_compiler_wl='-Wl,'
9839 lt_prog_compiler_pic='-KPIC'
9840 lt_prog_compiler_static='-Bstatic'
9841 ;;
9842
9843 unicos*)
9844 lt_prog_compiler_wl='-Wl,'
9845 lt_prog_compiler_can_build_shared=no
9846 ;;
9847
9848 uts4*)
9849 lt_prog_compiler_pic='-pic'
9850 lt_prog_compiler_static='-Bstatic'
9851 ;;
9852
9853 *)
9854 lt_prog_compiler_can_build_shared=no
9855 ;;
9856 esac
9857 fi
9858
9859 case $host_os in
9860 # For platforms that do not support PIC, -DPIC is meaningless:
9861 *djgpp*)
9862 lt_prog_compiler_pic=
9863 ;;
9864 *)
9865 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9866 ;;
9867 esac
9868
9869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9870 printf %s "checking for $compiler option to produce PIC... " >&6; }
9871 if test ${lt_cv_prog_compiler_pic+y}
9872 then :
9873 printf %s "(cached) " >&6
9874 else case e in #(
9875 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
9876 esac
9877 fi
9878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9879 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9880 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9881
9882 #
9883 # Check to make sure the PIC flag actually works.
9884 #
9885 if test -n "$lt_prog_compiler_pic"; then
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9887 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9888 if test ${lt_cv_prog_compiler_pic_works+y}
9889 then :
9890 printf %s "(cached) " >&6
9891 else case e in #(
9892 e) lt_cv_prog_compiler_pic_works=no
9893 ac_outfile=conftest.$ac_objext
9894 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9895 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9896 # Insert the option either (1) after the last *FLAGS variable, or
9897 # (2) before a word containing "conftest.", or (3) at the end.
9898 # Note that $ac_compile itself does not contain backslashes and begins
9899 # with a dollar sign (not a hyphen), so the echo should work correctly.
9900 # The option is referenced via a variable to avoid confusing sed.
9901 lt_compile=`echo "$ac_compile" | $SED \
9902 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9903 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9904 -e 's:$: $lt_compiler_flag:'`
9905 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9906 (eval "$lt_compile" 2>conftest.err)
9907 ac_status=$?
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 if (exit $ac_status) && test -s "$ac_outfile"; then
9911 # The compiler can only warn and ignore the option if not recognized
9912 # So say no if there are warnings other than the usual output.
9913 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9914 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9915 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9916 lt_cv_prog_compiler_pic_works=yes
9917 fi
9918 fi
9919 $RM conftest*
9920 ;;
9921 esac
9922 fi
9923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9924 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9925
9926 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9927 case $lt_prog_compiler_pic in
9928 "" | " "*) ;;
9929 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9930 esac
9931 else
9932 lt_prog_compiler_pic=
9933 lt_prog_compiler_can_build_shared=no
9934 fi
9935
9936 fi
9937
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948 #
9949 # Check to make sure the static flag actually works.
9950 #
9951 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9953 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9954 if test ${lt_cv_prog_compiler_static_works+y}
9955 then :
9956 printf %s "(cached) " >&6
9957 else case e in #(
9958 e) lt_cv_prog_compiler_static_works=no
9959 save_LDFLAGS=$LDFLAGS
9960 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9961 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9962 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9963 # The linker can only warn and ignore the option if not recognized
9964 # So say no if there are warnings
9965 if test -s conftest.err; then
9966 # Append any errors to the config.log.
9967 cat conftest.err 1>&5
9968 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9969 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9970 if diff conftest.exp conftest.er2 >/dev/null; then
9971 lt_cv_prog_compiler_static_works=yes
9972 fi
9973 else
9974 lt_cv_prog_compiler_static_works=yes
9975 fi
9976 fi
9977 $RM -r conftest*
9978 LDFLAGS=$save_LDFLAGS
9979 ;;
9980 esac
9981 fi
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9983 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9984
9985 if test yes = "$lt_cv_prog_compiler_static_works"; then
9986 :
9987 else
9988 lt_prog_compiler_static=
9989 fi
9990
9991
9992
9993
9994
9995
9996
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9998 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9999 if test ${lt_cv_prog_compiler_c_o+y}
10000 then :
10001 printf %s "(cached) " >&6
10002 else case e in #(
10003 e) lt_cv_prog_compiler_c_o=no
10004 $RM -r conftest 2>/dev/null
10005 mkdir conftest
10006 cd conftest
10007 mkdir out
10008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10009
10010 lt_compiler_flag="-o out/conftest2.$ac_objext"
10011 # Insert the option either (1) after the last *FLAGS variable, or
10012 # (2) before a word containing "conftest.", or (3) at the end.
10013 # Note that $ac_compile itself does not contain backslashes and begins
10014 # with a dollar sign (not a hyphen), so the echo should work correctly.
10015 lt_compile=`echo "$ac_compile" | $SED \
10016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10018 -e 's:$: $lt_compiler_flag:'`
10019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10020 (eval "$lt_compile" 2>out/conftest.err)
10021 ac_status=$?
10022 cat out/conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10025 then
10026 # The compiler can only warn and ignore the option if not recognized
10027 # So say no if there are warnings
10028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10031 lt_cv_prog_compiler_c_o=yes
10032 fi
10033 fi
10034 chmod u+w . 2>&5
10035 $RM conftest*
10036 # SGI C++ compiler will create directory out/ii_files/ for
10037 # template instantiation
10038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10039 $RM out/* && rmdir out
10040 cd ..
10041 $RM -r conftest
10042 $RM conftest*
10043 ;;
10044 esac
10045 fi
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10047 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10048
10049
10050
10051
10052
10053
10054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10055 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10056 if test ${lt_cv_prog_compiler_c_o+y}
10057 then :
10058 printf %s "(cached) " >&6
10059 else case e in #(
10060 e) lt_cv_prog_compiler_c_o=no
10061 $RM -r conftest 2>/dev/null
10062 mkdir conftest
10063 cd conftest
10064 mkdir out
10065 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10066
10067 lt_compiler_flag="-o out/conftest2.$ac_objext"
10068 # Insert the option either (1) after the last *FLAGS variable, or
10069 # (2) before a word containing "conftest.", or (3) at the end.
10070 # Note that $ac_compile itself does not contain backslashes and begins
10071 # with a dollar sign (not a hyphen), so the echo should work correctly.
10072 lt_compile=`echo "$ac_compile" | $SED \
10073 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10075 -e 's:$: $lt_compiler_flag:'`
10076 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10077 (eval "$lt_compile" 2>out/conftest.err)
10078 ac_status=$?
10079 cat out/conftest.err >&5
10080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10081 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10082 then
10083 # The compiler can only warn and ignore the option if not recognized
10084 # So say no if there are warnings
10085 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10086 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10087 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10088 lt_cv_prog_compiler_c_o=yes
10089 fi
10090 fi
10091 chmod u+w . 2>&5
10092 $RM conftest*
10093 # SGI C++ compiler will create directory out/ii_files/ for
10094 # template instantiation
10095 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10096 $RM out/* && rmdir out
10097 cd ..
10098 $RM -r conftest
10099 $RM conftest*
10100 ;;
10101 esac
10102 fi
10103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10104 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
10105
10106
10107
10108
10109 hard_links=nottested
10110 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10111 # do not overwrite the value of need_locks provided by the user
10112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10113 printf %s "checking if we can lock with hard links... " >&6; }
10114 hard_links=yes
10115 $RM conftest*
10116 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10117 touch conftest.a
10118 ln conftest.a conftest.b 2>&5 || hard_links=no
10119 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10121 printf "%s\n" "$hard_links" >&6; }
10122 if test no = "$hard_links"; then
10123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10124 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10125 need_locks=warn
10126 fi
10127 else
10128 need_locks=no
10129 fi
10130
10131
10132
10133
10134
10135
10136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10137 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10138
10139 runpath_var=
10140 allow_undefined_flag=
10141 always_export_symbols=no
10142 archive_cmds=
10143 archive_expsym_cmds=
10144 compiler_needs_object=no
10145 enable_shared_with_static_runtimes=no
10146 export_dynamic_flag_spec=
10147 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10148 hardcode_automatic=no
10149 hardcode_direct=no
10150 hardcode_direct_absolute=no
10151 hardcode_libdir_flag_spec=
10152 hardcode_libdir_separator=
10153 hardcode_minus_L=no
10154 hardcode_shlibpath_var=unsupported
10155 inherit_rpath=no
10156 link_all_deplibs=unknown
10157 module_cmds=
10158 module_expsym_cmds=
10159 old_archive_from_new_cmds=
10160 old_archive_from_expsyms_cmds=
10161 thread_safe_flag_spec=
10162 whole_archive_flag_spec=
10163 # include_expsyms should be a list of space-separated symbols to be *always*
10164 # included in the symbol list
10165 include_expsyms=
10166 # exclude_expsyms can be an extended regexp of symbols to exclude
10167 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10168 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10169 # as well as any symbol that contains 'd'.
10170 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10171 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10172 # platforms (ab)use it in PIC code, but their linkers get confused if
10173 # the symbol is explicitly referenced. Since portable code cannot
10174 # rely on this symbol name, it's probably fine to never include it in
10175 # preloaded symbol tables.
10176 # Exclude shared library initialization/finalization symbols.
10177 extract_expsyms_cmds=
10178
10179 case $host_os in
10180 cygwin* | mingw* | windows* | pw32* | cegcc*)
10181 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
10182 # When not using gcc, we currently assume that we are using
10183 # Microsoft Visual C++ or Intel C++ Compiler.
10184 if test yes != "$GCC"; then
10185 with_gnu_ld=no
10186 fi
10187 ;;
10188 interix*)
10189 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
10190 with_gnu_ld=yes
10191 ;;
10192 esac
10193
10194 ld_shlibs=yes
10195
10196 # On some targets, GNU ld is compatible enough with the native linker
10197 # that we're better off using the native interface for both.
10198 lt_use_gnu_ld_interface=no
10199 if test yes = "$with_gnu_ld"; then
10200 case $host_os in
10201 aix*)
10202 # The AIX port of GNU ld has always aspired to compatibility
10203 # with the native linker. However, as the warning in the GNU ld
10204 # block says, versions before 2.19.5* couldn't really create working
10205 # shared libraries, regardless of the interface used.
10206 case `$LD -v 2>&1` in
10207 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10208 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10209 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10210 *)
10211 lt_use_gnu_ld_interface=yes
10212 ;;
10213 esac
10214 ;;
10215 *)
10216 lt_use_gnu_ld_interface=yes
10217 ;;
10218 esac
10219 fi
10220
10221 if test yes = "$lt_use_gnu_ld_interface"; then
10222 # If archive_cmds runs LD, not CC, wlarc should be empty
10223 wlarc='$wl'
10224
10225 # Set some defaults for GNU ld with shared library support. These
10226 # are reset later if shared libraries are not supported. Putting them
10227 # here allows them to be overridden if necessary.
10228 runpath_var=LD_RUN_PATH
10229 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10230 export_dynamic_flag_spec='$wl--export-dynamic'
10231 # ancient GNU ld didn't support --whole-archive et. al.
10232 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10233 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10234 else
10235 whole_archive_flag_spec=
10236 fi
10237 supports_anon_versioning=no
10238 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10239 *GNU\ gold*) supports_anon_versioning=yes ;;
10240 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10241 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10242 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10243 *\ 2.11.*) ;; # other 2.11 versions
10244 *) supports_anon_versioning=yes ;;
10245 esac
10246
10247 # See if GNU ld supports shared libraries.
10248 case $host_os in
10249 aix[3-9]*)
10250 # On AIX/PPC, the GNU linker is very broken
10251 if test ia64 != "$host_cpu"; then
10252 ld_shlibs=no
10253 cat <<_LT_EOF 1>&2
10254
10255 *** Warning: the GNU linker, at least up to release 2.19, is reported
10256 *** to be unable to reliably create shared libraries on AIX.
10257 *** Therefore, libtool is disabling shared libraries support. If you
10258 *** really care for shared libraries, you may want to install binutils
10259 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10260 *** You will then need to restart the configuration process.
10261
10262 _LT_EOF
10263 fi
10264 ;;
10265
10266 amigaos*)
10267 case $host_cpu in
10268 powerpc)
10269 # see comment about AmigaOS4 .so support
10270 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10271 archive_expsym_cmds=''
10272 ;;
10273 m68k)
10274 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)'
10275 hardcode_libdir_flag_spec='-L$libdir'
10276 hardcode_minus_L=yes
10277 ;;
10278 esac
10279 ;;
10280
10281 beos*)
10282 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10283 allow_undefined_flag=unsupported
10284 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10285 # support --undefined. This deserves some investigation. FIXME
10286 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10287 else
10288 ld_shlibs=no
10289 fi
10290 ;;
10291
10292 cygwin* | mingw* | windows* | pw32* | cegcc*)
10293 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10294 # as there is no search path for DLLs.
10295 hardcode_libdir_flag_spec='-L$libdir'
10296 export_dynamic_flag_spec='$wl--export-all-symbols'
10297 allow_undefined_flag=unsupported
10298 always_export_symbols=no
10299 enable_shared_with_static_runtimes=yes
10300 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'
10301 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10302 file_list_spec='@'
10303
10304 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10305 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10306 # If the export-symbols file already is a .def file, use it as
10307 # is; otherwise, prepend EXPORTS...
10308 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10309 cp $export_symbols $output_objdir/$soname.def;
10310 else
10311 echo EXPORTS > $output_objdir/$soname.def;
10312 cat $export_symbols >> $output_objdir/$soname.def;
10313 fi~
10314 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10315 else
10316 ld_shlibs=no
10317 fi
10318 ;;
10319
10320 haiku*)
10321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10322 link_all_deplibs=no
10323 ;;
10324
10325 os2*)
10326 hardcode_libdir_flag_spec='-L$libdir'
10327 hardcode_minus_L=yes
10328 allow_undefined_flag=unsupported
10329 shrext_cmds=.dll
10330 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10331 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10332 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10333 $ECHO EXPORTS >> $output_objdir/$libname.def~
10334 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10335 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10336 emximp -o $lib $output_objdir/$libname.def'
10337 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10338 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10339 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10340 $ECHO EXPORTS >> $output_objdir/$libname.def~
10341 prefix_cmds="$SED"~
10342 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10343 prefix_cmds="$prefix_cmds -e 1d";
10344 fi~
10345 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10346 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10347 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10348 emximp -o $lib $output_objdir/$libname.def'
10349 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10350 enable_shared_with_static_runtimes=yes
10351 file_list_spec='@'
10352 ;;
10353
10354 interix[3-9]*)
10355 hardcode_direct=no
10356 hardcode_shlibpath_var=no
10357 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10358 export_dynamic_flag_spec='$wl-E'
10359 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10360 # Instead, shared libraries are loaded at an image base (0x10000000 by
10361 # default) and relocated if they conflict, which is a slow very memory
10362 # consuming and fragmenting process. To avoid this, we pick a random,
10363 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10364 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10365 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10366 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'
10367 ;;
10368
10369 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10370 tmp_diet=no
10371 if test linux-dietlibc = "$host_os"; then
10372 case $cc_basename in
10373 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10374 esac
10375 fi
10376 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10377 && test no = "$tmp_diet"
10378 then
10379 tmp_addflag=' $pic_flag'
10380 tmp_sharedflag='-shared'
10381 case $cc_basename,$host_cpu in
10382 pgcc*) # Portland Group C compiler
10383 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'
10384 tmp_addflag=' $pic_flag'
10385 ;;
10386 pgf77* | pgf90* | pgf95* | pgfortran*)
10387 # Portland Group f77 and f90 compilers
10388 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'
10389 tmp_addflag=' $pic_flag -Mnomain' ;;
10390 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10391 tmp_addflag=' -i_dynamic' ;;
10392 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10393 tmp_addflag=' -i_dynamic -nofor_main' ;;
10394 ifc* | ifort*) # Intel Fortran compiler
10395 tmp_addflag=' -nofor_main' ;;
10396 lf95*) # Lahey Fortran 8.1
10397 whole_archive_flag_spec=
10398 tmp_sharedflag='--shared' ;;
10399 nagfor*) # NAGFOR 5.3
10400 tmp_sharedflag='-Wl,-shared' ;;
10401 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10402 tmp_sharedflag='-qmkshrobj'
10403 tmp_addflag= ;;
10404 nvcc*) # Cuda Compiler Driver 2.2
10405 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'
10406 compiler_needs_object=yes
10407 ;;
10408 esac
10409 case `$CC -V 2>&1 | $SED 5q` in
10410 *Sun\ C*) # Sun C 5.9
10411 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'
10412 compiler_needs_object=yes
10413 tmp_sharedflag='-G' ;;
10414 *Sun\ F*) # Sun Fortran 8.3
10415 tmp_sharedflag='-G' ;;
10416 esac
10417 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10418
10419 if test yes = "$supports_anon_versioning"; then
10420 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10421 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10422 echo "local: *; };" >> $output_objdir/$libname.ver~
10423 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10424 fi
10425
10426 case $cc_basename in
10427 tcc*)
10428 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10429 export_dynamic_flag_spec='-rdynamic'
10430 ;;
10431 xlf* | bgf* | bgxlf* | mpixlf*)
10432 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10433 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10434 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10435 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10436 if test yes = "$supports_anon_versioning"; then
10437 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10438 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10439 echo "local: *; };" >> $output_objdir/$libname.ver~
10440 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10441 fi
10442 ;;
10443 esac
10444 else
10445 ld_shlibs=no
10446 fi
10447 ;;
10448
10449 *-mlibc)
10450 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10451 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10452 ;;
10453
10454 netbsd* | netbsdelf*-gnu)
10455 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10456 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10457 wlarc=
10458 else
10459 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10460 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10461 fi
10462 ;;
10463
10464 solaris*)
10465 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10466 ld_shlibs=no
10467 cat <<_LT_EOF 1>&2
10468
10469 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10470 *** create shared libraries on Solaris systems. Therefore, libtool
10471 *** is disabling shared libraries support. We urge you to upgrade GNU
10472 *** binutils to release 2.9.1 or newer. Another option is to modify
10473 *** your PATH or compiler configuration so that the native linker is
10474 *** used, and then restart.
10475
10476 _LT_EOF
10477 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10478 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10479 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10480 else
10481 ld_shlibs=no
10482 fi
10483 ;;
10484
10485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10486 case `$LD -v 2>&1` in
10487 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10488 ld_shlibs=no
10489 cat <<_LT_EOF 1>&2
10490
10491 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10492 *** reliably create shared libraries on SCO systems. Therefore, libtool
10493 *** is disabling shared libraries support. We urge you to upgrade GNU
10494 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10495 *** your PATH or compiler configuration so that the native linker is
10496 *** used, and then restart.
10497
10498 _LT_EOF
10499 ;;
10500 *)
10501 # For security reasons, it is highly recommended that you always
10502 # use absolute paths for naming shared libraries, and exclude the
10503 # DT_RUNPATH tag from executables and libraries. But doing so
10504 # requires that you compile everything twice, which is a pain.
10505 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10506 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10508 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10509 else
10510 ld_shlibs=no
10511 fi
10512 ;;
10513 esac
10514 ;;
10515
10516 sunos4*)
10517 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10518 wlarc=
10519 hardcode_direct=yes
10520 hardcode_shlibpath_var=no
10521 ;;
10522
10523 *)
10524 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10525 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10526 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10527 else
10528 ld_shlibs=no
10529 fi
10530 ;;
10531 esac
10532
10533 if test no = "$ld_shlibs"; then
10534 runpath_var=
10535 hardcode_libdir_flag_spec=
10536 export_dynamic_flag_spec=
10537 whole_archive_flag_spec=
10538 fi
10539 else
10540 # PORTME fill in a description of your system's linker (not GNU ld)
10541 case $host_os in
10542 aix3*)
10543 allow_undefined_flag=unsupported
10544 always_export_symbols=yes
10545 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'
10546 # Note: this linker hardcodes the directories in LIBPATH if there
10547 # are no directories specified by -L.
10548 hardcode_minus_L=yes
10549 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10550 # Neither direct hardcoding nor static linking is supported with a
10551 # broken collect2.
10552 hardcode_direct=unsupported
10553 fi
10554 ;;
10555
10556 aix[4-9]*)
10557 if test ia64 = "$host_cpu"; then
10558 # On IA64, the linker does run time linking by default, so we don't
10559 # have to do anything special.
10560 aix_use_runtimelinking=no
10561 exp_sym_flag='-Bexport'
10562 no_entry_flag=
10563 else
10564 # If we're using GNU nm, then we don't want the "-C" option.
10565 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10566 # Without the "-l" option, or with the "-B" option, AIX nm treats
10567 # weak defined symbols like other global defined symbols, whereas
10568 # GNU nm marks them as "W".
10569 # While the 'weak' keyword is ignored in the Export File, we need
10570 # it in the Import File for the 'aix-soname' feature, so we have
10571 # to replace the "-B" option with "-P" for AIX nm.
10572 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10573 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'
10574 else
10575 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'
10576 fi
10577 aix_use_runtimelinking=no
10578
10579 # Test if we are trying to use run time linking or normal
10580 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10581 # have runtime linking enabled, and use it for executables.
10582 # For shared libraries, we enable/disable runtime linking
10583 # depending on the kind of the shared library created -
10584 # when "with_aix_soname,aix_use_runtimelinking" is:
10585 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10586 # "aix,yes" lib.so shared, rtl:yes, for executables
10587 # lib.a static archive
10588 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10589 # lib.a(lib.so.V) shared, rtl:no, for executables
10590 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10591 # lib.a(lib.so.V) shared, rtl:no
10592 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10593 # lib.a static archive
10594 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10595 for ld_flag in $LDFLAGS; do
10596 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10597 aix_use_runtimelinking=yes
10598 break
10599 fi
10600 done
10601 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10602 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10603 # so we don't have lib.a shared libs to link our executables.
10604 # We have to force runtime linking in this case.
10605 aix_use_runtimelinking=yes
10606 LDFLAGS="$LDFLAGS -Wl,-brtl"
10607 fi
10608 ;;
10609 esac
10610
10611 exp_sym_flag='-bexport'
10612 no_entry_flag='-bnoentry'
10613 fi
10614
10615 # When large executables or shared objects are built, AIX ld can
10616 # have problems creating the table of contents. If linking a library
10617 # or program results in "error TOC overflow" add -mminimal-toc to
10618 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10619 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10620
10621 archive_cmds=''
10622 hardcode_direct=yes
10623 hardcode_direct_absolute=yes
10624 hardcode_libdir_separator=':'
10625 link_all_deplibs=yes
10626 file_list_spec='$wl-f,'
10627 case $with_aix_soname,$aix_use_runtimelinking in
10628 aix,*) ;; # traditional, no import file
10629 svr4,* | *,yes) # use import file
10630 # The Import File defines what to hardcode.
10631 hardcode_direct=no
10632 hardcode_direct_absolute=no
10633 ;;
10634 esac
10635
10636 if test yes = "$GCC"; then
10637 case $host_os in aix4.[012]|aix4.[012].*)
10638 # We only want to do this on AIX 4.2 and lower, the check
10639 # below for broken collect2 doesn't work under 4.3+
10640 collect2name=`$CC -print-prog-name=collect2`
10641 if test -f "$collect2name" &&
10642 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10643 then
10644 # We have reworked collect2
10645 :
10646 else
10647 # We have old collect2
10648 hardcode_direct=unsupported
10649 # It fails to find uninstalled libraries when the uninstalled
10650 # path is not listed in the libpath. Setting hardcode_minus_L
10651 # to unsupported forces relinking
10652 hardcode_minus_L=yes
10653 hardcode_libdir_flag_spec='-L$libdir'
10654 hardcode_libdir_separator=
10655 fi
10656 ;;
10657 esac
10658 shared_flag='-shared'
10659 if test yes = "$aix_use_runtimelinking"; then
10660 shared_flag="$shared_flag "'$wl-G'
10661 fi
10662 # Need to ensure runtime linking is disabled for the traditional
10663 # shared library, or the linker may eventually find shared libraries
10664 # /with/ Import File - we do not want to mix them.
10665 shared_flag_aix='-shared'
10666 shared_flag_svr4='-shared $wl-G'
10667 else
10668 # not using gcc
10669 if test ia64 = "$host_cpu"; then
10670 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10671 # chokes on -Wl,-G. The following line is correct:
10672 shared_flag='-G'
10673 else
10674 if test yes = "$aix_use_runtimelinking"; then
10675 shared_flag='$wl-G'
10676 else
10677 shared_flag='$wl-bM:SRE'
10678 fi
10679 shared_flag_aix='$wl-bM:SRE'
10680 shared_flag_svr4='$wl-G'
10681 fi
10682 fi
10683
10684 export_dynamic_flag_spec='$wl-bexpall'
10685 # It seems that -bexpall does not export symbols beginning with
10686 # underscore (_), so it is better to generate a list of symbols to export.
10687 always_export_symbols=yes
10688 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10689 # Warning - without using the other runtime loading flags (-brtl),
10690 # -berok will link without error, but may produce a broken library.
10691 allow_undefined_flag='-berok'
10692 # Determine the default libpath from the value encoded in an
10693 # empty executable.
10694 if test set = "${lt_cv_aix_libpath+set}"; then
10695 aix_libpath=$lt_cv_aix_libpath
10696 else
10697 if test ${lt_cv_aix_libpath_+y}
10698 then :
10699 printf %s "(cached) " >&6
10700 else case e in #(
10701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702 /* end confdefs.h. */
10703
10704 int
10705 main (void)
10706 {
10707
10708 ;
10709 return 0;
10710 }
10711 _ACEOF
10712 if ac_fn_c_try_link "$LINENO"
10713 then :
10714
10715 lt_aix_libpath_sed='
10716 /Import File Strings/,/^$/ {
10717 /^0/ {
10718 s/^0 *\([^ ]*\) *$/\1/
10719 p
10720 }
10721 }'
10722 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10723 # Check for a 64-bit object if we didn't find anything.
10724 if test -z "$lt_cv_aix_libpath_"; then
10725 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10726 fi
10727 fi
10728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10729 conftest$ac_exeext conftest.$ac_ext
10730 if test -z "$lt_cv_aix_libpath_"; then
10731 lt_cv_aix_libpath_=/usr/lib:/lib
10732 fi
10733 ;;
10734 esac
10735 fi
10736
10737 aix_libpath=$lt_cv_aix_libpath_
10738 fi
10739
10740 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10741 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
10742 else
10743 if test ia64 = "$host_cpu"; then
10744 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10745 allow_undefined_flag="-z nodefs"
10746 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"
10747 else
10748 # Determine the default libpath from the value encoded in an
10749 # empty executable.
10750 if test set = "${lt_cv_aix_libpath+set}"; then
10751 aix_libpath=$lt_cv_aix_libpath
10752 else
10753 if test ${lt_cv_aix_libpath_+y}
10754 then :
10755 printf %s "(cached) " >&6
10756 else case e in #(
10757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10758 /* end confdefs.h. */
10759
10760 int
10761 main (void)
10762 {
10763
10764 ;
10765 return 0;
10766 }
10767 _ACEOF
10768 if ac_fn_c_try_link "$LINENO"
10769 then :
10770
10771 lt_aix_libpath_sed='
10772 /Import File Strings/,/^$/ {
10773 /^0/ {
10774 s/^0 *\([^ ]*\) *$/\1/
10775 p
10776 }
10777 }'
10778 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10779 # Check for a 64-bit object if we didn't find anything.
10780 if test -z "$lt_cv_aix_libpath_"; then
10781 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10782 fi
10783 fi
10784 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10785 conftest$ac_exeext conftest.$ac_ext
10786 if test -z "$lt_cv_aix_libpath_"; then
10787 lt_cv_aix_libpath_=/usr/lib:/lib
10788 fi
10789 ;;
10790 esac
10791 fi
10792
10793 aix_libpath=$lt_cv_aix_libpath_
10794 fi
10795
10796 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10797 # Warning - without using the other run time loading flags,
10798 # -berok will link without error, but may produce a broken library.
10799 no_undefined_flag=' $wl-bernotok'
10800 allow_undefined_flag=' $wl-berok'
10801 if test yes = "$with_gnu_ld"; then
10802 # We only use this code for GNU lds that support --whole-archive.
10803 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10804 else
10805 # Exported symbols can be pulled into shared objects from archives
10806 whole_archive_flag_spec='$convenience'
10807 fi
10808 archive_cmds_need_lc=yes
10809 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10810 # -brtl affects multiple linker settings, -berok does not and is overridden later
10811 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10812 if test svr4 != "$with_aix_soname"; then
10813 # This is similar to how AIX traditionally builds its shared libraries.
10814 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'
10815 fi
10816 if test aix != "$with_aix_soname"; then
10817 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'
10818 else
10819 # used by -dlpreopen to get the symbols
10820 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10821 fi
10822 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10823 fi
10824 fi
10825 ;;
10826
10827 amigaos*)
10828 case $host_cpu in
10829 powerpc)
10830 # see comment about AmigaOS4 .so support
10831 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10832 archive_expsym_cmds=''
10833 ;;
10834 m68k)
10835 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)'
10836 hardcode_libdir_flag_spec='-L$libdir'
10837 hardcode_minus_L=yes
10838 ;;
10839 esac
10840 ;;
10841
10842 bsdi[45]*)
10843 export_dynamic_flag_spec=-rdynamic
10844 ;;
10845
10846 cygwin* | mingw* | windows* | pw32* | cegcc*)
10847 # When not using gcc, we currently assume that we are using
10848 # Microsoft Visual C++ or Intel C++ Compiler.
10849 # hardcode_libdir_flag_spec is actually meaningless, as there is
10850 # no search path for DLLs.
10851 case $cc_basename in
10852 cl* | icl*)
10853 # Native MSVC or ICC
10854 hardcode_libdir_flag_spec=' '
10855 allow_undefined_flag=unsupported
10856 always_export_symbols=yes
10857 file_list_spec='@'
10858 # Tell ltmain to make .lib files, not .a files.
10859 libext=lib
10860 # Tell ltmain to make .dll files, not .so files.
10861 shrext_cmds=.dll
10862 # FIXME: Setting linknames here is a bad hack.
10863 archive_cmds='$CC -Fe$output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10864 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10865 cp "$export_symbols" "$output_objdir/$soname.def";
10866 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10867 else
10868 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10869 fi~
10870 $CC -Fe$tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10871 linknames='
10872 # The linker will not automatically build a static lib if we build a DLL.
10873 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10874 enable_shared_with_static_runtimes=yes
10875 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10876 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10877 # Don't use ranlib
10878 old_postinstall_cmds='chmod 644 $oldlib'
10879 postlink_cmds='lt_outputfile="@OUTPUT@"~
10880 lt_tool_outputfile="@TOOL_OUTPUT@"~
10881 case $lt_outputfile in
10882 *.exe|*.EXE) ;;
10883 *)
10884 lt_outputfile=$lt_outputfile.exe
10885 lt_tool_outputfile=$lt_tool_outputfile.exe
10886 ;;
10887 esac~
10888 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10889 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10890 $RM "$lt_outputfile.manifest";
10891 fi'
10892 ;;
10893 *)
10894 # Assume MSVC and ICC wrapper
10895 hardcode_libdir_flag_spec=' '
10896 allow_undefined_flag=unsupported
10897 # Tell ltmain to make .lib files, not .a files.
10898 libext=lib
10899 # Tell ltmain to make .dll files, not .so files.
10900 shrext_cmds=.dll
10901 # FIXME: Setting linknames here is a bad hack.
10902 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10903 # The linker will automatically build a .lib file if we build a DLL.
10904 old_archive_from_new_cmds='true'
10905 # FIXME: Should let the user specify the lib program.
10906 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10907 enable_shared_with_static_runtimes=yes
10908 ;;
10909 esac
10910 ;;
10911
10912 darwin* | rhapsody*)
10913
10914
10915 archive_cmds_need_lc=no
10916 hardcode_direct=no
10917 hardcode_automatic=yes
10918 hardcode_shlibpath_var=unsupported
10919 if test yes = "$lt_cv_ld_force_load"; then
10920 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\"`'
10921
10922 else
10923 whole_archive_flag_spec=''
10924 fi
10925 link_all_deplibs=yes
10926 allow_undefined_flag=$_lt_dar_allow_undefined
10927 case $cc_basename in
10928 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10929 *) _lt_dar_can_shared=$GCC ;;
10930 esac
10931 if test yes = "$_lt_dar_can_shared"; then
10932 output_verbose_link_cmd=func_echo_all
10933 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10934 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10935 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"
10936 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"
10937
10938 else
10939 ld_shlibs=no
10940 fi
10941
10942 ;;
10943
10944 dgux*)
10945 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10946 hardcode_libdir_flag_spec='-L$libdir'
10947 hardcode_shlibpath_var=no
10948 ;;
10949
10950 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10951 # support. Future versions do this automatically, but an explicit c++rt0.o
10952 # does not break anything, and helps significantly (at the cost of a little
10953 # extra space).
10954 freebsd2.2*)
10955 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10956 hardcode_libdir_flag_spec='-R$libdir'
10957 hardcode_direct=yes
10958 hardcode_shlibpath_var=no
10959 ;;
10960
10961 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10962 freebsd2.*)
10963 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10964 hardcode_direct=yes
10965 hardcode_minus_L=yes
10966 hardcode_shlibpath_var=no
10967 ;;
10968
10969 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10970 freebsd* | dragonfly* | midnightbsd*)
10971 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10972 hardcode_libdir_flag_spec='-R$libdir'
10973 hardcode_direct=yes
10974 hardcode_shlibpath_var=no
10975 ;;
10976
10977 hpux9*)
10978 if test yes = "$GCC"; then
10979 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'
10980 else
10981 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'
10982 fi
10983 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10984 hardcode_libdir_separator=:
10985 hardcode_direct=yes
10986
10987 # hardcode_minus_L: Not really in the search PATH,
10988 # but as the default location of the library.
10989 hardcode_minus_L=yes
10990 export_dynamic_flag_spec='$wl-E'
10991 ;;
10992
10993 hpux10*)
10994 if test yes,no = "$GCC,$with_gnu_ld"; then
10995 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10996 else
10997 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10998 fi
10999 if test no = "$with_gnu_ld"; then
11000 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11001 hardcode_libdir_separator=:
11002 hardcode_direct=yes
11003 hardcode_direct_absolute=yes
11004 export_dynamic_flag_spec='$wl-E'
11005 # hardcode_minus_L: Not really in the search PATH,
11006 # but as the default location of the library.
11007 hardcode_minus_L=yes
11008 fi
11009 ;;
11010
11011 hpux11*)
11012 if test yes,no = "$GCC,$with_gnu_ld"; then
11013 case $host_cpu in
11014 hppa*64*)
11015 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11016 ;;
11017 ia64*)
11018 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11019 ;;
11020 *)
11021 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11022 ;;
11023 esac
11024 else
11025 case $host_cpu in
11026 hppa*64*)
11027 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 ;;
11029 ia64*)
11030 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11031 ;;
11032 *)
11033
11034 # Older versions of the 11.00 compiler do not understand -b yet
11035 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11037 printf %s "checking if $CC understands -b... " >&6; }
11038 if test ${lt_cv_prog_compiler__b+y}
11039 then :
11040 printf %s "(cached) " >&6
11041 else case e in #(
11042 e) lt_cv_prog_compiler__b=no
11043 save_LDFLAGS=$LDFLAGS
11044 LDFLAGS="$LDFLAGS -b"
11045 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11046 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11047 # The linker can only warn and ignore the option if not recognized
11048 # So say no if there are warnings
11049 if test -s conftest.err; then
11050 # Append any errors to the config.log.
11051 cat conftest.err 1>&5
11052 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11053 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11054 if diff conftest.exp conftest.er2 >/dev/null; then
11055 lt_cv_prog_compiler__b=yes
11056 fi
11057 else
11058 lt_cv_prog_compiler__b=yes
11059 fi
11060 fi
11061 $RM -r conftest*
11062 LDFLAGS=$save_LDFLAGS
11063 ;;
11064 esac
11065 fi
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11067 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
11068
11069 if test yes = "$lt_cv_prog_compiler__b"; then
11070 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11071 else
11072 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11073 fi
11074
11075 ;;
11076 esac
11077 fi
11078 if test no = "$with_gnu_ld"; then
11079 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11080 hardcode_libdir_separator=:
11081
11082 case $host_cpu in
11083 hppa*64*|ia64*)
11084 hardcode_direct=no
11085 hardcode_shlibpath_var=no
11086 ;;
11087 *)
11088 hardcode_direct=yes
11089 hardcode_direct_absolute=yes
11090 export_dynamic_flag_spec='$wl-E'
11091
11092 # hardcode_minus_L: Not really in the search PATH,
11093 # but as the default location of the library.
11094 hardcode_minus_L=yes
11095 ;;
11096 esac
11097 fi
11098 ;;
11099
11100 irix5* | irix6* | nonstopux*)
11101 if test yes = "$GCC"; then
11102 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'
11103 # Try to use the -exported_symbol ld option, if it does not
11104 # work, assume that -exports_file does not work either and
11105 # implicitly export all symbols.
11106 # This should be the same for all languages, so no per-tag cache variable.
11107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11108 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11109 if test ${lt_cv_irix_exported_symbol+y}
11110 then :
11111 printf %s "(cached) " >&6
11112 else case e in #(
11113 e) save_LDFLAGS=$LDFLAGS
11114 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11116 /* end confdefs.h. */
11117 int foo (void) { return 0; }
11118 _ACEOF
11119 if ac_fn_c_try_link "$LINENO"
11120 then :
11121 lt_cv_irix_exported_symbol=yes
11122 else case e in #(
11123 e) lt_cv_irix_exported_symbol=no ;;
11124 esac
11125 fi
11126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11127 conftest$ac_exeext conftest.$ac_ext
11128 LDFLAGS=$save_LDFLAGS ;;
11129 esac
11130 fi
11131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11132 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
11133 if test yes = "$lt_cv_irix_exported_symbol"; then
11134 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'
11135 fi
11136 else
11137 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'
11138 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'
11139 fi
11140 archive_cmds_need_lc='no'
11141 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11142 hardcode_libdir_separator=:
11143 inherit_rpath=yes
11144 link_all_deplibs=yes
11145 ;;
11146
11147 linux*)
11148 case $cc_basename in
11149 tcc*)
11150 # Fabrice Bellard et al's Tiny C Compiler
11151 ld_shlibs=yes
11152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11153 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11154 ;;
11155 esac
11156 ;;
11157
11158 *-mlibc)
11159 ;;
11160
11161 netbsd* | netbsdelf*-gnu)
11162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11164 else
11165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11166 fi
11167 hardcode_libdir_flag_spec='-R$libdir'
11168 hardcode_direct=yes
11169 hardcode_shlibpath_var=no
11170 ;;
11171
11172 newsos6)
11173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174 hardcode_direct=yes
11175 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11176 hardcode_libdir_separator=:
11177 hardcode_shlibpath_var=no
11178 ;;
11179
11180 *nto* | *qnx*)
11181 ;;
11182
11183 openbsd*)
11184 if test -f /usr/libexec/ld.so; then
11185 hardcode_direct=yes
11186 hardcode_shlibpath_var=no
11187 hardcode_direct_absolute=yes
11188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11191 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11192 export_dynamic_flag_spec='$wl-E'
11193 else
11194 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11195 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11196 fi
11197 else
11198 ld_shlibs=no
11199 fi
11200 ;;
11201
11202 os2*)
11203 hardcode_libdir_flag_spec='-L$libdir'
11204 hardcode_minus_L=yes
11205 allow_undefined_flag=unsupported
11206 shrext_cmds=.dll
11207 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11208 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11209 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11210 $ECHO EXPORTS >> $output_objdir/$libname.def~
11211 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11212 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11213 emximp -o $lib $output_objdir/$libname.def'
11214 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11215 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11216 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11217 $ECHO EXPORTS >> $output_objdir/$libname.def~
11218 prefix_cmds="$SED"~
11219 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11220 prefix_cmds="$prefix_cmds -e 1d";
11221 fi~
11222 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11223 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11224 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11225 emximp -o $lib $output_objdir/$libname.def'
11226 old_archive_from_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11227 enable_shared_with_static_runtimes=yes
11228 file_list_spec='@'
11229 ;;
11230
11231 osf3*)
11232 if test yes = "$GCC"; then
11233 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11234 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'
11235 else
11236 allow_undefined_flag=' -expect_unresolved \*'
11237 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'
11238 fi
11239 archive_cmds_need_lc='no'
11240 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11241 hardcode_libdir_separator=:
11242 ;;
11243
11244 osf4* | osf5*) # as osf3* with the addition of -msym flag
11245 if test yes = "$GCC"; then
11246 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11247 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'
11248 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11249 else
11250 allow_undefined_flag=' -expect_unresolved \*'
11251 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'
11252 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~
11253 $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'
11254
11255 # Both c and cxx compiler support -rpath directly
11256 hardcode_libdir_flag_spec='-rpath $libdir'
11257 fi
11258 archive_cmds_need_lc='no'
11259 hardcode_libdir_separator=:
11260 ;;
11261
11262 serenity*)
11263 ;;
11264
11265 solaris*)
11266 no_undefined_flag=' -z defs'
11267 if test yes = "$GCC"; then
11268 wlarc='$wl'
11269 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11270 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11271 $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'
11272 else
11273 case `$CC -V 2>&1` in
11274 *"Compilers 5.0"*)
11275 wlarc=''
11276 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11277 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11278 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11279 ;;
11280 *)
11281 wlarc='$wl'
11282 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11283 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11284 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11285 ;;
11286 esac
11287 fi
11288 hardcode_libdir_flag_spec='-R$libdir'
11289 hardcode_shlibpath_var=no
11290 case $host_os in
11291 solaris2.[0-5] | solaris2.[0-5].*) ;;
11292 *)
11293 # The compiler driver will combine and reorder linker options,
11294 # but understands '-z linker_flag'. GCC discards it without '$wl',
11295 # but is careful enough not to reorder.
11296 # Supported since Solaris 2.6 (maybe 2.5.1?)
11297 if test yes = "$GCC"; then
11298 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11299 else
11300 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11301 fi
11302 ;;
11303 esac
11304 link_all_deplibs=yes
11305 ;;
11306
11307 sunos4*)
11308 if test sequent = "$host_vendor"; then
11309 # Use $CC to link under sequent, because it throws in some extra .o
11310 # files that make .init and .fini sections work.
11311 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11312 else
11313 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11314 fi
11315 hardcode_libdir_flag_spec='-L$libdir'
11316 hardcode_direct=yes
11317 hardcode_minus_L=yes
11318 hardcode_shlibpath_var=no
11319 ;;
11320
11321 sysv4)
11322 case $host_vendor in
11323 sni)
11324 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11325 hardcode_direct=yes # is this really true???
11326 ;;
11327 siemens)
11328 ## LD is ld it makes a PLAMLIB
11329 ## CC just makes a GrossModule.
11330 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11331 reload_cmds='$CC -r -o $output$reload_objs'
11332 hardcode_direct=no
11333 ;;
11334 motorola)
11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11337 ;;
11338 esac
11339 runpath_var='LD_RUN_PATH'
11340 hardcode_shlibpath_var=no
11341 ;;
11342
11343 sysv4.3*)
11344 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11345 hardcode_shlibpath_var=no
11346 export_dynamic_flag_spec='-Bexport'
11347 ;;
11348
11349 sysv4*MP*)
11350 if test -d /usr/nec; then
11351 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352 hardcode_shlibpath_var=no
11353 runpath_var=LD_RUN_PATH
11354 hardcode_runpath_var=yes
11355 ld_shlibs=yes
11356 fi
11357 ;;
11358
11359 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11360 no_undefined_flag='$wl-z,text'
11361 archive_cmds_need_lc=no
11362 hardcode_shlibpath_var=no
11363 runpath_var='LD_RUN_PATH'
11364
11365 if test yes = "$GCC"; then
11366 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11367 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11368 else
11369 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11370 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11371 fi
11372 ;;
11373
11374 sysv5* | sco3.2v5* | sco5v6*)
11375 # Note: We CANNOT use -z defs as we might desire, because we do not
11376 # link with -lc, and that would cause any symbols used from libc to
11377 # always be unresolved, which means just about no library would
11378 # ever link correctly. If we're not using GNU ld we use -z text
11379 # though, which does catch some bad symbols but isn't as heavy-handed
11380 # as -z defs.
11381 no_undefined_flag='$wl-z,text'
11382 allow_undefined_flag='$wl-z,nodefs'
11383 archive_cmds_need_lc=no
11384 hardcode_shlibpath_var=no
11385 hardcode_libdir_flag_spec='$wl-R,$libdir'
11386 hardcode_libdir_separator=':'
11387 link_all_deplibs=yes
11388 export_dynamic_flag_spec='$wl-Bexport'
11389 runpath_var='LD_RUN_PATH'
11390
11391 if test yes = "$GCC"; then
11392 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11393 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11394 else
11395 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11396 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11397 fi
11398 ;;
11399
11400 uts4*)
11401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11402 hardcode_libdir_flag_spec='-L$libdir'
11403 hardcode_shlibpath_var=no
11404 ;;
11405
11406 *)
11407 ld_shlibs=no
11408 ;;
11409 esac
11410
11411 if test sni = "$host_vendor"; then
11412 case $host in
11413 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11414 export_dynamic_flag_spec='$wl-Blargedynsym'
11415 ;;
11416 esac
11417 fi
11418 fi
11419
11420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11421 printf "%s\n" "$ld_shlibs" >&6; }
11422 test no = "$ld_shlibs" && can_build_shared=no
11423
11424 with_gnu_ld=$with_gnu_ld
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440 #
11441 # Do we need to explicitly link libc?
11442 #
11443 case "x$archive_cmds_need_lc" in
11444 x|xyes)
11445 # Assume -lc should be added
11446 archive_cmds_need_lc=yes
11447
11448 if test yes,yes = "$GCC,$enable_shared"; then
11449 case $archive_cmds in
11450 *'~'*)
11451 # FIXME: we may have to deal with multi-command sequences.
11452 ;;
11453 '$CC '*)
11454 # Test whether the compiler implicitly links with -lc since on some
11455 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11456 # to ld, don't add -lc before -lgcc.
11457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11458 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11459 if test ${lt_cv_archive_cmds_need_lc+y}
11460 then :
11461 printf %s "(cached) " >&6
11462 else case e in #(
11463 e) $RM conftest*
11464 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11465
11466 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11467 (eval $ac_compile) 2>&5
11468 ac_status=$?
11469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11470 test $ac_status = 0; } 2>conftest.err; then
11471 soname=conftest
11472 lib=conftest
11473 libobjs=conftest.$ac_objext
11474 deplibs=
11475 wl=$lt_prog_compiler_wl
11476 pic_flag=$lt_prog_compiler_pic
11477 compiler_flags=-v
11478 linker_flags=-v
11479 verstring=
11480 output_objdir=.
11481 libname=conftest
11482 lt_save_allow_undefined_flag=$allow_undefined_flag
11483 allow_undefined_flag=
11484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11485 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11486 ac_status=$?
11487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11488 test $ac_status = 0; }
11489 then
11490 lt_cv_archive_cmds_need_lc=no
11491 else
11492 lt_cv_archive_cmds_need_lc=yes
11493 fi
11494 allow_undefined_flag=$lt_save_allow_undefined_flag
11495 else
11496 cat conftest.err 1>&5
11497 fi
11498 $RM conftest*
11499 ;;
11500 esac
11501 fi
11502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11503 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11504 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11505 ;;
11506 esac
11507 fi
11508 ;;
11509 esac
11510
11511
11512
11513
11514
11515
11516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550
11551
11552
11553
11554
11555
11556
11557
11558
11559
11560
11561
11562
11563
11564
11565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
11576
11577
11578
11579
11580
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11663 printf %s "checking dynamic linker characteristics... " >&6; }
11664
11665 if test yes = "$GCC"; then
11666 case $host_os in
11667 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11668 *) lt_awk_arg='/^libraries:/' ;;
11669 esac
11670 case $host_os in
11671 mingw* | windows* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11672 *) lt_sed_strip_eq='s|=/|/|g' ;;
11673 esac
11674 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11675 case $lt_search_path_spec in
11676 *\;*)
11677 # if the path contains ";" then we assume it to be the separator
11678 # otherwise default to the standard path separator (i.e. ":") - it is
11679 # assumed that no part of a normal pathname contains ";" but that should
11680 # okay in the real world where ";" in dirpaths is itself problematic.
11681 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11682 ;;
11683 *)
11684 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11685 ;;
11686 esac
11687 # Ok, now we have the path, separated by spaces, we can step through it
11688 # and add multilib dir if necessary...
11689 lt_tmp_lt_search_path_spec=
11690 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11691 # ...but if some path component already ends with the multilib dir we assume
11692 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11693 case "$lt_multi_os_dir; $lt_search_path_spec " in
11694 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11695 lt_multi_os_dir=
11696 ;;
11697 esac
11698 for lt_sys_path in $lt_search_path_spec; do
11699 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11700 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11701 elif test -n "$lt_multi_os_dir"; then
11702 test -d "$lt_sys_path" && \
11703 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11704 fi
11705 done
11706 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11707 BEGIN {RS = " "; FS = "/|\n";} {
11708 lt_foo = "";
11709 lt_count = 0;
11710 for (lt_i = NF; lt_i > 0; lt_i--) {
11711 if ($lt_i != "" && $lt_i != ".") {
11712 if ($lt_i == "..") {
11713 lt_count++;
11714 } else {
11715 if (lt_count == 0) {
11716 lt_foo = "/" $lt_i lt_foo;
11717 } else {
11718 lt_count--;
11719 }
11720 }
11721 }
11722 }
11723 if (lt_foo != "") { lt_freq[lt_foo]++; }
11724 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11725 }'`
11726 # AWK program above erroneously prepends '/' to C:/dos/paths
11727 # for these hosts.
11728 case $host_os in
11729 mingw* | windows* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11730 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11731 esac
11732 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11733 else
11734 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11735 fi
11736 library_names_spec=
11737 libname_spec='lib$name'
11738 soname_spec=
11739 shrext_cmds=.so
11740 postinstall_cmds=
11741 postuninstall_cmds=
11742 finish_cmds=
11743 finish_eval=
11744 shlibpath_var=
11745 shlibpath_overrides_runpath=unknown
11746 version_type=none
11747 dynamic_linker="$host_os ld.so"
11748 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11749 need_lib_prefix=unknown
11750 hardcode_into_libs=no
11751
11752 # when you set need_version to no, make sure it does not cause -set_version
11753 # flags to be left without arguments
11754 need_version=unknown
11755
11756
11757
11758 case $host_os in
11759 aix3*)
11760 version_type=linux # correct to gnu/linux during the next big refactor
11761 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11762 shlibpath_var=LIBPATH
11763
11764 # AIX 3 has no versioning support, so we append a major version to the name.
11765 soname_spec='$libname$release$shared_ext$major'
11766 ;;
11767
11768 aix[4-9]*)
11769 version_type=linux # correct to gnu/linux during the next big refactor
11770 need_lib_prefix=no
11771 need_version=no
11772 hardcode_into_libs=yes
11773 if test ia64 = "$host_cpu"; then
11774 # AIX 5 supports IA64
11775 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11776 shlibpath_var=LD_LIBRARY_PATH
11777 else
11778 # With GCC up to 2.95.x, collect2 would create an import file
11779 # for dependence libraries. The import file would start with
11780 # the line '#! .'. This would cause the generated library to
11781 # depend on '.', always an invalid library. This was fixed in
11782 # development snapshots of GCC prior to 3.0.
11783 case $host_os in
11784 aix4 | aix4.[01] | aix4.[01].*)
11785 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11786 echo ' yes '
11787 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11788 :
11789 else
11790 can_build_shared=no
11791 fi
11792 ;;
11793 esac
11794 # Using Import Files as archive members, it is possible to support
11795 # filename-based versioning of shared library archives on AIX. While
11796 # this would work for both with and without runtime linking, it will
11797 # prevent static linking of such archives. So we do filename-based
11798 # shared library versioning with .so extension only, which is used
11799 # when both runtime linking and shared linking is enabled.
11800 # Unfortunately, runtime linking may impact performance, so we do
11801 # not want this to be the default eventually. Also, we use the
11802 # versioned .so libs for executables only if there is the -brtl
11803 # linker flag in LDFLAGS as well, or --enable-aix-soname=svr4 only.
11804 # To allow for filename-based versioning support, we need to create
11805 # libNAME.so.V as an archive file, containing:
11806 # *) an Import File, referring to the versioned filename of the
11807 # archive as well as the shared archive member, telling the
11808 # bitwidth (32 or 64) of that shared object, and providing the
11809 # list of exported symbols of that shared object, eventually
11810 # decorated with the 'weak' keyword
11811 # *) the shared object with the F_LOADONLY flag set, to really avoid
11812 # it being seen by the linker.
11813 # At run time we better use the real file rather than another symlink,
11814 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11815
11816 case $with_aix_soname,$aix_use_runtimelinking in
11817 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11818 # soname into executable. Probably we can add versioning support to
11819 # collect2, so additional links can be useful in future.
11820 aix,yes) # traditional libtool
11821 dynamic_linker='AIX unversionable lib.so'
11822 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11823 # instead of lib<name>.a to let people know that these are not
11824 # typical AIX shared libraries.
11825 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11826 ;;
11827 aix,no) # traditional AIX only
11828 dynamic_linker='AIX lib.a(lib.so.V)'
11829 # We preserve .a as extension for shared libraries through AIX4.2
11830 # and later when we are not doing run time linking.
11831 library_names_spec='$libname$release.a $libname.a'
11832 soname_spec='$libname$release$shared_ext$major'
11833 ;;
11834 svr4,*) # full svr4 only
11835 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11836 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11837 # We do not specify a path in Import Files, so LIBPATH fires.
11838 shlibpath_overrides_runpath=yes
11839 ;;
11840 *,yes) # both, prefer svr4
11841 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11842 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11843 # unpreferred sharedlib libNAME.a needs extra handling
11844 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"'
11845 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"'
11846 # We do not specify a path in Import Files, so LIBPATH fires.
11847 shlibpath_overrides_runpath=yes
11848 ;;
11849 *,no) # both, prefer aix
11850 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11851 library_names_spec='$libname$release.a $libname.a'
11852 soname_spec='$libname$release$shared_ext$major'
11853 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11854 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)'
11855 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"'
11856 ;;
11857 esac
11858 shlibpath_var=LIBPATH
11859 fi
11860 ;;
11861
11862 amigaos*)
11863 case $host_cpu in
11864 powerpc)
11865 # Since July 2007 AmigaOS4 officially supports .so libraries.
11866 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11867 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11868 ;;
11869 m68k)
11870 library_names_spec='$libname.ixlibrary $libname.a'
11871 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11872 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'
11873 ;;
11874 esac
11875 ;;
11876
11877 beos*)
11878 library_names_spec='$libname$shared_ext'
11879 dynamic_linker="$host_os ld.so"
11880 shlibpath_var=LIBRARY_PATH
11881 ;;
11882
11883 bsdi[45]*)
11884 version_type=linux # correct to gnu/linux during the next big refactor
11885 need_version=no
11886 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11887 soname_spec='$libname$release$shared_ext$major'
11888 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11889 shlibpath_var=LD_LIBRARY_PATH
11890 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11891 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11892 # the default ld.so.conf also contains /usr/contrib/lib and
11893 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11894 # libtool to hard-code these into programs
11895 ;;
11896
11897 cygwin* | mingw* | windows* | pw32* | cegcc*)
11898 version_type=windows
11899 shrext_cmds=.dll
11900 need_version=no
11901 need_lib_prefix=no
11902
11903 case $GCC,$cc_basename in
11904 yes,*)
11905 # gcc
11906 library_names_spec='$libname.dll.a'
11907 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11908 # If user builds GCC with multilib enabled,
11909 # it should just install on $(libdir)
11910 # not on $(libdir)/../bin or 32 bits dlls would override 64 bit ones.
11911 if test xyes = x"$multilib"; then
11912 postinstall_cmds='base_file=`basename \$file`~
11913 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11914 dldir=$destdir/`dirname \$dlpath`~
11915 $install_prog $dir/$dlname $destdir/$dlname~
11916 chmod a+x $destdir/$dlname~
11917 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11918 eval '\''$striplib $destdir/$dlname'\'' || exit \$?;
11919 fi'
11920 else
11921 postinstall_cmds='base_file=`basename \$file`~
11922 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11923 dldir=$destdir/`dirname \$dlpath`~
11924 test -d \$dldir || mkdir -p \$dldir~
11925 $install_prog $dir/$dlname \$dldir/$dlname~
11926 chmod a+x \$dldir/$dlname~
11927 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11928 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11929 fi'
11930 fi
11931 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11932 dlpath=$dir/\$dldll~
11933 $RM \$dlpath'
11934 shlibpath_overrides_runpath=yes
11935
11936 case $host_os in
11937 cygwin*)
11938 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11939 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11940
11941 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11942 ;;
11943 mingw* | windows* | cegcc*)
11944 # MinGW DLLs use traditional 'lib' prefix
11945 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11946 ;;
11947 pw32*)
11948 # pw32 DLLs use 'pw' prefix rather than 'lib'
11949 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11950 ;;
11951 esac
11952 dynamic_linker='Win32 ld.exe'
11953 ;;
11954
11955 *,cl* | *,icl*)
11956 # Native MSVC or ICC
11957 libname_spec='$name'
11958 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11959 library_names_spec='$libname.dll.lib'
11960
11961 case $build_os in
11962 mingw* | windows*)
11963 sys_lib_search_path_spec=
11964 lt_save_ifs=$IFS
11965 IFS=';'
11966 for lt_path in $LIB
11967 do
11968 IFS=$lt_save_ifs
11969 # Let DOS variable expansion print the short 8.3 style file name.
11970 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11971 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11972 done
11973 IFS=$lt_save_ifs
11974 # Convert to MSYS style.
11975 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11976 ;;
11977 cygwin*)
11978 # Convert to unix form, then to dos form, then back to unix form
11979 # but this time dos style (no spaces!) so that the unix form looks
11980 # like /cygdrive/c/PROGRA~1:/cygdr...
11981 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11982 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11983 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11984 ;;
11985 *)
11986 sys_lib_search_path_spec=$LIB
11987 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11988 # It is most probably a Windows format PATH.
11989 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11990 else
11991 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11992 fi
11993 # FIXME: find the short name or the path components, as spaces are
11994 # common. (e.g. "Program Files" -> "PROGRA~1")
11995 ;;
11996 esac
11997
11998 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11999 postinstall_cmds='base_file=`basename \$file`~
12000 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12001 dldir=$destdir/`dirname \$dlpath`~
12002 test -d \$dldir || mkdir -p \$dldir~
12003 $install_prog $dir/$dlname \$dldir/$dlname'
12004 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12005 dlpath=$dir/\$dldll~
12006 $RM \$dlpath'
12007 shlibpath_overrides_runpath=yes
12008 dynamic_linker='Win32 link.exe'
12009 ;;
12010
12011 *)
12012 # Assume MSVC and ICC wrapper
12013 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12014 dynamic_linker='Win32 ld.exe'
12015 ;;
12016 esac
12017 # FIXME: first we should search . and the directory the executable is in
12018 shlibpath_var=PATH
12019 ;;
12020
12021 darwin* | rhapsody*)
12022 dynamic_linker="$host_os dyld"
12023 version_type=darwin
12024 need_lib_prefix=no
12025 need_version=no
12026 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12027 soname_spec='$libname$release$major$shared_ext'
12028 shlibpath_overrides_runpath=yes
12029 shlibpath_var=DYLD_LIBRARY_PATH
12030 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12031
12032 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12033 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12034 ;;
12035
12036 dgux*)
12037 version_type=linux # correct to gnu/linux during the next big refactor
12038 need_lib_prefix=no
12039 need_version=no
12040 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12041 soname_spec='$libname$release$shared_ext$major'
12042 shlibpath_var=LD_LIBRARY_PATH
12043 ;;
12044
12045 freebsd* | dragonfly* | midnightbsd*)
12046 # DragonFly does not have aout. When/if they implement a new
12047 # versioning mechanism, adjust this.
12048 if test -x /usr/bin/objformat; then
12049 objformat=`/usr/bin/objformat`
12050 else
12051 case $host_os in
12052 freebsd[23].*) objformat=aout ;;
12053 *) objformat=elf ;;
12054 esac
12055 fi
12056 version_type=freebsd-$objformat
12057 case $version_type in
12058 freebsd-elf*)
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 soname_spec='$libname$release$shared_ext$major'
12061 need_version=no
12062 need_lib_prefix=no
12063 ;;
12064 freebsd-*)
12065 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12066 need_version=yes
12067 ;;
12068 esac
12069 case $host_cpu in
12070 powerpc64)
12071 # On FreeBSD bi-arch platforms, a different variable is used for 32-bit
12072 # binaries. See <https://man.freebsd.org/cgi/man.cgi?query=ld.so>.
12073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12074 /* end confdefs.h. */
12075 int test_pointer_size[sizeof (void *) - 5];
12076
12077 _ACEOF
12078 if ac_fn_c_try_compile "$LINENO"
12079 then :
12080 shlibpath_var=LD_LIBRARY_PATH
12081 else case e in #(
12082 e) shlibpath_var=LD_32_LIBRARY_PATH ;;
12083 esac
12084 fi
12085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12086 ;;
12087 *)
12088 shlibpath_var=LD_LIBRARY_PATH
12089 ;;
12090 esac
12091 case $host_os in
12092 freebsd2.*)
12093 shlibpath_overrides_runpath=yes
12094 ;;
12095 freebsd3.[01]* | freebsdelf3.[01]*)
12096 shlibpath_overrides_runpath=yes
12097 hardcode_into_libs=yes
12098 ;;
12099 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12100 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12101 shlibpath_overrides_runpath=no
12102 hardcode_into_libs=yes
12103 ;;
12104 *) # from 4.6 on, and DragonFly
12105 shlibpath_overrides_runpath=yes
12106 hardcode_into_libs=yes
12107 ;;
12108 esac
12109 ;;
12110
12111 haiku*)
12112 version_type=linux # correct to gnu/linux during the next big refactor
12113 need_lib_prefix=no
12114 need_version=no
12115 dynamic_linker="$host_os runtime_loader"
12116 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12117 soname_spec='$libname$release$shared_ext$major'
12118 shlibpath_var=LIBRARY_PATH
12119 shlibpath_overrides_runpath=no
12120 sys_lib_search_path_spec='/boot/system/non-packaged/develop/lib /boot/system/develop/lib'
12121 sys_lib_dlsearch_path_spec='/boot/home/config/non-packaged/lib /boot/home/config/lib /boot/system/non-packaged/lib /boot/system/lib'
12122 hardcode_into_libs=no
12123 ;;
12124
12125 hpux9* | hpux10* | hpux11*)
12126 # Give a soname corresponding to the major version so that dld.sl refuses to
12127 # link against other versions.
12128 version_type=sunos
12129 need_lib_prefix=no
12130 need_version=no
12131 case $host_cpu in
12132 ia64*)
12133 shrext_cmds='.so'
12134 hardcode_into_libs=yes
12135 dynamic_linker="$host_os dld.so"
12136 shlibpath_var=LD_LIBRARY_PATH
12137 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12138 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12139 soname_spec='$libname$release$shared_ext$major'
12140 if test 32 = "$HPUX_IA64_MODE"; then
12141 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12142 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12143 else
12144 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12145 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12146 fi
12147 ;;
12148 hppa*64*)
12149 shrext_cmds='.sl'
12150 hardcode_into_libs=yes
12151 dynamic_linker="$host_os dld.sl"
12152 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12155 soname_spec='$libname$release$shared_ext$major'
12156 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12158 ;;
12159 *)
12160 shrext_cmds='.sl'
12161 dynamic_linker="$host_os dld.sl"
12162 shlibpath_var=SHLIB_PATH
12163 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12164 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12165 soname_spec='$libname$release$shared_ext$major'
12166 ;;
12167 esac
12168 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12169 postinstall_cmds='chmod 555 $lib'
12170 # or fails outright, so override atomically:
12171 install_override_mode=555
12172 ;;
12173
12174 interix[3-9]*)
12175 version_type=linux # correct to gnu/linux during the next big refactor
12176 need_lib_prefix=no
12177 need_version=no
12178 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12179 soname_spec='$libname$release$shared_ext$major'
12180 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12181 shlibpath_var=LD_LIBRARY_PATH
12182 shlibpath_overrides_runpath=no
12183 hardcode_into_libs=yes
12184 ;;
12185
12186 irix5* | irix6* | nonstopux*)
12187 case $host_os in
12188 nonstopux*) version_type=nonstopux ;;
12189 *)
12190 if test yes = "$lt_cv_prog_gnu_ld"; then
12191 version_type=linux # correct to gnu/linux during the next big refactor
12192 else
12193 version_type=irix
12194 fi ;;
12195 esac
12196 need_lib_prefix=no
12197 need_version=no
12198 soname_spec='$libname$release$shared_ext$major'
12199 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12200 case $host_os in
12201 irix5* | nonstopux*)
12202 libsuff= shlibsuff=
12203 ;;
12204 *)
12205 case $LD in # libtool.m4 will add one of these switches to LD
12206 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12207 libsuff= shlibsuff= libmagic=32-bit;;
12208 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12209 libsuff=32 shlibsuff=N32 libmagic=N32;;
12210 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12211 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12212 *) libsuff= shlibsuff= libmagic=never-match;;
12213 esac
12214 ;;
12215 esac
12216 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12217 shlibpath_overrides_runpath=no
12218 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12219 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12220 hardcode_into_libs=yes
12221 ;;
12222
12223 # No shared lib support for Linux oldld, aout, or coff.
12224 linux*oldld* | linux*aout* | linux*coff*)
12225 dynamic_linker=no
12226 ;;
12227
12228 linux*android*)
12229 version_type=none # Android doesn't support versioned libraries.
12230 need_lib_prefix=no
12231 need_version=no
12232 library_names_spec='$libname$release$shared_ext $libname$shared_ext'
12233 soname_spec='$libname$release$shared_ext'
12234 finish_cmds=
12235 shlibpath_var=LD_LIBRARY_PATH
12236 shlibpath_overrides_runpath=yes
12237
12238 # This implies no fast_install, which is unacceptable.
12239 # Some rework will be needed to allow for fast_install
12240 # before this can be enabled.
12241 hardcode_into_libs=yes
12242
12243 dynamic_linker='Android linker'
12244 # -rpath works at least for libraries that are not overridden by
12245 # libraries installed in system locations.
12246 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12247 ;;
12248
12249 # This must be glibc/ELF.
12250 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12251 version_type=linux # correct to gnu/linux during the next big refactor
12252 need_lib_prefix=no
12253 need_version=no
12254 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12255 soname_spec='$libname$release$shared_ext$major'
12256 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12257 shlibpath_var=LD_LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259
12260 # Some binutils ld are patched to set DT_RUNPATH
12261 if test ${lt_cv_shlibpath_overrides_runpath+y}
12262 then :
12263 printf %s "(cached) " >&6
12264 else case e in #(
12265 e) lt_cv_shlibpath_overrides_runpath=no
12266 save_LDFLAGS=$LDFLAGS
12267 save_libdir=$libdir
12268 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12269 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12271 /* end confdefs.h. */
12272
12273 int
12274 main (void)
12275 {
12276
12277 ;
12278 return 0;
12279 }
12280 _ACEOF
12281 if ac_fn_c_try_link "$LINENO"
12282 then :
12283 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12284 then :
12285 lt_cv_shlibpath_overrides_runpath=yes
12286 fi
12287 fi
12288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12289 conftest$ac_exeext conftest.$ac_ext
12290 LDFLAGS=$save_LDFLAGS
12291 libdir=$save_libdir
12292 ;;
12293 esac
12294 fi
12295
12296 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12297
12298 # This implies no fast_install, which is unacceptable.
12299 # Some rework will be needed to allow for fast_install
12300 # before this can be enabled.
12301 hardcode_into_libs=yes
12302
12303 # Ideally, we could use ldconfig to report *all* directories which are
12304 # searched for libraries, however this is still not possible. Aside from not
12305 # being certain /sbin/ldconfig is available, command
12306 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12307 # even though it is searched at run-time. Try to do the best guess by
12308 # appending ld.so.conf contents (and includes) to the search path.
12309 if test -f /etc/ld.so.conf; then
12310 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' ' '`
12311 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12312 fi
12313
12314 # We used to test for /lib/ld.so.1 and disable shared libraries on
12315 # powerpc, because MkLinux only supported shared libraries with the
12316 # GNU dynamic linker. Since this was broken with cross compilers,
12317 # most powerpc-linux boxes support dynamic linking these days and
12318 # people can always --disable-shared, the test was removed, and we
12319 # assume the GNU/Linux dynamic linker is in use.
12320 dynamic_linker='GNU/Linux ld.so'
12321 ;;
12322
12323 netbsdelf*-gnu)
12324 version_type=linux
12325 need_lib_prefix=no
12326 need_version=no
12327 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12328 soname_spec='$libname$release$shared_ext$major'
12329 shlibpath_var=LD_LIBRARY_PATH
12330 shlibpath_overrides_runpath=no
12331 hardcode_into_libs=yes
12332 dynamic_linker='NetBSD ld.elf_so'
12333 ;;
12334
12335 netbsd*)
12336 version_type=sunos
12337 need_lib_prefix=no
12338 need_version=no
12339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12340 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12342 dynamic_linker='NetBSD (a.out) ld.so'
12343 else
12344 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12345 soname_spec='$libname$release$shared_ext$major'
12346 dynamic_linker='NetBSD ld.elf_so'
12347 fi
12348 shlibpath_var=LD_LIBRARY_PATH
12349 shlibpath_overrides_runpath=yes
12350 hardcode_into_libs=yes
12351 ;;
12352
12353 *-mlibc)
12354 version_type=linux # correct to gnu/linux during the next big refactor
12355 need_lib_prefix=no
12356 need_version=no
12357 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12358 soname_spec='$libname$release$shared_ext$major'
12359 dynamic_linker='mlibc ld.so'
12360 shlibpath_var=LD_LIBRARY_PATH
12361 shlibpath_overrides_runpath=no
12362 hardcode_into_libs=yes
12363 ;;
12364
12365 newsos6)
12366 version_type=linux # correct to gnu/linux during the next big refactor
12367 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12368 shlibpath_var=LD_LIBRARY_PATH
12369 shlibpath_overrides_runpath=yes
12370 ;;
12371
12372 *nto* | *qnx*)
12373 version_type=qnx
12374 need_lib_prefix=no
12375 need_version=no
12376 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12377 soname_spec='$libname$release$shared_ext$major'
12378 shlibpath_var=LD_LIBRARY_PATH
12379 shlibpath_overrides_runpath=no
12380 hardcode_into_libs=yes
12381 dynamic_linker='ldqnx.so'
12382 ;;
12383
12384 openbsd*)
12385 version_type=sunos
12386 sys_lib_dlsearch_path_spec=/usr/lib
12387 need_lib_prefix=no
12388 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12389 need_version=no
12390 else
12391 need_version=yes
12392 fi
12393 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12395 shlibpath_var=LD_LIBRARY_PATH
12396 shlibpath_overrides_runpath=yes
12397 ;;
12398
12399 os2*)
12400 libname_spec='$name'
12401 version_type=windows
12402 shrext_cmds=.dll
12403 need_version=no
12404 need_lib_prefix=no
12405 # OS/2 can only load a DLL with a base name of 8 characters or less.
12406 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12407 v=$($ECHO $release$versuffix | tr -d .-);
12408 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12409 $ECHO $n$v`$shared_ext'
12410 library_names_spec='${libname}_dll.$libext'
12411 dynamic_linker='OS/2 ld.exe'
12412 shlibpath_var=BEGINLIBPATH
12413 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12414 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12415 postinstall_cmds='base_file=`basename \$file`~
12416 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12417 dldir=$destdir/`dirname \$dlpath`~
12418 test -d \$dldir || mkdir -p \$dldir~
12419 $install_prog $dir/$dlname \$dldir/$dlname~
12420 chmod a+x \$dldir/$dlname~
12421 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12422 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12423 fi'
12424 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12425 dlpath=$dir/\$dldll~
12426 $RM \$dlpath'
12427 ;;
12428
12429 osf3* | osf4* | osf5*)
12430 version_type=osf
12431 need_lib_prefix=no
12432 need_version=no
12433 soname_spec='$libname$release$shared_ext$major'
12434 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12435 shlibpath_var=LD_LIBRARY_PATH
12436 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12438 ;;
12439
12440 rdos*)
12441 dynamic_linker=no
12442 ;;
12443
12444 serenity*)
12445 version_type=linux # correct to gnu/linux during the next big refactor
12446 need_lib_prefix=no
12447 need_version=no
12448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12449 soname_spec='$libname$release$shared_ext$major'
12450 shlibpath_var=LD_LIBRARY_PATH
12451 shlibpath_overrides_runpath=no
12452 dynamic_linker='SerenityOS LibELF'
12453 ;;
12454
12455 solaris*)
12456 version_type=linux # correct to gnu/linux during the next big refactor
12457 need_lib_prefix=no
12458 need_version=no
12459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12460 soname_spec='$libname$release$shared_ext$major'
12461 shlibpath_var=LD_LIBRARY_PATH
12462 shlibpath_overrides_runpath=yes
12463 hardcode_into_libs=yes
12464 # ldd complains unless libraries are executable
12465 postinstall_cmds='chmod +x $lib'
12466 ;;
12467
12468 sunos4*)
12469 version_type=sunos
12470 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12471 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12474 if test yes = "$with_gnu_ld"; then
12475 need_lib_prefix=no
12476 fi
12477 need_version=yes
12478 ;;
12479
12480 sysv4 | sysv4.3*)
12481 version_type=linux # correct to gnu/linux during the next big refactor
12482 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12483 soname_spec='$libname$release$shared_ext$major'
12484 shlibpath_var=LD_LIBRARY_PATH
12485 case $host_vendor in
12486 sni)
12487 shlibpath_overrides_runpath=no
12488 need_lib_prefix=no
12489 runpath_var=LD_RUN_PATH
12490 ;;
12491 siemens)
12492 need_lib_prefix=no
12493 ;;
12494 motorola)
12495 need_lib_prefix=no
12496 need_version=no
12497 shlibpath_overrides_runpath=no
12498 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12499 ;;
12500 esac
12501 ;;
12502
12503 sysv4*MP*)
12504 if test -d /usr/nec; then
12505 version_type=linux # correct to gnu/linux during the next big refactor
12506 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12507 soname_spec='$libname$shared_ext.$major'
12508 shlibpath_var=LD_LIBRARY_PATH
12509 fi
12510 ;;
12511
12512 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12513 version_type=sco
12514 need_lib_prefix=no
12515 need_version=no
12516 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12517 soname_spec='$libname$release$shared_ext$major'
12518 shlibpath_var=LD_LIBRARY_PATH
12519 shlibpath_overrides_runpath=yes
12520 hardcode_into_libs=yes
12521 if test yes = "$with_gnu_ld"; then
12522 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12523 else
12524 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12525 case $host_os in
12526 sco3.2v5*)
12527 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12528 ;;
12529 esac
12530 fi
12531 sys_lib_dlsearch_path_spec='/usr/lib'
12532 ;;
12533
12534 tpf*)
12535 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12536 version_type=linux # correct to gnu/linux during the next big refactor
12537 need_lib_prefix=no
12538 need_version=no
12539 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12540 shlibpath_var=LD_LIBRARY_PATH
12541 shlibpath_overrides_runpath=no
12542 hardcode_into_libs=yes
12543 ;;
12544
12545 uts4*)
12546 version_type=linux # correct to gnu/linux during the next big refactor
12547 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12548 soname_spec='$libname$release$shared_ext$major'
12549 shlibpath_var=LD_LIBRARY_PATH
12550 ;;
12551
12552 emscripten*)
12553 version_type=none
12554 need_lib_prefix=no
12555 need_version=no
12556 library_names_spec='$libname$release$shared_ext'
12557 soname_spec='$libname$release$shared_ext'
12558 finish_cmds=
12559 dynamic_linker="Emscripten linker"
12560 lt_prog_compiler_wl=
12561 lt_prog_compiler_pic=
12562 lt_prog_compiler_static=
12563
12564
12565 if test yes = "$GCC"; then
12566 lt_prog_compiler_wl='-Wl,'
12567 lt_prog_compiler_static='-static'
12568
12569 case $host_os in
12570 aix*)
12571 # All AIX code is PIC.
12572 if test ia64 = "$host_cpu"; then
12573 # AIX 5 now supports IA64 processor
12574 lt_prog_compiler_static='-Bstatic'
12575 fi
12576 lt_prog_compiler_pic='-fPIC'
12577 ;;
12578
12579 amigaos*)
12580 case $host_cpu in
12581 powerpc)
12582 # see comment about AmigaOS4 .so support
12583 lt_prog_compiler_pic='-fPIC'
12584 ;;
12585 m68k)
12586 # FIXME: we need at least 68020 code to build shared libraries, but
12587 # adding the '-m68020' flag to GCC prevents building anything better,
12588 # like '-m68040'.
12589 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12590 ;;
12591 esac
12592 ;;
12593
12594 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12595 # PIC is the default for these OSes.
12596 ;;
12597
12598 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12599 # This hack is so that the source file can tell whether it is being
12600 # built for inclusion in a dll (and should export symbols for example).
12601 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12602 # (--disable-auto-import) libraries
12603 lt_prog_compiler_pic='-DDLL_EXPORT'
12604 case $host_os in
12605 os2*)
12606 lt_prog_compiler_static='$wl-static'
12607 ;;
12608 esac
12609 ;;
12610
12611 darwin* | rhapsody*)
12612 # PIC is the default on this platform
12613 # Common symbols not allowed in MH_DYLIB files
12614 lt_prog_compiler_pic='-fno-common'
12615 ;;
12616
12617 haiku*)
12618 # PIC is the default for Haiku.
12619 # The "-static" flag exists, but is broken.
12620 lt_prog_compiler_static=
12621 ;;
12622
12623 hpux*)
12624 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12625 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12626 # sets the default TLS model and affects inlining.
12627 case $host_cpu in
12628 hppa*64*)
12629 # +Z the default
12630 ;;
12631 *)
12632 lt_prog_compiler_pic='-fPIC'
12633 ;;
12634 esac
12635 ;;
12636
12637 interix[3-9]*)
12638 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12639 # Instead, we relocate shared libraries at runtime.
12640 ;;
12641
12642 msdosdjgpp*)
12643 # Just because we use GCC doesn't mean we suddenly get shared libraries
12644 # on systems that don't support them.
12645 lt_prog_compiler_can_build_shared=no
12646 enable_shared=no
12647 ;;
12648
12649 *nto* | *qnx*)
12650 # QNX uses GNU C++, but need to define -shared option too, otherwise
12651 # it will coredump.
12652 lt_prog_compiler_pic='-fPIC -shared'
12653 ;;
12654
12655 sysv4*MP*)
12656 if test -d /usr/nec; then
12657 lt_prog_compiler_pic=-Kconform_pic
12658 fi
12659 ;;
12660
12661 *)
12662 lt_prog_compiler_pic='-fPIC'
12663 ;;
12664 esac
12665
12666 case $cc_basename in
12667 nvcc*) # Cuda Compiler Driver 2.2
12668 lt_prog_compiler_wl='-Xlinker '
12669 if test -n "$lt_prog_compiler_pic"; then
12670 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12671 fi
12672 ;;
12673 esac
12674 else
12675 # PORTME Check for flag to pass linker flags through the system compiler.
12676 case $host_os in
12677 aix*)
12678 lt_prog_compiler_wl='-Wl,'
12679 if test ia64 = "$host_cpu"; then
12680 # AIX 5 now supports IA64 processor
12681 lt_prog_compiler_static='-Bstatic'
12682 else
12683 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12684 fi
12685 ;;
12686
12687 darwin* | rhapsody*)
12688 # PIC is the default on this platform
12689 # Common symbols not allowed in MH_DYLIB files
12690 lt_prog_compiler_pic='-fno-common'
12691 case $cc_basename in
12692 nagfor*)
12693 # NAG Fortran compiler
12694 lt_prog_compiler_wl='-Wl,-Wl,,'
12695 lt_prog_compiler_pic='-PIC'
12696 lt_prog_compiler_static='-Bstatic'
12697 ;;
12698 esac
12699 ;;
12700
12701 mingw* | windows* | cygwin* | pw32* | os2* | cegcc*)
12702 # This hack is so that the source file can tell whether it is being
12703 # built for inclusion in a dll (and should export symbols for example).
12704 lt_prog_compiler_pic='-DDLL_EXPORT'
12705 case $host_os in
12706 os2*)
12707 lt_prog_compiler_static='$wl-static'
12708 ;;
12709 esac
12710 ;;
12711
12712 hpux9* | hpux10* | hpux11*)
12713 lt_prog_compiler_wl='-Wl,'
12714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12715 # not for PA HP-UX.
12716 case $host_cpu in
12717 hppa*64*|ia64*)
12718 # +Z the default
12719 ;;
12720 *)
12721 lt_prog_compiler_pic='+Z'
12722 ;;
12723 esac
12724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12725 lt_prog_compiler_static='$wl-a ${wl}archive'
12726 ;;
12727
12728 irix5* | irix6* | nonstopux*)
12729 lt_prog_compiler_wl='-Wl,'
12730 # PIC (with -KPIC) is the default.
12731 lt_prog_compiler_static='-non_shared'
12732 ;;
12733
12734 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12735 case $cc_basename in
12736 # old Intel for x86_64, which still supported -KPIC.
12737 ecc*)
12738 lt_prog_compiler_wl='-Wl,'
12739 lt_prog_compiler_pic='-KPIC'
12740 lt_prog_compiler_static='-static'
12741 ;;
12742 *flang* | ftn | f18* | f95*)
12743 # Flang compiler.
12744 lt_prog_compiler_wl='-Wl,'
12745 lt_prog_compiler_pic='-fPIC'
12746 lt_prog_compiler_static='-static'
12747 ;;
12748 # icc used to be incompatible with GCC.
12749 # ICC 10 doesn't accept -KPIC any more.
12750 icc* | ifort*)
12751 lt_prog_compiler_wl='-Wl,'
12752 lt_prog_compiler_pic='-fPIC'
12753 lt_prog_compiler_static='-static'
12754 ;;
12755 # Lahey Fortran 8.1.
12756 lf95*)
12757 lt_prog_compiler_wl='-Wl,'
12758 lt_prog_compiler_pic='--shared'
12759 lt_prog_compiler_static='--static'
12760 ;;
12761 nagfor*)
12762 # NAG Fortran compiler
12763 lt_prog_compiler_wl='-Wl,-Wl,,'
12764 lt_prog_compiler_pic='-PIC'
12765 lt_prog_compiler_static='-Bstatic'
12766 ;;
12767 tcc*)
12768 # Fabrice Bellard et al's Tiny C Compiler
12769 lt_prog_compiler_wl='-Wl,'
12770 lt_prog_compiler_pic='-fPIC'
12771 lt_prog_compiler_static='-static'
12772 ;;
12773 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12774 # Portland Group compilers (*not* the Pentium gcc compiler,
12775 # which looks to be a dead project)
12776 lt_prog_compiler_wl='-Wl,'
12777 lt_prog_compiler_pic='-fpic'
12778 lt_prog_compiler_static='-Bstatic'
12779 ;;
12780 ccc*)
12781 lt_prog_compiler_wl='-Wl,'
12782 # All Alpha code is PIC.
12783 lt_prog_compiler_static='-non_shared'
12784 ;;
12785 xl* | bgxl* | bgf* | mpixl*)
12786 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12787 lt_prog_compiler_wl='-Wl,'
12788 lt_prog_compiler_pic='-qpic'
12789 lt_prog_compiler_static='-qstaticlink'
12790 ;;
12791 *)
12792 case `$CC -V 2>&1 | $SED 5q` in
12793 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12794 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12795 lt_prog_compiler_pic='-KPIC'
12796 lt_prog_compiler_static='-Bstatic'
12797 lt_prog_compiler_wl=''
12798 ;;
12799 *Sun\ F* | *Sun*Fortran*)
12800 lt_prog_compiler_pic='-KPIC'
12801 lt_prog_compiler_static='-Bstatic'
12802 lt_prog_compiler_wl='-Qoption ld '
12803 ;;
12804 *Sun\ C*)
12805 # Sun C 5.9
12806 lt_prog_compiler_pic='-KPIC'
12807 lt_prog_compiler_static='-Bstatic'
12808 lt_prog_compiler_wl='-Wl,'
12809 ;;
12810 *Intel*\ [CF]*Compiler*)
12811 lt_prog_compiler_wl='-Wl,'
12812 lt_prog_compiler_pic='-fPIC'
12813 lt_prog_compiler_static='-static'
12814 ;;
12815 *Portland\ Group*)
12816 lt_prog_compiler_wl='-Wl,'
12817 lt_prog_compiler_pic='-fpic'
12818 lt_prog_compiler_static='-Bstatic'
12819 ;;
12820 esac
12821 ;;
12822 esac
12823 ;;
12824
12825 newsos6)
12826 lt_prog_compiler_pic='-KPIC'
12827 lt_prog_compiler_static='-Bstatic'
12828 ;;
12829
12830 *-mlibc)
12831 lt_prog_compiler_wl='-Wl,'
12832 lt_prog_compiler_pic='-fPIC'
12833 lt_prog_compiler_static='-static'
12834 ;;
12835
12836 *nto* | *qnx*)
12837 # QNX uses GNU C++, but need to define -shared option too, otherwise
12838 # it will coredump.
12839 lt_prog_compiler_pic='-fPIC -shared'
12840 ;;
12841
12842 osf3* | osf4* | osf5*)
12843 lt_prog_compiler_wl='-Wl,'
12844 # All OSF/1 code is PIC.
12845 lt_prog_compiler_static='-non_shared'
12846 ;;
12847
12848 rdos*)
12849 lt_prog_compiler_static='-non_shared'
12850 ;;
12851
12852 serenity*)
12853 ;;
12854
12855 solaris*)
12856 lt_prog_compiler_pic='-KPIC'
12857 lt_prog_compiler_static='-Bstatic'
12858 case $cc_basename in
12859 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12860 lt_prog_compiler_wl='-Qoption ld ';;
12861 *)
12862 lt_prog_compiler_wl='-Wl,';;
12863 esac
12864 ;;
12865
12866 sunos4*)
12867 lt_prog_compiler_wl='-Qoption ld '
12868 lt_prog_compiler_pic='-PIC'
12869 lt_prog_compiler_static='-Bstatic'
12870 ;;
12871
12872 sysv4 | sysv4.2uw2* | sysv4.3*)
12873 lt_prog_compiler_wl='-Wl,'
12874 lt_prog_compiler_pic='-KPIC'
12875 lt_prog_compiler_static='-Bstatic'
12876 ;;
12877
12878 sysv4*MP*)
12879 if test -d /usr/nec; then
12880 lt_prog_compiler_pic='-Kconform_pic'
12881 lt_prog_compiler_static='-Bstatic'
12882 fi
12883 ;;
12884
12885 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12886 lt_prog_compiler_wl='-Wl,'
12887 lt_prog_compiler_pic='-KPIC'
12888 lt_prog_compiler_static='-Bstatic'
12889 ;;
12890
12891 unicos*)
12892 lt_prog_compiler_wl='-Wl,'
12893 lt_prog_compiler_can_build_shared=no
12894 ;;
12895
12896 uts4*)
12897 lt_prog_compiler_pic='-pic'
12898 lt_prog_compiler_static='-Bstatic'
12899 ;;
12900
12901 *)
12902 lt_prog_compiler_can_build_shared=no
12903 ;;
12904 esac
12905 fi
12906
12907 case $host_os in
12908 # For platforms that do not support PIC, -DPIC is meaningless:
12909 *djgpp*)
12910 lt_prog_compiler_pic=
12911 ;;
12912 *)
12913 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12914 ;;
12915 esac
12916
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12918 printf %s "checking for $compiler option to produce PIC... " >&6; }
12919 if test ${lt_cv_prog_compiler_pic+y}
12920 then :
12921 printf %s "(cached) " >&6
12922 else case e in #(
12923 e) lt_cv_prog_compiler_pic=$lt_prog_compiler_pic ;;
12924 esac
12925 fi
12926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12927 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12928 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12929
12930 #
12931 # Check to make sure the PIC flag actually works.
12932 #
12933 if test -n "$lt_prog_compiler_pic"; then
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12935 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12936 if test ${lt_cv_prog_compiler_pic_works+y}
12937 then :
12938 printf %s "(cached) " >&6
12939 else case e in #(
12940 e) lt_cv_prog_compiler_pic_works=no
12941 ac_outfile=conftest.$ac_objext
12942 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12943 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12944 # Insert the option either (1) after the last *FLAGS variable, or
12945 # (2) before a word containing "conftest.", or (3) at the end.
12946 # Note that $ac_compile itself does not contain backslashes and begins
12947 # with a dollar sign (not a hyphen), so the echo should work correctly.
12948 # The option is referenced via a variable to avoid confusing sed.
12949 lt_compile=`echo "$ac_compile" | $SED \
12950 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12951 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12952 -e 's:$: $lt_compiler_flag:'`
12953 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12954 (eval "$lt_compile" 2>conftest.err)
12955 ac_status=$?
12956 cat conftest.err >&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 if (exit $ac_status) && test -s "$ac_outfile"; then
12959 # The compiler can only warn and ignore the option if not recognized
12960 # So say no if there are warnings other than the usual output.
12961 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12962 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12963 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12964 lt_cv_prog_compiler_pic_works=yes
12965 fi
12966 fi
12967 $RM conftest*
12968 ;;
12969 esac
12970 fi
12971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12972 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12973
12974 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12975 case $lt_prog_compiler_pic in
12976 "" | " "*) ;;
12977 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12978 esac
12979 else
12980 lt_prog_compiler_pic=
12981 lt_prog_compiler_can_build_shared=no
12982 fi
12983
12984 fi
12985
12986
12987
12988
12989
12990 #
12991 # Check to make sure the static flag actually works.
12992 #
12993 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12995 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12996 if test ${lt_cv_prog_compiler_static_works+y}
12997 then :
12998 printf %s "(cached) " >&6
12999 else case e in #(
13000 e) lt_cv_prog_compiler_static_works=no
13001 save_LDFLAGS=$LDFLAGS
13002 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13003 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13004 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13005 # The linker can only warn and ignore the option if not recognized
13006 # So say no if there are warnings
13007 if test -s conftest.err; then
13008 # Append any errors to the config.log.
13009 cat conftest.err 1>&5
13010 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13011 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13012 if diff conftest.exp conftest.er2 >/dev/null; then
13013 lt_cv_prog_compiler_static_works=yes
13014 fi
13015 else
13016 lt_cv_prog_compiler_static_works=yes
13017 fi
13018 fi
13019 $RM -r conftest*
13020 LDFLAGS=$save_LDFLAGS
13021 ;;
13022 esac
13023 fi
13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13025 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13026
13027 if test yes = "$lt_cv_prog_compiler_static_works"; then
13028 :
13029 else
13030 lt_prog_compiler_static=
13031 fi
13032
13033
13034
13035 ='-fPIC'
13036 archive_cmds='$CC -sSIDE_MODULE=2 -shared $libobjs $deplibs $compiler_flags -o $lib'
13037 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'
13038 archive_cmds_need_lc=no
13039 no_undefined_flag=
13040 ;;
13041
13042 *)
13043 dynamic_linker=no
13044 ;;
13045 esac
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13047 printf "%s\n" "$dynamic_linker" >&6; }
13048 test no = "$dynamic_linker" && can_build_shared=no
13049
13050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13051 if test yes = "$GCC"; then
13052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13053 fi
13054
13055 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
13056 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
13057 fi
13058
13059 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
13060 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
13061 fi
13062
13063 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
13064 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
13065
13066 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
13067 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
13068
13069 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
13070 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080
13081
13082
13083
13084
13085
13086
13087
13088
13089
13090
13091
13092
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109
13110
13111
13112
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142
13143
13144
13145
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165
13166
13167
13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13169 printf %s "checking how to hardcode library paths into programs... " >&6; }
13170 hardcode_action=
13171 if test -n "$hardcode_libdir_flag_spec" ||
13172 test -n "$runpath_var" ||
13173 test yes = "$hardcode_automatic"; then
13174
13175 # We can hardcode non-existent directories.
13176 if test no != "$hardcode_direct" &&
13177 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13178 # have to relink, otherwise we might link with an installed library
13179 # when we should be linking with a yet-to-be-installed one
13180 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
13181 test no != "$hardcode_minus_L"; then
13182 # Linking always hardcodes the temporary library directory.
13183 hardcode_action=relink
13184 else
13185 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13186 hardcode_action=immediate
13187 fi
13188 else
13189 # We cannot hardcode anything, or else we can only hardcode existing
13190 # directories.
13191 hardcode_action=unsupported
13192 fi
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
13194 printf "%s\n" "$hardcode_action" >&6; }
13195
13196 if test relink = "$hardcode_action" ||
13197 test yes = "$inherit_rpath"; then
13198 # Fast installation is not supported
13199 enable_fast_install=no
13200 elif test yes = "$shlibpath_overrides_runpath" ||
13201 test no = "$enable_shared"; then
13202 # Fast installation is not necessary
13203 enable_fast_install=needless
13204 fi
13205
13206
13207
13208
13209
13210
13211 if test yes != "$enable_dlopen"; then
13212 enable_dlopen=unknown
13213 enable_dlopen_self=unknown
13214 enable_dlopen_self_static=unknown
13215 else
13216 lt_cv_dlopen=no
13217 lt_cv_dlopen_libs=
13218
13219 case $host_os in
13220 beos*)
13221 lt_cv_dlopen=load_add_on
13222 lt_cv_dlopen_libs=
13223 lt_cv_dlopen_self=yes
13224 ;;
13225
13226 mingw* | windows* | pw32* | cegcc*)
13227 lt_cv_dlopen=LoadLibrary
13228 lt_cv_dlopen_libs=
13229 ;;
13230
13231 cygwin*)
13232 lt_cv_dlopen=dlopen
13233 lt_cv_dlopen_libs=
13234 ;;
13235
13236 darwin*)
13237 # if libdl is installed we need to link against it
13238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13239 printf %s "checking for dlopen in -ldl... " >&6; }
13240 if test ${ac_cv_lib_dl_dlopen+y}
13241 then :
13242 printf %s "(cached) " >&6
13243 else case e in #(
13244 e) ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-ldl $LIBS"
13246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13247 /* end confdefs.h. */
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply.
13252 The 'extern "C"' is for builds by C++ compilers;
13253 although this is not generally supported in C code supporting it here
13254 has little cost and some practical benefit (sr 110532). */
13255 #ifdef __cplusplus
13256 extern "C"
13257 #endif
13258 char dlopen (void);
13259 int
13260 main (void)
13261 {
13262 return dlopen ();
13263 ;
13264 return 0;
13265 }
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"
13268 then :
13269 ac_cv_lib_dl_dlopen=yes
13270 else case e in #(
13271 e) ac_cv_lib_dl_dlopen=no ;;
13272 esac
13273 fi
13274 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13275 conftest$ac_exeext conftest.$ac_ext
13276 LIBS=$ac_check_lib_save_LIBS ;;
13277 esac
13278 fi
13279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13280 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13281 if test "x$ac_cv_lib_dl_dlopen" = xyes
13282 then :
13283 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13284 else case e in #(
13285 e)
13286 lt_cv_dlopen=dyld
13287 lt_cv_dlopen_libs=
13288 lt_cv_dlopen_self=yes
13289 ;;
13290 esac
13291 fi
13292
13293 ;;
13294
13295 tpf*)
13296 # Don't try to run any link tests for TPF. We know it's impossible
13297 # because TPF is a cross-compiler, and we know how we open DSOs.
13298 lt_cv_dlopen=dlopen
13299 lt_cv_dlopen_libs=
13300 lt_cv_dlopen_self=no
13301 ;;
13302
13303 *)
13304 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
13305 if test "x$ac_cv_func_shl_load" = xyes
13306 then :
13307 lt_cv_dlopen=shl_load
13308 else case e in #(
13309 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
13310 printf %s "checking for shl_load in -ldld... " >&6; }
13311 if test ${ac_cv_lib_dld_shl_load+y}
13312 then :
13313 printf %s "(cached) " >&6
13314 else case e in #(
13315 e) ac_check_lib_save_LIBS=$LIBS
13316 LIBS="-ldld $LIBS"
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319
13320 /* Override any GCC internal prototype to avoid an error.
13321 Use char because int might match the return type of a GCC
13322 builtin and then its argument prototype would still apply.
13323 The 'extern "C"' is for builds by C++ compilers;
13324 although this is not generally supported in C code supporting it here
13325 has little cost and some practical benefit (sr 110532). */
13326 #ifdef __cplusplus
13327 extern "C"
13328 #endif
13329 char shl_load (void);
13330 int
13331 main (void)
13332 {
13333 return shl_load ();
13334 ;
13335 return 0;
13336 }
13337 _ACEOF
13338 if ac_fn_c_try_link "$LINENO"
13339 then :
13340 ac_cv_lib_dld_shl_load=yes
13341 else case e in #(
13342 e) ac_cv_lib_dld_shl_load=no ;;
13343 esac
13344 fi
13345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13346 conftest$ac_exeext conftest.$ac_ext
13347 LIBS=$ac_check_lib_save_LIBS ;;
13348 esac
13349 fi
13350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
13351 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
13352 if test "x$ac_cv_lib_dld_shl_load" = xyes
13353 then :
13354 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
13355 else case e in #(
13356 e) ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13357 if test "x$ac_cv_func_dlopen" = xyes
13358 then :
13359 lt_cv_dlopen=dlopen
13360 else case e in #(
13361 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
13362 printf %s "checking for dlopen in -ldl... " >&6; }
13363 if test ${ac_cv_lib_dl_dlopen+y}
13364 then :
13365 printf %s "(cached) " >&6
13366 else case e in #(
13367 e) ac_check_lib_save_LIBS=$LIBS
13368 LIBS="-ldl $LIBS"
13369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13370 /* end confdefs.h. */
13371
13372 /* Override any GCC internal prototype to avoid an error.
13373 Use char because int might match the return type of a GCC
13374 builtin and then its argument prototype would still apply.
13375 The 'extern "C"' is for builds by C++ compilers;
13376 although this is not generally supported in C code supporting it here
13377 has little cost and some practical benefit (sr 110532). */
13378 #ifdef __cplusplus
13379 extern "C"
13380 #endif
13381 char dlopen (void);
13382 int
13383 main (void)
13384 {
13385 return dlopen ();
13386 ;
13387 return 0;
13388 }
13389 _ACEOF
13390 if ac_fn_c_try_link "$LINENO"
13391 then :
13392 ac_cv_lib_dl_dlopen=yes
13393 else case e in #(
13394 e) ac_cv_lib_dl_dlopen=no ;;
13395 esac
13396 fi
13397 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13398 conftest$ac_exeext conftest.$ac_ext
13399 LIBS=$ac_check_lib_save_LIBS ;;
13400 esac
13401 fi
13402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
13403 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
13404 if test "x$ac_cv_lib_dl_dlopen" = xyes
13405 then :
13406 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
13407 else case e in #(
13408 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
13409 printf %s "checking for dlopen in -lsvld... " >&6; }
13410 if test ${ac_cv_lib_svld_dlopen+y}
13411 then :
13412 printf %s "(cached) " >&6
13413 else case e in #(
13414 e) ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-lsvld $LIBS"
13416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13417 /* end confdefs.h. */
13418
13419 /* Override any GCC internal prototype to avoid an error.
13420 Use char because int might match the return type of a GCC
13421 builtin and then its argument prototype would still apply.
13422 The 'extern "C"' is for builds by C++ compilers;
13423 although this is not generally supported in C code supporting it here
13424 has little cost and some practical benefit (sr 110532). */
13425 #ifdef __cplusplus
13426 extern "C"
13427 #endif
13428 char dlopen (void);
13429 int
13430 main (void)
13431 {
13432 return dlopen ();
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 if ac_fn_c_try_link "$LINENO"
13438 then :
13439 ac_cv_lib_svld_dlopen=yes
13440 else case e in #(
13441 e) ac_cv_lib_svld_dlopen=no ;;
13442 esac
13443 fi
13444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13445 conftest$ac_exeext conftest.$ac_ext
13446 LIBS=$ac_check_lib_save_LIBS ;;
13447 esac
13448 fi
13449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13450 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
13451 if test "x$ac_cv_lib_svld_dlopen" = xyes
13452 then :
13453 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13454 else case e in #(
13455 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13456 printf %s "checking for dld_link in -ldld... " >&6; }
13457 if test ${ac_cv_lib_dld_dld_link+y}
13458 then :
13459 printf %s "(cached) " >&6
13460 else case e in #(
13461 e) ac_check_lib_save_LIBS=$LIBS
13462 LIBS="-ldld $LIBS"
13463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13464 /* end confdefs.h. */
13465
13466 /* Override any GCC internal prototype to avoid an error.
13467 Use char because int might match the return type of a GCC
13468 builtin and then its argument prototype would still apply.
13469 The 'extern "C"' is for builds by C++ compilers;
13470 although this is not generally supported in C code supporting it here
13471 has little cost and some practical benefit (sr 110532). */
13472 #ifdef __cplusplus
13473 extern "C"
13474 #endif
13475 char dld_link (void);
13476 int
13477 main (void)
13478 {
13479 return dld_link ();
13480 ;
13481 return 0;
13482 }
13483 _ACEOF
13484 if ac_fn_c_try_link "$LINENO"
13485 then :
13486 ac_cv_lib_dld_dld_link=yes
13487 else case e in #(
13488 e) ac_cv_lib_dld_dld_link=no ;;
13489 esac
13490 fi
13491 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS ;;
13494 esac
13495 fi
13496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13497 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
13498 if test "x$ac_cv_lib_dld_dld_link" = xyes
13499 then :
13500 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13501 fi
13502
13503 ;;
13504 esac
13505 fi
13506
13507 ;;
13508 esac
13509 fi
13510
13511 ;;
13512 esac
13513 fi
13514
13515 ;;
13516 esac
13517 fi
13518
13519 ;;
13520 esac
13521 fi
13522
13523 ;;
13524 esac
13525
13526 if test no = "$lt_cv_dlopen"; then
13527 enable_dlopen=no
13528 else
13529 enable_dlopen=yes
13530 fi
13531
13532 case $lt_cv_dlopen in
13533 dlopen)
13534 save_CPPFLAGS=$CPPFLAGS
13535 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13536
13537 save_LDFLAGS=$LDFLAGS
13538 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13539
13540 save_LIBS=$LIBS
13541 LIBS="$lt_cv_dlopen_libs $LIBS"
13542
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13544 printf %s "checking whether a program can dlopen itself... " >&6; }
13545 if test ${lt_cv_dlopen_self+y}
13546 then :
13547 printf %s "(cached) " >&6
13548 else case e in #(
13549 e) if test yes = "$cross_compiling"; then :
13550 lt_cv_dlopen_self=cross
13551 else
13552 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13553 lt_status=$lt_dlunknown
13554 cat > conftest.$ac_ext <<_LT_EOF
13555 #line $LINENO "configure"
13556 #include "confdefs.h"
13557
13558 #if HAVE_DLFCN_H
13559 #include <dlfcn.h>
13560 #endif
13561
13562 #include <stdio.h>
13563
13564 #ifdef RTLD_GLOBAL
13565 # define LT_DLGLOBAL RTLD_GLOBAL
13566 #else
13567 # ifdef DL_GLOBAL
13568 # define LT_DLGLOBAL DL_GLOBAL
13569 # else
13570 # define LT_DLGLOBAL 0
13571 # endif
13572 #endif
13573
13574 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13575 find out it does not work in some platform. */
13576 #ifndef LT_DLLAZY_OR_NOW
13577 # ifdef RTLD_LAZY
13578 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13579 # else
13580 # ifdef DL_LAZY
13581 # define LT_DLLAZY_OR_NOW DL_LAZY
13582 # else
13583 # ifdef RTLD_NOW
13584 # define LT_DLLAZY_OR_NOW RTLD_NOW
13585 # else
13586 # ifdef DL_NOW
13587 # define LT_DLLAZY_OR_NOW DL_NOW
13588 # else
13589 # define LT_DLLAZY_OR_NOW 0
13590 # endif
13591 # endif
13592 # endif
13593 # endif
13594 #endif
13595
13596 /* When -fvisibility=hidden is used, assume the code has been annotated
13597 correspondingly for the symbols needed. */
13598 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13599 int fnord (void) __attribute__((visibility("default")));
13600 #endif
13601
13602 int fnord (void) { return 42; }
13603 int main (void)
13604 {
13605 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13606 int status = $lt_dlunknown;
13607
13608 if (self)
13609 {
13610 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13611 else
13612 {
13613 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13614 else puts (dlerror ());
13615 }
13616 /* dlclose (self); */
13617 }
13618 else
13619 puts (dlerror ());
13620
13621 return status;
13622 }
13623 _LT_EOF
13624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13625 (eval $ac_link) 2>&5
13626 ac_status=$?
13627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13628 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13629 (./conftest; exit; ) >&5 2>/dev/null
13630 lt_status=$?
13631 case x$lt_status in
13632 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13633 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13634 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13635 esac
13636 else :
13637 # compilation failed
13638 lt_cv_dlopen_self=no
13639 fi
13640 fi
13641 rm -fr conftest*
13642
13643 ;;
13644 esac
13645 fi
13646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13647 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
13648
13649 if test yes = "$lt_cv_dlopen_self"; then
13650 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13652 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
13653 if test ${lt_cv_dlopen_self_static+y}
13654 then :
13655 printf %s "(cached) " >&6
13656 else case e in #(
13657 e) if test yes = "$cross_compiling"; then :
13658 lt_cv_dlopen_self_static=cross
13659 else
13660 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13661 lt_status=$lt_dlunknown
13662 cat > conftest.$ac_ext <<_LT_EOF
13663 #line $LINENO "configure"
13664 #include "confdefs.h"
13665
13666 #if HAVE_DLFCN_H
13667 #include <dlfcn.h>
13668 #endif
13669
13670 #include <stdio.h>
13671
13672 #ifdef RTLD_GLOBAL
13673 # define LT_DLGLOBAL RTLD_GLOBAL
13674 #else
13675 # ifdef DL_GLOBAL
13676 # define LT_DLGLOBAL DL_GLOBAL
13677 # else
13678 # define LT_DLGLOBAL 0
13679 # endif
13680 #endif
13681
13682 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13683 find out it does not work in some platform. */
13684 #ifndef LT_DLLAZY_OR_NOW
13685 # ifdef RTLD_LAZY
13686 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13687 # else
13688 # ifdef DL_LAZY
13689 # define LT_DLLAZY_OR_NOW DL_LAZY
13690 # else
13691 # ifdef RTLD_NOW
13692 # define LT_DLLAZY_OR_NOW RTLD_NOW
13693 # else
13694 # ifdef DL_NOW
13695 # define LT_DLLAZY_OR_NOW DL_NOW
13696 # else
13697 # define LT_DLLAZY_OR_NOW 0
13698 # endif
13699 # endif
13700 # endif
13701 # endif
13702 #endif
13703
13704 /* When -fvisibility=hidden is used, assume the code has been annotated
13705 correspondingly for the symbols needed. */
13706 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13707 int fnord (void) __attribute__((visibility("default")));
13708 #endif
13709
13710 int fnord (void) { return 42; }
13711 int main (void)
13712 {
13713 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13714 int status = $lt_dlunknown;
13715
13716 if (self)
13717 {
13718 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13719 else
13720 {
13721 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13722 else puts (dlerror ());
13723 }
13724 /* dlclose (self); */
13725 }
13726 else
13727 puts (dlerror ());
13728
13729 return status;
13730 }
13731 _LT_EOF
13732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13733 (eval $ac_link) 2>&5
13734 ac_status=$?
13735 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13736 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13737 (./conftest; exit; ) >&5 2>/dev/null
13738 lt_status=$?
13739 case x$lt_status in
13740 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13741 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13742 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13743 esac
13744 else :
13745 # compilation failed
13746 lt_cv_dlopen_self_static=no
13747 fi
13748 fi
13749 rm -fr conftest*
13750
13751 ;;
13752 esac
13753 fi
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13755 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
13756 fi
13757
13758 CPPFLAGS=$save_CPPFLAGS
13759 LDFLAGS=$save_LDFLAGS
13760 LIBS=$save_LIBS
13761 ;;
13762 esac
13763
13764 case $lt_cv_dlopen_self in
13765 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13766 *) enable_dlopen_self=unknown ;;
13767 esac
13768
13769 case $lt_cv_dlopen_self_static in
13770 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13771 *) enable_dlopen_self_static=unknown ;;
13772 esac
13773 fi
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790
13791 striplib=
13792 old_striplib=
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13794 printf %s "checking whether stripping libraries is possible... " >&6; }
13795 if test -z "$STRIP"; then
13796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13797 printf "%s\n" "no" >&6; }
13798 else
13799 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13800 old_striplib="$STRIP --strip-debug"
13801 striplib="$STRIP --strip-unneeded"
13802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13803 printf "%s\n" "yes" >&6; }
13804 else
13805 case $host_os in
13806 darwin*)
13807 # FIXME - insert some real tests, host_os isn't really good enough
13808 striplib="$STRIP -x"
13809 old_striplib="$STRIP -S"
13810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13811 printf "%s\n" "yes" >&6; }
13812 ;;
13813 freebsd*)
13814 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
13815 old_striplib="$STRIP --strip-debug"
13816 striplib="$STRIP --strip-unneeded"
13817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13818 printf "%s\n" "yes" >&6; }
13819 else
13820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13821 printf "%s\n" "no" >&6; }
13822 fi
13823 ;;
13824 *)
13825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13826 printf "%s\n" "no" >&6; }
13827 ;;
13828 esac
13829 fi
13830 fi
13831
13832
13833
13834
13835
13836
13837
13838
13839
13840
13841
13842
13843 # Report what library types will actually be built
13844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13845 printf %s "checking if libtool supports shared libraries... " >&6; }
13846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13847 printf "%s\n" "$can_build_shared" >&6; }
13848
13849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13850 printf %s "checking whether to build shared libraries... " >&6; }
13851 test no = "$can_build_shared" && enable_shared=no
13852
13853 # On AIX, shared libraries and static libraries use the same namespace, and
13854 # are all built from PIC.
13855 case $host_os in
13856 aix3*)
13857 test yes = "$enable_shared" && enable_static=no
13858 if test -n "$RANLIB"; then
13859 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13860 postinstall_cmds='$RANLIB $lib'
13861 fi
13862 ;;
13863
13864 aix[4-9]*)
13865 if test ia64 != "$host_cpu"; then
13866 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13867 yes,aix,yes) ;; # shared object as lib.so file only
13868 yes,svr4,*) ;; # shared object as lib.so archive member only
13869 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13870 esac
13871 fi
13872 ;;
13873 esac
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13875 printf "%s\n" "$enable_shared" >&6; }
13876
13877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13878 printf %s "checking whether to build static libraries... " >&6; }
13879 # Make sure either enable_shared or enable_static is yes.
13880 test yes = "$enable_shared" || enable_static=yes
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13882 printf "%s\n" "$enable_static" >&6; }
13883
13884
13885
13886
13887 fi
13888 ac_ext=c
13889 ac_cpp='$CPP $CPPFLAGS'
13890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13893
13894 CC=$lt_save_CC
13895
13896
13897
13898
13899
13900
13901
13902
13903
13904
13905
13906
13907
13908
13909
13910 ac_config_commands="$ac_config_commands libtool"
13911
13912
13913
13914
13915 # Only expand once:
13916
13917
13918
13919 # Require X.Org macros 1.8 or later
13920
13921
13922
13923
13924
13925
13926
13927
13928
13929
13930
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13932 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13933 if test ${ac_cv_c_undeclared_builtin_options+y}
13934 then :
13935 printf %s "(cached) " >&6
13936 else case e in #(
13937 e) ac_save_CFLAGS=$CFLAGS
13938 ac_cv_c_undeclared_builtin_options='cannot detect'
13939 for ac_arg in '' -fno-builtin; do
13940 CFLAGS="$ac_save_CFLAGS $ac_arg"
13941 # This test program should *not* compile successfully.
13942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13943 /* end confdefs.h. */
13944
13945 int
13946 main (void)
13947 {
13948 (void) strchr;
13949 ;
13950 return 0;
13951 }
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"
13954 then :
13955
13956 else case e in #(
13957 e) # This test program should compile successfully.
13958 # No library function is consistently available on
13959 # freestanding implementations, so test against a dummy
13960 # declaration. Include always-available headers on the
13961 # off chance that they somehow elicit warnings.
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 #include <float.h>
13965 #include <limits.h>
13966 #include <stdarg.h>
13967 #include <stddef.h>
13968 extern void ac_decl (int, char *);
13969
13970 int
13971 main (void)
13972 {
13973 (void) ac_decl (0, (char *) 0);
13974 (void) ac_decl;
13975
13976 ;
13977 return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"
13981 then :
13982 if test x"$ac_arg" = x
13983 then :
13984 ac_cv_c_undeclared_builtin_options='none needed'
13985 else case e in #(
13986 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
13987 esac
13988 fi
13989 break
13990 fi
13991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13992 esac
13993 fi
13994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13995 done
13996 CFLAGS=$ac_save_CFLAGS
13997 ;;
13998 esac
13999 fi
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
14001 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
14002 case $ac_cv_c_undeclared_builtin_options in #(
14003 'cannot detect') :
14004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14005 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
14006 as_fn_error $? "cannot make $CC report undeclared builtins
14007 See 'config.log' for more details" "$LINENO" 5; } ;; #(
14008 'none needed') :
14009 ac_c_undeclared_builtin_options='' ;; #(
14010 *) :
14011 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
14012 esac
14013
14014
14015
14016
14017
14018 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14019 if test "x$ac_cv_have_decl___clang__" = xyes
14020 then :
14021 CLANGCC="yes"
14022 else case e in #(
14023 e) CLANGCC="no" ;;
14024 esac
14025 fi
14026 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14027 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
14028 then :
14029 INTELCC="yes"
14030 else case e in #(
14031 e) INTELCC="no" ;;
14032 esac
14033 fi
14034 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14035 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
14036 then :
14037 SUNCC="yes"
14038 else case e in #(
14039 e) SUNCC="no" ;;
14040 esac
14041 fi
14042
14043
14044
14045
14046
14047
14048
14049
14050 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14051 if test -n "$ac_tool_prefix"; then
14052 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14053 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
14054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14055 printf %s "checking for $ac_word... " >&6; }
14056 if test ${ac_cv_path_PKG_CONFIG+y}
14057 then :
14058 printf %s "(cached) " >&6
14059 else case e in #(
14060 e) case $PKG_CONFIG in
14061 [\\/]* | ?:[\\/]*)
14062 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14063 ;;
14064 *)
14065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14066 for as_dir in $PATH
14067 do
14068 IFS=$as_save_IFS
14069 case $as_dir in #(((
14070 '') as_dir=./ ;;
14071 */) ;;
14072 *) as_dir=$as_dir/ ;;
14073 esac
14074 for ac_exec_ext in '' $ac_executable_extensions; do
14075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14076 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14078 break 2
14079 fi
14080 done
14081 done
14082 IFS=$as_save_IFS
14083
14084 ;;
14085 esac ;;
14086 esac
14087 fi
14088 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14089 if test -n "$PKG_CONFIG"; then
14090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14091 printf "%s\n" "$PKG_CONFIG" >&6; }
14092 else
14093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14094 printf "%s\n" "no" >&6; }
14095 fi
14096
14097
14098 fi
14099 if test -z "$ac_cv_path_PKG_CONFIG"; then
14100 ac_pt_PKG_CONFIG=$PKG_CONFIG
14101 # Extract the first word of "pkg-config", so it can be a program name with args.
14102 set dummy pkg-config; ac_word=$2
14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14104 printf %s "checking for $ac_word... " >&6; }
14105 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
14106 then :
14107 printf %s "(cached) " >&6
14108 else case e in #(
14109 e) case $ac_pt_PKG_CONFIG in
14110 [\\/]* | ?:[\\/]*)
14111 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14112 ;;
14113 *)
14114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14115 for as_dir in $PATH
14116 do
14117 IFS=$as_save_IFS
14118 case $as_dir in #(((
14119 '') as_dir=./ ;;
14120 */) ;;
14121 *) as_dir=$as_dir/ ;;
14122 esac
14123 for ac_exec_ext in '' $ac_executable_extensions; do
14124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14125 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
14126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14127 break 2
14128 fi
14129 done
14130 done
14131 IFS=$as_save_IFS
14132
14133 ;;
14134 esac ;;
14135 esac
14136 fi
14137 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
14138 if test -n "$ac_pt_PKG_CONFIG"; then
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14140 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
14141 else
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143 printf "%s\n" "no" >&6; }
14144 fi
14145
14146 if test "x$ac_pt_PKG_CONFIG" = x; then
14147 PKG_CONFIG=""
14148 else
14149 case $cross_compiling:$ac_tool_warned in
14150 yes:)
14151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14152 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14153 ac_tool_warned=yes ;;
14154 esac
14155 PKG_CONFIG=$ac_pt_PKG_CONFIG
14156 fi
14157 else
14158 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
14159 fi
14160
14161 fi
14162 if test -n "$PKG_CONFIG"; then
14163 _pkg_min_version=0.9.0
14164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14165 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14166 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14168 printf "%s\n" "yes" >&6; }
14169 else
14170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14171 printf "%s\n" "no" >&6; }
14172 PKG_CONFIG=""
14173 fi
14174 fi
14175
14176
14177
14178
14179
14180 # Check whether --enable-selective-werror was given.
14181 if test ${enable_selective_werror+y}
14182 then :
14183 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
14184 else case e in #(
14185 e) SELECTIVE_WERROR=yes ;;
14186 esac
14187 fi
14188
14189
14190
14191
14192
14193 # -v is too short to test reliably with XORG_TESTSET_CFLAG
14194 if test "x$SUNCC" = "xyes"; then
14195 BASE_CFLAGS="-v"
14196 else
14197 BASE_CFLAGS=""
14198 fi
14199
14200 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
14201
14202
14203
14204
14205
14206
14207
14208
14209
14210
14211
14212
14213
14214 xorg_testset_save_CFLAGS="$CFLAGS"
14215
14216 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14219 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14220 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14221 then :
14222 printf %s "(cached) " >&6
14223 else case e in #(
14224 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14225 /* end confdefs.h. */
14226 int i;
14227 _ACEOF
14228 if ac_fn_c_try_compile "$LINENO"
14229 then :
14230 xorg_cv_cc_flag_unknown_warning_option=yes
14231 else case e in #(
14232 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14233 esac
14234 fi
14235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14236 esac
14237 fi
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14239 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14240 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14241 CFLAGS="$xorg_testset_save_CFLAGS"
14242 fi
14243
14244 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247 fi
14248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14250 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14251 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14252 then :
14253 printf %s "(cached) " >&6
14254 else case e in #(
14255 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14256 /* end confdefs.h. */
14257 int i;
14258 _ACEOF
14259 if ac_fn_c_try_compile "$LINENO"
14260 then :
14261 xorg_cv_cc_flag_unused_command_line_argument=yes
14262 else case e in #(
14263 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14264 esac
14265 fi
14266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14267 esac
14268 fi
14269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14272 CFLAGS="$xorg_testset_save_CFLAGS"
14273 fi
14274
14275 found="no"
14276
14277 if test $found = "no" ; then
14278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14280 fi
14281
14282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14284 fi
14285
14286 CFLAGS="$CFLAGS -Wall"
14287
14288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
14289 printf %s "checking if $CC supports -Wall... " >&6; }
14290 cacheid=xorg_cv_cc_flag__Wall
14291 if eval test \${$cacheid+y}
14292 then :
14293 printf %s "(cached) " >&6
14294 else case e in #(
14295 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296 /* end confdefs.h. */
14297 int i;
14298 int
14299 main (void)
14300 {
14301
14302 ;
14303 return 0;
14304 }
14305 _ACEOF
14306 if ac_fn_c_try_link "$LINENO"
14307 then :
14308 eval $cacheid=yes
14309 else case e in #(
14310 e) eval $cacheid=no ;;
14311 esac
14312 fi
14313 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14314 conftest$ac_exeext conftest.$ac_ext ;;
14315 esac
14316 fi
14317
14318
14319 CFLAGS="$xorg_testset_save_CFLAGS"
14320
14321 eval supported=\$$cacheid
14322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14323 printf "%s\n" "$supported" >&6; }
14324 if test "$supported" = "yes" ; then
14325 BASE_CFLAGS="$BASE_CFLAGS -Wall"
14326 found="yes"
14327 fi
14328 fi
14329
14330
14331
14332
14333
14334
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344 xorg_testset_save_CFLAGS="$CFLAGS"
14345
14346 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14349 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14350 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14351 then :
14352 printf %s "(cached) " >&6
14353 else case e in #(
14354 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14356 int i;
14357 _ACEOF
14358 if ac_fn_c_try_compile "$LINENO"
14359 then :
14360 xorg_cv_cc_flag_unknown_warning_option=yes
14361 else case e in #(
14362 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14363 esac
14364 fi
14365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14366 esac
14367 fi
14368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14369 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14370 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14372 fi
14373
14374 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377 fi
14378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14380 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14381 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14382 then :
14383 printf %s "(cached) " >&6
14384 else case e in #(
14385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14386 /* end confdefs.h. */
14387 int i;
14388 _ACEOF
14389 if ac_fn_c_try_compile "$LINENO"
14390 then :
14391 xorg_cv_cc_flag_unused_command_line_argument=yes
14392 else case e in #(
14393 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14394 esac
14395 fi
14396 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14397 esac
14398 fi
14399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14400 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14401 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14402 CFLAGS="$xorg_testset_save_CFLAGS"
14403 fi
14404
14405 found="no"
14406
14407 if test $found = "no" ; then
14408 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14409 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14410 fi
14411
14412 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14413 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14414 fi
14415
14416 CFLAGS="$CFLAGS -Wpointer-arith"
14417
14418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
14419 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
14420 cacheid=xorg_cv_cc_flag__Wpointer_arith
14421 if eval test \${$cacheid+y}
14422 then :
14423 printf %s "(cached) " >&6
14424 else case e in #(
14425 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14426 /* end confdefs.h. */
14427 int i;
14428 int
14429 main (void)
14430 {
14431
14432 ;
14433 return 0;
14434 }
14435 _ACEOF
14436 if ac_fn_c_try_link "$LINENO"
14437 then :
14438 eval $cacheid=yes
14439 else case e in #(
14440 e) eval $cacheid=no ;;
14441 esac
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14444 conftest$ac_exeext conftest.$ac_ext ;;
14445 esac
14446 fi
14447
14448
14449 CFLAGS="$xorg_testset_save_CFLAGS"
14450
14451 eval supported=\$$cacheid
14452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14453 printf "%s\n" "$supported" >&6; }
14454 if test "$supported" = "yes" ; then
14455 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
14456 found="yes"
14457 fi
14458 fi
14459
14460
14461
14462
14463
14464
14465
14466
14467
14468
14469
14470
14471
14472
14473
14474 xorg_testset_save_CFLAGS="$CFLAGS"
14475
14476 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14477 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14479 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14480 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14481 then :
14482 printf %s "(cached) " >&6
14483 else case e in #(
14484 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14485 /* end confdefs.h. */
14486 int i;
14487 _ACEOF
14488 if ac_fn_c_try_compile "$LINENO"
14489 then :
14490 xorg_cv_cc_flag_unknown_warning_option=yes
14491 else case e in #(
14492 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14493 esac
14494 fi
14495 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14496 esac
14497 fi
14498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14499 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14500 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14501 CFLAGS="$xorg_testset_save_CFLAGS"
14502 fi
14503
14504 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14507 fi
14508 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14510 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14511 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14512 then :
14513 printf %s "(cached) " >&6
14514 else case e in #(
14515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14516 /* end confdefs.h. */
14517 int i;
14518 _ACEOF
14519 if ac_fn_c_try_compile "$LINENO"
14520 then :
14521 xorg_cv_cc_flag_unused_command_line_argument=yes
14522 else case e in #(
14523 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14524 esac
14525 fi
14526 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14527 esac
14528 fi
14529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14530 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14531 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14533 fi
14534
14535 found="no"
14536
14537 if test $found = "no" ; then
14538 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14539 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14540 fi
14541
14542 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14543 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14544 fi
14545
14546 CFLAGS="$CFLAGS -Wmissing-declarations"
14547
14548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
14549 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
14550 cacheid=xorg_cv_cc_flag__Wmissing_declarations
14551 if eval test \${$cacheid+y}
14552 then :
14553 printf %s "(cached) " >&6
14554 else case e in #(
14555 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557 int i;
14558 int
14559 main (void)
14560 {
14561
14562 ;
14563 return 0;
14564 }
14565 _ACEOF
14566 if ac_fn_c_try_link "$LINENO"
14567 then :
14568 eval $cacheid=yes
14569 else case e in #(
14570 e) eval $cacheid=no ;;
14571 esac
14572 fi
14573 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14574 conftest$ac_exeext conftest.$ac_ext ;;
14575 esac
14576 fi
14577
14578
14579 CFLAGS="$xorg_testset_save_CFLAGS"
14580
14581 eval supported=\$$cacheid
14582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14583 printf "%s\n" "$supported" >&6; }
14584 if test "$supported" = "yes" ; then
14585 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
14586 found="yes"
14587 fi
14588 fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604 xorg_testset_save_CFLAGS="$CFLAGS"
14605
14606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14609 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14610 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14611 then :
14612 printf %s "(cached) " >&6
14613 else case e in #(
14614 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14615 /* end confdefs.h. */
14616 int i;
14617 _ACEOF
14618 if ac_fn_c_try_compile "$LINENO"
14619 then :
14620 xorg_cv_cc_flag_unknown_warning_option=yes
14621 else case e in #(
14622 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14623 esac
14624 fi
14625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14626 esac
14627 fi
14628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14629 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14630 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14631 CFLAGS="$xorg_testset_save_CFLAGS"
14632 fi
14633
14634 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14635 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14636 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14637 fi
14638 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14640 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14641 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14642 then :
14643 printf %s "(cached) " >&6
14644 else case e in #(
14645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14647 int i;
14648 _ACEOF
14649 if ac_fn_c_try_compile "$LINENO"
14650 then :
14651 xorg_cv_cc_flag_unused_command_line_argument=yes
14652 else case e in #(
14653 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14654 esac
14655 fi
14656 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14657 esac
14658 fi
14659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14660 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14661 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14662 CFLAGS="$xorg_testset_save_CFLAGS"
14663 fi
14664
14665 found="no"
14666
14667 if test $found = "no" ; then
14668 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14669 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14670 fi
14671
14672 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14673 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14674 fi
14675
14676 CFLAGS="$CFLAGS -Wformat=2"
14677
14678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
14679 printf %s "checking if $CC supports -Wformat=2... " >&6; }
14680 cacheid=xorg_cv_cc_flag__Wformat_2
14681 if eval test \${$cacheid+y}
14682 then :
14683 printf %s "(cached) " >&6
14684 else case e in #(
14685 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14686 /* end confdefs.h. */
14687 int i;
14688 int
14689 main (void)
14690 {
14691
14692 ;
14693 return 0;
14694 }
14695 _ACEOF
14696 if ac_fn_c_try_link "$LINENO"
14697 then :
14698 eval $cacheid=yes
14699 else case e in #(
14700 e) eval $cacheid=no ;;
14701 esac
14702 fi
14703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14704 conftest$ac_exeext conftest.$ac_ext ;;
14705 esac
14706 fi
14707
14708
14709 CFLAGS="$xorg_testset_save_CFLAGS"
14710
14711 eval supported=\$$cacheid
14712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14713 printf "%s\n" "$supported" >&6; }
14714 if test "$supported" = "yes" ; then
14715 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
14716 found="yes"
14717 fi
14718 fi
14719
14720 if test $found = "no" ; then
14721 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14722 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14723 fi
14724
14725 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14726 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14727 fi
14728
14729 CFLAGS="$CFLAGS -Wformat"
14730
14731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
14732 printf %s "checking if $CC supports -Wformat... " >&6; }
14733 cacheid=xorg_cv_cc_flag__Wformat
14734 if eval test \${$cacheid+y}
14735 then :
14736 printf %s "(cached) " >&6
14737 else case e in #(
14738 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14740 int i;
14741 int
14742 main (void)
14743 {
14744
14745 ;
14746 return 0;
14747 }
14748 _ACEOF
14749 if ac_fn_c_try_link "$LINENO"
14750 then :
14751 eval $cacheid=yes
14752 else case e in #(
14753 e) eval $cacheid=no ;;
14754 esac
14755 fi
14756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14757 conftest$ac_exeext conftest.$ac_ext ;;
14758 esac
14759 fi
14760
14761
14762 CFLAGS="$xorg_testset_save_CFLAGS"
14763
14764 eval supported=\$$cacheid
14765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14766 printf "%s\n" "$supported" >&6; }
14767 if test "$supported" = "yes" ; then
14768 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
14769 found="yes"
14770 fi
14771 fi
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789 xorg_testset_save_CFLAGS="$CFLAGS"
14790
14791 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14792 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14794 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14795 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14796 then :
14797 printf %s "(cached) " >&6
14798 else case e in #(
14799 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14800 /* end confdefs.h. */
14801 int i;
14802 _ACEOF
14803 if ac_fn_c_try_compile "$LINENO"
14804 then :
14805 xorg_cv_cc_flag_unknown_warning_option=yes
14806 else case e in #(
14807 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14808 esac
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14811 esac
14812 fi
14813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14814 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14815 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14816 CFLAGS="$xorg_testset_save_CFLAGS"
14817 fi
14818
14819 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14822 fi
14823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14825 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14826 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14827 then :
14828 printf %s "(cached) " >&6
14829 else case e in #(
14830 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 int i;
14833 _ACEOF
14834 if ac_fn_c_try_compile "$LINENO"
14835 then :
14836 xorg_cv_cc_flag_unused_command_line_argument=yes
14837 else case e in #(
14838 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14839 esac
14840 fi
14841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14842 esac
14843 fi
14844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14847 CFLAGS="$xorg_testset_save_CFLAGS"
14848 fi
14849
14850 found="no"
14851
14852 if test $found = "no" ; then
14853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14855 fi
14856
14857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14859 fi
14860
14861 CFLAGS="$CFLAGS -Wstrict-prototypes"
14862
14863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
14864 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
14865 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
14866 if eval test \${$cacheid+y}
14867 then :
14868 printf %s "(cached) " >&6
14869 else case e in #(
14870 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14871 /* end confdefs.h. */
14872 int i;
14873 int
14874 main (void)
14875 {
14876
14877 ;
14878 return 0;
14879 }
14880 _ACEOF
14881 if ac_fn_c_try_link "$LINENO"
14882 then :
14883 eval $cacheid=yes
14884 else case e in #(
14885 e) eval $cacheid=no ;;
14886 esac
14887 fi
14888 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14889 conftest$ac_exeext conftest.$ac_ext ;;
14890 esac
14891 fi
14892
14893
14894 CFLAGS="$xorg_testset_save_CFLAGS"
14895
14896 eval supported=\$$cacheid
14897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14898 printf "%s\n" "$supported" >&6; }
14899 if test "$supported" = "yes" ; then
14900 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14901 found="yes"
14902 fi
14903 fi
14904
14905
14906
14907
14908
14909
14910
14911
14912
14913
14914
14915
14916
14917
14918
14919 xorg_testset_save_CFLAGS="$CFLAGS"
14920
14921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14926 then :
14927 printf %s "(cached) " >&6
14928 else case e in #(
14929 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14930 /* end confdefs.h. */
14931 int i;
14932 _ACEOF
14933 if ac_fn_c_try_compile "$LINENO"
14934 then :
14935 xorg_cv_cc_flag_unknown_warning_option=yes
14936 else case e in #(
14937 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
14938 esac
14939 fi
14940 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14941 esac
14942 fi
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14944 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14945 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14946 CFLAGS="$xorg_testset_save_CFLAGS"
14947 fi
14948
14949 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14952 fi
14953 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14955 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14956 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14957 then :
14958 printf %s "(cached) " >&6
14959 else case e in #(
14960 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14961 /* end confdefs.h. */
14962 int i;
14963 _ACEOF
14964 if ac_fn_c_try_compile "$LINENO"
14965 then :
14966 xorg_cv_cc_flag_unused_command_line_argument=yes
14967 else case e in #(
14968 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
14969 esac
14970 fi
14971 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14972 esac
14973 fi
14974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14975 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14976 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14977 CFLAGS="$xorg_testset_save_CFLAGS"
14978 fi
14979
14980 found="no"
14981
14982 if test $found = "no" ; then
14983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14985 fi
14986
14987 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14989 fi
14990
14991 CFLAGS="$CFLAGS -Wmissing-prototypes"
14992
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14994 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14995 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14996 if eval test \${$cacheid+y}
14997 then :
14998 printf %s "(cached) " >&6
14999 else case e in #(
15000 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15001 /* end confdefs.h. */
15002 int i;
15003 int
15004 main (void)
15005 {
15006
15007 ;
15008 return 0;
15009 }
15010 _ACEOF
15011 if ac_fn_c_try_link "$LINENO"
15012 then :
15013 eval $cacheid=yes
15014 else case e in #(
15015 e) eval $cacheid=no ;;
15016 esac
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15019 conftest$ac_exeext conftest.$ac_ext ;;
15020 esac
15021 fi
15022
15023
15024 CFLAGS="$xorg_testset_save_CFLAGS"
15025
15026 eval supported=\$$cacheid
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15028 printf "%s\n" "$supported" >&6; }
15029 if test "$supported" = "yes" ; then
15030 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
15031 found="yes"
15032 fi
15033 fi
15034
15035
15036
15037
15038
15039
15040
15041
15042
15043
15044
15045
15046
15047
15048
15049 xorg_testset_save_CFLAGS="$CFLAGS"
15050
15051 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15054 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15055 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15056 then :
15057 printf %s "(cached) " >&6
15058 else case e in #(
15059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15060 /* end confdefs.h. */
15061 int i;
15062 _ACEOF
15063 if ac_fn_c_try_compile "$LINENO"
15064 then :
15065 xorg_cv_cc_flag_unknown_warning_option=yes
15066 else case e in #(
15067 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15068 esac
15069 fi
15070 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15071 esac
15072 fi
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15074 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15075 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15076 CFLAGS="$xorg_testset_save_CFLAGS"
15077 fi
15078
15079 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082 fi
15083 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15085 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15086 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15087 then :
15088 printf %s "(cached) " >&6
15089 else case e in #(
15090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 int i;
15093 _ACEOF
15094 if ac_fn_c_try_compile "$LINENO"
15095 then :
15096 xorg_cv_cc_flag_unused_command_line_argument=yes
15097 else case e in #(
15098 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15099 esac
15100 fi
15101 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15102 esac
15103 fi
15104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15105 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15106 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15107 CFLAGS="$xorg_testset_save_CFLAGS"
15108 fi
15109
15110 found="no"
15111
15112 if test $found = "no" ; then
15113 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15114 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15115 fi
15116
15117 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15119 fi
15120
15121 CFLAGS="$CFLAGS -Wnested-externs"
15122
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
15124 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
15125 cacheid=xorg_cv_cc_flag__Wnested_externs
15126 if eval test \${$cacheid+y}
15127 then :
15128 printf %s "(cached) " >&6
15129 else case e in #(
15130 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15131 /* end confdefs.h. */
15132 int i;
15133 int
15134 main (void)
15135 {
15136
15137 ;
15138 return 0;
15139 }
15140 _ACEOF
15141 if ac_fn_c_try_link "$LINENO"
15142 then :
15143 eval $cacheid=yes
15144 else case e in #(
15145 e) eval $cacheid=no ;;
15146 esac
15147 fi
15148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15149 conftest$ac_exeext conftest.$ac_ext ;;
15150 esac
15151 fi
15152
15153
15154 CFLAGS="$xorg_testset_save_CFLAGS"
15155
15156 eval supported=\$$cacheid
15157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15158 printf "%s\n" "$supported" >&6; }
15159 if test "$supported" = "yes" ; then
15160 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
15161 found="yes"
15162 fi
15163 fi
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179 xorg_testset_save_CFLAGS="$CFLAGS"
15180
15181 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15184 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15185 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15186 then :
15187 printf %s "(cached) " >&6
15188 else case e in #(
15189 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15191 int i;
15192 _ACEOF
15193 if ac_fn_c_try_compile "$LINENO"
15194 then :
15195 xorg_cv_cc_flag_unknown_warning_option=yes
15196 else case e in #(
15197 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15198 esac
15199 fi
15200 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15201 esac
15202 fi
15203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15204 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15206 CFLAGS="$xorg_testset_save_CFLAGS"
15207 fi
15208
15209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15212 fi
15213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15215 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15216 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15217 then :
15218 printf %s "(cached) " >&6
15219 else case e in #(
15220 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 int i;
15223 _ACEOF
15224 if ac_fn_c_try_compile "$LINENO"
15225 then :
15226 xorg_cv_cc_flag_unused_command_line_argument=yes
15227 else case e in #(
15228 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15229 esac
15230 fi
15231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15232 esac
15233 fi
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15235 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15236 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15237 CFLAGS="$xorg_testset_save_CFLAGS"
15238 fi
15239
15240 found="no"
15241
15242 if test $found = "no" ; then
15243 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15244 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15245 fi
15246
15247 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15248 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15249 fi
15250
15251 CFLAGS="$CFLAGS -Wbad-function-cast"
15252
15253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
15254 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
15255 cacheid=xorg_cv_cc_flag__Wbad_function_cast
15256 if eval test \${$cacheid+y}
15257 then :
15258 printf %s "(cached) " >&6
15259 else case e in #(
15260 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15261 /* end confdefs.h. */
15262 int i;
15263 int
15264 main (void)
15265 {
15266
15267 ;
15268 return 0;
15269 }
15270 _ACEOF
15271 if ac_fn_c_try_link "$LINENO"
15272 then :
15273 eval $cacheid=yes
15274 else case e in #(
15275 e) eval $cacheid=no ;;
15276 esac
15277 fi
15278 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15279 conftest$ac_exeext conftest.$ac_ext ;;
15280 esac
15281 fi
15282
15283
15284 CFLAGS="$xorg_testset_save_CFLAGS"
15285
15286 eval supported=\$$cacheid
15287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15288 printf "%s\n" "$supported" >&6; }
15289 if test "$supported" = "yes" ; then
15290 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
15291 found="yes"
15292 fi
15293 fi
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303
15304
15305
15306
15307
15308
15309 xorg_testset_save_CFLAGS="$CFLAGS"
15310
15311 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15312 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15314 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15315 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15316 then :
15317 printf %s "(cached) " >&6
15318 else case e in #(
15319 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15320 /* end confdefs.h. */
15321 int i;
15322 _ACEOF
15323 if ac_fn_c_try_compile "$LINENO"
15324 then :
15325 xorg_cv_cc_flag_unknown_warning_option=yes
15326 else case e in #(
15327 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15328 esac
15329 fi
15330 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15331 esac
15332 fi
15333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15334 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15335 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15336 CFLAGS="$xorg_testset_save_CFLAGS"
15337 fi
15338
15339 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15342 fi
15343 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15345 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15346 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15347 then :
15348 printf %s "(cached) " >&6
15349 else case e in #(
15350 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15351 /* end confdefs.h. */
15352 int i;
15353 _ACEOF
15354 if ac_fn_c_try_compile "$LINENO"
15355 then :
15356 xorg_cv_cc_flag_unused_command_line_argument=yes
15357 else case e in #(
15358 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15359 esac
15360 fi
15361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15362 esac
15363 fi
15364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15365 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15366 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15367 CFLAGS="$xorg_testset_save_CFLAGS"
15368 fi
15369
15370 found="no"
15371
15372 if test $found = "no" ; then
15373 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15374 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15375 fi
15376
15377 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15378 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15379 fi
15380
15381 CFLAGS="$CFLAGS -Wold-style-definition"
15382
15383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
15384 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
15385 cacheid=xorg_cv_cc_flag__Wold_style_definition
15386 if eval test \${$cacheid+y}
15387 then :
15388 printf %s "(cached) " >&6
15389 else case e in #(
15390 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15391 /* end confdefs.h. */
15392 int i;
15393 int
15394 main (void)
15395 {
15396
15397 ;
15398 return 0;
15399 }
15400 _ACEOF
15401 if ac_fn_c_try_link "$LINENO"
15402 then :
15403 eval $cacheid=yes
15404 else case e in #(
15405 e) eval $cacheid=no ;;
15406 esac
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15409 conftest$ac_exeext conftest.$ac_ext ;;
15410 esac
15411 fi
15412
15413
15414 CFLAGS="$xorg_testset_save_CFLAGS"
15415
15416 eval supported=\$$cacheid
15417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15418 printf "%s\n" "$supported" >&6; }
15419 if test "$supported" = "yes" ; then
15420 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
15421 found="yes"
15422 fi
15423 fi
15424
15425 if test $found = "no" ; then
15426 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15427 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15428 fi
15429
15430 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15431 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15432 fi
15433
15434 CFLAGS="$CFLAGS -fd"
15435
15436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
15437 printf %s "checking if $CC supports -fd... " >&6; }
15438 cacheid=xorg_cv_cc_flag__fd
15439 if eval test \${$cacheid+y}
15440 then :
15441 printf %s "(cached) " >&6
15442 else case e in #(
15443 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15444 /* end confdefs.h. */
15445 int i;
15446 int
15447 main (void)
15448 {
15449
15450 ;
15451 return 0;
15452 }
15453 _ACEOF
15454 if ac_fn_c_try_link "$LINENO"
15455 then :
15456 eval $cacheid=yes
15457 else case e in #(
15458 e) eval $cacheid=no ;;
15459 esac
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15462 conftest$ac_exeext conftest.$ac_ext ;;
15463 esac
15464 fi
15465
15466
15467 CFLAGS="$xorg_testset_save_CFLAGS"
15468
15469 eval supported=\$$cacheid
15470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15471 printf "%s\n" "$supported" >&6; }
15472 if test "$supported" = "yes" ; then
15473 BASE_CFLAGS="$BASE_CFLAGS -fd"
15474 found="yes"
15475 fi
15476 fi
15477
15478
15479
15480
15481
15482 # This chunk adds additional warnings that could catch undesired effects.
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496 xorg_testset_save_CFLAGS="$CFLAGS"
15497
15498 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15501 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15502 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15503 then :
15504 printf %s "(cached) " >&6
15505 else case e in #(
15506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 int i;
15509 _ACEOF
15510 if ac_fn_c_try_compile "$LINENO"
15511 then :
15512 xorg_cv_cc_flag_unknown_warning_option=yes
15513 else case e in #(
15514 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15515 esac
15516 fi
15517 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15518 esac
15519 fi
15520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15521 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15522 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15523 CFLAGS="$xorg_testset_save_CFLAGS"
15524 fi
15525
15526 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15527 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15528 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15529 fi
15530 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15532 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15533 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15534 then :
15535 printf %s "(cached) " >&6
15536 else case e in #(
15537 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15538 /* end confdefs.h. */
15539 int i;
15540 _ACEOF
15541 if ac_fn_c_try_compile "$LINENO"
15542 then :
15543 xorg_cv_cc_flag_unused_command_line_argument=yes
15544 else case e in #(
15545 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15546 esac
15547 fi
15548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15549 esac
15550 fi
15551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15552 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15553 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15554 CFLAGS="$xorg_testset_save_CFLAGS"
15555 fi
15556
15557 found="no"
15558
15559 if test $found = "no" ; then
15560 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15561 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15562 fi
15563
15564 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15566 fi
15567
15568 CFLAGS="$CFLAGS -Wunused"
15569
15570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
15571 printf %s "checking if $CC supports -Wunused... " >&6; }
15572 cacheid=xorg_cv_cc_flag__Wunused
15573 if eval test \${$cacheid+y}
15574 then :
15575 printf %s "(cached) " >&6
15576 else case e in #(
15577 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 int i;
15580 int
15581 main (void)
15582 {
15583
15584 ;
15585 return 0;
15586 }
15587 _ACEOF
15588 if ac_fn_c_try_link "$LINENO"
15589 then :
15590 eval $cacheid=yes
15591 else case e in #(
15592 e) eval $cacheid=no ;;
15593 esac
15594 fi
15595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15596 conftest$ac_exeext conftest.$ac_ext ;;
15597 esac
15598 fi
15599
15600
15601 CFLAGS="$xorg_testset_save_CFLAGS"
15602
15603 eval supported=\$$cacheid
15604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15605 printf "%s\n" "$supported" >&6; }
15606 if test "$supported" = "yes" ; then
15607 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
15608 found="yes"
15609 fi
15610 fi
15611
15612
15613
15614
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626 xorg_testset_save_CFLAGS="$CFLAGS"
15627
15628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15633 then :
15634 printf %s "(cached) " >&6
15635 else case e in #(
15636 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15637 /* end confdefs.h. */
15638 int i;
15639 _ACEOF
15640 if ac_fn_c_try_compile "$LINENO"
15641 then :
15642 xorg_cv_cc_flag_unknown_warning_option=yes
15643 else case e in #(
15644 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15645 esac
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15648 esac
15649 fi
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15651 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15653 CFLAGS="$xorg_testset_save_CFLAGS"
15654 fi
15655
15656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15659 fi
15660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15662 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15663 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15664 then :
15665 printf %s "(cached) " >&6
15666 else case e in #(
15667 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15668 /* end confdefs.h. */
15669 int i;
15670 _ACEOF
15671 if ac_fn_c_try_compile "$LINENO"
15672 then :
15673 xorg_cv_cc_flag_unused_command_line_argument=yes
15674 else case e in #(
15675 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15676 esac
15677 fi
15678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15679 esac
15680 fi
15681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15682 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15683 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15684 CFLAGS="$xorg_testset_save_CFLAGS"
15685 fi
15686
15687 found="no"
15688
15689 if test $found = "no" ; then
15690 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15692 fi
15693
15694 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15695 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15696 fi
15697
15698 CFLAGS="$CFLAGS -Wuninitialized"
15699
15700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
15701 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
15702 cacheid=xorg_cv_cc_flag__Wuninitialized
15703 if eval test \${$cacheid+y}
15704 then :
15705 printf %s "(cached) " >&6
15706 else case e in #(
15707 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15708 /* end confdefs.h. */
15709 int i;
15710 int
15711 main (void)
15712 {
15713
15714 ;
15715 return 0;
15716 }
15717 _ACEOF
15718 if ac_fn_c_try_link "$LINENO"
15719 then :
15720 eval $cacheid=yes
15721 else case e in #(
15722 e) eval $cacheid=no ;;
15723 esac
15724 fi
15725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15726 conftest$ac_exeext conftest.$ac_ext ;;
15727 esac
15728 fi
15729
15730
15731 CFLAGS="$xorg_testset_save_CFLAGS"
15732
15733 eval supported=\$$cacheid
15734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15735 printf "%s\n" "$supported" >&6; }
15736 if test "$supported" = "yes" ; then
15737 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
15738 found="yes"
15739 fi
15740 fi
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756 xorg_testset_save_CFLAGS="$CFLAGS"
15757
15758 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15761 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15762 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15763 then :
15764 printf %s "(cached) " >&6
15765 else case e in #(
15766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15767 /* end confdefs.h. */
15768 int i;
15769 _ACEOF
15770 if ac_fn_c_try_compile "$LINENO"
15771 then :
15772 xorg_cv_cc_flag_unknown_warning_option=yes
15773 else case e in #(
15774 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15775 esac
15776 fi
15777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15778 esac
15779 fi
15780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15783 CFLAGS="$xorg_testset_save_CFLAGS"
15784 fi
15785
15786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15789 fi
15790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15794 then :
15795 printf %s "(cached) " >&6
15796 else case e in #(
15797 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15798 /* end confdefs.h. */
15799 int i;
15800 _ACEOF
15801 if ac_fn_c_try_compile "$LINENO"
15802 then :
15803 xorg_cv_cc_flag_unused_command_line_argument=yes
15804 else case e in #(
15805 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15806 esac
15807 fi
15808 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15809 esac
15810 fi
15811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15812 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15813 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15814 CFLAGS="$xorg_testset_save_CFLAGS"
15815 fi
15816
15817 found="no"
15818
15819 if test $found = "no" ; then
15820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15822 fi
15823
15824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15826 fi
15827
15828 CFLAGS="$CFLAGS -Wshadow"
15829
15830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15831 printf %s "checking if $CC supports -Wshadow... " >&6; }
15832 cacheid=xorg_cv_cc_flag__Wshadow
15833 if eval test \${$cacheid+y}
15834 then :
15835 printf %s "(cached) " >&6
15836 else case e in #(
15837 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15839 int i;
15840 int
15841 main (void)
15842 {
15843
15844 ;
15845 return 0;
15846 }
15847 _ACEOF
15848 if ac_fn_c_try_link "$LINENO"
15849 then :
15850 eval $cacheid=yes
15851 else case e in #(
15852 e) eval $cacheid=no ;;
15853 esac
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15856 conftest$ac_exeext conftest.$ac_ext ;;
15857 esac
15858 fi
15859
15860
15861 CFLAGS="$xorg_testset_save_CFLAGS"
15862
15863 eval supported=\$$cacheid
15864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15865 printf "%s\n" "$supported" >&6; }
15866 if test "$supported" = "yes" ; then
15867 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15868 found="yes"
15869 fi
15870 fi
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886 xorg_testset_save_CFLAGS="$CFLAGS"
15887
15888 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15891 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15892 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15893 then :
15894 printf %s "(cached) " >&6
15895 else case e in #(
15896 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 int i;
15899 _ACEOF
15900 if ac_fn_c_try_compile "$LINENO"
15901 then :
15902 xorg_cv_cc_flag_unknown_warning_option=yes
15903 else case e in #(
15904 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
15905 esac
15906 fi
15907 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15908 esac
15909 fi
15910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15911 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15912 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15913 CFLAGS="$xorg_testset_save_CFLAGS"
15914 fi
15915
15916 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15917 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15918 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15919 fi
15920 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15922 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15923 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15924 then :
15925 printf %s "(cached) " >&6
15926 else case e in #(
15927 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15928 /* end confdefs.h. */
15929 int i;
15930 _ACEOF
15931 if ac_fn_c_try_compile "$LINENO"
15932 then :
15933 xorg_cv_cc_flag_unused_command_line_argument=yes
15934 else case e in #(
15935 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
15936 esac
15937 fi
15938 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15939 esac
15940 fi
15941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15942 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15943 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15944 CFLAGS="$xorg_testset_save_CFLAGS"
15945 fi
15946
15947 found="no"
15948
15949 if test $found = "no" ; then
15950 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15951 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15952 fi
15953
15954 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15955 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15956 fi
15957
15958 CFLAGS="$CFLAGS -Wmissing-noreturn"
15959
15960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15961 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15962 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15963 if eval test \${$cacheid+y}
15964 then :
15965 printf %s "(cached) " >&6
15966 else case e in #(
15967 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15968 /* end confdefs.h. */
15969 int i;
15970 int
15971 main (void)
15972 {
15973
15974 ;
15975 return 0;
15976 }
15977 _ACEOF
15978 if ac_fn_c_try_link "$LINENO"
15979 then :
15980 eval $cacheid=yes
15981 else case e in #(
15982 e) eval $cacheid=no ;;
15983 esac
15984 fi
15985 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15986 conftest$ac_exeext conftest.$ac_ext ;;
15987 esac
15988 fi
15989
15990
15991 CFLAGS="$xorg_testset_save_CFLAGS"
15992
15993 eval supported=\$$cacheid
15994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15995 printf "%s\n" "$supported" >&6; }
15996 if test "$supported" = "yes" ; then
15997 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15998 found="yes"
15999 fi
16000 fi
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016 xorg_testset_save_CFLAGS="$CFLAGS"
16017
16018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16021 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16022 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16023 then :
16024 printf %s "(cached) " >&6
16025 else case e in #(
16026 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16027 /* end confdefs.h. */
16028 int i;
16029 _ACEOF
16030 if ac_fn_c_try_compile "$LINENO"
16031 then :
16032 xorg_cv_cc_flag_unknown_warning_option=yes
16033 else case e in #(
16034 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16035 esac
16036 fi
16037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16038 esac
16039 fi
16040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16041 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16042 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16043 CFLAGS="$xorg_testset_save_CFLAGS"
16044 fi
16045
16046 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16047 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16048 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16049 fi
16050 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16052 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16053 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16054 then :
16055 printf %s "(cached) " >&6
16056 else case e in #(
16057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16059 int i;
16060 _ACEOF
16061 if ac_fn_c_try_compile "$LINENO"
16062 then :
16063 xorg_cv_cc_flag_unused_command_line_argument=yes
16064 else case e in #(
16065 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16066 esac
16067 fi
16068 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16069 esac
16070 fi
16071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16072 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16073 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16074 CFLAGS="$xorg_testset_save_CFLAGS"
16075 fi
16076
16077 found="no"
16078
16079 if test $found = "no" ; then
16080 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16082 fi
16083
16084 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16085 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16086 fi
16087
16088 CFLAGS="$CFLAGS -Wmissing-format-attribute"
16089
16090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
16091 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
16092 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
16093 if eval test \${$cacheid+y}
16094 then :
16095 printf %s "(cached) " >&6
16096 else case e in #(
16097 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16098 /* end confdefs.h. */
16099 int i;
16100 int
16101 main (void)
16102 {
16103
16104 ;
16105 return 0;
16106 }
16107 _ACEOF
16108 if ac_fn_c_try_link "$LINENO"
16109 then :
16110 eval $cacheid=yes
16111 else case e in #(
16112 e) eval $cacheid=no ;;
16113 esac
16114 fi
16115 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16116 conftest$ac_exeext conftest.$ac_ext ;;
16117 esac
16118 fi
16119
16120
16121 CFLAGS="$xorg_testset_save_CFLAGS"
16122
16123 eval supported=\$$cacheid
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16125 printf "%s\n" "$supported" >&6; }
16126 if test "$supported" = "yes" ; then
16127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
16128 found="yes"
16129 fi
16130 fi
16131
16132
16133
16134
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146 xorg_testset_save_CFLAGS="$CFLAGS"
16147
16148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16152 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16153 then :
16154 printf %s "(cached) " >&6
16155 else case e in #(
16156 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16157 /* end confdefs.h. */
16158 int i;
16159 _ACEOF
16160 if ac_fn_c_try_compile "$LINENO"
16161 then :
16162 xorg_cv_cc_flag_unknown_warning_option=yes
16163 else case e in #(
16164 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16165 esac
16166 fi
16167 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16168 esac
16169 fi
16170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16171 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16172 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16173 CFLAGS="$xorg_testset_save_CFLAGS"
16174 fi
16175
16176 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179 fi
16180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16182 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16183 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16184 then :
16185 printf %s "(cached) " >&6
16186 else case e in #(
16187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16188 /* end confdefs.h. */
16189 int i;
16190 _ACEOF
16191 if ac_fn_c_try_compile "$LINENO"
16192 then :
16193 xorg_cv_cc_flag_unused_command_line_argument=yes
16194 else case e in #(
16195 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16196 esac
16197 fi
16198 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16199 esac
16200 fi
16201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16202 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16203 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16204 CFLAGS="$xorg_testset_save_CFLAGS"
16205 fi
16206
16207 found="no"
16208
16209 if test $found = "no" ; then
16210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16212 fi
16213
16214 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16215 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16216 fi
16217
16218 CFLAGS="$CFLAGS -Wredundant-decls"
16219
16220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
16221 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
16222 cacheid=xorg_cv_cc_flag__Wredundant_decls
16223 if eval test \${$cacheid+y}
16224 then :
16225 printf %s "(cached) " >&6
16226 else case e in #(
16227 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16228 /* end confdefs.h. */
16229 int i;
16230 int
16231 main (void)
16232 {
16233
16234 ;
16235 return 0;
16236 }
16237 _ACEOF
16238 if ac_fn_c_try_link "$LINENO"
16239 then :
16240 eval $cacheid=yes
16241 else case e in #(
16242 e) eval $cacheid=no ;;
16243 esac
16244 fi
16245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16246 conftest$ac_exeext conftest.$ac_ext ;;
16247 esac
16248 fi
16249
16250
16251 CFLAGS="$xorg_testset_save_CFLAGS"
16252
16253 eval supported=\$$cacheid
16254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16255 printf "%s\n" "$supported" >&6; }
16256 if test "$supported" = "yes" ; then
16257 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
16258 found="yes"
16259 fi
16260 fi
16261
16262
16263
16264
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276 xorg_testset_save_CFLAGS="$CFLAGS"
16277
16278 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16281 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16282 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16283 then :
16284 printf %s "(cached) " >&6
16285 else case e in #(
16286 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16287 /* end confdefs.h. */
16288 int i;
16289 _ACEOF
16290 if ac_fn_c_try_compile "$LINENO"
16291 then :
16292 xorg_cv_cc_flag_unknown_warning_option=yes
16293 else case e in #(
16294 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16295 esac
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16298 esac
16299 fi
16300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16301 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16302 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16303 CFLAGS="$xorg_testset_save_CFLAGS"
16304 fi
16305
16306 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16307 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16308 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16309 fi
16310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16312 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16313 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16314 then :
16315 printf %s "(cached) " >&6
16316 else case e in #(
16317 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h. */
16319 int i;
16320 _ACEOF
16321 if ac_fn_c_try_compile "$LINENO"
16322 then :
16323 xorg_cv_cc_flag_unused_command_line_argument=yes
16324 else case e in #(
16325 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16326 esac
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16329 esac
16330 fi
16331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16332 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16333 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16334 CFLAGS="$xorg_testset_save_CFLAGS"
16335 fi
16336
16337 found="no"
16338
16339 if test $found = "no" ; then
16340 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16341 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16342 fi
16343
16344 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16346 fi
16347
16348 CFLAGS="$CFLAGS -Wlogical-op"
16349
16350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
16351 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
16352 cacheid=xorg_cv_cc_flag__Wlogical_op
16353 if eval test \${$cacheid+y}
16354 then :
16355 printf %s "(cached) " >&6
16356 else case e in #(
16357 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16358 /* end confdefs.h. */
16359 int i;
16360 int
16361 main (void)
16362 {
16363
16364 ;
16365 return 0;
16366 }
16367 _ACEOF
16368 if ac_fn_c_try_link "$LINENO"
16369 then :
16370 eval $cacheid=yes
16371 else case e in #(
16372 e) eval $cacheid=no ;;
16373 esac
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16376 conftest$ac_exeext conftest.$ac_ext ;;
16377 esac
16378 fi
16379
16380
16381 CFLAGS="$xorg_testset_save_CFLAGS"
16382
16383 eval supported=\$$cacheid
16384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16385 printf "%s\n" "$supported" >&6; }
16386 if test "$supported" = "yes" ; then
16387 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
16388 found="yes"
16389 fi
16390 fi
16391
16392
16393
16394 # These are currently disabled because they are noisy. They will be enabled
16395 # in the future once the codebase is sufficiently modernized to silence
16396 # them. For now, I don't want them to drown out the other warnings.
16397 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
16398 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
16399 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
16400
16401 # Turn some warnings into errors, so we don't accidentally get successful builds
16402 # when there are problems that should be fixed.
16403
16404 if test "x$SELECTIVE_WERROR" = "xyes" ; then
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417
16418 xorg_testset_save_CFLAGS="$CFLAGS"
16419
16420 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16421 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16423 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16424 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16425 then :
16426 printf %s "(cached) " >&6
16427 else case e in #(
16428 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16429 /* end confdefs.h. */
16430 int i;
16431 _ACEOF
16432 if ac_fn_c_try_compile "$LINENO"
16433 then :
16434 xorg_cv_cc_flag_unknown_warning_option=yes
16435 else case e in #(
16436 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16437 esac
16438 fi
16439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16440 esac
16441 fi
16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16443 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16444 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16445 CFLAGS="$xorg_testset_save_CFLAGS"
16446 fi
16447
16448 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16449 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16450 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16451 fi
16452 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16454 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16455 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16456 then :
16457 printf %s "(cached) " >&6
16458 else case e in #(
16459 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16460 /* end confdefs.h. */
16461 int i;
16462 _ACEOF
16463 if ac_fn_c_try_compile "$LINENO"
16464 then :
16465 xorg_cv_cc_flag_unused_command_line_argument=yes
16466 else case e in #(
16467 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16468 esac
16469 fi
16470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16471 esac
16472 fi
16473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16474 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16475 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16476 CFLAGS="$xorg_testset_save_CFLAGS"
16477 fi
16478
16479 found="no"
16480
16481 if test $found = "no" ; then
16482 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16483 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16484 fi
16485
16486 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16487 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16488 fi
16489
16490 CFLAGS="$CFLAGS -Werror=implicit"
16491
16492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
16493 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
16494 cacheid=xorg_cv_cc_flag__Werror_implicit
16495 if eval test \${$cacheid+y}
16496 then :
16497 printf %s "(cached) " >&6
16498 else case e in #(
16499 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16500 /* end confdefs.h. */
16501 int i;
16502 int
16503 main (void)
16504 {
16505
16506 ;
16507 return 0;
16508 }
16509 _ACEOF
16510 if ac_fn_c_try_link "$LINENO"
16511 then :
16512 eval $cacheid=yes
16513 else case e in #(
16514 e) eval $cacheid=no ;;
16515 esac
16516 fi
16517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16518 conftest$ac_exeext conftest.$ac_ext ;;
16519 esac
16520 fi
16521
16522
16523 CFLAGS="$xorg_testset_save_CFLAGS"
16524
16525 eval supported=\$$cacheid
16526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16527 printf "%s\n" "$supported" >&6; }
16528 if test "$supported" = "yes" ; then
16529 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
16530 found="yes"
16531 fi
16532 fi
16533
16534 if test $found = "no" ; then
16535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16537 fi
16538
16539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16541 fi
16542
16543 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16544
16545 { 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
16546 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
16547 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
16548 if eval test \${$cacheid+y}
16549 then :
16550 printf %s "(cached) " >&6
16551 else case e in #(
16552 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16554 int i;
16555 int
16556 main (void)
16557 {
16558
16559 ;
16560 return 0;
16561 }
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"
16564 then :
16565 eval $cacheid=yes
16566 else case e in #(
16567 e) eval $cacheid=no ;;
16568 esac
16569 fi
16570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16571 conftest$ac_exeext conftest.$ac_ext ;;
16572 esac
16573 fi
16574
16575
16576 CFLAGS="$xorg_testset_save_CFLAGS"
16577
16578 eval supported=\$$cacheid
16579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16580 printf "%s\n" "$supported" >&6; }
16581 if test "$supported" = "yes" ; then
16582 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
16583 found="yes"
16584 fi
16585 fi
16586
16587
16588
16589
16590
16591
16592
16593
16594
16595
16596
16597
16598
16599
16600
16601 xorg_testset_save_CFLAGS="$CFLAGS"
16602
16603 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16604 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16606 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16607 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16608 then :
16609 printf %s "(cached) " >&6
16610 else case e in #(
16611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613 int i;
16614 _ACEOF
16615 if ac_fn_c_try_compile "$LINENO"
16616 then :
16617 xorg_cv_cc_flag_unknown_warning_option=yes
16618 else case e in #(
16619 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16620 esac
16621 fi
16622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16623 esac
16624 fi
16625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16626 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16627 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16628 CFLAGS="$xorg_testset_save_CFLAGS"
16629 fi
16630
16631 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16632 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16634 fi
16635 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16637 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16638 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16639 then :
16640 printf %s "(cached) " >&6
16641 else case e in #(
16642 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16643 /* end confdefs.h. */
16644 int i;
16645 _ACEOF
16646 if ac_fn_c_try_compile "$LINENO"
16647 then :
16648 xorg_cv_cc_flag_unused_command_line_argument=yes
16649 else case e in #(
16650 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16651 esac
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16654 esac
16655 fi
16656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16657 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16658 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16659 CFLAGS="$xorg_testset_save_CFLAGS"
16660 fi
16661
16662 found="no"
16663
16664 if test $found = "no" ; then
16665 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16666 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16667 fi
16668
16669 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16670 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16671 fi
16672
16673 CFLAGS="$CFLAGS -Werror=nonnull"
16674
16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
16676 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
16677 cacheid=xorg_cv_cc_flag__Werror_nonnull
16678 if eval test \${$cacheid+y}
16679 then :
16680 printf %s "(cached) " >&6
16681 else case e in #(
16682 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h. */
16684 int i;
16685 int
16686 main (void)
16687 {
16688
16689 ;
16690 return 0;
16691 }
16692 _ACEOF
16693 if ac_fn_c_try_link "$LINENO"
16694 then :
16695 eval $cacheid=yes
16696 else case e in #(
16697 e) eval $cacheid=no ;;
16698 esac
16699 fi
16700 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16701 conftest$ac_exeext conftest.$ac_ext ;;
16702 esac
16703 fi
16704
16705
16706 CFLAGS="$xorg_testset_save_CFLAGS"
16707
16708 eval supported=\$$cacheid
16709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16710 printf "%s\n" "$supported" >&6; }
16711 if test "$supported" = "yes" ; then
16712 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
16713 found="yes"
16714 fi
16715 fi
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731 xorg_testset_save_CFLAGS="$CFLAGS"
16732
16733 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16734 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16736 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16737 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16738 then :
16739 printf %s "(cached) " >&6
16740 else case e in #(
16741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16743 int i;
16744 _ACEOF
16745 if ac_fn_c_try_compile "$LINENO"
16746 then :
16747 xorg_cv_cc_flag_unknown_warning_option=yes
16748 else case e in #(
16749 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16750 esac
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16753 esac
16754 fi
16755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16756 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16757 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16758 CFLAGS="$xorg_testset_save_CFLAGS"
16759 fi
16760
16761 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16762 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16763 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16764 fi
16765 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16767 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16768 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16769 then :
16770 printf %s "(cached) " >&6
16771 else case e in #(
16772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16774 int i;
16775 _ACEOF
16776 if ac_fn_c_try_compile "$LINENO"
16777 then :
16778 xorg_cv_cc_flag_unused_command_line_argument=yes
16779 else case e in #(
16780 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16781 esac
16782 fi
16783 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16784 esac
16785 fi
16786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16787 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16788 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16789 CFLAGS="$xorg_testset_save_CFLAGS"
16790 fi
16791
16792 found="no"
16793
16794 if test $found = "no" ; then
16795 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16797 fi
16798
16799 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16800 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16801 fi
16802
16803 CFLAGS="$CFLAGS -Werror=init-self"
16804
16805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
16806 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
16807 cacheid=xorg_cv_cc_flag__Werror_init_self
16808 if eval test \${$cacheid+y}
16809 then :
16810 printf %s "(cached) " >&6
16811 else case e in #(
16812 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16813 /* end confdefs.h. */
16814 int i;
16815 int
16816 main (void)
16817 {
16818
16819 ;
16820 return 0;
16821 }
16822 _ACEOF
16823 if ac_fn_c_try_link "$LINENO"
16824 then :
16825 eval $cacheid=yes
16826 else case e in #(
16827 e) eval $cacheid=no ;;
16828 esac
16829 fi
16830 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16831 conftest$ac_exeext conftest.$ac_ext ;;
16832 esac
16833 fi
16834
16835
16836 CFLAGS="$xorg_testset_save_CFLAGS"
16837
16838 eval supported=\$$cacheid
16839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16840 printf "%s\n" "$supported" >&6; }
16841 if test "$supported" = "yes" ; then
16842 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
16843 found="yes"
16844 fi
16845 fi
16846
16847
16848
16849
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859
16860
16861 xorg_testset_save_CFLAGS="$CFLAGS"
16862
16863 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16864 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16866 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16867 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16868 then :
16869 printf %s "(cached) " >&6
16870 else case e in #(
16871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16872 /* end confdefs.h. */
16873 int i;
16874 _ACEOF
16875 if ac_fn_c_try_compile "$LINENO"
16876 then :
16877 xorg_cv_cc_flag_unknown_warning_option=yes
16878 else case e in #(
16879 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
16880 esac
16881 fi
16882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16883 esac
16884 fi
16885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16886 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16887 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16888 CFLAGS="$xorg_testset_save_CFLAGS"
16889 fi
16890
16891 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16892 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16893 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16894 fi
16895 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16897 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16898 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16899 then :
16900 printf %s "(cached) " >&6
16901 else case e in #(
16902 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16903 /* end confdefs.h. */
16904 int i;
16905 _ACEOF
16906 if ac_fn_c_try_compile "$LINENO"
16907 then :
16908 xorg_cv_cc_flag_unused_command_line_argument=yes
16909 else case e in #(
16910 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
16911 esac
16912 fi
16913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16914 esac
16915 fi
16916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16917 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16918 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16919 CFLAGS="$xorg_testset_save_CFLAGS"
16920 fi
16921
16922 found="no"
16923
16924 if test $found = "no" ; then
16925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16927 fi
16928
16929 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16931 fi
16932
16933 CFLAGS="$CFLAGS -Werror=main"
16934
16935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16936 printf %s "checking if $CC supports -Werror=main... " >&6; }
16937 cacheid=xorg_cv_cc_flag__Werror_main
16938 if eval test \${$cacheid+y}
16939 then :
16940 printf %s "(cached) " >&6
16941 else case e in #(
16942 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16943 /* end confdefs.h. */
16944 int i;
16945 int
16946 main (void)
16947 {
16948
16949 ;
16950 return 0;
16951 }
16952 _ACEOF
16953 if ac_fn_c_try_link "$LINENO"
16954 then :
16955 eval $cacheid=yes
16956 else case e in #(
16957 e) eval $cacheid=no ;;
16958 esac
16959 fi
16960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16961 conftest$ac_exeext conftest.$ac_ext ;;
16962 esac
16963 fi
16964
16965
16966 CFLAGS="$xorg_testset_save_CFLAGS"
16967
16968 eval supported=\$$cacheid
16969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16970 printf "%s\n" "$supported" >&6; }
16971 if test "$supported" = "yes" ; then
16972 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16973 found="yes"
16974 fi
16975 fi
16976
16977
16978
16979
16980
16981
16982
16983
16984
16985
16986
16987
16988
16989
16990
16991 xorg_testset_save_CFLAGS="$CFLAGS"
16992
16993 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16996 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16997 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16998 then :
16999 printf %s "(cached) " >&6
17000 else case e in #(
17001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 int i;
17004 _ACEOF
17005 if ac_fn_c_try_compile "$LINENO"
17006 then :
17007 xorg_cv_cc_flag_unknown_warning_option=yes
17008 else case e in #(
17009 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17010 esac
17011 fi
17012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17013 esac
17014 fi
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17016 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17017 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17018 CFLAGS="$xorg_testset_save_CFLAGS"
17019 fi
17020
17021 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17022 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17023 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17024 fi
17025 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17027 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17028 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17029 then :
17030 printf %s "(cached) " >&6
17031 else case e in #(
17032 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h. */
17034 int i;
17035 _ACEOF
17036 if ac_fn_c_try_compile "$LINENO"
17037 then :
17038 xorg_cv_cc_flag_unused_command_line_argument=yes
17039 else case e in #(
17040 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17041 esac
17042 fi
17043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17044 esac
17045 fi
17046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17047 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17048 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17049 CFLAGS="$xorg_testset_save_CFLAGS"
17050 fi
17051
17052 found="no"
17053
17054 if test $found = "no" ; then
17055 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17056 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17057 fi
17058
17059 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17060 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17061 fi
17062
17063 CFLAGS="$CFLAGS -Werror=missing-braces"
17064
17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
17066 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
17067 cacheid=xorg_cv_cc_flag__Werror_missing_braces
17068 if eval test \${$cacheid+y}
17069 then :
17070 printf %s "(cached) " >&6
17071 else case e in #(
17072 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17073 /* end confdefs.h. */
17074 int i;
17075 int
17076 main (void)
17077 {
17078
17079 ;
17080 return 0;
17081 }
17082 _ACEOF
17083 if ac_fn_c_try_link "$LINENO"
17084 then :
17085 eval $cacheid=yes
17086 else case e in #(
17087 e) eval $cacheid=no ;;
17088 esac
17089 fi
17090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17091 conftest$ac_exeext conftest.$ac_ext ;;
17092 esac
17093 fi
17094
17095
17096 CFLAGS="$xorg_testset_save_CFLAGS"
17097
17098 eval supported=\$$cacheid
17099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17100 printf "%s\n" "$supported" >&6; }
17101 if test "$supported" = "yes" ; then
17102 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
17103 found="yes"
17104 fi
17105 fi
17106
17107
17108
17109
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121 xorg_testset_save_CFLAGS="$CFLAGS"
17122
17123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17126 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17127 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17128 then :
17129 printf %s "(cached) " >&6
17130 else case e in #(
17131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17132 /* end confdefs.h. */
17133 int i;
17134 _ACEOF
17135 if ac_fn_c_try_compile "$LINENO"
17136 then :
17137 xorg_cv_cc_flag_unknown_warning_option=yes
17138 else case e in #(
17139 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17140 esac
17141 fi
17142 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17143 esac
17144 fi
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17146 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17148 CFLAGS="$xorg_testset_save_CFLAGS"
17149 fi
17150
17151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17154 fi
17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17157 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17158 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17159 then :
17160 printf %s "(cached) " >&6
17161 else case e in #(
17162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163 /* end confdefs.h. */
17164 int i;
17165 _ACEOF
17166 if ac_fn_c_try_compile "$LINENO"
17167 then :
17168 xorg_cv_cc_flag_unused_command_line_argument=yes
17169 else case e in #(
17170 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17171 esac
17172 fi
17173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17174 esac
17175 fi
17176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17177 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17178 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17179 CFLAGS="$xorg_testset_save_CFLAGS"
17180 fi
17181
17182 found="no"
17183
17184 if test $found = "no" ; then
17185 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187 fi
17188
17189 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17190 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17191 fi
17192
17193 CFLAGS="$CFLAGS -Werror=sequence-point"
17194
17195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
17196 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
17197 cacheid=xorg_cv_cc_flag__Werror_sequence_point
17198 if eval test \${$cacheid+y}
17199 then :
17200 printf %s "(cached) " >&6
17201 else case e in #(
17202 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17203 /* end confdefs.h. */
17204 int i;
17205 int
17206 main (void)
17207 {
17208
17209 ;
17210 return 0;
17211 }
17212 _ACEOF
17213 if ac_fn_c_try_link "$LINENO"
17214 then :
17215 eval $cacheid=yes
17216 else case e in #(
17217 e) eval $cacheid=no ;;
17218 esac
17219 fi
17220 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17221 conftest$ac_exeext conftest.$ac_ext ;;
17222 esac
17223 fi
17224
17225
17226 CFLAGS="$xorg_testset_save_CFLAGS"
17227
17228 eval supported=\$$cacheid
17229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17230 printf "%s\n" "$supported" >&6; }
17231 if test "$supported" = "yes" ; then
17232 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
17233 found="yes"
17234 fi
17235 fi
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251 xorg_testset_save_CFLAGS="$CFLAGS"
17252
17253 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17256 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17257 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17258 then :
17259 printf %s "(cached) " >&6
17260 else case e in #(
17261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17262 /* end confdefs.h. */
17263 int i;
17264 _ACEOF
17265 if ac_fn_c_try_compile "$LINENO"
17266 then :
17267 xorg_cv_cc_flag_unknown_warning_option=yes
17268 else case e in #(
17269 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17270 esac
17271 fi
17272 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17273 esac
17274 fi
17275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17276 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17277 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17278 CFLAGS="$xorg_testset_save_CFLAGS"
17279 fi
17280
17281 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17282 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17283 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17284 fi
17285 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17287 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17288 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17289 then :
17290 printf %s "(cached) " >&6
17291 else case e in #(
17292 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17294 int i;
17295 _ACEOF
17296 if ac_fn_c_try_compile "$LINENO"
17297 then :
17298 xorg_cv_cc_flag_unused_command_line_argument=yes
17299 else case e in #(
17300 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17301 esac
17302 fi
17303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17304 esac
17305 fi
17306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17307 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17308 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17309 CFLAGS="$xorg_testset_save_CFLAGS"
17310 fi
17311
17312 found="no"
17313
17314 if test $found = "no" ; then
17315 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17316 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17317 fi
17318
17319 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17320 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17321 fi
17322
17323 CFLAGS="$CFLAGS -Werror=return-type"
17324
17325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
17326 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
17327 cacheid=xorg_cv_cc_flag__Werror_return_type
17328 if eval test \${$cacheid+y}
17329 then :
17330 printf %s "(cached) " >&6
17331 else case e in #(
17332 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17333 /* end confdefs.h. */
17334 int i;
17335 int
17336 main (void)
17337 {
17338
17339 ;
17340 return 0;
17341 }
17342 _ACEOF
17343 if ac_fn_c_try_link "$LINENO"
17344 then :
17345 eval $cacheid=yes
17346 else case e in #(
17347 e) eval $cacheid=no ;;
17348 esac
17349 fi
17350 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17351 conftest$ac_exeext conftest.$ac_ext ;;
17352 esac
17353 fi
17354
17355
17356 CFLAGS="$xorg_testset_save_CFLAGS"
17357
17358 eval supported=\$$cacheid
17359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17360 printf "%s\n" "$supported" >&6; }
17361 if test "$supported" = "yes" ; then
17362 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
17363 found="yes"
17364 fi
17365 fi
17366
17367 if test $found = "no" ; then
17368 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17369 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17370 fi
17371
17372 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17373 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17374 fi
17375
17376 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17377
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
17379 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
17380 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
17381 if eval test \${$cacheid+y}
17382 then :
17383 printf %s "(cached) " >&6
17384 else case e in #(
17385 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17386 /* end confdefs.h. */
17387 int i;
17388 int
17389 main (void)
17390 {
17391
17392 ;
17393 return 0;
17394 }
17395 _ACEOF
17396 if ac_fn_c_try_link "$LINENO"
17397 then :
17398 eval $cacheid=yes
17399 else case e in #(
17400 e) eval $cacheid=no ;;
17401 esac
17402 fi
17403 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17404 conftest$ac_exeext conftest.$ac_ext ;;
17405 esac
17406 fi
17407
17408
17409 CFLAGS="$xorg_testset_save_CFLAGS"
17410
17411 eval supported=\$$cacheid
17412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17413 printf "%s\n" "$supported" >&6; }
17414 if test "$supported" = "yes" ; then
17415 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
17416 found="yes"
17417 fi
17418 fi
17419
17420
17421
17422
17423
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434 xorg_testset_save_CFLAGS="$CFLAGS"
17435
17436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17439 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17440 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17441 then :
17442 printf %s "(cached) " >&6
17443 else case e in #(
17444 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17445 /* end confdefs.h. */
17446 int i;
17447 _ACEOF
17448 if ac_fn_c_try_compile "$LINENO"
17449 then :
17450 xorg_cv_cc_flag_unknown_warning_option=yes
17451 else case e in #(
17452 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17453 esac
17454 fi
17455 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17456 esac
17457 fi
17458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17459 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17460 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17461 CFLAGS="$xorg_testset_save_CFLAGS"
17462 fi
17463
17464 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17465 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17466 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17467 fi
17468 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17470 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17471 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17472 then :
17473 printf %s "(cached) " >&6
17474 else case e in #(
17475 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17476 /* end confdefs.h. */
17477 int i;
17478 _ACEOF
17479 if ac_fn_c_try_compile "$LINENO"
17480 then :
17481 xorg_cv_cc_flag_unused_command_line_argument=yes
17482 else case e in #(
17483 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17484 esac
17485 fi
17486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17487 esac
17488 fi
17489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17490 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17491 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17492 CFLAGS="$xorg_testset_save_CFLAGS"
17493 fi
17494
17495 found="no"
17496
17497 if test $found = "no" ; then
17498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17500 fi
17501
17502 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17503 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17504 fi
17505
17506 CFLAGS="$CFLAGS -Werror=trigraphs"
17507
17508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
17509 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
17510 cacheid=xorg_cv_cc_flag__Werror_trigraphs
17511 if eval test \${$cacheid+y}
17512 then :
17513 printf %s "(cached) " >&6
17514 else case e in #(
17515 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 int i;
17518 int
17519 main (void)
17520 {
17521
17522 ;
17523 return 0;
17524 }
17525 _ACEOF
17526 if ac_fn_c_try_link "$LINENO"
17527 then :
17528 eval $cacheid=yes
17529 else case e in #(
17530 e) eval $cacheid=no ;;
17531 esac
17532 fi
17533 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17534 conftest$ac_exeext conftest.$ac_ext ;;
17535 esac
17536 fi
17537
17538
17539 CFLAGS="$xorg_testset_save_CFLAGS"
17540
17541 eval supported=\$$cacheid
17542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17543 printf "%s\n" "$supported" >&6; }
17544 if test "$supported" = "yes" ; then
17545 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
17546 found="yes"
17547 fi
17548 fi
17549
17550
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564 xorg_testset_save_CFLAGS="$CFLAGS"
17565
17566 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17569 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17570 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17571 then :
17572 printf %s "(cached) " >&6
17573 else case e in #(
17574 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17575 /* end confdefs.h. */
17576 int i;
17577 _ACEOF
17578 if ac_fn_c_try_compile "$LINENO"
17579 then :
17580 xorg_cv_cc_flag_unknown_warning_option=yes
17581 else case e in #(
17582 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17583 esac
17584 fi
17585 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17586 esac
17587 fi
17588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17589 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17590 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17591 CFLAGS="$xorg_testset_save_CFLAGS"
17592 fi
17593
17594 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17597 fi
17598 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17600 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17601 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17602 then :
17603 printf %s "(cached) " >&6
17604 else case e in #(
17605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17606 /* end confdefs.h. */
17607 int i;
17608 _ACEOF
17609 if ac_fn_c_try_compile "$LINENO"
17610 then :
17611 xorg_cv_cc_flag_unused_command_line_argument=yes
17612 else case e in #(
17613 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17614 esac
17615 fi
17616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17617 esac
17618 fi
17619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17620 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17621 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17622 CFLAGS="$xorg_testset_save_CFLAGS"
17623 fi
17624
17625 found="no"
17626
17627 if test $found = "no" ; then
17628 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17630 fi
17631
17632 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17633 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17634 fi
17635
17636 CFLAGS="$CFLAGS -Werror=array-bounds"
17637
17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
17639 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
17640 cacheid=xorg_cv_cc_flag__Werror_array_bounds
17641 if eval test \${$cacheid+y}
17642 then :
17643 printf %s "(cached) " >&6
17644 else case e in #(
17645 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17646 /* end confdefs.h. */
17647 int i;
17648 int
17649 main (void)
17650 {
17651
17652 ;
17653 return 0;
17654 }
17655 _ACEOF
17656 if ac_fn_c_try_link "$LINENO"
17657 then :
17658 eval $cacheid=yes
17659 else case e in #(
17660 e) eval $cacheid=no ;;
17661 esac
17662 fi
17663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17664 conftest$ac_exeext conftest.$ac_ext ;;
17665 esac
17666 fi
17667
17668
17669 CFLAGS="$xorg_testset_save_CFLAGS"
17670
17671 eval supported=\$$cacheid
17672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17673 printf "%s\n" "$supported" >&6; }
17674 if test "$supported" = "yes" ; then
17675 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
17676 found="yes"
17677 fi
17678 fi
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688
17689
17690
17691
17692
17693
17694 xorg_testset_save_CFLAGS="$CFLAGS"
17695
17696 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17697 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17699 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17700 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17701 then :
17702 printf %s "(cached) " >&6
17703 else case e in #(
17704 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17705 /* end confdefs.h. */
17706 int i;
17707 _ACEOF
17708 if ac_fn_c_try_compile "$LINENO"
17709 then :
17710 xorg_cv_cc_flag_unknown_warning_option=yes
17711 else case e in #(
17712 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17713 esac
17714 fi
17715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17716 esac
17717 fi
17718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17719 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17720 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17721 CFLAGS="$xorg_testset_save_CFLAGS"
17722 fi
17723
17724 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17725 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17726 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17727 fi
17728 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17730 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17731 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17732 then :
17733 printf %s "(cached) " >&6
17734 else case e in #(
17735 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17736 /* end confdefs.h. */
17737 int i;
17738 _ACEOF
17739 if ac_fn_c_try_compile "$LINENO"
17740 then :
17741 xorg_cv_cc_flag_unused_command_line_argument=yes
17742 else case e in #(
17743 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17744 esac
17745 fi
17746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17747 esac
17748 fi
17749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17750 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17751 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17752 CFLAGS="$xorg_testset_save_CFLAGS"
17753 fi
17754
17755 found="no"
17756
17757 if test $found = "no" ; then
17758 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17759 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17760 fi
17761
17762 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17763 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17764 fi
17765
17766 CFLAGS="$CFLAGS -Werror=write-strings"
17767
17768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
17769 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
17770 cacheid=xorg_cv_cc_flag__Werror_write_strings
17771 if eval test \${$cacheid+y}
17772 then :
17773 printf %s "(cached) " >&6
17774 else case e in #(
17775 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17776 /* end confdefs.h. */
17777 int i;
17778 int
17779 main (void)
17780 {
17781
17782 ;
17783 return 0;
17784 }
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"
17787 then :
17788 eval $cacheid=yes
17789 else case e in #(
17790 e) eval $cacheid=no ;;
17791 esac
17792 fi
17793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17794 conftest$ac_exeext conftest.$ac_ext ;;
17795 esac
17796 fi
17797
17798
17799 CFLAGS="$xorg_testset_save_CFLAGS"
17800
17801 eval supported=\$$cacheid
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17803 printf "%s\n" "$supported" >&6; }
17804 if test "$supported" = "yes" ; then
17805 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
17806 found="yes"
17807 fi
17808 fi
17809
17810
17811
17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824 xorg_testset_save_CFLAGS="$CFLAGS"
17825
17826 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17827 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17829 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17830 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17831 then :
17832 printf %s "(cached) " >&6
17833 else case e in #(
17834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17835 /* end confdefs.h. */
17836 int i;
17837 _ACEOF
17838 if ac_fn_c_try_compile "$LINENO"
17839 then :
17840 xorg_cv_cc_flag_unknown_warning_option=yes
17841 else case e in #(
17842 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17843 esac
17844 fi
17845 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17846 esac
17847 fi
17848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17849 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17850 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17851 CFLAGS="$xorg_testset_save_CFLAGS"
17852 fi
17853
17854 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17857 fi
17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17860 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17861 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17862 then :
17863 printf %s "(cached) " >&6
17864 else case e in #(
17865 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17866 /* end confdefs.h. */
17867 int i;
17868 _ACEOF
17869 if ac_fn_c_try_compile "$LINENO"
17870 then :
17871 xorg_cv_cc_flag_unused_command_line_argument=yes
17872 else case e in #(
17873 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
17874 esac
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17877 esac
17878 fi
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17880 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17881 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17882 CFLAGS="$xorg_testset_save_CFLAGS"
17883 fi
17884
17885 found="no"
17886
17887 if test $found = "no" ; then
17888 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17889 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17890 fi
17891
17892 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17893 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17894 fi
17895
17896 CFLAGS="$CFLAGS -Werror=address"
17897
17898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
17899 printf %s "checking if $CC supports -Werror=address... " >&6; }
17900 cacheid=xorg_cv_cc_flag__Werror_address
17901 if eval test \${$cacheid+y}
17902 then :
17903 printf %s "(cached) " >&6
17904 else case e in #(
17905 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17907 int i;
17908 int
17909 main (void)
17910 {
17911
17912 ;
17913 return 0;
17914 }
17915 _ACEOF
17916 if ac_fn_c_try_link "$LINENO"
17917 then :
17918 eval $cacheid=yes
17919 else case e in #(
17920 e) eval $cacheid=no ;;
17921 esac
17922 fi
17923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17924 conftest$ac_exeext conftest.$ac_ext ;;
17925 esac
17926 fi
17927
17928
17929 CFLAGS="$xorg_testset_save_CFLAGS"
17930
17931 eval supported=\$$cacheid
17932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17933 printf "%s\n" "$supported" >&6; }
17934 if test "$supported" = "yes" ; then
17935 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17936 found="yes"
17937 fi
17938 fi
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949
17950
17951
17952
17953
17954 xorg_testset_save_CFLAGS="$CFLAGS"
17955
17956 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17959 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17960 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17961 then :
17962 printf %s "(cached) " >&6
17963 else case e in #(
17964 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17965 /* end confdefs.h. */
17966 int i;
17967 _ACEOF
17968 if ac_fn_c_try_compile "$LINENO"
17969 then :
17970 xorg_cv_cc_flag_unknown_warning_option=yes
17971 else case e in #(
17972 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
17973 esac
17974 fi
17975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17976 esac
17977 fi
17978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17979 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17981 CFLAGS="$xorg_testset_save_CFLAGS"
17982 fi
17983
17984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17987 fi
17988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17990 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17991 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17992 then :
17993 printf %s "(cached) " >&6
17994 else case e in #(
17995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997 int i;
17998 _ACEOF
17999 if ac_fn_c_try_compile "$LINENO"
18000 then :
18001 xorg_cv_cc_flag_unused_command_line_argument=yes
18002 else case e in #(
18003 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18004 esac
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18007 esac
18008 fi
18009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18010 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18012 CFLAGS="$xorg_testset_save_CFLAGS"
18013 fi
18014
18015 found="no"
18016
18017 if test $found = "no" ; then
18018 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18020 fi
18021
18022 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18024 fi
18025
18026 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
18027
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
18029 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
18030 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
18031 if eval test \${$cacheid+y}
18032 then :
18033 printf %s "(cached) " >&6
18034 else case e in #(
18035 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18036 /* end confdefs.h. */
18037 int i;
18038 int
18039 main (void)
18040 {
18041
18042 ;
18043 return 0;
18044 }
18045 _ACEOF
18046 if ac_fn_c_try_link "$LINENO"
18047 then :
18048 eval $cacheid=yes
18049 else case e in #(
18050 e) eval $cacheid=no ;;
18051 esac
18052 fi
18053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18054 conftest$ac_exeext conftest.$ac_ext ;;
18055 esac
18056 fi
18057
18058
18059 CFLAGS="$xorg_testset_save_CFLAGS"
18060
18061 eval supported=\$$cacheid
18062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18063 printf "%s\n" "$supported" >&6; }
18064 if test "$supported" = "yes" ; then
18065 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
18066 found="yes"
18067 fi
18068 fi
18069
18070 if test $found = "no" ; then
18071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18073 fi
18074
18075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18077 fi
18078
18079 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18080
18081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
18082 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
18083 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
18084 if eval test \${$cacheid+y}
18085 then :
18086 printf %s "(cached) " >&6
18087 else case e in #(
18088 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18089 /* end confdefs.h. */
18090 int i;
18091 int
18092 main (void)
18093 {
18094
18095 ;
18096 return 0;
18097 }
18098 _ACEOF
18099 if ac_fn_c_try_link "$LINENO"
18100 then :
18101 eval $cacheid=yes
18102 else case e in #(
18103 e) eval $cacheid=no ;;
18104 esac
18105 fi
18106 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18107 conftest$ac_exeext conftest.$ac_ext ;;
18108 esac
18109 fi
18110
18111
18112 CFLAGS="$xorg_testset_save_CFLAGS"
18113
18114 eval supported=\$$cacheid
18115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18116 printf "%s\n" "$supported" >&6; }
18117 if test "$supported" = "yes" ; then
18118 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
18119 found="yes"
18120 fi
18121 fi
18122
18123
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135
18136
18137 xorg_testset_save_CFLAGS="$CFLAGS"
18138
18139 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18142 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18143 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18144 then :
18145 printf %s "(cached) " >&6
18146 else case e in #(
18147 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18148 /* end confdefs.h. */
18149 int i;
18150 _ACEOF
18151 if ac_fn_c_try_compile "$LINENO"
18152 then :
18153 xorg_cv_cc_flag_unknown_warning_option=yes
18154 else case e in #(
18155 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18156 esac
18157 fi
18158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18159 esac
18160 fi
18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18162 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18163 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18164 CFLAGS="$xorg_testset_save_CFLAGS"
18165 fi
18166
18167 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18168 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18169 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18170 fi
18171 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18173 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18174 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18175 then :
18176 printf %s "(cached) " >&6
18177 else case e in #(
18178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18180 int i;
18181 _ACEOF
18182 if ac_fn_c_try_compile "$LINENO"
18183 then :
18184 xorg_cv_cc_flag_unused_command_line_argument=yes
18185 else case e in #(
18186 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18187 esac
18188 fi
18189 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18190 esac
18191 fi
18192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18193 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18194 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18195 CFLAGS="$xorg_testset_save_CFLAGS"
18196 fi
18197
18198 found="no"
18199
18200 if test $found = "no" ; then
18201 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18202 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18203 fi
18204
18205 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18206 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18207 fi
18208
18209 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
18210
18211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
18212 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
18213 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
18214 if eval test \${$cacheid+y}
18215 then :
18216 printf %s "(cached) " >&6
18217 else case e in #(
18218 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18219 /* end confdefs.h. */
18220 int i;
18221 int
18222 main (void)
18223 {
18224
18225 ;
18226 return 0;
18227 }
18228 _ACEOF
18229 if ac_fn_c_try_link "$LINENO"
18230 then :
18231 eval $cacheid=yes
18232 else case e in #(
18233 e) eval $cacheid=no ;;
18234 esac
18235 fi
18236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18237 conftest$ac_exeext conftest.$ac_ext ;;
18238 esac
18239 fi
18240
18241
18242 CFLAGS="$xorg_testset_save_CFLAGS"
18243
18244 eval supported=\$$cacheid
18245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18246 printf "%s\n" "$supported" >&6; }
18247 if test "$supported" = "yes" ; then
18248 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
18249 found="yes"
18250 fi
18251 fi
18252
18253 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
18254 else
18255 { 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
18256 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;}
18257
18258
18259
18260
18261
18262
18263
18264
18265
18266
18267
18268
18269
18270 xorg_testset_save_CFLAGS="$CFLAGS"
18271
18272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18276 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18277 then :
18278 printf %s "(cached) " >&6
18279 else case e in #(
18280 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18281 /* end confdefs.h. */
18282 int i;
18283 _ACEOF
18284 if ac_fn_c_try_compile "$LINENO"
18285 then :
18286 xorg_cv_cc_flag_unknown_warning_option=yes
18287 else case e in #(
18288 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18289 esac
18290 fi
18291 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18292 esac
18293 fi
18294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18295 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18296 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18297 CFLAGS="$xorg_testset_save_CFLAGS"
18298 fi
18299
18300 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18301 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18303 fi
18304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18306 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18307 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18308 then :
18309 printf %s "(cached) " >&6
18310 else case e in #(
18311 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18312 /* end confdefs.h. */
18313 int i;
18314 _ACEOF
18315 if ac_fn_c_try_compile "$LINENO"
18316 then :
18317 xorg_cv_cc_flag_unused_command_line_argument=yes
18318 else case e in #(
18319 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18320 esac
18321 fi
18322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18323 esac
18324 fi
18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18326 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18327 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18328 CFLAGS="$xorg_testset_save_CFLAGS"
18329 fi
18330
18331 found="no"
18332
18333 if test $found = "no" ; then
18334 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18335 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18336 fi
18337
18338 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18339 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18340 fi
18341
18342 CFLAGS="$CFLAGS -Wimplicit"
18343
18344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
18345 printf %s "checking if $CC supports -Wimplicit... " >&6; }
18346 cacheid=xorg_cv_cc_flag__Wimplicit
18347 if eval test \${$cacheid+y}
18348 then :
18349 printf %s "(cached) " >&6
18350 else case e in #(
18351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18352 /* end confdefs.h. */
18353 int i;
18354 int
18355 main (void)
18356 {
18357
18358 ;
18359 return 0;
18360 }
18361 _ACEOF
18362 if ac_fn_c_try_link "$LINENO"
18363 then :
18364 eval $cacheid=yes
18365 else case e in #(
18366 e) eval $cacheid=no ;;
18367 esac
18368 fi
18369 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18370 conftest$ac_exeext conftest.$ac_ext ;;
18371 esac
18372 fi
18373
18374
18375 CFLAGS="$xorg_testset_save_CFLAGS"
18376
18377 eval supported=\$$cacheid
18378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18379 printf "%s\n" "$supported" >&6; }
18380 if test "$supported" = "yes" ; then
18381 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
18382 found="yes"
18383 fi
18384 fi
18385
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395
18396
18397
18398
18399
18400 xorg_testset_save_CFLAGS="$CFLAGS"
18401
18402 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18405 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18406 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18407 then :
18408 printf %s "(cached) " >&6
18409 else case e in #(
18410 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* end confdefs.h. */
18412 int i;
18413 _ACEOF
18414 if ac_fn_c_try_compile "$LINENO"
18415 then :
18416 xorg_cv_cc_flag_unknown_warning_option=yes
18417 else case e in #(
18418 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18419 esac
18420 fi
18421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18422 esac
18423 fi
18424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18425 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18426 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18427 CFLAGS="$xorg_testset_save_CFLAGS"
18428 fi
18429
18430 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18433 fi
18434 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18436 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18437 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18438 then :
18439 printf %s "(cached) " >&6
18440 else case e in #(
18441 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18443 int i;
18444 _ACEOF
18445 if ac_fn_c_try_compile "$LINENO"
18446 then :
18447 xorg_cv_cc_flag_unused_command_line_argument=yes
18448 else case e in #(
18449 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18450 esac
18451 fi
18452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18453 esac
18454 fi
18455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18456 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18457 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18458 CFLAGS="$xorg_testset_save_CFLAGS"
18459 fi
18460
18461 found="no"
18462
18463 if test $found = "no" ; then
18464 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18465 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18466 fi
18467
18468 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18470 fi
18471
18472 CFLAGS="$CFLAGS -Wnonnull"
18473
18474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
18475 printf %s "checking if $CC supports -Wnonnull... " >&6; }
18476 cacheid=xorg_cv_cc_flag__Wnonnull
18477 if eval test \${$cacheid+y}
18478 then :
18479 printf %s "(cached) " >&6
18480 else case e in #(
18481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18482 /* end confdefs.h. */
18483 int i;
18484 int
18485 main (void)
18486 {
18487
18488 ;
18489 return 0;
18490 }
18491 _ACEOF
18492 if ac_fn_c_try_link "$LINENO"
18493 then :
18494 eval $cacheid=yes
18495 else case e in #(
18496 e) eval $cacheid=no ;;
18497 esac
18498 fi
18499 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18500 conftest$ac_exeext conftest.$ac_ext ;;
18501 esac
18502 fi
18503
18504
18505 CFLAGS="$xorg_testset_save_CFLAGS"
18506
18507 eval supported=\$$cacheid
18508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18509 printf "%s\n" "$supported" >&6; }
18510 if test "$supported" = "yes" ; then
18511 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
18512 found="yes"
18513 fi
18514 fi
18515
18516
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530 xorg_testset_save_CFLAGS="$CFLAGS"
18531
18532 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18533 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18535 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18536 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18537 then :
18538 printf %s "(cached) " >&6
18539 else case e in #(
18540 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18542 int i;
18543 _ACEOF
18544 if ac_fn_c_try_compile "$LINENO"
18545 then :
18546 xorg_cv_cc_flag_unknown_warning_option=yes
18547 else case e in #(
18548 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18549 esac
18550 fi
18551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18552 esac
18553 fi
18554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18555 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18556 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18557 CFLAGS="$xorg_testset_save_CFLAGS"
18558 fi
18559
18560 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18561 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18562 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18563 fi
18564 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18566 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18567 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18568 then :
18569 printf %s "(cached) " >&6
18570 else case e in #(
18571 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18572 /* end confdefs.h. */
18573 int i;
18574 _ACEOF
18575 if ac_fn_c_try_compile "$LINENO"
18576 then :
18577 xorg_cv_cc_flag_unused_command_line_argument=yes
18578 else case e in #(
18579 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18580 esac
18581 fi
18582 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18583 esac
18584 fi
18585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18586 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18587 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18588 CFLAGS="$xorg_testset_save_CFLAGS"
18589 fi
18590
18591 found="no"
18592
18593 if test $found = "no" ; then
18594 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18595 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18596 fi
18597
18598 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18599 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18600 fi
18601
18602 CFLAGS="$CFLAGS -Winit-self"
18603
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
18605 printf %s "checking if $CC supports -Winit-self... " >&6; }
18606 cacheid=xorg_cv_cc_flag__Winit_self
18607 if eval test \${$cacheid+y}
18608 then :
18609 printf %s "(cached) " >&6
18610 else case e in #(
18611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18613 int i;
18614 int
18615 main (void)
18616 {
18617
18618 ;
18619 return 0;
18620 }
18621 _ACEOF
18622 if ac_fn_c_try_link "$LINENO"
18623 then :
18624 eval $cacheid=yes
18625 else case e in #(
18626 e) eval $cacheid=no ;;
18627 esac
18628 fi
18629 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18630 conftest$ac_exeext conftest.$ac_ext ;;
18631 esac
18632 fi
18633
18634
18635 CFLAGS="$xorg_testset_save_CFLAGS"
18636
18637 eval supported=\$$cacheid
18638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18639 printf "%s\n" "$supported" >&6; }
18640 if test "$supported" = "yes" ; then
18641 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
18642 found="yes"
18643 fi
18644 fi
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657
18658
18659
18660 xorg_testset_save_CFLAGS="$CFLAGS"
18661
18662 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18665 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18666 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18667 then :
18668 printf %s "(cached) " >&6
18669 else case e in #(
18670 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18671 /* end confdefs.h. */
18672 int i;
18673 _ACEOF
18674 if ac_fn_c_try_compile "$LINENO"
18675 then :
18676 xorg_cv_cc_flag_unknown_warning_option=yes
18677 else case e in #(
18678 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18679 esac
18680 fi
18681 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18682 esac
18683 fi
18684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18685 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18687 CFLAGS="$xorg_testset_save_CFLAGS"
18688 fi
18689
18690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18693 fi
18694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18696 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18697 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18698 then :
18699 printf %s "(cached) " >&6
18700 else case e in #(
18701 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18702 /* end confdefs.h. */
18703 int i;
18704 _ACEOF
18705 if ac_fn_c_try_compile "$LINENO"
18706 then :
18707 xorg_cv_cc_flag_unused_command_line_argument=yes
18708 else case e in #(
18709 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18710 esac
18711 fi
18712 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18713 esac
18714 fi
18715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18716 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18717 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18718 CFLAGS="$xorg_testset_save_CFLAGS"
18719 fi
18720
18721 found="no"
18722
18723 if test $found = "no" ; then
18724 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18726 fi
18727
18728 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18730 fi
18731
18732 CFLAGS="$CFLAGS -Wmain"
18733
18734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
18735 printf %s "checking if $CC supports -Wmain... " >&6; }
18736 cacheid=xorg_cv_cc_flag__Wmain
18737 if eval test \${$cacheid+y}
18738 then :
18739 printf %s "(cached) " >&6
18740 else case e in #(
18741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18742 /* end confdefs.h. */
18743 int i;
18744 int
18745 main (void)
18746 {
18747
18748 ;
18749 return 0;
18750 }
18751 _ACEOF
18752 if ac_fn_c_try_link "$LINENO"
18753 then :
18754 eval $cacheid=yes
18755 else case e in #(
18756 e) eval $cacheid=no ;;
18757 esac
18758 fi
18759 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18760 conftest$ac_exeext conftest.$ac_ext ;;
18761 esac
18762 fi
18763
18764
18765 CFLAGS="$xorg_testset_save_CFLAGS"
18766
18767 eval supported=\$$cacheid
18768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18769 printf "%s\n" "$supported" >&6; }
18770 if test "$supported" = "yes" ; then
18771 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
18772 found="yes"
18773 fi
18774 fi
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784
18785
18786
18787
18788
18789
18790 xorg_testset_save_CFLAGS="$CFLAGS"
18791
18792 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18793 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18795 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18796 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18797 then :
18798 printf %s "(cached) " >&6
18799 else case e in #(
18800 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18802 int i;
18803 _ACEOF
18804 if ac_fn_c_try_compile "$LINENO"
18805 then :
18806 xorg_cv_cc_flag_unknown_warning_option=yes
18807 else case e in #(
18808 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18809 esac
18810 fi
18811 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18812 esac
18813 fi
18814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18815 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18816 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18817 CFLAGS="$xorg_testset_save_CFLAGS"
18818 fi
18819
18820 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18821 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18822 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18823 fi
18824 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18826 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18827 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18828 then :
18829 printf %s "(cached) " >&6
18830 else case e in #(
18831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18832 /* end confdefs.h. */
18833 int i;
18834 _ACEOF
18835 if ac_fn_c_try_compile "$LINENO"
18836 then :
18837 xorg_cv_cc_flag_unused_command_line_argument=yes
18838 else case e in #(
18839 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18840 esac
18841 fi
18842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18843 esac
18844 fi
18845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18846 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18847 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18848 CFLAGS="$xorg_testset_save_CFLAGS"
18849 fi
18850
18851 found="no"
18852
18853 if test $found = "no" ; then
18854 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18855 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18856 fi
18857
18858 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18860 fi
18861
18862 CFLAGS="$CFLAGS -Wmissing-braces"
18863
18864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
18865 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
18866 cacheid=xorg_cv_cc_flag__Wmissing_braces
18867 if eval test \${$cacheid+y}
18868 then :
18869 printf %s "(cached) " >&6
18870 else case e in #(
18871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18873 int i;
18874 int
18875 main (void)
18876 {
18877
18878 ;
18879 return 0;
18880 }
18881 _ACEOF
18882 if ac_fn_c_try_link "$LINENO"
18883 then :
18884 eval $cacheid=yes
18885 else case e in #(
18886 e) eval $cacheid=no ;;
18887 esac
18888 fi
18889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18890 conftest$ac_exeext conftest.$ac_ext ;;
18891 esac
18892 fi
18893
18894
18895 CFLAGS="$xorg_testset_save_CFLAGS"
18896
18897 eval supported=\$$cacheid
18898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18899 printf "%s\n" "$supported" >&6; }
18900 if test "$supported" = "yes" ; then
18901 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
18902 found="yes"
18903 fi
18904 fi
18905
18906
18907
18908
18909
18910
18911
18912
18913
18914
18915
18916
18917
18918
18919
18920 xorg_testset_save_CFLAGS="$CFLAGS"
18921
18922 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18925 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18926 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18927 then :
18928 printf %s "(cached) " >&6
18929 else case e in #(
18930 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18931 /* end confdefs.h. */
18932 int i;
18933 _ACEOF
18934 if ac_fn_c_try_compile "$LINENO"
18935 then :
18936 xorg_cv_cc_flag_unknown_warning_option=yes
18937 else case e in #(
18938 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
18939 esac
18940 fi
18941 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18942 esac
18943 fi
18944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18945 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18946 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18947 CFLAGS="$xorg_testset_save_CFLAGS"
18948 fi
18949
18950 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18953 fi
18954 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18956 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18957 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18958 then :
18959 printf %s "(cached) " >&6
18960 else case e in #(
18961 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18962 /* end confdefs.h. */
18963 int i;
18964 _ACEOF
18965 if ac_fn_c_try_compile "$LINENO"
18966 then :
18967 xorg_cv_cc_flag_unused_command_line_argument=yes
18968 else case e in #(
18969 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
18970 esac
18971 fi
18972 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18973 esac
18974 fi
18975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18976 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18977 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18978 CFLAGS="$xorg_testset_save_CFLAGS"
18979 fi
18980
18981 found="no"
18982
18983 if test $found = "no" ; then
18984 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18985 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18986 fi
18987
18988 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18989 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18990 fi
18991
18992 CFLAGS="$CFLAGS -Wsequence-point"
18993
18994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18995 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18996 cacheid=xorg_cv_cc_flag__Wsequence_point
18997 if eval test \${$cacheid+y}
18998 then :
18999 printf %s "(cached) " >&6
19000 else case e in #(
19001 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19002 /* end confdefs.h. */
19003 int i;
19004 int
19005 main (void)
19006 {
19007
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_link "$LINENO"
19013 then :
19014 eval $cacheid=yes
19015 else case e in #(
19016 e) eval $cacheid=no ;;
19017 esac
19018 fi
19019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19020 conftest$ac_exeext conftest.$ac_ext ;;
19021 esac
19022 fi
19023
19024
19025 CFLAGS="$xorg_testset_save_CFLAGS"
19026
19027 eval supported=\$$cacheid
19028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19029 printf "%s\n" "$supported" >&6; }
19030 if test "$supported" = "yes" ; then
19031 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
19032 found="yes"
19033 fi
19034 fi
19035
19036
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046
19047
19048
19049
19050 xorg_testset_save_CFLAGS="$CFLAGS"
19051
19052 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19053 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19055 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19056 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19057 then :
19058 printf %s "(cached) " >&6
19059 else case e in #(
19060 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19061 /* end confdefs.h. */
19062 int i;
19063 _ACEOF
19064 if ac_fn_c_try_compile "$LINENO"
19065 then :
19066 xorg_cv_cc_flag_unknown_warning_option=yes
19067 else case e in #(
19068 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19069 esac
19070 fi
19071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19072 esac
19073 fi
19074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19075 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19076 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19077 CFLAGS="$xorg_testset_save_CFLAGS"
19078 fi
19079
19080 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19081 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19082 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19083 fi
19084 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19086 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19087 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19088 then :
19089 printf %s "(cached) " >&6
19090 else case e in #(
19091 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19092 /* end confdefs.h. */
19093 int i;
19094 _ACEOF
19095 if ac_fn_c_try_compile "$LINENO"
19096 then :
19097 xorg_cv_cc_flag_unused_command_line_argument=yes
19098 else case e in #(
19099 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19100 esac
19101 fi
19102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19103 esac
19104 fi
19105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19106 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19107 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19108 CFLAGS="$xorg_testset_save_CFLAGS"
19109 fi
19110
19111 found="no"
19112
19113 if test $found = "no" ; then
19114 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19115 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19116 fi
19117
19118 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19119 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19120 fi
19121
19122 CFLAGS="$CFLAGS -Wreturn-type"
19123
19124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
19125 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
19126 cacheid=xorg_cv_cc_flag__Wreturn_type
19127 if eval test \${$cacheid+y}
19128 then :
19129 printf %s "(cached) " >&6
19130 else case e in #(
19131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19132 /* end confdefs.h. */
19133 int i;
19134 int
19135 main (void)
19136 {
19137
19138 ;
19139 return 0;
19140 }
19141 _ACEOF
19142 if ac_fn_c_try_link "$LINENO"
19143 then :
19144 eval $cacheid=yes
19145 else case e in #(
19146 e) eval $cacheid=no ;;
19147 esac
19148 fi
19149 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19150 conftest$ac_exeext conftest.$ac_ext ;;
19151 esac
19152 fi
19153
19154
19155 CFLAGS="$xorg_testset_save_CFLAGS"
19156
19157 eval supported=\$$cacheid
19158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19159 printf "%s\n" "$supported" >&6; }
19160 if test "$supported" = "yes" ; then
19161 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
19162 found="yes"
19163 fi
19164 fi
19165
19166
19167
19168
19169
19170
19171
19172
19173
19174
19175
19176
19177
19178
19179
19180 xorg_testset_save_CFLAGS="$CFLAGS"
19181
19182 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19183 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19185 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19186 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19187 then :
19188 printf %s "(cached) " >&6
19189 else case e in #(
19190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19191 /* end confdefs.h. */
19192 int i;
19193 _ACEOF
19194 if ac_fn_c_try_compile "$LINENO"
19195 then :
19196 xorg_cv_cc_flag_unknown_warning_option=yes
19197 else case e in #(
19198 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19199 esac
19200 fi
19201 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19202 esac
19203 fi
19204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19205 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19206 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19207 CFLAGS="$xorg_testset_save_CFLAGS"
19208 fi
19209
19210 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19211 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19212 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19213 fi
19214 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19216 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19217 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19218 then :
19219 printf %s "(cached) " >&6
19220 else case e in #(
19221 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19222 /* end confdefs.h. */
19223 int i;
19224 _ACEOF
19225 if ac_fn_c_try_compile "$LINENO"
19226 then :
19227 xorg_cv_cc_flag_unused_command_line_argument=yes
19228 else case e in #(
19229 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19230 esac
19231 fi
19232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19233 esac
19234 fi
19235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19236 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19237 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19238 CFLAGS="$xorg_testset_save_CFLAGS"
19239 fi
19240
19241 found="no"
19242
19243 if test $found = "no" ; then
19244 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19245 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19246 fi
19247
19248 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19249 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19250 fi
19251
19252 CFLAGS="$CFLAGS -Wtrigraphs"
19253
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
19255 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
19256 cacheid=xorg_cv_cc_flag__Wtrigraphs
19257 if eval test \${$cacheid+y}
19258 then :
19259 printf %s "(cached) " >&6
19260 else case e in #(
19261 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h. */
19263 int i;
19264 int
19265 main (void)
19266 {
19267
19268 ;
19269 return 0;
19270 }
19271 _ACEOF
19272 if ac_fn_c_try_link "$LINENO"
19273 then :
19274 eval $cacheid=yes
19275 else case e in #(
19276 e) eval $cacheid=no ;;
19277 esac
19278 fi
19279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19280 conftest$ac_exeext conftest.$ac_ext ;;
19281 esac
19282 fi
19283
19284
19285 CFLAGS="$xorg_testset_save_CFLAGS"
19286
19287 eval supported=\$$cacheid
19288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19289 printf "%s\n" "$supported" >&6; }
19290 if test "$supported" = "yes" ; then
19291 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
19292 found="yes"
19293 fi
19294 fi
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310 xorg_testset_save_CFLAGS="$CFLAGS"
19311
19312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19315 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19316 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19317 then :
19318 printf %s "(cached) " >&6
19319 else case e in #(
19320 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19321 /* end confdefs.h. */
19322 int i;
19323 _ACEOF
19324 if ac_fn_c_try_compile "$LINENO"
19325 then :
19326 xorg_cv_cc_flag_unknown_warning_option=yes
19327 else case e in #(
19328 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19329 esac
19330 fi
19331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19332 esac
19333 fi
19334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19335 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19336 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19337 CFLAGS="$xorg_testset_save_CFLAGS"
19338 fi
19339
19340 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19341 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19343 fi
19344 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19346 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19347 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19348 then :
19349 printf %s "(cached) " >&6
19350 else case e in #(
19351 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19353 int i;
19354 _ACEOF
19355 if ac_fn_c_try_compile "$LINENO"
19356 then :
19357 xorg_cv_cc_flag_unused_command_line_argument=yes
19358 else case e in #(
19359 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19360 esac
19361 fi
19362 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19363 esac
19364 fi
19365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19366 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19367 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19368 CFLAGS="$xorg_testset_save_CFLAGS"
19369 fi
19370
19371 found="no"
19372
19373 if test $found = "no" ; then
19374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19376 fi
19377
19378 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19379 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19380 fi
19381
19382 CFLAGS="$CFLAGS -Warray-bounds"
19383
19384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
19385 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
19386 cacheid=xorg_cv_cc_flag__Warray_bounds
19387 if eval test \${$cacheid+y}
19388 then :
19389 printf %s "(cached) " >&6
19390 else case e in #(
19391 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19392 /* end confdefs.h. */
19393 int i;
19394 int
19395 main (void)
19396 {
19397
19398 ;
19399 return 0;
19400 }
19401 _ACEOF
19402 if ac_fn_c_try_link "$LINENO"
19403 then :
19404 eval $cacheid=yes
19405 else case e in #(
19406 e) eval $cacheid=no ;;
19407 esac
19408 fi
19409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19410 conftest$ac_exeext conftest.$ac_ext ;;
19411 esac
19412 fi
19413
19414
19415 CFLAGS="$xorg_testset_save_CFLAGS"
19416
19417 eval supported=\$$cacheid
19418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19419 printf "%s\n" "$supported" >&6; }
19420 if test "$supported" = "yes" ; then
19421 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
19422 found="yes"
19423 fi
19424 fi
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436
19437
19438
19439
19440 xorg_testset_save_CFLAGS="$CFLAGS"
19441
19442 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19443 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19445 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19446 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19447 then :
19448 printf %s "(cached) " >&6
19449 else case e in #(
19450 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19451 /* end confdefs.h. */
19452 int i;
19453 _ACEOF
19454 if ac_fn_c_try_compile "$LINENO"
19455 then :
19456 xorg_cv_cc_flag_unknown_warning_option=yes
19457 else case e in #(
19458 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19459 esac
19460 fi
19461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19462 esac
19463 fi
19464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19465 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19466 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19467 CFLAGS="$xorg_testset_save_CFLAGS"
19468 fi
19469
19470 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19471 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19473 fi
19474 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19476 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19477 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19478 then :
19479 printf %s "(cached) " >&6
19480 else case e in #(
19481 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19482 /* end confdefs.h. */
19483 int i;
19484 _ACEOF
19485 if ac_fn_c_try_compile "$LINENO"
19486 then :
19487 xorg_cv_cc_flag_unused_command_line_argument=yes
19488 else case e in #(
19489 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19490 esac
19491 fi
19492 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19493 esac
19494 fi
19495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19496 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19497 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19498 CFLAGS="$xorg_testset_save_CFLAGS"
19499 fi
19500
19501 found="no"
19502
19503 if test $found = "no" ; then
19504 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19506 fi
19507
19508 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19510 fi
19511
19512 CFLAGS="$CFLAGS -Wwrite-strings"
19513
19514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
19515 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
19516 cacheid=xorg_cv_cc_flag__Wwrite_strings
19517 if eval test \${$cacheid+y}
19518 then :
19519 printf %s "(cached) " >&6
19520 else case e in #(
19521 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522 /* end confdefs.h. */
19523 int i;
19524 int
19525 main (void)
19526 {
19527
19528 ;
19529 return 0;
19530 }
19531 _ACEOF
19532 if ac_fn_c_try_link "$LINENO"
19533 then :
19534 eval $cacheid=yes
19535 else case e in #(
19536 e) eval $cacheid=no ;;
19537 esac
19538 fi
19539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19540 conftest$ac_exeext conftest.$ac_ext ;;
19541 esac
19542 fi
19543
19544
19545 CFLAGS="$xorg_testset_save_CFLAGS"
19546
19547 eval supported=\$$cacheid
19548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19549 printf "%s\n" "$supported" >&6; }
19550 if test "$supported" = "yes" ; then
19551 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
19552 found="yes"
19553 fi
19554 fi
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570 xorg_testset_save_CFLAGS="$CFLAGS"
19571
19572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19575 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19576 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19577 then :
19578 printf %s "(cached) " >&6
19579 else case e in #(
19580 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19582 int i;
19583 _ACEOF
19584 if ac_fn_c_try_compile "$LINENO"
19585 then :
19586 xorg_cv_cc_flag_unknown_warning_option=yes
19587 else case e in #(
19588 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19589 esac
19590 fi
19591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19592 esac
19593 fi
19594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19595 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19596 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19597 CFLAGS="$xorg_testset_save_CFLAGS"
19598 fi
19599
19600 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19601 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19603 fi
19604 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19606 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19607 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19608 then :
19609 printf %s "(cached) " >&6
19610 else case e in #(
19611 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19612 /* end confdefs.h. */
19613 int i;
19614 _ACEOF
19615 if ac_fn_c_try_compile "$LINENO"
19616 then :
19617 xorg_cv_cc_flag_unused_command_line_argument=yes
19618 else case e in #(
19619 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19620 esac
19621 fi
19622 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19623 esac
19624 fi
19625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19626 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19627 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19628 CFLAGS="$xorg_testset_save_CFLAGS"
19629 fi
19630
19631 found="no"
19632
19633 if test $found = "no" ; then
19634 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19635 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19636 fi
19637
19638 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19639 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19640 fi
19641
19642 CFLAGS="$CFLAGS -Waddress"
19643
19644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
19645 printf %s "checking if $CC supports -Waddress... " >&6; }
19646 cacheid=xorg_cv_cc_flag__Waddress
19647 if eval test \${$cacheid+y}
19648 then :
19649 printf %s "(cached) " >&6
19650 else case e in #(
19651 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652 /* end confdefs.h. */
19653 int i;
19654 int
19655 main (void)
19656 {
19657
19658 ;
19659 return 0;
19660 }
19661 _ACEOF
19662 if ac_fn_c_try_link "$LINENO"
19663 then :
19664 eval $cacheid=yes
19665 else case e in #(
19666 e) eval $cacheid=no ;;
19667 esac
19668 fi
19669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19670 conftest$ac_exeext conftest.$ac_ext ;;
19671 esac
19672 fi
19673
19674
19675 CFLAGS="$xorg_testset_save_CFLAGS"
19676
19677 eval supported=\$$cacheid
19678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19679 printf "%s\n" "$supported" >&6; }
19680 if test "$supported" = "yes" ; then
19681 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
19682 found="yes"
19683 fi
19684 fi
19685
19686
19687
19688
19689
19690
19691
19692
19693
19694
19695
19696
19697
19698
19699
19700 xorg_testset_save_CFLAGS="$CFLAGS"
19701
19702 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19703 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19705 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19706 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19707 then :
19708 printf %s "(cached) " >&6
19709 else case e in #(
19710 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19711 /* end confdefs.h. */
19712 int i;
19713 _ACEOF
19714 if ac_fn_c_try_compile "$LINENO"
19715 then :
19716 xorg_cv_cc_flag_unknown_warning_option=yes
19717 else case e in #(
19718 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19719 esac
19720 fi
19721 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19722 esac
19723 fi
19724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19725 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19726 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19727 CFLAGS="$xorg_testset_save_CFLAGS"
19728 fi
19729
19730 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19733 fi
19734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19736 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19737 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19738 then :
19739 printf %s "(cached) " >&6
19740 else case e in #(
19741 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19742 /* end confdefs.h. */
19743 int i;
19744 _ACEOF
19745 if ac_fn_c_try_compile "$LINENO"
19746 then :
19747 xorg_cv_cc_flag_unused_command_line_argument=yes
19748 else case e in #(
19749 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19750 esac
19751 fi
19752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19753 esac
19754 fi
19755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19756 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19757 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19758 CFLAGS="$xorg_testset_save_CFLAGS"
19759 fi
19760
19761 found="no"
19762
19763 if test $found = "no" ; then
19764 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19765 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19766 fi
19767
19768 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19769 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19770 fi
19771
19772 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
19773
19774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
19775 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
19776 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
19777 if eval test \${$cacheid+y}
19778 then :
19779 printf %s "(cached) " >&6
19780 else case e in #(
19781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19782 /* end confdefs.h. */
19783 int i;
19784 int
19785 main (void)
19786 {
19787
19788 ;
19789 return 0;
19790 }
19791 _ACEOF
19792 if ac_fn_c_try_link "$LINENO"
19793 then :
19794 eval $cacheid=yes
19795 else case e in #(
19796 e) eval $cacheid=no ;;
19797 esac
19798 fi
19799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19800 conftest$ac_exeext conftest.$ac_ext ;;
19801 esac
19802 fi
19803
19804
19805 CFLAGS="$xorg_testset_save_CFLAGS"
19806
19807 eval supported=\$$cacheid
19808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19809 printf "%s\n" "$supported" >&6; }
19810 if test "$supported" = "yes" ; then
19811 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
19812 found="yes"
19813 fi
19814 fi
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830 xorg_testset_save_CFLAGS="$CFLAGS"
19831
19832 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19835 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19836 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19837 then :
19838 printf %s "(cached) " >&6
19839 else case e in #(
19840 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19841 /* end confdefs.h. */
19842 int i;
19843 _ACEOF
19844 if ac_fn_c_try_compile "$LINENO"
19845 then :
19846 xorg_cv_cc_flag_unknown_warning_option=yes
19847 else case e in #(
19848 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
19849 esac
19850 fi
19851 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19852 esac
19853 fi
19854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19855 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19856 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19857 CFLAGS="$xorg_testset_save_CFLAGS"
19858 fi
19859
19860 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19861 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19862 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19863 fi
19864 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19866 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19867 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19868 then :
19869 printf %s "(cached) " >&6
19870 else case e in #(
19871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872 /* end confdefs.h. */
19873 int i;
19874 _ACEOF
19875 if ac_fn_c_try_compile "$LINENO"
19876 then :
19877 xorg_cv_cc_flag_unused_command_line_argument=yes
19878 else case e in #(
19879 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
19880 esac
19881 fi
19882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19883 esac
19884 fi
19885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19886 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19888 CFLAGS="$xorg_testset_save_CFLAGS"
19889 fi
19890
19891 found="no"
19892
19893 if test $found = "no" ; then
19894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19896 fi
19897
19898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19900 fi
19901
19902 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
19903
19904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
19905 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
19906 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
19907 if eval test \${$cacheid+y}
19908 then :
19909 printf %s "(cached) " >&6
19910 else case e in #(
19911 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19913 int i;
19914 int
19915 main (void)
19916 {
19917
19918 ;
19919 return 0;
19920 }
19921 _ACEOF
19922 if ac_fn_c_try_link "$LINENO"
19923 then :
19924 eval $cacheid=yes
19925 else case e in #(
19926 e) eval $cacheid=no ;;
19927 esac
19928 fi
19929 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19930 conftest$ac_exeext conftest.$ac_ext ;;
19931 esac
19932 fi
19933
19934
19935 CFLAGS="$xorg_testset_save_CFLAGS"
19936
19937 eval supported=\$$cacheid
19938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19939 printf "%s\n" "$supported" >&6; }
19940 if test "$supported" = "yes" ; then
19941 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
19942 found="yes"
19943 fi
19944 fi
19945
19946
19947 fi
19948
19949
19950
19951
19952
19953
19954
19955 CWARNFLAGS="$BASE_CFLAGS"
19956 if test "x$GCC" = xyes ; then
19957 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
19958 fi
19959
19960
19961
19962
19963
19964
19965
19966
19967 # Check whether --enable-strict-compilation was given.
19968 if test ${enable_strict_compilation+y}
19969 then :
19970 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
19971 else case e in #(
19972 e) STRICT_COMPILE=no ;;
19973 esac
19974 fi
19975
19976
19977
19978
19979
19980
19981 STRICT_CFLAGS=""
19982
19983
19984
19985
19986
19987
19988
19989
19990
19991
19992
19993
19994
19995 xorg_testset_save_CFLAGS="$CFLAGS"
19996
19997 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19998 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20000 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20001 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20002 then :
20003 printf %s "(cached) " >&6
20004 else case e in #(
20005 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20006 /* end confdefs.h. */
20007 int i;
20008 _ACEOF
20009 if ac_fn_c_try_compile "$LINENO"
20010 then :
20011 xorg_cv_cc_flag_unknown_warning_option=yes
20012 else case e in #(
20013 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20014 esac
20015 fi
20016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20017 esac
20018 fi
20019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20020 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20021 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20022 CFLAGS="$xorg_testset_save_CFLAGS"
20023 fi
20024
20025 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20026 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20027 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20028 fi
20029 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20031 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20032 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20033 then :
20034 printf %s "(cached) " >&6
20035 else case e in #(
20036 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20037 /* end confdefs.h. */
20038 int i;
20039 _ACEOF
20040 if ac_fn_c_try_compile "$LINENO"
20041 then :
20042 xorg_cv_cc_flag_unused_command_line_argument=yes
20043 else case e in #(
20044 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20045 esac
20046 fi
20047 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20048 esac
20049 fi
20050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20051 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20053 CFLAGS="$xorg_testset_save_CFLAGS"
20054 fi
20055
20056 found="no"
20057
20058 if test $found = "no" ; then
20059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20061 fi
20062
20063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20065 fi
20066
20067 CFLAGS="$CFLAGS -pedantic"
20068
20069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
20070 printf %s "checking if $CC supports -pedantic... " >&6; }
20071 cacheid=xorg_cv_cc_flag__pedantic
20072 if eval test \${$cacheid+y}
20073 then :
20074 printf %s "(cached) " >&6
20075 else case e in #(
20076 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20077 /* end confdefs.h. */
20078 int i;
20079 int
20080 main (void)
20081 {
20082
20083 ;
20084 return 0;
20085 }
20086 _ACEOF
20087 if ac_fn_c_try_link "$LINENO"
20088 then :
20089 eval $cacheid=yes
20090 else case e in #(
20091 e) eval $cacheid=no ;;
20092 esac
20093 fi
20094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20095 conftest$ac_exeext conftest.$ac_ext ;;
20096 esac
20097 fi
20098
20099
20100 CFLAGS="$xorg_testset_save_CFLAGS"
20101
20102 eval supported=\$$cacheid
20103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20104 printf "%s\n" "$supported" >&6; }
20105 if test "$supported" = "yes" ; then
20106 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
20107 found="yes"
20108 fi
20109 fi
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119
20120
20121
20122
20123
20124
20125 xorg_testset_save_CFLAGS="$CFLAGS"
20126
20127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
20128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
20130 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
20131 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
20132 then :
20133 printf %s "(cached) " >&6
20134 else case e in #(
20135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20136 /* end confdefs.h. */
20137 int i;
20138 _ACEOF
20139 if ac_fn_c_try_compile "$LINENO"
20140 then :
20141 xorg_cv_cc_flag_unknown_warning_option=yes
20142 else case e in #(
20143 e) xorg_cv_cc_flag_unknown_warning_option=no ;;
20144 esac
20145 fi
20146 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20147 esac
20148 fi
20149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
20150 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
20151 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
20152 CFLAGS="$xorg_testset_save_CFLAGS"
20153 fi
20154
20155 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
20156 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20157 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20158 fi
20159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
20161 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
20162 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
20163 then :
20164 printf %s "(cached) " >&6
20165 else case e in #(
20166 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20167 /* end confdefs.h. */
20168 int i;
20169 _ACEOF
20170 if ac_fn_c_try_compile "$LINENO"
20171 then :
20172 xorg_cv_cc_flag_unused_command_line_argument=yes
20173 else case e in #(
20174 e) xorg_cv_cc_flag_unused_command_line_argument=no ;;
20175 esac
20176 fi
20177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20178 esac
20179 fi
20180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
20181 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
20182 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
20183 CFLAGS="$xorg_testset_save_CFLAGS"
20184 fi
20185
20186 found="no"
20187
20188 if test $found = "no" ; then
20189 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20191 fi
20192
20193 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20194 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20195 fi
20196
20197 CFLAGS="$CFLAGS -Werror"
20198
20199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
20200 printf %s "checking if $CC supports -Werror... " >&6; }
20201 cacheid=xorg_cv_cc_flag__Werror
20202 if eval test \${$cacheid+y}
20203 then :
20204 printf %s "(cached) " >&6
20205 else case e in #(
20206 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20207 /* end confdefs.h. */
20208 int i;
20209 int
20210 main (void)
20211 {
20212
20213 ;
20214 return 0;
20215 }
20216 _ACEOF
20217 if ac_fn_c_try_link "$LINENO"
20218 then :
20219 eval $cacheid=yes
20220 else case e in #(
20221 e) eval $cacheid=no ;;
20222 esac
20223 fi
20224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20225 conftest$ac_exeext conftest.$ac_ext ;;
20226 esac
20227 fi
20228
20229
20230 CFLAGS="$xorg_testset_save_CFLAGS"
20231
20232 eval supported=\$$cacheid
20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20234 printf "%s\n" "$supported" >&6; }
20235 if test "$supported" = "yes" ; then
20236 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
20237 found="yes"
20238 fi
20239 fi
20240
20241 if test $found = "no" ; then
20242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
20243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
20244 fi
20245
20246 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
20247 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
20248 fi
20249
20250 CFLAGS="$CFLAGS -errwarn"
20251
20252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
20253 printf %s "checking if $CC supports -errwarn... " >&6; }
20254 cacheid=xorg_cv_cc_flag__errwarn
20255 if eval test \${$cacheid+y}
20256 then :
20257 printf %s "(cached) " >&6
20258 else case e in #(
20259 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20260 /* end confdefs.h. */
20261 int i;
20262 int
20263 main (void)
20264 {
20265
20266 ;
20267 return 0;
20268 }
20269 _ACEOF
20270 if ac_fn_c_try_link "$LINENO"
20271 then :
20272 eval $cacheid=yes
20273 else case e in #(
20274 e) eval $cacheid=no ;;
20275 esac
20276 fi
20277 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20278 conftest$ac_exeext conftest.$ac_ext ;;
20279 esac
20280 fi
20281
20282
20283 CFLAGS="$xorg_testset_save_CFLAGS"
20284
20285 eval supported=\$$cacheid
20286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
20287 printf "%s\n" "$supported" >&6; }
20288 if test "$supported" = "yes" ; then
20289 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
20290 found="yes"
20291 fi
20292 fi
20293
20294
20295
20296 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
20297 # activate it with -Werror, so we add it here explicitly.
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=attributes"
20384
20385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
20386 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
20387 cacheid=xorg_cv_cc_flag__Werror_attributes
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=attributes"
20423 found="yes"
20424 fi
20425 fi
20426
20427
20428
20429 if test "x$STRICT_COMPILE" = "xyes"; then
20430 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
20431 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
20432 fi
20433
20434
20435
20436
20437
20438
20439
20440
20441 cat >>confdefs.h <<_ACEOF
20442 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
20443 _ACEOF
20444
20445 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
20446 if test "x$PVM" = "x"; then
20447 PVM="0"
20448 fi
20449
20450 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
20451
20452 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
20453 if test "x$PVP" = "x"; then
20454 PVP="0"
20455 fi
20456
20457 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
20458
20459
20460
20461 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
20462 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
20463 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
20464 touch \$(top_srcdir)/ChangeLog; \
20465 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
20466
20467
20468
20469
20470 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
20471 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
20472 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
20473 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
20474 touch \$(top_srcdir)/INSTALL; \
20475 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
20476
20477
20478
20479
20480
20481
20482 case $host_os in
20483 solaris*)
20484 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
20485 # check for a man page file found in later versions that use
20486 # traditional section numbers instead
20487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
20488 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
20489 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
20490 then :
20491 printf %s "(cached) " >&6
20492 else case e in #(
20493 e) test "$cross_compiling" = yes &&
20494 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20495 if test -r "/usr/share/man/man7/attributes.7"; then
20496 ac_cv_file__usr_share_man_man7_attributes_7=yes
20497 else
20498 ac_cv_file__usr_share_man_man7_attributes_7=no
20499 fi ;;
20500 esac
20501 fi
20502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
20503 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
20504 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
20505 then :
20506 SYSV_MAN_SECTIONS=false
20507 else case e in #(
20508 e) SYSV_MAN_SECTIONS=true ;;
20509 esac
20510 fi
20511
20512 ;;
20513 *) SYSV_MAN_SECTIONS=false ;;
20514 esac
20515
20516 if test x$APP_MAN_SUFFIX = x ; then
20517 APP_MAN_SUFFIX=1
20518 fi
20519 if test x$APP_MAN_DIR = x ; then
20520 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
20521 fi
20522
20523 if test x$LIB_MAN_SUFFIX = x ; then
20524 LIB_MAN_SUFFIX=3
20525 fi
20526 if test x$LIB_MAN_DIR = x ; then
20527 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
20528 fi
20529
20530 if test x$FILE_MAN_SUFFIX = x ; then
20531 case $SYSV_MAN_SECTIONS in
20532 true) FILE_MAN_SUFFIX=4 ;;
20533 *) FILE_MAN_SUFFIX=5 ;;
20534 esac
20535 fi
20536 if test x$FILE_MAN_DIR = x ; then
20537 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
20538 fi
20539
20540 if test x$MISC_MAN_SUFFIX = x ; then
20541 case $SYSV_MAN_SECTIONS in
20542 true) MISC_MAN_SUFFIX=5 ;;
20543 *) MISC_MAN_SUFFIX=7 ;;
20544 esac
20545 fi
20546 if test x$MISC_MAN_DIR = x ; then
20547 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
20548 fi
20549
20550 if test x$DRIVER_MAN_SUFFIX = x ; then
20551 case $SYSV_MAN_SECTIONS in
20552 true) DRIVER_MAN_SUFFIX=7 ;;
20553 *) DRIVER_MAN_SUFFIX=4 ;;
20554 esac
20555 fi
20556 if test x$DRIVER_MAN_DIR = x ; then
20557 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
20558 fi
20559
20560 if test x$ADMIN_MAN_SUFFIX = x ; then
20561 case $SYSV_MAN_SECTIONS in
20562 true) ADMIN_MAN_SUFFIX=1m ;;
20563 *) ADMIN_MAN_SUFFIX=8 ;;
20564 esac
20565 fi
20566 if test x$ADMIN_MAN_DIR = x ; then
20567 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
20568 fi
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584 XORG_MAN_PAGE="X Version 11"
20585
20586 MAN_SUBSTS="\
20587 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20588 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
20589 -e 's|__xservername__|Xorg|g' \
20590 -e 's|__xconfigfile__|xorg.conf|g' \
20591 -e 's|__projectroot__|\$(prefix)|g' \
20592 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
20593 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
20594 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
20595 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
20596 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
20597 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
20598 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
20599
20600
20601
20602
20603 AM_DEFAULT_VERBOSITY=0
20604
20605
20606
20607
20608
20609 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
20610
20611
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
20625 printf %s "checking for root directory for font files... " >&6; }
20626
20627 # Check whether --with-fontrootdir was given.
20628 if test ${with_fontrootdir+y}
20629 then :
20630 withval=$with_fontrootdir; FONTROOTDIR="$withval"
20631 fi
20632
20633 # if --with-fontrootdir not specified...
20634 if test "x${FONTROOTDIR}" = "x"; then
20635 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
20636 fi
20637 # ...and if pkg-config didn't find fontdir in fontutil.pc...
20638 if test "x${FONTROOTDIR}" = "x"; then
20639 FONTROOTDIR="${datadir}/fonts/X11"
20640 fi
20641
20642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
20643 printf "%s\n" "${FONTROOTDIR}" >&6; }
20644
20645
20646
20647
20648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
20649 printf %s "checking for directory for encodings files... " >&6; }
20650
20651 # Check whether --with-encodingsdir was given.
20652 if test ${with_encodingsdir+y}
20653 then :
20654 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
20655 else case e in #(
20656 e) ENCODINGSDIR='${FONTROOTDIR}/encodings' ;;
20657 esac
20658 fi
20659
20660
20661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
20662 printf "%s\n" "${ENCODINGSDIR}" >&6; }
20663
20664
20665 # zlib - try pkg-config first, then fallback to old method for
20666 # systems like darwin without a zlib.pc file
20667
20668 pkg_failed=no
20669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
20670 printf %s "checking for ZLIB... " >&6; }
20671
20672 if test -n "$ZLIB_CFLAGS"; then
20673 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20674 elif test -n "$PKG_CONFIG"; then
20675 if test -n "$PKG_CONFIG" && \
20676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20677 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20678 ac_status=$?
20679 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20680 test $ac_status = 0; }; then
20681 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
20682 test "x$?" != "x0" && pkg_failed=yes
20683 else
20684 pkg_failed=yes
20685 fi
20686 else
20687 pkg_failed=untried
20688 fi
20689 if test -n "$ZLIB_LIBS"; then
20690 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20691 elif test -n "$PKG_CONFIG"; then
20692 if test -n "$PKG_CONFIG" && \
20693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20694 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20695 ac_status=$?
20696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20697 test $ac_status = 0; }; then
20698 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
20699 test "x$?" != "x0" && pkg_failed=yes
20700 else
20701 pkg_failed=yes
20702 fi
20703 else
20704 pkg_failed=untried
20705 fi
20706
20707
20708
20709 if test $pkg_failed = yes; then
20710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20711 printf "%s\n" "no" >&6; }
20712
20713 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20714 _pkg_short_errors_supported=yes
20715 else
20716 _pkg_short_errors_supported=no
20717 fi
20718 if test $_pkg_short_errors_supported = yes; then
20719 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
20720 else
20721 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
20722 fi
20723 # Put the nasty error message in config.log where it belongs
20724 echo "$ZLIB_PKG_ERRORS" >&5
20725
20726 Z_REQUIRES=""
20727 elif test $pkg_failed = untried; then
20728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20729 printf "%s\n" "no" >&6; }
20730 Z_REQUIRES=""
20731 else
20732 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20733 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20735 printf "%s\n" "yes" >&6; }
20736 Z_REQUIRES=zlib
20737 fi
20738 if test "x$Z_REQUIRES" = "x"; then
20739 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20740 if test "x$ac_cv_header_zlib_h" = xyes
20741 then :
20742
20743 else case e in #(
20744 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20745 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20746 as_fn_error $? "zlib.h is required to compile libfontenc
20747 See 'config.log' for more details" "$LINENO" 5; } ;;
20748 esac
20749 fi
20750
20751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
20752 printf %s "checking for gzclose in -lz... " >&6; }
20753 if test ${ac_cv_lib_z_gzclose+y}
20754 then :
20755 printf %s "(cached) " >&6
20756 else case e in #(
20757 e) ac_check_lib_save_LIBS=$LIBS
20758 LIBS="-lz $LIBS"
20759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20760 /* end confdefs.h. */
20761
20762 /* Override any GCC internal prototype to avoid an error.
20763 Use char because int might match the return type of a GCC
20764 builtin and then its argument prototype would still apply.
20765 The 'extern "C"' is for builds by C++ compilers;
20766 although this is not generally supported in C code supporting it here
20767 has little cost and some practical benefit (sr 110532). */
20768 #ifdef __cplusplus
20769 extern "C"
20770 #endif
20771 char gzclose (void);
20772 int
20773 main (void)
20774 {
20775 return gzclose ();
20776 ;
20777 return 0;
20778 }
20779 _ACEOF
20780 if ac_fn_c_try_link "$LINENO"
20781 then :
20782 ac_cv_lib_z_gzclose=yes
20783 else case e in #(
20784 e) ac_cv_lib_z_gzclose=no ;;
20785 esac
20786 fi
20787 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20788 conftest$ac_exeext conftest.$ac_ext
20789 LIBS=$ac_check_lib_save_LIBS ;;
20790 esac
20791 fi
20792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
20793 printf "%s\n" "$ac_cv_lib_z_gzclose" >&6; }
20794 if test "x$ac_cv_lib_z_gzclose" = xyes
20795 then :
20796 ZLIB_LIBS=-lz
20797 else case e in #(
20798 e) as_fn_error $? "zlib is required to compile libfontenc" "$LINENO" 5 ;;
20799 esac
20800 fi
20801
20802 fi
20803
20804
20805 # Obtain compiler/linker options for dependencies
20806
20807 pkg_failed=no
20808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
20809 printf %s "checking for FONTENC... " >&6; }
20810
20811 if test -n "$FONTENC_CFLAGS"; then
20812 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
20813 elif test -n "$PKG_CONFIG"; then
20814 if test -n "$PKG_CONFIG" && \
20815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20816 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20817 ac_status=$?
20818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20819 test $ac_status = 0; }; then
20820 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
20821 test "x$?" != "x0" && pkg_failed=yes
20822 else
20823 pkg_failed=yes
20824 fi
20825 else
20826 pkg_failed=untried
20827 fi
20828 if test -n "$FONTENC_LIBS"; then
20829 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
20830 elif test -n "$PKG_CONFIG"; then
20831 if test -n "$PKG_CONFIG" && \
20832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
20833 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
20834 ac_status=$?
20835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20836 test $ac_status = 0; }; then
20837 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
20838 test "x$?" != "x0" && pkg_failed=yes
20839 else
20840 pkg_failed=yes
20841 fi
20842 else
20843 pkg_failed=untried
20844 fi
20845
20846
20847
20848 if test $pkg_failed = yes; then
20849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20850 printf "%s\n" "no" >&6; }
20851
20852 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20853 _pkg_short_errors_supported=yes
20854 else
20855 _pkg_short_errors_supported=no
20856 fi
20857 if test $_pkg_short_errors_supported = yes; then
20858 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
20859 else
20860 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
20861 fi
20862 # Put the nasty error message in config.log where it belongs
20863 echo "$FONTENC_PKG_ERRORS" >&5
20864
20865 as_fn_error $? "Package requirements (xproto) were not met:
20866
20867 $FONTENC_PKG_ERRORS
20868
20869 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20870 installed software in a non-standard prefix.
20871
20872 Alternatively, you may set the environment variables FONTENC_CFLAGS
20873 and FONTENC_LIBS to avoid the need to call pkg-config.
20874 See the pkg-config man page for more details." "$LINENO" 5
20875 elif test $pkg_failed = untried; then
20876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20877 printf "%s\n" "no" >&6; }
20878 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20879 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20880 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20881 is in your PATH or set the PKG_CONFIG environment variable to the full
20882 path to pkg-config.
20883
20884 Alternatively, you may set the environment variables FONTENC_CFLAGS
20885 and FONTENC_LIBS to avoid the need to call pkg-config.
20886 See the pkg-config man page for more details.
20887
20888 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20889 See 'config.log' for more details" "$LINENO" 5; }
20890 else
20891 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
20892 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
20893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20894 printf "%s\n" "yes" >&6; }
20895
20896 fi
20897
20898 # Checks for typedefs, structures, and compiler characteristics.
20899 # Check whether --enable-largefile was given.
20900 if test ${enable_largefile+y}
20901 then :
20902 enableval=$enable_largefile;
20903 fi
20904 if test "$enable_largefile,$enable_year2038" != no,no
20905 then :
20906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
20907 printf %s "checking for $CC option to enable large file support... " >&6; }
20908 if test ${ac_cv_sys_largefile_opts+y}
20909 then :
20910 printf %s "(cached) " >&6
20911 else case e in #(
20912 e) ac_save_CC="$CC"
20913 ac_opt_found=no
20914 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
20915 if test x"$ac_opt" != x"none needed"
20916 then :
20917 CC="$ac_save_CC $ac_opt"
20918 fi
20919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20920 /* end confdefs.h. */
20921 #include <sys/types.h>
20922 #ifndef FTYPE
20923 # define FTYPE off_t
20924 #endif
20925 /* Check that FTYPE can represent 2**63 - 1 correctly.
20926 We can't simply define LARGE_FTYPE to be 9223372036854775807,
20927 since some C++ compilers masquerading as C compilers
20928 incorrectly reject 9223372036854775807. */
20929 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
20930 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
20931 && LARGE_FTYPE % 2147483647 == 1)
20932 ? 1 : -1];
20933 int
20934 main (void)
20935 {
20936
20937 ;
20938 return 0;
20939 }
20940 _ACEOF
20941 if ac_fn_c_try_compile "$LINENO"
20942 then :
20943 if test x"$ac_opt" = x"none needed"
20944 then :
20945 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
20946 CC="$CC -DFTYPE=ino_t"
20947 if ac_fn_c_try_compile "$LINENO"
20948 then :
20949
20950 else case e in #(
20951 e) CC="$CC -D_FILE_OFFSET_BITS=64"
20952 if ac_fn_c_try_compile "$LINENO"
20953 then :
20954 ac_opt='-D_FILE_OFFSET_BITS=64'
20955 fi
20956 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
20957 esac
20958 fi
20959 rm -f core conftest.err conftest.$ac_objext conftest.beam
20960 fi
20961 ac_cv_sys_largefile_opts=$ac_opt
20962 ac_opt_found=yes
20963 fi
20964 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20965 test $ac_opt_found = no || break
20966 done
20967 CC="$ac_save_CC"
20968
20969 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
20970 esac
20971 fi
20972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
20973 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
20974
20975 ac_have_largefile=yes
20976 case $ac_cv_sys_largefile_opts in #(
20977 "none needed") :
20978 ;; #(
20979 "supported through gnulib") :
20980 ;; #(
20981 "support not detected") :
20982 ac_have_largefile=no ;; #(
20983 "-D_FILE_OFFSET_BITS=64") :
20984
20985 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
20986 ;; #(
20987 "-D_LARGE_FILES=1") :
20988
20989 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
20990 ;; #(
20991 "-n32") :
20992 CC="$CC -n32" ;; #(
20993 *) :
20994 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
20995 esac
20996
20997 if test "$enable_year2038" != no
20998 then :
20999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
21000 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
21001 if test ${ac_cv_sys_year2038_opts+y}
21002 then :
21003 printf %s "(cached) " >&6
21004 else case e in #(
21005 e) ac_save_CPPFLAGS="$CPPFLAGS"
21006 ac_opt_found=no
21007 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
21008 if test x"$ac_opt" != x"none needed"
21009 then :
21010 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
21011 fi
21012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21013 /* end confdefs.h. */
21014
21015 #include <time.h>
21016 /* Check that time_t can represent 2**32 - 1 correctly. */
21017 #define LARGE_TIME_T \\
21018 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
21019 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
21020 && LARGE_TIME_T % 65537 == 0)
21021 ? 1 : -1];
21022
21023 int
21024 main (void)
21025 {
21026
21027 ;
21028 return 0;
21029 }
21030 _ACEOF
21031 if ac_fn_c_try_compile "$LINENO"
21032 then :
21033 ac_cv_sys_year2038_opts="$ac_opt"
21034 ac_opt_found=yes
21035 fi
21036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21037 test $ac_opt_found = no || break
21038 done
21039 CPPFLAGS="$ac_save_CPPFLAGS"
21040 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
21041 esac
21042 fi
21043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
21044 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
21045
21046 ac_have_year2038=yes
21047 case $ac_cv_sys_year2038_opts in #(
21048 "none needed") :
21049 ;; #(
21050 "support not detected") :
21051 ac_have_year2038=no ;; #(
21052 "-D_TIME_BITS=64") :
21053
21054 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
21055 ;; #(
21056 "-D__MINGW_USE_VC2005_COMPAT") :
21057
21058 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
21059 ;; #(
21060 "-U_USE_32_BIT_TIME_T"*) :
21061 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
21062 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
21063 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
21064 will stop working after mid-January 2038. Remove
21065 _USE_32BIT_TIME_T from the compiler flags.
21066 See 'config.log' for more details" "$LINENO" 5; } ;; #(
21067 *) :
21068 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
21069 esac
21070
21071 fi
21072
21073 fi
21074
21075 # Checks for library functions.
21076 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
21077 if test "x$ac_cv_func_reallocarray" = xyes
21078 then :
21079 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
21080
21081 else case e in #(
21082 e) case " $LIBOBJS " in
21083 *" reallocarray.$ac_objext "* ) ;;
21084 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
21085 ;;
21086 esac
21087 ;;
21088 esac
21089 fi
21090
21091
21092 # Allow checking code with lint, sparse, etc.
21093
21094
21095
21096
21097
21098 # Check whether --with-lint was given.
21099 if test ${with_lint+y}
21100 then :
21101 withval=$with_lint; use_lint=$withval
21102 else case e in #(
21103 e) use_lint=no ;;
21104 esac
21105 fi
21106
21107
21108 # Obtain platform specific info like program name and options
21109 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
21110 case $host_os in
21111 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
21112 lint_name=splint
21113 lint_options="-badflag"
21114 ;;
21115 *freebsd* | *netbsd*)
21116 lint_name=lint
21117 lint_options="-u -b"
21118 ;;
21119 *solaris*)
21120 lint_name=lint
21121 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
21122 ;;
21123 esac
21124
21125 # Test for the presence of the program (either guessed by the code or spelled out by the user)
21126 if test "x$use_lint" = x"yes" ; then
21127 # Extract the first word of "$lint_name", so it can be a program name with args.
21128 set dummy $lint_name; ac_word=$2
21129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21130 printf %s "checking for $ac_word... " >&6; }
21131 if test ${ac_cv_path_LINT+y}
21132 then :
21133 printf %s "(cached) " >&6
21134 else case e in #(
21135 e) case $LINT in
21136 [\\/]* | ?:[\\/]*)
21137 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
21138 ;;
21139 *)
21140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21141 for as_dir in $PATH
21142 do
21143 IFS=$as_save_IFS
21144 case $as_dir in #(((
21145 '') as_dir=./ ;;
21146 */) ;;
21147 *) as_dir=$as_dir/ ;;
21148 esac
21149 for ac_exec_ext in '' $ac_executable_extensions; do
21150 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21151 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
21152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21153 break 2
21154 fi
21155 done
21156 done
21157 IFS=$as_save_IFS
21158
21159 ;;
21160 esac ;;
21161 esac
21162 fi
21163 LINT=$ac_cv_path_LINT
21164 if test -n "$LINT"; then
21165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
21166 printf "%s\n" "$LINT" >&6; }
21167 else
21168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21169 printf "%s\n" "no" >&6; }
21170 fi
21171
21172
21173 if test "x$LINT" = "x"; then
21174 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
21175 fi
21176 elif test "x$use_lint" = x"no" ; then
21177 if test "x$LINT" != "x"; then
21178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
21179 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
21180 fi
21181 else
21182 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
21183 fi
21184
21185 # User supplied flags override default flags
21186 if test "x$LINT_FLAGS" != "x"; then
21187 lint_options=$LINT_FLAGS
21188 fi
21189
21190 LINT_FLAGS=$lint_options
21191
21192 if test "x$LINT" != x; then
21193 LINT_TRUE=
21194 LINT_FALSE='#'
21195 else
21196 LINT_TRUE='#'
21197 LINT_FALSE=
21198 fi
21199
21200
21201
21202 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
21203
21204 ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
21205
21206 cat >confcache <<\_ACEOF
21207 # This file is a shell script that caches the results of configure
21208 # tests run on this system so they can be shared between configure
21209 # scripts and configure runs, see configure's option --config-cache.
21210 # It is not useful on other systems. If it contains results you don't
21211 # want to keep, you may remove or edit it.
21212 #
21213 # config.status only pays attention to the cache file if you give it
21214 # the --recheck option to rerun configure.
21215 #
21216 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21217 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21218 # following values.
21219
21220 _ACEOF
21221
21222 # The following way of writing the cache mishandles newlines in values,
21223 # but we know of no workaround that is simple, portable, and efficient.
21224 # So, we kill variables containing newlines.
21225 # Ultrix sh set writes to stderr and can't be redirected directly,
21226 # and sets the high bit in the cache file unless we assign to the vars.
21227 (
21228 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21229 eval ac_val=\$$ac_var
21230 case $ac_val in #(
21231 *${as_nl}*)
21232 case $ac_var in #(
21233 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21234 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21235 esac
21236 case $ac_var in #(
21237 _ | IFS | as_nl) ;; #(
21238 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21239 *) { eval $ac_var=; unset $ac_var;} ;;
21240 esac ;;
21241 esac
21242 done
21243
21244 (set) 2>&1 |
21245 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21246 *${as_nl}ac_space=\ *)
21247 # 'set' does not quote correctly, so add quotes: double-quote
21248 # substitution turns \\\\ into \\, and sed turns \\ into \.
21249 sed -n \
21250 "s/'/'\\\\''/g;
21251 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21252 ;; #(
21253 *)
21254 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21255 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21256 ;;
21257 esac |
21258 sort
21259 ) |
21260 sed '
21261 /^ac_cv_env_/b end
21262 t clear
21263 :clear
21264 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21265 t end
21266 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21267 :end' >>confcache
21268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21269 if test -w "$cache_file"; then
21270 if test "x$cache_file" != "x/dev/null"; then
21271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21272 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21273 if test ! -f "$cache_file" || test -h "$cache_file"; then
21274 cat confcache >"$cache_file"
21275 else
21276 case $cache_file in #(
21277 */* | ?:*)
21278 mv -f confcache "$cache_file"$$ &&
21279 mv -f "$cache_file"$$ "$cache_file" ;; #(
21280 *)
21281 mv -f confcache "$cache_file" ;;
21282 esac
21283 fi
21284 fi
21285 else
21286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21287 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21288 fi
21289 fi
21290 rm -f confcache
21291
21292 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21293 # Let make expand exec_prefix.
21294 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21295
21296 DEFS=-DHAVE_CONFIG_H
21297
21298 ac_libobjs=
21299 ac_ltlibobjs=
21300 U=
21301 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21302 # 1. Remove the extension, and $U if already installed.
21303 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21304 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21305 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21306 # will be set to the directory where LIBOBJS objects are built.
21307 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21308 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21309 done
21310 LIBOBJS=$ac_libobjs
21311
21312 LTLIBOBJS=$ac_ltlibobjs
21313
21314
21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21316 printf %s "checking that generated files are newer than configure... " >&6; }
21317 if test -n "$am_sleep_pid"; then
21318 # Hide warnings about reused PIDs.
21319 wait $am_sleep_pid 2>/dev/null
21320 fi
21321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21322 printf "%s\n" "done" >&6; }
21323 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21324 as_fn_error $? "conditional \"AMDEP\" was never defined.
21325 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21326 fi
21327 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21328 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21329 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21330 fi
21331 case $enable_silent_rules in # (((
21332 yes) AM_DEFAULT_VERBOSITY=0;;
21333 no) AM_DEFAULT_VERBOSITY=1;;
21334 esac
21335 if test $am_cv_make_support_nested_variables = yes; then
21336 AM_V='$(V)'
21337 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21338 else
21339 AM_V=$AM_DEFAULT_VERBOSITY
21340 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21341 fi
21342
21343 if test -n "$EXEEXT"; then
21344 am__EXEEXT_TRUE=
21345 am__EXEEXT_FALSE='#'
21346 else
21347 am__EXEEXT_TRUE='#'
21348 am__EXEEXT_FALSE=
21349 fi
21350
21351 # Check whether --enable-year2038 was given.
21352 if test ${enable_year2038+y}
21353 then :
21354 enableval=$enable_year2038;
21355 fi
21356
21357 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
21358 as_fn_error $? "conditional \"LINT\" was never defined.
21359 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21360 fi
21361
21362 : "${CONFIG_STATUS=./config.status}"
21363 ac_write_fail=0
21364 ac_clean_files_save=$ac_clean_files
21365 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21367 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21368 as_write_fail=0
21369 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21370 #! $SHELL
21371 # Generated by $as_me.
21372 # Run this file to recreate the current configuration.
21373 # Compiler output produced by configure, useful for debugging
21374 # configure, is in config.log if it exists.
21375
21376 debug=false
21377 ac_cs_recheck=false
21378 ac_cs_silent=false
21379
21380 SHELL=\${CONFIG_SHELL-$SHELL}
21381 export SHELL
21382 _ASEOF
21383 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21384 ## -------------------- ##
21385 ## M4sh Initialization. ##
21386 ## -------------------- ##
21387
21388 # Be more Bourne compatible
21389 DUALCASE=1; export DUALCASE # for MKS sh
21390 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21391 then :
21392 emulate sh
21393 NULLCMD=:
21394 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21395 # is contrary to our usage. Disable this feature.
21396 alias -g '${1+"$@"}'='"$@"'
21397 setopt NO_GLOB_SUBST
21398 else case e in #(
21399 e) case `(set -o) 2>/dev/null` in #(
21400 *posix*) :
21401 set -o posix ;; #(
21402 *) :
21403 ;;
21404 esac ;;
21405 esac
21406 fi
21407
21408
21409
21410 # Reset variables that may have inherited troublesome values from
21411 # the environment.
21412
21413 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21414 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21415 # side effect of setting IFS to empty, thus disabling word splitting.)
21416 # Quoting is to prevent editors from complaining about space-tab.
21417 as_nl='
21418 '
21419 export as_nl
21420 IFS=" "" $as_nl"
21421
21422 PS1='$ '
21423 PS2='> '
21424 PS4='+ '
21425
21426 # Ensure predictable behavior from utilities with locale-dependent output.
21427 LC_ALL=C
21428 export LC_ALL
21429 LANGUAGE=C
21430 export LANGUAGE
21431
21432 # We cannot yet rely on "unset" to work, but we need these variables
21433 # to be unset--not just set to an empty or harmless value--now, to
21434 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21435 # also avoids known problems related to "unset" and subshell syntax
21436 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21437 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21438 do eval test \${$as_var+y} \
21439 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21440 done
21441
21442 # Ensure that fds 0, 1, and 2 are open.
21443 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21444 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21445 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21446
21447 # The user is always right.
21448 if ${PATH_SEPARATOR+false} :; then
21449 PATH_SEPARATOR=:
21450 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21451 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21452 PATH_SEPARATOR=';'
21453 }
21454 fi
21455
21456
21457 # Find who we are. Look in the path if we contain no directory separator.
21458 as_myself=
21459 case $0 in #((
21460 *[\\/]* ) as_myself=$0 ;;
21461 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21462 for as_dir in $PATH
21463 do
21464 IFS=$as_save_IFS
21465 case $as_dir in #(((
21466 '') as_dir=./ ;;
21467 */) ;;
21468 *) as_dir=$as_dir/ ;;
21469 esac
21470 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21471 done
21472 IFS=$as_save_IFS
21473
21474 ;;
21475 esac
21476 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21477 # in which case we are not to be found in the path.
21478 if test "x$as_myself" = x; then
21479 as_myself=$0
21480 fi
21481 if test ! -f "$as_myself"; then
21482 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21483 exit 1
21484 fi
21485
21486
21487
21488 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21489 # ----------------------------------------
21490 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21491 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21492 # script with STATUS, using 1 if that was 0.
21493 as_fn_error ()
21494 {
21495 as_status=$1; test $as_status -eq 0 && as_status=1
21496 if test "$4"; then
21497 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21499 fi
21500 printf "%s\n" "$as_me: error: $2" >&2
21501 as_fn_exit $as_status
21502 } # as_fn_error
21503
21504
21505 # as_fn_set_status STATUS
21506 # -----------------------
21507 # Set $? to STATUS, without forking.
21508 as_fn_set_status ()
21509 {
21510 return $1
21511 } # as_fn_set_status
21512
21513 # as_fn_exit STATUS
21514 # -----------------
21515 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21516 as_fn_exit ()
21517 {
21518 set +e
21519 as_fn_set_status $1
21520 exit $1
21521 } # as_fn_exit
21522
21523 # as_fn_unset VAR
21524 # ---------------
21525 # Portably unset VAR.
21526 as_fn_unset ()
21527 {
21528 { eval $1=; unset $1;}
21529 }
21530 as_unset=as_fn_unset
21531
21532 # as_fn_append VAR VALUE
21533 # ----------------------
21534 # Append the text in VALUE to the end of the definition contained in VAR. Take
21535 # advantage of any shell optimizations that allow amortized linear growth over
21536 # repeated appends, instead of the typical quadratic growth present in naive
21537 # implementations.
21538 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21539 then :
21540 eval 'as_fn_append ()
21541 {
21542 eval $1+=\$2
21543 }'
21544 else case e in #(
21545 e) as_fn_append ()
21546 {
21547 eval $1=\$$1\$2
21548 } ;;
21549 esac
21550 fi # as_fn_append
21551
21552 # as_fn_arith ARG...
21553 # ------------------
21554 # Perform arithmetic evaluation on the ARGs, and store the result in the
21555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21556 # must be portable across $(()) and expr.
21557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21558 then :
21559 eval 'as_fn_arith ()
21560 {
21561 as_val=$(( $* ))
21562 }'
21563 else case e in #(
21564 e) as_fn_arith ()
21565 {
21566 as_val=`expr "$@" || test $? -eq 1`
21567 } ;;
21568 esac
21569 fi # as_fn_arith
21570
21571
21572 if expr a : '\(a\)' >/dev/null 2>&1 &&
21573 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21574 as_expr=expr
21575 else
21576 as_expr=false
21577 fi
21578
21579 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21580 as_basename=basename
21581 else
21582 as_basename=false
21583 fi
21584
21585 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21586 as_dirname=dirname
21587 else
21588 as_dirname=false
21589 fi
21590
21591 as_me=`$as_basename -- "$0" ||
21592 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21593 X"$0" : 'X\(//\)$' \| \
21594 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21595 printf "%s\n" X/"$0" |
21596 sed '/^.*\/\([^/][^/]*\)\/*$/{
21597 s//\1/
21598 q
21599 }
21600 /^X\/\(\/\/\)$/{
21601 s//\1/
21602 q
21603 }
21604 /^X\/\(\/\).*/{
21605 s//\1/
21606 q
21607 }
21608 s/.*/./; q'`
21609
21610 # Avoid depending upon Character Ranges.
21611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21614 as_cr_digits='0123456789'
21615 as_cr_alnum=$as_cr_Letters$as_cr_digits
21616
21617
21618 # Determine whether it's possible to make 'echo' print without a newline.
21619 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21620 # for compatibility with existing Makefiles.
21621 ECHO_C= ECHO_N= ECHO_T=
21622 case `echo -n x` in #(((((
21623 -n*)
21624 case `echo 'xy\c'` in
21625 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21626 xy) ECHO_C='\c';;
21627 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21628 ECHO_T=' ';;
21629 esac;;
21630 *)
21631 ECHO_N='-n';;
21632 esac
21633
21634 # For backward compatibility with old third-party macros, we provide
21635 # the shell variables $as_echo and $as_echo_n. New code should use
21636 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21637 as_echo='printf %s\n'
21638 as_echo_n='printf %s'
21639
21640 rm -f conf$$ conf$$.exe conf$$.file
21641 if test -d conf$$.dir; then
21642 rm -f conf$$.dir/conf$$.file
21643 else
21644 rm -f conf$$.dir
21645 mkdir conf$$.dir 2>/dev/null
21646 fi
21647 if (echo >conf$$.file) 2>/dev/null; then
21648 if ln -s conf$$.file conf$$ 2>/dev/null; then
21649 as_ln_s='ln -s'
21650 # ... but there are two gotchas:
21651 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21652 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21653 # In both cases, we have to default to 'cp -pR'.
21654 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21655 as_ln_s='cp -pR'
21656 elif ln conf$$.file conf$$ 2>/dev/null; then
21657 as_ln_s=ln
21658 else
21659 as_ln_s='cp -pR'
21660 fi
21661 else
21662 as_ln_s='cp -pR'
21663 fi
21664 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21665 rmdir conf$$.dir 2>/dev/null
21666
21667
21668 # as_fn_mkdir_p
21669 # -------------
21670 # Create "$as_dir" as a directory, including parents if necessary.
21671 as_fn_mkdir_p ()
21672 {
21673
21674 case $as_dir in #(
21675 -*) as_dir=./$as_dir;;
21676 esac
21677 test -d "$as_dir" || eval $as_mkdir_p || {
21678 as_dirs=
21679 while :; do
21680 case $as_dir in #(
21681 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21682 *) as_qdir=$as_dir;;
21683 esac
21684 as_dirs="'$as_qdir' $as_dirs"
21685 as_dir=`$as_dirname -- "$as_dir" ||
21686 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21687 X"$as_dir" : 'X\(//\)[^/]' \| \
21688 X"$as_dir" : 'X\(//\)$' \| \
21689 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21690 printf "%s\n" X"$as_dir" |
21691 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21692 s//\1/
21693 q
21694 }
21695 /^X\(\/\/\)[^/].*/{
21696 s//\1/
21697 q
21698 }
21699 /^X\(\/\/\)$/{
21700 s//\1/
21701 q
21702 }
21703 /^X\(\/\).*/{
21704 s//\1/
21705 q
21706 }
21707 s/.*/./; q'`
21708 test -d "$as_dir" && break
21709 done
21710 test -z "$as_dirs" || eval "mkdir $as_dirs"
21711 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21712
21713
21714 } # as_fn_mkdir_p
21715 if mkdir -p . 2>/dev/null; then
21716 as_mkdir_p='mkdir -p "$as_dir"'
21717 else
21718 test -d ./-p && rmdir ./-p
21719 as_mkdir_p=false
21720 fi
21721
21722
21723 # as_fn_executable_p FILE
21724 # -----------------------
21725 # Test if FILE is an executable regular file.
21726 as_fn_executable_p ()
21727 {
21728 test -f "$1" && test -x "$1"
21729 } # as_fn_executable_p
21730 as_test_x='test -x'
21731 as_executable_p=as_fn_executable_p
21732
21733 # Sed expression to map a string onto a valid CPP name.
21734 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21735 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21736
21737 # Sed expression to map a string onto a valid variable name.
21738 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21739 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21740
21741
21742 exec 6>&1
21743 ## ----------------------------------- ##
21744 ## Main body of $CONFIG_STATUS script. ##
21745 ## ----------------------------------- ##
21746 _ASEOF
21747 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21748
21749 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21750 # Save the log message, to keep $0 and so on meaningful, and to
21751 # report actual input values of CONFIG_FILES etc. instead of their
21752 # values after options handling.
21753 ac_log="
21754 This file was extended by libfontenc $as_me 1.1.9, which was
21755 generated by GNU Autoconf 2.72. Invocation command line was
21756
21757 CONFIG_FILES = $CONFIG_FILES
21758 CONFIG_HEADERS = $CONFIG_HEADERS
21759 CONFIG_LINKS = $CONFIG_LINKS
21760 CONFIG_COMMANDS = $CONFIG_COMMANDS
21761 $ $0 $@
21762
21763 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21764 "
21765
21766 _ACEOF
21767
21768 case $ac_config_files in *"
21769 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21770 esac
21771
21772 case $ac_config_headers in *"
21773 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21774 esac
21775
21776
21777 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21778 # Files that config.status was made for.
21779 config_files="$ac_config_files"
21780 config_headers="$ac_config_headers"
21781 config_commands="$ac_config_commands"
21782
21783 _ACEOF
21784
21785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21786 ac_cs_usage="\
21787 '$as_me' instantiates files and other configuration actions
21788 from templates according to the current configuration. Unless the files
21789 and actions are specified as TAGs, all are instantiated by default.
21790
21791 Usage: $0 [OPTION]... [TAG]...
21792
21793 -h, --help print this help, then exit
21794 -V, --version print version number and configuration settings, then exit
21795 --config print configuration, then exit
21796 -q, --quiet, --silent
21797 do not print progress messages
21798 -d, --debug don't remove temporary files
21799 --recheck update $as_me by reconfiguring in the same conditions
21800 --file=FILE[:TEMPLATE]
21801 instantiate the configuration file FILE
21802 --header=FILE[:TEMPLATE]
21803 instantiate the configuration header FILE
21804
21805 Configuration files:
21806 $config_files
21807
21808 Configuration headers:
21809 $config_headers
21810
21811 Configuration commands:
21812 $config_commands
21813
21814 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>."
21815
21816 _ACEOF
21817 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21818 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21820 ac_cs_config='$ac_cs_config_escaped'
21821 ac_cs_version="\\
21822 libfontenc config.status 1.1.9
21823 configured by $0, generated by GNU Autoconf 2.72,
21824 with options \\"\$ac_cs_config\\"
21825
21826 Copyright (C) 2023 Free Software Foundation, Inc.
21827 This config.status script is free software; the Free Software Foundation
21828 gives unlimited permission to copy, distribute and modify it."
21829
21830 ac_pwd='$ac_pwd'
21831 srcdir='$srcdir'
21832 INSTALL='$INSTALL'
21833 MKDIR_P='$MKDIR_P'
21834 AWK='$AWK'
21835 test -n "\$AWK" || AWK=awk
21836 _ACEOF
21837
21838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21839 # The default lists apply if the user does not specify any file.
21840 ac_need_defaults=:
21841 while test $# != 0
21842 do
21843 case $1 in
21844 --*=?*)
21845 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21846 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21847 ac_shift=:
21848 ;;
21849 --*=)
21850 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21851 ac_optarg=
21852 ac_shift=:
21853 ;;
21854 *)
21855 ac_option=$1
21856 ac_optarg=$2
21857 ac_shift=shift
21858 ;;
21859 esac
21860
21861 case $ac_option in
21862 # Handling of the options.
21863 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21864 ac_cs_recheck=: ;;
21865 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21866 printf "%s\n" "$ac_cs_version"; exit ;;
21867 --config | --confi | --conf | --con | --co | --c )
21868 printf "%s\n" "$ac_cs_config"; exit ;;
21869 --debug | --debu | --deb | --de | --d | -d )
21870 debug=: ;;
21871 --file | --fil | --fi | --f )
21872 $ac_shift
21873 case $ac_optarg in
21874 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21875 '') as_fn_error $? "missing file argument" ;;
21876 esac
21877 as_fn_append CONFIG_FILES " '$ac_optarg'"
21878 ac_need_defaults=false;;
21879 --header | --heade | --head | --hea )
21880 $ac_shift
21881 case $ac_optarg in
21882 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21883 esac
21884 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21885 ac_need_defaults=false;;
21886 --he | --h)
21887 # Conflict between --help and --header
21888 as_fn_error $? "ambiguous option: '$1'
21889 Try '$0 --help' for more information.";;
21890 --help | --hel | -h )
21891 printf "%s\n" "$ac_cs_usage"; exit ;;
21892 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21893 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21894 ac_cs_silent=: ;;
21895
21896 # This is an error.
21897 -*) as_fn_error $? "unrecognized option: '$1'
21898 Try '$0 --help' for more information." ;;
21899
21900 *) as_fn_append ac_config_targets " $1"
21901 ac_need_defaults=false ;;
21902
21903 esac
21904 shift
21905 done
21906
21907 ac_configure_extra_args=
21908
21909 if $ac_cs_silent; then
21910 exec 6>/dev/null
21911 ac_configure_extra_args="$ac_configure_extra_args --silent"
21912 fi
21913
21914 _ACEOF
21915 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21916 if \$ac_cs_recheck; then
21917 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21918 shift
21919 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21920 CONFIG_SHELL='$SHELL'
21921 export CONFIG_SHELL
21922 exec "\$@"
21923 fi
21924
21925 _ACEOF
21926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21927 exec 5>>config.log
21928 {
21929 echo
21930 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21931 ## Running $as_me. ##
21932 _ASBOX
21933 printf "%s\n" "$ac_log"
21934 } >&5
21935
21936 _ACEOF
21937 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21938 #
21939 # INIT-COMMANDS
21940 #
21941 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21942
21943
21944 # The HP-UX ksh and POSIX shell print the target directory to stdout
21945 # if CDPATH is set.
21946 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21947
21948 sed_quote_subst='$sed_quote_subst'
21949 double_quote_subst='$double_quote_subst'
21950 delay_variable_subst='$delay_variable_subst'
21951 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21952 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21953 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21954 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21955 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21956 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21957 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21958 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21959 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21960 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21961 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21962 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21963 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21964 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21965 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21966 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21967 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21968 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21969 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21970 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21971 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21972 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21973 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21974 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21975 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21976 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21977 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21978 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21979 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21980 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21981 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21982 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21983 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21984 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21985 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
21986 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21987 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21988 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21989 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21990 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21991 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21992 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21993 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21994 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
21995 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21996 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21997 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21998 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21999 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22000 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22001 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22002 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22003 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22004 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22005 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22006 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22007 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22008 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22009 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22010 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22011 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"`'
22012 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22013 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22014 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22015 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22016 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22017 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22018 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22019 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22020 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22021 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22022 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22023 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22024 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22025 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22026 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22027 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22028 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22029 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22030 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22031 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22032 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22033 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22034 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22035 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22036 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22037 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22038 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22039 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22040 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22041 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22042 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22043 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22044 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22045 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22046 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22047 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22048 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22049 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22050 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22051 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22052 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22053 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22054 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22055 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22056 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22057 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22058 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22059 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22060 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22061 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22062 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22063 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22064 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22065 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22066 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22067 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22068 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22069 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22070 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22071 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22072 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22073 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22074 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22075 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22076 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22077 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22078 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22079 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22080 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22081 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22082 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22083 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22084 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22085 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22086 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22087 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22088
22089 LTCC='$LTCC'
22090 LTCFLAGS='$LTCFLAGS'
22091 compiler='$compiler_DEFAULT'
22092
22093 # A function that is used when there is no print builtin or printf.
22094 func_fallback_echo ()
22095 {
22096 eval 'cat <<_LTECHO_EOF
22097 \$1
22098 _LTECHO_EOF'
22099 }
22100
22101 # Quote evaled strings.
22102 for var in SHELL \
22103 ECHO \
22104 PATH_SEPARATOR \
22105 SED \
22106 GREP \
22107 EGREP \
22108 FGREP \
22109 LD \
22110 NM \
22111 LN_S \
22112 lt_SP2NL \
22113 lt_NL2SP \
22114 reload_flag \
22115 FILECMD \
22116 OBJDUMP \
22117 deplibs_check_method \
22118 file_magic_cmd \
22119 file_magic_glob \
22120 want_nocaseglob \
22121 DLLTOOL \
22122 sharedlib_from_linklib_cmd \
22123 AR \
22124 archiver_list_spec \
22125 STRIP \
22126 RANLIB \
22127 CC \
22128 CFLAGS \
22129 compiler \
22130 lt_cv_sys_global_symbol_pipe \
22131 lt_cv_sys_global_symbol_to_cdecl \
22132 lt_cv_sys_global_symbol_to_import \
22133 lt_cv_sys_global_symbol_to_c_name_address \
22134 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22135 lt_cv_nm_interface \
22136 nm_file_list_spec \
22137 lt_cv_truncate_bin \
22138 lt_prog_compiler_no_builtin_flag \
22139 lt_prog_compiler_pic \
22140 lt_prog_compiler_wl \
22141 lt_prog_compiler_static \
22142 lt_cv_prog_compiler_c_o \
22143 need_locks \
22144 MANIFEST_TOOL \
22145 DSYMUTIL \
22146 NMEDIT \
22147 LIPO \
22148 OTOOL \
22149 OTOOL64 \
22150 shrext_cmds \
22151 export_dynamic_flag_spec \
22152 whole_archive_flag_spec \
22153 compiler_needs_object \
22154 with_gnu_ld \
22155 allow_undefined_flag \
22156 no_undefined_flag \
22157 hardcode_libdir_flag_spec \
22158 hardcode_libdir_separator \
22159 exclude_expsyms \
22160 include_expsyms \
22161 file_list_spec \
22162 variables_saved_for_relink \
22163 libname_spec \
22164 library_names_spec \
22165 soname_spec \
22166 install_override_mode \
22167 finish_eval \
22168 old_striplib \
22169 striplib; do
22170 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22171 *[\\\\\\\`\\"\\\$]*)
22172 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22173 ;;
22174 *)
22175 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22176 ;;
22177 esac
22178 done
22179
22180 # Double-quote double-evaled strings.
22181 for var in reload_cmds \
22182 old_postinstall_cmds \
22183 old_postuninstall_cmds \
22184 old_archive_cmds \
22185 extract_expsyms_cmds \
22186 old_archive_from_new_cmds \
22187 old_archive_from_expsyms_cmds \
22188 archive_cmds \
22189 archive_expsym_cmds \
22190 module_cmds \
22191 module_expsym_cmds \
22192 export_symbols_cmds \
22193 prelink_cmds \
22194 postlink_cmds \
22195 postinstall_cmds \
22196 postuninstall_cmds \
22197 finish_cmds \
22198 sys_lib_search_path_spec \
22199 configure_time_dlsearch_path \
22200 configure_time_lt_sys_library_path; do
22201 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22202 *[\\\\\\\`\\"\\\$]*)
22203 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22204 ;;
22205 *)
22206 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22207 ;;
22208 esac
22209 done
22210
22211 ac_aux_dir='$ac_aux_dir'
22212
22213 # See if we are running on zsh, and set the options that allow our
22214 # commands through without removal of \ escapes INIT.
22215 if test -n "\${ZSH_VERSION+set}"; then
22216 setopt NO_GLOB_SUBST
22217 fi
22218
22219
22220 PACKAGE='$PACKAGE'
22221 VERSION='$VERSION'
22222 RM='$RM'
22223 ofile='$ofile'
22224
22225
22226
22227
22228 _ACEOF
22229
22230 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22231
22232 # Handling of arguments.
22233 for ac_config_target in $ac_config_targets
22234 do
22235 case $ac_config_target in
22236 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22237 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22238 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22239 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22240 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
22241 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
22242
22243 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22244 esac
22245 done
22246
22247
22248 # If the user did not use the arguments to specify the items to instantiate,
22249 # then the envvar interface is used. Set only those that are not.
22250 # We use the long form for the default assignment because of an extremely
22251 # bizarre bug on SunOS 4.1.3.
22252 if $ac_need_defaults; then
22253 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22254 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22255 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22256 fi
22257
22258 # Have a temporary directory for convenience. Make it in the build tree
22259 # simply because there is no reason against having it here, and in addition,
22260 # creating and moving files from /tmp can sometimes cause problems.
22261 # Hook for its removal unless debugging.
22262 # Note that there is a small window in which the directory will not be cleaned:
22263 # after its creation but before its name has been assigned to '$tmp'.
22264 $debug ||
22265 {
22266 tmp= ac_tmp=
22267 trap 'exit_status=$?
22268 : "${ac_tmp:=$tmp}"
22269 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22270 ' 0
22271 trap 'as_fn_exit 1' 1 2 13 15
22272 }
22273 # Create a (secure) tmp directory for tmp files.
22274
22275 {
22276 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22277 test -d "$tmp"
22278 } ||
22279 {
22280 tmp=./conf$$-$RANDOM
22281 (umask 077 && mkdir "$tmp")
22282 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22283 ac_tmp=$tmp
22284
22285 # Set up the scripts for CONFIG_FILES section.
22286 # No need to generate them if there are no CONFIG_FILES.
22287 # This happens for instance with './config.status config.h'.
22288 if test -n "$CONFIG_FILES"; then
22289
22290
22291 ac_cr=`echo X | tr X '\015'`
22292 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22293 # But we know of no other shell where ac_cr would be empty at this
22294 # point, so we can use a bashism as a fallback.
22295 if test "x$ac_cr" = x; then
22296 eval ac_cr=\$\'\\r\'
22297 fi
22298 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22299 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22300 ac_cs_awk_cr='\\r'
22301 else
22302 ac_cs_awk_cr=$ac_cr
22303 fi
22304
22305 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22306 _ACEOF
22307
22308
22309 {
22310 echo "cat >conf$$subs.awk <<_ACEOF" &&
22311 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22312 echo "_ACEOF"
22313 } >conf$$subs.sh ||
22314 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22315 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22316 ac_delim='%!_!# '
22317 for ac_last_try in false false false false false :; do
22318 . ./conf$$subs.sh ||
22319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22320
22321 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22322 if test $ac_delim_n = $ac_delim_num; then
22323 break
22324 elif $ac_last_try; then
22325 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22326 else
22327 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22328 fi
22329 done
22330 rm -f conf$$subs.sh
22331
22332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22333 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22334 _ACEOF
22335 sed -n '
22336 h
22337 s/^/S["/; s/!.*/"]=/
22338 p
22339 g
22340 s/^[^!]*!//
22341 :repl
22342 t repl
22343 s/'"$ac_delim"'$//
22344 t delim
22345 :nl
22346 h
22347 s/\(.\{148\}\)..*/\1/
22348 t more1
22349 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22350 p
22351 n
22352 b repl
22353 :more1
22354 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22355 p
22356 g
22357 s/.\{148\}//
22358 t nl
22359 :delim
22360 h
22361 s/\(.\{148\}\)..*/\1/
22362 t more2
22363 s/["\\]/\\&/g; s/^/"/; s/$/"/
22364 p
22365 b
22366 :more2
22367 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22368 p
22369 g
22370 s/.\{148\}//
22371 t delim
22372 ' <conf$$subs.awk | sed '
22373 /^[^""]/{
22374 N
22375 s/\n//
22376 }
22377 ' >>$CONFIG_STATUS || ac_write_fail=1
22378 rm -f conf$$subs.awk
22379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22380 _ACAWK
22381 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22382 for (key in S) S_is_set[key] = 1
22383 FS = ""
22384
22385 }
22386 {
22387 line = $ 0
22388 nfields = split(line, field, "@")
22389 substed = 0
22390 len = length(field[1])
22391 for (i = 2; i < nfields; i++) {
22392 key = field[i]
22393 keylen = length(key)
22394 if (S_is_set[key]) {
22395 value = S[key]
22396 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22397 len += length(value) + length(field[++i])
22398 substed = 1
22399 } else
22400 len += 1 + keylen
22401 }
22402
22403 print line
22404 }
22405
22406 _ACAWK
22407 _ACEOF
22408 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22409 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22410 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22411 else
22412 cat
22413 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22414 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22415 _ACEOF
22416
22417 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22418 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22419 # trailing colons and then remove the whole line if VPATH becomes empty
22420 # (actually we leave an empty line to preserve line numbers).
22421 if test "x$srcdir" = x.; then
22422 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22423 h
22424 s///
22425 s/^/:/
22426 s/[ ]*$/:/
22427 s/:\$(srcdir):/:/g
22428 s/:\${srcdir}:/:/g
22429 s/:@srcdir@:/:/g
22430 s/^:*//
22431 s/:*$//
22432 x
22433 s/\(=[ ]*\).*/\1/
22434 G
22435 s/\n//
22436 s/^[^=]*=[ ]*$//
22437 }'
22438 fi
22439
22440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22441 fi # test -n "$CONFIG_FILES"
22442
22443 # Set up the scripts for CONFIG_HEADERS section.
22444 # No need to generate them if there are no CONFIG_HEADERS.
22445 # This happens for instance with './config.status Makefile'.
22446 if test -n "$CONFIG_HEADERS"; then
22447 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22448 BEGIN {
22449 _ACEOF
22450
22451 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22452 # here-document in config.status, that substitutes the proper values into
22453 # config.h.in to produce config.h.
22454
22455 # Create a delimiter string that does not exist in confdefs.h, to ease
22456 # handling of long lines.
22457 ac_delim='%!_!# '
22458 for ac_last_try in false false :; do
22459 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22460 if test -z "$ac_tt"; then
22461 break
22462 elif $ac_last_try; then
22463 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22464 else
22465 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22466 fi
22467 done
22468
22469 # For the awk script, D is an array of macro values keyed by name,
22470 # likewise P contains macro parameters if any. Preserve backslash
22471 # newline sequences.
22472
22473 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22474 sed -n '
22475 s/.\{148\}/&'"$ac_delim"'/g
22476 t rset
22477 :rset
22478 s/^[ ]*#[ ]*define[ ][ ]*/ /
22479 t def
22480 d
22481 :def
22482 s/\\$//
22483 t bsnl
22484 s/["\\]/\\&/g
22485 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22486 D["\1"]=" \3"/p
22487 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22488 d
22489 :bsnl
22490 s/["\\]/\\&/g
22491 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22492 D["\1"]=" \3\\\\\\n"\\/p
22493 t cont
22494 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22495 t cont
22496 d
22497 :cont
22498 n
22499 s/.\{148\}/&'"$ac_delim"'/g
22500 t clear
22501 :clear
22502 s/\\$//
22503 t bsnlc
22504 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22505 d
22506 :bsnlc
22507 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22508 b cont
22509 ' <confdefs.h | sed '
22510 s/'"$ac_delim"'/"\\\
22511 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22512
22513 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22514 for (key in D) D_is_set[key] = 1
22515 FS = ""
22516 }
22517 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22518 line = \$ 0
22519 split(line, arg, " ")
22520 if (arg[1] == "#") {
22521 defundef = arg[2]
22522 mac1 = arg[3]
22523 } else {
22524 defundef = substr(arg[1], 2)
22525 mac1 = arg[2]
22526 }
22527 split(mac1, mac2, "(") #)
22528 macro = mac2[1]
22529 prefix = substr(line, 1, index(line, defundef) - 1)
22530 if (D_is_set[macro]) {
22531 # Preserve the white space surrounding the "#".
22532 print prefix "define", macro P[macro] D[macro]
22533 next
22534 } else {
22535 # Replace #undef with comments. This is necessary, for example,
22536 # in the case of _POSIX_SOURCE, which is predefined and required
22537 # on some systems where configure will not decide to define it.
22538 if (defundef == "undef") {
22539 print "/*", prefix defundef, macro, "*/"
22540 next
22541 }
22542 }
22543 }
22544 { print }
22545 _ACAWK
22546 _ACEOF
22547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22548 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22549 fi # test -n "$CONFIG_HEADERS"
22550
22551
22552 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22553 shift
22554 for ac_tag
22555 do
22556 case $ac_tag in
22557 :[FHLC]) ac_mode=$ac_tag; continue;;
22558 esac
22559 case $ac_mode$ac_tag in
22560 :[FHL]*:*);;
22561 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22562 :[FH]-) ac_tag=-:-;;
22563 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22564 esac
22565 ac_save_IFS=$IFS
22566 IFS=:
22567 set x $ac_tag
22568 IFS=$ac_save_IFS
22569 shift
22570 ac_file=$1
22571 shift
22572
22573 case $ac_mode in
22574 :L) ac_source=$1;;
22575 :[FH])
22576 ac_file_inputs=
22577 for ac_f
22578 do
22579 case $ac_f in
22580 -) ac_f="$ac_tmp/stdin";;
22581 *) # Look for the file first in the build tree, then in the source tree
22582 # (if the path is not absolute). The absolute path cannot be DOS-style,
22583 # because $ac_f cannot contain ':'.
22584 test -f "$ac_f" ||
22585 case $ac_f in
22586 [\\/$]*) false;;
22587 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22588 esac ||
22589 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22590 esac
22591 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22592 as_fn_append ac_file_inputs " '$ac_f'"
22593 done
22594
22595 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22596 # use $as_me), people would be surprised to read:
22597 # /* config.h. Generated by config.status. */
22598 configure_input='Generated from '`
22599 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22600 `' by configure.'
22601 if test x"$ac_file" != x-; then
22602 configure_input="$ac_file. $configure_input"
22603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22604 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22605 fi
22606 # Neutralize special characters interpreted by sed in replacement strings.
22607 case $configure_input in #(
22608 *\&* | *\|* | *\\* )
22609 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22610 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22611 *) ac_sed_conf_input=$configure_input;;
22612 esac
22613
22614 case $ac_tag in
22615 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22616 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22617 esac
22618 ;;
22619 esac
22620
22621 ac_dir=`$as_dirname -- "$ac_file" ||
22622 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22623 X"$ac_file" : 'X\(//\)[^/]' \| \
22624 X"$ac_file" : 'X\(//\)$' \| \
22625 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22626 printf "%s\n" X"$ac_file" |
22627 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22628 s//\1/
22629 q
22630 }
22631 /^X\(\/\/\)[^/].*/{
22632 s//\1/
22633 q
22634 }
22635 /^X\(\/\/\)$/{
22636 s//\1/
22637 q
22638 }
22639 /^X\(\/\).*/{
22640 s//\1/
22641 q
22642 }
22643 s/.*/./; q'`
22644 as_dir="$ac_dir"; as_fn_mkdir_p
22645 ac_builddir=.
22646
22647 case "$ac_dir" in
22648 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22649 *)
22650 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22651 # A ".." for each directory in $ac_dir_suffix.
22652 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22653 case $ac_top_builddir_sub in
22654 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22655 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22656 esac ;;
22657 esac
22658 ac_abs_top_builddir=$ac_pwd
22659 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22660 # for backward compatibility:
22661 ac_top_builddir=$ac_top_build_prefix
22662
22663 case $srcdir in
22664 .) # We are building in place.
22665 ac_srcdir=.
22666 ac_top_srcdir=$ac_top_builddir_sub
22667 ac_abs_top_srcdir=$ac_pwd ;;
22668 [\\/]* | ?:[\\/]* ) # Absolute name.
22669 ac_srcdir=$srcdir$ac_dir_suffix;
22670 ac_top_srcdir=$srcdir
22671 ac_abs_top_srcdir=$srcdir ;;
22672 *) # Relative name.
22673 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22674 ac_top_srcdir=$ac_top_build_prefix$srcdir
22675 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22676 esac
22677 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22678
22679
22680 case $ac_mode in
22681 :F)
22682 #
22683 # CONFIG_FILE
22684 #
22685
22686 case $INSTALL in
22687 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22688 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22689 esac
22690 ac_MKDIR_P=$MKDIR_P
22691 case $MKDIR_P in
22692 [\\/$]* | ?:[\\/]* ) ;;
22693 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22694 esac
22695 _ACEOF
22696
22697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22698 # If the template does not know about datarootdir, expand it.
22699 # FIXME: This hack should be removed a few years after 2.60.
22700 ac_datarootdir_hack=; ac_datarootdir_seen=
22701 ac_sed_dataroot='
22702 /datarootdir/ {
22703 p
22704 q
22705 }
22706 /@datadir@/p
22707 /@docdir@/p
22708 /@infodir@/p
22709 /@localedir@/p
22710 /@mandir@/p'
22711 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22712 *datarootdir*) ac_datarootdir_seen=yes;;
22713 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22715 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22716 _ACEOF
22717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22718 ac_datarootdir_hack='
22719 s&@datadir@&$datadir&g
22720 s&@docdir@&$docdir&g
22721 s&@infodir@&$infodir&g
22722 s&@localedir@&$localedir&g
22723 s&@mandir@&$mandir&g
22724 s&\\\${datarootdir}&$datarootdir&g' ;;
22725 esac
22726 _ACEOF
22727
22728 # Neutralize VPATH when '$srcdir' = '.'.
22729 # Shell code in configure.ac might set extrasub.
22730 # FIXME: do we really want to maintain this feature?
22731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22732 ac_sed_extra="$ac_vpsub
22733 $extrasub
22734 _ACEOF
22735 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22736 :t
22737 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22738 s|@configure_input@|$ac_sed_conf_input|;t t
22739 s&@top_builddir@&$ac_top_builddir_sub&;t t
22740 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22741 s&@srcdir@&$ac_srcdir&;t t
22742 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22743 s&@top_srcdir@&$ac_top_srcdir&;t t
22744 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22745 s&@builddir@&$ac_builddir&;t t
22746 s&@abs_builddir@&$ac_abs_builddir&;t t
22747 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22748 s&@INSTALL@&$ac_INSTALL&;t t
22749 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22750 $ac_datarootdir_hack
22751 "
22752 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22753 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22754
22755 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22756 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22757 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22758 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22760 which seems to be undefined. Please make sure it is defined" >&5
22761 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22762 which seems to be undefined. Please make sure it is defined" >&2;}
22763
22764 rm -f "$ac_tmp/stdin"
22765 case $ac_file in
22766 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22767 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22768 esac \
22769 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22770 ;;
22771 :H)
22772 #
22773 # CONFIG_HEADER
22774 #
22775 if test x"$ac_file" != x-; then
22776 {
22777 printf "%s\n" "/* $configure_input */" >&1 \
22778 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22779 } >"$ac_tmp/config.h" \
22780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22781 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22783 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22784 else
22785 rm -f "$ac_file"
22786 mv "$ac_tmp/config.h" "$ac_file" \
22787 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22788 fi
22789 else
22790 printf "%s\n" "/* $configure_input */" >&1 \
22791 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22792 || as_fn_error $? "could not create -" "$LINENO" 5
22793 fi
22794 # Compute "$ac_file"'s index in $config_headers.
22795 _am_arg="$ac_file"
22796 _am_stamp_count=1
22797 for _am_header in $config_headers :; do
22798 case $_am_header in
22799 $_am_arg | $_am_arg:* )
22800 break ;;
22801 * )
22802 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22803 esac
22804 done
22805 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22806 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22807 X"$_am_arg" : 'X\(//\)[^/]' \| \
22808 X"$_am_arg" : 'X\(//\)$' \| \
22809 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22810 printf "%s\n" X"$_am_arg" |
22811 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22812 s//\1/
22813 q
22814 }
22815 /^X\(\/\/\)[^/].*/{
22816 s//\1/
22817 q
22818 }
22819 /^X\(\/\/\)$/{
22820 s//\1/
22821 q
22822 }
22823 /^X\(\/\).*/{
22824 s//\1/
22825 q
22826 }
22827 s/.*/./; q'`/stamp-h$_am_stamp_count
22828 ;;
22829
22830 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22831 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22832 ;;
22833 esac
22834
22835
22836 case $ac_file$ac_mode in
22837 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22838 # Older Autoconf quotes --file arguments for eval, but not when files
22839 # are listed without --file. Let's play safe and only enable the eval
22840 # if we detect the quoting.
22841 # TODO: see whether this extra hack can be removed once we start
22842 # requiring Autoconf 2.70 or later.
22843 case $CONFIG_FILES in #(
22844 *\'*) :
22845 eval set x "$CONFIG_FILES" ;; #(
22846 *) :
22847 set x $CONFIG_FILES ;; #(
22848 *) :
22849 ;;
22850 esac
22851 shift
22852 # Used to flag and report bootstrapping failures.
22853 am_rc=0
22854 for am_mf
22855 do
22856 # Strip MF so we end up with the name of the file.
22857 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22858 # Check whether this is an Automake generated Makefile which includes
22859 # dependency-tracking related rules and includes.
22860 # Grep'ing the whole file directly is not great: AIX grep has a line
22861 # limit of 2048, but all sed's we know have understand at least 4000.
22862 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22863 || continue
22864 am_dirpart=`$as_dirname -- "$am_mf" ||
22865 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22866 X"$am_mf" : 'X\(//\)[^/]' \| \
22867 X"$am_mf" : 'X\(//\)$' \| \
22868 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22869 printf "%s\n" X"$am_mf" |
22870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22871 s//\1/
22872 q
22873 }
22874 /^X\(\/\/\)[^/].*/{
22875 s//\1/
22876 q
22877 }
22878 /^X\(\/\/\)$/{
22879 s//\1/
22880 q
22881 }
22882 /^X\(\/\).*/{
22883 s//\1/
22884 q
22885 }
22886 s/.*/./; q'`
22887 am_filepart=`$as_basename -- "$am_mf" ||
22888 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22889 X"$am_mf" : 'X\(//\)$' \| \
22890 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22891 printf "%s\n" X/"$am_mf" |
22892 sed '/^.*\/\([^/][^/]*\)\/*$/{
22893 s//\1/
22894 q
22895 }
22896 /^X\/\(\/\/\)$/{
22897 s//\1/
22898 q
22899 }
22900 /^X\/\(\/\).*/{
22901 s//\1/
22902 q
22903 }
22904 s/.*/./; q'`
22905 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22906 && sed -e '/# am--include-marker/d' "$am_filepart" \
22907 | $MAKE -f - am--depfiles" >&5
22908 (cd "$am_dirpart" \
22909 && sed -e '/# am--include-marker/d' "$am_filepart" \
22910 | $MAKE -f - am--depfiles) >&5 2>&5
22911 ac_status=$?
22912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22913 (exit $ac_status); } || am_rc=$?
22914 done
22915 if test $am_rc -ne 0; then
22916 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22917 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22918 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22919 for automatic dependency tracking. If GNU make was not used, consider
22920 re-running the configure script with MAKE=\"gmake\" (or whatever is
22921 necessary). You can also try re-running configure with the
22922 '--disable-dependency-tracking' option to at least be able to build
22923 the package (albeit without support for automatic dependency tracking).
22924 See 'config.log' for more details" "$LINENO" 5; }
22925 fi
22926 { am_dirpart=; unset am_dirpart;}
22927 { am_filepart=; unset am_filepart;}
22928 { am_mf=; unset am_mf;}
22929 { am_rc=; unset am_rc;}
22930 rm -f conftest-deps.mk
22931 }
22932 ;;
22933 "libtool":C)
22934
22935 # See if we are running on zsh, and set the options that allow our
22936 # commands through without removal of \ escapes.
22937 if test -n "${ZSH_VERSION+set}"; then
22938 setopt NO_GLOB_SUBST
22939 fi
22940
22941 cfgfile=${ofile}T
22942 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22943 $RM "$cfgfile"
22944
22945 cat <<_LT_EOF >> "$cfgfile"
22946 #! $SHELL
22947 # Generated automatically by $as_me ($PACKAGE) $VERSION
22948 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22949
22950 # Provide generalized library-building support services.
22951 # Written by Gordon Matzigkeit, 1996
22952
22953 # Copyright (C) 2024 Free Software Foundation, Inc.
22954 # This is free software; see the source for copying conditions. There is NO
22955 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22956
22957 # GNU Libtool is free software; you can redistribute it and/or modify
22958 # it under the terms of the GNU General Public License as published by
22959 # the Free Software Foundation; either version 2 of the License, or
22960 # (at your option) any later version.
22961 #
22962 # As a special exception to the GNU General Public License, if you
22963 # distribute this file as part of a program or library that is built
22964 # using GNU Libtool, you may include this file under the same
22965 # distribution terms that you use for the rest of that program.
22966 #
22967 # GNU Libtool is distributed in the hope that it will be useful, but
22968 # WITHOUT ANY WARRANTY; without even the implied warranty of
22969 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22970 # GNU General Public License for more details.
22971 #
22972 # You should have received a copy of the GNU General Public License
22973 # along with this program. If not, see <http://www.gnu.org/licenses/>.
22974
22975
22976 # The names of the tagged configurations supported by this script.
22977 available_tags=''
22978
22979 # Configured defaults for sys_lib_dlsearch_path munging.
22980 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22981
22982 # ### BEGIN LIBTOOL CONFIG
22983
22984 # Which release of libtool.m4 was used?
22985 macro_version=$macro_version
22986 macro_revision=$macro_revision
22987
22988 # Whether or not to build shared libraries.
22989 build_libtool_libs=$enable_shared
22990
22991 # Whether or not to build static libraries.
22992 build_old_libs=$enable_static
22993
22994 # What type of objects to build.
22995 pic_mode=$pic_mode
22996
22997 # Whether or not to optimize for fast installation.
22998 fast_install=$enable_fast_install
22999
23000 # Shared archive member basename,for filename based shared library versioning on AIX.
23001 shared_archive_member_spec=$shared_archive_member_spec
23002
23003 # Shell to use when invoking shell scripts.
23004 SHELL=$lt_SHELL
23005
23006 # An echo program that protects backslashes.
23007 ECHO=$lt_ECHO
23008
23009 # The PATH separator for the build system.
23010 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23011
23012 # The host system.
23013 host_alias=$host_alias
23014 host=$host
23015 host_os=$host_os
23016
23017 # The build system.
23018 build_alias=$build_alias
23019 build=$build
23020 build_os=$build_os
23021
23022 # A sed program that does not truncate output.
23023 SED=$lt_SED
23024
23025 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23026 Xsed="\$SED -e 1s/^X//"
23027
23028 # A grep program that handles long lines.
23029 GREP=$lt_GREP
23030
23031 # An ERE matcher.
23032 EGREP=$lt_EGREP
23033
23034 # A literal string matcher.
23035 FGREP=$lt_FGREP
23036
23037 # A BSD- or MS-compatible name lister.
23038 NM=$lt_NM
23039
23040 # Whether we need soft or hard links.
23041 LN_S=$lt_LN_S
23042
23043 # What is the maximum length of a command?
23044 max_cmd_len=$max_cmd_len
23045
23046 # Object file suffix (normally "o").
23047 objext=$ac_objext
23048
23049 # Executable file suffix (normally "").
23050 exeext=$exeext
23051
23052 # whether the shell understands "unset".
23053 lt_unset=$lt_unset
23054
23055 # turn spaces into newlines.
23056 SP2NL=$lt_lt_SP2NL
23057
23058 # turn newlines into spaces.
23059 NL2SP=$lt_lt_NL2SP
23060
23061 # convert \$build file names to \$host format.
23062 to_host_file_cmd=$lt_cv_to_host_file_cmd
23063
23064 # convert \$build files to toolchain format.
23065 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23066
23067 # A file(cmd) program that detects file types.
23068 FILECMD=$lt_FILECMD
23069
23070 # An object symbol dumper.
23071 OBJDUMP=$lt_OBJDUMP
23072
23073 # Method to check whether dependent libraries are shared objects.
23074 deplibs_check_method=$lt_deplibs_check_method
23075
23076 # Command to use when deplibs_check_method = "file_magic".
23077 file_magic_cmd=$lt_file_magic_cmd
23078
23079 # How to find potential files when deplibs_check_method = "file_magic".
23080 file_magic_glob=$lt_file_magic_glob
23081
23082 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23083 want_nocaseglob=$lt_want_nocaseglob
23084
23085 # DLL creation program.
23086 DLLTOOL=$lt_DLLTOOL
23087
23088 # Command to associate shared and link libraries.
23089 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23090
23091 # The archiver.
23092 AR=$lt_AR
23093
23094 # Flags to create an archive (by configure).
23095 lt_ar_flags=$lt_ar_flags
23096
23097 # Flags to create an archive.
23098 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23099
23100 # How to feed a file listing to the archiver.
23101 archiver_list_spec=$lt_archiver_list_spec
23102
23103 # A symbol stripping program.
23104 STRIP=$lt_STRIP
23105
23106 # Commands used to install an old-style archive.
23107 RANLIB=$lt_RANLIB
23108 old_postinstall_cmds=$lt_old_postinstall_cmds
23109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23110
23111 # Whether to use a lock for old archive extraction.
23112 lock_old_archive_extraction=$lock_old_archive_extraction
23113
23114 # A C compiler.
23115 LTCC=$lt_CC
23116
23117 # LTCC compiler flags.
23118 LTCFLAGS=$lt_CFLAGS
23119
23120 # Take the output of nm and produce a listing of raw symbols and C names.
23121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23122
23123 # Transform the output of nm in a proper C declaration.
23124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23125
23126 # Transform the output of nm into a list of symbols to manually relocate.
23127 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23128
23129 # Transform the output of nm in a C name address pair.
23130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23131
23132 # Transform the output of nm in a C name address pair when lib prefix is needed.
23133 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23134
23135 # The name lister interface.
23136 nm_interface=$lt_lt_cv_nm_interface
23137
23138 # Specify filename containing input files for \$NM.
23139 nm_file_list_spec=$lt_nm_file_list_spec
23140
23141 # The root where to search for dependent libraries,and where our libraries should be installed.
23142 lt_sysroot=$lt_sysroot
23143
23144 # Command to truncate a binary pipe.
23145 lt_truncate_bin=$lt_lt_cv_truncate_bin
23146
23147 # The name of the directory that contains temporary libtool files.
23148 objdir=$objdir
23149
23150 # Used to examine libraries when file_magic_cmd begins with "file".
23151 MAGIC_CMD=$MAGIC_CMD
23152
23153 # Must we lock files when doing compilation?
23154 need_locks=$lt_need_locks
23155
23156 # Manifest tool.
23157 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23158
23159 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23160 DSYMUTIL=$lt_DSYMUTIL
23161
23162 # Tool to change global to local symbols on Mac OS X.
23163 NMEDIT=$lt_NMEDIT
23164
23165 # Tool to manipulate fat objects and archives on Mac OS X.
23166 LIPO=$lt_LIPO
23167
23168 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23169 OTOOL=$lt_OTOOL
23170
23171 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23172 OTOOL64=$lt_OTOOL64
23173
23174 # Old archive suffix (normally "a").
23175 libext=$libext
23176
23177 # Shared library suffix (normally ".so").
23178 shrext_cmds=$lt_shrext_cmds
23179
23180 # The commands to extract the exported symbol list from a shared archive.
23181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23182
23183 # Variables whose values should be saved in libtool wrapper scripts and
23184 # restored at link time.
23185 variables_saved_for_relink=$lt_variables_saved_for_relink
23186
23187 # Do we need the "lib" prefix for modules?
23188 need_lib_prefix=$need_lib_prefix
23189
23190 # Do we need a version for libraries?
23191 need_version=$need_version
23192
23193 # Library versioning type.
23194 version_type=$version_type
23195
23196 # Shared library runtime path variable.
23197 runpath_var=$runpath_var
23198
23199 # Shared library path variable.
23200 shlibpath_var=$shlibpath_var
23201
23202 # Is shlibpath searched before the hard-coded library search path?
23203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23204
23205 # Format of library name prefix.
23206 libname_spec=$lt_libname_spec
23207
23208 # List of archive names. First name is the real one, the rest are links.
23209 # The last name is the one that the linker finds with -lNAME
23210 library_names_spec=$lt_library_names_spec
23211
23212 # The coded name of the library, if different from the real name.
23213 soname_spec=$lt_soname_spec
23214
23215 # Permission mode override for installation of shared libraries.
23216 install_override_mode=$lt_install_override_mode
23217
23218 # Command to use after installation of a shared archive.
23219 postinstall_cmds=$lt_postinstall_cmds
23220
23221 # Command to use after uninstallation of a shared archive.
23222 postuninstall_cmds=$lt_postuninstall_cmds
23223
23224 # Commands used to finish a libtool library installation in a directory.
23225 finish_cmds=$lt_finish_cmds
23226
23227 # As "finish_cmds", except a single script fragment to be evaled but
23228 # not shown.
23229 finish_eval=$lt_finish_eval
23230
23231 # Whether we should hardcode library paths into libraries.
23232 hardcode_into_libs=$hardcode_into_libs
23233
23234 # Compile-time system search path for libraries.
23235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23236
23237 # Detected run-time system search path for libraries.
23238 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23239
23240 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23241 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23242
23243 # Whether dlopen is supported.
23244 dlopen_support=$enable_dlopen
23245
23246 # Whether dlopen of programs is supported.
23247 dlopen_self=$enable_dlopen_self
23248
23249 # Whether dlopen of statically linked programs is supported.
23250 dlopen_self_static=$enable_dlopen_self_static
23251
23252 # Commands to strip libraries.
23253 old_striplib=$lt_old_striplib
23254 striplib=$lt_striplib
23255
23256
23257 # The linker used to build libraries.
23258 LD=$lt_LD
23259
23260 # How to create reloadable object files.
23261 reload_flag=$lt_reload_flag
23262 reload_cmds=$lt_reload_cmds
23263
23264 # Commands used to build an old-style archive.
23265 old_archive_cmds=$lt_old_archive_cmds
23266
23267 # A language specific compiler.
23268 CC=$lt_compiler
23269
23270 # Is the compiler the GNU compiler?
23271 with_gcc=$GCC
23272
23273 # Compiler flag to turn off builtin functions.
23274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23275
23276 # Additional compiler flags for building library objects.
23277 pic_flag=$lt_lt_prog_compiler_pic
23278
23279 # How to pass a linker flag through the compiler.
23280 wl=$lt_lt_prog_compiler_wl
23281
23282 # Compiler flag to prevent dynamic linking.
23283 link_static_flag=$lt_lt_prog_compiler_static
23284
23285 # Does compiler simultaneously support -c and -o options?
23286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23287
23288 # Whether or not to add -lc for building shared libraries.
23289 build_libtool_need_lc=$archive_cmds_need_lc
23290
23291 # Whether or not to disallow shared libs when runtime libs are static.
23292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23293
23294 # Compiler flag to allow reflexive dlopens.
23295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23296
23297 # Compiler flag to generate shared objects directly from archives.
23298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23299
23300 # Whether the compiler copes with passing no objects directly.
23301 compiler_needs_object=$lt_compiler_needs_object
23302
23303 # Create an old-style archive from a shared archive.
23304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23305
23306 # Create a temporary old-style archive to link instead of a shared archive.
23307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23308
23309 # Commands used to build a shared archive.
23310 archive_cmds=$lt_archive_cmds
23311 archive_expsym_cmds=$lt_archive_expsym_cmds
23312
23313 # Commands used to build a loadable module if different from building
23314 # a shared archive.
23315 module_cmds=$lt_module_cmds
23316 module_expsym_cmds=$lt_module_expsym_cmds
23317
23318 # Whether we are building with GNU ld or not.
23319 with_gnu_ld=$lt_with_gnu_ld
23320
23321 # Flag that allows shared libraries with undefined symbols to be built.
23322 allow_undefined_flag=$lt_allow_undefined_flag
23323
23324 # Flag that enforces no undefined symbols.
23325 no_undefined_flag=$lt_no_undefined_flag
23326
23327 # Flag to hardcode \$libdir into a binary during linking.
23328 # This must work even if \$libdir does not exist
23329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23330
23331 # Whether we need a single "-rpath" flag with a separated argument.
23332 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23333
23334 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23335 # DIR into the resulting binary.
23336 hardcode_direct=$hardcode_direct
23337
23338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23339 # DIR into the resulting binary and the resulting library dependency is
23340 # "absolute",i.e. impossible to change by setting \$shlibpath_var if the
23341 # library is relocated.
23342 hardcode_direct_absolute=$hardcode_direct_absolute
23343
23344 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23345 # into the resulting binary.
23346 hardcode_minus_L=$hardcode_minus_L
23347
23348 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23349 # into the resulting binary.
23350 hardcode_shlibpath_var=$hardcode_shlibpath_var
23351
23352 # Set to "yes" if building a shared library automatically hardcodes DIR
23353 # into the library and all subsequent libraries and executables linked
23354 # against it.
23355 hardcode_automatic=$hardcode_automatic
23356
23357 # Set to yes if linker adds runtime paths of dependent libraries
23358 # to runtime path list.
23359 inherit_rpath=$inherit_rpath
23360
23361 # Whether libtool must link a program against all its dependency libraries.
23362 link_all_deplibs=$link_all_deplibs
23363
23364 # Set to "yes" if exported symbols are required.
23365 always_export_symbols=$always_export_symbols
23366
23367 # The commands to list exported symbols.
23368 export_symbols_cmds=$lt_export_symbols_cmds
23369
23370 # Symbols that should not be listed in the preloaded symbols.
23371 exclude_expsyms=$lt_exclude_expsyms
23372
23373 # Symbols that must always be exported.
23374 include_expsyms=$lt_include_expsyms
23375
23376 # Commands necessary for linking programs (against libraries) with templates.
23377 prelink_cmds=$lt_prelink_cmds
23378
23379 # Commands necessary for finishing linking programs.
23380 postlink_cmds=$lt_postlink_cmds
23381
23382 # Specify filename containing input files.
23383 file_list_spec=$lt_file_list_spec
23384
23385 # How to hardcode a shared library path into an executable.
23386 hardcode_action=$hardcode_action
23387
23388 # ### END LIBTOOL CONFIG
23389
23390 _LT_EOF
23391
23392 cat <<'_LT_EOF' >> "$cfgfile"
23393
23394 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23395
23396 # func_munge_path_list VARIABLE PATH
23397 # -----------------------------------
23398 # VARIABLE is name of variable containing _space_ separated list of
23399 # directories to be munged by the contents of PATH, which is string
23400 # having a format:
23401 # "DIR[:DIR]:"
23402 # string "DIR[ DIR]" will be prepended to VARIABLE
23403 # ":DIR[:DIR]"
23404 # string "DIR[ DIR]" will be appended to VARIABLE
23405 # "DIRP[:DIRP]::[DIRA:]DIRA"
23406 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23407 # "DIRA[ DIRA]" will be appended to VARIABLE
23408 # "DIR[:DIR]"
23409 # VARIABLE will be replaced by "DIR[ DIR]"
23410 func_munge_path_list ()
23411 {
23412 case x$2 in
23413 x)
23414 ;;
23415 *:)
23416 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23417 ;;
23418 x:*)
23419 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23420 ;;
23421 *::*)
23422 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23423 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23424 ;;
23425 *)
23426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23427 ;;
23428 esac
23429 }
23430
23431
23432 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23433 func_cc_basename ()
23434 {
23435 for cc_temp in $*""; do
23436 case $cc_temp in
23437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23439 \-*) ;;
23440 *) break;;
23441 esac
23442 done
23443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23444 }
23445
23446
23447 # ### END FUNCTIONS SHARED WITH CONFIGURE
23448
23449 _LT_EOF
23450
23451 case $host_os in
23452 aix3*)
23453 cat <<\_LT_EOF >> "$cfgfile"
23454 # AIX sometimes has problems with the GCC collect2 program. For some
23455 # reason, if we set the COLLECT_NAMES environment variable, the problems
23456 # vanish in a puff of smoke.
23457 if test set != "${COLLECT_NAMES+set}"; then
23458 COLLECT_NAMES=
23459 export COLLECT_NAMES
23460 fi
23461 _LT_EOF
23462 ;;
23463 esac
23464
23465
23466
23467 ltmain=$ac_aux_dir/ltmain.sh
23468
23469
23470 # We use sed instead of cat because bash on DJGPP gets confused if
23471 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23472 # text mode, it properly converts lines to CR/LF. This bash problem
23473 # is reportedly fixed, but why not run on old versions too?
23474 $SED '$q' "$ltmain" >> "$cfgfile" \
23475 || (rm -f "$cfgfile"; exit 1)
23476
23477 mv -f "$cfgfile" "$ofile" ||
23478 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23479 chmod +x "$ofile"
23480
23481 ;;
23482
23483 esac
23484 done # for ac_tag
23485
23486
23487 as_fn_exit 0
23488 _ACEOF
23489 ac_clean_files=$ac_clean_files_save
23490
23491 test $ac_write_fail = 0 ||
23492 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23493
23494
23495 # configure is writing to config.log, and then calls config.status.
23496 # config.status does its own redirection, appending to config.log.
23497 # Unfortunately, on DOS this fails, as config.log is still kept open
23498 # by configure, so config.status won't be able to write to it; its
23499 # output is simply discarded. So we exec the FD to /dev/null,
23500 # effectively closing config.log, so it can be properly (re)opened and
23501 # appended to by config.status. When coming back to configure, we
23502 # need to make the FD available again.
23503 if test "$no_create" != yes; then
23504 ac_cs_success=:
23505 ac_config_status_args=
23506 test "$silent" = yes &&
23507 ac_config_status_args="$ac_config_status_args --quiet"
23508 exec 5>/dev/null
23509 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23510 exec 5>>config.log
23511 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23512 # would make configure fail if this is the last instruction.
23513 $ac_cs_success || as_fn_exit 1
23514 fi
23515 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23517 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23518 fi
23519
23520
23521