configure revision 1.1.1.8 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libfontenc 1.1.7.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186
187 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
188 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
189 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
190 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
191 PATH=/empty FPATH=/empty; export PATH FPATH
192 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
193 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null
196 then :
197 as_have_required=yes
198 else $as_nop
199 as_have_required=no
200 fi
201 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
202 then :
203
204 else $as_nop
205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
206 as_found=false
207 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 do
209 IFS=$as_save_IFS
210 case $as_dir in #(((
211 '') as_dir=./ ;;
212 */) ;;
213 *) as_dir=$as_dir/ ;;
214 esac
215 as_found=:
216 case $as_dir in #(
217 /*)
218 for as_base in sh bash ksh sh5; do
219 # Try only shells that exist, to save several forks.
220 as_shell=$as_dir$as_base
221 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
222 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
223 then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
226 then :
227 break 2
228 fi
229 fi
230 done;;
231 esac
232 as_found=false
233 done
234 IFS=$as_save_IFS
235 if $as_found
236 then :
237
238 else $as_nop
239 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
241 then :
242 CONFIG_SHELL=$SHELL as_have_required=yes
243 fi
244 fi
245
246
247 if test "x$CONFIG_SHELL" != x
248 then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno
271 then :
272 printf "%s\n" "$0: This script requires a shell more modern than all"
273 printf "%s\n" "$0: the shells that I found on your system."
274 if test ${ZSH_VERSION+y} ; then
275 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
276 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
277 else
278 printf "%s\n" "$0: Please tell bug-autoconf (at] gnu.org and
279 $0: https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues
280 $0: about your system, including any error possibly output
281 $0: before this message. Then install a modern shell, or
282 $0: manually run the script under such a shell if you do
283 $0: have one."
284 fi
285 exit 1
286 fi
287 fi
288 fi
289 SHELL=${CONFIG_SHELL-/bin/sh}
290 export SHELL
291 # Unset more variables known to interfere with behavior of common tools.
292 CLICOLOR_FORCE= GREP_OPTIONS=
293 unset CLICOLOR_FORCE GREP_OPTIONS
294
295 ## --------------------- ##
296 ## M4sh Shell Functions. ##
297 ## --------------------- ##
298 # as_fn_unset VAR
299 # ---------------
300 # Portably unset VAR.
301 as_fn_unset ()
302 {
303 { eval $1=; unset $1;}
304 }
305 as_unset=as_fn_unset
306
307
308 # as_fn_set_status STATUS
309 # -----------------------
310 # Set $? to STATUS, without forking.
311 as_fn_set_status ()
312 {
313 return $1
314 } # as_fn_set_status
315
316 # as_fn_exit STATUS
317 # -----------------
318 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
319 as_fn_exit ()
320 {
321 set +e
322 as_fn_set_status $1
323 exit $1
324 } # as_fn_exit
325 # as_fn_nop
326 # ---------
327 # Do nothing but, unlike ":", preserve the value of $?.
328 as_fn_nop ()
329 {
330 return $?
331 }
332 as_nop=as_fn_nop
333
334 # as_fn_mkdir_p
335 # -------------
336 # Create "$as_dir" as a directory, including parents if necessary.
337 as_fn_mkdir_p ()
338 {
339
340 case $as_dir in #(
341 -*) as_dir=./$as_dir;;
342 esac
343 test -d "$as_dir" || eval $as_mkdir_p || {
344 as_dirs=
345 while :; do
346 case $as_dir in #(
347 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
348 *) as_qdir=$as_dir;;
349 esac
350 as_dirs="'$as_qdir' $as_dirs"
351 as_dir=`$as_dirname -- "$as_dir" ||
352 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
353 X"$as_dir" : 'X\(//\)[^/]' \| \
354 X"$as_dir" : 'X\(//\)$' \| \
355 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
356 printf "%s\n" X"$as_dir" |
357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
358 s//\1/
359 q
360 }
361 /^X\(\/\/\)[^/].*/{
362 s//\1/
363 q
364 }
365 /^X\(\/\/\)$/{
366 s//\1/
367 q
368 }
369 /^X\(\/\).*/{
370 s//\1/
371 q
372 }
373 s/.*/./; q'`
374 test -d "$as_dir" && break
375 done
376 test -z "$as_dirs" || eval "mkdir $as_dirs"
377 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
378
379
380 } # as_fn_mkdir_p
381
382 # as_fn_executable_p FILE
383 # -----------------------
384 # Test if FILE is an executable regular file.
385 as_fn_executable_p ()
386 {
387 test -f "$1" && test -x "$1"
388 } # as_fn_executable_p
389 # as_fn_append VAR VALUE
390 # ----------------------
391 # Append the text in VALUE to the end of the definition contained in VAR. Take
392 # advantage of any shell optimizations that allow amortized linear growth over
393 # repeated appends, instead of the typical quadratic growth present in naive
394 # implementations.
395 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
396 then :
397 eval 'as_fn_append ()
398 {
399 eval $1+=\$2
400 }'
401 else $as_nop
402 as_fn_append ()
403 {
404 eval $1=\$$1\$2
405 }
406 fi # as_fn_append
407
408 # as_fn_arith ARG...
409 # ------------------
410 # Perform arithmetic evaluation on the ARGs, and store the result in the
411 # global $as_val. Take advantage of shells that can avoid forks. The arguments
412 # must be portable across $(()) and expr.
413 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
414 then :
415 eval 'as_fn_arith ()
416 {
417 as_val=$(( $* ))
418 }'
419 else $as_nop
420 as_fn_arith ()
421 {
422 as_val=`expr "$@" || test $? -eq 1`
423 }
424 fi # as_fn_arith
425
426 # as_fn_nop
427 # ---------
428 # Do nothing but, unlike ":", preserve the value of $?.
429 as_fn_nop ()
430 {
431 return $?
432 }
433 as_nop=as_fn_nop
434
435 # as_fn_error STATUS ERROR [LINENO LOG_FD]
436 # ----------------------------------------
437 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
438 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
439 # script with STATUS, using 1 if that was 0.
440 as_fn_error ()
441 {
442 as_status=$1; test $as_status -eq 0 && as_status=1
443 if test "$4"; then
444 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
446 fi
447 printf "%s\n" "$as_me: error: $2" >&2
448 as_fn_exit $as_status
449 } # as_fn_error
450
451 if expr a : '\(a\)' >/dev/null 2>&1 &&
452 test "X`expr 00001 : '.*\(...\)'`" = X001; then
453 as_expr=expr
454 else
455 as_expr=false
456 fi
457
458 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
459 as_basename=basename
460 else
461 as_basename=false
462 fi
463
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
465 as_dirname=dirname
466 else
467 as_dirname=false
468 fi
469
470 as_me=`$as_basename -- "$0" ||
471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
472 X"$0" : 'X\(//\)$' \| \
473 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
474 printf "%s\n" X/"$0" |
475 sed '/^.*\/\([^/][^/]*\)\/*$/{
476 s//\1/
477 q
478 }
479 /^X\/\(\/\/\)$/{
480 s//\1/
481 q
482 }
483 /^X\/\(\/\).*/{
484 s//\1/
485 q
486 }
487 s/.*/./; q'`
488
489 # Avoid depending upon Character Ranges.
490 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
491 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
492 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
493 as_cr_digits='0123456789'
494 as_cr_alnum=$as_cr_Letters$as_cr_digits
495
496
497 as_lineno_1=$LINENO as_lineno_1a=$LINENO
498 as_lineno_2=$LINENO as_lineno_2a=$LINENO
499 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
500 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
501 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
502 sed -n '
503 p
504 /[$]LINENO/=
505 ' <$as_myself |
506 sed '
507 s/[$]LINENO.*/&-/
508 t lineno
509 b
510 :lineno
511 N
512 :loop
513 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
514 t loop
515 s/-\n.*//
516 ' >$as_me.lineno &&
517 chmod +x "$as_me.lineno" ||
518 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
519
520 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
521 # already done that, so ensure we don't try to do so again and fall
522 # in an infinite loop. This has already happened in practice.
523 _as_can_reexec=no; export _as_can_reexec
524 # Don't try to exec as it changes $[0], causing all sort of problems
525 # (the dirname of $[0] is not the place where we might find the
526 # original and so on. Autoconf is especially sensitive to this).
527 . "./$as_me.lineno"
528 # Exit status is that of the last command.
529 exit
530 }
531
532
533 # Determine whether it's possible to make 'echo' print without a newline.
534 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
535 # for compatibility with existing Makefiles.
536 ECHO_C= ECHO_N= ECHO_T=
537 case `echo -n x` in #(((((
538 -n*)
539 case `echo 'xy\c'` in
540 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
541 xy) ECHO_C='\c';;
542 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
543 ECHO_T=' ';;
544 esac;;
545 *)
546 ECHO_N='-n';;
547 esac
548
549 # For backward compatibility with old third-party macros, we provide
550 # the shell variables $as_echo and $as_echo_n. New code should use
551 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
552 as_echo='printf %s\n'
553 as_echo_n='printf %s'
554
555
556 rm -f conf$$ conf$$.exe conf$$.file
557 if test -d conf$$.dir; then
558 rm -f conf$$.dir/conf$$.file
559 else
560 rm -f conf$$.dir
561 mkdir conf$$.dir 2>/dev/null
562 fi
563 if (echo >conf$$.file) 2>/dev/null; then
564 if ln -s conf$$.file conf$$ 2>/dev/null; then
565 as_ln_s='ln -s'
566 # ... but there are two gotchas:
567 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
568 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
569 # In both cases, we have to default to `cp -pR'.
570 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
571 as_ln_s='cp -pR'
572 elif ln conf$$.file conf$$ 2>/dev/null; then
573 as_ln_s=ln
574 else
575 as_ln_s='cp -pR'
576 fi
577 else
578 as_ln_s='cp -pR'
579 fi
580 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
581 rmdir conf$$.dir 2>/dev/null
582
583 if mkdir -p . 2>/dev/null; then
584 as_mkdir_p='mkdir -p "$as_dir"'
585 else
586 test -d ./-p && rmdir ./-p
587 as_mkdir_p=false
588 fi
589
590 as_test_x='test -x'
591 as_executable_p=as_fn_executable_p
592
593 # Sed expression to map a string onto a valid CPP name.
594 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
595
596 # Sed expression to map a string onto a valid variable name.
597 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
598
599 SHELL=${CONFIG_SHELL-/bin/sh}
600
601
602 test -n "$DJDIR" || exec 7<&0 </dev/null
603 exec 6>&1
604
605 # Name of the host.
606 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
607 # so uname gets run too.
608 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
609
610 #
611 # Initializations.
612 #
613 ac_default_prefix=/usr/local
614 ac_clean_files=
615 ac_config_libobj_dir=.
616 LIBOBJS=
617 cross_compiling=no
618 subdirs=
619 MFLAGS=
620 MAKEFLAGS=
621
622 # Identity of this package.
623 PACKAGE_NAME='libfontenc'
624 PACKAGE_TARNAME='libfontenc'
625 PACKAGE_VERSION='1.1.7'
626 PACKAGE_STRING='libfontenc 1.1.7'
627 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues'
628 PACKAGE_URL=''
629
630 ac_unique_file="Makefile.am"
631 # Factoring default headers for most tests.
632 ac_includes_default="\
633 #include <stddef.h>
634 #ifdef HAVE_STDIO_H
635 # include <stdio.h>
636 #endif
637 #ifdef HAVE_STDLIB_H
638 # include <stdlib.h>
639 #endif
640 #ifdef HAVE_STRING_H
641 # include <string.h>
642 #endif
643 #ifdef HAVE_INTTYPES_H
644 # include <inttypes.h>
645 #endif
646 #ifdef HAVE_STDINT_H
647 # include <stdint.h>
648 #endif
649 #ifdef HAVE_STRINGS_H
650 # include <strings.h>
651 #endif
652 #ifdef HAVE_SYS_TYPES_H
653 # include <sys/types.h>
654 #endif
655 #ifdef HAVE_SYS_STAT_H
656 # include <sys/stat.h>
657 #endif
658 #ifdef HAVE_UNISTD_H
659 # include <unistd.h>
660 #endif"
661
662 ac_header_c_list=
663 ac_subst_vars='am__EXEEXT_FALSE
664 am__EXEEXT_TRUE
665 LTLIBOBJS
666 LINT_FALSE
667 LINT_TRUE
668 LINT_FLAGS
669 LINT
670 LIBOBJS
671 FONTENC_LIBS
672 FONTENC_CFLAGS
673 ENCODINGSDIR
674 FONTROOTDIR
675 MAN_SUBSTS
676 XORG_MAN_PAGE
677 ADMIN_MAN_DIR
678 DRIVER_MAN_DIR
679 MISC_MAN_DIR
680 FILE_MAN_DIR
681 LIB_MAN_DIR
682 APP_MAN_DIR
683 ADMIN_MAN_SUFFIX
684 DRIVER_MAN_SUFFIX
685 MISC_MAN_SUFFIX
686 FILE_MAN_SUFFIX
687 LIB_MAN_SUFFIX
688 APP_MAN_SUFFIX
689 INSTALL_CMD
690 PKG_CONFIG_LIBDIR
691 PKG_CONFIG_PATH
692 PKG_CONFIG
693 CHANGELOG_CMD
694 STRICT_CFLAGS
695 CWARNFLAGS
696 BASE_CFLAGS
697 LT_SYS_LIBRARY_PATH
698 OTOOL64
699 OTOOL
700 LIPO
701 NMEDIT
702 DSYMUTIL
703 MANIFEST_TOOL
704 RANLIB
705 ac_ct_AR
706 AR
707 DLLTOOL
708 OBJDUMP
709 FILECMD
710 LN_S
711 NM
712 ac_ct_DUMPBIN
713 DUMPBIN
714 LD
715 FGREP
716 EGREP
717 GREP
718 SED
719 host_os
720 host_vendor
721 host_cpu
722 host
723 build_os
724 build_vendor
725 build_cpu
726 build
727 LIBTOOL
728 AM_BACKSLASH
729 AM_DEFAULT_VERBOSITY
730 AM_DEFAULT_V
731 AM_V
732 CSCOPE
733 ETAGS
734 CTAGS
735 am__fastdepCC_FALSE
736 am__fastdepCC_TRUE
737 CCDEPMODE
738 am__nodep
739 AMDEPBACKSLASH
740 AMDEP_FALSE
741 AMDEP_TRUE
742 am__include
743 DEPDIR
744 am__untar
745 am__tar
746 AMTAR
747 am__leading_dot
748 SET_MAKE
749 AWK
750 mkdir_p
751 MKDIR_P
752 INSTALL_STRIP_PROGRAM
753 STRIP
754 install_sh
755 MAKEINFO
756 AUTOHEADER
757 AUTOMAKE
758 AUTOCONF
759 ACLOCAL
760 VERSION
761 PACKAGE
762 CYGPATH_W
763 am__isrc
764 INSTALL_DATA
765 INSTALL_SCRIPT
766 INSTALL_PROGRAM
767 OBJEXT
768 EXEEXT
769 ac_ct_CC
770 CPPFLAGS
771 LDFLAGS
772 CFLAGS
773 CC
774 target_alias
775 host_alias
776 build_alias
777 LIBS
778 ECHO_T
779 ECHO_N
780 ECHO_C
781 DEFS
782 mandir
783 localedir
784 libdir
785 psdir
786 pdfdir
787 dvidir
788 htmldir
789 infodir
790 docdir
791 oldincludedir
792 includedir
793 runstatedir
794 localstatedir
795 sharedstatedir
796 sysconfdir
797 datadir
798 datarootdir
799 libexecdir
800 sbindir
801 bindir
802 program_transform_name
803 prefix
804 exec_prefix
805 PACKAGE_URL
806 PACKAGE_BUGREPORT
807 PACKAGE_STRING
808 PACKAGE_VERSION
809 PACKAGE_TARNAME
810 PACKAGE_NAME
811 PATH_SEPARATOR
812 SHELL
813 am__quote'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_dependency_tracking
818 enable_silent_rules
819 enable_shared
820 enable_static
821 with_pic
822 enable_fast_install
823 with_aix_soname
824 with_gnu_ld
825 with_sysroot
826 enable_libtool_lock
827 enable_selective_werror
828 enable_strict_compilation
829 with_fontrootdir
830 with_encodingsdir
831 enable_largefile
832 with_lint
833 '
834 ac_precious_vars='build_alias
835 host_alias
836 target_alias
837 CC
838 CFLAGS
839 LDFLAGS
840 LIBS
841 CPPFLAGS
842 LT_SYS_LIBRARY_PATH
843 PKG_CONFIG
844 PKG_CONFIG_PATH
845 PKG_CONFIG_LIBDIR
846 FONTENC_CFLAGS
847 FONTENC_LIBS
848 LINT
849 LINT_FLAGS'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 runstatedir='${localstatedir}/run'
889 includedir='${prefix}/include'
890 oldincludedir='/usr/include'
891 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
892 infodir='${datarootdir}/info'
893 htmldir='${docdir}'
894 dvidir='${docdir}'
895 pdfdir='${docdir}'
896 psdir='${docdir}'
897 libdir='${exec_prefix}/lib'
898 localedir='${datarootdir}/locale'
899 mandir='${datarootdir}/man'
900
901 ac_prev=
902 ac_dashdash=
903 for ac_option
904 do
905 # If the previous option needs an argument, assign it.
906 if test -n "$ac_prev"; then
907 eval $ac_prev=\$ac_option
908 ac_prev=
909 continue
910 fi
911
912 case $ac_option in
913 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
914 *=) ac_optarg= ;;
915 *) ac_optarg=yes ;;
916 esac
917
918 case $ac_dashdash$ac_option in
919 --)
920 ac_dashdash=yes ;;
921
922 -bindir | --bindir | --bindi | --bind | --bin | --bi)
923 ac_prev=bindir ;;
924 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925 bindir=$ac_optarg ;;
926
927 -build | --build | --buil | --bui | --bu)
928 ac_prev=build_alias ;;
929 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930 build_alias=$ac_optarg ;;
931
932 -cache-file | --cache-file | --cache-fil | --cache-fi \
933 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934 ac_prev=cache_file ;;
935 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937 cache_file=$ac_optarg ;;
938
939 --config-cache | -C)
940 cache_file=config.cache ;;
941
942 -datadir | --datadir | --datadi | --datad)
943 ac_prev=datadir ;;
944 -datadir=* | --datadir=* | --datadi=* | --datad=*)
945 datadir=$ac_optarg ;;
946
947 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948 | --dataroo | --dataro | --datar)
949 ac_prev=datarootdir ;;
950 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952 datarootdir=$ac_optarg ;;
953
954 -disable-* | --disable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: \`$ac_useropt'"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
962 *"
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=no ;;
969
970 -docdir | --docdir | --docdi | --doc | --do)
971 ac_prev=docdir ;;
972 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973 docdir=$ac_optarg ;;
974
975 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976 ac_prev=dvidir ;;
977 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978 dvidir=$ac_optarg ;;
979
980 -enable-* | --enable-*)
981 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982 # Reject names that are not valid shell variable names.
983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984 as_fn_error $? "invalid feature name: \`$ac_useropt'"
985 ac_useropt_orig=$ac_useropt
986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
987 case $ac_user_opts in
988 *"
989 "enable_$ac_useropt"
990 "*) ;;
991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992 ac_unrecognized_sep=', ';;
993 esac
994 eval enable_$ac_useropt=\$ac_optarg ;;
995
996 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998 | --exec | --exe | --ex)
999 ac_prev=exec_prefix ;;
1000 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002 | --exec=* | --exe=* | --ex=*)
1003 exec_prefix=$ac_optarg ;;
1004
1005 -gas | --gas | --ga | --g)
1006 # Obsolete; use --with-gas.
1007 with_gas=yes ;;
1008
1009 -help | --help | --hel | --he | -h)
1010 ac_init_help=long ;;
1011 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012 ac_init_help=recursive ;;
1013 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014 ac_init_help=short ;;
1015
1016 -host | --host | --hos | --ho)
1017 ac_prev=host_alias ;;
1018 -host=* | --host=* | --hos=* | --ho=*)
1019 host_alias=$ac_optarg ;;
1020
1021 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022 ac_prev=htmldir ;;
1023 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024 | --ht=*)
1025 htmldir=$ac_optarg ;;
1026
1027 -includedir | --includedir | --includedi | --included | --include \
1028 | --includ | --inclu | --incl | --inc)
1029 ac_prev=includedir ;;
1030 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031 | --includ=* | --inclu=* | --incl=* | --inc=*)
1032 includedir=$ac_optarg ;;
1033
1034 -infodir | --infodir | --infodi | --infod | --info | --inf)
1035 ac_prev=infodir ;;
1036 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037 infodir=$ac_optarg ;;
1038
1039 -libdir | --libdir | --libdi | --libd)
1040 ac_prev=libdir ;;
1041 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042 libdir=$ac_optarg ;;
1043
1044 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045 | --libexe | --libex | --libe)
1046 ac_prev=libexecdir ;;
1047 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048 | --libexe=* | --libex=* | --libe=*)
1049 libexecdir=$ac_optarg ;;
1050
1051 -localedir | --localedir | --localedi | --localed | --locale)
1052 ac_prev=localedir ;;
1053 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054 localedir=$ac_optarg ;;
1055
1056 -localstatedir | --localstatedir | --localstatedi | --localstated \
1057 | --localstate | --localstat | --localsta | --localst | --locals)
1058 ac_prev=localstatedir ;;
1059 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061 localstatedir=$ac_optarg ;;
1062
1063 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064 ac_prev=mandir ;;
1065 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066 mandir=$ac_optarg ;;
1067
1068 -nfp | --nfp | --nf)
1069 # Obsolete; use --without-fp.
1070 with_fp=no ;;
1071
1072 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073 | --no-cr | --no-c | -n)
1074 no_create=yes ;;
1075
1076 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078 no_recursion=yes ;;
1079
1080 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082 | --oldin | --oldi | --old | --ol | --o)
1083 ac_prev=oldincludedir ;;
1084 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087 oldincludedir=$ac_optarg ;;
1088
1089 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090 ac_prev=prefix ;;
1091 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092 prefix=$ac_optarg ;;
1093
1094 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095 | --program-pre | --program-pr | --program-p)
1096 ac_prev=program_prefix ;;
1097 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099 program_prefix=$ac_optarg ;;
1100
1101 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102 | --program-suf | --program-su | --program-s)
1103 ac_prev=program_suffix ;;
1104 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106 program_suffix=$ac_optarg ;;
1107
1108 -program-transform-name | --program-transform-name \
1109 | --program-transform-nam | --program-transform-na \
1110 | --program-transform-n | --program-transform- \
1111 | --program-transform | --program-transfor \
1112 | --program-transfo | --program-transf \
1113 | --program-trans | --program-tran \
1114 | --progr-tra | --program-tr | --program-t)
1115 ac_prev=program_transform_name ;;
1116 -program-transform-name=* | --program-transform-name=* \
1117 | --program-transform-nam=* | --program-transform-na=* \
1118 | --program-transform-n=* | --program-transform-=* \
1119 | --program-transform=* | --program-transfor=* \
1120 | --program-transfo=* | --program-transf=* \
1121 | --program-trans=* | --program-tran=* \
1122 | --progr-tra=* | --program-tr=* | --program-t=*)
1123 program_transform_name=$ac_optarg ;;
1124
1125 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126 ac_prev=pdfdir ;;
1127 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128 pdfdir=$ac_optarg ;;
1129
1130 -psdir | --psdir | --psdi | --psd | --ps)
1131 ac_prev=psdir ;;
1132 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133 psdir=$ac_optarg ;;
1134
1135 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136 | -silent | --silent | --silen | --sile | --sil)
1137 silent=yes ;;
1138
1139 -runstatedir | --runstatedir | --runstatedi | --runstated \
1140 | --runstate | --runstat | --runsta | --runst | --runs \
1141 | --run | --ru | --r)
1142 ac_prev=runstatedir ;;
1143 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145 | --run=* | --ru=* | --r=*)
1146 runstatedir=$ac_optarg ;;
1147
1148 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149 ac_prev=sbindir ;;
1150 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151 | --sbi=* | --sb=*)
1152 sbindir=$ac_optarg ;;
1153
1154 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156 | --sharedst | --shareds | --shared | --share | --shar \
1157 | --sha | --sh)
1158 ac_prev=sharedstatedir ;;
1159 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162 | --sha=* | --sh=*)
1163 sharedstatedir=$ac_optarg ;;
1164
1165 -site | --site | --sit)
1166 ac_prev=site ;;
1167 -site=* | --site=* | --sit=*)
1168 site=$ac_optarg ;;
1169
1170 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171 ac_prev=srcdir ;;
1172 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173 srcdir=$ac_optarg ;;
1174
1175 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176 | --syscon | --sysco | --sysc | --sys | --sy)
1177 ac_prev=sysconfdir ;;
1178 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180 sysconfdir=$ac_optarg ;;
1181
1182 -target | --target | --targe | --targ | --tar | --ta | --t)
1183 ac_prev=target_alias ;;
1184 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185 target_alias=$ac_optarg ;;
1186
1187 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188 verbose=yes ;;
1189
1190 -version | --version | --versio | --versi | --vers | -V)
1191 ac_init_version=: ;;
1192
1193 -with-* | --with-*)
1194 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195 # Reject names that are not valid shell variable names.
1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197 as_fn_error $? "invalid package name: \`$ac_useropt'"
1198 ac_useropt_orig=$ac_useropt
1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1200 case $ac_user_opts in
1201 *"
1202 "with_$ac_useropt"
1203 "*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval with_$ac_useropt=\$ac_optarg ;;
1208
1209 -without-* | --without-*)
1210 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211 # Reject names that are not valid shell variable names.
1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213 as_fn_error $? "invalid package name: \`$ac_useropt'"
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=no ;;
1224
1225 --x)
1226 # Obsolete; use --with-x.
1227 with_x=yes ;;
1228
1229 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230 | --x-incl | --x-inc | --x-in | --x-i)
1231 ac_prev=x_includes ;;
1232 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234 x_includes=$ac_optarg ;;
1235
1236 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238 ac_prev=x_libraries ;;
1239 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241 x_libraries=$ac_optarg ;;
1242
1243 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244 Try \`$0 --help' for more information"
1245 ;;
1246
1247 *=*)
1248 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249 # Reject names that are not valid shell variable names.
1250 case $ac_envvar in #(
1251 '' | [0-9]* | *[!_$as_cr_alnum]* )
1252 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253 esac
1254 eval $ac_envvar=\$ac_optarg
1255 export $ac_envvar ;;
1256
1257 *)
1258 # FIXME: should be removed in autoconf 3.0.
1259 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1260 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1262 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263 ;;
1264
1265 esac
1266 done
1267
1268 if test -n "$ac_prev"; then
1269 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270 as_fn_error $? "missing argument to $ac_option"
1271 fi
1272
1273 if test -n "$ac_unrecognized_opts"; then
1274 case $enable_option_checking in
1275 no) ;;
1276 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278 esac
1279 fi
1280
1281 # Check all directory arguments for consistency.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir runstatedir
1286 do
1287 eval ac_val=\$$ac_var
1288 # Remove trailing slashes.
1289 case $ac_val in
1290 */ )
1291 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292 eval $ac_var=\$ac_val;;
1293 esac
1294 # Be sure to have absolute directory names.
1295 case $ac_val in
1296 [\\/$]* | ?:[\\/]* ) continue;;
1297 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298 esac
1299 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300 done
1301
1302 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day.
1305 build=$build_alias
1306 host=$host_alias
1307 target=$target_alias
1308
1309 # FIXME: To remove some day.
1310 if test "x$host_alias" != x; then
1311 if test "x$build_alias" = x; then
1312 cross_compiling=maybe
1313 elif test "x$build_alias" != "x$host_alias"; then
1314 cross_compiling=yes
1315 fi
1316 fi
1317
1318 ac_tool_prefix=
1319 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321 test "$silent" = yes && exec 6>/dev/null
1322
1323
1324 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325 ac_ls_di=`ls -di .` &&
1326 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327 as_fn_error $? "working directory cannot be determined"
1328 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329 as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332 # Find the source files, if location was not specified.
1333 if test -z "$srcdir"; then
1334 ac_srcdir_defaulted=yes
1335 # Try the directory containing this script, then the parent directory.
1336 ac_confdir=`$as_dirname -- "$as_myself" ||
1337 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338 X"$as_myself" : 'X\(//\)[^/]' \| \
1339 X"$as_myself" : 'X\(//\)$' \| \
1340 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341 printf "%s\n" X"$as_myself" |
1342 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\/\)[^/].*/{
1347 s//\1/
1348 q
1349 }
1350 /^X\(\/\/\)$/{
1351 s//\1/
1352 q
1353 }
1354 /^X\(\/\).*/{
1355 s//\1/
1356 q
1357 }
1358 s/.*/./; q'`
1359 srcdir=$ac_confdir
1360 if test ! -r "$srcdir/$ac_unique_file"; then
1361 srcdir=..
1362 fi
1363 else
1364 ac_srcdir_defaulted=no
1365 fi
1366 if test ! -r "$srcdir/$ac_unique_file"; then
1367 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369 fi
1370 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371 ac_abs_confdir=`(
1372 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures libfontenc 1.1.7 to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking ...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468 case $ac_init_help in
1469 short | recursive ) echo "Configuration of libfontenc 1.1.7:";;
1470 esac
1471 cat <<\_ACEOF
1472
1473 Optional Features:
1474 --disable-option-checking ignore unrecognized --enable/--with options
1475 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1476 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1477 --enable-dependency-tracking
1478 do not reject slow dependency extractors
1479 --disable-dependency-tracking
1480 speeds up one-time build
1481 --enable-silent-rules less verbose build output (undo: "make V=1")
1482 --disable-silent-rules verbose build output (undo: "make V=0")
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --disable-selective-werror
1489 Turn off selective compiler errors. (default:
1490 enabled)
1491 --enable-strict-compilation
1492 Enable all warnings from compiler and make them
1493 errors (default: disabled)
1494 --disable-largefile omit support for large files
1495
1496 Optional Packages:
1497 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1498 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1499 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1500 both]
1501 --with-aix-soname=aix|svr4|both
1502 shared library versioning (aka "SONAME") variant to
1503 provide on AIX, [default=aix].
1504 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1505 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1506 compiler's sysroot if not specified).
1507 --with-fontrootdir=DIR Path to root directory for font files
1508 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1509 --with-lint Use a lint-style source code checker (default:
1510 disabled)
1511
1512 Some influential environment variables:
1513 CC C compiler command
1514 CFLAGS C compiler flags
1515 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1516 nonstandard directory <lib dir>
1517 LIBS libraries to pass to the linker, e.g. -l<library>
1518 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1519 you have headers in a nonstandard directory <include dir>
1520 LT_SYS_LIBRARY_PATH
1521 User-defined run-time library search path.
1522 PKG_CONFIG path to pkg-config utility
1523 PKG_CONFIG_PATH
1524 directories to add to pkg-config's search path
1525 PKG_CONFIG_LIBDIR
1526 path overriding pkg-config's built-in search path
1527 FONTENC_CFLAGS
1528 C compiler flags for FONTENC, overriding pkg-config
1529 FONTENC_LIBS
1530 linker flags for FONTENC, overriding pkg-config
1531 LINT Path to a lint-style command
1532 LINT_FLAGS Flags for the lint-style command
1533
1534 Use these variables to override the choices made by `configure' or to help
1535 it to find libraries and programs with nonstandard names/locations.
1536
1537 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>.
1538 _ACEOF
1539 ac_status=$?
1540 fi
1541
1542 if test "$ac_init_help" = "recursive"; then
1543 # If there are subdirs, report their specific --help.
1544 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1545 test -d "$ac_dir" ||
1546 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1547 continue
1548 ac_builddir=.
1549
1550 case "$ac_dir" in
1551 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1552 *)
1553 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1554 # A ".." for each directory in $ac_dir_suffix.
1555 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1556 case $ac_top_builddir_sub in
1557 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1559 esac ;;
1560 esac
1561 ac_abs_top_builddir=$ac_pwd
1562 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1563 # for backward compatibility:
1564 ac_top_builddir=$ac_top_build_prefix
1565
1566 case $srcdir in
1567 .) # We are building in place.
1568 ac_srcdir=.
1569 ac_top_srcdir=$ac_top_builddir_sub
1570 ac_abs_top_srcdir=$ac_pwd ;;
1571 [\\/]* | ?:[\\/]* ) # Absolute name.
1572 ac_srcdir=$srcdir$ac_dir_suffix;
1573 ac_top_srcdir=$srcdir
1574 ac_abs_top_srcdir=$srcdir ;;
1575 *) # Relative name.
1576 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1577 ac_top_srcdir=$ac_top_build_prefix$srcdir
1578 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1579 esac
1580 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1581
1582 cd "$ac_dir" || { ac_status=$?; continue; }
1583 # Check for configure.gnu first; this name is used for a wrapper for
1584 # Metaconfig's "Configure" on case-insensitive file systems.
1585 if test -f "$ac_srcdir/configure.gnu"; then
1586 echo &&
1587 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1588 elif test -f "$ac_srcdir/configure"; then
1589 echo &&
1590 $SHELL "$ac_srcdir/configure" --help=recursive
1591 else
1592 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1593 fi || ac_status=$?
1594 cd "$ac_pwd" || { ac_status=$?; break; }
1595 done
1596 fi
1597
1598 test -n "$ac_init_help" && exit $ac_status
1599 if $ac_init_version; then
1600 cat <<\_ACEOF
1601 libfontenc configure 1.1.7
1602 generated by GNU Autoconf 2.71
1603
1604 Copyright (C) 2021 Free Software Foundation, Inc.
1605 This configure script is free software; the Free Software Foundation
1606 gives unlimited permission to copy, distribute and modify it.
1607 _ACEOF
1608 exit
1609 fi
1610
1611 ## ------------------------ ##
1612 ## Autoconf initialization. ##
1613 ## ------------------------ ##
1614
1615 # ac_fn_c_try_compile LINENO
1616 # --------------------------
1617 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1618 ac_fn_c_try_compile ()
1619 {
1620 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1621 rm -f conftest.$ac_objext conftest.beam
1622 if { { ac_try="$ac_compile"
1623 case "(($ac_try" in
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1626 esac
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 printf "%s\n" "$ac_try_echo"; } >&5
1629 (eval "$ac_compile") 2>conftest.err
1630 ac_status=$?
1631 if test -s conftest.err; then
1632 grep -v '^ *+' conftest.err >conftest.er1
1633 cat conftest.er1 >&5
1634 mv -f conftest.er1 conftest.err
1635 fi
1636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1637 test $ac_status = 0; } && {
1638 test -z "$ac_c_werror_flag" ||
1639 test ! -s conftest.err
1640 } && test -s conftest.$ac_objext
1641 then :
1642 ac_retval=0
1643 else $as_nop
1644 printf "%s\n" "$as_me: failed program was:" >&5
1645 sed 's/^/| /' conftest.$ac_ext >&5
1646
1647 ac_retval=1
1648 fi
1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1650 as_fn_set_status $ac_retval
1651
1652 } # ac_fn_c_try_compile
1653
1654 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1655 # -------------------------------------------------------
1656 # Tests whether HEADER exists and can be compiled using the include files in
1657 # INCLUDES, setting the cache variable VAR accordingly.
1658 ac_fn_c_check_header_compile ()
1659 {
1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1662 printf %s "checking for $2... " >&6; }
1663 if eval test \${$3+y}
1664 then :
1665 printf %s "(cached) " >&6
1666 else $as_nop
1667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1668 /* end confdefs.h. */
1669 $4
1670 #include <$2>
1671 _ACEOF
1672 if ac_fn_c_try_compile "$LINENO"
1673 then :
1674 eval "$3=yes"
1675 else $as_nop
1676 eval "$3=no"
1677 fi
1678 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1679 fi
1680 eval ac_res=\$$3
1681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1682 printf "%s\n" "$ac_res" >&6; }
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684
1685 } # ac_fn_c_check_header_compile
1686
1687 # ac_fn_c_try_link LINENO
1688 # -----------------------
1689 # Try to link conftest.$ac_ext, and return whether this succeeded.
1690 ac_fn_c_try_link ()
1691 {
1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1693 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1694 if { { ac_try="$ac_link"
1695 case "(($ac_try" in
1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1697 *) ac_try_echo=$ac_try;;
1698 esac
1699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1700 printf "%s\n" "$ac_try_echo"; } >&5
1701 (eval "$ac_link") 2>conftest.err
1702 ac_status=$?
1703 if test -s conftest.err; then
1704 grep -v '^ *+' conftest.err >conftest.er1
1705 cat conftest.er1 >&5
1706 mv -f conftest.er1 conftest.err
1707 fi
1708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1709 test $ac_status = 0; } && {
1710 test -z "$ac_c_werror_flag" ||
1711 test ! -s conftest.err
1712 } && test -s conftest$ac_exeext && {
1713 test "$cross_compiling" = yes ||
1714 test -x conftest$ac_exeext
1715 }
1716 then :
1717 ac_retval=0
1718 else $as_nop
1719 printf "%s\n" "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1725 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1726 # interfere with the next link command; also delete a directory that is
1727 # left behind by Apple's compiler. We do this before executing the actions.
1728 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1730 as_fn_set_status $ac_retval
1731
1732 } # ac_fn_c_try_link
1733
1734 # ac_fn_c_check_func LINENO FUNC VAR
1735 # ----------------------------------
1736 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1737 ac_fn_c_check_func ()
1738 {
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1741 printf %s "checking for $2... " >&6; }
1742 if eval test \${$3+y}
1743 then :
1744 printf %s "(cached) " >&6
1745 else $as_nop
1746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1747 /* end confdefs.h. */
1748 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1750 #define $2 innocuous_$2
1751
1752 /* System header to define __stub macros and hopefully few prototypes,
1753 which can conflict with char $2 (void); below. */
1754
1755 #include <limits.h>
1756 #undef $2
1757
1758 /* Override any GCC internal prototype to avoid an error.
1759 Use char because int might match the return type of a GCC
1760 builtin and then its argument prototype would still apply. */
1761 #ifdef __cplusplus
1762 extern "C"
1763 #endif
1764 char $2 (void);
1765 /* The GNU C library defines this for functions which it implements
1766 to always fail with ENOSYS. Some functions are actually named
1767 something starting with __ and the normal name is an alias. */
1768 #if defined __stub_$2 || defined __stub___$2
1769 choke me
1770 #endif
1771
1772 int
1773 main (void)
1774 {
1775 return $2 ();
1776 ;
1777 return 0;
1778 }
1779 _ACEOF
1780 if ac_fn_c_try_link "$LINENO"
1781 then :
1782 eval "$3=yes"
1783 else $as_nop
1784 eval "$3=no"
1785 fi
1786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1787 conftest$ac_exeext conftest.$ac_ext
1788 fi
1789 eval ac_res=\$$3
1790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1791 printf "%s\n" "$ac_res" >&6; }
1792 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793
1794 } # ac_fn_c_check_func
1795
1796 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1797 # ------------------------------------------------------------------
1798 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1799 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1800 ac_fn_check_decl ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 as_decl_name=`echo $2|sed 's/ *(.*//'`
1804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1805 printf %s "checking whether $as_decl_name is declared... " >&6; }
1806 if eval test \${$3+y}
1807 then :
1808 printf %s "(cached) " >&6
1809 else $as_nop
1810 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1811 eval ac_save_FLAGS=\$$6
1812 as_fn_append $6 " $5"
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 $4
1816 int
1817 main (void)
1818 {
1819 #ifndef $as_decl_name
1820 #ifdef __cplusplus
1821 (void) $as_decl_use;
1822 #else
1823 (void) $as_decl_name;
1824 #endif
1825 #endif
1826
1827 ;
1828 return 0;
1829 }
1830 _ACEOF
1831 if ac_fn_c_try_compile "$LINENO"
1832 then :
1833 eval "$3=yes"
1834 else $as_nop
1835 eval "$3=no"
1836 fi
1837 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1838 eval $6=\$ac_save_FLAGS
1839
1840 fi
1841 eval ac_res=\$$3
1842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1843 printf "%s\n" "$ac_res" >&6; }
1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1845
1846 } # ac_fn_check_decl
1847 ac_configure_args_raw=
1848 for ac_arg
1849 do
1850 case $ac_arg in
1851 *\'*)
1852 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 esac
1854 as_fn_append ac_configure_args_raw " '$ac_arg'"
1855 done
1856
1857 case $ac_configure_args_raw in
1858 *$as_nl*)
1859 ac_safe_unquote= ;;
1860 *)
1861 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
1862 ac_unsafe_a="$ac_unsafe_z#~"
1863 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1864 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1865 esac
1866
1867 cat >config.log <<_ACEOF
1868 This file contains any messages produced by compilers while
1869 running configure, to aid debugging if configure makes a mistake.
1870
1871 It was created by libfontenc $as_me 1.1.7, which was
1872 generated by GNU Autoconf 2.71. Invocation command line was
1873
1874 $ $0$ac_configure_args_raw
1875
1876 _ACEOF
1877 exec 5>>config.log
1878 {
1879 cat <<_ASUNAME
1880 ## --------- ##
1881 ## Platform. ##
1882 ## --------- ##
1883
1884 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1885 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1886 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1887 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1888 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1889
1890 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1891 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1892
1893 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1894 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1895 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1896 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1897 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1898 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1899 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1900
1901 _ASUNAME
1902
1903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1904 for as_dir in $PATH
1905 do
1906 IFS=$as_save_IFS
1907 case $as_dir in #(((
1908 '') as_dir=./ ;;
1909 */) ;;
1910 *) as_dir=$as_dir/ ;;
1911 esac
1912 printf "%s\n" "PATH: $as_dir"
1913 done
1914 IFS=$as_save_IFS
1915
1916 } >&5
1917
1918 cat >&5 <<_ACEOF
1919
1920
1921 ## ----------- ##
1922 ## Core tests. ##
1923 ## ----------- ##
1924
1925 _ACEOF
1926
1927
1928 # Keep a trace of the command line.
1929 # Strip out --no-create and --no-recursion so they do not pile up.
1930 # Strip out --silent because we don't want to record it for future runs.
1931 # Also quote any args containing shell meta-characters.
1932 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_configure_args=
1934 ac_configure_args0=
1935 ac_configure_args1=
1936 ac_must_keep_next=false
1937 for ac_pass in 1 2
1938 do
1939 for ac_arg
1940 do
1941 case $ac_arg in
1942 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1944 | -silent | --silent | --silen | --sile | --sil)
1945 continue ;;
1946 *\'*)
1947 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1948 esac
1949 case $ac_pass in
1950 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1951 2)
1952 as_fn_append ac_configure_args1 " '$ac_arg'"
1953 if test $ac_must_keep_next = true; then
1954 ac_must_keep_next=false # Got value, back to normal.
1955 else
1956 case $ac_arg in
1957 *=* | --config-cache | -C | -disable-* | --disable-* \
1958 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1959 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1960 | -with-* | --with-* | -without-* | --without-* | --x)
1961 case "$ac_configure_args0 " in
1962 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1963 esac
1964 ;;
1965 -* ) ac_must_keep_next=true ;;
1966 esac
1967 fi
1968 as_fn_append ac_configure_args " '$ac_arg'"
1969 ;;
1970 esac
1971 done
1972 done
1973 { ac_configure_args0=; unset ac_configure_args0;}
1974 { ac_configure_args1=; unset ac_configure_args1;}
1975
1976 # When interrupted or exit'd, cleanup temporary files, and complete
1977 # config.log. We remove comments because anyway the quotes in there
1978 # would cause problems or look ugly.
1979 # WARNING: Use '\'' to represent an apostrophe within the trap.
1980 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1981 trap 'exit_status=$?
1982 # Sanitize IFS.
1983 IFS=" "" $as_nl"
1984 # Save into config.log some information that might help in debugging.
1985 {
1986 echo
1987
1988 printf "%s\n" "## ---------------- ##
1989 ## Cache variables. ##
1990 ## ---------------- ##"
1991 echo
1992 # The following way of writing the cache mishandles newlines in values,
1993 (
1994 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1995 eval ac_val=\$$ac_var
1996 case $ac_val in #(
1997 *${as_nl}*)
1998 case $ac_var in #(
1999 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2000 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2001 esac
2002 case $ac_var in #(
2003 _ | IFS | as_nl) ;; #(
2004 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2005 *) { eval $ac_var=; unset $ac_var;} ;;
2006 esac ;;
2007 esac
2008 done
2009 (set) 2>&1 |
2010 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2011 *${as_nl}ac_space=\ *)
2012 sed -n \
2013 "s/'\''/'\''\\\\'\'''\''/g;
2014 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2015 ;; #(
2016 *)
2017 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2018 ;;
2019 esac |
2020 sort
2021 )
2022 echo
2023
2024 printf "%s\n" "## ----------------- ##
2025 ## Output variables. ##
2026 ## ----------------- ##"
2027 echo
2028 for ac_var in $ac_subst_vars
2029 do
2030 eval ac_val=\$$ac_var
2031 case $ac_val in
2032 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2033 esac
2034 printf "%s\n" "$ac_var='\''$ac_val'\''"
2035 done | sort
2036 echo
2037
2038 if test -n "$ac_subst_files"; then
2039 printf "%s\n" "## ------------------- ##
2040 ## File substitutions. ##
2041 ## ------------------- ##"
2042 echo
2043 for ac_var in $ac_subst_files
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 fi
2053
2054 if test -s confdefs.h; then
2055 printf "%s\n" "## ----------- ##
2056 ## confdefs.h. ##
2057 ## ----------- ##"
2058 echo
2059 cat confdefs.h
2060 echo
2061 fi
2062 test "$ac_signal" != 0 &&
2063 printf "%s\n" "$as_me: caught signal $ac_signal"
2064 printf "%s\n" "$as_me: exit $exit_status"
2065 } >&5
2066 rm -f core *.core core.conftest.* &&
2067 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2068 exit $exit_status
2069 ' 0
2070 for ac_signal in 1 2 13 15; do
2071 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2072 done
2073 ac_signal=0
2074
2075 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2076 rm -f -r conftest* confdefs.h
2077
2078 printf "%s\n" "/* confdefs.h */" > confdefs.h
2079
2080 # Predefined preprocessor variables.
2081
2082 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2083
2084 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2085
2086 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2087
2088 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2089
2090 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2091
2092 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2093
2094
2095 # Let the site file select an alternate cache file if it wants to.
2096 # Prefer an explicitly selected file to automatically selected ones.
2097 if test -n "$CONFIG_SITE"; then
2098 ac_site_files="$CONFIG_SITE"
2099 elif test "x$prefix" != xNONE; then
2100 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2101 else
2102 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2103 fi
2104
2105 for ac_site_file in $ac_site_files
2106 do
2107 case $ac_site_file in #(
2108 */*) :
2109 ;; #(
2110 *) :
2111 ac_site_file=./$ac_site_file ;;
2112 esac
2113 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2115 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2116 sed 's/^/| /' "$ac_site_file" >&5
2117 . "$ac_site_file" \
2118 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2119 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2120 as_fn_error $? "failed to load site script $ac_site_file
2121 See \`config.log' for more details" "$LINENO" 5; }
2122 fi
2123 done
2124
2125 if test -r "$cache_file"; then
2126 # Some versions of bash will fail to source /dev/null (special files
2127 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2128 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2130 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2131 case $cache_file in
2132 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2133 *) . "./$cache_file";;
2134 esac
2135 fi
2136 else
2137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2138 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2139 >$cache_file
2140 fi
2141
2142 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2143 # Test code for whether the C compiler supports C89 (global declarations)
2144 ac_c_conftest_c89_globals='
2145 /* Does the compiler advertise C89 conformance?
2146 Do not test the value of __STDC__, because some compilers set it to 0
2147 while being otherwise adequately conformant. */
2148 #if !defined __STDC__
2149 # error "Compiler does not advertise C89 conformance"
2150 #endif
2151
2152 #include <stddef.h>
2153 #include <stdarg.h>
2154 struct stat;
2155 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2156 struct buf { int x; };
2157 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2158 static char *e (char **p, int i)
2159 {
2160 return p[i];
2161 }
2162 static char *f (char * (*g) (char **, int), char **p, ...)
2163 {
2164 char *s;
2165 va_list v;
2166 va_start (v,p);
2167 s = g (p, va_arg (v,int));
2168 va_end (v);
2169 return s;
2170 }
2171
2172 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2173 function prototypes and stuff, but not \xHH hex character constants.
2174 These do not provoke an error unfortunately, instead are silently treated
2175 as an "x". The following induces an error, until -std is added to get
2176 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2177 array size at least. It is necessary to write \x00 == 0 to get something
2178 that is true only with -std. */
2179 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2180
2181 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2182 inside strings and character constants. */
2183 #define FOO(x) '\''x'\''
2184 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2185
2186 int test (int i, double x);
2187 struct s1 {int (*f) (int a);};
2188 struct s2 {int (*f) (double a);};
2189 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2190 int, int);'
2191
2192 # Test code for whether the C compiler supports C89 (body of main).
2193 ac_c_conftest_c89_main='
2194 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2195 '
2196
2197 # Test code for whether the C compiler supports C99 (global declarations)
2198 ac_c_conftest_c99_globals='
2199 // Does the compiler advertise C99 conformance?
2200 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2201 # error "Compiler does not advertise C99 conformance"
2202 #endif
2203
2204 #include <stdbool.h>
2205 extern int puts (const char *);
2206 extern int printf (const char *, ...);
2207 extern int dprintf (int, const char *, ...);
2208 extern void *malloc (size_t);
2209 extern void free (void *);
2210
2211 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2212 // dprintf is used instead of fprintf to avoid needing to declare
2213 // FILE and stderr.
2214 #define debug(...) dprintf (2, __VA_ARGS__)
2215 #define showlist(...) puts (#__VA_ARGS__)
2216 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2217 static void
2218 test_varargs_macros (void)
2219 {
2220 int x = 1234;
2221 int y = 5678;
2222 debug ("Flag");
2223 debug ("X = %d\n", x);
2224 showlist (The first, second, and third items.);
2225 report (x>y, "x is %d but y is %d", x, y);
2226 }
2227
2228 // Check long long types.
2229 #define BIG64 18446744073709551615ull
2230 #define BIG32 4294967295ul
2231 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2232 #if !BIG_OK
2233 #error "your preprocessor is broken"
2234 #endif
2235 #if BIG_OK
2236 #else
2237 #error "your preprocessor is broken"
2238 #endif
2239 static long long int bignum = -9223372036854775807LL;
2240 static unsigned long long int ubignum = BIG64;
2241
2242 struct incomplete_array
2243 {
2244 int datasize;
2245 double data[];
2246 };
2247
2248 struct named_init {
2249 int number;
2250 const wchar_t *name;
2251 double average;
2252 };
2253
2254 typedef const char *ccp;
2255
2256 static inline int
2257 test_restrict (ccp restrict text)
2258 {
2259 // See if C++-style comments work.
2260 // Iterate through items via the restricted pointer.
2261 // Also check for declarations in for loops.
2262 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2263 continue;
2264 return 0;
2265 }
2266
2267 // Check varargs and va_copy.
2268 static bool
2269 test_varargs (const char *format, ...)
2270 {
2271 va_list args;
2272 va_start (args, format);
2273 va_list args_copy;
2274 va_copy (args_copy, args);
2275
2276 const char *str = "";
2277 int number = 0;
2278 float fnumber = 0;
2279
2280 while (*format)
2281 {
2282 switch (*format++)
2283 {
2284 case '\''s'\'': // string
2285 str = va_arg (args_copy, const char *);
2286 break;
2287 case '\''d'\'': // int
2288 number = va_arg (args_copy, int);
2289 break;
2290 case '\''f'\'': // float
2291 fnumber = va_arg (args_copy, double);
2292 break;
2293 default:
2294 break;
2295 }
2296 }
2297 va_end (args_copy);
2298 va_end (args);
2299
2300 return *str && number && fnumber;
2301 }
2302 '
2303
2304 # Test code for whether the C compiler supports C99 (body of main).
2305 ac_c_conftest_c99_main='
2306 // Check bool.
2307 _Bool success = false;
2308 success |= (argc != 0);
2309
2310 // Check restrict.
2311 if (test_restrict ("String literal") == 0)
2312 success = true;
2313 char *restrict newvar = "Another string";
2314
2315 // Check varargs.
2316 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2317 test_varargs_macros ();
2318
2319 // Check flexible array members.
2320 struct incomplete_array *ia =
2321 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2322 ia->datasize = 10;
2323 for (int i = 0; i < ia->datasize; ++i)
2324 ia->data[i] = i * 1.234;
2325
2326 // Check named initializers.
2327 struct named_init ni = {
2328 .number = 34,
2329 .name = L"Test wide string",
2330 .average = 543.34343,
2331 };
2332
2333 ni.number = 58;
2334
2335 int dynamic_array[ni.number];
2336 dynamic_array[0] = argv[0][0];
2337 dynamic_array[ni.number - 1] = 543;
2338
2339 // work around unused variable warnings
2340 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2341 || dynamic_array[ni.number - 1] != 543);
2342 '
2343
2344 # Test code for whether the C compiler supports C11 (global declarations)
2345 ac_c_conftest_c11_globals='
2346 // Does the compiler advertise C11 conformance?
2347 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2348 # error "Compiler does not advertise C11 conformance"
2349 #endif
2350
2351 // Check _Alignas.
2352 char _Alignas (double) aligned_as_double;
2353 char _Alignas (0) no_special_alignment;
2354 extern char aligned_as_int;
2355 char _Alignas (0) _Alignas (int) aligned_as_int;
2356
2357 // Check _Alignof.
2358 enum
2359 {
2360 int_alignment = _Alignof (int),
2361 int_array_alignment = _Alignof (int[100]),
2362 char_alignment = _Alignof (char)
2363 };
2364 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2365
2366 // Check _Noreturn.
2367 int _Noreturn does_not_return (void) { for (;;) continue; }
2368
2369 // Check _Static_assert.
2370 struct test_static_assert
2371 {
2372 int x;
2373 _Static_assert (sizeof (int) <= sizeof (long int),
2374 "_Static_assert does not work in struct");
2375 long int y;
2376 };
2377
2378 // Check UTF-8 literals.
2379 #define u8 syntax error!
2380 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2381
2382 // Check duplicate typedefs.
2383 typedef long *long_ptr;
2384 typedef long int *long_ptr;
2385 typedef long_ptr long_ptr;
2386
2387 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2388 struct anonymous
2389 {
2390 union {
2391 struct { int i; int j; };
2392 struct { int k; long int l; } w;
2393 };
2394 int m;
2395 } v1;
2396 '
2397
2398 # Test code for whether the C compiler supports C11 (body of main).
2399 ac_c_conftest_c11_main='
2400 _Static_assert ((offsetof (struct anonymous, i)
2401 == offsetof (struct anonymous, w.k)),
2402 "Anonymous union alignment botch");
2403 v1.i = 2;
2404 v1.w.k = 5;
2405 ok |= v1.i != 5;
2406 '
2407
2408 # Test code for whether the C compiler supports C11 (complete).
2409 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2410 ${ac_c_conftest_c99_globals}
2411 ${ac_c_conftest_c11_globals}
2412
2413 int
2414 main (int argc, char **argv)
2415 {
2416 int ok = 0;
2417 ${ac_c_conftest_c89_main}
2418 ${ac_c_conftest_c99_main}
2419 ${ac_c_conftest_c11_main}
2420 return ok;
2421 }
2422 "
2423
2424 # Test code for whether the C compiler supports C99 (complete).
2425 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2426 ${ac_c_conftest_c99_globals}
2427
2428 int
2429 main (int argc, char **argv)
2430 {
2431 int ok = 0;
2432 ${ac_c_conftest_c89_main}
2433 ${ac_c_conftest_c99_main}
2434 return ok;
2435 }
2436 "
2437
2438 # Test code for whether the C compiler supports C89 (complete).
2439 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2440
2441 int
2442 main (int argc, char **argv)
2443 {
2444 int ok = 0;
2445 ${ac_c_conftest_c89_main}
2446 return ok;
2447 }
2448 "
2449
2450 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2451 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2452 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2453 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2454 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2455 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2456 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2457 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2458 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2459 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2460
2461 # Auxiliary files required by this configure script.
2462 ac_aux_files="config.guess config.sub ltmain.sh missing install-sh compile"
2463
2464 # Locations in which to look for auxiliary files.
2465 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2466
2467 # Search for a directory containing all of the required auxiliary files,
2468 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2469 # If we don't find one directory that contains all the files we need,
2470 # we report the set of missing files from the *first* directory in
2471 # $ac_aux_dir_candidates and give up.
2472 ac_missing_aux_files=""
2473 ac_first_candidate=:
2474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2476 as_found=false
2477 for as_dir in $ac_aux_dir_candidates
2478 do
2479 IFS=$as_save_IFS
2480 case $as_dir in #(((
2481 '') as_dir=./ ;;
2482 */) ;;
2483 *) as_dir=$as_dir/ ;;
2484 esac
2485 as_found=:
2486
2487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2488 ac_aux_dir_found=yes
2489 ac_install_sh=
2490 for ac_aux in $ac_aux_files
2491 do
2492 # As a special case, if "install-sh" is required, that requirement
2493 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2494 # and $ac_install_sh is set appropriately for whichever one is found.
2495 if test x"$ac_aux" = x"install-sh"
2496 then
2497 if test -f "${as_dir}install-sh"; then
2498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2499 ac_install_sh="${as_dir}install-sh -c"
2500 elif test -f "${as_dir}install.sh"; then
2501 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2502 ac_install_sh="${as_dir}install.sh -c"
2503 elif test -f "${as_dir}shtool"; then
2504 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2505 ac_install_sh="${as_dir}shtool install -c"
2506 else
2507 ac_aux_dir_found=no
2508 if $ac_first_candidate; then
2509 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2510 else
2511 break
2512 fi
2513 fi
2514 else
2515 if test -f "${as_dir}${ac_aux}"; then
2516 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2517 else
2518 ac_aux_dir_found=no
2519 if $ac_first_candidate; then
2520 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2521 else
2522 break
2523 fi
2524 fi
2525 fi
2526 done
2527 if test "$ac_aux_dir_found" = yes; then
2528 ac_aux_dir="$as_dir"
2529 break
2530 fi
2531 ac_first_candidate=false
2532
2533 as_found=false
2534 done
2535 IFS=$as_save_IFS
2536 if $as_found
2537 then :
2538
2539 else $as_nop
2540 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2541 fi
2542
2543
2544 # These three variables are undocumented and unsupported,
2545 # and are intended to be withdrawn in a future Autoconf release.
2546 # They can cause serious problems if a builder's source tree is in a directory
2547 # whose full name contains unusual characters.
2548 if test -f "${ac_aux_dir}config.guess"; then
2549 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2550 fi
2551 if test -f "${ac_aux_dir}config.sub"; then
2552 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2553 fi
2554 if test -f "$ac_aux_dir/configure"; then
2555 ac_configure="$SHELL ${ac_aux_dir}configure"
2556 fi
2557
2558 # Check that the precious variables saved in the cache have kept the same
2559 # value.
2560 ac_cache_corrupted=false
2561 for ac_var in $ac_precious_vars; do
2562 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2563 eval ac_new_set=\$ac_env_${ac_var}_set
2564 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2565 eval ac_new_val=\$ac_env_${ac_var}_value
2566 case $ac_old_set,$ac_new_set in
2567 set,)
2568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2569 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2570 ac_cache_corrupted=: ;;
2571 ,set)
2572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2573 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2574 ac_cache_corrupted=: ;;
2575 ,);;
2576 *)
2577 if test "x$ac_old_val" != "x$ac_new_val"; then
2578 # differences in whitespace do not lead to failure.
2579 ac_old_val_w=`echo x $ac_old_val`
2580 ac_new_val_w=`echo x $ac_new_val`
2581 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2583 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2584 ac_cache_corrupted=:
2585 else
2586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2587 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2588 eval $ac_var=\$ac_old_val
2589 fi
2590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2591 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2593 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2594 fi;;
2595 esac
2596 # Pass precious variables to config.status.
2597 if test "$ac_new_set" = set; then
2598 case $ac_new_val in
2599 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2600 *) ac_arg=$ac_var=$ac_new_val ;;
2601 esac
2602 case " $ac_configure_args " in
2603 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2604 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2605 esac
2606 fi
2607 done
2608 if $ac_cache_corrupted; then
2609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2610 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2612 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2613 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2614 and start over" "$LINENO" 5
2615 fi
2616 ## -------------------- ##
2617 ## Main body of script. ##
2618 ## -------------------- ##
2619
2620 ac_ext=c
2621 ac_cpp='$CPP $CPPFLAGS'
2622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625
2626
2627
2628 ac_config_headers="$ac_config_headers config.h"
2629
2630
2631 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
2632 # Must be called before any macros that run the compiler (like AC_PROG_LIBTOOL)
2633 # to avoid autoconf errors.
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645 # Expand $ac_aux_dir to an absolute path.
2646 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2647
2648 ac_ext=c
2649 ac_cpp='$CPP $CPPFLAGS'
2650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2653 if test -n "$ac_tool_prefix"; then
2654 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2655 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2657 printf %s "checking for $ac_word... " >&6; }
2658 if test ${ac_cv_prog_CC+y}
2659 then :
2660 printf %s "(cached) " >&6
2661 else $as_nop
2662 if test -n "$CC"; then
2663 ac_cv_prog_CC="$CC" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 case $as_dir in #(((
2670 '') as_dir=./ ;;
2671 */) ;;
2672 *) as_dir=$as_dir/ ;;
2673 esac
2674 for ac_exec_ext in '' $ac_executable_extensions; do
2675 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2676 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2677 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2678 break 2
2679 fi
2680 done
2681 done
2682 IFS=$as_save_IFS
2683
2684 fi
2685 fi
2686 CC=$ac_cv_prog_CC
2687 if test -n "$CC"; then
2688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2689 printf "%s\n" "$CC" >&6; }
2690 else
2691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2692 printf "%s\n" "no" >&6; }
2693 fi
2694
2695
2696 fi
2697 if test -z "$ac_cv_prog_CC"; then
2698 ac_ct_CC=$CC
2699 # Extract the first word of "gcc", so it can be a program name with args.
2700 set dummy gcc; ac_word=$2
2701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2702 printf %s "checking for $ac_word... " >&6; }
2703 if test ${ac_cv_prog_ac_ct_CC+y}
2704 then :
2705 printf %s "(cached) " >&6
2706 else $as_nop
2707 if test -n "$ac_ct_CC"; then
2708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 case $as_dir in #(((
2715 '') as_dir=./ ;;
2716 */) ;;
2717 *) as_dir=$as_dir/ ;;
2718 esac
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_ac_ct_CC="gcc"
2722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2723 break 2
2724 fi
2725 done
2726 done
2727 IFS=$as_save_IFS
2728
2729 fi
2730 fi
2731 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2732 if test -n "$ac_ct_CC"; then
2733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2734 printf "%s\n" "$ac_ct_CC" >&6; }
2735 else
2736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 printf "%s\n" "no" >&6; }
2738 fi
2739
2740 if test "x$ac_ct_CC" = x; then
2741 CC=""
2742 else
2743 case $cross_compiling:$ac_tool_warned in
2744 yes:)
2745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2746 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2747 ac_tool_warned=yes ;;
2748 esac
2749 CC=$ac_ct_CC
2750 fi
2751 else
2752 CC="$ac_cv_prog_CC"
2753 fi
2754
2755 if test -z "$CC"; then
2756 if test -n "$ac_tool_prefix"; then
2757 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2758 set dummy ${ac_tool_prefix}cc; ac_word=$2
2759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2760 printf %s "checking for $ac_word... " >&6; }
2761 if test ${ac_cv_prog_CC+y}
2762 then :
2763 printf %s "(cached) " >&6
2764 else $as_nop
2765 if test -n "$CC"; then
2766 ac_cv_prog_CC="$CC" # Let the user override the test.
2767 else
2768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2769 for as_dir in $PATH
2770 do
2771 IFS=$as_save_IFS
2772 case $as_dir in #(((
2773 '') as_dir=./ ;;
2774 */) ;;
2775 *) as_dir=$as_dir/ ;;
2776 esac
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2779 ac_cv_prog_CC="${ac_tool_prefix}cc"
2780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2781 break 2
2782 fi
2783 done
2784 done
2785 IFS=$as_save_IFS
2786
2787 fi
2788 fi
2789 CC=$ac_cv_prog_CC
2790 if test -n "$CC"; then
2791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2792 printf "%s\n" "$CC" >&6; }
2793 else
2794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2795 printf "%s\n" "no" >&6; }
2796 fi
2797
2798
2799 fi
2800 fi
2801 if test -z "$CC"; then
2802 # Extract the first word of "cc", so it can be a program name with args.
2803 set dummy cc; ac_word=$2
2804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2805 printf %s "checking for $ac_word... " >&6; }
2806 if test ${ac_cv_prog_CC+y}
2807 then :
2808 printf %s "(cached) " >&6
2809 else $as_nop
2810 if test -n "$CC"; then
2811 ac_cv_prog_CC="$CC" # Let the user override the test.
2812 else
2813 ac_prog_rejected=no
2814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2815 for as_dir in $PATH
2816 do
2817 IFS=$as_save_IFS
2818 case $as_dir in #(((
2819 '') as_dir=./ ;;
2820 */) ;;
2821 *) as_dir=$as_dir/ ;;
2822 esac
2823 for ac_exec_ext in '' $ac_executable_extensions; do
2824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2825 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2826 ac_prog_rejected=yes
2827 continue
2828 fi
2829 ac_cv_prog_CC="cc"
2830 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 if test $ac_prog_rejected = yes; then
2838 # We found a bogon in the path, so make sure we never use it.
2839 set dummy $ac_cv_prog_CC
2840 shift
2841 if test $# != 0; then
2842 # We chose a different compiler from the bogus one.
2843 # However, it has the same basename, so the bogon will be chosen
2844 # first if we set CC to just the basename; use the full file name.
2845 shift
2846 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2847 fi
2848 fi
2849 fi
2850 fi
2851 CC=$ac_cv_prog_CC
2852 if test -n "$CC"; then
2853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2854 printf "%s\n" "$CC" >&6; }
2855 else
2856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 printf "%s\n" "no" >&6; }
2858 fi
2859
2860
2861 fi
2862 if test -z "$CC"; then
2863 if test -n "$ac_tool_prefix"; then
2864 for ac_prog in cl.exe
2865 do
2866 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2867 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2869 printf %s "checking for $ac_word... " >&6; }
2870 if test ${ac_cv_prog_CC+y}
2871 then :
2872 printf %s "(cached) " >&6
2873 else $as_nop
2874 if test -n "$CC"; then
2875 ac_cv_prog_CC="$CC" # Let the user override the test.
2876 else
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2878 for as_dir in $PATH
2879 do
2880 IFS=$as_save_IFS
2881 case $as_dir in #(((
2882 '') as_dir=./ ;;
2883 */) ;;
2884 *) as_dir=$as_dir/ ;;
2885 esac
2886 for ac_exec_ext in '' $ac_executable_extensions; do
2887 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2888 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2889 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2890 break 2
2891 fi
2892 done
2893 done
2894 IFS=$as_save_IFS
2895
2896 fi
2897 fi
2898 CC=$ac_cv_prog_CC
2899 if test -n "$CC"; then
2900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2901 printf "%s\n" "$CC" >&6; }
2902 else
2903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2904 printf "%s\n" "no" >&6; }
2905 fi
2906
2907
2908 test -n "$CC" && break
2909 done
2910 fi
2911 if test -z "$CC"; then
2912 ac_ct_CC=$CC
2913 for ac_prog in cl.exe
2914 do
2915 # Extract the first word of "$ac_prog", so it can be a program name with args.
2916 set dummy $ac_prog; ac_word=$2
2917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2918 printf %s "checking for $ac_word... " >&6; }
2919 if test ${ac_cv_prog_ac_ct_CC+y}
2920 then :
2921 printf %s "(cached) " >&6
2922 else $as_nop
2923 if test -n "$ac_ct_CC"; then
2924 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2925 else
2926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927 for as_dir in $PATH
2928 do
2929 IFS=$as_save_IFS
2930 case $as_dir in #(((
2931 '') as_dir=./ ;;
2932 */) ;;
2933 *) as_dir=$as_dir/ ;;
2934 esac
2935 for ac_exec_ext in '' $ac_executable_extensions; do
2936 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2937 ac_cv_prog_ac_ct_CC="$ac_prog"
2938 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2939 break 2
2940 fi
2941 done
2942 done
2943 IFS=$as_save_IFS
2944
2945 fi
2946 fi
2947 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2948 if test -n "$ac_ct_CC"; then
2949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2950 printf "%s\n" "$ac_ct_CC" >&6; }
2951 else
2952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953 printf "%s\n" "no" >&6; }
2954 fi
2955
2956
2957 test -n "$ac_ct_CC" && break
2958 done
2959
2960 if test "x$ac_ct_CC" = x; then
2961 CC=""
2962 else
2963 case $cross_compiling:$ac_tool_warned in
2964 yes:)
2965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2966 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2967 ac_tool_warned=yes ;;
2968 esac
2969 CC=$ac_ct_CC
2970 fi
2971 fi
2972
2973 fi
2974 if test -z "$CC"; then
2975 if test -n "$ac_tool_prefix"; then
2976 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2977 set dummy ${ac_tool_prefix}clang; ac_word=$2
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979 printf %s "checking for $ac_word... " >&6; }
2980 if test ${ac_cv_prog_CC+y}
2981 then :
2982 printf %s "(cached) " >&6
2983 else $as_nop
2984 if test -n "$CC"; then
2985 ac_cv_prog_CC="$CC" # Let the user override the test.
2986 else
2987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2988 for as_dir in $PATH
2989 do
2990 IFS=$as_save_IFS
2991 case $as_dir in #(((
2992 '') as_dir=./ ;;
2993 */) ;;
2994 *) as_dir=$as_dir/ ;;
2995 esac
2996 for ac_exec_ext in '' $ac_executable_extensions; do
2997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2998 ac_cv_prog_CC="${ac_tool_prefix}clang"
2999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3000 break 2
3001 fi
3002 done
3003 done
3004 IFS=$as_save_IFS
3005
3006 fi
3007 fi
3008 CC=$ac_cv_prog_CC
3009 if test -n "$CC"; then
3010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3011 printf "%s\n" "$CC" >&6; }
3012 else
3013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3014 printf "%s\n" "no" >&6; }
3015 fi
3016
3017
3018 fi
3019 if test -z "$ac_cv_prog_CC"; then
3020 ac_ct_CC=$CC
3021 # Extract the first word of "clang", so it can be a program name with args.
3022 set dummy clang; ac_word=$2
3023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3024 printf %s "checking for $ac_word... " >&6; }
3025 if test ${ac_cv_prog_ac_ct_CC+y}
3026 then :
3027 printf %s "(cached) " >&6
3028 else $as_nop
3029 if test -n "$ac_ct_CC"; then
3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3031 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH
3034 do
3035 IFS=$as_save_IFS
3036 case $as_dir in #(((
3037 '') as_dir=./ ;;
3038 */) ;;
3039 *) as_dir=$as_dir/ ;;
3040 esac
3041 for ac_exec_ext in '' $ac_executable_extensions; do
3042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3043 ac_cv_prog_ac_ct_CC="clang"
3044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3045 break 2
3046 fi
3047 done
3048 done
3049 IFS=$as_save_IFS
3050
3051 fi
3052 fi
3053 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3054 if test -n "$ac_ct_CC"; then
3055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3056 printf "%s\n" "$ac_ct_CC" >&6; }
3057 else
3058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059 printf "%s\n" "no" >&6; }
3060 fi
3061
3062 if test "x$ac_ct_CC" = x; then
3063 CC=""
3064 else
3065 case $cross_compiling:$ac_tool_warned in
3066 yes:)
3067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3068 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3069 ac_tool_warned=yes ;;
3070 esac
3071 CC=$ac_ct_CC
3072 fi
3073 else
3074 CC="$ac_cv_prog_CC"
3075 fi
3076
3077 fi
3078
3079
3080 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3081 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3082 as_fn_error $? "no acceptable C compiler found in \$PATH
3083 See \`config.log' for more details" "$LINENO" 5; }
3084
3085 # Provide some information about the compiler.
3086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3087 set X $ac_compile
3088 ac_compiler=$2
3089 for ac_option in --version -v -V -qversion -version; do
3090 { { ac_try="$ac_compiler $ac_option >&5"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3096 printf "%s\n" "$ac_try_echo"; } >&5
3097 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3098 ac_status=$?
3099 if test -s conftest.err; then
3100 sed '10a\
3101 ... rest of stderr output deleted ...
3102 10q' conftest.err >conftest.er1
3103 cat conftest.er1 >&5
3104 fi
3105 rm -f conftest.er1 conftest.err
3106 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3107 test $ac_status = 0; }
3108 done
3109
3110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3111 /* end confdefs.h. */
3112
3113 int
3114 main (void)
3115 {
3116
3117 ;
3118 return 0;
3119 }
3120 _ACEOF
3121 ac_clean_files_save=$ac_clean_files
3122 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3123 # Try to create an executable without -o first, disregard a.out.
3124 # It will help us diagnose broken compilers, and finding out an intuition
3125 # of exeext.
3126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3127 printf %s "checking whether the C compiler works... " >&6; }
3128 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3129
3130 # The possible output files:
3131 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3132
3133 ac_rmfiles=
3134 for ac_file in $ac_files
3135 do
3136 case $ac_file in
3137 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3138 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3139 esac
3140 done
3141 rm -f $ac_rmfiles
3142
3143 if { { ac_try="$ac_link_default"
3144 case "(($ac_try" in
3145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3146 *) ac_try_echo=$ac_try;;
3147 esac
3148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3149 printf "%s\n" "$ac_try_echo"; } >&5
3150 (eval "$ac_link_default") 2>&5
3151 ac_status=$?
3152 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3153 test $ac_status = 0; }
3154 then :
3155 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3156 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3157 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3158 # so that the user can short-circuit this test for compilers unknown to
3159 # Autoconf.
3160 for ac_file in $ac_files ''
3161 do
3162 test -f "$ac_file" || continue
3163 case $ac_file in
3164 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3165 ;;
3166 [ab].out )
3167 # We found the default executable, but exeext='' is most
3168 # certainly right.
3169 break;;
3170 *.* )
3171 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3172 then :; else
3173 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3174 fi
3175 # We set ac_cv_exeext here because the later test for it is not
3176 # safe: cross compilers may not add the suffix if given an `-o'
3177 # argument, so we may need to know it at that point already.
3178 # Even if this section looks crufty: it has the advantage of
3179 # actually working.
3180 break;;
3181 * )
3182 break;;
3183 esac
3184 done
3185 test "$ac_cv_exeext" = no && ac_cv_exeext=
3186
3187 else $as_nop
3188 ac_file=''
3189 fi
3190 if test -z "$ac_file"
3191 then :
3192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 printf "%s\n" "no" >&6; }
3194 printf "%s\n" "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3198 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3199 as_fn_error 77 "C compiler cannot create executables
3200 See \`config.log' for more details" "$LINENO" 5; }
3201 else $as_nop
3202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3203 printf "%s\n" "yes" >&6; }
3204 fi
3205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3206 printf %s "checking for C compiler default output file name... " >&6; }
3207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3208 printf "%s\n" "$ac_file" >&6; }
3209 ac_exeext=$ac_cv_exeext
3210
3211 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3212 ac_clean_files=$ac_clean_files_save
3213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3214 printf %s "checking for suffix of executables... " >&6; }
3215 if { { ac_try="$ac_link"
3216 case "(($ac_try" in
3217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3218 *) ac_try_echo=$ac_try;;
3219 esac
3220 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3221 printf "%s\n" "$ac_try_echo"; } >&5
3222 (eval "$ac_link") 2>&5
3223 ac_status=$?
3224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3225 test $ac_status = 0; }
3226 then :
3227 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3228 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3229 # work properly (i.e., refer to `conftest.exe'), while it won't with
3230 # `rm'.
3231 for ac_file in conftest.exe conftest conftest.*; do
3232 test -f "$ac_file" || continue
3233 case $ac_file in
3234 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3235 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 break;;
3237 * ) break;;
3238 esac
3239 done
3240 else $as_nop
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 $? "cannot compute suffix of executables: cannot compile and link
3244 See \`config.log' for more details" "$LINENO" 5; }
3245 fi
3246 rm -f conftest conftest$ac_cv_exeext
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3248 printf "%s\n" "$ac_cv_exeext" >&6; }
3249
3250 rm -f conftest.$ac_ext
3251 EXEEXT=$ac_cv_exeext
3252 ac_exeext=$EXEEXT
3253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3254 /* end confdefs.h. */
3255 #include <stdio.h>
3256 int
3257 main (void)
3258 {
3259 FILE *f = fopen ("conftest.out", "w");
3260 return ferror (f) || fclose (f) != 0;
3261
3262 ;
3263 return 0;
3264 }
3265 _ACEOF
3266 ac_clean_files="$ac_clean_files conftest.out"
3267 # Check that the compiler produces executables we can run. If not, either
3268 # the compiler is broken, or we cross compile.
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3270 printf %s "checking whether we are cross compiling... " >&6; }
3271 if test "$cross_compiling" != yes; then
3272 { { ac_try="$ac_link"
3273 case "(($ac_try" in
3274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3275 *) ac_try_echo=$ac_try;;
3276 esac
3277 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 printf "%s\n" "$ac_try_echo"; } >&5
3279 (eval "$ac_link") 2>&5
3280 ac_status=$?
3281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }
3283 if { ac_try='./conftest$ac_cv_exeext'
3284 { { case "(($ac_try" in
3285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286 *) ac_try_echo=$ac_try;;
3287 esac
3288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289 printf "%s\n" "$ac_try_echo"; } >&5
3290 (eval "$ac_try") 2>&5
3291 ac_status=$?
3292 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3293 test $ac_status = 0; }; }; then
3294 cross_compiling=no
3295 else
3296 if test "$cross_compiling" = maybe; then
3297 cross_compiling=yes
3298 else
3299 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3300 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3301 as_fn_error 77 "cannot run C compiled programs.
3302 If you meant to cross compile, use \`--host'.
3303 See \`config.log' for more details" "$LINENO" 5; }
3304 fi
3305 fi
3306 fi
3307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3308 printf "%s\n" "$cross_compiling" >&6; }
3309
3310 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3311 ac_clean_files=$ac_clean_files_save
3312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3313 printf %s "checking for suffix of object files... " >&6; }
3314 if test ${ac_cv_objext+y}
3315 then :
3316 printf %s "(cached) " >&6
3317 else $as_nop
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3320
3321 int
3322 main (void)
3323 {
3324
3325 ;
3326 return 0;
3327 }
3328 _ACEOF
3329 rm -f conftest.o conftest.obj
3330 if { { ac_try="$ac_compile"
3331 case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334 esac
3335 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336 printf "%s\n" "$ac_try_echo"; } >&5
3337 (eval "$ac_compile") 2>&5
3338 ac_status=$?
3339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 then :
3342 for ac_file in conftest.o conftest.obj conftest.*; do
3343 test -f "$ac_file" || continue;
3344 case $ac_file in
3345 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3346 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3347 break;;
3348 esac
3349 done
3350 else $as_nop
3351 printf "%s\n" "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3353
3354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3355 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3356 as_fn_error $? "cannot compute suffix of object files: cannot compile
3357 See \`config.log' for more details" "$LINENO" 5; }
3358 fi
3359 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3360 fi
3361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3362 printf "%s\n" "$ac_cv_objext" >&6; }
3363 OBJEXT=$ac_cv_objext
3364 ac_objext=$OBJEXT
3365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3366 printf %s "checking whether the compiler supports GNU C... " >&6; }
3367 if test ${ac_cv_c_compiler_gnu+y}
3368 then :
3369 printf %s "(cached) " >&6
3370 else $as_nop
3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372 /* end confdefs.h. */
3373
3374 int
3375 main (void)
3376 {
3377 #ifndef __GNUC__
3378 choke me
3379 #endif
3380
3381 ;
3382 return 0;
3383 }
3384 _ACEOF
3385 if ac_fn_c_try_compile "$LINENO"
3386 then :
3387 ac_compiler_gnu=yes
3388 else $as_nop
3389 ac_compiler_gnu=no
3390 fi
3391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3392 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3393
3394 fi
3395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3396 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3398
3399 if test $ac_compiler_gnu = yes; then
3400 GCC=yes
3401 else
3402 GCC=
3403 fi
3404 ac_test_CFLAGS=${CFLAGS+y}
3405 ac_save_CFLAGS=$CFLAGS
3406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3407 printf %s "checking whether $CC accepts -g... " >&6; }
3408 if test ${ac_cv_prog_cc_g+y}
3409 then :
3410 printf %s "(cached) " >&6
3411 else $as_nop
3412 ac_save_c_werror_flag=$ac_c_werror_flag
3413 ac_c_werror_flag=yes
3414 ac_cv_prog_cc_g=no
3415 CFLAGS="-g"
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3418
3419 int
3420 main (void)
3421 {
3422
3423 ;
3424 return 0;
3425 }
3426 _ACEOF
3427 if ac_fn_c_try_compile "$LINENO"
3428 then :
3429 ac_cv_prog_cc_g=yes
3430 else $as_nop
3431 CFLAGS=""
3432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3433 /* end confdefs.h. */
3434
3435 int
3436 main (void)
3437 {
3438
3439 ;
3440 return 0;
3441 }
3442 _ACEOF
3443 if ac_fn_c_try_compile "$LINENO"
3444 then :
3445
3446 else $as_nop
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3448 CFLAGS="-g"
3449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3450 /* end confdefs.h. */
3451
3452 int
3453 main (void)
3454 {
3455
3456 ;
3457 return 0;
3458 }
3459 _ACEOF
3460 if ac_fn_c_try_compile "$LINENO"
3461 then :
3462 ac_cv_prog_cc_g=yes
3463 fi
3464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3465 fi
3466 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3467 fi
3468 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3469 ac_c_werror_flag=$ac_save_c_werror_flag
3470 fi
3471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3472 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3473 if test $ac_test_CFLAGS; then
3474 CFLAGS=$ac_save_CFLAGS
3475 elif test $ac_cv_prog_cc_g = yes; then
3476 if test "$GCC" = yes; then
3477 CFLAGS="-g -O2"
3478 else
3479 CFLAGS="-g"
3480 fi
3481 else
3482 if test "$GCC" = yes; then
3483 CFLAGS="-O2"
3484 else
3485 CFLAGS=
3486 fi
3487 fi
3488 ac_prog_cc_stdc=no
3489 if test x$ac_prog_cc_stdc = xno
3490 then :
3491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3492 printf %s "checking for $CC option to enable C11 features... " >&6; }
3493 if test ${ac_cv_prog_cc_c11+y}
3494 then :
3495 printf %s "(cached) " >&6
3496 else $as_nop
3497 ac_cv_prog_cc_c11=no
3498 ac_save_CC=$CC
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500 /* end confdefs.h. */
3501 $ac_c_conftest_c11_program
3502 _ACEOF
3503 for ac_arg in '' -std=gnu11
3504 do
3505 CC="$ac_save_CC $ac_arg"
3506 if ac_fn_c_try_compile "$LINENO"
3507 then :
3508 ac_cv_prog_cc_c11=$ac_arg
3509 fi
3510 rm -f core conftest.err conftest.$ac_objext conftest.beam
3511 test "x$ac_cv_prog_cc_c11" != "xno" && break
3512 done
3513 rm -f conftest.$ac_ext
3514 CC=$ac_save_CC
3515 fi
3516
3517 if test "x$ac_cv_prog_cc_c11" = xno
3518 then :
3519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3520 printf "%s\n" "unsupported" >&6; }
3521 else $as_nop
3522 if test "x$ac_cv_prog_cc_c11" = x
3523 then :
3524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3525 printf "%s\n" "none needed" >&6; }
3526 else $as_nop
3527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3528 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3529 CC="$CC $ac_cv_prog_cc_c11"
3530 fi
3531 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3532 ac_prog_cc_stdc=c11
3533 fi
3534 fi
3535 if test x$ac_prog_cc_stdc = xno
3536 then :
3537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3538 printf %s "checking for $CC option to enable C99 features... " >&6; }
3539 if test ${ac_cv_prog_cc_c99+y}
3540 then :
3541 printf %s "(cached) " >&6
3542 else $as_nop
3543 ac_cv_prog_cc_c99=no
3544 ac_save_CC=$CC
3545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546 /* end confdefs.h. */
3547 $ac_c_conftest_c99_program
3548 _ACEOF
3549 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3550 do
3551 CC="$ac_save_CC $ac_arg"
3552 if ac_fn_c_try_compile "$LINENO"
3553 then :
3554 ac_cv_prog_cc_c99=$ac_arg
3555 fi
3556 rm -f core conftest.err conftest.$ac_objext conftest.beam
3557 test "x$ac_cv_prog_cc_c99" != "xno" && break
3558 done
3559 rm -f conftest.$ac_ext
3560 CC=$ac_save_CC
3561 fi
3562
3563 if test "x$ac_cv_prog_cc_c99" = xno
3564 then :
3565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3566 printf "%s\n" "unsupported" >&6; }
3567 else $as_nop
3568 if test "x$ac_cv_prog_cc_c99" = x
3569 then :
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3571 printf "%s\n" "none needed" >&6; }
3572 else $as_nop
3573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3574 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3575 CC="$CC $ac_cv_prog_cc_c99"
3576 fi
3577 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3578 ac_prog_cc_stdc=c99
3579 fi
3580 fi
3581 if test x$ac_prog_cc_stdc = xno
3582 then :
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3584 printf %s "checking for $CC option to enable C89 features... " >&6; }
3585 if test ${ac_cv_prog_cc_c89+y}
3586 then :
3587 printf %s "(cached) " >&6
3588 else $as_nop
3589 ac_cv_prog_cc_c89=no
3590 ac_save_CC=$CC
3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3592 /* end confdefs.h. */
3593 $ac_c_conftest_c89_program
3594 _ACEOF
3595 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3596 do
3597 CC="$ac_save_CC $ac_arg"
3598 if ac_fn_c_try_compile "$LINENO"
3599 then :
3600 ac_cv_prog_cc_c89=$ac_arg
3601 fi
3602 rm -f core conftest.err conftest.$ac_objext conftest.beam
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
3604 done
3605 rm -f conftest.$ac_ext
3606 CC=$ac_save_CC
3607 fi
3608
3609 if test "x$ac_cv_prog_cc_c89" = xno
3610 then :
3611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3612 printf "%s\n" "unsupported" >&6; }
3613 else $as_nop
3614 if test "x$ac_cv_prog_cc_c89" = x
3615 then :
3616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3617 printf "%s\n" "none needed" >&6; }
3618 else $as_nop
3619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3621 CC="$CC $ac_cv_prog_cc_c89"
3622 fi
3623 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3624 ac_prog_cc_stdc=c89
3625 fi
3626 fi
3627
3628 ac_ext=c
3629 ac_cpp='$CPP $CPPFLAGS'
3630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3633
3634
3635 ac_ext=c
3636 ac_cpp='$CPP $CPPFLAGS'
3637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3641 printf %s "checking whether $CC understands -c and -o together... " >&6; }
3642 if test ${am_cv_prog_cc_c_o+y}
3643 then :
3644 printf %s "(cached) " >&6
3645 else $as_nop
3646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3647 /* end confdefs.h. */
3648
3649 int
3650 main (void)
3651 {
3652
3653 ;
3654 return 0;
3655 }
3656 _ACEOF
3657 # Make sure it works both with $CC and with simple cc.
3658 # Following AC_PROG_CC_C_O, we do the test twice because some
3659 # compilers refuse to overwrite an existing .o file with -o,
3660 # though they will create one.
3661 am_cv_prog_cc_c_o=yes
3662 for am_i in 1 2; do
3663 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3664 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3665 ac_status=$?
3666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3667 (exit $ac_status); } \
3668 && test -f conftest2.$ac_objext; then
3669 : OK
3670 else
3671 am_cv_prog_cc_c_o=no
3672 break
3673 fi
3674 done
3675 rm -f core conftest*
3676 unset am_i
3677 fi
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3679 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
3680 if test "$am_cv_prog_cc_c_o" != yes; then
3681 # Losing compiler, so override with the script.
3682 # FIXME: It is wrong to rewrite CC.
3683 # But if we don't then we get into trouble of one sort or another.
3684 # A longer-term fix would be to have automake use am__CC in this case,
3685 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3686 CC="$am_aux_dir/compile $CC"
3687 fi
3688 ac_ext=c
3689 ac_cpp='$CPP $CPPFLAGS'
3690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693
3694
3695
3696 ac_header= ac_cache=
3697 for ac_item in $ac_header_c_list
3698 do
3699 if test $ac_cache; then
3700 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3701 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3702 printf "%s\n" "#define $ac_item 1" >> confdefs.h
3703 fi
3704 ac_header= ac_cache=
3705 elif test $ac_header; then
3706 ac_cache=$ac_item
3707 else
3708 ac_header=$ac_item
3709 fi
3710 done
3711
3712
3713
3714
3715
3716
3717
3718
3719 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3720 then :
3721
3722 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3723
3724 fi
3725
3726
3727
3728
3729
3730
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3732 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3733 if test ${ac_cv_safe_to_define___extensions__+y}
3734 then :
3735 printf %s "(cached) " >&6
3736 else $as_nop
3737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3738 /* end confdefs.h. */
3739
3740 # define __EXTENSIONS__ 1
3741 $ac_includes_default
3742 int
3743 main (void)
3744 {
3745
3746 ;
3747 return 0;
3748 }
3749 _ACEOF
3750 if ac_fn_c_try_compile "$LINENO"
3751 then :
3752 ac_cv_safe_to_define___extensions__=yes
3753 else $as_nop
3754 ac_cv_safe_to_define___extensions__=no
3755 fi
3756 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3757 fi
3758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3759 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3760
3761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3762 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3763 if test ${ac_cv_should_define__xopen_source+y}
3764 then :
3765 printf %s "(cached) " >&6
3766 else $as_nop
3767 ac_cv_should_define__xopen_source=no
3768 if test $ac_cv_header_wchar_h = yes
3769 then :
3770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3771 /* end confdefs.h. */
3772
3773 #include <wchar.h>
3774 mbstate_t x;
3775 int
3776 main (void)
3777 {
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"
3784 then :
3785
3786 else $as_nop
3787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3788 /* end confdefs.h. */
3789
3790 #define _XOPEN_SOURCE 500
3791 #include <wchar.h>
3792 mbstate_t x;
3793 int
3794 main (void)
3795 {
3796
3797 ;
3798 return 0;
3799 }
3800 _ACEOF
3801 if ac_fn_c_try_compile "$LINENO"
3802 then :
3803 ac_cv_should_define__xopen_source=yes
3804 fi
3805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3806 fi
3807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3808 fi
3809 fi
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3811 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3812
3813 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3814
3815 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3816
3817 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3818
3819 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3820
3821 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3822
3823 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3824
3825 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3826
3827 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3828
3829 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3830
3831 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3832
3833 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3834
3835 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3836
3837 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3838
3839 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3840
3841 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3842
3843 if test $ac_cv_header_minix_config_h = yes
3844 then :
3845 MINIX=yes
3846 printf "%s\n" "#define _MINIX 1" >>confdefs.h
3847
3848 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3849
3850 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3851
3852 else $as_nop
3853 MINIX=
3854 fi
3855 if test $ac_cv_safe_to_define___extensions__ = yes
3856 then :
3857 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3858
3859 fi
3860 if test $ac_cv_should_define__xopen_source = yes
3861 then :
3862 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3863
3864 fi
3865
3866
3867 # Initialize Automake
3868 am__api_version='1.16'
3869
3870
3871 # Find a good install program. We prefer a C program (faster),
3872 # so one script is as good as another. But avoid the broken or
3873 # incompatible versions:
3874 # SysV /etc/install, /usr/sbin/install
3875 # SunOS /usr/etc/install
3876 # IRIX /sbin/install
3877 # AIX /bin/install
3878 # AmigaOS /C/install, which installs bootblocks on floppy discs
3879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3882 # OS/2's system install, which has a completely different semantic
3883 # ./install, which can be erroneously created by make from ./install.sh.
3884 # Reject install programs that cannot install multiple files.
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3886 printf %s "checking for a BSD-compatible install... " >&6; }
3887 if test -z "$INSTALL"; then
3888 if test ${ac_cv_path_install+y}
3889 then :
3890 printf %s "(cached) " >&6
3891 else $as_nop
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 for as_dir in $PATH
3894 do
3895 IFS=$as_save_IFS
3896 case $as_dir in #(((
3897 '') as_dir=./ ;;
3898 */) ;;
3899 *) as_dir=$as_dir/ ;;
3900 esac
3901 # Account for fact that we put trailing slashes in our PATH walk.
3902 case $as_dir in #((
3903 ./ | /[cC]/* | \
3904 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3905 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3906 /usr/ucb/* ) ;;
3907 *)
3908 # OSF1 and SCO ODT 3.0 have their own names for install.
3909 # Don't use installbsd from OSF since it installs stuff as root
3910 # by default.
3911 for ac_prog in ginstall scoinst install; do
3912 for ac_exec_ext in '' $ac_executable_extensions; do
3913 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3914 if test $ac_prog = install &&
3915 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3916 # AIX install. It has an incompatible calling convention.
3917 :
3918 elif test $ac_prog = install &&
3919 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3920 # program-specific install script used by HP pwplus--don't use.
3921 :
3922 else
3923 rm -rf conftest.one conftest.two conftest.dir
3924 echo one > conftest.one
3925 echo two > conftest.two
3926 mkdir conftest.dir
3927 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3928 test -s conftest.one && test -s conftest.two &&
3929 test -s conftest.dir/conftest.one &&
3930 test -s conftest.dir/conftest.two
3931 then
3932 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3933 break 3
3934 fi
3935 fi
3936 fi
3937 done
3938 done
3939 ;;
3940 esac
3941
3942 done
3943 IFS=$as_save_IFS
3944
3945 rm -rf conftest.one conftest.two conftest.dir
3946
3947 fi
3948 if test ${ac_cv_path_install+y}; then
3949 INSTALL=$ac_cv_path_install
3950 else
3951 # As a last resort, use the slow shell script. Don't cache a
3952 # value for INSTALL within a source directory, because that will
3953 # break other packages using the cache if that directory is
3954 # removed, or if the value is a relative name.
3955 INSTALL=$ac_install_sh
3956 fi
3957 fi
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3959 printf "%s\n" "$INSTALL" >&6; }
3960
3961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3962 # It thinks the first close brace ends the variable substitution.
3963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3964
3965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3966
3967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3968
3969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3970 printf %s "checking whether build environment is sane... " >&6; }
3971 # Reject unsafe characters in $srcdir or the absolute working directory
3972 # name. Accept space and tab only in the latter.
3973 am_lf='
3974 '
3975 case `pwd` in
3976 *[\\\"\#\$\&\'\`$am_lf]*)
3977 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3978 esac
3979 case $srcdir in
3980 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3981 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3982 esac
3983
3984 # Do 'set' in a subshell so we don't clobber the current shell's
3985 # arguments. Must try -L first in case configure is actually a
3986 # symlink; some systems play weird games with the mod time of symlinks
3987 # (eg FreeBSD returns the mod time of the symlink's containing
3988 # directory).
3989 if (
3990 am_has_slept=no
3991 for am_try in 1 2; do
3992 echo "timestamp, slept: $am_has_slept" > conftest.file
3993 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3994 if test "$*" = "X"; then
3995 # -L didn't work.
3996 set X `ls -t "$srcdir/configure" conftest.file`
3997 fi
3998 if test "$*" != "X $srcdir/configure conftest.file" \
3999 && test "$*" != "X conftest.file $srcdir/configure"; then
4000
4001 # If neither matched, then we have a broken ls. This can happen
4002 # if, for instance, CONFIG_SHELL is bash and it inherits a
4003 # broken ls alias from the environment. This has actually
4004 # happened. Such a system could not be considered "sane".
4005 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4006 alias in your environment" "$LINENO" 5
4007 fi
4008 if test "$2" = conftest.file || test $am_try -eq 2; then
4009 break
4010 fi
4011 # Just in case.
4012 sleep 1
4013 am_has_slept=yes
4014 done
4015 test "$2" = conftest.file
4016 )
4017 then
4018 # Ok.
4019 :
4020 else
4021 as_fn_error $? "newly created file is older than distributed files!
4022 Check your system clock" "$LINENO" 5
4023 fi
4024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 printf "%s\n" "yes" >&6; }
4026 # If we didn't sleep, we still need to ensure time stamps of config.status and
4027 # generated files are strictly newer.
4028 am_sleep_pid=
4029 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4030 ( sleep 1 ) &
4031 am_sleep_pid=$!
4032 fi
4033
4034 rm -f conftest.file
4035
4036 test "$program_prefix" != NONE &&
4037 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4038 # Use a double $ so make ignores it.
4039 test "$program_suffix" != NONE &&
4040 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4041 # Double any \ or $.
4042 # By default was `s,x,x', remove it if useless.
4043 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4044 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4045
4046
4047 if test x"${MISSING+set}" != xset; then
4048 MISSING="\${SHELL} '$am_aux_dir/missing'"
4049 fi
4050 # Use eval to expand $SHELL
4051 if eval "$MISSING --is-lightweight"; then
4052 am_missing_run="$MISSING "
4053 else
4054 am_missing_run=
4055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4056 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4057 fi
4058
4059 if test x"${install_sh+set}" != xset; then
4060 case $am_aux_dir in
4061 *\ * | *\ *)
4062 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4063 *)
4064 install_sh="\${SHELL} $am_aux_dir/install-sh"
4065 esac
4066 fi
4067
4068 # Installed binaries are usually stripped using 'strip' when the user
4069 # run "make install-strip". However 'strip' might not be the right
4070 # tool to use in cross-compilation environments, therefore Automake
4071 # will honor the 'STRIP' environment variable to overrule this program.
4072 if test "$cross_compiling" != no; then
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4075 set dummy ${ac_tool_prefix}strip; ac_word=$2
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 printf %s "checking for $ac_word... " >&6; }
4078 if test ${ac_cv_prog_STRIP+y}
4079 then :
4080 printf %s "(cached) " >&6
4081 else $as_nop
4082 if test -n "$STRIP"; then
4083 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4084 else
4085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4086 for as_dir in $PATH
4087 do
4088 IFS=$as_save_IFS
4089 case $as_dir in #(((
4090 '') as_dir=./ ;;
4091 */) ;;
4092 *) as_dir=$as_dir/ ;;
4093 esac
4094 for ac_exec_ext in '' $ac_executable_extensions; do
4095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4096 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4098 break 2
4099 fi
4100 done
4101 done
4102 IFS=$as_save_IFS
4103
4104 fi
4105 fi
4106 STRIP=$ac_cv_prog_STRIP
4107 if test -n "$STRIP"; then
4108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4109 printf "%s\n" "$STRIP" >&6; }
4110 else
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4112 printf "%s\n" "no" >&6; }
4113 fi
4114
4115
4116 fi
4117 if test -z "$ac_cv_prog_STRIP"; then
4118 ac_ct_STRIP=$STRIP
4119 # Extract the first word of "strip", so it can be a program name with args.
4120 set dummy strip; ac_word=$2
4121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4122 printf %s "checking for $ac_word... " >&6; }
4123 if test ${ac_cv_prog_ac_ct_STRIP+y}
4124 then :
4125 printf %s "(cached) " >&6
4126 else $as_nop
4127 if test -n "$ac_ct_STRIP"; then
4128 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4129 else
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131 for as_dir in $PATH
4132 do
4133 IFS=$as_save_IFS
4134 case $as_dir in #(((
4135 '') as_dir=./ ;;
4136 */) ;;
4137 *) as_dir=$as_dir/ ;;
4138 esac
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_ac_ct_STRIP="strip"
4142 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4143 break 2
4144 fi
4145 done
4146 done
4147 IFS=$as_save_IFS
4148
4149 fi
4150 fi
4151 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4152 if test -n "$ac_ct_STRIP"; then
4153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4154 printf "%s\n" "$ac_ct_STRIP" >&6; }
4155 else
4156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 printf "%s\n" "no" >&6; }
4158 fi
4159
4160 if test "x$ac_ct_STRIP" = x; then
4161 STRIP=":"
4162 else
4163 case $cross_compiling:$ac_tool_warned in
4164 yes:)
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4166 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4167 ac_tool_warned=yes ;;
4168 esac
4169 STRIP=$ac_ct_STRIP
4170 fi
4171 else
4172 STRIP="$ac_cv_prog_STRIP"
4173 fi
4174
4175 fi
4176 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4177
4178
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4180 printf %s "checking for a race-free mkdir -p... " >&6; }
4181 if test -z "$MKDIR_P"; then
4182 if test ${ac_cv_path_mkdir+y}
4183 then :
4184 printf %s "(cached) " >&6
4185 else $as_nop
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4188 do
4189 IFS=$as_save_IFS
4190 case $as_dir in #(((
4191 '') as_dir=./ ;;
4192 */) ;;
4193 *) as_dir=$as_dir/ ;;
4194 esac
4195 for ac_prog in mkdir gmkdir; do
4196 for ac_exec_ext in '' $ac_executable_extensions; do
4197 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4198 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4199 'mkdir ('*'coreutils) '* | \
4200 'BusyBox '* | \
4201 'mkdir (fileutils) '4.1*)
4202 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4203 break 3;;
4204 esac
4205 done
4206 done
4207 done
4208 IFS=$as_save_IFS
4209
4210 fi
4211
4212 test -d ./--version && rmdir ./--version
4213 if test ${ac_cv_path_mkdir+y}; then
4214 MKDIR_P="$ac_cv_path_mkdir -p"
4215 else
4216 # As a last resort, use the slow shell script. Don't cache a
4217 # value for MKDIR_P within a source directory, because that will
4218 # break other packages using the cache if that directory is
4219 # removed, or if the value is a relative name.
4220 MKDIR_P="$ac_install_sh -d"
4221 fi
4222 fi
4223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4224 printf "%s\n" "$MKDIR_P" >&6; }
4225
4226 for ac_prog in gawk mawk nawk awk
4227 do
4228 # Extract the first word of "$ac_prog", so it can be a program name with args.
4229 set dummy $ac_prog; ac_word=$2
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 printf %s "checking for $ac_word... " >&6; }
4232 if test ${ac_cv_prog_AWK+y}
4233 then :
4234 printf %s "(cached) " >&6
4235 else $as_nop
4236 if test -n "$AWK"; then
4237 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4238 else
4239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4240 for as_dir in $PATH
4241 do
4242 IFS=$as_save_IFS
4243 case $as_dir in #(((
4244 '') as_dir=./ ;;
4245 */) ;;
4246 *) as_dir=$as_dir/ ;;
4247 esac
4248 for ac_exec_ext in '' $ac_executable_extensions; do
4249 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4250 ac_cv_prog_AWK="$ac_prog"
4251 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4252 break 2
4253 fi
4254 done
4255 done
4256 IFS=$as_save_IFS
4257
4258 fi
4259 fi
4260 AWK=$ac_cv_prog_AWK
4261 if test -n "$AWK"; then
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4263 printf "%s\n" "$AWK" >&6; }
4264 else
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266 printf "%s\n" "no" >&6; }
4267 fi
4268
4269
4270 test -n "$AWK" && break
4271 done
4272
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4274 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4275 set x ${MAKE-make}
4276 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4277 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4278 then :
4279 printf %s "(cached) " >&6
4280 else $as_nop
4281 cat >conftest.make <<\_ACEOF
4282 SHELL = /bin/sh
4283 all:
4284 @echo '@@@%%%=$(MAKE)=@@@%%%'
4285 _ACEOF
4286 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4287 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4288 *@@@%%%=?*=@@@%%%*)
4289 eval ac_cv_prog_make_${ac_make}_set=yes;;
4290 *)
4291 eval ac_cv_prog_make_${ac_make}_set=no;;
4292 esac
4293 rm -f conftest.make
4294 fi
4295 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4297 printf "%s\n" "yes" >&6; }
4298 SET_MAKE=
4299 else
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4301 printf "%s\n" "no" >&6; }
4302 SET_MAKE="MAKE=${MAKE-make}"
4303 fi
4304
4305 rm -rf .tst 2>/dev/null
4306 mkdir .tst 2>/dev/null
4307 if test -d .tst; then
4308 am__leading_dot=.
4309 else
4310 am__leading_dot=_
4311 fi
4312 rmdir .tst 2>/dev/null
4313
4314 DEPDIR="${am__leading_dot}deps"
4315
4316 ac_config_commands="$ac_config_commands depfiles"
4317
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4319 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4320 cat > confinc.mk << 'END'
4321 am__doit:
4322 @echo this is the am__doit target >confinc.out
4323 .PHONY: am__doit
4324 END
4325 am__include="#"
4326 am__quote=
4327 # BSD make does it like this.
4328 echo '.include "confinc.mk" # ignored' > confmf.BSD
4329 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4330 echo 'include confinc.mk # ignored' > confmf.GNU
4331 _am_result=no
4332 for s in GNU BSD; do
4333 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4334 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4335 ac_status=$?
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }
4338 case $?:`cat confinc.out 2>/dev/null` in #(
4339 '0:this is the am__doit target') :
4340 case $s in #(
4341 BSD) :
4342 am__include='.include' am__quote='"' ;; #(
4343 *) :
4344 am__include='include' am__quote='' ;;
4345 esac ;; #(
4346 *) :
4347 ;;
4348 esac
4349 if test "$am__include" != "#"; then
4350 _am_result="yes ($s style)"
4351 break
4352 fi
4353 done
4354 rm -f confinc.* confmf.*
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4356 printf "%s\n" "${_am_result}" >&6; }
4357
4358 # Check whether --enable-dependency-tracking was given.
4359 if test ${enable_dependency_tracking+y}
4360 then :
4361 enableval=$enable_dependency_tracking;
4362 fi
4363
4364 if test "x$enable_dependency_tracking" != xno; then
4365 am_depcomp="$ac_aux_dir/depcomp"
4366 AMDEPBACKSLASH='\'
4367 am__nodep='_no'
4368 fi
4369 if test "x$enable_dependency_tracking" != xno; then
4370 AMDEP_TRUE=
4371 AMDEP_FALSE='#'
4372 else
4373 AMDEP_TRUE='#'
4374 AMDEP_FALSE=
4375 fi
4376
4377
4378 # Check whether --enable-silent-rules was given.
4379 if test ${enable_silent_rules+y}
4380 then :
4381 enableval=$enable_silent_rules;
4382 fi
4383
4384 case $enable_silent_rules in # (((
4385 yes) AM_DEFAULT_VERBOSITY=0;;
4386 no) AM_DEFAULT_VERBOSITY=1;;
4387 *) AM_DEFAULT_VERBOSITY=1;;
4388 esac
4389 am_make=${MAKE-make}
4390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4391 printf %s "checking whether $am_make supports nested variables... " >&6; }
4392 if test ${am_cv_make_support_nested_variables+y}
4393 then :
4394 printf %s "(cached) " >&6
4395 else $as_nop
4396 if printf "%s\n" 'TRUE=$(BAR$(V))
4397 BAR0=false
4398 BAR1=true
4399 V=1
4400 am__doit:
4401 @$(TRUE)
4402 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4403 am_cv_make_support_nested_variables=yes
4404 else
4405 am_cv_make_support_nested_variables=no
4406 fi
4407 fi
4408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4409 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4410 if test $am_cv_make_support_nested_variables = yes; then
4411 AM_V='$(V)'
4412 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4413 else
4414 AM_V=$AM_DEFAULT_VERBOSITY
4415 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4416 fi
4417 AM_BACKSLASH='\'
4418
4419 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4420 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4421 # is not polluted with repeated "-I."
4422 am__isrc=' -I$(srcdir)'
4423 # test to see if srcdir already configured
4424 if test -f $srcdir/config.status; then
4425 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4426 fi
4427 fi
4428
4429 # test whether we have cygpath
4430 if test -z "$CYGPATH_W"; then
4431 if (cygpath --version) >/dev/null 2>/dev/null; then
4432 CYGPATH_W='cygpath -w'
4433 else
4434 CYGPATH_W=echo
4435 fi
4436 fi
4437
4438
4439 # Define the identity of the package.
4440 PACKAGE='libfontenc'
4441 VERSION='1.1.7'
4442
4443
4444 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4445
4446
4447 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4448
4449 # Some tools Automake needs.
4450
4451 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4452
4453
4454 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4455
4456
4457 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4458
4459
4460 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4461
4462
4463 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4464
4465 # For better backward compatibility. To be removed once Automake 1.9.x
4466 # dies out for good. For more background, see:
4467 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4468 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4469 mkdir_p='$(MKDIR_P)'
4470
4471 # We need awk for the "check" target (and possibly the TAP driver). The
4472 # system "awk" is bad on some platforms.
4473 # Always define AMTAR for backward compatibility. Yes, it's still used
4474 # in the wild :-( We should find a proper way to deprecate it ...
4475 AMTAR='$${TAR-tar}'
4476
4477
4478 # We'll loop over all known methods to create a tar archive until one works.
4479 _am_tools='gnutar pax cpio none'
4480
4481 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4482
4483
4484
4485
4486
4487 depcc="$CC" am_compiler_list=
4488
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4490 printf %s "checking dependency style of $depcc... " >&6; }
4491 if test ${am_cv_CC_dependencies_compiler_type+y}
4492 then :
4493 printf %s "(cached) " >&6
4494 else $as_nop
4495 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4496 # We make a subdir and do the tests there. Otherwise we can end up
4497 # making bogus files that we don't know about and never remove. For
4498 # instance it was reported that on HP-UX the gcc test will end up
4499 # making a dummy file named 'D' -- because '-MD' means "put the output
4500 # in D".
4501 rm -rf conftest.dir
4502 mkdir conftest.dir
4503 # Copy depcomp to subdir because otherwise we won't find it if we're
4504 # using a relative directory.
4505 cp "$am_depcomp" conftest.dir
4506 cd conftest.dir
4507 # We will build objects and dependencies in a subdirectory because
4508 # it helps to detect inapplicable dependency modes. For instance
4509 # both Tru64's cc and ICC support -MD to output dependencies as a
4510 # side effect of compilation, but ICC will put the dependencies in
4511 # the current directory while Tru64 will put them in the object
4512 # directory.
4513 mkdir sub
4514
4515 am_cv_CC_dependencies_compiler_type=none
4516 if test "$am_compiler_list" = ""; then
4517 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4518 fi
4519 am__universal=false
4520 case " $depcc " in #(
4521 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4522 esac
4523
4524 for depmode in $am_compiler_list; do
4525 # Setup a source with many dependencies, because some compilers
4526 # like to wrap large dependency lists on column 80 (with \), and
4527 # we should not choose a depcomp mode which is confused by this.
4528 #
4529 # We need to recreate these files for each test, as the compiler may
4530 # overwrite some of them when testing with obscure command lines.
4531 # This happens at least with the AIX C compiler.
4532 : > sub/conftest.c
4533 for i in 1 2 3 4 5 6; do
4534 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4535 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4536 # Solaris 10 /bin/sh.
4537 echo '/* dummy */' > sub/conftst$i.h
4538 done
4539 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4540
4541 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4542 # mode. It turns out that the SunPro C++ compiler does not properly
4543 # handle '-M -o', and we need to detect this. Also, some Intel
4544 # versions had trouble with output in subdirs.
4545 am__obj=sub/conftest.${OBJEXT-o}
4546 am__minus_obj="-o $am__obj"
4547 case $depmode in
4548 gcc)
4549 # This depmode causes a compiler race in universal mode.
4550 test "$am__universal" = false || continue
4551 ;;
4552 nosideeffect)
4553 # After this tag, mechanisms are not by side-effect, so they'll
4554 # only be used when explicitly requested.
4555 if test "x$enable_dependency_tracking" = xyes; then
4556 continue
4557 else
4558 break
4559 fi
4560 ;;
4561 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4562 # This compiler won't grok '-c -o', but also, the minuso test has
4563 # not run yet. These depmodes are late enough in the game, and
4564 # so weak that their functioning should not be impacted.
4565 am__obj=conftest.${OBJEXT-o}
4566 am__minus_obj=
4567 ;;
4568 none) break ;;
4569 esac
4570 if depmode=$depmode \
4571 source=sub/conftest.c object=$am__obj \
4572 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4573 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4574 >/dev/null 2>conftest.err &&
4575 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4576 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4577 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4578 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4579 # icc doesn't choke on unknown options, it will just issue warnings
4580 # or remarks (even with -Werror). So we grep stderr for any message
4581 # that says an option was ignored or not supported.
4582 # When given -MP, icc 7.0 and 7.1 complain thusly:
4583 # icc: Command line warning: ignoring option '-M'; no argument required
4584 # The diagnosis changed in icc 8.0:
4585 # icc: Command line remark: option '-MP' not supported
4586 if (grep 'ignoring option' conftest.err ||
4587 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4588 am_cv_CC_dependencies_compiler_type=$depmode
4589 break
4590 fi
4591 fi
4592 done
4593
4594 cd ..
4595 rm -rf conftest.dir
4596 else
4597 am_cv_CC_dependencies_compiler_type=none
4598 fi
4599
4600 fi
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4602 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4603 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4604
4605 if
4606 test "x$enable_dependency_tracking" != xno \
4607 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4608 am__fastdepCC_TRUE=
4609 am__fastdepCC_FALSE='#'
4610 else
4611 am__fastdepCC_TRUE='#'
4612 am__fastdepCC_FALSE=
4613 fi
4614
4615
4616 # Variables for tags utilities; see am/tags.am
4617 if test -z "$CTAGS"; then
4618 CTAGS=ctags
4619 fi
4620
4621 if test -z "$ETAGS"; then
4622 ETAGS=etags
4623 fi
4624
4625 if test -z "$CSCOPE"; then
4626 CSCOPE=cscope
4627 fi
4628
4629
4630
4631 # POSIX will say in a future version that running "rm -f" with no argument
4632 # is OK; and we want to be able to make that assumption in our Makefile
4633 # recipes. So use an aggressive probe to check that the usage we want is
4634 # actually supported "in the wild" to an acceptable degree.
4635 # See automake bug#10828.
4636 # To make any issue more visible, cause the running configure to be aborted
4637 # by default if the 'rm' program in use doesn't match our expectations; the
4638 # user can still override this though.
4639 if rm -f && rm -fr && rm -rf; then : OK; else
4640 cat >&2 <<'END'
4641 Oops!
4642
4643 Your 'rm' program seems unable to run without file operands specified
4644 on the command line, even when the '-f' option is present. This is contrary
4645 to the behaviour of most rm programs out there, and not conforming with
4646 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4647
4648 Please tell bug-automake@gnu.org about your system, including the value
4649 of your $PATH and any error possibly output before this message. This
4650 can help us improve future automake versions.
4651
4652 END
4653 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4654 echo 'Configuration will proceed anyway, since you have set the' >&2
4655 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4656 echo >&2
4657 else
4658 cat >&2 <<'END'
4659 Aborting the configuration process, to ensure you take notice of the issue.
4660
4661 You can download and install GNU coreutils to get an 'rm' implementation
4662 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4663
4664 If you want to complete the configuration process using your problematic
4665 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4666 to "yes", and re-run configure.
4667
4668 END
4669 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4670 fi
4671 fi
4672
4673
4674 # Initialize libtool
4675 case `pwd` in
4676 *\ * | *\ *)
4677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4678 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4679 esac
4680
4681
4682
4683 macro_version='2.4.7'
4684 macro_revision='2.4.7'
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697
4698
4699 ltmain=$ac_aux_dir/ltmain.sh
4700
4701
4702
4703 # Make sure we can run config.sub.
4704 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4705 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4706
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4708 printf %s "checking build system type... " >&6; }
4709 if test ${ac_cv_build+y}
4710 then :
4711 printf %s "(cached) " >&6
4712 else $as_nop
4713 ac_build_alias=$build_alias
4714 test "x$ac_build_alias" = x &&
4715 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4716 test "x$ac_build_alias" = x &&
4717 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4718 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4719 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4720
4721 fi
4722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4723 printf "%s\n" "$ac_cv_build" >&6; }
4724 case $ac_cv_build in
4725 *-*-*) ;;
4726 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4727 esac
4728 build=$ac_cv_build
4729 ac_save_IFS=$IFS; IFS='-'
4730 set x $ac_cv_build
4731 shift
4732 build_cpu=$1
4733 build_vendor=$2
4734 shift; shift
4735 # Remember, the first character of IFS is used to create $*,
4736 # except with old shells:
4737 build_os=$*
4738 IFS=$ac_save_IFS
4739 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4740
4741
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4743 printf %s "checking host system type... " >&6; }
4744 if test ${ac_cv_host+y}
4745 then :
4746 printf %s "(cached) " >&6
4747 else $as_nop
4748 if test "x$host_alias" = x; then
4749 ac_cv_host=$ac_cv_build
4750 else
4751 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4752 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4753 fi
4754
4755 fi
4756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4757 printf "%s\n" "$ac_cv_host" >&6; }
4758 case $ac_cv_host in
4759 *-*-*) ;;
4760 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4761 esac
4762 host=$ac_cv_host
4763 ac_save_IFS=$IFS; IFS='-'
4764 set x $ac_cv_host
4765 shift
4766 host_cpu=$1
4767 host_vendor=$2
4768 shift; shift
4769 # Remember, the first character of IFS is used to create $*,
4770 # except with old shells:
4771 host_os=$*
4772 IFS=$ac_save_IFS
4773 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4774
4775
4776 # Backslashify metacharacters that are still active within
4777 # double-quoted strings.
4778 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4779
4780 # Same as above, but do not quote variable references.
4781 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4782
4783 # Sed substitution to delay expansion of an escaped shell variable in a
4784 # double_quote_subst'ed string.
4785 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4786
4787 # Sed substitution to delay expansion of an escaped single quote.
4788 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4789
4790 # Sed substitution to avoid accidental globbing in evaled expressions
4791 no_glob_subst='s/\*/\\\*/g'
4792
4793 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4794 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4795 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4796
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4798 printf %s "checking how to print strings... " >&6; }
4799 # Test print first, because it will be a builtin if present.
4800 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4801 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4802 ECHO='print -r --'
4803 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4804 ECHO='printf %s\n'
4805 else
4806 # Use this function as a fallback that always works.
4807 func_fallback_echo ()
4808 {
4809 eval 'cat <<_LTECHO_EOF
4810 $1
4811 _LTECHO_EOF'
4812 }
4813 ECHO='func_fallback_echo'
4814 fi
4815
4816 # func_echo_all arg...
4817 # Invoke $ECHO with all args, space-separated.
4818 func_echo_all ()
4819 {
4820 $ECHO ""
4821 }
4822
4823 case $ECHO in
4824 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4825 printf "%s\n" "printf" >&6; } ;;
4826 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4827 printf "%s\n" "print -r" >&6; } ;;
4828 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4829 printf "%s\n" "cat" >&6; } ;;
4830 esac
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840
4841
4842
4843
4844
4845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4846 printf %s "checking for a sed that does not truncate output... " >&6; }
4847 if test ${ac_cv_path_SED+y}
4848 then :
4849 printf %s "(cached) " >&6
4850 else $as_nop
4851 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4852 for ac_i in 1 2 3 4 5 6 7; do
4853 ac_script="$ac_script$as_nl$ac_script"
4854 done
4855 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4856 { ac_script=; unset ac_script;}
4857 if test -z "$SED"; then
4858 ac_path_SED_found=false
4859 # Loop through the user's path and test for each of PROGNAME-LIST
4860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4861 for as_dir in $PATH
4862 do
4863 IFS=$as_save_IFS
4864 case $as_dir in #(((
4865 '') as_dir=./ ;;
4866 */) ;;
4867 *) as_dir=$as_dir/ ;;
4868 esac
4869 for ac_prog in sed gsed
4870 do
4871 for ac_exec_ext in '' $ac_executable_extensions; do
4872 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4873 as_fn_executable_p "$ac_path_SED" || continue
4874 # Check for GNU ac_path_SED and select it if it is found.
4875 # Check for GNU $ac_path_SED
4876 case `"$ac_path_SED" --version 2>&1` in
4877 *GNU*)
4878 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4879 *)
4880 ac_count=0
4881 printf %s 0123456789 >"conftest.in"
4882 while :
4883 do
4884 cat "conftest.in" "conftest.in" >"conftest.tmp"
4885 mv "conftest.tmp" "conftest.in"
4886 cp "conftest.in" "conftest.nl"
4887 printf "%s\n" '' >> "conftest.nl"
4888 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4889 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4890 as_fn_arith $ac_count + 1 && ac_count=$as_val
4891 if test $ac_count -gt ${ac_path_SED_max-0}; then
4892 # Best one so far, save it but keep looking for a better one
4893 ac_cv_path_SED="$ac_path_SED"
4894 ac_path_SED_max=$ac_count
4895 fi
4896 # 10*(2^10) chars as input seems more than enough
4897 test $ac_count -gt 10 && break
4898 done
4899 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4900 esac
4901
4902 $ac_path_SED_found && break 3
4903 done
4904 done
4905 done
4906 IFS=$as_save_IFS
4907 if test -z "$ac_cv_path_SED"; then
4908 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4909 fi
4910 else
4911 ac_cv_path_SED=$SED
4912 fi
4913
4914 fi
4915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4916 printf "%s\n" "$ac_cv_path_SED" >&6; }
4917 SED="$ac_cv_path_SED"
4918 rm -f conftest.sed
4919
4920 test -z "$SED" && SED=sed
4921 Xsed="$SED -e 1s/^X//"
4922
4923
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4934 printf %s "checking for grep that handles long lines and -e... " >&6; }
4935 if test ${ac_cv_path_GREP+y}
4936 then :
4937 printf %s "(cached) " >&6
4938 else $as_nop
4939 if test -z "$GREP"; then
4940 ac_path_GREP_found=false
4941 # Loop through the user's path and test for each of PROGNAME-LIST
4942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4944 do
4945 IFS=$as_save_IFS
4946 case $as_dir in #(((
4947 '') as_dir=./ ;;
4948 */) ;;
4949 *) as_dir=$as_dir/ ;;
4950 esac
4951 for ac_prog in grep ggrep
4952 do
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
4955 as_fn_executable_p "$ac_path_GREP" || continue
4956 # Check for GNU ac_path_GREP and select it if it is found.
4957 # Check for GNU $ac_path_GREP
4958 case `"$ac_path_GREP" --version 2>&1` in
4959 *GNU*)
4960 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4961 *)
4962 ac_count=0
4963 printf %s 0123456789 >"conftest.in"
4964 while :
4965 do
4966 cat "conftest.in" "conftest.in" >"conftest.tmp"
4967 mv "conftest.tmp" "conftest.in"
4968 cp "conftest.in" "conftest.nl"
4969 printf "%s\n" 'GREP' >> "conftest.nl"
4970 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4971 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4972 as_fn_arith $ac_count + 1 && ac_count=$as_val
4973 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4974 # Best one so far, save it but keep looking for a better one
4975 ac_cv_path_GREP="$ac_path_GREP"
4976 ac_path_GREP_max=$ac_count
4977 fi
4978 # 10*(2^10) chars as input seems more than enough
4979 test $ac_count -gt 10 && break
4980 done
4981 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4982 esac
4983
4984 $ac_path_GREP_found && break 3
4985 done
4986 done
4987 done
4988 IFS=$as_save_IFS
4989 if test -z "$ac_cv_path_GREP"; then
4990 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4991 fi
4992 else
4993 ac_cv_path_GREP=$GREP
4994 fi
4995
4996 fi
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4998 printf "%s\n" "$ac_cv_path_GREP" >&6; }
4999 GREP="$ac_cv_path_GREP"
5000
5001
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5003 printf %s "checking for egrep... " >&6; }
5004 if test ${ac_cv_path_EGREP+y}
5005 then :
5006 printf %s "(cached) " >&6
5007 else $as_nop
5008 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5009 then ac_cv_path_EGREP="$GREP -E"
5010 else
5011 if test -z "$EGREP"; then
5012 ac_path_EGREP_found=false
5013 # Loop through the user's path and test for each of PROGNAME-LIST
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5016 do
5017 IFS=$as_save_IFS
5018 case $as_dir in #(((
5019 '') as_dir=./ ;;
5020 */) ;;
5021 *) as_dir=$as_dir/ ;;
5022 esac
5023 for ac_prog in egrep
5024 do
5025 for ac_exec_ext in '' $ac_executable_extensions; do
5026 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5027 as_fn_executable_p "$ac_path_EGREP" || continue
5028 # Check for GNU ac_path_EGREP and select it if it is found.
5029 # Check for GNU $ac_path_EGREP
5030 case `"$ac_path_EGREP" --version 2>&1` in
5031 *GNU*)
5032 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5033 *)
5034 ac_count=0
5035 printf %s 0123456789 >"conftest.in"
5036 while :
5037 do
5038 cat "conftest.in" "conftest.in" >"conftest.tmp"
5039 mv "conftest.tmp" "conftest.in"
5040 cp "conftest.in" "conftest.nl"
5041 printf "%s\n" 'EGREP' >> "conftest.nl"
5042 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val
5045 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5046 # Best one so far, save it but keep looking for a better one
5047 ac_cv_path_EGREP="$ac_path_EGREP"
5048 ac_path_EGREP_max=$ac_count
5049 fi
5050 # 10*(2^10) chars as input seems more than enough
5051 test $ac_count -gt 10 && break
5052 done
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5054 esac
5055
5056 $ac_path_EGREP_found && break 3
5057 done
5058 done
5059 done
5060 IFS=$as_save_IFS
5061 if test -z "$ac_cv_path_EGREP"; then
5062 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5063 fi
5064 else
5065 ac_cv_path_EGREP=$EGREP
5066 fi
5067
5068 fi
5069 fi
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5071 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5072 EGREP="$ac_cv_path_EGREP"
5073
5074
5075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5076 printf %s "checking for fgrep... " >&6; }
5077 if test ${ac_cv_path_FGREP+y}
5078 then :
5079 printf %s "(cached) " >&6
5080 else $as_nop
5081 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5082 then ac_cv_path_FGREP="$GREP -F"
5083 else
5084 if test -z "$FGREP"; then
5085 ac_path_FGREP_found=false
5086 # Loop through the user's path and test for each of PROGNAME-LIST
5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5088 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5089 do
5090 IFS=$as_save_IFS
5091 case $as_dir in #(((
5092 '') as_dir=./ ;;
5093 */) ;;
5094 *) as_dir=$as_dir/ ;;
5095 esac
5096 for ac_prog in fgrep
5097 do
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5100 as_fn_executable_p "$ac_path_FGREP" || continue
5101 # Check for GNU ac_path_FGREP and select it if it is found.
5102 # Check for GNU $ac_path_FGREP
5103 case `"$ac_path_FGREP" --version 2>&1` in
5104 *GNU*)
5105 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5106 *)
5107 ac_count=0
5108 printf %s 0123456789 >"conftest.in"
5109 while :
5110 do
5111 cat "conftest.in" "conftest.in" >"conftest.tmp"
5112 mv "conftest.tmp" "conftest.in"
5113 cp "conftest.in" "conftest.nl"
5114 printf "%s\n" 'FGREP' >> "conftest.nl"
5115 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5116 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5117 as_fn_arith $ac_count + 1 && ac_count=$as_val
5118 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5119 # Best one so far, save it but keep looking for a better one
5120 ac_cv_path_FGREP="$ac_path_FGREP"
5121 ac_path_FGREP_max=$ac_count
5122 fi
5123 # 10*(2^10) chars as input seems more than enough
5124 test $ac_count -gt 10 && break
5125 done
5126 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5127 esac
5128
5129 $ac_path_FGREP_found && break 3
5130 done
5131 done
5132 done
5133 IFS=$as_save_IFS
5134 if test -z "$ac_cv_path_FGREP"; then
5135 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5136 fi
5137 else
5138 ac_cv_path_FGREP=$FGREP
5139 fi
5140
5141 fi
5142 fi
5143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5144 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5145 FGREP="$ac_cv_path_FGREP"
5146
5147
5148 test -z "$GREP" && GREP=grep
5149
5150
5151
5152
5153
5154
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 # Check whether --with-gnu-ld was given.
5169 if test ${with_gnu_ld+y}
5170 then :
5171 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5172 else $as_nop
5173 with_gnu_ld=no
5174 fi
5175
5176 ac_prog=ld
5177 if test yes = "$GCC"; then
5178 # Check if gcc -print-prog-name=ld gives a path.
5179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5180 printf %s "checking for ld used by $CC... " >&6; }
5181 case $host in
5182 *-*-mingw*)
5183 # gcc leaves a trailing carriage return, which upsets mingw
5184 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5185 *)
5186 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5187 esac
5188 case $ac_prog in
5189 # Accept absolute paths.
5190 [\\/]* | ?:[\\/]*)
5191 re_direlt='/[^/][^/]*/\.\./'
5192 # Canonicalize the pathname of ld
5193 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5194 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5195 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5196 done
5197 test -z "$LD" && LD=$ac_prog
5198 ;;
5199 "")
5200 # If it fails, then pretend we aren't using GCC.
5201 ac_prog=ld
5202 ;;
5203 *)
5204 # If it is relative, then search for the first ld in PATH.
5205 with_gnu_ld=unknown
5206 ;;
5207 esac
5208 elif test yes = "$with_gnu_ld"; then
5209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5210 printf %s "checking for GNU ld... " >&6; }
5211 else
5212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5213 printf %s "checking for non-GNU ld... " >&6; }
5214 fi
5215 if test ${lt_cv_path_LD+y}
5216 then :
5217 printf %s "(cached) " >&6
5218 else $as_nop
5219 if test -z "$LD"; then
5220 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5221 for ac_dir in $PATH; do
5222 IFS=$lt_save_ifs
5223 test -z "$ac_dir" && ac_dir=.
5224 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5225 lt_cv_path_LD=$ac_dir/$ac_prog
5226 # Check to see if the program is GNU ld. I'd rather use --version,
5227 # but apparently some variants of GNU ld only accept -v.
5228 # Break only if it was the GNU/non-GNU ld that we prefer.
5229 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5230 *GNU* | *'with BFD'*)
5231 test no != "$with_gnu_ld" && break
5232 ;;
5233 *)
5234 test yes != "$with_gnu_ld" && break
5235 ;;
5236 esac
5237 fi
5238 done
5239 IFS=$lt_save_ifs
5240 else
5241 lt_cv_path_LD=$LD # Let the user override the test with a path.
5242 fi
5243 fi
5244
5245 LD=$lt_cv_path_LD
5246 if test -n "$LD"; then
5247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5248 printf "%s\n" "$LD" >&6; }
5249 else
5250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 printf "%s\n" "no" >&6; }
5252 fi
5253 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5255 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5256 if test ${lt_cv_prog_gnu_ld+y}
5257 then :
5258 printf %s "(cached) " >&6
5259 else $as_nop
5260 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5261 case `$LD -v 2>&1 </dev/null` in
5262 *GNU* | *'with BFD'*)
5263 lt_cv_prog_gnu_ld=yes
5264 ;;
5265 *)
5266 lt_cv_prog_gnu_ld=no
5267 ;;
5268 esac
5269 fi
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5271 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5272 with_gnu_ld=$lt_cv_prog_gnu_ld
5273
5274
5275
5276
5277
5278
5279
5280
5281
5282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5283 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5284 if test ${lt_cv_path_NM+y}
5285 then :
5286 printf %s "(cached) " >&6
5287 else $as_nop
5288 if test -n "$NM"; then
5289 # Let the user override the test.
5290 lt_cv_path_NM=$NM
5291 else
5292 lt_nm_to_check=${ac_tool_prefix}nm
5293 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5294 lt_nm_to_check="$lt_nm_to_check nm"
5295 fi
5296 for lt_tmp_nm in $lt_nm_to_check; do
5297 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5298 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5299 IFS=$lt_save_ifs
5300 test -z "$ac_dir" && ac_dir=.
5301 tmp_nm=$ac_dir/$lt_tmp_nm
5302 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5303 # Check to see if the nm accepts a BSD-compat flag.
5304 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5305 # nm: unknown option "B" ignored
5306 # Tru64's nm complains that /dev/null is an invalid object file
5307 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5308 case $build_os in
5309 mingw*) lt_bad_file=conftest.nm/nofile ;;
5310 *) lt_bad_file=/dev/null ;;
5311 esac
5312 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5313 *$lt_bad_file* | *'Invalid file or object type'*)
5314 lt_cv_path_NM="$tmp_nm -B"
5315 break 2
5316 ;;
5317 *)
5318 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5319 */dev/null*)
5320 lt_cv_path_NM="$tmp_nm -p"
5321 break 2
5322 ;;
5323 *)
5324 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5325 continue # so that we can try to find one that supports BSD flags
5326 ;;
5327 esac
5328 ;;
5329 esac
5330 fi
5331 done
5332 IFS=$lt_save_ifs
5333 done
5334 : ${lt_cv_path_NM=no}
5335 fi
5336 fi
5337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5338 printf "%s\n" "$lt_cv_path_NM" >&6; }
5339 if test no != "$lt_cv_path_NM"; then
5340 NM=$lt_cv_path_NM
5341 else
5342 # Didn't find any BSD compatible name lister, look for dumpbin.
5343 if test -n "$DUMPBIN"; then :
5344 # Let the user override the test.
5345 else
5346 if test -n "$ac_tool_prefix"; then
5347 for ac_prog in dumpbin "link -dump"
5348 do
5349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5352 printf %s "checking for $ac_word... " >&6; }
5353 if test ${ac_cv_prog_DUMPBIN+y}
5354 then :
5355 printf %s "(cached) " >&6
5356 else $as_nop
5357 if test -n "$DUMPBIN"; then
5358 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5359 else
5360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5361 for as_dir in $PATH
5362 do
5363 IFS=$as_save_IFS
5364 case $as_dir in #(((
5365 '') as_dir=./ ;;
5366 */) ;;
5367 *) as_dir=$as_dir/ ;;
5368 esac
5369 for ac_exec_ext in '' $ac_executable_extensions; do
5370 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5371 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5372 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5373 break 2
5374 fi
5375 done
5376 done
5377 IFS=$as_save_IFS
5378
5379 fi
5380 fi
5381 DUMPBIN=$ac_cv_prog_DUMPBIN
5382 if test -n "$DUMPBIN"; then
5383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5384 printf "%s\n" "$DUMPBIN" >&6; }
5385 else
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5387 printf "%s\n" "no" >&6; }
5388 fi
5389
5390
5391 test -n "$DUMPBIN" && break
5392 done
5393 fi
5394 if test -z "$DUMPBIN"; then
5395 ac_ct_DUMPBIN=$DUMPBIN
5396 for ac_prog in dumpbin "link -dump"
5397 do
5398 # Extract the first word of "$ac_prog", so it can be a program name with args.
5399 set dummy $ac_prog; ac_word=$2
5400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5401 printf %s "checking for $ac_word... " >&6; }
5402 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5403 then :
5404 printf %s "(cached) " >&6
5405 else $as_nop
5406 if test -n "$ac_ct_DUMPBIN"; then
5407 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5408 else
5409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410 for as_dir in $PATH
5411 do
5412 IFS=$as_save_IFS
5413 case $as_dir in #(((
5414 '') as_dir=./ ;;
5415 */) ;;
5416 *) as_dir=$as_dir/ ;;
5417 esac
5418 for ac_exec_ext in '' $ac_executable_extensions; do
5419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5420 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5422 break 2
5423 fi
5424 done
5425 done
5426 IFS=$as_save_IFS
5427
5428 fi
5429 fi
5430 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5431 if test -n "$ac_ct_DUMPBIN"; then
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5433 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5434 else
5435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5436 printf "%s\n" "no" >&6; }
5437 fi
5438
5439
5440 test -n "$ac_ct_DUMPBIN" && break
5441 done
5442
5443 if test "x$ac_ct_DUMPBIN" = x; then
5444 DUMPBIN=":"
5445 else
5446 case $cross_compiling:$ac_tool_warned in
5447 yes:)
5448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5449 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5450 ac_tool_warned=yes ;;
5451 esac
5452 DUMPBIN=$ac_ct_DUMPBIN
5453 fi
5454 fi
5455
5456 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5457 *COFF*)
5458 DUMPBIN="$DUMPBIN -symbols -headers"
5459 ;;
5460 *)
5461 DUMPBIN=:
5462 ;;
5463 esac
5464 fi
5465
5466 if test : != "$DUMPBIN"; then
5467 NM=$DUMPBIN
5468 fi
5469 fi
5470 test -z "$NM" && NM=nm
5471
5472
5473
5474
5475
5476
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5478 printf %s "checking the name lister ($NM) interface... " >&6; }
5479 if test ${lt_cv_nm_interface+y}
5480 then :
5481 printf %s "(cached) " >&6
5482 else $as_nop
5483 lt_cv_nm_interface="BSD nm"
5484 echo "int some_variable = 0;" > conftest.$ac_ext
5485 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5486 (eval "$ac_compile" 2>conftest.err)
5487 cat conftest.err >&5
5488 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5489 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5490 cat conftest.err >&5
5491 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5492 cat conftest.out >&5
5493 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5494 lt_cv_nm_interface="MS dumpbin"
5495 fi
5496 rm -f conftest*
5497 fi
5498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5499 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5500
5501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5502 printf %s "checking whether ln -s works... " >&6; }
5503 LN_S=$as_ln_s
5504 if test "$LN_S" = "ln -s"; then
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5506 printf "%s\n" "yes" >&6; }
5507 else
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5509 printf "%s\n" "no, using $LN_S" >&6; }
5510 fi
5511
5512 # find the maximum length of command line arguments
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5514 printf %s "checking the maximum length of command line arguments... " >&6; }
5515 if test ${lt_cv_sys_max_cmd_len+y}
5516 then :
5517 printf %s "(cached) " >&6
5518 else $as_nop
5519 i=0
5520 teststring=ABCD
5521
5522 case $build_os in
5523 msdosdjgpp*)
5524 # On DJGPP, this test can blow up pretty badly due to problems in libc
5525 # (any single argument exceeding 2000 bytes causes a buffer overrun
5526 # during glob expansion). Even if it were fixed, the result of this
5527 # check would be larger than it should be.
5528 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5529 ;;
5530
5531 gnu*)
5532 # Under GNU Hurd, this test is not required because there is
5533 # no limit to the length of command line arguments.
5534 # Libtool will interpret -1 as no limit whatsoever
5535 lt_cv_sys_max_cmd_len=-1;
5536 ;;
5537
5538 cygwin* | mingw* | cegcc*)
5539 # On Win9x/ME, this test blows up -- it succeeds, but takes
5540 # about 5 minutes as the teststring grows exponentially.
5541 # Worse, since 9x/ME are not pre-emptively multitasking,
5542 # you end up with a "frozen" computer, even though with patience
5543 # the test eventually succeeds (with a max line length of 256k).
5544 # Instead, let's just punt: use the minimum linelength reported by
5545 # all of the supported platforms: 8192 (on NT/2K/XP).
5546 lt_cv_sys_max_cmd_len=8192;
5547 ;;
5548
5549 mint*)
5550 # On MiNT this can take a long time and run out of memory.
5551 lt_cv_sys_max_cmd_len=8192;
5552 ;;
5553
5554 mint*)
5555 # On MiNT this can take a long time and run out of memory.
5556 lt_cv_sys_max_cmd_len=8192;
5557 ;;
5558
5559 amigaos*)
5560 # On AmigaOS with pdksh, this test takes hours, literally.
5561 # So we just punt and use a minimum line length of 8192.
5562 lt_cv_sys_max_cmd_len=8192;
5563 ;;
5564
5565 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5566 # This has been around since 386BSD, at least. Likely further.
5567 if test -x /sbin/sysctl; then
5568 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5569 elif test -x /usr/sbin/sysctl; then
5570 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5571 else
5572 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5573 fi
5574 # And add a safety zone
5575 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5576 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5577 ;;
5578
5579 interix*)
5580 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5581 lt_cv_sys_max_cmd_len=196608
5582 ;;
5583
5584 os2*)
5585 # The test takes a long time on OS/2.
5586 lt_cv_sys_max_cmd_len=8192
5587 ;;
5588
5589 osf*)
5590 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5591 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5592 # nice to cause kernel panics so lets avoid the loop below.
5593 # First set a reasonable default.
5594 lt_cv_sys_max_cmd_len=16384
5595 #
5596 if test -x /sbin/sysconfig; then
5597 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5598 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5599 esac
5600 fi
5601 ;;
5602 sco3.2v5*)
5603 lt_cv_sys_max_cmd_len=102400
5604 ;;
5605 sysv5* | sco5v6* | sysv4.2uw2*)
5606 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5607 if test -n "$kargmax"; then
5608 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5609 else
5610 lt_cv_sys_max_cmd_len=32768
5611 fi
5612 ;;
5613 *)
5614 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5615 if test -n "$lt_cv_sys_max_cmd_len" && \
5616 test undefined != "$lt_cv_sys_max_cmd_len"; then
5617 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5619 else
5620 # Make teststring a little bigger before we do anything with it.
5621 # a 1K string should be a reasonable start.
5622 for i in 1 2 3 4 5 6 7 8; do
5623 teststring=$teststring$teststring
5624 done
5625 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5626 # If test is not a shell built-in, we'll probably end up computing a
5627 # maximum length that is only half of the actual maximum length, but
5628 # we can't tell.
5629 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5630 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5631 test 17 != "$i" # 1/2 MB should be enough
5632 do
5633 i=`expr $i + 1`
5634 teststring=$teststring$teststring
5635 done
5636 # Only check the string length outside the loop.
5637 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5638 teststring=
5639 # Add a significant safety factor because C++ compilers can tack on
5640 # massive amounts of additional arguments before passing them to the
5641 # linker. It appears as though 1/2 is a usable value.
5642 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5643 fi
5644 ;;
5645 esac
5646
5647 fi
5648
5649 if test -n "$lt_cv_sys_max_cmd_len"; then
5650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5651 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5652 else
5653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5654 printf "%s\n" "none" >&6; }
5655 fi
5656 max_cmd_len=$lt_cv_sys_max_cmd_len
5657
5658
5659
5660
5661
5662
5663 : ${CP="cp -f"}
5664 : ${MV="mv -f"}
5665 : ${RM="rm -f"}
5666
5667 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5668 lt_unset=unset
5669 else
5670 lt_unset=false
5671 fi
5672
5673
5674
5675
5676
5677 # test EBCDIC or ASCII
5678 case `echo X|tr X '\101'` in
5679 A) # ASCII based system
5680 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5681 lt_SP2NL='tr \040 \012'
5682 lt_NL2SP='tr \015\012 \040\040'
5683 ;;
5684 *) # EBCDIC based system
5685 lt_SP2NL='tr \100 \n'
5686 lt_NL2SP='tr \r\n \100\100'
5687 ;;
5688 esac
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5699 printf %s "checking how to convert $build file names to $host format... " >&6; }
5700 if test ${lt_cv_to_host_file_cmd+y}
5701 then :
5702 printf %s "(cached) " >&6
5703 else $as_nop
5704 case $host in
5705 *-*-mingw* )
5706 case $build in
5707 *-*-mingw* ) # actually msys
5708 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5709 ;;
5710 *-*-cygwin* )
5711 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5712 ;;
5713 * ) # otherwise, assume *nix
5714 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5715 ;;
5716 esac
5717 ;;
5718 *-*-cygwin* )
5719 case $build in
5720 *-*-mingw* ) # actually msys
5721 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5722 ;;
5723 *-*-cygwin* )
5724 lt_cv_to_host_file_cmd=func_convert_file_noop
5725 ;;
5726 * ) # otherwise, assume *nix
5727 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5728 ;;
5729 esac
5730 ;;
5731 * ) # unhandled hosts (and "normal" native builds)
5732 lt_cv_to_host_file_cmd=func_convert_file_noop
5733 ;;
5734 esac
5735
5736 fi
5737
5738 to_host_file_cmd=$lt_cv_to_host_file_cmd
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5740 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5741
5742
5743
5744
5745
5746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5747 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5748 if test ${lt_cv_to_tool_file_cmd+y}
5749 then :
5750 printf %s "(cached) " >&6
5751 else $as_nop
5752 #assume ordinary cross tools, or native build.
5753 lt_cv_to_tool_file_cmd=func_convert_file_noop
5754 case $host in
5755 *-*-mingw* )
5756 case $build in
5757 *-*-mingw* ) # actually msys
5758 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5759 ;;
5760 esac
5761 ;;
5762 esac
5763
5764 fi
5765
5766 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5768 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
5769
5770
5771
5772
5773
5774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5775 printf %s "checking for $LD option to reload object files... " >&6; }
5776 if test ${lt_cv_ld_reload_flag+y}
5777 then :
5778 printf %s "(cached) " >&6
5779 else $as_nop
5780 lt_cv_ld_reload_flag='-r'
5781 fi
5782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5783 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
5784 reload_flag=$lt_cv_ld_reload_flag
5785 case $reload_flag in
5786 "" | " "*) ;;
5787 *) reload_flag=" $reload_flag" ;;
5788 esac
5789 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5790 case $host_os in
5791 cygwin* | mingw* | pw32* | cegcc*)
5792 if test yes != "$GCC"; then
5793 reload_cmds=false
5794 fi
5795 ;;
5796 darwin*)
5797 if test yes = "$GCC"; then
5798 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
5799 else
5800 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5801 fi
5802 ;;
5803 esac
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813 if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
5815 set dummy ${ac_tool_prefix}file; ac_word=$2
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817 printf %s "checking for $ac_word... " >&6; }
5818 if test ${ac_cv_prog_FILECMD+y}
5819 then :
5820 printf %s "(cached) " >&6
5821 else $as_nop
5822 if test -n "$FILECMD"; then
5823 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
5824 else
5825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826 for as_dir in $PATH
5827 do
5828 IFS=$as_save_IFS
5829 case $as_dir in #(((
5830 '') as_dir=./ ;;
5831 */) ;;
5832 *) as_dir=$as_dir/ ;;
5833 esac
5834 for ac_exec_ext in '' $ac_executable_extensions; do
5835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5836 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
5837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5838 break 2
5839 fi
5840 done
5841 done
5842 IFS=$as_save_IFS
5843
5844 fi
5845 fi
5846 FILECMD=$ac_cv_prog_FILECMD
5847 if test -n "$FILECMD"; then
5848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
5849 printf "%s\n" "$FILECMD" >&6; }
5850 else
5851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852 printf "%s\n" "no" >&6; }
5853 fi
5854
5855
5856 fi
5857 if test -z "$ac_cv_prog_FILECMD"; then
5858 ac_ct_FILECMD=$FILECMD
5859 # Extract the first word of "file", so it can be a program name with args.
5860 set dummy file; ac_word=$2
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 printf %s "checking for $ac_word... " >&6; }
5863 if test ${ac_cv_prog_ac_ct_FILECMD+y}
5864 then :
5865 printf %s "(cached) " >&6
5866 else $as_nop
5867 if test -n "$ac_ct_FILECMD"; then
5868 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
5869 else
5870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5871 for as_dir in $PATH
5872 do
5873 IFS=$as_save_IFS
5874 case $as_dir in #(((
5875 '') as_dir=./ ;;
5876 */) ;;
5877 *) as_dir=$as_dir/ ;;
5878 esac
5879 for ac_exec_ext in '' $ac_executable_extensions; do
5880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5881 ac_cv_prog_ac_ct_FILECMD="file"
5882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5883 break 2
5884 fi
5885 done
5886 done
5887 IFS=$as_save_IFS
5888
5889 fi
5890 fi
5891 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
5892 if test -n "$ac_ct_FILECMD"; then
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
5894 printf "%s\n" "$ac_ct_FILECMD" >&6; }
5895 else
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5897 printf "%s\n" "no" >&6; }
5898 fi
5899
5900 if test "x$ac_ct_FILECMD" = x; then
5901 FILECMD=":"
5902 else
5903 case $cross_compiling:$ac_tool_warned in
5904 yes:)
5905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5906 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5907 ac_tool_warned=yes ;;
5908 esac
5909 FILECMD=$ac_ct_FILECMD
5910 fi
5911 else
5912 FILECMD="$ac_cv_prog_FILECMD"
5913 fi
5914
5915
5916
5917
5918
5919
5920
5921 if test -n "$ac_tool_prefix"; then
5922 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5923 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5925 printf %s "checking for $ac_word... " >&6; }
5926 if test ${ac_cv_prog_OBJDUMP+y}
5927 then :
5928 printf %s "(cached) " >&6
5929 else $as_nop
5930 if test -n "$OBJDUMP"; then
5931 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5932 else
5933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5934 for as_dir in $PATH
5935 do
5936 IFS=$as_save_IFS
5937 case $as_dir in #(((
5938 '') as_dir=./ ;;
5939 */) ;;
5940 *) as_dir=$as_dir/ ;;
5941 esac
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5944 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5945 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5946 break 2
5947 fi
5948 done
5949 done
5950 IFS=$as_save_IFS
5951
5952 fi
5953 fi
5954 OBJDUMP=$ac_cv_prog_OBJDUMP
5955 if test -n "$OBJDUMP"; then
5956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5957 printf "%s\n" "$OBJDUMP" >&6; }
5958 else
5959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5960 printf "%s\n" "no" >&6; }
5961 fi
5962
5963
5964 fi
5965 if test -z "$ac_cv_prog_OBJDUMP"; then
5966 ac_ct_OBJDUMP=$OBJDUMP
5967 # Extract the first word of "objdump", so it can be a program name with args.
5968 set dummy objdump; ac_word=$2
5969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970 printf %s "checking for $ac_word... " >&6; }
5971 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
5972 then :
5973 printf %s "(cached) " >&6
5974 else $as_nop
5975 if test -n "$ac_ct_OBJDUMP"; then
5976 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 case $as_dir in #(((
5983 '') as_dir=./ ;;
5984 */) ;;
5985 *) as_dir=$as_dir/ ;;
5986 esac
5987 for ac_exec_ext in '' $ac_executable_extensions; do
5988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5989 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5991 break 2
5992 fi
5993 done
5994 done
5995 IFS=$as_save_IFS
5996
5997 fi
5998 fi
5999 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6000 if test -n "$ac_ct_OBJDUMP"; then
6001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6002 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6003 else
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6005 printf "%s\n" "no" >&6; }
6006 fi
6007
6008 if test "x$ac_ct_OBJDUMP" = x; then
6009 OBJDUMP="false"
6010 else
6011 case $cross_compiling:$ac_tool_warned in
6012 yes:)
6013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6014 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6015 ac_tool_warned=yes ;;
6016 esac
6017 OBJDUMP=$ac_ct_OBJDUMP
6018 fi
6019 else
6020 OBJDUMP="$ac_cv_prog_OBJDUMP"
6021 fi
6022
6023 test -z "$OBJDUMP" && OBJDUMP=objdump
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6034 printf %s "checking how to recognize dependent libraries... " >&6; }
6035 if test ${lt_cv_deplibs_check_method+y}
6036 then :
6037 printf %s "(cached) " >&6
6038 else $as_nop
6039 lt_cv_file_magic_cmd='$MAGIC_CMD'
6040 lt_cv_file_magic_test_file=
6041 lt_cv_deplibs_check_method='unknown'
6042 # Need to set the preceding variable on all platforms that support
6043 # interlibrary dependencies.
6044 # 'none' -- dependencies not supported.
6045 # 'unknown' -- same as none, but documents that we really don't know.
6046 # 'pass_all' -- all dependencies passed with no checks.
6047 # 'test_compile' -- check by making test program.
6048 # 'file_magic [[regex]]' -- check by looking for files in library path
6049 # that responds to the $file_magic_cmd with a given extended regex.
6050 # If you have 'file' or equivalent on your system and you're not sure
6051 # whether 'pass_all' will *always* work, you probably want this one.
6052
6053 case $host_os in
6054 aix[4-9]*)
6055 lt_cv_deplibs_check_method=pass_all
6056 ;;
6057
6058 beos*)
6059 lt_cv_deplibs_check_method=pass_all
6060 ;;
6061
6062 bsdi[45]*)
6063 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6064 lt_cv_file_magic_cmd='$FILECMD -L'
6065 lt_cv_file_magic_test_file=/shlib/libc.so
6066 ;;
6067
6068 cygwin*)
6069 # func_win32_libid is a shell function defined in ltmain.sh
6070 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6071 lt_cv_file_magic_cmd='func_win32_libid'
6072 ;;
6073
6074 mingw* | pw32*)
6075 # Base MSYS/MinGW do not provide the 'file' command needed by
6076 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6077 # unless we find 'file', for example because we are cross-compiling.
6078 if ( file / ) >/dev/null 2>&1; then
6079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6080 lt_cv_file_magic_cmd='func_win32_libid'
6081 else
6082 # Keep this pattern in sync with the one in func_win32_libid.
6083 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6084 lt_cv_file_magic_cmd='$OBJDUMP -f'
6085 fi
6086 ;;
6087
6088 cegcc*)
6089 # use the weaker test based on 'objdump'. See mingw*.
6090 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6091 lt_cv_file_magic_cmd='$OBJDUMP -f'
6092 ;;
6093
6094 darwin* | rhapsody*)
6095 lt_cv_deplibs_check_method=pass_all
6096 ;;
6097
6098 freebsd* | dragonfly* | midnightbsd*)
6099 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6100 case $host_cpu in
6101 i*86 )
6102 # Not sure whether the presence of OpenBSD here was a mistake.
6103 # Let's accept both of them until this is cleared up.
6104 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6105 lt_cv_file_magic_cmd=$FILECMD
6106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6107 ;;
6108 esac
6109 else
6110 lt_cv_deplibs_check_method=pass_all
6111 fi
6112 ;;
6113
6114 haiku*)
6115 lt_cv_deplibs_check_method=pass_all
6116 ;;
6117
6118 hpux10.20* | hpux11*)
6119 lt_cv_file_magic_cmd=$FILECMD
6120 case $host_cpu in
6121 ia64*)
6122 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6123 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6124 ;;
6125 hppa*64*)
6126 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]'
6127 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6128 ;;
6129 *)
6130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6131 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6132 ;;
6133 esac
6134 ;;
6135
6136 interix[3-9]*)
6137 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6139 ;;
6140
6141 irix5* | irix6* | nonstopux*)
6142 case $LD in
6143 *-32|*"-32 ") libmagic=32-bit;;
6144 *-n32|*"-n32 ") libmagic=N32;;
6145 *-64|*"-64 ") libmagic=64-bit;;
6146 *) libmagic=never-match;;
6147 esac
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150
6151 # This must be glibc/ELF.
6152 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6153 lt_cv_deplibs_check_method=pass_all
6154 ;;
6155
6156 netbsd*)
6157 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6158 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6159 else
6160 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6161 fi
6162 ;;
6163
6164 newos6*)
6165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6166 lt_cv_file_magic_cmd=$FILECMD
6167 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6168 ;;
6169
6170 *nto* | *qnx*)
6171 lt_cv_deplibs_check_method=pass_all
6172 ;;
6173
6174 openbsd* | bitrig*)
6175 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6176 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6177 else
6178 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6179 fi
6180 ;;
6181
6182 osf3* | osf4* | osf5*)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185
6186 rdos*)
6187 lt_cv_deplibs_check_method=pass_all
6188 ;;
6189
6190 solaris*)
6191 lt_cv_deplibs_check_method=pass_all
6192 ;;
6193
6194 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197
6198 sysv4 | sysv4.3*)
6199 case $host_vendor in
6200 motorola)
6201 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]'
6202 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6203 ;;
6204 ncr)
6205 lt_cv_deplibs_check_method=pass_all
6206 ;;
6207 sequent)
6208 lt_cv_file_magic_cmd='/bin/file'
6209 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6210 ;;
6211 sni)
6212 lt_cv_file_magic_cmd='/bin/file'
6213 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6214 lt_cv_file_magic_test_file=/lib/libc.so
6215 ;;
6216 siemens)
6217 lt_cv_deplibs_check_method=pass_all
6218 ;;
6219 pc)
6220 lt_cv_deplibs_check_method=pass_all
6221 ;;
6222 esac
6223 ;;
6224
6225 tpf*)
6226 lt_cv_deplibs_check_method=pass_all
6227 ;;
6228 os2*)
6229 lt_cv_deplibs_check_method=pass_all
6230 ;;
6231 esac
6232
6233 fi
6234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6235 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6236
6237 file_magic_glob=
6238 want_nocaseglob=no
6239 if test "$build" = "$host"; then
6240 case $host_os in
6241 mingw* | pw32*)
6242 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6243 want_nocaseglob=yes
6244 else
6245 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6246 fi
6247 ;;
6248 esac
6249 fi
6250
6251 file_magic_cmd=$lt_cv_file_magic_cmd
6252 deplibs_check_method=$lt_cv_deplibs_check_method
6253 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276 if test -n "$ac_tool_prefix"; then
6277 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6278 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6280 printf %s "checking for $ac_word... " >&6; }
6281 if test ${ac_cv_prog_DLLTOOL+y}
6282 then :
6283 printf %s "(cached) " >&6
6284 else $as_nop
6285 if test -n "$DLLTOOL"; then
6286 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6287 else
6288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289 for as_dir in $PATH
6290 do
6291 IFS=$as_save_IFS
6292 case $as_dir in #(((
6293 '') as_dir=./ ;;
6294 */) ;;
6295 *) as_dir=$as_dir/ ;;
6296 esac
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6299 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6300 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6301 break 2
6302 fi
6303 done
6304 done
6305 IFS=$as_save_IFS
6306
6307 fi
6308 fi
6309 DLLTOOL=$ac_cv_prog_DLLTOOL
6310 if test -n "$DLLTOOL"; then
6311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6312 printf "%s\n" "$DLLTOOL" >&6; }
6313 else
6314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6315 printf "%s\n" "no" >&6; }
6316 fi
6317
6318
6319 fi
6320 if test -z "$ac_cv_prog_DLLTOOL"; then
6321 ac_ct_DLLTOOL=$DLLTOOL
6322 # Extract the first word of "dlltool", so it can be a program name with args.
6323 set dummy dlltool; ac_word=$2
6324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6325 printf %s "checking for $ac_word... " >&6; }
6326 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6327 then :
6328 printf %s "(cached) " >&6
6329 else $as_nop
6330 if test -n "$ac_ct_DLLTOOL"; then
6331 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6332 else
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6334 for as_dir in $PATH
6335 do
6336 IFS=$as_save_IFS
6337 case $as_dir in #(((
6338 '') as_dir=./ ;;
6339 */) ;;
6340 *) as_dir=$as_dir/ ;;
6341 esac
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6344 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6346 break 2
6347 fi
6348 done
6349 done
6350 IFS=$as_save_IFS
6351
6352 fi
6353 fi
6354 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6355 if test -n "$ac_ct_DLLTOOL"; then
6356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6357 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6358 else
6359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6360 printf "%s\n" "no" >&6; }
6361 fi
6362
6363 if test "x$ac_ct_DLLTOOL" = x; then
6364 DLLTOOL="false"
6365 else
6366 case $cross_compiling:$ac_tool_warned in
6367 yes:)
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6369 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6370 ac_tool_warned=yes ;;
6371 esac
6372 DLLTOOL=$ac_ct_DLLTOOL
6373 fi
6374 else
6375 DLLTOOL="$ac_cv_prog_DLLTOOL"
6376 fi
6377
6378 test -z "$DLLTOOL" && DLLTOOL=dlltool
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6390 printf %s "checking how to associate runtime and link libraries... " >&6; }
6391 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6392 then :
6393 printf %s "(cached) " >&6
6394 else $as_nop
6395 lt_cv_sharedlib_from_linklib_cmd='unknown'
6396
6397 case $host_os in
6398 cygwin* | mingw* | pw32* | cegcc*)
6399 # two different shell functions defined in ltmain.sh;
6400 # decide which one to use based on capabilities of $DLLTOOL
6401 case `$DLLTOOL --help 2>&1` in
6402 *--identify-strict*)
6403 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6404 ;;
6405 *)
6406 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6407 ;;
6408 esac
6409 ;;
6410 *)
6411 # fallback: assume linklib IS sharedlib
6412 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6413 ;;
6414 esac
6415
6416 fi
6417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6418 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6419 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6420 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6421
6422
6423
6424
6425
6426
6427
6428 if test -n "$ac_tool_prefix"; then
6429 for ac_prog in ar
6430 do
6431 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 printf %s "checking for $ac_word... " >&6; }
6435 if test ${ac_cv_prog_AR+y}
6436 then :
6437 printf %s "(cached) " >&6
6438 else $as_nop
6439 if test -n "$AR"; then
6440 ac_cv_prog_AR="$AR" # Let the user override the test.
6441 else
6442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6443 for as_dir in $PATH
6444 do
6445 IFS=$as_save_IFS
6446 case $as_dir in #(((
6447 '') as_dir=./ ;;
6448 */) ;;
6449 *) as_dir=$as_dir/ ;;
6450 esac
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6454 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 AR=$ac_cv_prog_AR
6464 if test -n "$AR"; then
6465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6466 printf "%s\n" "$AR" >&6; }
6467 else
6468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 printf "%s\n" "no" >&6; }
6470 fi
6471
6472
6473 test -n "$AR" && break
6474 done
6475 fi
6476 if test -z "$AR"; then
6477 ac_ct_AR=$AR
6478 for ac_prog in ar
6479 do
6480 # Extract the first word of "$ac_prog", so it can be a program name with args.
6481 set dummy $ac_prog; ac_word=$2
6482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483 printf %s "checking for $ac_word... " >&6; }
6484 if test ${ac_cv_prog_ac_ct_AR+y}
6485 then :
6486 printf %s "(cached) " >&6
6487 else $as_nop
6488 if test -n "$ac_ct_AR"; then
6489 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6490 else
6491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6492 for as_dir in $PATH
6493 do
6494 IFS=$as_save_IFS
6495 case $as_dir in #(((
6496 '') as_dir=./ ;;
6497 */) ;;
6498 *) as_dir=$as_dir/ ;;
6499 esac
6500 for ac_exec_ext in '' $ac_executable_extensions; do
6501 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6502 ac_cv_prog_ac_ct_AR="$ac_prog"
6503 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6504 break 2
6505 fi
6506 done
6507 done
6508 IFS=$as_save_IFS
6509
6510 fi
6511 fi
6512 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6513 if test -n "$ac_ct_AR"; then
6514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6515 printf "%s\n" "$ac_ct_AR" >&6; }
6516 else
6517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6518 printf "%s\n" "no" >&6; }
6519 fi
6520
6521
6522 test -n "$ac_ct_AR" && break
6523 done
6524
6525 if test "x$ac_ct_AR" = x; then
6526 AR="false"
6527 else
6528 case $cross_compiling:$ac_tool_warned in
6529 yes:)
6530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6531 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6532 ac_tool_warned=yes ;;
6533 esac
6534 AR=$ac_ct_AR
6535 fi
6536 fi
6537
6538 : ${AR=ar}
6539
6540
6541
6542
6543
6544
6545 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6546 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6547 # higher priority because thats what people were doing historically (setting
6548 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6549 # variable obsoleted/removed.
6550
6551 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6552 lt_ar_flags=$AR_FLAGS
6553
6554
6555
6556
6557
6558
6559 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6560 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6561
6562
6563
6564
6565
6566
6567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6568 printf %s "checking for archiver @FILE support... " >&6; }
6569 if test ${lt_cv_ar_at_file+y}
6570 then :
6571 printf %s "(cached) " >&6
6572 else $as_nop
6573 lt_cv_ar_at_file=no
6574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6575 /* end confdefs.h. */
6576
6577 int
6578 main (void)
6579 {
6580
6581 ;
6582 return 0;
6583 }
6584 _ACEOF
6585 if ac_fn_c_try_compile "$LINENO"
6586 then :
6587 echo conftest.$ac_objext > conftest.lst
6588 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6589 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6590 (eval $lt_ar_try) 2>&5
6591 ac_status=$?
6592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6593 test $ac_status = 0; }
6594 if test 0 -eq "$ac_status"; then
6595 # Ensure the archiver fails upon bogus file names.
6596 rm -f conftest.$ac_objext libconftest.a
6597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6598 (eval $lt_ar_try) 2>&5
6599 ac_status=$?
6600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6601 test $ac_status = 0; }
6602 if test 0 -ne "$ac_status"; then
6603 lt_cv_ar_at_file=@
6604 fi
6605 fi
6606 rm -f conftest.* libconftest.a
6607
6608 fi
6609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6610
6611 fi
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6613 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6614
6615 if test no = "$lt_cv_ar_at_file"; then
6616 archiver_list_spec=
6617 else
6618 archiver_list_spec=$lt_cv_ar_at_file
6619 fi
6620
6621
6622
6623
6624
6625
6626
6627 if test -n "$ac_tool_prefix"; then
6628 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6629 set dummy ${ac_tool_prefix}strip; ac_word=$2
6630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6631 printf %s "checking for $ac_word... " >&6; }
6632 if test ${ac_cv_prog_STRIP+y}
6633 then :
6634 printf %s "(cached) " >&6
6635 else $as_nop
6636 if test -n "$STRIP"; then
6637 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6638 else
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6640 for as_dir in $PATH
6641 do
6642 IFS=$as_save_IFS
6643 case $as_dir in #(((
6644 '') as_dir=./ ;;
6645 */) ;;
6646 *) as_dir=$as_dir/ ;;
6647 esac
6648 for ac_exec_ext in '' $ac_executable_extensions; do
6649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6650 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6652 break 2
6653 fi
6654 done
6655 done
6656 IFS=$as_save_IFS
6657
6658 fi
6659 fi
6660 STRIP=$ac_cv_prog_STRIP
6661 if test -n "$STRIP"; then
6662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6663 printf "%s\n" "$STRIP" >&6; }
6664 else
6665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6666 printf "%s\n" "no" >&6; }
6667 fi
6668
6669
6670 fi
6671 if test -z "$ac_cv_prog_STRIP"; then
6672 ac_ct_STRIP=$STRIP
6673 # Extract the first word of "strip", so it can be a program name with args.
6674 set dummy strip; ac_word=$2
6675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6676 printf %s "checking for $ac_word... " >&6; }
6677 if test ${ac_cv_prog_ac_ct_STRIP+y}
6678 then :
6679 printf %s "(cached) " >&6
6680 else $as_nop
6681 if test -n "$ac_ct_STRIP"; then
6682 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6683 else
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6686 do
6687 IFS=$as_save_IFS
6688 case $as_dir in #(((
6689 '') as_dir=./ ;;
6690 */) ;;
6691 *) as_dir=$as_dir/ ;;
6692 esac
6693 for ac_exec_ext in '' $ac_executable_extensions; do
6694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6695 ac_cv_prog_ac_ct_STRIP="strip"
6696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6697 break 2
6698 fi
6699 done
6700 done
6701 IFS=$as_save_IFS
6702
6703 fi
6704 fi
6705 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6706 if test -n "$ac_ct_STRIP"; then
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6708 printf "%s\n" "$ac_ct_STRIP" >&6; }
6709 else
6710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6711 printf "%s\n" "no" >&6; }
6712 fi
6713
6714 if test "x$ac_ct_STRIP" = x; then
6715 STRIP=":"
6716 else
6717 case $cross_compiling:$ac_tool_warned in
6718 yes:)
6719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6721 ac_tool_warned=yes ;;
6722 esac
6723 STRIP=$ac_ct_STRIP
6724 fi
6725 else
6726 STRIP="$ac_cv_prog_STRIP"
6727 fi
6728
6729 test -z "$STRIP" && STRIP=:
6730
6731
6732
6733
6734
6735
6736 if test -n "$ac_tool_prefix"; then
6737 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6738 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6740 printf %s "checking for $ac_word... " >&6; }
6741 if test ${ac_cv_prog_RANLIB+y}
6742 then :
6743 printf %s "(cached) " >&6
6744 else $as_nop
6745 if test -n "$RANLIB"; then
6746 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6747 else
6748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6749 for as_dir in $PATH
6750 do
6751 IFS=$as_save_IFS
6752 case $as_dir in #(((
6753 '') as_dir=./ ;;
6754 */) ;;
6755 *) as_dir=$as_dir/ ;;
6756 esac
6757 for ac_exec_ext in '' $ac_executable_extensions; do
6758 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6759 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6760 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6761 break 2
6762 fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767 fi
6768 fi
6769 RANLIB=$ac_cv_prog_RANLIB
6770 if test -n "$RANLIB"; then
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6772 printf "%s\n" "$RANLIB" >&6; }
6773 else
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6775 printf "%s\n" "no" >&6; }
6776 fi
6777
6778
6779 fi
6780 if test -z "$ac_cv_prog_RANLIB"; then
6781 ac_ct_RANLIB=$RANLIB
6782 # Extract the first word of "ranlib", so it can be a program name with args.
6783 set dummy ranlib; ac_word=$2
6784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6785 printf %s "checking for $ac_word... " >&6; }
6786 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6787 then :
6788 printf %s "(cached) " >&6
6789 else $as_nop
6790 if test -n "$ac_ct_RANLIB"; then
6791 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6792 else
6793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796 IFS=$as_save_IFS
6797 case $as_dir in #(((
6798 '') as_dir=./ ;;
6799 */) ;;
6800 *) as_dir=$as_dir/ ;;
6801 esac
6802 for ac_exec_ext in '' $ac_executable_extensions; do
6803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6804 ac_cv_prog_ac_ct_RANLIB="ranlib"
6805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6806 break 2
6807 fi
6808 done
6809 done
6810 IFS=$as_save_IFS
6811
6812 fi
6813 fi
6814 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6815 if test -n "$ac_ct_RANLIB"; then
6816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6817 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6818 else
6819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6820 printf "%s\n" "no" >&6; }
6821 fi
6822
6823 if test "x$ac_ct_RANLIB" = x; then
6824 RANLIB=":"
6825 else
6826 case $cross_compiling:$ac_tool_warned in
6827 yes:)
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6830 ac_tool_warned=yes ;;
6831 esac
6832 RANLIB=$ac_ct_RANLIB
6833 fi
6834 else
6835 RANLIB="$ac_cv_prog_RANLIB"
6836 fi
6837
6838 test -z "$RANLIB" && RANLIB=:
6839
6840
6841
6842
6843
6844
6845 # Determine commands to create old-style static archives.
6846 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6847 old_postinstall_cmds='chmod 644 $oldlib'
6848 old_postuninstall_cmds=
6849
6850 if test -n "$RANLIB"; then
6851 case $host_os in
6852 bitrig* | openbsd*)
6853 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6854 ;;
6855 *)
6856 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6857 ;;
6858 esac
6859 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6860 fi
6861
6862 case $host_os in
6863 darwin*)
6864 lock_old_archive_extraction=yes ;;
6865 *)
6866 lock_old_archive_extraction=no ;;
6867 esac
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896
6897
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907 # If no C compiler was specified, use CC.
6908 LTCC=${LTCC-"$CC"}
6909
6910 # If no C compiler flags were specified, use CFLAGS.
6911 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6912
6913 # Allow CC to be a program name with arguments.
6914 compiler=$CC
6915
6916
6917 # Check for command to grab the raw symbol name followed by C symbol from nm.
6918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6919 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
6920 if test ${lt_cv_sys_global_symbol_pipe+y}
6921 then :
6922 printf %s "(cached) " >&6
6923 else $as_nop
6924
6925 # These are sane defaults that work on at least a few old systems.
6926 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6927
6928 # Character class describing NM global symbol codes.
6929 symcode='[BCDEGRST]'
6930
6931 # Regexp to match symbols that can be accessed directly from C.
6932 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6933
6934 # Define system-specific variables.
6935 case $host_os in
6936 aix*)
6937 symcode='[BCDT]'
6938 ;;
6939 cygwin* | mingw* | pw32* | cegcc*)
6940 symcode='[ABCDGISTW]'
6941 ;;
6942 hpux*)
6943 if test ia64 = "$host_cpu"; then
6944 symcode='[ABCDEGRST]'
6945 fi
6946 ;;
6947 irix* | nonstopux*)
6948 symcode='[BCDEGRST]'
6949 ;;
6950 osf*)
6951 symcode='[BCDEGQRST]'
6952 ;;
6953 solaris*)
6954 symcode='[BDRT]'
6955 ;;
6956 sco3.2v5*)
6957 symcode='[DT]'
6958 ;;
6959 sysv4.2uw2*)
6960 symcode='[DT]'
6961 ;;
6962 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6963 symcode='[ABDT]'
6964 ;;
6965 sysv4)
6966 symcode='[DFNSTU]'
6967 ;;
6968 esac
6969
6970 # If we're using GNU nm, then use its standard symbol codes.
6971 case `$NM -V 2>&1` in
6972 *GNU* | *'with BFD'*)
6973 symcode='[ABCDGIRSTW]' ;;
6974 esac
6975
6976 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6977 # Gets list of data symbols to import.
6978 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
6979 # Adjust the below global symbol transforms to fixup imported variables.
6980 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
6981 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
6982 lt_c_name_lib_hook="\
6983 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
6984 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
6985 else
6986 # Disable hooks by default.
6987 lt_cv_sys_global_symbol_to_import=
6988 lt_cdecl_hook=
6989 lt_c_name_hook=
6990 lt_c_name_lib_hook=
6991 fi
6992
6993 # Transform an extracted symbol line into a proper C declaration.
6994 # Some systems (esp. on ia64) link data and code symbols differently,
6995 # so use this general approach.
6996 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
6997 $lt_cdecl_hook\
6998 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
6999 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7000
7001 # Transform an extracted symbol line into symbol name and symbol address
7002 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7003 $lt_c_name_hook\
7004 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7005 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7006
7007 # Transform an extracted symbol line into symbol name with lib prefix and
7008 # symbol address.
7009 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7010 $lt_c_name_lib_hook\
7011 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7012 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7013 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7014
7015 # Handle CRLF in mingw tool chain
7016 opt_cr=
7017 case $build_os in
7018 mingw*)
7019 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7020 ;;
7021 esac
7022
7023 # Try without a prefix underscore, then with it.
7024 for ac_symprfx in "" "_"; do
7025
7026 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7027 symxfrm="\\1 $ac_symprfx\\2 \\2"
7028
7029 # Write the raw and C identifiers.
7030 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7031 # Fake it for dumpbin and say T for any non-static function,
7032 # D for any global variable and I for any imported variable.
7033 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7034 # which start with @ or ?.
7035 lt_cv_sys_global_symbol_pipe="$AWK '"\
7036 " {last_section=section; section=\$ 3};"\
7037 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7038 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7039 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7040 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7041 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7042 " \$ 0!~/External *\|/{next};"\
7043 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7044 " {if(hide[section]) next};"\
7045 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7046 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7047 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7048 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7049 " ' prfx=^$ac_symprfx"
7050 else
7051 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7052 fi
7053 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7054
7055 # Check to see that the pipe works correctly.
7056 pipe_works=no
7057
7058 rm -f conftest*
7059 cat > conftest.$ac_ext <<_LT_EOF
7060 #ifdef __cplusplus
7061 extern "C" {
7062 #endif
7063 char nm_test_var;
7064 void nm_test_func(void);
7065 void nm_test_func(void){}
7066 #ifdef __cplusplus
7067 }
7068 #endif
7069 int main(){nm_test_var='a';nm_test_func();return(0);}
7070 _LT_EOF
7071
7072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7073 (eval $ac_compile) 2>&5
7074 ac_status=$?
7075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7076 test $ac_status = 0; }; then
7077 # Now try to grab the symbols.
7078 nlist=conftest.nm
7079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7080 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7081 ac_status=$?
7082 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; } && test -s "$nlist"; then
7084 # Try sorting and uniquifying the output.
7085 if sort "$nlist" | uniq > "$nlist"T; then
7086 mv -f "$nlist"T "$nlist"
7087 else
7088 rm -f "$nlist"T
7089 fi
7090
7091 # Make sure that we snagged all the symbols we need.
7092 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7093 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7094 cat <<_LT_EOF > conftest.$ac_ext
7095 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7096 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7097 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7098 relocations are performed -- see ld's documentation on pseudo-relocs. */
7099 # define LT_DLSYM_CONST
7100 #elif defined __osf__
7101 /* This system does not cope well with relocations in const data. */
7102 # define LT_DLSYM_CONST
7103 #else
7104 # define LT_DLSYM_CONST const
7105 #endif
7106
7107 #ifdef __cplusplus
7108 extern "C" {
7109 #endif
7110
7111 _LT_EOF
7112 # Now generate the symbol file.
7113 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7114
7115 cat <<_LT_EOF >> conftest.$ac_ext
7116
7117 /* The mapping between symbol names and symbols. */
7118 LT_DLSYM_CONST struct {
7119 const char *name;
7120 void *address;
7121 }
7122 lt__PROGRAM__LTX_preloaded_symbols[] =
7123 {
7124 { "@PROGRAM@", (void *) 0 },
7125 _LT_EOF
7126 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7127 cat <<\_LT_EOF >> conftest.$ac_ext
7128 {0, (void *) 0}
7129 };
7130
7131 /* This works around a problem in FreeBSD linker */
7132 #ifdef FREEBSD_WORKAROUND
7133 static const void *lt_preloaded_setup() {
7134 return lt__PROGRAM__LTX_preloaded_symbols;
7135 }
7136 #endif
7137
7138 #ifdef __cplusplus
7139 }
7140 #endif
7141 _LT_EOF
7142 # Now try linking the two files.
7143 mv conftest.$ac_objext conftstm.$ac_objext
7144 lt_globsym_save_LIBS=$LIBS
7145 lt_globsym_save_CFLAGS=$CFLAGS
7146 LIBS=conftstm.$ac_objext
7147 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7149 (eval $ac_link) 2>&5
7150 ac_status=$?
7151 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7152 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7153 pipe_works=yes
7154 fi
7155 LIBS=$lt_globsym_save_LIBS
7156 CFLAGS=$lt_globsym_save_CFLAGS
7157 else
7158 echo "cannot find nm_test_func in $nlist" >&5
7159 fi
7160 else
7161 echo "cannot find nm_test_var in $nlist" >&5
7162 fi
7163 else
7164 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7165 fi
7166 else
7167 echo "$progname: failed program was:" >&5
7168 cat conftest.$ac_ext >&5
7169 fi
7170 rm -rf conftest* conftst*
7171
7172 # Do not use the global_symbol_pipe unless it works.
7173 if test yes = "$pipe_works"; then
7174 break
7175 else
7176 lt_cv_sys_global_symbol_pipe=
7177 fi
7178 done
7179
7180 fi
7181
7182 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7183 lt_cv_sys_global_symbol_to_cdecl=
7184 fi
7185 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7187 printf "%s\n" "failed" >&6; }
7188 else
7189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7190 printf "%s\n" "ok" >&6; }
7191 fi
7192
7193 # Response file support.
7194 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7195 nm_file_list_spec='@'
7196 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7197 nm_file_list_spec='@'
7198 fi
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
7235
7236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7237 printf %s "checking for sysroot... " >&6; }
7238
7239 # Check whether --with-sysroot was given.
7240 if test ${with_sysroot+y}
7241 then :
7242 withval=$with_sysroot;
7243 else $as_nop
7244 with_sysroot=no
7245 fi
7246
7247
7248 lt_sysroot=
7249 case $with_sysroot in #(
7250 yes)
7251 if test yes = "$GCC"; then
7252 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7253 fi
7254 ;; #(
7255 /*)
7256 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7257 ;; #(
7258 no|'')
7259 ;; #(
7260 *)
7261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7262 printf "%s\n" "$with_sysroot" >&6; }
7263 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7264 ;;
7265 esac
7266
7267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7268 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7269
7270
7271
7272
7273
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7275 printf %s "checking for a working dd... " >&6; }
7276 if test ${ac_cv_path_lt_DD+y}
7277 then :
7278 printf %s "(cached) " >&6
7279 else $as_nop
7280 printf 0123456789abcdef0123456789abcdef >conftest.i
7281 cat conftest.i conftest.i >conftest2.i
7282 : ${lt_DD:=$DD}
7283 if test -z "$lt_DD"; then
7284 ac_path_lt_DD_found=false
7285 # Loop through the user's path and test for each of PROGNAME-LIST
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 case $as_dir in #(((
7291 '') as_dir=./ ;;
7292 */) ;;
7293 *) as_dir=$as_dir/ ;;
7294 esac
7295 for ac_prog in dd
7296 do
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7299 as_fn_executable_p "$ac_path_lt_DD" || continue
7300 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7301 cmp -s conftest.i conftest.out \
7302 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7303 fi
7304 $ac_path_lt_DD_found && break 3
7305 done
7306 done
7307 done
7308 IFS=$as_save_IFS
7309 if test -z "$ac_cv_path_lt_DD"; then
7310 :
7311 fi
7312 else
7313 ac_cv_path_lt_DD=$lt_DD
7314 fi
7315
7316 rm -f conftest.i conftest2.i conftest.out
7317 fi
7318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7319 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7320
7321
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7323 printf %s "checking how to truncate binary pipes... " >&6; }
7324 if test ${lt_cv_truncate_bin+y}
7325 then :
7326 printf %s "(cached) " >&6
7327 else $as_nop
7328 printf 0123456789abcdef0123456789abcdef >conftest.i
7329 cat conftest.i conftest.i >conftest2.i
7330 lt_cv_truncate_bin=
7331 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7332 cmp -s conftest.i conftest.out \
7333 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7334 fi
7335 rm -f conftest.i conftest2.i conftest.out
7336 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7337 fi
7338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7339 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7340
7341
7342
7343
7344
7345
7346
7347 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7348 func_cc_basename ()
7349 {
7350 for cc_temp in $*""; do
7351 case $cc_temp in
7352 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7353 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7354 \-*) ;;
7355 *) break;;
7356 esac
7357 done
7358 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7359 }
7360
7361 # Check whether --enable-libtool-lock was given.
7362 if test ${enable_libtool_lock+y}
7363 then :
7364 enableval=$enable_libtool_lock;
7365 fi
7366
7367 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7368
7369 # Some flags need to be propagated to the compiler or linker for good
7370 # libtool support.
7371 case $host in
7372 ia64-*-hpux*)
7373 # Find out what ABI is being produced by ac_compile, and set mode
7374 # options accordingly.
7375 echo 'int i;' > conftest.$ac_ext
7376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7377 (eval $ac_compile) 2>&5
7378 ac_status=$?
7379 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7380 test $ac_status = 0; }; then
7381 case `$FILECMD conftest.$ac_objext` in
7382 *ELF-32*)
7383 HPUX_IA64_MODE=32
7384 ;;
7385 *ELF-64*)
7386 HPUX_IA64_MODE=64
7387 ;;
7388 esac
7389 fi
7390 rm -rf conftest*
7391 ;;
7392 *-*-irix6*)
7393 # Find out what ABI is being produced by ac_compile, and set linker
7394 # options accordingly.
7395 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7396 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7397 (eval $ac_compile) 2>&5
7398 ac_status=$?
7399 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7400 test $ac_status = 0; }; then
7401 if test yes = "$lt_cv_prog_gnu_ld"; then
7402 case `$FILECMD conftest.$ac_objext` in
7403 *32-bit*)
7404 LD="${LD-ld} -melf32bsmip"
7405 ;;
7406 *N32*)
7407 LD="${LD-ld} -melf32bmipn32"
7408 ;;
7409 *64-bit*)
7410 LD="${LD-ld} -melf64bmip"
7411 ;;
7412 esac
7413 else
7414 case `$FILECMD conftest.$ac_objext` in
7415 *32-bit*)
7416 LD="${LD-ld} -32"
7417 ;;
7418 *N32*)
7419 LD="${LD-ld} -n32"
7420 ;;
7421 *64-bit*)
7422 LD="${LD-ld} -64"
7423 ;;
7424 esac
7425 fi
7426 fi
7427 rm -rf conftest*
7428 ;;
7429
7430 mips64*-*linux*)
7431 # Find out what ABI is being produced by ac_compile, and set linker
7432 # options accordingly.
7433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7435 (eval $ac_compile) 2>&5
7436 ac_status=$?
7437 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7438 test $ac_status = 0; }; then
7439 emul=elf
7440 case `$FILECMD conftest.$ac_objext` in
7441 *32-bit*)
7442 emul="${emul}32"
7443 ;;
7444 *64-bit*)
7445 emul="${emul}64"
7446 ;;
7447 esac
7448 case `$FILECMD conftest.$ac_objext` in
7449 *MSB*)
7450 emul="${emul}btsmip"
7451 ;;
7452 *LSB*)
7453 emul="${emul}ltsmip"
7454 ;;
7455 esac
7456 case `$FILECMD conftest.$ac_objext` in
7457 *N32*)
7458 emul="${emul}n32"
7459 ;;
7460 esac
7461 LD="${LD-ld} -m $emul"
7462 fi
7463 rm -rf conftest*
7464 ;;
7465
7466 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7467 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7468 # Find out what ABI is being produced by ac_compile, and set linker
7469 # options accordingly. Note that the listed cases only cover the
7470 # situations where additional linker options are needed (such as when
7471 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7472 # vice versa); the common cases where no linker options are needed do
7473 # not appear in the list.
7474 echo 'int i;' > conftest.$ac_ext
7475 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7476 (eval $ac_compile) 2>&5
7477 ac_status=$?
7478 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7479 test $ac_status = 0; }; then
7480 case `$FILECMD conftest.o` in
7481 *32-bit*)
7482 case $host in
7483 x86_64-*kfreebsd*-gnu)
7484 LD="${LD-ld} -m elf_i386_fbsd"
7485 ;;
7486 x86_64-*linux*)
7487 case `$FILECMD conftest.o` in
7488 *x86-64*)
7489 LD="${LD-ld} -m elf32_x86_64"
7490 ;;
7491 *)
7492 LD="${LD-ld} -m elf_i386"
7493 ;;
7494 esac
7495 ;;
7496 powerpc64le-*linux*)
7497 LD="${LD-ld} -m elf32lppclinux"
7498 ;;
7499 powerpc64-*linux*)
7500 LD="${LD-ld} -m elf32ppclinux"
7501 ;;
7502 s390x-*linux*)
7503 LD="${LD-ld} -m elf_s390"
7504 ;;
7505 sparc64-*linux*)
7506 LD="${LD-ld} -m elf32_sparc"
7507 ;;
7508 esac
7509 ;;
7510 *64-bit*)
7511 case $host in
7512 x86_64-*kfreebsd*-gnu)
7513 LD="${LD-ld} -m elf_x86_64_fbsd"
7514 ;;
7515 x86_64-*linux*)
7516 LD="${LD-ld} -m elf_x86_64"
7517 ;;
7518 powerpcle-*linux*|powerpc64le-*linux*)
7519 LD="${LD-ld} -m elf64lppc"
7520 ;;
7521 powerpc-*linux*|powerpc64-*linux*)
7522 LD="${LD-ld} -m elf64ppc"
7523 ;;
7524 s390*-*linux*|s390*-*tpf*)
7525 LD="${LD-ld} -m elf64_s390"
7526 ;;
7527 sparc*-*linux*)
7528 LD="${LD-ld} -m elf64_sparc"
7529 ;;
7530 esac
7531 ;;
7532 esac
7533 fi
7534 rm -rf conftest*
7535 ;;
7536
7537 *-*-sco3.2v5*)
7538 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7539 SAVE_CFLAGS=$CFLAGS
7540 CFLAGS="$CFLAGS -belf"
7541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7542 printf %s "checking whether the C compiler needs -belf... " >&6; }
7543 if test ${lt_cv_cc_needs_belf+y}
7544 then :
7545 printf %s "(cached) " >&6
7546 else $as_nop
7547 ac_ext=c
7548 ac_cpp='$CPP $CPPFLAGS'
7549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7552
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7555
7556 int
7557 main (void)
7558 {
7559
7560 ;
7561 return 0;
7562 }
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"
7565 then :
7566 lt_cv_cc_needs_belf=yes
7567 else $as_nop
7568 lt_cv_cc_needs_belf=no
7569 fi
7570 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7571 conftest$ac_exeext conftest.$ac_ext
7572 ac_ext=c
7573 ac_cpp='$CPP $CPPFLAGS'
7574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577
7578 fi
7579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7580 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7581 if test yes != "$lt_cv_cc_needs_belf"; then
7582 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7583 CFLAGS=$SAVE_CFLAGS
7584 fi
7585 ;;
7586 *-*solaris*)
7587 # Find out what ABI is being produced by ac_compile, and set linker
7588 # options accordingly.
7589 echo 'int i;' > conftest.$ac_ext
7590 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7591 (eval $ac_compile) 2>&5
7592 ac_status=$?
7593 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7594 test $ac_status = 0; }; then
7595 case `$FILECMD conftest.o` in
7596 *64-bit*)
7597 case $lt_cv_prog_gnu_ld in
7598 yes*)
7599 case $host in
7600 i?86-*-solaris*|x86_64-*-solaris*)
7601 LD="${LD-ld} -m elf_x86_64"
7602 ;;
7603 sparc*-*-solaris*)
7604 LD="${LD-ld} -m elf64_sparc"
7605 ;;
7606 esac
7607 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7608 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7609 LD=${LD-ld}_sol2
7610 fi
7611 ;;
7612 *)
7613 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7614 LD="${LD-ld} -64"
7615 fi
7616 ;;
7617 esac
7618 ;;
7619 esac
7620 fi
7621 rm -rf conftest*
7622 ;;
7623 esac
7624
7625 need_locks=$enable_libtool_lock
7626
7627 if test -n "$ac_tool_prefix"; then
7628 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7629 set dummy ${ac_tool_prefix}mt; ac_word=$2
7630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631 printf %s "checking for $ac_word... " >&6; }
7632 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7633 then :
7634 printf %s "(cached) " >&6
7635 else $as_nop
7636 if test -n "$MANIFEST_TOOL"; then
7637 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7638 else
7639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7640 for as_dir in $PATH
7641 do
7642 IFS=$as_save_IFS
7643 case $as_dir in #(((
7644 '') as_dir=./ ;;
7645 */) ;;
7646 *) as_dir=$as_dir/ ;;
7647 esac
7648 for ac_exec_ext in '' $ac_executable_extensions; do
7649 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7650 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7651 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7652 break 2
7653 fi
7654 done
7655 done
7656 IFS=$as_save_IFS
7657
7658 fi
7659 fi
7660 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7661 if test -n "$MANIFEST_TOOL"; then
7662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7663 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7664 else
7665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666 printf "%s\n" "no" >&6; }
7667 fi
7668
7669
7670 fi
7671 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7672 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7673 # Extract the first word of "mt", so it can be a program name with args.
7674 set dummy mt; ac_word=$2
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676 printf %s "checking for $ac_word... " >&6; }
7677 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7678 then :
7679 printf %s "(cached) " >&6
7680 else $as_nop
7681 if test -n "$ac_ct_MANIFEST_TOOL"; then
7682 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7683 else
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7685 for as_dir in $PATH
7686 do
7687 IFS=$as_save_IFS
7688 case $as_dir in #(((
7689 '') as_dir=./ ;;
7690 */) ;;
7691 *) as_dir=$as_dir/ ;;
7692 esac
7693 for ac_exec_ext in '' $ac_executable_extensions; do
7694 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7695 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7696 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7697 break 2
7698 fi
7699 done
7700 done
7701 IFS=$as_save_IFS
7702
7703 fi
7704 fi
7705 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7706 if test -n "$ac_ct_MANIFEST_TOOL"; then
7707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7708 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7709 else
7710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7711 printf "%s\n" "no" >&6; }
7712 fi
7713
7714 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7715 MANIFEST_TOOL=":"
7716 else
7717 case $cross_compiling:$ac_tool_warned in
7718 yes:)
7719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7720 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7721 ac_tool_warned=yes ;;
7722 esac
7723 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7724 fi
7725 else
7726 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7727 fi
7728
7729 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7731 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7732 if test ${lt_cv_path_mainfest_tool+y}
7733 then :
7734 printf %s "(cached) " >&6
7735 else $as_nop
7736 lt_cv_path_mainfest_tool=no
7737 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7738 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7739 cat conftest.err >&5
7740 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7741 lt_cv_path_mainfest_tool=yes
7742 fi
7743 rm -f conftest*
7744 fi
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7746 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7747 if test yes != "$lt_cv_path_mainfest_tool"; then
7748 MANIFEST_TOOL=:
7749 fi
7750
7751
7752
7753
7754
7755
7756 case $host_os in
7757 rhapsody* | darwin*)
7758 if test -n "$ac_tool_prefix"; then
7759 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7760 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7762 printf %s "checking for $ac_word... " >&6; }
7763 if test ${ac_cv_prog_DSYMUTIL+y}
7764 then :
7765 printf %s "(cached) " >&6
7766 else $as_nop
7767 if test -n "$DSYMUTIL"; then
7768 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7769 else
7770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7771 for as_dir in $PATH
7772 do
7773 IFS=$as_save_IFS
7774 case $as_dir in #(((
7775 '') as_dir=./ ;;
7776 */) ;;
7777 *) as_dir=$as_dir/ ;;
7778 esac
7779 for ac_exec_ext in '' $ac_executable_extensions; do
7780 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7781 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7783 break 2
7784 fi
7785 done
7786 done
7787 IFS=$as_save_IFS
7788
7789 fi
7790 fi
7791 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7792 if test -n "$DSYMUTIL"; then
7793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7794 printf "%s\n" "$DSYMUTIL" >&6; }
7795 else
7796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7797 printf "%s\n" "no" >&6; }
7798 fi
7799
7800
7801 fi
7802 if test -z "$ac_cv_prog_DSYMUTIL"; then
7803 ac_ct_DSYMUTIL=$DSYMUTIL
7804 # Extract the first word of "dsymutil", so it can be a program name with args.
7805 set dummy dsymutil; ac_word=$2
7806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7807 printf %s "checking for $ac_word... " >&6; }
7808 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
7809 then :
7810 printf %s "(cached) " >&6
7811 else $as_nop
7812 if test -n "$ac_ct_DSYMUTIL"; then
7813 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7814 else
7815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7816 for as_dir in $PATH
7817 do
7818 IFS=$as_save_IFS
7819 case $as_dir in #(((
7820 '') as_dir=./ ;;
7821 */) ;;
7822 *) as_dir=$as_dir/ ;;
7823 esac
7824 for ac_exec_ext in '' $ac_executable_extensions; do
7825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7826 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7828 break 2
7829 fi
7830 done
7831 done
7832 IFS=$as_save_IFS
7833
7834 fi
7835 fi
7836 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7837 if test -n "$ac_ct_DSYMUTIL"; then
7838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7839 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
7840 else
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7842 printf "%s\n" "no" >&6; }
7843 fi
7844
7845 if test "x$ac_ct_DSYMUTIL" = x; then
7846 DSYMUTIL=":"
7847 else
7848 case $cross_compiling:$ac_tool_warned in
7849 yes:)
7850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7851 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7852 ac_tool_warned=yes ;;
7853 esac
7854 DSYMUTIL=$ac_ct_DSYMUTIL
7855 fi
7856 else
7857 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7858 fi
7859
7860 if test -n "$ac_tool_prefix"; then
7861 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7862 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7864 printf %s "checking for $ac_word... " >&6; }
7865 if test ${ac_cv_prog_NMEDIT+y}
7866 then :
7867 printf %s "(cached) " >&6
7868 else $as_nop
7869 if test -n "$NMEDIT"; then
7870 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7874 do
7875 IFS=$as_save_IFS
7876 case $as_dir in #(((
7877 '') as_dir=./ ;;
7878 */) ;;
7879 *) as_dir=$as_dir/ ;;
7880 esac
7881 for ac_exec_ext in '' $ac_executable_extensions; do
7882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7883 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7885 break 2
7886 fi
7887 done
7888 done
7889 IFS=$as_save_IFS
7890
7891 fi
7892 fi
7893 NMEDIT=$ac_cv_prog_NMEDIT
7894 if test -n "$NMEDIT"; then
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7896 printf "%s\n" "$NMEDIT" >&6; }
7897 else
7898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7899 printf "%s\n" "no" >&6; }
7900 fi
7901
7902
7903 fi
7904 if test -z "$ac_cv_prog_NMEDIT"; then
7905 ac_ct_NMEDIT=$NMEDIT
7906 # Extract the first word of "nmedit", so it can be a program name with args.
7907 set dummy nmedit; ac_word=$2
7908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7909 printf %s "checking for $ac_word... " >&6; }
7910 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
7911 then :
7912 printf %s "(cached) " >&6
7913 else $as_nop
7914 if test -n "$ac_ct_NMEDIT"; then
7915 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7916 else
7917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7918 for as_dir in $PATH
7919 do
7920 IFS=$as_save_IFS
7921 case $as_dir in #(((
7922 '') as_dir=./ ;;
7923 */) ;;
7924 *) as_dir=$as_dir/ ;;
7925 esac
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7928 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7930 break 2
7931 fi
7932 done
7933 done
7934 IFS=$as_save_IFS
7935
7936 fi
7937 fi
7938 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7939 if test -n "$ac_ct_NMEDIT"; then
7940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7941 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
7942 else
7943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7944 printf "%s\n" "no" >&6; }
7945 fi
7946
7947 if test "x$ac_ct_NMEDIT" = x; then
7948 NMEDIT=":"
7949 else
7950 case $cross_compiling:$ac_tool_warned in
7951 yes:)
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7953 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7954 ac_tool_warned=yes ;;
7955 esac
7956 NMEDIT=$ac_ct_NMEDIT
7957 fi
7958 else
7959 NMEDIT="$ac_cv_prog_NMEDIT"
7960 fi
7961
7962 if test -n "$ac_tool_prefix"; then
7963 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7964 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7966 printf %s "checking for $ac_word... " >&6; }
7967 if test ${ac_cv_prog_LIPO+y}
7968 then :
7969 printf %s "(cached) " >&6
7970 else $as_nop
7971 if test -n "$LIPO"; then
7972 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7973 else
7974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 for as_dir in $PATH
7976 do
7977 IFS=$as_save_IFS
7978 case $as_dir in #(((
7979 '') as_dir=./ ;;
7980 */) ;;
7981 *) as_dir=$as_dir/ ;;
7982 esac
7983 for ac_exec_ext in '' $ac_executable_extensions; do
7984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7985 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7986 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7987 break 2
7988 fi
7989 done
7990 done
7991 IFS=$as_save_IFS
7992
7993 fi
7994 fi
7995 LIPO=$ac_cv_prog_LIPO
7996 if test -n "$LIPO"; then
7997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7998 printf "%s\n" "$LIPO" >&6; }
7999 else
8000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8001 printf "%s\n" "no" >&6; }
8002 fi
8003
8004
8005 fi
8006 if test -z "$ac_cv_prog_LIPO"; then
8007 ac_ct_LIPO=$LIPO
8008 # Extract the first word of "lipo", so it can be a program name with args.
8009 set dummy lipo; ac_word=$2
8010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8011 printf %s "checking for $ac_word... " >&6; }
8012 if test ${ac_cv_prog_ac_ct_LIPO+y}
8013 then :
8014 printf %s "(cached) " >&6
8015 else $as_nop
8016 if test -n "$ac_ct_LIPO"; then
8017 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8018 else
8019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020 for as_dir in $PATH
8021 do
8022 IFS=$as_save_IFS
8023 case $as_dir in #(((
8024 '') as_dir=./ ;;
8025 */) ;;
8026 *) as_dir=$as_dir/ ;;
8027 esac
8028 for ac_exec_ext in '' $ac_executable_extensions; do
8029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8030 ac_cv_prog_ac_ct_LIPO="lipo"
8031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8032 break 2
8033 fi
8034 done
8035 done
8036 IFS=$as_save_IFS
8037
8038 fi
8039 fi
8040 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8041 if test -n "$ac_ct_LIPO"; then
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8043 printf "%s\n" "$ac_ct_LIPO" >&6; }
8044 else
8045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 printf "%s\n" "no" >&6; }
8047 fi
8048
8049 if test "x$ac_ct_LIPO" = x; then
8050 LIPO=":"
8051 else
8052 case $cross_compiling:$ac_tool_warned in
8053 yes:)
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8055 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8056 ac_tool_warned=yes ;;
8057 esac
8058 LIPO=$ac_ct_LIPO
8059 fi
8060 else
8061 LIPO="$ac_cv_prog_LIPO"
8062 fi
8063
8064 if test -n "$ac_tool_prefix"; then
8065 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8066 set dummy ${ac_tool_prefix}otool; ac_word=$2
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8068 printf %s "checking for $ac_word... " >&6; }
8069 if test ${ac_cv_prog_OTOOL+y}
8070 then :
8071 printf %s "(cached) " >&6
8072 else $as_nop
8073 if test -n "$OTOOL"; then
8074 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8075 else
8076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8077 for as_dir in $PATH
8078 do
8079 IFS=$as_save_IFS
8080 case $as_dir in #(((
8081 '') as_dir=./ ;;
8082 */) ;;
8083 *) as_dir=$as_dir/ ;;
8084 esac
8085 for ac_exec_ext in '' $ac_executable_extensions; do
8086 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8087 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8088 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8089 break 2
8090 fi
8091 done
8092 done
8093 IFS=$as_save_IFS
8094
8095 fi
8096 fi
8097 OTOOL=$ac_cv_prog_OTOOL
8098 if test -n "$OTOOL"; then
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8100 printf "%s\n" "$OTOOL" >&6; }
8101 else
8102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8103 printf "%s\n" "no" >&6; }
8104 fi
8105
8106
8107 fi
8108 if test -z "$ac_cv_prog_OTOOL"; then
8109 ac_ct_OTOOL=$OTOOL
8110 # Extract the first word of "otool", so it can be a program name with args.
8111 set dummy otool; ac_word=$2
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 printf %s "checking for $ac_word... " >&6; }
8114 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else $as_nop
8118 if test -n "$ac_ct_OTOOL"; then
8119 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 case $as_dir in #(((
8126 '') as_dir=./ ;;
8127 */) ;;
8128 *) as_dir=$as_dir/ ;;
8129 esac
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_ac_ct_OTOOL="otool"
8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8143 if test -n "$ac_ct_OTOOL"; then
8144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8145 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8146 else
8147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 printf "%s\n" "no" >&6; }
8149 fi
8150
8151 if test "x$ac_ct_OTOOL" = x; then
8152 OTOOL=":"
8153 else
8154 case $cross_compiling:$ac_tool_warned in
8155 yes:)
8156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158 ac_tool_warned=yes ;;
8159 esac
8160 OTOOL=$ac_ct_OTOOL
8161 fi
8162 else
8163 OTOOL="$ac_cv_prog_OTOOL"
8164 fi
8165
8166 if test -n "$ac_tool_prefix"; then
8167 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8168 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8170 printf %s "checking for $ac_word... " >&6; }
8171 if test ${ac_cv_prog_OTOOL64+y}
8172 then :
8173 printf %s "(cached) " >&6
8174 else $as_nop
8175 if test -n "$OTOOL64"; then
8176 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181 IFS=$as_save_IFS
8182 case $as_dir in #(((
8183 '') as_dir=./ ;;
8184 */) ;;
8185 *) as_dir=$as_dir/ ;;
8186 esac
8187 for ac_exec_ext in '' $ac_executable_extensions; do
8188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8189 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8191 break 2
8192 fi
8193 done
8194 done
8195 IFS=$as_save_IFS
8196
8197 fi
8198 fi
8199 OTOOL64=$ac_cv_prog_OTOOL64
8200 if test -n "$OTOOL64"; then
8201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8202 printf "%s\n" "$OTOOL64" >&6; }
8203 else
8204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 printf "%s\n" "no" >&6; }
8206 fi
8207
8208
8209 fi
8210 if test -z "$ac_cv_prog_OTOOL64"; then
8211 ac_ct_OTOOL64=$OTOOL64
8212 # Extract the first word of "otool64", so it can be a program name with args.
8213 set dummy otool64; ac_word=$2
8214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8215 printf %s "checking for $ac_word... " >&6; }
8216 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8217 then :
8218 printf %s "(cached) " >&6
8219 else $as_nop
8220 if test -n "$ac_ct_OTOOL64"; then
8221 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8222 else
8223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8224 for as_dir in $PATH
8225 do
8226 IFS=$as_save_IFS
8227 case $as_dir in #(((
8228 '') as_dir=./ ;;
8229 */) ;;
8230 *) as_dir=$as_dir/ ;;
8231 esac
8232 for ac_exec_ext in '' $ac_executable_extensions; do
8233 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8234 ac_cv_prog_ac_ct_OTOOL64="otool64"
8235 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8236 break 2
8237 fi
8238 done
8239 done
8240 IFS=$as_save_IFS
8241
8242 fi
8243 fi
8244 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8245 if test -n "$ac_ct_OTOOL64"; then
8246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8247 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8248 else
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 printf "%s\n" "no" >&6; }
8251 fi
8252
8253 if test "x$ac_ct_OTOOL64" = x; then
8254 OTOOL64=":"
8255 else
8256 case $cross_compiling:$ac_tool_warned in
8257 yes:)
8258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8259 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8260 ac_tool_warned=yes ;;
8261 esac
8262 OTOOL64=$ac_ct_OTOOL64
8263 fi
8264 else
8265 OTOOL64="$ac_cv_prog_OTOOL64"
8266 fi
8267
8268
8269
8270
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280
8281
8282
8283
8284
8285
8286
8287
8288
8289
8290
8291
8292
8293
8294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8295 printf %s "checking for -single_module linker flag... " >&6; }
8296 if test ${lt_cv_apple_cc_single_mod+y}
8297 then :
8298 printf %s "(cached) " >&6
8299 else $as_nop
8300 lt_cv_apple_cc_single_mod=no
8301 if test -z "$LT_MULTI_MODULE"; then
8302 # By default we will add the -single_module flag. You can override
8303 # by either setting the environment variable LT_MULTI_MODULE
8304 # non-empty at configure time, or by adding -multi_module to the
8305 # link flags.
8306 rm -rf libconftest.dylib*
8307 echo "int foo(void){return 1;}" > conftest.c
8308 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8309 -dynamiclib -Wl,-single_module conftest.c" >&5
8310 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8311 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8312 _lt_result=$?
8313 # If there is a non-empty error log, and "single_module"
8314 # appears in it, assume the flag caused a linker warning
8315 if test -s conftest.err && $GREP single_module conftest.err; then
8316 cat conftest.err >&5
8317 # Otherwise, if the output was created with a 0 exit code from
8318 # the compiler, it worked.
8319 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8320 lt_cv_apple_cc_single_mod=yes
8321 else
8322 cat conftest.err >&5
8323 fi
8324 rm -rf libconftest.dylib*
8325 rm -f conftest.*
8326 fi
8327 fi
8328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8329 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8330
8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8332 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8333 if test ${lt_cv_ld_exported_symbols_list+y}
8334 then :
8335 printf %s "(cached) " >&6
8336 else $as_nop
8337 lt_cv_ld_exported_symbols_list=no
8338 save_LDFLAGS=$LDFLAGS
8339 echo "_main" > conftest.sym
8340 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8342 /* end confdefs.h. */
8343
8344 int
8345 main (void)
8346 {
8347
8348 ;
8349 return 0;
8350 }
8351 _ACEOF
8352 if ac_fn_c_try_link "$LINENO"
8353 then :
8354 lt_cv_ld_exported_symbols_list=yes
8355 else $as_nop
8356 lt_cv_ld_exported_symbols_list=no
8357 fi
8358 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8359 conftest$ac_exeext conftest.$ac_ext
8360 LDFLAGS=$save_LDFLAGS
8361
8362 fi
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8364 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8365
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8367 printf %s "checking for -force_load linker flag... " >&6; }
8368 if test ${lt_cv_ld_force_load+y}
8369 then :
8370 printf %s "(cached) " >&6
8371 else $as_nop
8372 lt_cv_ld_force_load=no
8373 cat > conftest.c << _LT_EOF
8374 int forced_loaded() { return 2;}
8375 _LT_EOF
8376 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8377 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8378 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8379 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8380 echo "$RANLIB libconftest.a" >&5
8381 $RANLIB libconftest.a 2>&5
8382 cat > conftest.c << _LT_EOF
8383 int main() { return 0;}
8384 _LT_EOF
8385 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8386 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8387 _lt_result=$?
8388 if test -s conftest.err && $GREP force_load conftest.err; then
8389 cat conftest.err >&5
8390 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8391 lt_cv_ld_force_load=yes
8392 else
8393 cat conftest.err >&5
8394 fi
8395 rm -f conftest.err libconftest.a conftest conftest.c
8396 rm -rf conftest.dSYM
8397
8398 fi
8399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8400 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8401 case $host_os in
8402 rhapsody* | darwin1.[012])
8403 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8404 darwin1.*)
8405 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8406 darwin*)
8407 case $MACOSX_DEPLOYMENT_TARGET,$host in
8408 10.[012],*|,*powerpc*-darwin[5-8]*)
8409 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8410 *)
8411 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8412 esac
8413 ;;
8414 esac
8415 if test yes = "$lt_cv_apple_cc_single_mod"; then
8416 _lt_dar_single_mod='$single_module'
8417 fi
8418 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8419 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8420 else
8421 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8422 fi
8423 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8424 _lt_dsymutil='~$DSYMUTIL $lib || :'
8425 else
8426 _lt_dsymutil=
8427 fi
8428 ;;
8429 esac
8430
8431 # func_munge_path_list VARIABLE PATH
8432 # -----------------------------------
8433 # VARIABLE is name of variable containing _space_ separated list of
8434 # directories to be munged by the contents of PATH, which is string
8435 # having a format:
8436 # "DIR[:DIR]:"
8437 # string "DIR[ DIR]" will be prepended to VARIABLE
8438 # ":DIR[:DIR]"
8439 # string "DIR[ DIR]" will be appended to VARIABLE
8440 # "DIRP[:DIRP]::[DIRA:]DIRA"
8441 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8442 # "DIRA[ DIRA]" will be appended to VARIABLE
8443 # "DIR[:DIR]"
8444 # VARIABLE will be replaced by "DIR[ DIR]"
8445 func_munge_path_list ()
8446 {
8447 case x$2 in
8448 x)
8449 ;;
8450 *:)
8451 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8452 ;;
8453 x:*)
8454 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8455 ;;
8456 *::*)
8457 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8458 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8459 ;;
8460 *)
8461 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8462 ;;
8463 esac
8464 }
8465
8466 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8467 "
8468 if test "x$ac_cv_header_dlfcn_h" = xyes
8469 then :
8470 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8471
8472 fi
8473
8474
8475
8476
8477
8478 # Set options
8479
8480
8481
8482 enable_dlopen=no
8483
8484
8485 enable_win32_dll=no
8486
8487
8488 # Check whether --enable-shared was given.
8489 if test ${enable_shared+y}
8490 then :
8491 enableval=$enable_shared; p=${PACKAGE-default}
8492 case $enableval in
8493 yes) enable_shared=yes ;;
8494 no) enable_shared=no ;;
8495 *)
8496 enable_shared=no
8497 # Look at the argument we got. We use all the common list separators.
8498 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8499 for pkg in $enableval; do
8500 IFS=$lt_save_ifs
8501 if test "X$pkg" = "X$p"; then
8502 enable_shared=yes
8503 fi
8504 done
8505 IFS=$lt_save_ifs
8506 ;;
8507 esac
8508 else $as_nop
8509 enable_shared=yes
8510 fi
8511
8512
8513
8514
8515
8516
8517
8518
8519
8520 # Check whether --enable-static was given.
8521 if test ${enable_static+y}
8522 then :
8523 enableval=$enable_static; p=${PACKAGE-default}
8524 case $enableval in
8525 yes) enable_static=yes ;;
8526 no) enable_static=no ;;
8527 *)
8528 enable_static=no
8529 # Look at the argument we got. We use all the common list separators.
8530 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8531 for pkg in $enableval; do
8532 IFS=$lt_save_ifs
8533 if test "X$pkg" = "X$p"; then
8534 enable_static=yes
8535 fi
8536 done
8537 IFS=$lt_save_ifs
8538 ;;
8539 esac
8540 else $as_nop
8541 enable_static=yes
8542 fi
8543
8544
8545
8546
8547
8548
8549
8550
8551
8552
8553 # Check whether --with-pic was given.
8554 if test ${with_pic+y}
8555 then :
8556 withval=$with_pic; lt_p=${PACKAGE-default}
8557 case $withval in
8558 yes|no) pic_mode=$withval ;;
8559 *)
8560 pic_mode=default
8561 # Look at the argument we got. We use all the common list separators.
8562 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8563 for lt_pkg in $withval; do
8564 IFS=$lt_save_ifs
8565 if test "X$lt_pkg" = "X$lt_p"; then
8566 pic_mode=yes
8567 fi
8568 done
8569 IFS=$lt_save_ifs
8570 ;;
8571 esac
8572 else $as_nop
8573 pic_mode=default
8574 fi
8575
8576
8577
8578
8579
8580
8581
8582
8583 # Check whether --enable-fast-install was given.
8584 if test ${enable_fast_install+y}
8585 then :
8586 enableval=$enable_fast_install; p=${PACKAGE-default}
8587 case $enableval in
8588 yes) enable_fast_install=yes ;;
8589 no) enable_fast_install=no ;;
8590 *)
8591 enable_fast_install=no
8592 # Look at the argument we got. We use all the common list separators.
8593 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8594 for pkg in $enableval; do
8595 IFS=$lt_save_ifs
8596 if test "X$pkg" = "X$p"; then
8597 enable_fast_install=yes
8598 fi
8599 done
8600 IFS=$lt_save_ifs
8601 ;;
8602 esac
8603 else $as_nop
8604 enable_fast_install=yes
8605 fi
8606
8607
8608
8609
8610
8611
8612
8613
8614 shared_archive_member_spec=
8615 case $host,$enable_shared in
8616 power*-*-aix[5-9]*,yes)
8617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8618 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8619
8620 # Check whether --with-aix-soname was given.
8621 if test ${with_aix_soname+y}
8622 then :
8623 withval=$with_aix_soname; case $withval in
8624 aix|svr4|both)
8625 ;;
8626 *)
8627 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8628 ;;
8629 esac
8630 lt_cv_with_aix_soname=$with_aix_soname
8631 else $as_nop
8632 if test ${lt_cv_with_aix_soname+y}
8633 then :
8634 printf %s "(cached) " >&6
8635 else $as_nop
8636 lt_cv_with_aix_soname=aix
8637 fi
8638
8639 with_aix_soname=$lt_cv_with_aix_soname
8640 fi
8641
8642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8643 printf "%s\n" "$with_aix_soname" >&6; }
8644 if test aix != "$with_aix_soname"; then
8645 # For the AIX way of multilib, we name the shared archive member
8646 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8647 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8648 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8649 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8650 if test 64 = "${OBJECT_MODE-32}"; then
8651 shared_archive_member_spec=shr_64
8652 else
8653 shared_archive_member_spec=shr
8654 fi
8655 fi
8656 ;;
8657 *)
8658 with_aix_soname=aix
8659 ;;
8660 esac
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671 # This can be used to rebuild libtool when needed
8672 LIBTOOL_DEPS=$ltmain
8673
8674 # Always use our own libtool.
8675 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8676
8677
8678
8679
8680
8681
8682
8683
8684
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 test -z "$LN_S" && LN_S="ln -s"
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717
8718
8719
8720
8721 if test -n "${ZSH_VERSION+set}"; then
8722 setopt NO_GLOB_SUBST
8723 fi
8724
8725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8726 printf %s "checking for objdir... " >&6; }
8727 if test ${lt_cv_objdir+y}
8728 then :
8729 printf %s "(cached) " >&6
8730 else $as_nop
8731 rm -f .libs 2>/dev/null
8732 mkdir .libs 2>/dev/null
8733 if test -d .libs; then
8734 lt_cv_objdir=.libs
8735 else
8736 # MS-DOS does not allow filenames that begin with a dot.
8737 lt_cv_objdir=_libs
8738 fi
8739 rmdir .libs 2>/dev/null
8740 fi
8741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8742 printf "%s\n" "$lt_cv_objdir" >&6; }
8743 objdir=$lt_cv_objdir
8744
8745
8746
8747
8748
8749 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
8750
8751
8752
8753
8754 case $host_os in
8755 aix3*)
8756 # AIX sometimes has problems with the GCC collect2 program. For some
8757 # reason, if we set the COLLECT_NAMES environment variable, the problems
8758 # vanish in a puff of smoke.
8759 if test set != "${COLLECT_NAMES+set}"; then
8760 COLLECT_NAMES=
8761 export COLLECT_NAMES
8762 fi
8763 ;;
8764 esac
8765
8766 # Global variables:
8767 ofile=libtool
8768 can_build_shared=yes
8769
8770 # All known linkers require a '.a' archive for static linking (except MSVC and
8771 # ICC, which need '.lib').
8772 libext=a
8773
8774 with_gnu_ld=$lt_cv_prog_gnu_ld
8775
8776 old_CC=$CC
8777 old_CFLAGS=$CFLAGS
8778
8779 # Set sane defaults for various variables
8780 test -z "$CC" && CC=cc
8781 test -z "$LTCC" && LTCC=$CC
8782 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8783 test -z "$LD" && LD=ld
8784 test -z "$ac_objext" && ac_objext=o
8785
8786 func_cc_basename $compiler
8787 cc_basename=$func_cc_basename_result
8788
8789
8790 # Only perform the check for file, if the check method requires it
8791 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8792 case $deplibs_check_method in
8793 file_magic*)
8794 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8796 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
8797 if test ${lt_cv_path_MAGIC_CMD+y}
8798 then :
8799 printf %s "(cached) " >&6
8800 else $as_nop
8801 case $MAGIC_CMD in
8802 [\\/*] | ?:[\\/]*)
8803 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8804 ;;
8805 *)
8806 lt_save_MAGIC_CMD=$MAGIC_CMD
8807 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8808 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8809 for ac_dir in $ac_dummy; do
8810 IFS=$lt_save_ifs
8811 test -z "$ac_dir" && ac_dir=.
8812 if test -f "$ac_dir/${ac_tool_prefix}file"; then
8813 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
8814 if test -n "$file_magic_test_file"; then
8815 case $deplibs_check_method in
8816 "file_magic "*)
8817 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8818 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8819 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8820 $EGREP "$file_magic_regex" > /dev/null; then
8821 :
8822 else
8823 cat <<_LT_EOF 1>&2
8824
8825 *** Warning: the command libtool uses to detect shared libraries,
8826 *** $file_magic_cmd, produces output that libtool cannot recognize.
8827 *** The result is that libtool may fail to recognize shared libraries
8828 *** as such. This will affect the creation of libtool libraries that
8829 *** depend on shared libraries, but programs linked with such libtool
8830 *** libraries will work regardless of this problem. Nevertheless, you
8831 *** may want to report the problem to your system manager and/or to
8832 *** bug-libtool@gnu.org
8833
8834 _LT_EOF
8835 fi ;;
8836 esac
8837 fi
8838 break
8839 fi
8840 done
8841 IFS=$lt_save_ifs
8842 MAGIC_CMD=$lt_save_MAGIC_CMD
8843 ;;
8844 esac
8845 fi
8846
8847 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8848 if test -n "$MAGIC_CMD"; then
8849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8850 printf "%s\n" "$MAGIC_CMD" >&6; }
8851 else
8852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8853 printf "%s\n" "no" >&6; }
8854 fi
8855
8856
8857
8858
8859
8860 if test -z "$lt_cv_path_MAGIC_CMD"; then
8861 if test -n "$ac_tool_prefix"; then
8862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8863 printf %s "checking for file... " >&6; }
8864 if test ${lt_cv_path_MAGIC_CMD+y}
8865 then :
8866 printf %s "(cached) " >&6
8867 else $as_nop
8868 case $MAGIC_CMD in
8869 [\\/*] | ?:[\\/]*)
8870 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
8871 ;;
8872 *)
8873 lt_save_MAGIC_CMD=$MAGIC_CMD
8874 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8875 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8876 for ac_dir in $ac_dummy; do
8877 IFS=$lt_save_ifs
8878 test -z "$ac_dir" && ac_dir=.
8879 if test -f "$ac_dir/file"; then
8880 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
8881 if test -n "$file_magic_test_file"; then
8882 case $deplibs_check_method in
8883 "file_magic "*)
8884 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8885 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8886 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8887 $EGREP "$file_magic_regex" > /dev/null; then
8888 :
8889 else
8890 cat <<_LT_EOF 1>&2
8891
8892 *** Warning: the command libtool uses to detect shared libraries,
8893 *** $file_magic_cmd, produces output that libtool cannot recognize.
8894 *** The result is that libtool may fail to recognize shared libraries
8895 *** as such. This will affect the creation of libtool libraries that
8896 *** depend on shared libraries, but programs linked with such libtool
8897 *** libraries will work regardless of this problem. Nevertheless, you
8898 *** may want to report the problem to your system manager and/or to
8899 *** bug-libtool@gnu.org
8900
8901 _LT_EOF
8902 fi ;;
8903 esac
8904 fi
8905 break
8906 fi
8907 done
8908 IFS=$lt_save_ifs
8909 MAGIC_CMD=$lt_save_MAGIC_CMD
8910 ;;
8911 esac
8912 fi
8913
8914 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
8915 if test -n "$MAGIC_CMD"; then
8916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8917 printf "%s\n" "$MAGIC_CMD" >&6; }
8918 else
8919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8920 printf "%s\n" "no" >&6; }
8921 fi
8922
8923
8924 else
8925 MAGIC_CMD=:
8926 fi
8927 fi
8928
8929 fi
8930 ;;
8931 esac
8932
8933 # Use C for the default configuration in the libtool script
8934
8935 lt_save_CC=$CC
8936 ac_ext=c
8937 ac_cpp='$CPP $CPPFLAGS'
8938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8941
8942
8943 # Source file extension for C test sources.
8944 ac_ext=c
8945
8946 # Object file extension for compiled C test sources.
8947 objext=o
8948 objext=$objext
8949
8950 # Code to be used in simple compile tests
8951 lt_simple_compile_test_code="int some_variable = 0;"
8952
8953 # Code to be used in simple link tests
8954 lt_simple_link_test_code='int main(){return(0);}'
8955
8956
8957
8958
8959
8960
8961
8962 # If no C compiler was specified, use CC.
8963 LTCC=${LTCC-"$CC"}
8964
8965 # If no C compiler flags were specified, use CFLAGS.
8966 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8967
8968 # Allow CC to be a program name with arguments.
8969 compiler=$CC
8970
8971 # Save the default compiler, since it gets overwritten when the other
8972 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8973 compiler_DEFAULT=$CC
8974
8975 # save warnings/boilerplate of simple test code
8976 ac_outfile=conftest.$ac_objext
8977 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8979 _lt_compiler_boilerplate=`cat conftest.err`
8980 $RM conftest*
8981
8982 ac_outfile=conftest.$ac_objext
8983 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8985 _lt_linker_boilerplate=`cat conftest.err`
8986 $RM -r conftest*
8987
8988
8989 if test -n "$compiler"; then
8990
8991 lt_prog_compiler_no_builtin_flag=
8992
8993 if test yes = "$GCC"; then
8994 case $cc_basename in
8995 nvcc*)
8996 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8997 *)
8998 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8999 esac
9000
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9002 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9003 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9004 then :
9005 printf %s "(cached) " >&6
9006 else $as_nop
9007 lt_cv_prog_compiler_rtti_exceptions=no
9008 ac_outfile=conftest.$ac_objext
9009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9010 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9011 # Insert the option either (1) after the last *FLAGS variable, or
9012 # (2) before a word containing "conftest.", or (3) at the end.
9013 # Note that $ac_compile itself does not contain backslashes and begins
9014 # with a dollar sign (not a hyphen), so the echo should work correctly.
9015 # The option is referenced via a variable to avoid confusing sed.
9016 lt_compile=`echo "$ac_compile" | $SED \
9017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9019 -e 's:$: $lt_compiler_flag:'`
9020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9021 (eval "$lt_compile" 2>conftest.err)
9022 ac_status=$?
9023 cat conftest.err >&5
9024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9025 if (exit $ac_status) && test -s "$ac_outfile"; then
9026 # The compiler can only warn and ignore the option if not recognized
9027 # So say no if there are warnings other than the usual output.
9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9029 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9030 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9031 lt_cv_prog_compiler_rtti_exceptions=yes
9032 fi
9033 fi
9034 $RM conftest*
9035
9036 fi
9037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9038 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9039
9040 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9041 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9042 else
9043 :
9044 fi
9045
9046 fi
9047
9048
9049
9050
9051
9052
9053 lt_prog_compiler_wl=
9054 lt_prog_compiler_pic=
9055 lt_prog_compiler_static=
9056
9057
9058 if test yes = "$GCC"; then
9059 lt_prog_compiler_wl='-Wl,'
9060 lt_prog_compiler_static='-static'
9061
9062 case $host_os in
9063 aix*)
9064 # All AIX code is PIC.
9065 if test ia64 = "$host_cpu"; then
9066 # AIX 5 now supports IA64 processor
9067 lt_prog_compiler_static='-Bstatic'
9068 fi
9069 lt_prog_compiler_pic='-fPIC'
9070 ;;
9071
9072 amigaos*)
9073 case $host_cpu in
9074 powerpc)
9075 # see comment about AmigaOS4 .so support
9076 lt_prog_compiler_pic='-fPIC'
9077 ;;
9078 m68k)
9079 # FIXME: we need at least 68020 code to build shared libraries, but
9080 # adding the '-m68020' flag to GCC prevents building anything better,
9081 # like '-m68040'.
9082 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9083 ;;
9084 esac
9085 ;;
9086
9087 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9088 # PIC is the default for these OSes.
9089 ;;
9090
9091 mingw* | cygwin* | pw32* | os2* | cegcc*)
9092 # This hack is so that the source file can tell whether it is being
9093 # built for inclusion in a dll (and should export symbols for example).
9094 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9095 # (--disable-auto-import) libraries
9096 lt_prog_compiler_pic='-DDLL_EXPORT'
9097 case $host_os in
9098 os2*)
9099 lt_prog_compiler_static='$wl-static'
9100 ;;
9101 esac
9102 ;;
9103
9104 darwin* | rhapsody*)
9105 # PIC is the default on this platform
9106 # Common symbols not allowed in MH_DYLIB files
9107 lt_prog_compiler_pic='-fno-common'
9108 ;;
9109
9110 haiku*)
9111 # PIC is the default for Haiku.
9112 # The "-static" flag exists, but is broken.
9113 lt_prog_compiler_static=
9114 ;;
9115
9116 hpux*)
9117 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9118 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9119 # sets the default TLS model and affects inlining.
9120 case $host_cpu in
9121 hppa*64*)
9122 # +Z the default
9123 ;;
9124 *)
9125 lt_prog_compiler_pic='-fPIC'
9126 ;;
9127 esac
9128 ;;
9129
9130 interix[3-9]*)
9131 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9132 # Instead, we relocate shared libraries at runtime.
9133 ;;
9134
9135 msdosdjgpp*)
9136 # Just because we use GCC doesn't mean we suddenly get shared libraries
9137 # on systems that don't support them.
9138 lt_prog_compiler_can_build_shared=no
9139 enable_shared=no
9140 ;;
9141
9142 *nto* | *qnx*)
9143 # QNX uses GNU C++, but need to define -shared option too, otherwise
9144 # it will coredump.
9145 lt_prog_compiler_pic='-fPIC -shared'
9146 ;;
9147
9148 sysv4*MP*)
9149 if test -d /usr/nec; then
9150 lt_prog_compiler_pic=-Kconform_pic
9151 fi
9152 ;;
9153
9154 *)
9155 lt_prog_compiler_pic='-fPIC'
9156 ;;
9157 esac
9158
9159 case $cc_basename in
9160 nvcc*) # Cuda Compiler Driver 2.2
9161 lt_prog_compiler_wl='-Xlinker '
9162 if test -n "$lt_prog_compiler_pic"; then
9163 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9164 fi
9165 ;;
9166 esac
9167 else
9168 # PORTME Check for flag to pass linker flags through the system compiler.
9169 case $host_os in
9170 aix*)
9171 lt_prog_compiler_wl='-Wl,'
9172 if test ia64 = "$host_cpu"; then
9173 # AIX 5 now supports IA64 processor
9174 lt_prog_compiler_static='-Bstatic'
9175 else
9176 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9177 fi
9178 ;;
9179
9180 darwin* | rhapsody*)
9181 # PIC is the default on this platform
9182 # Common symbols not allowed in MH_DYLIB files
9183 lt_prog_compiler_pic='-fno-common'
9184 case $cc_basename in
9185 nagfor*)
9186 # NAG Fortran compiler
9187 lt_prog_compiler_wl='-Wl,-Wl,,'
9188 lt_prog_compiler_pic='-PIC'
9189 lt_prog_compiler_static='-Bstatic'
9190 ;;
9191 esac
9192 ;;
9193
9194 mingw* | cygwin* | pw32* | os2* | cegcc*)
9195 # This hack is so that the source file can tell whether it is being
9196 # built for inclusion in a dll (and should export symbols for example).
9197 lt_prog_compiler_pic='-DDLL_EXPORT'
9198 case $host_os in
9199 os2*)
9200 lt_prog_compiler_static='$wl-static'
9201 ;;
9202 esac
9203 ;;
9204
9205 hpux9* | hpux10* | hpux11*)
9206 lt_prog_compiler_wl='-Wl,'
9207 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9208 # not for PA HP-UX.
9209 case $host_cpu in
9210 hppa*64*|ia64*)
9211 # +Z the default
9212 ;;
9213 *)
9214 lt_prog_compiler_pic='+Z'
9215 ;;
9216 esac
9217 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9218 lt_prog_compiler_static='$wl-a ${wl}archive'
9219 ;;
9220
9221 irix5* | irix6* | nonstopux*)
9222 lt_prog_compiler_wl='-Wl,'
9223 # PIC (with -KPIC) is the default.
9224 lt_prog_compiler_static='-non_shared'
9225 ;;
9226
9227 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9228 case $cc_basename in
9229 # old Intel for x86_64, which still supported -KPIC.
9230 ecc*)
9231 lt_prog_compiler_wl='-Wl,'
9232 lt_prog_compiler_pic='-KPIC'
9233 lt_prog_compiler_static='-static'
9234 ;;
9235 # icc used to be incompatible with GCC.
9236 # ICC 10 doesn't accept -KPIC any more.
9237 icc* | ifort*)
9238 lt_prog_compiler_wl='-Wl,'
9239 lt_prog_compiler_pic='-fPIC'
9240 lt_prog_compiler_static='-static'
9241 ;;
9242 # Lahey Fortran 8.1.
9243 lf95*)
9244 lt_prog_compiler_wl='-Wl,'
9245 lt_prog_compiler_pic='--shared'
9246 lt_prog_compiler_static='--static'
9247 ;;
9248 nagfor*)
9249 # NAG Fortran compiler
9250 lt_prog_compiler_wl='-Wl,-Wl,,'
9251 lt_prog_compiler_pic='-PIC'
9252 lt_prog_compiler_static='-Bstatic'
9253 ;;
9254 tcc*)
9255 # Fabrice Bellard et al's Tiny C Compiler
9256 lt_prog_compiler_wl='-Wl,'
9257 lt_prog_compiler_pic='-fPIC'
9258 lt_prog_compiler_static='-static'
9259 ;;
9260 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9261 # Portland Group compilers (*not* the Pentium gcc compiler,
9262 # which looks to be a dead project)
9263 lt_prog_compiler_wl='-Wl,'
9264 lt_prog_compiler_pic='-fpic'
9265 lt_prog_compiler_static='-Bstatic'
9266 ;;
9267 ccc*)
9268 lt_prog_compiler_wl='-Wl,'
9269 # All Alpha code is PIC.
9270 lt_prog_compiler_static='-non_shared'
9271 ;;
9272 xl* | bgxl* | bgf* | mpixl*)
9273 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_pic='-qpic'
9276 lt_prog_compiler_static='-qstaticlink'
9277 ;;
9278 *)
9279 case `$CC -V 2>&1 | $SED 5q` in
9280 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9281 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9282 lt_prog_compiler_pic='-KPIC'
9283 lt_prog_compiler_static='-Bstatic'
9284 lt_prog_compiler_wl=''
9285 ;;
9286 *Sun\ F* | *Sun*Fortran*)
9287 lt_prog_compiler_pic='-KPIC'
9288 lt_prog_compiler_static='-Bstatic'
9289 lt_prog_compiler_wl='-Qoption ld '
9290 ;;
9291 *Sun\ C*)
9292 # Sun C 5.9
9293 lt_prog_compiler_pic='-KPIC'
9294 lt_prog_compiler_static='-Bstatic'
9295 lt_prog_compiler_wl='-Wl,'
9296 ;;
9297 *Intel*\ [CF]*Compiler*)
9298 lt_prog_compiler_wl='-Wl,'
9299 lt_prog_compiler_pic='-fPIC'
9300 lt_prog_compiler_static='-static'
9301 ;;
9302 *Portland\ Group*)
9303 lt_prog_compiler_wl='-Wl,'
9304 lt_prog_compiler_pic='-fpic'
9305 lt_prog_compiler_static='-Bstatic'
9306 ;;
9307 esac
9308 ;;
9309 esac
9310 ;;
9311
9312 newsos6)
9313 lt_prog_compiler_pic='-KPIC'
9314 lt_prog_compiler_static='-Bstatic'
9315 ;;
9316
9317 *nto* | *qnx*)
9318 # QNX uses GNU C++, but need to define -shared option too, otherwise
9319 # it will coredump.
9320 lt_prog_compiler_pic='-fPIC -shared'
9321 ;;
9322
9323 osf3* | osf4* | osf5*)
9324 lt_prog_compiler_wl='-Wl,'
9325 # All OSF/1 code is PIC.
9326 lt_prog_compiler_static='-non_shared'
9327 ;;
9328
9329 rdos*)
9330 lt_prog_compiler_static='-non_shared'
9331 ;;
9332
9333 solaris*)
9334 lt_prog_compiler_pic='-KPIC'
9335 lt_prog_compiler_static='-Bstatic'
9336 case $cc_basename in
9337 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9338 lt_prog_compiler_wl='-Qoption ld ';;
9339 *)
9340 lt_prog_compiler_wl='-Wl,';;
9341 esac
9342 ;;
9343
9344 sunos4*)
9345 lt_prog_compiler_wl='-Qoption ld '
9346 lt_prog_compiler_pic='-PIC'
9347 lt_prog_compiler_static='-Bstatic'
9348 ;;
9349
9350 sysv4 | sysv4.2uw2* | sysv4.3*)
9351 lt_prog_compiler_wl='-Wl,'
9352 lt_prog_compiler_pic='-KPIC'
9353 lt_prog_compiler_static='-Bstatic'
9354 ;;
9355
9356 sysv4*MP*)
9357 if test -d /usr/nec; then
9358 lt_prog_compiler_pic='-Kconform_pic'
9359 lt_prog_compiler_static='-Bstatic'
9360 fi
9361 ;;
9362
9363 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9364 lt_prog_compiler_wl='-Wl,'
9365 lt_prog_compiler_pic='-KPIC'
9366 lt_prog_compiler_static='-Bstatic'
9367 ;;
9368
9369 unicos*)
9370 lt_prog_compiler_wl='-Wl,'
9371 lt_prog_compiler_can_build_shared=no
9372 ;;
9373
9374 uts4*)
9375 lt_prog_compiler_pic='-pic'
9376 lt_prog_compiler_static='-Bstatic'
9377 ;;
9378
9379 *)
9380 lt_prog_compiler_can_build_shared=no
9381 ;;
9382 esac
9383 fi
9384
9385 case $host_os in
9386 # For platforms that do not support PIC, -DPIC is meaningless:
9387 *djgpp*)
9388 lt_prog_compiler_pic=
9389 ;;
9390 *)
9391 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9392 ;;
9393 esac
9394
9395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9396 printf %s "checking for $compiler option to produce PIC... " >&6; }
9397 if test ${lt_cv_prog_compiler_pic+y}
9398 then :
9399 printf %s "(cached) " >&6
9400 else $as_nop
9401 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9402 fi
9403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9404 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9405 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9406
9407 #
9408 # Check to make sure the PIC flag actually works.
9409 #
9410 if test -n "$lt_prog_compiler_pic"; then
9411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9412 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9413 if test ${lt_cv_prog_compiler_pic_works+y}
9414 then :
9415 printf %s "(cached) " >&6
9416 else $as_nop
9417 lt_cv_prog_compiler_pic_works=no
9418 ac_outfile=conftest.$ac_objext
9419 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9420 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9421 # Insert the option either (1) after the last *FLAGS variable, or
9422 # (2) before a word containing "conftest.", or (3) at the end.
9423 # Note that $ac_compile itself does not contain backslashes and begins
9424 # with a dollar sign (not a hyphen), so the echo should work correctly.
9425 # The option is referenced via a variable to avoid confusing sed.
9426 lt_compile=`echo "$ac_compile" | $SED \
9427 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9428 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9429 -e 's:$: $lt_compiler_flag:'`
9430 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9431 (eval "$lt_compile" 2>conftest.err)
9432 ac_status=$?
9433 cat conftest.err >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 if (exit $ac_status) && test -s "$ac_outfile"; then
9436 # The compiler can only warn and ignore the option if not recognized
9437 # So say no if there are warnings other than the usual output.
9438 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9439 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9440 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9441 lt_cv_prog_compiler_pic_works=yes
9442 fi
9443 fi
9444 $RM conftest*
9445
9446 fi
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9448 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9449
9450 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9451 case $lt_prog_compiler_pic in
9452 "" | " "*) ;;
9453 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9454 esac
9455 else
9456 lt_prog_compiler_pic=
9457 lt_prog_compiler_can_build_shared=no
9458 fi
9459
9460 fi
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471
9472 #
9473 # Check to make sure the static flag actually works.
9474 #
9475 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9477 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9478 if test ${lt_cv_prog_compiler_static_works+y}
9479 then :
9480 printf %s "(cached) " >&6
9481 else $as_nop
9482 lt_cv_prog_compiler_static_works=no
9483 save_LDFLAGS=$LDFLAGS
9484 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9485 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9486 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9487 # The linker can only warn and ignore the option if not recognized
9488 # So say no if there are warnings
9489 if test -s conftest.err; then
9490 # Append any errors to the config.log.
9491 cat conftest.err 1>&5
9492 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9493 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9494 if diff conftest.exp conftest.er2 >/dev/null; then
9495 lt_cv_prog_compiler_static_works=yes
9496 fi
9497 else
9498 lt_cv_prog_compiler_static_works=yes
9499 fi
9500 fi
9501 $RM -r conftest*
9502 LDFLAGS=$save_LDFLAGS
9503
9504 fi
9505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9506 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9507
9508 if test yes = "$lt_cv_prog_compiler_static_works"; then
9509 :
9510 else
9511 lt_prog_compiler_static=
9512 fi
9513
9514
9515
9516
9517
9518
9519
9520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9521 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9522 if test ${lt_cv_prog_compiler_c_o+y}
9523 then :
9524 printf %s "(cached) " >&6
9525 else $as_nop
9526 lt_cv_prog_compiler_c_o=no
9527 $RM -r conftest 2>/dev/null
9528 mkdir conftest
9529 cd conftest
9530 mkdir out
9531 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9532
9533 lt_compiler_flag="-o out/conftest2.$ac_objext"
9534 # Insert the option either (1) after the last *FLAGS variable, or
9535 # (2) before a word containing "conftest.", or (3) at the end.
9536 # Note that $ac_compile itself does not contain backslashes and begins
9537 # with a dollar sign (not a hyphen), so the echo should work correctly.
9538 lt_compile=`echo "$ac_compile" | $SED \
9539 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9540 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9541 -e 's:$: $lt_compiler_flag:'`
9542 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9543 (eval "$lt_compile" 2>out/conftest.err)
9544 ac_status=$?
9545 cat out/conftest.err >&5
9546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9547 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9548 then
9549 # The compiler can only warn and ignore the option if not recognized
9550 # So say no if there are warnings
9551 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9552 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9553 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9554 lt_cv_prog_compiler_c_o=yes
9555 fi
9556 fi
9557 chmod u+w . 2>&5
9558 $RM conftest*
9559 # SGI C++ compiler will create directory out/ii_files/ for
9560 # template instantiation
9561 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9562 $RM out/* && rmdir out
9563 cd ..
9564 $RM -r conftest
9565 $RM conftest*
9566
9567 fi
9568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9569 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9570
9571
9572
9573
9574
9575
9576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9577 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9578 if test ${lt_cv_prog_compiler_c_o+y}
9579 then :
9580 printf %s "(cached) " >&6
9581 else $as_nop
9582 lt_cv_prog_compiler_c_o=no
9583 $RM -r conftest 2>/dev/null
9584 mkdir conftest
9585 cd conftest
9586 mkdir out
9587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9588
9589 lt_compiler_flag="-o out/conftest2.$ac_objext"
9590 # Insert the option either (1) after the last *FLAGS variable, or
9591 # (2) before a word containing "conftest.", or (3) at the end.
9592 # Note that $ac_compile itself does not contain backslashes and begins
9593 # with a dollar sign (not a hyphen), so the echo should work correctly.
9594 lt_compile=`echo "$ac_compile" | $SED \
9595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9597 -e 's:$: $lt_compiler_flag:'`
9598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9599 (eval "$lt_compile" 2>out/conftest.err)
9600 ac_status=$?
9601 cat out/conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9604 then
9605 # The compiler can only warn and ignore the option if not recognized
9606 # So say no if there are warnings
9607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9610 lt_cv_prog_compiler_c_o=yes
9611 fi
9612 fi
9613 chmod u+w . 2>&5
9614 $RM conftest*
9615 # SGI C++ compiler will create directory out/ii_files/ for
9616 # template instantiation
9617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9618 $RM out/* && rmdir out
9619 cd ..
9620 $RM -r conftest
9621 $RM conftest*
9622
9623 fi
9624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9625 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9626
9627
9628
9629
9630 hard_links=nottested
9631 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9632 # do not overwrite the value of need_locks provided by the user
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9634 printf %s "checking if we can lock with hard links... " >&6; }
9635 hard_links=yes
9636 $RM conftest*
9637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9638 touch conftest.a
9639 ln conftest.a conftest.b 2>&5 || hard_links=no
9640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9642 printf "%s\n" "$hard_links" >&6; }
9643 if test no = "$hard_links"; then
9644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9645 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9646 need_locks=warn
9647 fi
9648 else
9649 need_locks=no
9650 fi
9651
9652
9653
9654
9655
9656
9657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9658 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9659
9660 runpath_var=
9661 allow_undefined_flag=
9662 always_export_symbols=no
9663 archive_cmds=
9664 archive_expsym_cmds=
9665 compiler_needs_object=no
9666 enable_shared_with_static_runtimes=no
9667 export_dynamic_flag_spec=
9668 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9669 hardcode_automatic=no
9670 hardcode_direct=no
9671 hardcode_direct_absolute=no
9672 hardcode_libdir_flag_spec=
9673 hardcode_libdir_separator=
9674 hardcode_minus_L=no
9675 hardcode_shlibpath_var=unsupported
9676 inherit_rpath=no
9677 link_all_deplibs=unknown
9678 module_cmds=
9679 module_expsym_cmds=
9680 old_archive_from_new_cmds=
9681 old_archive_from_expsyms_cmds=
9682 thread_safe_flag_spec=
9683 whole_archive_flag_spec=
9684 # include_expsyms should be a list of space-separated symbols to be *always*
9685 # included in the symbol list
9686 include_expsyms=
9687 # exclude_expsyms can be an extended regexp of symbols to exclude
9688 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9689 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9690 # as well as any symbol that contains 'd'.
9691 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9692 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9693 # platforms (ab)use it in PIC code, but their linkers get confused if
9694 # the symbol is explicitly referenced. Since portable code cannot
9695 # rely on this symbol name, it's probably fine to never include it in
9696 # preloaded symbol tables.
9697 # Exclude shared library initialization/finalization symbols.
9698 extract_expsyms_cmds=
9699
9700 case $host_os in
9701 cygwin* | mingw* | pw32* | cegcc*)
9702 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9703 # When not using gcc, we currently assume that we are using
9704 # Microsoft Visual C++ or Intel C++ Compiler.
9705 if test yes != "$GCC"; then
9706 with_gnu_ld=no
9707 fi
9708 ;;
9709 interix*)
9710 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9711 with_gnu_ld=yes
9712 ;;
9713 openbsd* | bitrig*)
9714 with_gnu_ld=no
9715 ;;
9716 esac
9717
9718 ld_shlibs=yes
9719
9720 # On some targets, GNU ld is compatible enough with the native linker
9721 # that we're better off using the native interface for both.
9722 lt_use_gnu_ld_interface=no
9723 if test yes = "$with_gnu_ld"; then
9724 case $host_os in
9725 aix*)
9726 # The AIX port of GNU ld has always aspired to compatibility
9727 # with the native linker. However, as the warning in the GNU ld
9728 # block says, versions before 2.19.5* couldn't really create working
9729 # shared libraries, regardless of the interface used.
9730 case `$LD -v 2>&1` in
9731 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9732 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9733 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9734 *)
9735 lt_use_gnu_ld_interface=yes
9736 ;;
9737 esac
9738 ;;
9739 *)
9740 lt_use_gnu_ld_interface=yes
9741 ;;
9742 esac
9743 fi
9744
9745 if test yes = "$lt_use_gnu_ld_interface"; then
9746 # If archive_cmds runs LD, not CC, wlarc should be empty
9747 wlarc='$wl'
9748
9749 # Set some defaults for GNU ld with shared library support. These
9750 # are reset later if shared libraries are not supported. Putting them
9751 # here allows them to be overridden if necessary.
9752 runpath_var=LD_RUN_PATH
9753 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9754 export_dynamic_flag_spec='$wl--export-dynamic'
9755 # ancient GNU ld didn't support --whole-archive et. al.
9756 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9757 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
9758 else
9759 whole_archive_flag_spec=
9760 fi
9761 supports_anon_versioning=no
9762 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
9763 *GNU\ gold*) supports_anon_versioning=yes ;;
9764 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9765 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9766 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9767 *\ 2.11.*) ;; # other 2.11 versions
9768 *) supports_anon_versioning=yes ;;
9769 esac
9770
9771 # See if GNU ld supports shared libraries.
9772 case $host_os in
9773 aix[3-9]*)
9774 # On AIX/PPC, the GNU linker is very broken
9775 if test ia64 != "$host_cpu"; then
9776 ld_shlibs=no
9777 cat <<_LT_EOF 1>&2
9778
9779 *** Warning: the GNU linker, at least up to release 2.19, is reported
9780 *** to be unable to reliably create shared libraries on AIX.
9781 *** Therefore, libtool is disabling shared libraries support. If you
9782 *** really care for shared libraries, you may want to install binutils
9783 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9784 *** You will then need to restart the configuration process.
9785
9786 _LT_EOF
9787 fi
9788 ;;
9789
9790 amigaos*)
9791 case $host_cpu in
9792 powerpc)
9793 # see comment about AmigaOS4 .so support
9794 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9795 archive_expsym_cmds=''
9796 ;;
9797 m68k)
9798 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)'
9799 hardcode_libdir_flag_spec='-L$libdir'
9800 hardcode_minus_L=yes
9801 ;;
9802 esac
9803 ;;
9804
9805 beos*)
9806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807 allow_undefined_flag=unsupported
9808 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9809 # support --undefined. This deserves some investigation. FIXME
9810 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9811 else
9812 ld_shlibs=no
9813 fi
9814 ;;
9815
9816 cygwin* | mingw* | pw32* | cegcc*)
9817 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9818 # as there is no search path for DLLs.
9819 hardcode_libdir_flag_spec='-L$libdir'
9820 export_dynamic_flag_spec='$wl--export-all-symbols'
9821 allow_undefined_flag=unsupported
9822 always_export_symbols=no
9823 enable_shared_with_static_runtimes=yes
9824 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'
9825 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9826
9827 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9828 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9829 # If the export-symbols file already is a .def file, use it as
9830 # is; otherwise, prepend EXPORTS...
9831 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
9832 cp $export_symbols $output_objdir/$soname.def;
9833 else
9834 echo EXPORTS > $output_objdir/$soname.def;
9835 cat $export_symbols >> $output_objdir/$soname.def;
9836 fi~
9837 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9838 else
9839 ld_shlibs=no
9840 fi
9841 ;;
9842
9843 haiku*)
9844 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9845 link_all_deplibs=yes
9846 ;;
9847
9848 os2*)
9849 hardcode_libdir_flag_spec='-L$libdir'
9850 hardcode_minus_L=yes
9851 allow_undefined_flag=unsupported
9852 shrext_cmds=.dll
9853 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9854 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9855 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9856 $ECHO EXPORTS >> $output_objdir/$libname.def~
9857 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
9858 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9859 emximp -o $lib $output_objdir/$libname.def'
9860 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
9861 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
9862 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
9863 $ECHO EXPORTS >> $output_objdir/$libname.def~
9864 prefix_cmds="$SED"~
9865 if test EXPORTS = "`$SED 1q $export_symbols`"; then
9866 prefix_cmds="$prefix_cmds -e 1d";
9867 fi~
9868 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
9869 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
9870 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
9871 emximp -o $lib $output_objdir/$libname.def'
9872 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
9873 enable_shared_with_static_runtimes=yes
9874 file_list_spec='@'
9875 ;;
9876
9877 interix[3-9]*)
9878 hardcode_direct=no
9879 hardcode_shlibpath_var=no
9880 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
9881 export_dynamic_flag_spec='$wl-E'
9882 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9883 # Instead, shared libraries are loaded at an image base (0x10000000 by
9884 # default) and relocated if they conflict, which is a slow very memory
9885 # consuming and fragmenting process. To avoid this, we pick a random,
9886 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9887 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9889 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'
9890 ;;
9891
9892 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9893 tmp_diet=no
9894 if test linux-dietlibc = "$host_os"; then
9895 case $cc_basename in
9896 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9897 esac
9898 fi
9899 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9900 && test no = "$tmp_diet"
9901 then
9902 tmp_addflag=' $pic_flag'
9903 tmp_sharedflag='-shared'
9904 case $cc_basename,$host_cpu in
9905 pgcc*) # Portland Group C compiler
9906 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'
9907 tmp_addflag=' $pic_flag'
9908 ;;
9909 pgf77* | pgf90* | pgf95* | pgfortran*)
9910 # Portland Group f77 and f90 compilers
9911 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'
9912 tmp_addflag=' $pic_flag -Mnomain' ;;
9913 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9914 tmp_addflag=' -i_dynamic' ;;
9915 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9916 tmp_addflag=' -i_dynamic -nofor_main' ;;
9917 ifc* | ifort*) # Intel Fortran compiler
9918 tmp_addflag=' -nofor_main' ;;
9919 lf95*) # Lahey Fortran 8.1
9920 whole_archive_flag_spec=
9921 tmp_sharedflag='--shared' ;;
9922 nagfor*) # NAGFOR 5.3
9923 tmp_sharedflag='-Wl,-shared' ;;
9924 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9925 tmp_sharedflag='-qmkshrobj'
9926 tmp_addflag= ;;
9927 nvcc*) # Cuda Compiler Driver 2.2
9928 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'
9929 compiler_needs_object=yes
9930 ;;
9931 esac
9932 case `$CC -V 2>&1 | $SED 5q` in
9933 *Sun\ C*) # Sun C 5.9
9934 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'
9935 compiler_needs_object=yes
9936 tmp_sharedflag='-G' ;;
9937 *Sun\ F*) # Sun Fortran 8.3
9938 tmp_sharedflag='-G' ;;
9939 esac
9940 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9941
9942 if test yes = "$supports_anon_versioning"; then
9943 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9944 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9945 echo "local: *; };" >> $output_objdir/$libname.ver~
9946 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
9947 fi
9948
9949 case $cc_basename in
9950 tcc*)
9951 export_dynamic_flag_spec='-rdynamic'
9952 ;;
9953 xlf* | bgf* | bgxlf* | mpixlf*)
9954 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9955 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9956 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
9957 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9958 if test yes = "$supports_anon_versioning"; then
9959 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9960 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9961 echo "local: *; };" >> $output_objdir/$libname.ver~
9962 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9963 fi
9964 ;;
9965 esac
9966 else
9967 ld_shlibs=no
9968 fi
9969 ;;
9970
9971 netbsd*)
9972 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9973 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9974 wlarc=
9975 else
9976 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9977 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9978 fi
9979 ;;
9980
9981 solaris*)
9982 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9983 ld_shlibs=no
9984 cat <<_LT_EOF 1>&2
9985
9986 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9987 *** create shared libraries on Solaris systems. Therefore, libtool
9988 *** is disabling shared libraries support. We urge you to upgrade GNU
9989 *** binutils to release 2.9.1 or newer. Another option is to modify
9990 *** your PATH or compiler configuration so that the native linker is
9991 *** used, and then restart.
9992
9993 _LT_EOF
9994 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9995 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
9996 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
9997 else
9998 ld_shlibs=no
9999 fi
10000 ;;
10001
10002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10003 case `$LD -v 2>&1` in
10004 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10005 ld_shlibs=no
10006 cat <<_LT_EOF 1>&2
10007
10008 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10009 *** reliably create shared libraries on SCO systems. Therefore, libtool
10010 *** is disabling shared libraries support. We urge you to upgrade GNU
10011 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10012 *** your PATH or compiler configuration so that the native linker is
10013 *** used, and then restart.
10014
10015 _LT_EOF
10016 ;;
10017 *)
10018 # For security reasons, it is highly recommended that you always
10019 # use absolute paths for naming shared libraries, and exclude the
10020 # DT_RUNPATH tag from executables and libraries. But doing so
10021 # requires that you compile everything twice, which is a pain.
10022 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10023 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10024 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10025 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10026 else
10027 ld_shlibs=no
10028 fi
10029 ;;
10030 esac
10031 ;;
10032
10033 sunos4*)
10034 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10035 wlarc=
10036 hardcode_direct=yes
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 *)
10041 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10042 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10043 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10044 else
10045 ld_shlibs=no
10046 fi
10047 ;;
10048 esac
10049
10050 if test no = "$ld_shlibs"; then
10051 runpath_var=
10052 hardcode_libdir_flag_spec=
10053 export_dynamic_flag_spec=
10054 whole_archive_flag_spec=
10055 fi
10056 else
10057 # PORTME fill in a description of your system's linker (not GNU ld)
10058 case $host_os in
10059 aix3*)
10060 allow_undefined_flag=unsupported
10061 always_export_symbols=yes
10062 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'
10063 # Note: this linker hardcodes the directories in LIBPATH if there
10064 # are no directories specified by -L.
10065 hardcode_minus_L=yes
10066 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10067 # Neither direct hardcoding nor static linking is supported with a
10068 # broken collect2.
10069 hardcode_direct=unsupported
10070 fi
10071 ;;
10072
10073 aix[4-9]*)
10074 if test ia64 = "$host_cpu"; then
10075 # On IA64, the linker does run time linking by default, so we don't
10076 # have to do anything special.
10077 aix_use_runtimelinking=no
10078 exp_sym_flag='-Bexport'
10079 no_entry_flag=
10080 else
10081 # If we're using GNU nm, then we don't want the "-C" option.
10082 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10083 # Without the "-l" option, or with the "-B" option, AIX nm treats
10084 # weak defined symbols like other global defined symbols, whereas
10085 # GNU nm marks them as "W".
10086 # While the 'weak' keyword is ignored in the Export File, we need
10087 # it in the Import File for the 'aix-soname' feature, so we have
10088 # to replace the "-B" option with "-P" for AIX nm.
10089 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10090 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'
10091 else
10092 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'
10093 fi
10094 aix_use_runtimelinking=no
10095
10096 # Test if we are trying to use run time linking or normal
10097 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10098 # have runtime linking enabled, and use it for executables.
10099 # For shared libraries, we enable/disable runtime linking
10100 # depending on the kind of the shared library created -
10101 # when "with_aix_soname,aix_use_runtimelinking" is:
10102 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10103 # "aix,yes" lib.so shared, rtl:yes, for executables
10104 # lib.a static archive
10105 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10106 # lib.a(lib.so.V) shared, rtl:no, for executables
10107 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10108 # lib.a(lib.so.V) shared, rtl:no
10109 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10110 # lib.a static archive
10111 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10112 for ld_flag in $LDFLAGS; do
10113 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10114 aix_use_runtimelinking=yes
10115 break
10116 fi
10117 done
10118 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10119 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10120 # so we don't have lib.a shared libs to link our executables.
10121 # We have to force runtime linking in this case.
10122 aix_use_runtimelinking=yes
10123 LDFLAGS="$LDFLAGS -Wl,-brtl"
10124 fi
10125 ;;
10126 esac
10127
10128 exp_sym_flag='-bexport'
10129 no_entry_flag='-bnoentry'
10130 fi
10131
10132 # When large executables or shared objects are built, AIX ld can
10133 # have problems creating the table of contents. If linking a library
10134 # or program results in "error TOC overflow" add -mminimal-toc to
10135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10137
10138 archive_cmds=''
10139 hardcode_direct=yes
10140 hardcode_direct_absolute=yes
10141 hardcode_libdir_separator=':'
10142 link_all_deplibs=yes
10143 file_list_spec='$wl-f,'
10144 case $with_aix_soname,$aix_use_runtimelinking in
10145 aix,*) ;; # traditional, no import file
10146 svr4,* | *,yes) # use import file
10147 # The Import File defines what to hardcode.
10148 hardcode_direct=no
10149 hardcode_direct_absolute=no
10150 ;;
10151 esac
10152
10153 if test yes = "$GCC"; then
10154 case $host_os in aix4.[012]|aix4.[012].*)
10155 # We only want to do this on AIX 4.2 and lower, the check
10156 # below for broken collect2 doesn't work under 4.3+
10157 collect2name=`$CC -print-prog-name=collect2`
10158 if test -f "$collect2name" &&
10159 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10160 then
10161 # We have reworked collect2
10162 :
10163 else
10164 # We have old collect2
10165 hardcode_direct=unsupported
10166 # It fails to find uninstalled libraries when the uninstalled
10167 # path is not listed in the libpath. Setting hardcode_minus_L
10168 # to unsupported forces relinking
10169 hardcode_minus_L=yes
10170 hardcode_libdir_flag_spec='-L$libdir'
10171 hardcode_libdir_separator=
10172 fi
10173 ;;
10174 esac
10175 shared_flag='-shared'
10176 if test yes = "$aix_use_runtimelinking"; then
10177 shared_flag="$shared_flag "'$wl-G'
10178 fi
10179 # Need to ensure runtime linking is disabled for the traditional
10180 # shared library, or the linker may eventually find shared libraries
10181 # /with/ Import File - we do not want to mix them.
10182 shared_flag_aix='-shared'
10183 shared_flag_svr4='-shared $wl-G'
10184 else
10185 # not using gcc
10186 if test ia64 = "$host_cpu"; then
10187 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10188 # chokes on -Wl,-G. The following line is correct:
10189 shared_flag='-G'
10190 else
10191 if test yes = "$aix_use_runtimelinking"; then
10192 shared_flag='$wl-G'
10193 else
10194 shared_flag='$wl-bM:SRE'
10195 fi
10196 shared_flag_aix='$wl-bM:SRE'
10197 shared_flag_svr4='$wl-G'
10198 fi
10199 fi
10200
10201 export_dynamic_flag_spec='$wl-bexpall'
10202 # It seems that -bexpall does not export symbols beginning with
10203 # underscore (_), so it is better to generate a list of symbols to export.
10204 always_export_symbols=yes
10205 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10206 # Warning - without using the other runtime loading flags (-brtl),
10207 # -berok will link without error, but may produce a broken library.
10208 allow_undefined_flag='-berok'
10209 # Determine the default libpath from the value encoded in an
10210 # empty executable.
10211 if test set = "${lt_cv_aix_libpath+set}"; then
10212 aix_libpath=$lt_cv_aix_libpath
10213 else
10214 if test ${lt_cv_aix_libpath_+y}
10215 then :
10216 printf %s "(cached) " >&6
10217 else $as_nop
10218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10219 /* end confdefs.h. */
10220
10221 int
10222 main (void)
10223 {
10224
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 if ac_fn_c_try_link "$LINENO"
10230 then :
10231
10232 lt_aix_libpath_sed='
10233 /Import File Strings/,/^$/ {
10234 /^0/ {
10235 s/^0 *\([^ ]*\) *$/\1/
10236 p
10237 }
10238 }'
10239 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10240 # Check for a 64-bit object if we didn't find anything.
10241 if test -z "$lt_cv_aix_libpath_"; then
10242 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10243 fi
10244 fi
10245 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10246 conftest$ac_exeext conftest.$ac_ext
10247 if test -z "$lt_cv_aix_libpath_"; then
10248 lt_cv_aix_libpath_=/usr/lib:/lib
10249 fi
10250
10251 fi
10252
10253 aix_libpath=$lt_cv_aix_libpath_
10254 fi
10255
10256 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10257 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
10258 else
10259 if test ia64 = "$host_cpu"; then
10260 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10261 allow_undefined_flag="-z nodefs"
10262 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"
10263 else
10264 # Determine the default libpath from the value encoded in an
10265 # empty executable.
10266 if test set = "${lt_cv_aix_libpath+set}"; then
10267 aix_libpath=$lt_cv_aix_libpath
10268 else
10269 if test ${lt_cv_aix_libpath_+y}
10270 then :
10271 printf %s "(cached) " >&6
10272 else $as_nop
10273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10274 /* end confdefs.h. */
10275
10276 int
10277 main (void)
10278 {
10279
10280 ;
10281 return 0;
10282 }
10283 _ACEOF
10284 if ac_fn_c_try_link "$LINENO"
10285 then :
10286
10287 lt_aix_libpath_sed='
10288 /Import File Strings/,/^$/ {
10289 /^0/ {
10290 s/^0 *\([^ ]*\) *$/\1/
10291 p
10292 }
10293 }'
10294 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10295 # Check for a 64-bit object if we didn't find anything.
10296 if test -z "$lt_cv_aix_libpath_"; then
10297 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10298 fi
10299 fi
10300 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10301 conftest$ac_exeext conftest.$ac_ext
10302 if test -z "$lt_cv_aix_libpath_"; then
10303 lt_cv_aix_libpath_=/usr/lib:/lib
10304 fi
10305
10306 fi
10307
10308 aix_libpath=$lt_cv_aix_libpath_
10309 fi
10310
10311 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10312 # Warning - without using the other run time loading flags,
10313 # -berok will link without error, but may produce a broken library.
10314 no_undefined_flag=' $wl-bernotok'
10315 allow_undefined_flag=' $wl-berok'
10316 if test yes = "$with_gnu_ld"; then
10317 # We only use this code for GNU lds that support --whole-archive.
10318 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10319 else
10320 # Exported symbols can be pulled into shared objects from archives
10321 whole_archive_flag_spec='$convenience'
10322 fi
10323 archive_cmds_need_lc=yes
10324 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10325 # -brtl affects multiple linker settings, -berok does not and is overridden later
10326 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10327 if test svr4 != "$with_aix_soname"; then
10328 # This is similar to how AIX traditionally builds its shared libraries.
10329 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'
10330 fi
10331 if test aix != "$with_aix_soname"; then
10332 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'
10333 else
10334 # used by -dlpreopen to get the symbols
10335 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10336 fi
10337 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10338 fi
10339 fi
10340 ;;
10341
10342 amigaos*)
10343 case $host_cpu in
10344 powerpc)
10345 # see comment about AmigaOS4 .so support
10346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10347 archive_expsym_cmds=''
10348 ;;
10349 m68k)
10350 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)'
10351 hardcode_libdir_flag_spec='-L$libdir'
10352 hardcode_minus_L=yes
10353 ;;
10354 esac
10355 ;;
10356
10357 bsdi[45]*)
10358 export_dynamic_flag_spec=-rdynamic
10359 ;;
10360
10361 cygwin* | mingw* | pw32* | cegcc*)
10362 # When not using gcc, we currently assume that we are using
10363 # Microsoft Visual C++ or Intel C++ Compiler.
10364 # hardcode_libdir_flag_spec is actually meaningless, as there is
10365 # no search path for DLLs.
10366 case $cc_basename in
10367 cl* | icl*)
10368 # Native MSVC or ICC
10369 hardcode_libdir_flag_spec=' '
10370 allow_undefined_flag=unsupported
10371 always_export_symbols=yes
10372 file_list_spec='@'
10373 # Tell ltmain to make .lib files, not .a files.
10374 libext=lib
10375 # Tell ltmain to make .dll files, not .so files.
10376 shrext_cmds=.dll
10377 # FIXME: Setting linknames here is a bad hack.
10378 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10379 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10380 cp "$export_symbols" "$output_objdir/$soname.def";
10381 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10382 else
10383 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10384 fi~
10385 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10386 linknames='
10387 # The linker will not automatically build a static lib if we build a DLL.
10388 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10389 enable_shared_with_static_runtimes=yes
10390 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10391 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10392 # Don't use ranlib
10393 old_postinstall_cmds='chmod 644 $oldlib'
10394 postlink_cmds='lt_outputfile="@OUTPUT@"~
10395 lt_tool_outputfile="@TOOL_OUTPUT@"~
10396 case $lt_outputfile in
10397 *.exe|*.EXE) ;;
10398 *)
10399 lt_outputfile=$lt_outputfile.exe
10400 lt_tool_outputfile=$lt_tool_outputfile.exe
10401 ;;
10402 esac~
10403 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10404 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10405 $RM "$lt_outputfile.manifest";
10406 fi'
10407 ;;
10408 *)
10409 # Assume MSVC and ICC wrapper
10410 hardcode_libdir_flag_spec=' '
10411 allow_undefined_flag=unsupported
10412 # Tell ltmain to make .lib files, not .a files.
10413 libext=lib
10414 # Tell ltmain to make .dll files, not .so files.
10415 shrext_cmds=.dll
10416 # FIXME: Setting linknames here is a bad hack.
10417 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10418 # The linker will automatically build a .lib file if we build a DLL.
10419 old_archive_from_new_cmds='true'
10420 # FIXME: Should let the user specify the lib program.
10421 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10422 enable_shared_with_static_runtimes=yes
10423 ;;
10424 esac
10425 ;;
10426
10427 darwin* | rhapsody*)
10428
10429
10430 archive_cmds_need_lc=no
10431 hardcode_direct=no
10432 hardcode_automatic=yes
10433 hardcode_shlibpath_var=unsupported
10434 if test yes = "$lt_cv_ld_force_load"; then
10435 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\"`'
10436
10437 else
10438 whole_archive_flag_spec=''
10439 fi
10440 link_all_deplibs=yes
10441 allow_undefined_flag=$_lt_dar_allow_undefined
10442 case $cc_basename in
10443 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10444 *) _lt_dar_can_shared=$GCC ;;
10445 esac
10446 if test yes = "$_lt_dar_can_shared"; then
10447 output_verbose_link_cmd=func_echo_all
10448 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10449 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10450 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"
10451 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"
10452
10453 else
10454 ld_shlibs=no
10455 fi
10456
10457 ;;
10458
10459 dgux*)
10460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10461 hardcode_libdir_flag_spec='-L$libdir'
10462 hardcode_shlibpath_var=no
10463 ;;
10464
10465 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10466 # support. Future versions do this automatically, but an explicit c++rt0.o
10467 # does not break anything, and helps significantly (at the cost of a little
10468 # extra space).
10469 freebsd2.2*)
10470 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10471 hardcode_libdir_flag_spec='-R$libdir'
10472 hardcode_direct=yes
10473 hardcode_shlibpath_var=no
10474 ;;
10475
10476 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10477 freebsd2.*)
10478 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_direct=yes
10480 hardcode_minus_L=yes
10481 hardcode_shlibpath_var=no
10482 ;;
10483
10484 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10485 freebsd* | dragonfly* | midnightbsd*)
10486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10487 hardcode_libdir_flag_spec='-R$libdir'
10488 hardcode_direct=yes
10489 hardcode_shlibpath_var=no
10490 ;;
10491
10492 hpux9*)
10493 if test yes = "$GCC"; then
10494 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'
10495 else
10496 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'
10497 fi
10498 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10499 hardcode_libdir_separator=:
10500 hardcode_direct=yes
10501
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
10504 hardcode_minus_L=yes
10505 export_dynamic_flag_spec='$wl-E'
10506 ;;
10507
10508 hpux10*)
10509 if test yes,no = "$GCC,$with_gnu_ld"; then
10510 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10511 else
10512 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10513 fi
10514 if test no = "$with_gnu_ld"; then
10515 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10516 hardcode_libdir_separator=:
10517 hardcode_direct=yes
10518 hardcode_direct_absolute=yes
10519 export_dynamic_flag_spec='$wl-E'
10520 # hardcode_minus_L: Not really in the search PATH,
10521 # but as the default location of the library.
10522 hardcode_minus_L=yes
10523 fi
10524 ;;
10525
10526 hpux11*)
10527 if test yes,no = "$GCC,$with_gnu_ld"; then
10528 case $host_cpu in
10529 hppa*64*)
10530 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10531 ;;
10532 ia64*)
10533 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10534 ;;
10535 *)
10536 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10537 ;;
10538 esac
10539 else
10540 case $host_cpu in
10541 hppa*64*)
10542 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10543 ;;
10544 ia64*)
10545 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10546 ;;
10547 *)
10548
10549 # Older versions of the 11.00 compiler do not understand -b yet
10550 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10552 printf %s "checking if $CC understands -b... " >&6; }
10553 if test ${lt_cv_prog_compiler__b+y}
10554 then :
10555 printf %s "(cached) " >&6
10556 else $as_nop
10557 lt_cv_prog_compiler__b=no
10558 save_LDFLAGS=$LDFLAGS
10559 LDFLAGS="$LDFLAGS -b"
10560 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10561 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10562 # The linker can only warn and ignore the option if not recognized
10563 # So say no if there are warnings
10564 if test -s conftest.err; then
10565 # Append any errors to the config.log.
10566 cat conftest.err 1>&5
10567 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10568 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10569 if diff conftest.exp conftest.er2 >/dev/null; then
10570 lt_cv_prog_compiler__b=yes
10571 fi
10572 else
10573 lt_cv_prog_compiler__b=yes
10574 fi
10575 fi
10576 $RM -r conftest*
10577 LDFLAGS=$save_LDFLAGS
10578
10579 fi
10580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10581 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10582
10583 if test yes = "$lt_cv_prog_compiler__b"; then
10584 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10585 else
10586 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10587 fi
10588
10589 ;;
10590 esac
10591 fi
10592 if test no = "$with_gnu_ld"; then
10593 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10594 hardcode_libdir_separator=:
10595
10596 case $host_cpu in
10597 hppa*64*|ia64*)
10598 hardcode_direct=no
10599 hardcode_shlibpath_var=no
10600 ;;
10601 *)
10602 hardcode_direct=yes
10603 hardcode_direct_absolute=yes
10604 export_dynamic_flag_spec='$wl-E'
10605
10606 # hardcode_minus_L: Not really in the search PATH,
10607 # but as the default location of the library.
10608 hardcode_minus_L=yes
10609 ;;
10610 esac
10611 fi
10612 ;;
10613
10614 irix5* | irix6* | nonstopux*)
10615 if test yes = "$GCC"; then
10616 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'
10617 # Try to use the -exported_symbol ld option, if it does not
10618 # work, assume that -exports_file does not work either and
10619 # implicitly export all symbols.
10620 # This should be the same for all languages, so no per-tag cache variable.
10621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10622 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10623 if test ${lt_cv_irix_exported_symbol+y}
10624 then :
10625 printf %s "(cached) " >&6
10626 else $as_nop
10627 save_LDFLAGS=$LDFLAGS
10628 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 int foo (void) { return 0; }
10632 _ACEOF
10633 if ac_fn_c_try_link "$LINENO"
10634 then :
10635 lt_cv_irix_exported_symbol=yes
10636 else $as_nop
10637 lt_cv_irix_exported_symbol=no
10638 fi
10639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10640 conftest$ac_exeext conftest.$ac_ext
10641 LDFLAGS=$save_LDFLAGS
10642 fi
10643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10644 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10645 if test yes = "$lt_cv_irix_exported_symbol"; then
10646 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'
10647 fi
10648 else
10649 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'
10650 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'
10651 fi
10652 archive_cmds_need_lc='no'
10653 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10654 hardcode_libdir_separator=:
10655 inherit_rpath=yes
10656 link_all_deplibs=yes
10657 ;;
10658
10659 linux*)
10660 case $cc_basename in
10661 tcc*)
10662 # Fabrice Bellard et al's Tiny C Compiler
10663 ld_shlibs=yes
10664 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10665 ;;
10666 esac
10667 ;;
10668
10669 netbsd*)
10670 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10671 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10672 else
10673 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10674 fi
10675 hardcode_libdir_flag_spec='-R$libdir'
10676 hardcode_direct=yes
10677 hardcode_shlibpath_var=no
10678 ;;
10679
10680 newsos6)
10681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 hardcode_direct=yes
10683 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10684 hardcode_libdir_separator=:
10685 hardcode_shlibpath_var=no
10686 ;;
10687
10688 *nto* | *qnx*)
10689 ;;
10690
10691 openbsd* | bitrig*)
10692 if test -f /usr/libexec/ld.so; then
10693 hardcode_direct=yes
10694 hardcode_shlibpath_var=no
10695 hardcode_direct_absolute=yes
10696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10697 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10699 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10700 export_dynamic_flag_spec='$wl-E'
10701 else
10702 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10703 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10704 fi
10705 else
10706 ld_shlibs=no
10707 fi
10708 ;;
10709
10710 os2*)
10711 hardcode_libdir_flag_spec='-L$libdir'
10712 hardcode_minus_L=yes
10713 allow_undefined_flag=unsupported
10714 shrext_cmds=.dll
10715 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10716 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10717 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10718 $ECHO EXPORTS >> $output_objdir/$libname.def~
10719 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10720 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10721 emximp -o $lib $output_objdir/$libname.def'
10722 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10723 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10724 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10725 $ECHO EXPORTS >> $output_objdir/$libname.def~
10726 prefix_cmds="$SED"~
10727 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10728 prefix_cmds="$prefix_cmds -e 1d";
10729 fi~
10730 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10731 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10732 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10733 emximp -o $lib $output_objdir/$libname.def'
10734 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10735 enable_shared_with_static_runtimes=yes
10736 file_list_spec='@'
10737 ;;
10738
10739 osf3*)
10740 if test yes = "$GCC"; then
10741 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10742 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'
10743 else
10744 allow_undefined_flag=' -expect_unresolved \*'
10745 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'
10746 fi
10747 archive_cmds_need_lc='no'
10748 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10749 hardcode_libdir_separator=:
10750 ;;
10751
10752 osf4* | osf5*) # as osf3* with the addition of -msym flag
10753 if test yes = "$GCC"; then
10754 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10755 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'
10756 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10757 else
10758 allow_undefined_flag=' -expect_unresolved \*'
10759 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'
10760 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~
10761 $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'
10762
10763 # Both c and cxx compiler support -rpath directly
10764 hardcode_libdir_flag_spec='-rpath $libdir'
10765 fi
10766 archive_cmds_need_lc='no'
10767 hardcode_libdir_separator=:
10768 ;;
10769
10770 solaris*)
10771 no_undefined_flag=' -z defs'
10772 if test yes = "$GCC"; then
10773 wlarc='$wl'
10774 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10775 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10776 $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'
10777 else
10778 case `$CC -V 2>&1` in
10779 *"Compilers 5.0"*)
10780 wlarc=''
10781 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
10782 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10783 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10784 ;;
10785 *)
10786 wlarc='$wl'
10787 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10788 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10789 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10790 ;;
10791 esac
10792 fi
10793 hardcode_libdir_flag_spec='-R$libdir'
10794 hardcode_shlibpath_var=no
10795 case $host_os in
10796 solaris2.[0-5] | solaris2.[0-5].*) ;;
10797 *)
10798 # The compiler driver will combine and reorder linker options,
10799 # but understands '-z linker_flag'. GCC discards it without '$wl',
10800 # but is careful enough not to reorder.
10801 # Supported since Solaris 2.6 (maybe 2.5.1?)
10802 if test yes = "$GCC"; then
10803 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
10804 else
10805 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10806 fi
10807 ;;
10808 esac
10809 link_all_deplibs=yes
10810 ;;
10811
10812 sunos4*)
10813 if test sequent = "$host_vendor"; then
10814 # Use $CC to link under sequent, because it throws in some extra .o
10815 # files that make .init and .fini sections work.
10816 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10817 else
10818 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10819 fi
10820 hardcode_libdir_flag_spec='-L$libdir'
10821 hardcode_direct=yes
10822 hardcode_minus_L=yes
10823 hardcode_shlibpath_var=no
10824 ;;
10825
10826 sysv4)
10827 case $host_vendor in
10828 sni)
10829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10830 hardcode_direct=yes # is this really true???
10831 ;;
10832 siemens)
10833 ## LD is ld it makes a PLAMLIB
10834 ## CC just makes a GrossModule.
10835 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10836 reload_cmds='$CC -r -o $output$reload_objs'
10837 hardcode_direct=no
10838 ;;
10839 motorola)
10840 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10841 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10842 ;;
10843 esac
10844 runpath_var='LD_RUN_PATH'
10845 hardcode_shlibpath_var=no
10846 ;;
10847
10848 sysv4.3*)
10849 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10850 hardcode_shlibpath_var=no
10851 export_dynamic_flag_spec='-Bexport'
10852 ;;
10853
10854 sysv4*MP*)
10855 if test -d /usr/nec; then
10856 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10857 hardcode_shlibpath_var=no
10858 runpath_var=LD_RUN_PATH
10859 hardcode_runpath_var=yes
10860 ld_shlibs=yes
10861 fi
10862 ;;
10863
10864 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10865 no_undefined_flag='$wl-z,text'
10866 archive_cmds_need_lc=no
10867 hardcode_shlibpath_var=no
10868 runpath_var='LD_RUN_PATH'
10869
10870 if test yes = "$GCC"; then
10871 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10872 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10873 else
10874 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10875 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10876 fi
10877 ;;
10878
10879 sysv5* | sco3.2v5* | sco5v6*)
10880 # Note: We CANNOT use -z defs as we might desire, because we do not
10881 # link with -lc, and that would cause any symbols used from libc to
10882 # always be unresolved, which means just about no library would
10883 # ever link correctly. If we're not using GNU ld we use -z text
10884 # though, which does catch some bad symbols but isn't as heavy-handed
10885 # as -z defs.
10886 no_undefined_flag='$wl-z,text'
10887 allow_undefined_flag='$wl-z,nodefs'
10888 archive_cmds_need_lc=no
10889 hardcode_shlibpath_var=no
10890 hardcode_libdir_flag_spec='$wl-R,$libdir'
10891 hardcode_libdir_separator=':'
10892 link_all_deplibs=yes
10893 export_dynamic_flag_spec='$wl-Bexport'
10894 runpath_var='LD_RUN_PATH'
10895
10896 if test yes = "$GCC"; then
10897 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10898 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10899 else
10900 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10901 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10902 fi
10903 ;;
10904
10905 uts4*)
10906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10907 hardcode_libdir_flag_spec='-L$libdir'
10908 hardcode_shlibpath_var=no
10909 ;;
10910
10911 *)
10912 ld_shlibs=no
10913 ;;
10914 esac
10915
10916 if test sni = "$host_vendor"; then
10917 case $host in
10918 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10919 export_dynamic_flag_spec='$wl-Blargedynsym'
10920 ;;
10921 esac
10922 fi
10923 fi
10924
10925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10926 printf "%s\n" "$ld_shlibs" >&6; }
10927 test no = "$ld_shlibs" && can_build_shared=no
10928
10929 with_gnu_ld=$with_gnu_ld
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945 #
10946 # Do we need to explicitly link libc?
10947 #
10948 case "x$archive_cmds_need_lc" in
10949 x|xyes)
10950 # Assume -lc should be added
10951 archive_cmds_need_lc=yes
10952
10953 if test yes,yes = "$GCC,$enable_shared"; then
10954 case $archive_cmds in
10955 *'~'*)
10956 # FIXME: we may have to deal with multi-command sequences.
10957 ;;
10958 '$CC '*)
10959 # Test whether the compiler implicitly links with -lc since on some
10960 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10961 # to ld, don't add -lc before -lgcc.
10962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10963 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
10964 if test ${lt_cv_archive_cmds_need_lc+y}
10965 then :
10966 printf %s "(cached) " >&6
10967 else $as_nop
10968 $RM conftest*
10969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10970
10971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10972 (eval $ac_compile) 2>&5
10973 ac_status=$?
10974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10975 test $ac_status = 0; } 2>conftest.err; then
10976 soname=conftest
10977 lib=conftest
10978 libobjs=conftest.$ac_objext
10979 deplibs=
10980 wl=$lt_prog_compiler_wl
10981 pic_flag=$lt_prog_compiler_pic
10982 compiler_flags=-v
10983 linker_flags=-v
10984 verstring=
10985 output_objdir=.
10986 libname=conftest
10987 lt_save_allow_undefined_flag=$allow_undefined_flag
10988 allow_undefined_flag=
10989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10990 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10991 ac_status=$?
10992 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10993 test $ac_status = 0; }
10994 then
10995 lt_cv_archive_cmds_need_lc=no
10996 else
10997 lt_cv_archive_cmds_need_lc=yes
10998 fi
10999 allow_undefined_flag=$lt_save_allow_undefined_flag
11000 else
11001 cat conftest.err 1>&5
11002 fi
11003 $RM conftest*
11004
11005 fi
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11007 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11008 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11009 ;;
11010 esac
11011 fi
11012 ;;
11013 esac
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11167 printf %s "checking dynamic linker characteristics... " >&6; }
11168
11169 if test yes = "$GCC"; then
11170 case $host_os in
11171 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11172 *) lt_awk_arg='/^libraries:/' ;;
11173 esac
11174 case $host_os in
11175 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11176 *) lt_sed_strip_eq='s|=/|/|g' ;;
11177 esac
11178 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11179 case $lt_search_path_spec in
11180 *\;*)
11181 # if the path contains ";" then we assume it to be the separator
11182 # otherwise default to the standard path separator (i.e. ":") - it is
11183 # assumed that no part of a normal pathname contains ";" but that should
11184 # okay in the real world where ";" in dirpaths is itself problematic.
11185 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11186 ;;
11187 *)
11188 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11189 ;;
11190 esac
11191 # Ok, now we have the path, separated by spaces, we can step through it
11192 # and add multilib dir if necessary...
11193 lt_tmp_lt_search_path_spec=
11194 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11195 # ...but if some path component already ends with the multilib dir we assume
11196 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11197 case "$lt_multi_os_dir; $lt_search_path_spec " in
11198 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11199 lt_multi_os_dir=
11200 ;;
11201 esac
11202 for lt_sys_path in $lt_search_path_spec; do
11203 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11204 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11205 elif test -n "$lt_multi_os_dir"; then
11206 test -d "$lt_sys_path" && \
11207 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11208 fi
11209 done
11210 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11211 BEGIN {RS = " "; FS = "/|\n";} {
11212 lt_foo = "";
11213 lt_count = 0;
11214 for (lt_i = NF; lt_i > 0; lt_i--) {
11215 if ($lt_i != "" && $lt_i != ".") {
11216 if ($lt_i == "..") {
11217 lt_count++;
11218 } else {
11219 if (lt_count == 0) {
11220 lt_foo = "/" $lt_i lt_foo;
11221 } else {
11222 lt_count--;
11223 }
11224 }
11225 }
11226 }
11227 if (lt_foo != "") { lt_freq[lt_foo]++; }
11228 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11229 }'`
11230 # AWK program above erroneously prepends '/' to C:/dos/paths
11231 # for these hosts.
11232 case $host_os in
11233 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11234 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11235 esac
11236 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11237 else
11238 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11239 fi
11240 library_names_spec=
11241 libname_spec='lib$name'
11242 soname_spec=
11243 shrext_cmds=.so
11244 postinstall_cmds=
11245 postuninstall_cmds=
11246 finish_cmds=
11247 finish_eval=
11248 shlibpath_var=
11249 shlibpath_overrides_runpath=unknown
11250 version_type=none
11251 dynamic_linker="$host_os ld.so"
11252 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11253 need_lib_prefix=unknown
11254 hardcode_into_libs=no
11255
11256 # when you set need_version to no, make sure it does not cause -set_version
11257 # flags to be left without arguments
11258 need_version=unknown
11259
11260
11261
11262 case $host_os in
11263 aix3*)
11264 version_type=linux # correct to gnu/linux during the next big refactor
11265 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11266 shlibpath_var=LIBPATH
11267
11268 # AIX 3 has no versioning support, so we append a major version to the name.
11269 soname_spec='$libname$release$shared_ext$major'
11270 ;;
11271
11272 aix[4-9]*)
11273 version_type=linux # correct to gnu/linux during the next big refactor
11274 need_lib_prefix=no
11275 need_version=no
11276 hardcode_into_libs=yes
11277 if test ia64 = "$host_cpu"; then
11278 # AIX 5 supports IA64
11279 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11280 shlibpath_var=LD_LIBRARY_PATH
11281 else
11282 # With GCC up to 2.95.x, collect2 would create an import file
11283 # for dependence libraries. The import file would start with
11284 # the line '#! .'. This would cause the generated library to
11285 # depend on '.', always an invalid library. This was fixed in
11286 # development snapshots of GCC prior to 3.0.
11287 case $host_os in
11288 aix4 | aix4.[01] | aix4.[01].*)
11289 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11290 echo ' yes '
11291 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11292 :
11293 else
11294 can_build_shared=no
11295 fi
11296 ;;
11297 esac
11298 # Using Import Files as archive members, it is possible to support
11299 # filename-based versioning of shared library archives on AIX. While
11300 # this would work for both with and without runtime linking, it will
11301 # prevent static linking of such archives. So we do filename-based
11302 # shared library versioning with .so extension only, which is used
11303 # when both runtime linking and shared linking is enabled.
11304 # Unfortunately, runtime linking may impact performance, so we do
11305 # not want this to be the default eventually. Also, we use the
11306 # versioned .so libs for executables only if there is the -brtl
11307 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11308 # To allow for filename-based versioning support, we need to create
11309 # libNAME.so.V as an archive file, containing:
11310 # *) an Import File, referring to the versioned filename of the
11311 # archive as well as the shared archive member, telling the
11312 # bitwidth (32 or 64) of that shared object, and providing the
11313 # list of exported symbols of that shared object, eventually
11314 # decorated with the 'weak' keyword
11315 # *) the shared object with the F_LOADONLY flag set, to really avoid
11316 # it being seen by the linker.
11317 # At run time we better use the real file rather than another symlink,
11318 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11319
11320 case $with_aix_soname,$aix_use_runtimelinking in
11321 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11322 # soname into executable. Probably we can add versioning support to
11323 # collect2, so additional links can be useful in future.
11324 aix,yes) # traditional libtool
11325 dynamic_linker='AIX unversionable lib.so'
11326 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11327 # instead of lib<name>.a to let people know that these are not
11328 # typical AIX shared libraries.
11329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11330 ;;
11331 aix,no) # traditional AIX only
11332 dynamic_linker='AIX lib.a(lib.so.V)'
11333 # We preserve .a as extension for shared libraries through AIX4.2
11334 # and later when we are not doing run time linking.
11335 library_names_spec='$libname$release.a $libname.a'
11336 soname_spec='$libname$release$shared_ext$major'
11337 ;;
11338 svr4,*) # full svr4 only
11339 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11340 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11341 # We do not specify a path in Import Files, so LIBPATH fires.
11342 shlibpath_overrides_runpath=yes
11343 ;;
11344 *,yes) # both, prefer svr4
11345 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11346 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11347 # unpreferred sharedlib libNAME.a needs extra handling
11348 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"'
11349 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"'
11350 # We do not specify a path in Import Files, so LIBPATH fires.
11351 shlibpath_overrides_runpath=yes
11352 ;;
11353 *,no) # both, prefer aix
11354 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11355 library_names_spec='$libname$release.a $libname.a'
11356 soname_spec='$libname$release$shared_ext$major'
11357 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11358 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)'
11359 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"'
11360 ;;
11361 esac
11362 shlibpath_var=LIBPATH
11363 fi
11364 ;;
11365
11366 amigaos*)
11367 case $host_cpu in
11368 powerpc)
11369 # Since July 2007 AmigaOS4 officially supports .so libraries.
11370 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11371 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11372 ;;
11373 m68k)
11374 library_names_spec='$libname.ixlibrary $libname.a'
11375 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11376 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'
11377 ;;
11378 esac
11379 ;;
11380
11381 beos*)
11382 library_names_spec='$libname$shared_ext'
11383 dynamic_linker="$host_os ld.so"
11384 shlibpath_var=LIBRARY_PATH
11385 ;;
11386
11387 bsdi[45]*)
11388 version_type=linux # correct to gnu/linux during the next big refactor
11389 need_version=no
11390 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11391 soname_spec='$libname$release$shared_ext$major'
11392 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11393 shlibpath_var=LD_LIBRARY_PATH
11394 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11395 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11396 # the default ld.so.conf also contains /usr/contrib/lib and
11397 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11398 # libtool to hard-code these into programs
11399 ;;
11400
11401 cygwin* | mingw* | pw32* | cegcc*)
11402 version_type=windows
11403 shrext_cmds=.dll
11404 need_version=no
11405 need_lib_prefix=no
11406
11407 case $GCC,$cc_basename in
11408 yes,*)
11409 # gcc
11410 library_names_spec='$libname.dll.a'
11411 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11412 postinstall_cmds='base_file=`basename \$file`~
11413 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11414 dldir=$destdir/`dirname \$dlpath`~
11415 test -d \$dldir || mkdir -p \$dldir~
11416 $install_prog $dir/$dlname \$dldir/$dlname~
11417 chmod a+x \$dldir/$dlname~
11418 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11419 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11420 fi'
11421 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11422 dlpath=$dir/\$dldll~
11423 $RM \$dlpath'
11424 shlibpath_overrides_runpath=yes
11425
11426 case $host_os in
11427 cygwin*)
11428 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11429 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11430
11431 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11432 ;;
11433 mingw* | cegcc*)
11434 # MinGW DLLs use traditional 'lib' prefix
11435 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11436 ;;
11437 pw32*)
11438 # pw32 DLLs use 'pw' prefix rather than 'lib'
11439 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11440 ;;
11441 esac
11442 dynamic_linker='Win32 ld.exe'
11443 ;;
11444
11445 *,cl* | *,icl*)
11446 # Native MSVC or ICC
11447 libname_spec='$name'
11448 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11449 library_names_spec='$libname.dll.lib'
11450
11451 case $build_os in
11452 mingw*)
11453 sys_lib_search_path_spec=
11454 lt_save_ifs=$IFS
11455 IFS=';'
11456 for lt_path in $LIB
11457 do
11458 IFS=$lt_save_ifs
11459 # Let DOS variable expansion print the short 8.3 style file name.
11460 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11461 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11462 done
11463 IFS=$lt_save_ifs
11464 # Convert to MSYS style.
11465 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11466 ;;
11467 cygwin*)
11468 # Convert to unix form, then to dos form, then back to unix form
11469 # but this time dos style (no spaces!) so that the unix form looks
11470 # like /cygdrive/c/PROGRA~1:/cygdr...
11471 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11472 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11473 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11474 ;;
11475 *)
11476 sys_lib_search_path_spec=$LIB
11477 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11478 # It is most probably a Windows format PATH.
11479 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11480 else
11481 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11482 fi
11483 # FIXME: find the short name or the path components, as spaces are
11484 # common. (e.g. "Program Files" -> "PROGRA~1")
11485 ;;
11486 esac
11487
11488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11489 postinstall_cmds='base_file=`basename \$file`~
11490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11491 dldir=$destdir/`dirname \$dlpath`~
11492 test -d \$dldir || mkdir -p \$dldir~
11493 $install_prog $dir/$dlname \$dldir/$dlname'
11494 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11495 dlpath=$dir/\$dldll~
11496 $RM \$dlpath'
11497 shlibpath_overrides_runpath=yes
11498 dynamic_linker='Win32 link.exe'
11499 ;;
11500
11501 *)
11502 # Assume MSVC and ICC wrapper
11503 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11504 dynamic_linker='Win32 ld.exe'
11505 ;;
11506 esac
11507 # FIXME: first we should search . and the directory the executable is in
11508 shlibpath_var=PATH
11509 ;;
11510
11511 darwin* | rhapsody*)
11512 dynamic_linker="$host_os dyld"
11513 version_type=darwin
11514 need_lib_prefix=no
11515 need_version=no
11516 library_names_spec='$libname$release$versuffix$shared_ext $libname$release$major$shared_ext $libname$shared_ext'
11517 soname_spec='$libname$release$major$shared_ext'
11518 shlibpath_overrides_runpath=yes
11519 shlibpath_var=DYLD_LIBRARY_PATH
11520 shrext_cmds='`test .$module = .yes && echo .bundle || echo .dylib`'
11521
11522 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11523 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11524 ;;
11525
11526 dgux*)
11527 version_type=linux # correct to gnu/linux during the next big refactor
11528 need_lib_prefix=no
11529 need_version=no
11530 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11531 soname_spec='$libname$release$shared_ext$major'
11532 shlibpath_var=LD_LIBRARY_PATH
11533 ;;
11534
11535 freebsd* | dragonfly* | midnightbsd*)
11536 # DragonFly does not have aout. When/if they implement a new
11537 # versioning mechanism, adjust this.
11538 if test -x /usr/bin/objformat; then
11539 objformat=`/usr/bin/objformat`
11540 else
11541 case $host_os in
11542 freebsd[23].*) objformat=aout ;;
11543 *) objformat=elf ;;
11544 esac
11545 fi
11546 # Handle Gentoo/FreeBSD as it was Linux
11547 case $host_vendor in
11548 gentoo)
11549 version_type=linux ;;
11550 *)
11551 version_type=freebsd-$objformat ;;
11552 esac
11553
11554 case $version_type in
11555 freebsd-elf*)
11556 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11557 soname_spec='$libname$release$shared_ext$major'
11558 need_version=no
11559 need_lib_prefix=no
11560 ;;
11561 freebsd-*)
11562 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11563 need_version=yes
11564 ;;
11565 linux)
11566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11567 soname_spec='${libname}${release}${shared_ext}$major'
11568 need_lib_prefix=no
11569 need_version=no
11570 ;;
11571 esac
11572 shlibpath_var=LD_LIBRARY_PATH
11573 case $host_os in
11574 freebsd2.*)
11575 shlibpath_overrides_runpath=yes
11576 ;;
11577 freebsd3.[01]* | freebsdelf3.[01]*)
11578 shlibpath_overrides_runpath=yes
11579 hardcode_into_libs=yes
11580 ;;
11581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11583 shlibpath_overrides_runpath=no
11584 hardcode_into_libs=yes
11585 ;;
11586 *) # from 4.6 on, and DragonFly
11587 shlibpath_overrides_runpath=yes
11588 hardcode_into_libs=yes
11589 ;;
11590 esac
11591 ;;
11592
11593 haiku*)
11594 version_type=linux # correct to gnu/linux during the next big refactor
11595 need_lib_prefix=no
11596 need_version=no
11597 dynamic_linker="$host_os runtime_loader"
11598 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11599 soname_spec='$libname$release$shared_ext$major'
11600 shlibpath_var=LIBRARY_PATH
11601 shlibpath_overrides_runpath=no
11602 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11603 hardcode_into_libs=yes
11604 ;;
11605
11606 hpux9* | hpux10* | hpux11*)
11607 # Give a soname corresponding to the major version so that dld.sl refuses to
11608 # link against other versions.
11609 version_type=sunos
11610 need_lib_prefix=no
11611 need_version=no
11612 case $host_cpu in
11613 ia64*)
11614 shrext_cmds='.so'
11615 hardcode_into_libs=yes
11616 dynamic_linker="$host_os dld.so"
11617 shlibpath_var=LD_LIBRARY_PATH
11618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11619 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11620 soname_spec='$libname$release$shared_ext$major'
11621 if test 32 = "$HPUX_IA64_MODE"; then
11622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11623 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11624 else
11625 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11626 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11627 fi
11628 ;;
11629 hppa*64*)
11630 shrext_cmds='.sl'
11631 hardcode_into_libs=yes
11632 dynamic_linker="$host_os dld.sl"
11633 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11634 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11635 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11636 soname_spec='$libname$release$shared_ext$major'
11637 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11638 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11639 ;;
11640 *)
11641 shrext_cmds='.sl'
11642 dynamic_linker="$host_os dld.sl"
11643 shlibpath_var=SHLIB_PATH
11644 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11645 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11646 soname_spec='$libname$release$shared_ext$major'
11647 ;;
11648 esac
11649 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11650 postinstall_cmds='chmod 555 $lib'
11651 # or fails outright, so override atomically:
11652 install_override_mode=555
11653 ;;
11654
11655 interix[3-9]*)
11656 version_type=linux # correct to gnu/linux during the next big refactor
11657 need_lib_prefix=no
11658 need_version=no
11659 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11660 soname_spec='$libname$release$shared_ext$major'
11661 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11665 ;;
11666
11667 irix5* | irix6* | nonstopux*)
11668 case $host_os in
11669 nonstopux*) version_type=nonstopux ;;
11670 *)
11671 if test yes = "$lt_cv_prog_gnu_ld"; then
11672 version_type=linux # correct to gnu/linux during the next big refactor
11673 else
11674 version_type=irix
11675 fi ;;
11676 esac
11677 need_lib_prefix=no
11678 need_version=no
11679 soname_spec='$libname$release$shared_ext$major'
11680 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11681 case $host_os in
11682 irix5* | nonstopux*)
11683 libsuff= shlibsuff=
11684 ;;
11685 *)
11686 case $LD in # libtool.m4 will add one of these switches to LD
11687 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11688 libsuff= shlibsuff= libmagic=32-bit;;
11689 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11690 libsuff=32 shlibsuff=N32 libmagic=N32;;
11691 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11692 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11693 *) libsuff= shlibsuff= libmagic=never-match;;
11694 esac
11695 ;;
11696 esac
11697 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11698 shlibpath_overrides_runpath=no
11699 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11700 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11701 hardcode_into_libs=yes
11702 ;;
11703
11704 # No shared lib support for Linux oldld, aout, or coff.
11705 linux*oldld* | linux*aout* | linux*coff*)
11706 dynamic_linker=no
11707 ;;
11708
11709 linux*android*)
11710 version_type=none # Android doesn't support versioned libraries.
11711 need_lib_prefix=no
11712 need_version=no
11713 library_names_spec='$libname$release$shared_ext'
11714 soname_spec='$libname$release$shared_ext'
11715 finish_cmds=
11716 shlibpath_var=LD_LIBRARY_PATH
11717 shlibpath_overrides_runpath=yes
11718
11719 # This implies no fast_install, which is unacceptable.
11720 # Some rework will be needed to allow for fast_install
11721 # before this can be enabled.
11722 hardcode_into_libs=yes
11723
11724 dynamic_linker='Android linker'
11725 # Don't embed -rpath directories since the linker doesn't support them.
11726 hardcode_libdir_flag_spec='-L$libdir'
11727 ;;
11728
11729 # This must be glibc/ELF.
11730 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11731 version_type=linux # correct to gnu/linux during the next big refactor
11732 need_lib_prefix=no
11733 need_version=no
11734 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11735 soname_spec='$libname$release$shared_ext$major'
11736 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11737 shlibpath_var=LD_LIBRARY_PATH
11738 shlibpath_overrides_runpath=no
11739
11740 # Some binutils ld are patched to set DT_RUNPATH
11741 if test ${lt_cv_shlibpath_overrides_runpath+y}
11742 then :
11743 printf %s "(cached) " >&6
11744 else $as_nop
11745 lt_cv_shlibpath_overrides_runpath=no
11746 save_LDFLAGS=$LDFLAGS
11747 save_libdir=$libdir
11748 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11749 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11751 /* end confdefs.h. */
11752
11753 int
11754 main (void)
11755 {
11756
11757 ;
11758 return 0;
11759 }
11760 _ACEOF
11761 if ac_fn_c_try_link "$LINENO"
11762 then :
11763 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
11764 then :
11765 lt_cv_shlibpath_overrides_runpath=yes
11766 fi
11767 fi
11768 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11769 conftest$ac_exeext conftest.$ac_ext
11770 LDFLAGS=$save_LDFLAGS
11771 libdir=$save_libdir
11772
11773 fi
11774
11775 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11776
11777 # This implies no fast_install, which is unacceptable.
11778 # Some rework will be needed to allow for fast_install
11779 # before this can be enabled.
11780 hardcode_into_libs=yes
11781
11782 # Ideally, we could use ldconfig to report *all* directores which are
11783 # searched for libraries, however this is still not possible. Aside from not
11784 # being certain /sbin/ldconfig is available, command
11785 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
11786 # even though it is searched at run-time. Try to do the best guess by
11787 # appending ld.so.conf contents (and includes) to the search path.
11788 if test -f /etc/ld.so.conf; then
11789 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' ' '`
11790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11791 fi
11792
11793 # We used to test for /lib/ld.so.1 and disable shared libraries on
11794 # powerpc, because MkLinux only supported shared libraries with the
11795 # GNU dynamic linker. Since this was broken with cross compilers,
11796 # most powerpc-linux boxes support dynamic linking these days and
11797 # people can always --disable-shared, the test was removed, and we
11798 # assume the GNU/Linux dynamic linker is in use.
11799 dynamic_linker='GNU/Linux ld.so'
11800 ;;
11801
11802 netbsd*)
11803 version_type=sunos
11804 need_lib_prefix=no
11805 need_version=no
11806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11807 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11809 dynamic_linker='NetBSD (a.out) ld.so'
11810 else
11811 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11812 soname_spec='$libname$release$shared_ext$major'
11813 dynamic_linker='NetBSD ld.elf_so'
11814 fi
11815 shlibpath_var=LD_LIBRARY_PATH
11816 shlibpath_overrides_runpath=yes
11817 hardcode_into_libs=yes
11818 ;;
11819
11820 newsos6)
11821 version_type=linux # correct to gnu/linux during the next big refactor
11822 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11823 shlibpath_var=LD_LIBRARY_PATH
11824 shlibpath_overrides_runpath=yes
11825 ;;
11826
11827 *nto* | *qnx*)
11828 version_type=qnx
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11832 soname_spec='$libname$release$shared_ext$major'
11833 shlibpath_var=LD_LIBRARY_PATH
11834 shlibpath_overrides_runpath=no
11835 hardcode_into_libs=yes
11836 dynamic_linker='ldqnx.so'
11837 ;;
11838
11839 openbsd* | bitrig*)
11840 version_type=sunos
11841 sys_lib_dlsearch_path_spec=/usr/lib
11842 need_lib_prefix=no
11843 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11844 need_version=no
11845 else
11846 need_version=yes
11847 fi
11848 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11850 shlibpath_var=LD_LIBRARY_PATH
11851 shlibpath_overrides_runpath=yes
11852 ;;
11853
11854 os2*)
11855 libname_spec='$name'
11856 version_type=windows
11857 shrext_cmds=.dll
11858 need_version=no
11859 need_lib_prefix=no
11860 # OS/2 can only load a DLL with a base name of 8 characters or less.
11861 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
11862 v=$($ECHO $release$versuffix | tr -d .-);
11863 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
11864 $ECHO $n$v`$shared_ext'
11865 library_names_spec='${libname}_dll.$libext'
11866 dynamic_linker='OS/2 ld.exe'
11867 shlibpath_var=BEGINLIBPATH
11868 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11869 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11870 postinstall_cmds='base_file=`basename \$file`~
11871 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
11872 dldir=$destdir/`dirname \$dlpath`~
11873 test -d \$dldir || mkdir -p \$dldir~
11874 $install_prog $dir/$dlname \$dldir/$dlname~
11875 chmod a+x \$dldir/$dlname~
11876 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11877 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11878 fi'
11879 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
11880 dlpath=$dir/\$dldll~
11881 $RM \$dlpath'
11882 ;;
11883
11884 osf3* | osf4* | osf5*)
11885 version_type=osf
11886 need_lib_prefix=no
11887 need_version=no
11888 soname_spec='$libname$release$shared_ext$major'
11889 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11892 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11893 ;;
11894
11895 rdos*)
11896 dynamic_linker=no
11897 ;;
11898
11899 solaris*)
11900 version_type=linux # correct to gnu/linux during the next big refactor
11901 need_lib_prefix=no
11902 need_version=no
11903 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11904 soname_spec='$libname$release$shared_ext$major'
11905 shlibpath_var=LD_LIBRARY_PATH
11906 shlibpath_overrides_runpath=yes
11907 hardcode_into_libs=yes
11908 # ldd complains unless libraries are executable
11909 postinstall_cmds='chmod +x $lib'
11910 ;;
11911
11912 sunos4*)
11913 version_type=sunos
11914 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11915 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11916 shlibpath_var=LD_LIBRARY_PATH
11917 shlibpath_overrides_runpath=yes
11918 if test yes = "$with_gnu_ld"; then
11919 need_lib_prefix=no
11920 fi
11921 need_version=yes
11922 ;;
11923
11924 sysv4 | sysv4.3*)
11925 version_type=linux # correct to gnu/linux during the next big refactor
11926 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11927 soname_spec='$libname$release$shared_ext$major'
11928 shlibpath_var=LD_LIBRARY_PATH
11929 case $host_vendor in
11930 sni)
11931 shlibpath_overrides_runpath=no
11932 need_lib_prefix=no
11933 runpath_var=LD_RUN_PATH
11934 ;;
11935 siemens)
11936 need_lib_prefix=no
11937 ;;
11938 motorola)
11939 need_lib_prefix=no
11940 need_version=no
11941 shlibpath_overrides_runpath=no
11942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11943 ;;
11944 esac
11945 ;;
11946
11947 sysv4*MP*)
11948 if test -d /usr/nec; then
11949 version_type=linux # correct to gnu/linux during the next big refactor
11950 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
11951 soname_spec='$libname$shared_ext.$major'
11952 shlibpath_var=LD_LIBRARY_PATH
11953 fi
11954 ;;
11955
11956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11957 version_type=sco
11958 need_lib_prefix=no
11959 need_version=no
11960 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
11961 soname_spec='$libname$release$shared_ext$major'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=yes
11964 hardcode_into_libs=yes
11965 if test yes = "$with_gnu_ld"; then
11966 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11967 else
11968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11969 case $host_os in
11970 sco3.2v5*)
11971 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11972 ;;
11973 esac
11974 fi
11975 sys_lib_dlsearch_path_spec='/usr/lib'
11976 ;;
11977
11978 tpf*)
11979 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11980 version_type=linux # correct to gnu/linux during the next big refactor
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11984 shlibpath_var=LD_LIBRARY_PATH
11985 shlibpath_overrides_runpath=no
11986 hardcode_into_libs=yes
11987 ;;
11988
11989 uts4*)
11990 version_type=linux # correct to gnu/linux during the next big refactor
11991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11992 soname_spec='$libname$release$shared_ext$major'
11993 shlibpath_var=LD_LIBRARY_PATH
11994 ;;
11995
11996 *)
11997 dynamic_linker=no
11998 ;;
11999 esac
12000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12001 printf "%s\n" "$dynamic_linker" >&6; }
12002 test no = "$dynamic_linker" && can_build_shared=no
12003
12004 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12005 if test yes = "$GCC"; then
12006 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12007 fi
12008
12009 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12010 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12011 fi
12012
12013 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12014 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12015 fi
12016
12017 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12018 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12019
12020 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12021 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12022
12023 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12024 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060
12061
12062
12063
12064
12065
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12123 printf %s "checking how to hardcode library paths into programs... " >&6; }
12124 hardcode_action=
12125 if test -n "$hardcode_libdir_flag_spec" ||
12126 test -n "$runpath_var" ||
12127 test yes = "$hardcode_automatic"; then
12128
12129 # We can hardcode non-existent directories.
12130 if test no != "$hardcode_direct" &&
12131 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12132 # have to relink, otherwise we might link with an installed library
12133 # when we should be linking with a yet-to-be-installed one
12134 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12135 test no != "$hardcode_minus_L"; then
12136 # Linking always hardcodes the temporary library directory.
12137 hardcode_action=relink
12138 else
12139 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12140 hardcode_action=immediate
12141 fi
12142 else
12143 # We cannot hardcode anything, or else we can only hardcode existing
12144 # directories.
12145 hardcode_action=unsupported
12146 fi
12147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12148 printf "%s\n" "$hardcode_action" >&6; }
12149
12150 if test relink = "$hardcode_action" ||
12151 test yes = "$inherit_rpath"; then
12152 # Fast installation is not supported
12153 enable_fast_install=no
12154 elif test yes = "$shlibpath_overrides_runpath" ||
12155 test no = "$enable_shared"; then
12156 # Fast installation is not necessary
12157 enable_fast_install=needless
12158 fi
12159
12160
12161
12162
12163
12164
12165 if test yes != "$enable_dlopen"; then
12166 enable_dlopen=unknown
12167 enable_dlopen_self=unknown
12168 enable_dlopen_self_static=unknown
12169 else
12170 lt_cv_dlopen=no
12171 lt_cv_dlopen_libs=
12172
12173 case $host_os in
12174 beos*)
12175 lt_cv_dlopen=load_add_on
12176 lt_cv_dlopen_libs=
12177 lt_cv_dlopen_self=yes
12178 ;;
12179
12180 mingw* | pw32* | cegcc*)
12181 lt_cv_dlopen=LoadLibrary
12182 lt_cv_dlopen_libs=
12183 ;;
12184
12185 cygwin*)
12186 lt_cv_dlopen=dlopen
12187 lt_cv_dlopen_libs=
12188 ;;
12189
12190 darwin*)
12191 # if libdl is installed we need to link against it
12192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12193 printf %s "checking for dlopen in -ldl... " >&6; }
12194 if test ${ac_cv_lib_dl_dlopen+y}
12195 then :
12196 printf %s "(cached) " >&6
12197 else $as_nop
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-ldl $LIBS"
12200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12201 /* end confdefs.h. */
12202
12203 /* Override any GCC internal prototype to avoid an error.
12204 Use char because int might match the return type of a GCC
12205 builtin and then its argument prototype would still apply.
12206 The 'extern "C"' is for builds by C++ compilers;
12207 although this is not generally supported in C code supporting it here
12208 has little cost and some practical benefit (sr 110532). */
12209 #ifdef __cplusplus
12210 extern "C"
12211 #endif
12212 char dlopen (void);
12213 int
12214 main (void)
12215 {
12216 return dlopen ();
12217 ;
12218 return 0;
12219 }
12220 _ACEOF
12221 if ac_fn_c_try_link "$LINENO"
12222 then :
12223 ac_cv_lib_dl_dlopen=yes
12224 else $as_nop
12225 ac_cv_lib_dl_dlopen=no
12226 fi
12227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12228 conftest$ac_exeext conftest.$ac_ext
12229 LIBS=$ac_check_lib_save_LIBS
12230 fi
12231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12232 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12233 if test "x$ac_cv_lib_dl_dlopen" = xyes
12234 then :
12235 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12236 else $as_nop
12237
12238 lt_cv_dlopen=dyld
12239 lt_cv_dlopen_libs=
12240 lt_cv_dlopen_self=yes
12241
12242 fi
12243
12244 ;;
12245
12246 tpf*)
12247 # Don't try to run any link tests for TPF. We know it's impossible
12248 # because TPF is a cross-compiler, and we know how we open DSOs.
12249 lt_cv_dlopen=dlopen
12250 lt_cv_dlopen_libs=
12251 lt_cv_dlopen_self=no
12252 ;;
12253
12254 *)
12255 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12256 if test "x$ac_cv_func_shl_load" = xyes
12257 then :
12258 lt_cv_dlopen=shl_load
12259 else $as_nop
12260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12261 printf %s "checking for shl_load in -ldld... " >&6; }
12262 if test ${ac_cv_lib_dld_shl_load+y}
12263 then :
12264 printf %s "(cached) " >&6
12265 else $as_nop
12266 ac_check_lib_save_LIBS=$LIBS
12267 LIBS="-ldld $LIBS"
12268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12269 /* end confdefs.h. */
12270
12271 /* Override any GCC internal prototype to avoid an error.
12272 Use char because int might match the return type of a GCC
12273 builtin and then its argument prototype would still apply.
12274 The 'extern "C"' is for builds by C++ compilers;
12275 although this is not generally supported in C code supporting it here
12276 has little cost and some practical benefit (sr 110532). */
12277 #ifdef __cplusplus
12278 extern "C"
12279 #endif
12280 char shl_load (void);
12281 int
12282 main (void)
12283 {
12284 return shl_load ();
12285 ;
12286 return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_link "$LINENO"
12290 then :
12291 ac_cv_lib_dld_shl_load=yes
12292 else $as_nop
12293 ac_cv_lib_dld_shl_load=no
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12296 conftest$ac_exeext conftest.$ac_ext
12297 LIBS=$ac_check_lib_save_LIBS
12298 fi
12299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12300 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12301 if test "x$ac_cv_lib_dld_shl_load" = xyes
12302 then :
12303 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12304 else $as_nop
12305 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12306 if test "x$ac_cv_func_dlopen" = xyes
12307 then :
12308 lt_cv_dlopen=dlopen
12309 else $as_nop
12310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12311 printf %s "checking for dlopen in -ldl... " >&6; }
12312 if test ${ac_cv_lib_dl_dlopen+y}
12313 then :
12314 printf %s "(cached) " >&6
12315 else $as_nop
12316 ac_check_lib_save_LIBS=$LIBS
12317 LIBS="-ldl $LIBS"
12318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12320
12321 /* Override any GCC internal prototype to avoid an error.
12322 Use char because int might match the return type of a GCC
12323 builtin and then its argument prototype would still apply.
12324 The 'extern "C"' is for builds by C++ compilers;
12325 although this is not generally supported in C code supporting it here
12326 has little cost and some practical benefit (sr 110532). */
12327 #ifdef __cplusplus
12328 extern "C"
12329 #endif
12330 char dlopen (void);
12331 int
12332 main (void)
12333 {
12334 return dlopen ();
12335 ;
12336 return 0;
12337 }
12338 _ACEOF
12339 if ac_fn_c_try_link "$LINENO"
12340 then :
12341 ac_cv_lib_dl_dlopen=yes
12342 else $as_nop
12343 ac_cv_lib_dl_dlopen=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12346 conftest$ac_exeext conftest.$ac_ext
12347 LIBS=$ac_check_lib_save_LIBS
12348 fi
12349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12350 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12351 if test "x$ac_cv_lib_dl_dlopen" = xyes
12352 then :
12353 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12354 else $as_nop
12355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12356 printf %s "checking for dlopen in -lsvld... " >&6; }
12357 if test ${ac_cv_lib_svld_dlopen+y}
12358 then :
12359 printf %s "(cached) " >&6
12360 else $as_nop
12361 ac_check_lib_save_LIBS=$LIBS
12362 LIBS="-lsvld $LIBS"
12363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12364 /* end confdefs.h. */
12365
12366 /* Override any GCC internal prototype to avoid an error.
12367 Use char because int might match the return type of a GCC
12368 builtin and then its argument prototype would still apply.
12369 The 'extern "C"' is for builds by C++ compilers;
12370 although this is not generally supported in C code supporting it here
12371 has little cost and some practical benefit (sr 110532). */
12372 #ifdef __cplusplus
12373 extern "C"
12374 #endif
12375 char dlopen (void);
12376 int
12377 main (void)
12378 {
12379 return dlopen ();
12380 ;
12381 return 0;
12382 }
12383 _ACEOF
12384 if ac_fn_c_try_link "$LINENO"
12385 then :
12386 ac_cv_lib_svld_dlopen=yes
12387 else $as_nop
12388 ac_cv_lib_svld_dlopen=no
12389 fi
12390 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12391 conftest$ac_exeext conftest.$ac_ext
12392 LIBS=$ac_check_lib_save_LIBS
12393 fi
12394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12395 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12396 if test "x$ac_cv_lib_svld_dlopen" = xyes
12397 then :
12398 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12399 else $as_nop
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12401 printf %s "checking for dld_link in -ldld... " >&6; }
12402 if test ${ac_cv_lib_dld_dld_link+y}
12403 then :
12404 printf %s "(cached) " >&6
12405 else $as_nop
12406 ac_check_lib_save_LIBS=$LIBS
12407 LIBS="-ldld $LIBS"
12408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12409 /* end confdefs.h. */
12410
12411 /* Override any GCC internal prototype to avoid an error.
12412 Use char because int might match the return type of a GCC
12413 builtin and then its argument prototype would still apply.
12414 The 'extern "C"' is for builds by C++ compilers;
12415 although this is not generally supported in C code supporting it here
12416 has little cost and some practical benefit (sr 110532). */
12417 #ifdef __cplusplus
12418 extern "C"
12419 #endif
12420 char dld_link (void);
12421 int
12422 main (void)
12423 {
12424 return dld_link ();
12425 ;
12426 return 0;
12427 }
12428 _ACEOF
12429 if ac_fn_c_try_link "$LINENO"
12430 then :
12431 ac_cv_lib_dld_dld_link=yes
12432 else $as_nop
12433 ac_cv_lib_dld_dld_link=no
12434 fi
12435 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12436 conftest$ac_exeext conftest.$ac_ext
12437 LIBS=$ac_check_lib_save_LIBS
12438 fi
12439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12440 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12441 if test "x$ac_cv_lib_dld_dld_link" = xyes
12442 then :
12443 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12444 fi
12445
12446
12447 fi
12448
12449
12450 fi
12451
12452
12453 fi
12454
12455
12456 fi
12457
12458
12459 fi
12460
12461 ;;
12462 esac
12463
12464 if test no = "$lt_cv_dlopen"; then
12465 enable_dlopen=no
12466 else
12467 enable_dlopen=yes
12468 fi
12469
12470 case $lt_cv_dlopen in
12471 dlopen)
12472 save_CPPFLAGS=$CPPFLAGS
12473 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12474
12475 save_LDFLAGS=$LDFLAGS
12476 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12477
12478 save_LIBS=$LIBS
12479 LIBS="$lt_cv_dlopen_libs $LIBS"
12480
12481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12482 printf %s "checking whether a program can dlopen itself... " >&6; }
12483 if test ${lt_cv_dlopen_self+y}
12484 then :
12485 printf %s "(cached) " >&6
12486 else $as_nop
12487 if test yes = "$cross_compiling"; then :
12488 lt_cv_dlopen_self=cross
12489 else
12490 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12491 lt_status=$lt_dlunknown
12492 cat > conftest.$ac_ext <<_LT_EOF
12493 #line $LINENO "configure"
12494 #include "confdefs.h"
12495
12496 #if HAVE_DLFCN_H
12497 #include <dlfcn.h>
12498 #endif
12499
12500 #include <stdio.h>
12501
12502 #ifdef RTLD_GLOBAL
12503 # define LT_DLGLOBAL RTLD_GLOBAL
12504 #else
12505 # ifdef DL_GLOBAL
12506 # define LT_DLGLOBAL DL_GLOBAL
12507 # else
12508 # define LT_DLGLOBAL 0
12509 # endif
12510 #endif
12511
12512 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12513 find out it does not work in some platform. */
12514 #ifndef LT_DLLAZY_OR_NOW
12515 # ifdef RTLD_LAZY
12516 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12517 # else
12518 # ifdef DL_LAZY
12519 # define LT_DLLAZY_OR_NOW DL_LAZY
12520 # else
12521 # ifdef RTLD_NOW
12522 # define LT_DLLAZY_OR_NOW RTLD_NOW
12523 # else
12524 # ifdef DL_NOW
12525 # define LT_DLLAZY_OR_NOW DL_NOW
12526 # else
12527 # define LT_DLLAZY_OR_NOW 0
12528 # endif
12529 # endif
12530 # endif
12531 # endif
12532 #endif
12533
12534 /* When -fvisibility=hidden is used, assume the code has been annotated
12535 correspondingly for the symbols needed. */
12536 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12537 int fnord () __attribute__((visibility("default")));
12538 #endif
12539
12540 int fnord () { return 42; }
12541 int main ()
12542 {
12543 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12544 int status = $lt_dlunknown;
12545
12546 if (self)
12547 {
12548 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12549 else
12550 {
12551 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12552 else puts (dlerror ());
12553 }
12554 /* dlclose (self); */
12555 }
12556 else
12557 puts (dlerror ());
12558
12559 return status;
12560 }
12561 _LT_EOF
12562 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12563 (eval $ac_link) 2>&5
12564 ac_status=$?
12565 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12566 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12567 (./conftest; exit; ) >&5 2>/dev/null
12568 lt_status=$?
12569 case x$lt_status in
12570 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12571 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12572 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12573 esac
12574 else :
12575 # compilation failed
12576 lt_cv_dlopen_self=no
12577 fi
12578 fi
12579 rm -fr conftest*
12580
12581
12582 fi
12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12584 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12585
12586 if test yes = "$lt_cv_dlopen_self"; then
12587 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12589 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12590 if test ${lt_cv_dlopen_self_static+y}
12591 then :
12592 printf %s "(cached) " >&6
12593 else $as_nop
12594 if test yes = "$cross_compiling"; then :
12595 lt_cv_dlopen_self_static=cross
12596 else
12597 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12598 lt_status=$lt_dlunknown
12599 cat > conftest.$ac_ext <<_LT_EOF
12600 #line $LINENO "configure"
12601 #include "confdefs.h"
12602
12603 #if HAVE_DLFCN_H
12604 #include <dlfcn.h>
12605 #endif
12606
12607 #include <stdio.h>
12608
12609 #ifdef RTLD_GLOBAL
12610 # define LT_DLGLOBAL RTLD_GLOBAL
12611 #else
12612 # ifdef DL_GLOBAL
12613 # define LT_DLGLOBAL DL_GLOBAL
12614 # else
12615 # define LT_DLGLOBAL 0
12616 # endif
12617 #endif
12618
12619 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12620 find out it does not work in some platform. */
12621 #ifndef LT_DLLAZY_OR_NOW
12622 # ifdef RTLD_LAZY
12623 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12624 # else
12625 # ifdef DL_LAZY
12626 # define LT_DLLAZY_OR_NOW DL_LAZY
12627 # else
12628 # ifdef RTLD_NOW
12629 # define LT_DLLAZY_OR_NOW RTLD_NOW
12630 # else
12631 # ifdef DL_NOW
12632 # define LT_DLLAZY_OR_NOW DL_NOW
12633 # else
12634 # define LT_DLLAZY_OR_NOW 0
12635 # endif
12636 # endif
12637 # endif
12638 # endif
12639 #endif
12640
12641 /* When -fvisibility=hidden is used, assume the code has been annotated
12642 correspondingly for the symbols needed. */
12643 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12644 int fnord () __attribute__((visibility("default")));
12645 #endif
12646
12647 int fnord () { return 42; }
12648 int main ()
12649 {
12650 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12651 int status = $lt_dlunknown;
12652
12653 if (self)
12654 {
12655 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12656 else
12657 {
12658 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12659 else puts (dlerror ());
12660 }
12661 /* dlclose (self); */
12662 }
12663 else
12664 puts (dlerror ());
12665
12666 return status;
12667 }
12668 _LT_EOF
12669 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12670 (eval $ac_link) 2>&5
12671 ac_status=$?
12672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12673 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12674 (./conftest; exit; ) >&5 2>/dev/null
12675 lt_status=$?
12676 case x$lt_status in
12677 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12678 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12679 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12680 esac
12681 else :
12682 # compilation failed
12683 lt_cv_dlopen_self_static=no
12684 fi
12685 fi
12686 rm -fr conftest*
12687
12688
12689 fi
12690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12691 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12692 fi
12693
12694 CPPFLAGS=$save_CPPFLAGS
12695 LDFLAGS=$save_LDFLAGS
12696 LIBS=$save_LIBS
12697 ;;
12698 esac
12699
12700 case $lt_cv_dlopen_self in
12701 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12702 *) enable_dlopen_self=unknown ;;
12703 esac
12704
12705 case $lt_cv_dlopen_self_static in
12706 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12707 *) enable_dlopen_self_static=unknown ;;
12708 esac
12709 fi
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727 striplib=
12728 old_striplib=
12729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12730 printf %s "checking whether stripping libraries is possible... " >&6; }
12731 if test -z "$STRIP"; then
12732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12733 printf "%s\n" "no" >&6; }
12734 else
12735 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12736 old_striplib="$STRIP --strip-debug"
12737 striplib="$STRIP --strip-unneeded"
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12739 printf "%s\n" "yes" >&6; }
12740 else
12741 case $host_os in
12742 darwin*)
12743 # FIXME - insert some real tests, host_os isn't really good enough
12744 striplib="$STRIP -x"
12745 old_striplib="$STRIP -S"
12746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12747 printf "%s\n" "yes" >&6; }
12748 ;;
12749 freebsd*)
12750 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12751 old_striplib="$STRIP --strip-debug"
12752 striplib="$STRIP --strip-unneeded"
12753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12754 printf "%s\n" "yes" >&6; }
12755 else
12756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12757 printf "%s\n" "no" >&6; }
12758 fi
12759 ;;
12760 *)
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12762 printf "%s\n" "no" >&6; }
12763 ;;
12764 esac
12765 fi
12766 fi
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779 # Report what library types will actually be built
12780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12781 printf %s "checking if libtool supports shared libraries... " >&6; }
12782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12783 printf "%s\n" "$can_build_shared" >&6; }
12784
12785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12786 printf %s "checking whether to build shared libraries... " >&6; }
12787 test no = "$can_build_shared" && enable_shared=no
12788
12789 # On AIX, shared libraries and static libraries use the same namespace, and
12790 # are all built from PIC.
12791 case $host_os in
12792 aix3*)
12793 test yes = "$enable_shared" && enable_static=no
12794 if test -n "$RANLIB"; then
12795 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12796 postinstall_cmds='$RANLIB $lib'
12797 fi
12798 ;;
12799
12800 aix[4-9]*)
12801 if test ia64 != "$host_cpu"; then
12802 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
12803 yes,aix,yes) ;; # shared object as lib.so file only
12804 yes,svr4,*) ;; # shared object as lib.so archive member only
12805 yes,*) enable_static=no ;; # shared object in lib.a archive as well
12806 esac
12807 fi
12808 ;;
12809 esac
12810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12811 printf "%s\n" "$enable_shared" >&6; }
12812
12813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12814 printf %s "checking whether to build static libraries... " >&6; }
12815 # Make sure either enable_shared or enable_static is yes.
12816 test yes = "$enable_shared" || enable_static=yes
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12818 printf "%s\n" "$enable_static" >&6; }
12819
12820
12821
12822
12823 fi
12824 ac_ext=c
12825 ac_cpp='$CPP $CPPFLAGS'
12826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12829
12830 CC=$lt_save_CC
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840
12841
12842
12843
12844
12845
12846 ac_config_commands="$ac_config_commands libtool"
12847
12848
12849
12850
12851 # Only expand once:
12852
12853
12854
12855 # Require X.Org macros 1.8 or later
12856
12857
12858
12859
12860
12861
12862
12863
12864
12865
12866
12867
12868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12869 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12870 if test ${ac_cv_c_undeclared_builtin_options+y}
12871 then :
12872 printf %s "(cached) " >&6
12873 else $as_nop
12874 ac_save_CFLAGS=$CFLAGS
12875 ac_cv_c_undeclared_builtin_options='cannot detect'
12876 for ac_arg in '' -fno-builtin; do
12877 CFLAGS="$ac_save_CFLAGS $ac_arg"
12878 # This test program should *not* compile successfully.
12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* end confdefs.h. */
12881
12882 int
12883 main (void)
12884 {
12885 (void) strchr;
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 if ac_fn_c_try_compile "$LINENO"
12891 then :
12892
12893 else $as_nop
12894 # This test program should compile successfully.
12895 # No library function is consistently available on
12896 # freestanding implementations, so test against a dummy
12897 # declaration. Include always-available headers on the
12898 # off chance that they somehow elicit warnings.
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12900 /* end confdefs.h. */
12901 #include <float.h>
12902 #include <limits.h>
12903 #include <stdarg.h>
12904 #include <stddef.h>
12905 extern void ac_decl (int, char *);
12906
12907 int
12908 main (void)
12909 {
12910 (void) ac_decl (0, (char *) 0);
12911 (void) ac_decl;
12912
12913 ;
12914 return 0;
12915 }
12916 _ACEOF
12917 if ac_fn_c_try_compile "$LINENO"
12918 then :
12919 if test x"$ac_arg" = x
12920 then :
12921 ac_cv_c_undeclared_builtin_options='none needed'
12922 else $as_nop
12923 ac_cv_c_undeclared_builtin_options=$ac_arg
12924 fi
12925 break
12926 fi
12927 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12928 fi
12929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12930 done
12931 CFLAGS=$ac_save_CFLAGS
12932
12933 fi
12934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12935 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12936 case $ac_cv_c_undeclared_builtin_options in #(
12937 'cannot detect') :
12938 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12939 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12940 as_fn_error $? "cannot make $CC report undeclared builtins
12941 See \`config.log' for more details" "$LINENO" 5; } ;; #(
12942 'none needed') :
12943 ac_c_undeclared_builtin_options='' ;; #(
12944 *) :
12945 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12946 esac
12947
12948
12949
12950
12951
12952 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12953 if test "x$ac_cv_have_decl___clang__" = xyes
12954 then :
12955 CLANGCC="yes"
12956 else $as_nop
12957 CLANGCC="no"
12958 fi
12959 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12960 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
12961 then :
12962 INTELCC="yes"
12963 else $as_nop
12964 INTELCC="no"
12965 fi
12966 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12967 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
12968 then :
12969 SUNCC="yes"
12970 else $as_nop
12971 SUNCC="no"
12972 fi
12973
12974
12975
12976
12977
12978
12979
12980
12981 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12982 if test -n "$ac_tool_prefix"; then
12983 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12984 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12986 printf %s "checking for $ac_word... " >&6; }
12987 if test ${ac_cv_path_PKG_CONFIG+y}
12988 then :
12989 printf %s "(cached) " >&6
12990 else $as_nop
12991 case $PKG_CONFIG in
12992 [\\/]* | ?:[\\/]*)
12993 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12994 ;;
12995 *)
12996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12997 for as_dir in $PATH
12998 do
12999 IFS=$as_save_IFS
13000 case $as_dir in #(((
13001 '') as_dir=./ ;;
13002 */) ;;
13003 *) as_dir=$as_dir/ ;;
13004 esac
13005 for ac_exec_ext in '' $ac_executable_extensions; do
13006 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13007 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13009 break 2
13010 fi
13011 done
13012 done
13013 IFS=$as_save_IFS
13014
13015 ;;
13016 esac
13017 fi
13018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13019 if test -n "$PKG_CONFIG"; then
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13021 printf "%s\n" "$PKG_CONFIG" >&6; }
13022 else
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13024 printf "%s\n" "no" >&6; }
13025 fi
13026
13027
13028 fi
13029 if test -z "$ac_cv_path_PKG_CONFIG"; then
13030 ac_pt_PKG_CONFIG=$PKG_CONFIG
13031 # Extract the first word of "pkg-config", so it can be a program name with args.
13032 set dummy pkg-config; ac_word=$2
13033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13034 printf %s "checking for $ac_word... " >&6; }
13035 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13036 then :
13037 printf %s "(cached) " >&6
13038 else $as_nop
13039 case $ac_pt_PKG_CONFIG in
13040 [\\/]* | ?:[\\/]*)
13041 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13042 ;;
13043 *)
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13046 do
13047 IFS=$as_save_IFS
13048 case $as_dir in #(((
13049 '') as_dir=./ ;;
13050 */) ;;
13051 *) as_dir=$as_dir/ ;;
13052 esac
13053 for ac_exec_ext in '' $ac_executable_extensions; do
13054 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13055 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13056 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13057 break 2
13058 fi
13059 done
13060 done
13061 IFS=$as_save_IFS
13062
13063 ;;
13064 esac
13065 fi
13066 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13067 if test -n "$ac_pt_PKG_CONFIG"; then
13068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13069 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13070 else
13071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13072 printf "%s\n" "no" >&6; }
13073 fi
13074
13075 if test "x$ac_pt_PKG_CONFIG" = x; then
13076 PKG_CONFIG=""
13077 else
13078 case $cross_compiling:$ac_tool_warned in
13079 yes:)
13080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13081 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13082 ac_tool_warned=yes ;;
13083 esac
13084 PKG_CONFIG=$ac_pt_PKG_CONFIG
13085 fi
13086 else
13087 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13088 fi
13089
13090 fi
13091 if test -n "$PKG_CONFIG"; then
13092 _pkg_min_version=0.9.0
13093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13094 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13095 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13097 printf "%s\n" "yes" >&6; }
13098 else
13099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13100 printf "%s\n" "no" >&6; }
13101 PKG_CONFIG=""
13102 fi
13103 fi
13104
13105
13106
13107
13108
13109 # Check whether --enable-selective-werror was given.
13110 if test ${enable_selective_werror+y}
13111 then :
13112 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13113 else $as_nop
13114 SELECTIVE_WERROR=yes
13115 fi
13116
13117
13118
13119
13120
13121 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13122 if test "x$SUNCC" = "xyes"; then
13123 BASE_CFLAGS="-v"
13124 else
13125 BASE_CFLAGS=""
13126 fi
13127
13128 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142 xorg_testset_save_CFLAGS="$CFLAGS"
13143
13144 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13147 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13148 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13149 then :
13150 printf %s "(cached) " >&6
13151 else $as_nop
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 int i;
13155 _ACEOF
13156 if ac_fn_c_try_compile "$LINENO"
13157 then :
13158 xorg_cv_cc_flag_unknown_warning_option=yes
13159 else $as_nop
13160 xorg_cv_cc_flag_unknown_warning_option=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13163 fi
13164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13165 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13166 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13167 CFLAGS="$xorg_testset_save_CFLAGS"
13168 fi
13169
13170 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13171 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13173 fi
13174 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13176 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13177 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13178 then :
13179 printf %s "(cached) " >&6
13180 else $as_nop
13181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13182 /* end confdefs.h. */
13183 int i;
13184 _ACEOF
13185 if ac_fn_c_try_compile "$LINENO"
13186 then :
13187 xorg_cv_cc_flag_unused_command_line_argument=yes
13188 else $as_nop
13189 xorg_cv_cc_flag_unused_command_line_argument=no
13190 fi
13191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13192 fi
13193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13194 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13195 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13196 CFLAGS="$xorg_testset_save_CFLAGS"
13197 fi
13198
13199 found="no"
13200
13201 if test $found = "no" ; then
13202 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13203 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13204 fi
13205
13206 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13207 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13208 fi
13209
13210 CFLAGS="$CFLAGS -Wall"
13211
13212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13213 printf %s "checking if $CC supports -Wall... " >&6; }
13214 cacheid=xorg_cv_cc_flag__Wall
13215 if eval test \${$cacheid+y}
13216 then :
13217 printf %s "(cached) " >&6
13218 else $as_nop
13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13220 /* end confdefs.h. */
13221 int i;
13222 int
13223 main (void)
13224 {
13225
13226 ;
13227 return 0;
13228 }
13229 _ACEOF
13230 if ac_fn_c_try_link "$LINENO"
13231 then :
13232 eval $cacheid=yes
13233 else $as_nop
13234 eval $cacheid=no
13235 fi
13236 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13237 conftest$ac_exeext conftest.$ac_ext
13238 fi
13239
13240
13241 CFLAGS="$xorg_testset_save_CFLAGS"
13242
13243 eval supported=\$$cacheid
13244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13245 printf "%s\n" "$supported" >&6; }
13246 if test "$supported" = "yes" ; then
13247 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13248 found="yes"
13249 fi
13250 fi
13251
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261
13262
13263
13264
13265
13266 xorg_testset_save_CFLAGS="$CFLAGS"
13267
13268 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13269 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13271 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13272 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13273 then :
13274 printf %s "(cached) " >&6
13275 else $as_nop
13276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13277 /* end confdefs.h. */
13278 int i;
13279 _ACEOF
13280 if ac_fn_c_try_compile "$LINENO"
13281 then :
13282 xorg_cv_cc_flag_unknown_warning_option=yes
13283 else $as_nop
13284 xorg_cv_cc_flag_unknown_warning_option=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13287 fi
13288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13289 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13290 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13291 CFLAGS="$xorg_testset_save_CFLAGS"
13292 fi
13293
13294 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13297 fi
13298 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13300 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13301 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13302 then :
13303 printf %s "(cached) " >&6
13304 else $as_nop
13305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13306 /* end confdefs.h. */
13307 int i;
13308 _ACEOF
13309 if ac_fn_c_try_compile "$LINENO"
13310 then :
13311 xorg_cv_cc_flag_unused_command_line_argument=yes
13312 else $as_nop
13313 xorg_cv_cc_flag_unused_command_line_argument=no
13314 fi
13315 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13316 fi
13317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13318 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13319 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13320 CFLAGS="$xorg_testset_save_CFLAGS"
13321 fi
13322
13323 found="no"
13324
13325 if test $found = "no" ; then
13326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13328 fi
13329
13330 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13332 fi
13333
13334 CFLAGS="$CFLAGS -Wpointer-arith"
13335
13336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13337 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13338 cacheid=xorg_cv_cc_flag__Wpointer_arith
13339 if eval test \${$cacheid+y}
13340 then :
13341 printf %s "(cached) " >&6
13342 else $as_nop
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13345 int i;
13346 int
13347 main (void)
13348 {
13349
13350 ;
13351 return 0;
13352 }
13353 _ACEOF
13354 if ac_fn_c_try_link "$LINENO"
13355 then :
13356 eval $cacheid=yes
13357 else $as_nop
13358 eval $cacheid=no
13359 fi
13360 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13361 conftest$ac_exeext conftest.$ac_ext
13362 fi
13363
13364
13365 CFLAGS="$xorg_testset_save_CFLAGS"
13366
13367 eval supported=\$$cacheid
13368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13369 printf "%s\n" "$supported" >&6; }
13370 if test "$supported" = "yes" ; then
13371 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13372 found="yes"
13373 fi
13374 fi
13375
13376
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390 xorg_testset_save_CFLAGS="$CFLAGS"
13391
13392 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13393 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13395 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13396 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13397 then :
13398 printf %s "(cached) " >&6
13399 else $as_nop
13400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* end confdefs.h. */
13402 int i;
13403 _ACEOF
13404 if ac_fn_c_try_compile "$LINENO"
13405 then :
13406 xorg_cv_cc_flag_unknown_warning_option=yes
13407 else $as_nop
13408 xorg_cv_cc_flag_unknown_warning_option=no
13409 fi
13410 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13411 fi
13412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13413 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13414 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13415 CFLAGS="$xorg_testset_save_CFLAGS"
13416 fi
13417
13418 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13419 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13421 fi
13422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13424 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13425 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13426 then :
13427 printf %s "(cached) " >&6
13428 else $as_nop
13429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13430 /* end confdefs.h. */
13431 int i;
13432 _ACEOF
13433 if ac_fn_c_try_compile "$LINENO"
13434 then :
13435 xorg_cv_cc_flag_unused_command_line_argument=yes
13436 else $as_nop
13437 xorg_cv_cc_flag_unused_command_line_argument=no
13438 fi
13439 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13440 fi
13441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13442 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13443 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13444 CFLAGS="$xorg_testset_save_CFLAGS"
13445 fi
13446
13447 found="no"
13448
13449 if test $found = "no" ; then
13450 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13451 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13452 fi
13453
13454 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13455 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13456 fi
13457
13458 CFLAGS="$CFLAGS -Wmissing-declarations"
13459
13460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13461 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13462 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13463 if eval test \${$cacheid+y}
13464 then :
13465 printf %s "(cached) " >&6
13466 else $as_nop
13467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13468 /* end confdefs.h. */
13469 int i;
13470 int
13471 main (void)
13472 {
13473
13474 ;
13475 return 0;
13476 }
13477 _ACEOF
13478 if ac_fn_c_try_link "$LINENO"
13479 then :
13480 eval $cacheid=yes
13481 else $as_nop
13482 eval $cacheid=no
13483 fi
13484 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13485 conftest$ac_exeext conftest.$ac_ext
13486 fi
13487
13488
13489 CFLAGS="$xorg_testset_save_CFLAGS"
13490
13491 eval supported=\$$cacheid
13492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13493 printf "%s\n" "$supported" >&6; }
13494 if test "$supported" = "yes" ; then
13495 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13496 found="yes"
13497 fi
13498 fi
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514 xorg_testset_save_CFLAGS="$CFLAGS"
13515
13516 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13517 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13519 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13520 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13521 then :
13522 printf %s "(cached) " >&6
13523 else $as_nop
13524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13526 int i;
13527 _ACEOF
13528 if ac_fn_c_try_compile "$LINENO"
13529 then :
13530 xorg_cv_cc_flag_unknown_warning_option=yes
13531 else $as_nop
13532 xorg_cv_cc_flag_unknown_warning_option=no
13533 fi
13534 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13535 fi
13536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13537 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13538 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13539 CFLAGS="$xorg_testset_save_CFLAGS"
13540 fi
13541
13542 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13543 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545 fi
13546 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13548 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13549 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13550 then :
13551 printf %s "(cached) " >&6
13552 else $as_nop
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 int i;
13556 _ACEOF
13557 if ac_fn_c_try_compile "$LINENO"
13558 then :
13559 xorg_cv_cc_flag_unused_command_line_argument=yes
13560 else $as_nop
13561 xorg_cv_cc_flag_unused_command_line_argument=no
13562 fi
13563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13564 fi
13565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13566 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13567 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13568 CFLAGS="$xorg_testset_save_CFLAGS"
13569 fi
13570
13571 found="no"
13572
13573 if test $found = "no" ; then
13574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13576 fi
13577
13578 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13580 fi
13581
13582 CFLAGS="$CFLAGS -Wformat=2"
13583
13584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13585 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13586 cacheid=xorg_cv_cc_flag__Wformat_2
13587 if eval test \${$cacheid+y}
13588 then :
13589 printf %s "(cached) " >&6
13590 else $as_nop
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 int i;
13594 int
13595 main (void)
13596 {
13597
13598 ;
13599 return 0;
13600 }
13601 _ACEOF
13602 if ac_fn_c_try_link "$LINENO"
13603 then :
13604 eval $cacheid=yes
13605 else $as_nop
13606 eval $cacheid=no
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13609 conftest$ac_exeext conftest.$ac_ext
13610 fi
13611
13612
13613 CFLAGS="$xorg_testset_save_CFLAGS"
13614
13615 eval supported=\$$cacheid
13616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13617 printf "%s\n" "$supported" >&6; }
13618 if test "$supported" = "yes" ; then
13619 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13620 found="yes"
13621 fi
13622 fi
13623
13624 if test $found = "no" ; then
13625 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13626 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13627 fi
13628
13629 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13630 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13631 fi
13632
13633 CFLAGS="$CFLAGS -Wformat"
13634
13635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13636 printf %s "checking if $CC supports -Wformat... " >&6; }
13637 cacheid=xorg_cv_cc_flag__Wformat
13638 if eval test \${$cacheid+y}
13639 then :
13640 printf %s "(cached) " >&6
13641 else $as_nop
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 int i;
13645 int
13646 main (void)
13647 {
13648
13649 ;
13650 return 0;
13651 }
13652 _ACEOF
13653 if ac_fn_c_try_link "$LINENO"
13654 then :
13655 eval $cacheid=yes
13656 else $as_nop
13657 eval $cacheid=no
13658 fi
13659 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13660 conftest$ac_exeext conftest.$ac_ext
13661 fi
13662
13663
13664 CFLAGS="$xorg_testset_save_CFLAGS"
13665
13666 eval supported=\$$cacheid
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13668 printf "%s\n" "$supported" >&6; }
13669 if test "$supported" = "yes" ; then
13670 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13671 found="yes"
13672 fi
13673 fi
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691 xorg_testset_save_CFLAGS="$CFLAGS"
13692
13693 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13694 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13696 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13697 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13698 then :
13699 printf %s "(cached) " >&6
13700 else $as_nop
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13703 int i;
13704 _ACEOF
13705 if ac_fn_c_try_compile "$LINENO"
13706 then :
13707 xorg_cv_cc_flag_unknown_warning_option=yes
13708 else $as_nop
13709 xorg_cv_cc_flag_unknown_warning_option=no
13710 fi
13711 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13712 fi
13713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13714 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13715 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13716 CFLAGS="$xorg_testset_save_CFLAGS"
13717 fi
13718
13719 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13722 fi
13723 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13725 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13726 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13727 then :
13728 printf %s "(cached) " >&6
13729 else $as_nop
13730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13731 /* end confdefs.h. */
13732 int i;
13733 _ACEOF
13734 if ac_fn_c_try_compile "$LINENO"
13735 then :
13736 xorg_cv_cc_flag_unused_command_line_argument=yes
13737 else $as_nop
13738 xorg_cv_cc_flag_unused_command_line_argument=no
13739 fi
13740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13741 fi
13742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13743 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13744 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13745 CFLAGS="$xorg_testset_save_CFLAGS"
13746 fi
13747
13748 found="no"
13749
13750 if test $found = "no" ; then
13751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13753 fi
13754
13755 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13756 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13757 fi
13758
13759 CFLAGS="$CFLAGS -Wstrict-prototypes"
13760
13761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13762 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13763 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13764 if eval test \${$cacheid+y}
13765 then :
13766 printf %s "(cached) " >&6
13767 else $as_nop
13768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13769 /* end confdefs.h. */
13770 int i;
13771 int
13772 main (void)
13773 {
13774
13775 ;
13776 return 0;
13777 }
13778 _ACEOF
13779 if ac_fn_c_try_link "$LINENO"
13780 then :
13781 eval $cacheid=yes
13782 else $as_nop
13783 eval $cacheid=no
13784 fi
13785 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13786 conftest$ac_exeext conftest.$ac_ext
13787 fi
13788
13789
13790 CFLAGS="$xorg_testset_save_CFLAGS"
13791
13792 eval supported=\$$cacheid
13793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13794 printf "%s\n" "$supported" >&6; }
13795 if test "$supported" = "yes" ; then
13796 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
13797 found="yes"
13798 fi
13799 fi
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815 xorg_testset_save_CFLAGS="$CFLAGS"
13816
13817 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13818 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13820 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13821 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13822 then :
13823 printf %s "(cached) " >&6
13824 else $as_nop
13825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13826 /* end confdefs.h. */
13827 int i;
13828 _ACEOF
13829 if ac_fn_c_try_compile "$LINENO"
13830 then :
13831 xorg_cv_cc_flag_unknown_warning_option=yes
13832 else $as_nop
13833 xorg_cv_cc_flag_unknown_warning_option=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13836 fi
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13838 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13839 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13840 CFLAGS="$xorg_testset_save_CFLAGS"
13841 fi
13842
13843 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13846 fi
13847 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13849 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13850 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13851 then :
13852 printf %s "(cached) " >&6
13853 else $as_nop
13854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13855 /* end confdefs.h. */
13856 int i;
13857 _ACEOF
13858 if ac_fn_c_try_compile "$LINENO"
13859 then :
13860 xorg_cv_cc_flag_unused_command_line_argument=yes
13861 else $as_nop
13862 xorg_cv_cc_flag_unused_command_line_argument=no
13863 fi
13864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13865 fi
13866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13867 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13868 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13869 CFLAGS="$xorg_testset_save_CFLAGS"
13870 fi
13871
13872 found="no"
13873
13874 if test $found = "no" ; then
13875 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13876 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13877 fi
13878
13879 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13880 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13881 fi
13882
13883 CFLAGS="$CFLAGS -Wmissing-prototypes"
13884
13885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
13886 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
13887 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
13888 if eval test \${$cacheid+y}
13889 then :
13890 printf %s "(cached) " >&6
13891 else $as_nop
13892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13893 /* end confdefs.h. */
13894 int i;
13895 int
13896 main (void)
13897 {
13898
13899 ;
13900 return 0;
13901 }
13902 _ACEOF
13903 if ac_fn_c_try_link "$LINENO"
13904 then :
13905 eval $cacheid=yes
13906 else $as_nop
13907 eval $cacheid=no
13908 fi
13909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13910 conftest$ac_exeext conftest.$ac_ext
13911 fi
13912
13913
13914 CFLAGS="$xorg_testset_save_CFLAGS"
13915
13916 eval supported=\$$cacheid
13917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13918 printf "%s\n" "$supported" >&6; }
13919 if test "$supported" = "yes" ; then
13920 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
13921 found="yes"
13922 fi
13923 fi
13924
13925
13926
13927
13928
13929
13930
13931
13932
13933
13934
13935
13936
13937
13938
13939 xorg_testset_save_CFLAGS="$CFLAGS"
13940
13941 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13942 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13944 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13945 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13946 then :
13947 printf %s "(cached) " >&6
13948 else $as_nop
13949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13950 /* end confdefs.h. */
13951 int i;
13952 _ACEOF
13953 if ac_fn_c_try_compile "$LINENO"
13954 then :
13955 xorg_cv_cc_flag_unknown_warning_option=yes
13956 else $as_nop
13957 xorg_cv_cc_flag_unknown_warning_option=no
13958 fi
13959 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13960 fi
13961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13962 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13963 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13964 CFLAGS="$xorg_testset_save_CFLAGS"
13965 fi
13966
13967 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13970 fi
13971 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13973 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13974 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13975 then :
13976 printf %s "(cached) " >&6
13977 else $as_nop
13978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13979 /* end confdefs.h. */
13980 int i;
13981 _ACEOF
13982 if ac_fn_c_try_compile "$LINENO"
13983 then :
13984 xorg_cv_cc_flag_unused_command_line_argument=yes
13985 else $as_nop
13986 xorg_cv_cc_flag_unused_command_line_argument=no
13987 fi
13988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13989 fi
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13991 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13992 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13993 CFLAGS="$xorg_testset_save_CFLAGS"
13994 fi
13995
13996 found="no"
13997
13998 if test $found = "no" ; then
13999 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14000 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14001 fi
14002
14003 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14004 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14005 fi
14006
14007 CFLAGS="$CFLAGS -Wnested-externs"
14008
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14010 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14011 cacheid=xorg_cv_cc_flag__Wnested_externs
14012 if eval test \${$cacheid+y}
14013 then :
14014 printf %s "(cached) " >&6
14015 else $as_nop
14016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14017 /* end confdefs.h. */
14018 int i;
14019 int
14020 main (void)
14021 {
14022
14023 ;
14024 return 0;
14025 }
14026 _ACEOF
14027 if ac_fn_c_try_link "$LINENO"
14028 then :
14029 eval $cacheid=yes
14030 else $as_nop
14031 eval $cacheid=no
14032 fi
14033 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14034 conftest$ac_exeext conftest.$ac_ext
14035 fi
14036
14037
14038 CFLAGS="$xorg_testset_save_CFLAGS"
14039
14040 eval supported=\$$cacheid
14041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14042 printf "%s\n" "$supported" >&6; }
14043 if test "$supported" = "yes" ; then
14044 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14045 found="yes"
14046 fi
14047 fi
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063 xorg_testset_save_CFLAGS="$CFLAGS"
14064
14065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14068 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14069 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14070 then :
14071 printf %s "(cached) " >&6
14072 else $as_nop
14073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14074 /* end confdefs.h. */
14075 int i;
14076 _ACEOF
14077 if ac_fn_c_try_compile "$LINENO"
14078 then :
14079 xorg_cv_cc_flag_unknown_warning_option=yes
14080 else $as_nop
14081 xorg_cv_cc_flag_unknown_warning_option=no
14082 fi
14083 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14084 fi
14085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14086 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14088 CFLAGS="$xorg_testset_save_CFLAGS"
14089 fi
14090
14091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14094 fi
14095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14097 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14098 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14099 then :
14100 printf %s "(cached) " >&6
14101 else $as_nop
14102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14103 /* end confdefs.h. */
14104 int i;
14105 _ACEOF
14106 if ac_fn_c_try_compile "$LINENO"
14107 then :
14108 xorg_cv_cc_flag_unused_command_line_argument=yes
14109 else $as_nop
14110 xorg_cv_cc_flag_unused_command_line_argument=no
14111 fi
14112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14113 fi
14114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14115 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14116 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14117 CFLAGS="$xorg_testset_save_CFLAGS"
14118 fi
14119
14120 found="no"
14121
14122 if test $found = "no" ; then
14123 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14125 fi
14126
14127 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14128 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14129 fi
14130
14131 CFLAGS="$CFLAGS -Wbad-function-cast"
14132
14133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14134 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14135 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14136 if eval test \${$cacheid+y}
14137 then :
14138 printf %s "(cached) " >&6
14139 else $as_nop
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142 int i;
14143 int
14144 main (void)
14145 {
14146
14147 ;
14148 return 0;
14149 }
14150 _ACEOF
14151 if ac_fn_c_try_link "$LINENO"
14152 then :
14153 eval $cacheid=yes
14154 else $as_nop
14155 eval $cacheid=no
14156 fi
14157 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14158 conftest$ac_exeext conftest.$ac_ext
14159 fi
14160
14161
14162 CFLAGS="$xorg_testset_save_CFLAGS"
14163
14164 eval supported=\$$cacheid
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14166 printf "%s\n" "$supported" >&6; }
14167 if test "$supported" = "yes" ; then
14168 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14169 found="yes"
14170 fi
14171 fi
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187 xorg_testset_save_CFLAGS="$CFLAGS"
14188
14189 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14190 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14192 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14193 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14194 then :
14195 printf %s "(cached) " >&6
14196 else $as_nop
14197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14198 /* end confdefs.h. */
14199 int i;
14200 _ACEOF
14201 if ac_fn_c_try_compile "$LINENO"
14202 then :
14203 xorg_cv_cc_flag_unknown_warning_option=yes
14204 else $as_nop
14205 xorg_cv_cc_flag_unknown_warning_option=no
14206 fi
14207 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14208 fi
14209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14210 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14212 CFLAGS="$xorg_testset_save_CFLAGS"
14213 fi
14214
14215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218 fi
14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14221 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14222 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14223 then :
14224 printf %s "(cached) " >&6
14225 else $as_nop
14226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 int i;
14229 _ACEOF
14230 if ac_fn_c_try_compile "$LINENO"
14231 then :
14232 xorg_cv_cc_flag_unused_command_line_argument=yes
14233 else $as_nop
14234 xorg_cv_cc_flag_unused_command_line_argument=no
14235 fi
14236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14237 fi
14238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14239 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14240 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14241 CFLAGS="$xorg_testset_save_CFLAGS"
14242 fi
14243
14244 found="no"
14245
14246 if test $found = "no" ; then
14247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14249 fi
14250
14251 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14252 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14253 fi
14254
14255 CFLAGS="$CFLAGS -Wold-style-definition"
14256
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14258 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14259 cacheid=xorg_cv_cc_flag__Wold_style_definition
14260 if eval test \${$cacheid+y}
14261 then :
14262 printf %s "(cached) " >&6
14263 else $as_nop
14264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14265 /* end confdefs.h. */
14266 int i;
14267 int
14268 main (void)
14269 {
14270
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"
14276 then :
14277 eval $cacheid=yes
14278 else $as_nop
14279 eval $cacheid=no
14280 fi
14281 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14282 conftest$ac_exeext conftest.$ac_ext
14283 fi
14284
14285
14286 CFLAGS="$xorg_testset_save_CFLAGS"
14287
14288 eval supported=\$$cacheid
14289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14290 printf "%s\n" "$supported" >&6; }
14291 if test "$supported" = "yes" ; then
14292 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14293 found="yes"
14294 fi
14295 fi
14296
14297 if test $found = "no" ; then
14298 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14299 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14300 fi
14301
14302 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14303 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14304 fi
14305
14306 CFLAGS="$CFLAGS -fd"
14307
14308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14309 printf %s "checking if $CC supports -fd... " >&6; }
14310 cacheid=xorg_cv_cc_flag__fd
14311 if eval test \${$cacheid+y}
14312 then :
14313 printf %s "(cached) " >&6
14314 else $as_nop
14315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14316 /* end confdefs.h. */
14317 int i;
14318 int
14319 main (void)
14320 {
14321
14322 ;
14323 return 0;
14324 }
14325 _ACEOF
14326 if ac_fn_c_try_link "$LINENO"
14327 then :
14328 eval $cacheid=yes
14329 else $as_nop
14330 eval $cacheid=no
14331 fi
14332 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14333 conftest$ac_exeext conftest.$ac_ext
14334 fi
14335
14336
14337 CFLAGS="$xorg_testset_save_CFLAGS"
14338
14339 eval supported=\$$cacheid
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14341 printf "%s\n" "$supported" >&6; }
14342 if test "$supported" = "yes" ; then
14343 BASE_CFLAGS="$BASE_CFLAGS -fd"
14344 found="yes"
14345 fi
14346 fi
14347
14348
14349
14350
14351
14352
14353
14354
14355
14356
14357
14358
14359
14360
14361
14362 xorg_testset_save_CFLAGS="$CFLAGS"
14363
14364 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14365 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14367 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14368 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14369 then :
14370 printf %s "(cached) " >&6
14371 else $as_nop
14372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14373 /* end confdefs.h. */
14374 int i;
14375 _ACEOF
14376 if ac_fn_c_try_compile "$LINENO"
14377 then :
14378 xorg_cv_cc_flag_unknown_warning_option=yes
14379 else $as_nop
14380 xorg_cv_cc_flag_unknown_warning_option=no
14381 fi
14382 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14383 fi
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14385 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14386 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14387 CFLAGS="$xorg_testset_save_CFLAGS"
14388 fi
14389
14390 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14391 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14392 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14393 fi
14394 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14396 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14397 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14398 then :
14399 printf %s "(cached) " >&6
14400 else $as_nop
14401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14402 /* end confdefs.h. */
14403 int i;
14404 _ACEOF
14405 if ac_fn_c_try_compile "$LINENO"
14406 then :
14407 xorg_cv_cc_flag_unused_command_line_argument=yes
14408 else $as_nop
14409 xorg_cv_cc_flag_unused_command_line_argument=no
14410 fi
14411 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14412 fi
14413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14414 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14415 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14416 CFLAGS="$xorg_testset_save_CFLAGS"
14417 fi
14418
14419 found="no"
14420
14421 if test $found = "no" ; then
14422 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14423 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14424 fi
14425
14426 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14427 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14428 fi
14429
14430 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14431
14432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14433 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14434 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14435 if eval test \${$cacheid+y}
14436 then :
14437 printf %s "(cached) " >&6
14438 else $as_nop
14439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14440 /* end confdefs.h. */
14441 int i;
14442 int
14443 main (void)
14444 {
14445
14446 ;
14447 return 0;
14448 }
14449 _ACEOF
14450 if ac_fn_c_try_link "$LINENO"
14451 then :
14452 eval $cacheid=yes
14453 else $as_nop
14454 eval $cacheid=no
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14457 conftest$ac_exeext conftest.$ac_ext
14458 fi
14459
14460
14461 CFLAGS="$xorg_testset_save_CFLAGS"
14462
14463 eval supported=\$$cacheid
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14465 printf "%s\n" "$supported" >&6; }
14466 if test "$supported" = "yes" ; then
14467 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14468 found="yes"
14469 fi
14470 fi
14471
14472
14473
14474
14475
14476 # This chunk adds additional warnings that could catch undesired effects.
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486
14487
14488
14489
14490 xorg_testset_save_CFLAGS="$CFLAGS"
14491
14492 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14493 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14495 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14496 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14497 then :
14498 printf %s "(cached) " >&6
14499 else $as_nop
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 int i;
14503 _ACEOF
14504 if ac_fn_c_try_compile "$LINENO"
14505 then :
14506 xorg_cv_cc_flag_unknown_warning_option=yes
14507 else $as_nop
14508 xorg_cv_cc_flag_unknown_warning_option=no
14509 fi
14510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14511 fi
14512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14513 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14514 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14515 CFLAGS="$xorg_testset_save_CFLAGS"
14516 fi
14517
14518 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14519 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14520 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14521 fi
14522 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14524 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14525 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14526 then :
14527 printf %s "(cached) " >&6
14528 else $as_nop
14529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14530 /* end confdefs.h. */
14531 int i;
14532 _ACEOF
14533 if ac_fn_c_try_compile "$LINENO"
14534 then :
14535 xorg_cv_cc_flag_unused_command_line_argument=yes
14536 else $as_nop
14537 xorg_cv_cc_flag_unused_command_line_argument=no
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14540 fi
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14542 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14543 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14544 CFLAGS="$xorg_testset_save_CFLAGS"
14545 fi
14546
14547 found="no"
14548
14549 if test $found = "no" ; then
14550 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14551 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14552 fi
14553
14554 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14555 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14556 fi
14557
14558 CFLAGS="$CFLAGS -Wunused"
14559
14560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14561 printf %s "checking if $CC supports -Wunused... " >&6; }
14562 cacheid=xorg_cv_cc_flag__Wunused
14563 if eval test \${$cacheid+y}
14564 then :
14565 printf %s "(cached) " >&6
14566 else $as_nop
14567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14568 /* end confdefs.h. */
14569 int i;
14570 int
14571 main (void)
14572 {
14573
14574 ;
14575 return 0;
14576 }
14577 _ACEOF
14578 if ac_fn_c_try_link "$LINENO"
14579 then :
14580 eval $cacheid=yes
14581 else $as_nop
14582 eval $cacheid=no
14583 fi
14584 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14585 conftest$ac_exeext conftest.$ac_ext
14586 fi
14587
14588
14589 CFLAGS="$xorg_testset_save_CFLAGS"
14590
14591 eval supported=\$$cacheid
14592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14593 printf "%s\n" "$supported" >&6; }
14594 if test "$supported" = "yes" ; then
14595 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14596 found="yes"
14597 fi
14598 fi
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614 xorg_testset_save_CFLAGS="$CFLAGS"
14615
14616 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14617 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14619 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14620 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14621 then :
14622 printf %s "(cached) " >&6
14623 else $as_nop
14624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14625 /* end confdefs.h. */
14626 int i;
14627 _ACEOF
14628 if ac_fn_c_try_compile "$LINENO"
14629 then :
14630 xorg_cv_cc_flag_unknown_warning_option=yes
14631 else $as_nop
14632 xorg_cv_cc_flag_unknown_warning_option=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14635 fi
14636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14637 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14638 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14639 CFLAGS="$xorg_testset_save_CFLAGS"
14640 fi
14641
14642 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14643 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14644 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14645 fi
14646 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14648 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14649 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14650 then :
14651 printf %s "(cached) " >&6
14652 else $as_nop
14653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14654 /* end confdefs.h. */
14655 int i;
14656 _ACEOF
14657 if ac_fn_c_try_compile "$LINENO"
14658 then :
14659 xorg_cv_cc_flag_unused_command_line_argument=yes
14660 else $as_nop
14661 xorg_cv_cc_flag_unused_command_line_argument=no
14662 fi
14663 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14664 fi
14665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14666 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14667 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14668 CFLAGS="$xorg_testset_save_CFLAGS"
14669 fi
14670
14671 found="no"
14672
14673 if test $found = "no" ; then
14674 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14675 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14676 fi
14677
14678 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14679 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14680 fi
14681
14682 CFLAGS="$CFLAGS -Wuninitialized"
14683
14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14685 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14686 cacheid=xorg_cv_cc_flag__Wuninitialized
14687 if eval test \${$cacheid+y}
14688 then :
14689 printf %s "(cached) " >&6
14690 else $as_nop
14691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14692 /* end confdefs.h. */
14693 int i;
14694 int
14695 main (void)
14696 {
14697
14698 ;
14699 return 0;
14700 }
14701 _ACEOF
14702 if ac_fn_c_try_link "$LINENO"
14703 then :
14704 eval $cacheid=yes
14705 else $as_nop
14706 eval $cacheid=no
14707 fi
14708 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14709 conftest$ac_exeext conftest.$ac_ext
14710 fi
14711
14712
14713 CFLAGS="$xorg_testset_save_CFLAGS"
14714
14715 eval supported=\$$cacheid
14716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14717 printf "%s\n" "$supported" >&6; }
14718 if test "$supported" = "yes" ; then
14719 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14720 found="yes"
14721 fi
14722 fi
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738 xorg_testset_save_CFLAGS="$CFLAGS"
14739
14740 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14741 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14743 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14744 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14745 then :
14746 printf %s "(cached) " >&6
14747 else $as_nop
14748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14749 /* end confdefs.h. */
14750 int i;
14751 _ACEOF
14752 if ac_fn_c_try_compile "$LINENO"
14753 then :
14754 xorg_cv_cc_flag_unknown_warning_option=yes
14755 else $as_nop
14756 xorg_cv_cc_flag_unknown_warning_option=no
14757 fi
14758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14759 fi
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14761 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14762 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14763 CFLAGS="$xorg_testset_save_CFLAGS"
14764 fi
14765
14766 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14769 fi
14770 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14772 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14773 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14774 then :
14775 printf %s "(cached) " >&6
14776 else $as_nop
14777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14778 /* end confdefs.h. */
14779 int i;
14780 _ACEOF
14781 if ac_fn_c_try_compile "$LINENO"
14782 then :
14783 xorg_cv_cc_flag_unused_command_line_argument=yes
14784 else $as_nop
14785 xorg_cv_cc_flag_unused_command_line_argument=no
14786 fi
14787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14788 fi
14789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14790 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14791 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14792 CFLAGS="$xorg_testset_save_CFLAGS"
14793 fi
14794
14795 found="no"
14796
14797 if test $found = "no" ; then
14798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14800 fi
14801
14802 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14803 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14804 fi
14805
14806 CFLAGS="$CFLAGS -Wshadow"
14807
14808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
14809 printf %s "checking if $CC supports -Wshadow... " >&6; }
14810 cacheid=xorg_cv_cc_flag__Wshadow
14811 if eval test \${$cacheid+y}
14812 then :
14813 printf %s "(cached) " >&6
14814 else $as_nop
14815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14816 /* end confdefs.h. */
14817 int i;
14818 int
14819 main (void)
14820 {
14821
14822 ;
14823 return 0;
14824 }
14825 _ACEOF
14826 if ac_fn_c_try_link "$LINENO"
14827 then :
14828 eval $cacheid=yes
14829 else $as_nop
14830 eval $cacheid=no
14831 fi
14832 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14833 conftest$ac_exeext conftest.$ac_ext
14834 fi
14835
14836
14837 CFLAGS="$xorg_testset_save_CFLAGS"
14838
14839 eval supported=\$$cacheid
14840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14841 printf "%s\n" "$supported" >&6; }
14842 if test "$supported" = "yes" ; then
14843 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
14844 found="yes"
14845 fi
14846 fi
14847
14848
14849
14850
14851
14852
14853
14854
14855
14856
14857
14858
14859
14860
14861
14862 xorg_testset_save_CFLAGS="$CFLAGS"
14863
14864 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14865 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14867 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14868 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14869 then :
14870 printf %s "(cached) " >&6
14871 else $as_nop
14872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14873 /* end confdefs.h. */
14874 int i;
14875 _ACEOF
14876 if ac_fn_c_try_compile "$LINENO"
14877 then :
14878 xorg_cv_cc_flag_unknown_warning_option=yes
14879 else $as_nop
14880 xorg_cv_cc_flag_unknown_warning_option=no
14881 fi
14882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14883 fi
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14885 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14886 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14887 CFLAGS="$xorg_testset_save_CFLAGS"
14888 fi
14889
14890 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14893 fi
14894 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14896 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14897 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14898 then :
14899 printf %s "(cached) " >&6
14900 else $as_nop
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14903 int i;
14904 _ACEOF
14905 if ac_fn_c_try_compile "$LINENO"
14906 then :
14907 xorg_cv_cc_flag_unused_command_line_argument=yes
14908 else $as_nop
14909 xorg_cv_cc_flag_unused_command_line_argument=no
14910 fi
14911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14912 fi
14913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14914 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14915 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14916 CFLAGS="$xorg_testset_save_CFLAGS"
14917 fi
14918
14919 found="no"
14920
14921 if test $found = "no" ; then
14922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14924 fi
14925
14926 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14927 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14928 fi
14929
14930 CFLAGS="$CFLAGS -Wmissing-noreturn"
14931
14932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
14933 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
14934 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
14935 if eval test \${$cacheid+y}
14936 then :
14937 printf %s "(cached) " >&6
14938 else $as_nop
14939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14940 /* end confdefs.h. */
14941 int i;
14942 int
14943 main (void)
14944 {
14945
14946 ;
14947 return 0;
14948 }
14949 _ACEOF
14950 if ac_fn_c_try_link "$LINENO"
14951 then :
14952 eval $cacheid=yes
14953 else $as_nop
14954 eval $cacheid=no
14955 fi
14956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14957 conftest$ac_exeext conftest.$ac_ext
14958 fi
14959
14960
14961 CFLAGS="$xorg_testset_save_CFLAGS"
14962
14963 eval supported=\$$cacheid
14964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14965 printf "%s\n" "$supported" >&6; }
14966 if test "$supported" = "yes" ; then
14967 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
14968 found="yes"
14969 fi
14970 fi
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986 xorg_testset_save_CFLAGS="$CFLAGS"
14987
14988 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14989 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14991 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14992 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14993 then :
14994 printf %s "(cached) " >&6
14995 else $as_nop
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 int i;
14999 _ACEOF
15000 if ac_fn_c_try_compile "$LINENO"
15001 then :
15002 xorg_cv_cc_flag_unknown_warning_option=yes
15003 else $as_nop
15004 xorg_cv_cc_flag_unknown_warning_option=no
15005 fi
15006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15007 fi
15008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15009 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15010 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15011 CFLAGS="$xorg_testset_save_CFLAGS"
15012 fi
15013
15014 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15015 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15017 fi
15018 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15020 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15021 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15022 then :
15023 printf %s "(cached) " >&6
15024 else $as_nop
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15026 /* end confdefs.h. */
15027 int i;
15028 _ACEOF
15029 if ac_fn_c_try_compile "$LINENO"
15030 then :
15031 xorg_cv_cc_flag_unused_command_line_argument=yes
15032 else $as_nop
15033 xorg_cv_cc_flag_unused_command_line_argument=no
15034 fi
15035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15036 fi
15037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15038 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15039 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15040 CFLAGS="$xorg_testset_save_CFLAGS"
15041 fi
15042
15043 found="no"
15044
15045 if test $found = "no" ; then
15046 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15047 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15048 fi
15049
15050 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15051 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15052 fi
15053
15054 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15055
15056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15057 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15058 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15059 if eval test \${$cacheid+y}
15060 then :
15061 printf %s "(cached) " >&6
15062 else $as_nop
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15065 int i;
15066 int
15067 main (void)
15068 {
15069
15070 ;
15071 return 0;
15072 }
15073 _ACEOF
15074 if ac_fn_c_try_link "$LINENO"
15075 then :
15076 eval $cacheid=yes
15077 else $as_nop
15078 eval $cacheid=no
15079 fi
15080 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15081 conftest$ac_exeext conftest.$ac_ext
15082 fi
15083
15084
15085 CFLAGS="$xorg_testset_save_CFLAGS"
15086
15087 eval supported=\$$cacheid
15088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15089 printf "%s\n" "$supported" >&6; }
15090 if test "$supported" = "yes" ; then
15091 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15092 found="yes"
15093 fi
15094 fi
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110 xorg_testset_save_CFLAGS="$CFLAGS"
15111
15112 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15115 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15116 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15117 then :
15118 printf %s "(cached) " >&6
15119 else $as_nop
15120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15121 /* end confdefs.h. */
15122 int i;
15123 _ACEOF
15124 if ac_fn_c_try_compile "$LINENO"
15125 then :
15126 xorg_cv_cc_flag_unknown_warning_option=yes
15127 else $as_nop
15128 xorg_cv_cc_flag_unknown_warning_option=no
15129 fi
15130 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15131 fi
15132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15133 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15134 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15135 CFLAGS="$xorg_testset_save_CFLAGS"
15136 fi
15137
15138 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15139 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15140 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15141 fi
15142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15144 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15145 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15146 then :
15147 printf %s "(cached) " >&6
15148 else $as_nop
15149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15150 /* end confdefs.h. */
15151 int i;
15152 _ACEOF
15153 if ac_fn_c_try_compile "$LINENO"
15154 then :
15155 xorg_cv_cc_flag_unused_command_line_argument=yes
15156 else $as_nop
15157 xorg_cv_cc_flag_unused_command_line_argument=no
15158 fi
15159 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15160 fi
15161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15162 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15163 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15164 CFLAGS="$xorg_testset_save_CFLAGS"
15165 fi
15166
15167 found="no"
15168
15169 if test $found = "no" ; then
15170 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15171 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15172 fi
15173
15174 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15175 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15176 fi
15177
15178 CFLAGS="$CFLAGS -Wredundant-decls"
15179
15180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15181 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15182 cacheid=xorg_cv_cc_flag__Wredundant_decls
15183 if eval test \${$cacheid+y}
15184 then :
15185 printf %s "(cached) " >&6
15186 else $as_nop
15187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15188 /* end confdefs.h. */
15189 int i;
15190 int
15191 main (void)
15192 {
15193
15194 ;
15195 return 0;
15196 }
15197 _ACEOF
15198 if ac_fn_c_try_link "$LINENO"
15199 then :
15200 eval $cacheid=yes
15201 else $as_nop
15202 eval $cacheid=no
15203 fi
15204 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15205 conftest$ac_exeext conftest.$ac_ext
15206 fi
15207
15208
15209 CFLAGS="$xorg_testset_save_CFLAGS"
15210
15211 eval supported=\$$cacheid
15212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15213 printf "%s\n" "$supported" >&6; }
15214 if test "$supported" = "yes" ; then
15215 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15216 found="yes"
15217 fi
15218 fi
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234 xorg_testset_save_CFLAGS="$CFLAGS"
15235
15236 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15237 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15239 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15240 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15241 then :
15242 printf %s "(cached) " >&6
15243 else $as_nop
15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15245 /* end confdefs.h. */
15246 int i;
15247 _ACEOF
15248 if ac_fn_c_try_compile "$LINENO"
15249 then :
15250 xorg_cv_cc_flag_unknown_warning_option=yes
15251 else $as_nop
15252 xorg_cv_cc_flag_unknown_warning_option=no
15253 fi
15254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15255 fi
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15257 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15258 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15259 CFLAGS="$xorg_testset_save_CFLAGS"
15260 fi
15261
15262 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15263 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15264 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15265 fi
15266 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15268 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15269 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15270 then :
15271 printf %s "(cached) " >&6
15272 else $as_nop
15273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15274 /* end confdefs.h. */
15275 int i;
15276 _ACEOF
15277 if ac_fn_c_try_compile "$LINENO"
15278 then :
15279 xorg_cv_cc_flag_unused_command_line_argument=yes
15280 else $as_nop
15281 xorg_cv_cc_flag_unused_command_line_argument=no
15282 fi
15283 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15284 fi
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15286 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15287 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15288 CFLAGS="$xorg_testset_save_CFLAGS"
15289 fi
15290
15291 found="no"
15292
15293 if test $found = "no" ; then
15294 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15295 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15296 fi
15297
15298 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15299 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15300 fi
15301
15302 CFLAGS="$CFLAGS -Wlogical-op"
15303
15304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15305 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15306 cacheid=xorg_cv_cc_flag__Wlogical_op
15307 if eval test \${$cacheid+y}
15308 then :
15309 printf %s "(cached) " >&6
15310 else $as_nop
15311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15312 /* end confdefs.h. */
15313 int i;
15314 int
15315 main (void)
15316 {
15317
15318 ;
15319 return 0;
15320 }
15321 _ACEOF
15322 if ac_fn_c_try_link "$LINENO"
15323 then :
15324 eval $cacheid=yes
15325 else $as_nop
15326 eval $cacheid=no
15327 fi
15328 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15329 conftest$ac_exeext conftest.$ac_ext
15330 fi
15331
15332
15333 CFLAGS="$xorg_testset_save_CFLAGS"
15334
15335 eval supported=\$$cacheid
15336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15337 printf "%s\n" "$supported" >&6; }
15338 if test "$supported" = "yes" ; then
15339 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15340 found="yes"
15341 fi
15342 fi
15343
15344
15345
15346 # These are currently disabled because they are noisy. They will be enabled
15347 # in the future once the codebase is sufficiently modernized to silence
15348 # them. For now, I don't want them to drown out the other warnings.
15349 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15350 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15351 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15352
15353 # Turn some warnings into errors, so we don't accidently get successful builds
15354 # when there are problems that should be fixed.
15355
15356 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370 xorg_testset_save_CFLAGS="$CFLAGS"
15371
15372 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15375 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15376 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15377 then :
15378 printf %s "(cached) " >&6
15379 else $as_nop
15380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15381 /* end confdefs.h. */
15382 int i;
15383 _ACEOF
15384 if ac_fn_c_try_compile "$LINENO"
15385 then :
15386 xorg_cv_cc_flag_unknown_warning_option=yes
15387 else $as_nop
15388 xorg_cv_cc_flag_unknown_warning_option=no
15389 fi
15390 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15391 fi
15392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15393 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15394 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15395 CFLAGS="$xorg_testset_save_CFLAGS"
15396 fi
15397
15398 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15399 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15400 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15401 fi
15402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15404 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15405 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15406 then :
15407 printf %s "(cached) " >&6
15408 else $as_nop
15409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15410 /* end confdefs.h. */
15411 int i;
15412 _ACEOF
15413 if ac_fn_c_try_compile "$LINENO"
15414 then :
15415 xorg_cv_cc_flag_unused_command_line_argument=yes
15416 else $as_nop
15417 xorg_cv_cc_flag_unused_command_line_argument=no
15418 fi
15419 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15420 fi
15421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15422 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15423 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15424 CFLAGS="$xorg_testset_save_CFLAGS"
15425 fi
15426
15427 found="no"
15428
15429 if test $found = "no" ; then
15430 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15432 fi
15433
15434 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15435 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15436 fi
15437
15438 CFLAGS="$CFLAGS -Werror=implicit"
15439
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15441 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15442 cacheid=xorg_cv_cc_flag__Werror_implicit
15443 if eval test \${$cacheid+y}
15444 then :
15445 printf %s "(cached) " >&6
15446 else $as_nop
15447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15448 /* end confdefs.h. */
15449 int i;
15450 int
15451 main (void)
15452 {
15453
15454 ;
15455 return 0;
15456 }
15457 _ACEOF
15458 if ac_fn_c_try_link "$LINENO"
15459 then :
15460 eval $cacheid=yes
15461 else $as_nop
15462 eval $cacheid=no
15463 fi
15464 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15465 conftest$ac_exeext conftest.$ac_ext
15466 fi
15467
15468
15469 CFLAGS="$xorg_testset_save_CFLAGS"
15470
15471 eval supported=\$$cacheid
15472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15473 printf "%s\n" "$supported" >&6; }
15474 if test "$supported" = "yes" ; then
15475 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15476 found="yes"
15477 fi
15478 fi
15479
15480 if test $found = "no" ; then
15481 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483 fi
15484
15485 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15486 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15487 fi
15488
15489 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15490
15491 { 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
15492 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15493 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15494 if eval test \${$cacheid+y}
15495 then :
15496 printf %s "(cached) " >&6
15497 else $as_nop
15498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15499 /* end confdefs.h. */
15500 int i;
15501 int
15502 main (void)
15503 {
15504
15505 ;
15506 return 0;
15507 }
15508 _ACEOF
15509 if ac_fn_c_try_link "$LINENO"
15510 then :
15511 eval $cacheid=yes
15512 else $as_nop
15513 eval $cacheid=no
15514 fi
15515 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15516 conftest$ac_exeext conftest.$ac_ext
15517 fi
15518
15519
15520 CFLAGS="$xorg_testset_save_CFLAGS"
15521
15522 eval supported=\$$cacheid
15523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15524 printf "%s\n" "$supported" >&6; }
15525 if test "$supported" = "yes" ; then
15526 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15527 found="yes"
15528 fi
15529 fi
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545 xorg_testset_save_CFLAGS="$CFLAGS"
15546
15547 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15548 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15550 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15551 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15552 then :
15553 printf %s "(cached) " >&6
15554 else $as_nop
15555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15556 /* end confdefs.h. */
15557 int i;
15558 _ACEOF
15559 if ac_fn_c_try_compile "$LINENO"
15560 then :
15561 xorg_cv_cc_flag_unknown_warning_option=yes
15562 else $as_nop
15563 xorg_cv_cc_flag_unknown_warning_option=no
15564 fi
15565 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15566 fi
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15568 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15569 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15570 CFLAGS="$xorg_testset_save_CFLAGS"
15571 fi
15572
15573 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15574 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15575 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15576 fi
15577 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15579 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15580 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15581 then :
15582 printf %s "(cached) " >&6
15583 else $as_nop
15584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* end confdefs.h. */
15586 int i;
15587 _ACEOF
15588 if ac_fn_c_try_compile "$LINENO"
15589 then :
15590 xorg_cv_cc_flag_unused_command_line_argument=yes
15591 else $as_nop
15592 xorg_cv_cc_flag_unused_command_line_argument=no
15593 fi
15594 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15595 fi
15596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15597 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15598 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15599 CFLAGS="$xorg_testset_save_CFLAGS"
15600 fi
15601
15602 found="no"
15603
15604 if test $found = "no" ; then
15605 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15606 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15607 fi
15608
15609 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15610 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15611 fi
15612
15613 CFLAGS="$CFLAGS -Werror=nonnull"
15614
15615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15616 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15617 cacheid=xorg_cv_cc_flag__Werror_nonnull
15618 if eval test \${$cacheid+y}
15619 then :
15620 printf %s "(cached) " >&6
15621 else $as_nop
15622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15623 /* end confdefs.h. */
15624 int i;
15625 int
15626 main (void)
15627 {
15628
15629 ;
15630 return 0;
15631 }
15632 _ACEOF
15633 if ac_fn_c_try_link "$LINENO"
15634 then :
15635 eval $cacheid=yes
15636 else $as_nop
15637 eval $cacheid=no
15638 fi
15639 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15640 conftest$ac_exeext conftest.$ac_ext
15641 fi
15642
15643
15644 CFLAGS="$xorg_testset_save_CFLAGS"
15645
15646 eval supported=\$$cacheid
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15648 printf "%s\n" "$supported" >&6; }
15649 if test "$supported" = "yes" ; then
15650 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15651 found="yes"
15652 fi
15653 fi
15654
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666
15667
15668
15669 xorg_testset_save_CFLAGS="$CFLAGS"
15670
15671 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15672 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15674 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15675 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15676 then :
15677 printf %s "(cached) " >&6
15678 else $as_nop
15679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15680 /* end confdefs.h. */
15681 int i;
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"
15684 then :
15685 xorg_cv_cc_flag_unknown_warning_option=yes
15686 else $as_nop
15687 xorg_cv_cc_flag_unknown_warning_option=no
15688 fi
15689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15690 fi
15691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15692 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15693 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15694 CFLAGS="$xorg_testset_save_CFLAGS"
15695 fi
15696
15697 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15698 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15699 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15700 fi
15701 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15703 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15704 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15705 then :
15706 printf %s "(cached) " >&6
15707 else $as_nop
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 int i;
15711 _ACEOF
15712 if ac_fn_c_try_compile "$LINENO"
15713 then :
15714 xorg_cv_cc_flag_unused_command_line_argument=yes
15715 else $as_nop
15716 xorg_cv_cc_flag_unused_command_line_argument=no
15717 fi
15718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15719 fi
15720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15721 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15722 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15723 CFLAGS="$xorg_testset_save_CFLAGS"
15724 fi
15725
15726 found="no"
15727
15728 if test $found = "no" ; then
15729 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15731 fi
15732
15733 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15734 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15735 fi
15736
15737 CFLAGS="$CFLAGS -Werror=init-self"
15738
15739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15740 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15741 cacheid=xorg_cv_cc_flag__Werror_init_self
15742 if eval test \${$cacheid+y}
15743 then :
15744 printf %s "(cached) " >&6
15745 else $as_nop
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15748 int i;
15749 int
15750 main (void)
15751 {
15752
15753 ;
15754 return 0;
15755 }
15756 _ACEOF
15757 if ac_fn_c_try_link "$LINENO"
15758 then :
15759 eval $cacheid=yes
15760 else $as_nop
15761 eval $cacheid=no
15762 fi
15763 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15764 conftest$ac_exeext conftest.$ac_ext
15765 fi
15766
15767
15768 CFLAGS="$xorg_testset_save_CFLAGS"
15769
15770 eval supported=\$$cacheid
15771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15772 printf "%s\n" "$supported" >&6; }
15773 if test "$supported" = "yes" ; then
15774 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15775 found="yes"
15776 fi
15777 fi
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793 xorg_testset_save_CFLAGS="$CFLAGS"
15794
15795 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15796 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15798 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15799 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15800 then :
15801 printf %s "(cached) " >&6
15802 else $as_nop
15803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805 int i;
15806 _ACEOF
15807 if ac_fn_c_try_compile "$LINENO"
15808 then :
15809 xorg_cv_cc_flag_unknown_warning_option=yes
15810 else $as_nop
15811 xorg_cv_cc_flag_unknown_warning_option=no
15812 fi
15813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15814 fi
15815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15816 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15817 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15818 CFLAGS="$xorg_testset_save_CFLAGS"
15819 fi
15820
15821 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15822 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15823 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15824 fi
15825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15827 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15828 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15829 then :
15830 printf %s "(cached) " >&6
15831 else $as_nop
15832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15833 /* end confdefs.h. */
15834 int i;
15835 _ACEOF
15836 if ac_fn_c_try_compile "$LINENO"
15837 then :
15838 xorg_cv_cc_flag_unused_command_line_argument=yes
15839 else $as_nop
15840 xorg_cv_cc_flag_unused_command_line_argument=no
15841 fi
15842 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15843 fi
15844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15845 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15846 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15847 CFLAGS="$xorg_testset_save_CFLAGS"
15848 fi
15849
15850 found="no"
15851
15852 if test $found = "no" ; then
15853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15855 fi
15856
15857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15859 fi
15860
15861 CFLAGS="$CFLAGS -Werror=main"
15862
15863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
15864 printf %s "checking if $CC supports -Werror=main... " >&6; }
15865 cacheid=xorg_cv_cc_flag__Werror_main
15866 if eval test \${$cacheid+y}
15867 then :
15868 printf %s "(cached) " >&6
15869 else $as_nop
15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15871 /* end confdefs.h. */
15872 int i;
15873 int
15874 main (void)
15875 {
15876
15877 ;
15878 return 0;
15879 }
15880 _ACEOF
15881 if ac_fn_c_try_link "$LINENO"
15882 then :
15883 eval $cacheid=yes
15884 else $as_nop
15885 eval $cacheid=no
15886 fi
15887 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15888 conftest$ac_exeext conftest.$ac_ext
15889 fi
15890
15891
15892 CFLAGS="$xorg_testset_save_CFLAGS"
15893
15894 eval supported=\$$cacheid
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15896 printf "%s\n" "$supported" >&6; }
15897 if test "$supported" = "yes" ; then
15898 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
15899 found="yes"
15900 fi
15901 fi
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917 xorg_testset_save_CFLAGS="$CFLAGS"
15918
15919 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15920 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15922 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15923 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15924 then :
15925 printf %s "(cached) " >&6
15926 else $as_nop
15927 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_unknown_warning_option=yes
15934 else $as_nop
15935 xorg_cv_cc_flag_unknown_warning_option=no
15936 fi
15937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15938 fi
15939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15940 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15941 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15942 CFLAGS="$xorg_testset_save_CFLAGS"
15943 fi
15944
15945 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15946 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15947 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15948 fi
15949 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15951 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15952 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15953 then :
15954 printf %s "(cached) " >&6
15955 else $as_nop
15956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15957 /* end confdefs.h. */
15958 int i;
15959 _ACEOF
15960 if ac_fn_c_try_compile "$LINENO"
15961 then :
15962 xorg_cv_cc_flag_unused_command_line_argument=yes
15963 else $as_nop
15964 xorg_cv_cc_flag_unused_command_line_argument=no
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15967 fi
15968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15969 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15970 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15971 CFLAGS="$xorg_testset_save_CFLAGS"
15972 fi
15973
15974 found="no"
15975
15976 if test $found = "no" ; then
15977 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15978 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15979 fi
15980
15981 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15982 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15983 fi
15984
15985 CFLAGS="$CFLAGS -Werror=missing-braces"
15986
15987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
15988 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
15989 cacheid=xorg_cv_cc_flag__Werror_missing_braces
15990 if eval test \${$cacheid+y}
15991 then :
15992 printf %s "(cached) " >&6
15993 else $as_nop
15994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15995 /* end confdefs.h. */
15996 int i;
15997 int
15998 main (void)
15999 {
16000
16001 ;
16002 return 0;
16003 }
16004 _ACEOF
16005 if ac_fn_c_try_link "$LINENO"
16006 then :
16007 eval $cacheid=yes
16008 else $as_nop
16009 eval $cacheid=no
16010 fi
16011 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16012 conftest$ac_exeext conftest.$ac_ext
16013 fi
16014
16015
16016 CFLAGS="$xorg_testset_save_CFLAGS"
16017
16018 eval supported=\$$cacheid
16019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16020 printf "%s\n" "$supported" >&6; }
16021 if test "$supported" = "yes" ; then
16022 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16023 found="yes"
16024 fi
16025 fi
16026
16027
16028
16029
16030
16031
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041 xorg_testset_save_CFLAGS="$CFLAGS"
16042
16043 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16046 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16047 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16048 then :
16049 printf %s "(cached) " >&6
16050 else $as_nop
16051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16052 /* end confdefs.h. */
16053 int i;
16054 _ACEOF
16055 if ac_fn_c_try_compile "$LINENO"
16056 then :
16057 xorg_cv_cc_flag_unknown_warning_option=yes
16058 else $as_nop
16059 xorg_cv_cc_flag_unknown_warning_option=no
16060 fi
16061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16062 fi
16063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16064 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16065 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16066 CFLAGS="$xorg_testset_save_CFLAGS"
16067 fi
16068
16069 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16070 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16071 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16072 fi
16073 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16075 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16076 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16077 then :
16078 printf %s "(cached) " >&6
16079 else $as_nop
16080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16081 /* end confdefs.h. */
16082 int i;
16083 _ACEOF
16084 if ac_fn_c_try_compile "$LINENO"
16085 then :
16086 xorg_cv_cc_flag_unused_command_line_argument=yes
16087 else $as_nop
16088 xorg_cv_cc_flag_unused_command_line_argument=no
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16091 fi
16092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16093 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16094 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16095 CFLAGS="$xorg_testset_save_CFLAGS"
16096 fi
16097
16098 found="no"
16099
16100 if test $found = "no" ; then
16101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16103 fi
16104
16105 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16107 fi
16108
16109 CFLAGS="$CFLAGS -Werror=sequence-point"
16110
16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16112 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16113 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16114 if eval test \${$cacheid+y}
16115 then :
16116 printf %s "(cached) " >&6
16117 else $as_nop
16118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16119 /* end confdefs.h. */
16120 int i;
16121 int
16122 main (void)
16123 {
16124
16125 ;
16126 return 0;
16127 }
16128 _ACEOF
16129 if ac_fn_c_try_link "$LINENO"
16130 then :
16131 eval $cacheid=yes
16132 else $as_nop
16133 eval $cacheid=no
16134 fi
16135 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16136 conftest$ac_exeext conftest.$ac_ext
16137 fi
16138
16139
16140 CFLAGS="$xorg_testset_save_CFLAGS"
16141
16142 eval supported=\$$cacheid
16143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16144 printf "%s\n" "$supported" >&6; }
16145 if test "$supported" = "yes" ; then
16146 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16147 found="yes"
16148 fi
16149 fi
16150
16151
16152
16153
16154
16155
16156
16157
16158
16159
16160
16161
16162
16163
16164
16165 xorg_testset_save_CFLAGS="$CFLAGS"
16166
16167 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16170 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16171 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16172 then :
16173 printf %s "(cached) " >&6
16174 else $as_nop
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177 int i;
16178 _ACEOF
16179 if ac_fn_c_try_compile "$LINENO"
16180 then :
16181 xorg_cv_cc_flag_unknown_warning_option=yes
16182 else $as_nop
16183 xorg_cv_cc_flag_unknown_warning_option=no
16184 fi
16185 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16186 fi
16187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16188 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16189 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16190 CFLAGS="$xorg_testset_save_CFLAGS"
16191 fi
16192
16193 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16194 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196 fi
16197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16199 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16200 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16201 then :
16202 printf %s "(cached) " >&6
16203 else $as_nop
16204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16205 /* end confdefs.h. */
16206 int i;
16207 _ACEOF
16208 if ac_fn_c_try_compile "$LINENO"
16209 then :
16210 xorg_cv_cc_flag_unused_command_line_argument=yes
16211 else $as_nop
16212 xorg_cv_cc_flag_unused_command_line_argument=no
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16215 fi
16216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16217 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16219 CFLAGS="$xorg_testset_save_CFLAGS"
16220 fi
16221
16222 found="no"
16223
16224 if test $found = "no" ; then
16225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16227 fi
16228
16229 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16231 fi
16232
16233 CFLAGS="$CFLAGS -Werror=return-type"
16234
16235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16236 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16237 cacheid=xorg_cv_cc_flag__Werror_return_type
16238 if eval test \${$cacheid+y}
16239 then :
16240 printf %s "(cached) " >&6
16241 else $as_nop
16242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16243 /* end confdefs.h. */
16244 int i;
16245 int
16246 main (void)
16247 {
16248
16249 ;
16250 return 0;
16251 }
16252 _ACEOF
16253 if ac_fn_c_try_link "$LINENO"
16254 then :
16255 eval $cacheid=yes
16256 else $as_nop
16257 eval $cacheid=no
16258 fi
16259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16260 conftest$ac_exeext conftest.$ac_ext
16261 fi
16262
16263
16264 CFLAGS="$xorg_testset_save_CFLAGS"
16265
16266 eval supported=\$$cacheid
16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16268 printf "%s\n" "$supported" >&6; }
16269 if test "$supported" = "yes" ; then
16270 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16271 found="yes"
16272 fi
16273 fi
16274
16275 if test $found = "no" ; then
16276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16278 fi
16279
16280 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16281 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16282 fi
16283
16284 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16285
16286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16287 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16288 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16289 if eval test \${$cacheid+y}
16290 then :
16291 printf %s "(cached) " >&6
16292 else $as_nop
16293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16294 /* end confdefs.h. */
16295 int i;
16296 int
16297 main (void)
16298 {
16299
16300 ;
16301 return 0;
16302 }
16303 _ACEOF
16304 if ac_fn_c_try_link "$LINENO"
16305 then :
16306 eval $cacheid=yes
16307 else $as_nop
16308 eval $cacheid=no
16309 fi
16310 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16311 conftest$ac_exeext conftest.$ac_ext
16312 fi
16313
16314
16315 CFLAGS="$xorg_testset_save_CFLAGS"
16316
16317 eval supported=\$$cacheid
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16319 printf "%s\n" "$supported" >&6; }
16320 if test "$supported" = "yes" ; then
16321 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16322 found="yes"
16323 fi
16324 fi
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340 xorg_testset_save_CFLAGS="$CFLAGS"
16341
16342 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16345 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16346 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16347 then :
16348 printf %s "(cached) " >&6
16349 else $as_nop
16350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16351 /* end confdefs.h. */
16352 int i;
16353 _ACEOF
16354 if ac_fn_c_try_compile "$LINENO"
16355 then :
16356 xorg_cv_cc_flag_unknown_warning_option=yes
16357 else $as_nop
16358 xorg_cv_cc_flag_unknown_warning_option=no
16359 fi
16360 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16361 fi
16362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16363 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16364 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16365 CFLAGS="$xorg_testset_save_CFLAGS"
16366 fi
16367
16368 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16369 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16370 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16371 fi
16372 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16374 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16375 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16376 then :
16377 printf %s "(cached) " >&6
16378 else $as_nop
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16381 int i;
16382 _ACEOF
16383 if ac_fn_c_try_compile "$LINENO"
16384 then :
16385 xorg_cv_cc_flag_unused_command_line_argument=yes
16386 else $as_nop
16387 xorg_cv_cc_flag_unused_command_line_argument=no
16388 fi
16389 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16390 fi
16391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16392 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16393 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16394 CFLAGS="$xorg_testset_save_CFLAGS"
16395 fi
16396
16397 found="no"
16398
16399 if test $found = "no" ; then
16400 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16401 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16402 fi
16403
16404 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16406 fi
16407
16408 CFLAGS="$CFLAGS -Werror=trigraphs"
16409
16410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16411 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16412 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16413 if eval test \${$cacheid+y}
16414 then :
16415 printf %s "(cached) " >&6
16416 else $as_nop
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* end confdefs.h. */
16419 int i;
16420 int
16421 main (void)
16422 {
16423
16424 ;
16425 return 0;
16426 }
16427 _ACEOF
16428 if ac_fn_c_try_link "$LINENO"
16429 then :
16430 eval $cacheid=yes
16431 else $as_nop
16432 eval $cacheid=no
16433 fi
16434 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16435 conftest$ac_exeext conftest.$ac_ext
16436 fi
16437
16438
16439 CFLAGS="$xorg_testset_save_CFLAGS"
16440
16441 eval supported=\$$cacheid
16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16443 printf "%s\n" "$supported" >&6; }
16444 if test "$supported" = "yes" ; then
16445 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16446 found="yes"
16447 fi
16448 fi
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464 xorg_testset_save_CFLAGS="$CFLAGS"
16465
16466 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16469 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16470 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16471 then :
16472 printf %s "(cached) " >&6
16473 else $as_nop
16474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16475 /* end confdefs.h. */
16476 int i;
16477 _ACEOF
16478 if ac_fn_c_try_compile "$LINENO"
16479 then :
16480 xorg_cv_cc_flag_unknown_warning_option=yes
16481 else $as_nop
16482 xorg_cv_cc_flag_unknown_warning_option=no
16483 fi
16484 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16485 fi
16486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16487 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16488 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16489 CFLAGS="$xorg_testset_save_CFLAGS"
16490 fi
16491
16492 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16493 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16494 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16495 fi
16496 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16498 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16499 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16500 then :
16501 printf %s "(cached) " >&6
16502 else $as_nop
16503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16504 /* end confdefs.h. */
16505 int i;
16506 _ACEOF
16507 if ac_fn_c_try_compile "$LINENO"
16508 then :
16509 xorg_cv_cc_flag_unused_command_line_argument=yes
16510 else $as_nop
16511 xorg_cv_cc_flag_unused_command_line_argument=no
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16514 fi
16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16516 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16517 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16518 CFLAGS="$xorg_testset_save_CFLAGS"
16519 fi
16520
16521 found="no"
16522
16523 if test $found = "no" ; then
16524 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16525 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16526 fi
16527
16528 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16529 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16530 fi
16531
16532 CFLAGS="$CFLAGS -Werror=array-bounds"
16533
16534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16535 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16536 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16537 if eval test \${$cacheid+y}
16538 then :
16539 printf %s "(cached) " >&6
16540 else $as_nop
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16543 int i;
16544 int
16545 main (void)
16546 {
16547
16548 ;
16549 return 0;
16550 }
16551 _ACEOF
16552 if ac_fn_c_try_link "$LINENO"
16553 then :
16554 eval $cacheid=yes
16555 else $as_nop
16556 eval $cacheid=no
16557 fi
16558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16559 conftest$ac_exeext conftest.$ac_ext
16560 fi
16561
16562
16563 CFLAGS="$xorg_testset_save_CFLAGS"
16564
16565 eval supported=\$$cacheid
16566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16567 printf "%s\n" "$supported" >&6; }
16568 if test "$supported" = "yes" ; then
16569 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16570 found="yes"
16571 fi
16572 fi
16573
16574
16575
16576
16577
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588 xorg_testset_save_CFLAGS="$CFLAGS"
16589
16590 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16591 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16593 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16594 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16595 then :
16596 printf %s "(cached) " >&6
16597 else $as_nop
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16600 int i;
16601 _ACEOF
16602 if ac_fn_c_try_compile "$LINENO"
16603 then :
16604 xorg_cv_cc_flag_unknown_warning_option=yes
16605 else $as_nop
16606 xorg_cv_cc_flag_unknown_warning_option=no
16607 fi
16608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16609 fi
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16611 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16612 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16613 CFLAGS="$xorg_testset_save_CFLAGS"
16614 fi
16615
16616 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16617 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16618 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16619 fi
16620 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16622 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16623 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16624 then :
16625 printf %s "(cached) " >&6
16626 else $as_nop
16627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16628 /* end confdefs.h. */
16629 int i;
16630 _ACEOF
16631 if ac_fn_c_try_compile "$LINENO"
16632 then :
16633 xorg_cv_cc_flag_unused_command_line_argument=yes
16634 else $as_nop
16635 xorg_cv_cc_flag_unused_command_line_argument=no
16636 fi
16637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16638 fi
16639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16640 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16641 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16642 CFLAGS="$xorg_testset_save_CFLAGS"
16643 fi
16644
16645 found="no"
16646
16647 if test $found = "no" ; then
16648 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16649 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16650 fi
16651
16652 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16653 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16654 fi
16655
16656 CFLAGS="$CFLAGS -Werror=write-strings"
16657
16658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16659 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16660 cacheid=xorg_cv_cc_flag__Werror_write_strings
16661 if eval test \${$cacheid+y}
16662 then :
16663 printf %s "(cached) " >&6
16664 else $as_nop
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 int i;
16668 int
16669 main (void)
16670 {
16671
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"
16677 then :
16678 eval $cacheid=yes
16679 else $as_nop
16680 eval $cacheid=no
16681 fi
16682 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16683 conftest$ac_exeext conftest.$ac_ext
16684 fi
16685
16686
16687 CFLAGS="$xorg_testset_save_CFLAGS"
16688
16689 eval supported=\$$cacheid
16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16691 printf "%s\n" "$supported" >&6; }
16692 if test "$supported" = "yes" ; then
16693 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16694 found="yes"
16695 fi
16696 fi
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712 xorg_testset_save_CFLAGS="$CFLAGS"
16713
16714 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16715 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16717 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16718 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16719 then :
16720 printf %s "(cached) " >&6
16721 else $as_nop
16722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16723 /* end confdefs.h. */
16724 int i;
16725 _ACEOF
16726 if ac_fn_c_try_compile "$LINENO"
16727 then :
16728 xorg_cv_cc_flag_unknown_warning_option=yes
16729 else $as_nop
16730 xorg_cv_cc_flag_unknown_warning_option=no
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16733 fi
16734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16735 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16736 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16737 CFLAGS="$xorg_testset_save_CFLAGS"
16738 fi
16739
16740 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16741 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16742 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16743 fi
16744 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16746 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16747 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16748 then :
16749 printf %s "(cached) " >&6
16750 else $as_nop
16751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16752 /* end confdefs.h. */
16753 int i;
16754 _ACEOF
16755 if ac_fn_c_try_compile "$LINENO"
16756 then :
16757 xorg_cv_cc_flag_unused_command_line_argument=yes
16758 else $as_nop
16759 xorg_cv_cc_flag_unused_command_line_argument=no
16760 fi
16761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16762 fi
16763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16764 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16765 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16766 CFLAGS="$xorg_testset_save_CFLAGS"
16767 fi
16768
16769 found="no"
16770
16771 if test $found = "no" ; then
16772 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16773 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16774 fi
16775
16776 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16777 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16778 fi
16779
16780 CFLAGS="$CFLAGS -Werror=address"
16781
16782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16783 printf %s "checking if $CC supports -Werror=address... " >&6; }
16784 cacheid=xorg_cv_cc_flag__Werror_address
16785 if eval test \${$cacheid+y}
16786 then :
16787 printf %s "(cached) " >&6
16788 else $as_nop
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 int i;
16792 int
16793 main (void)
16794 {
16795
16796 ;
16797 return 0;
16798 }
16799 _ACEOF
16800 if ac_fn_c_try_link "$LINENO"
16801 then :
16802 eval $cacheid=yes
16803 else $as_nop
16804 eval $cacheid=no
16805 fi
16806 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16807 conftest$ac_exeext conftest.$ac_ext
16808 fi
16809
16810
16811 CFLAGS="$xorg_testset_save_CFLAGS"
16812
16813 eval supported=\$$cacheid
16814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16815 printf "%s\n" "$supported" >&6; }
16816 if test "$supported" = "yes" ; then
16817 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
16818 found="yes"
16819 fi
16820 fi
16821
16822
16823
16824
16825
16826
16827
16828
16829
16830
16831
16832
16833
16834
16835
16836 xorg_testset_save_CFLAGS="$CFLAGS"
16837
16838 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16841 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16842 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16843 then :
16844 printf %s "(cached) " >&6
16845 else $as_nop
16846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16847 /* end confdefs.h. */
16848 int i;
16849 _ACEOF
16850 if ac_fn_c_try_compile "$LINENO"
16851 then :
16852 xorg_cv_cc_flag_unknown_warning_option=yes
16853 else $as_nop
16854 xorg_cv_cc_flag_unknown_warning_option=no
16855 fi
16856 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16857 fi
16858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16859 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16861 CFLAGS="$xorg_testset_save_CFLAGS"
16862 fi
16863
16864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16867 fi
16868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16870 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16871 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16872 then :
16873 printf %s "(cached) " >&6
16874 else $as_nop
16875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16876 /* end confdefs.h. */
16877 int i;
16878 _ACEOF
16879 if ac_fn_c_try_compile "$LINENO"
16880 then :
16881 xorg_cv_cc_flag_unused_command_line_argument=yes
16882 else $as_nop
16883 xorg_cv_cc_flag_unused_command_line_argument=no
16884 fi
16885 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16886 fi
16887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16888 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16890 CFLAGS="$xorg_testset_save_CFLAGS"
16891 fi
16892
16893 found="no"
16894
16895 if test $found = "no" ; then
16896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16898 fi
16899
16900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16902 fi
16903
16904 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
16905
16906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
16907 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
16908 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
16909 if eval test \${$cacheid+y}
16910 then :
16911 printf %s "(cached) " >&6
16912 else $as_nop
16913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16914 /* end confdefs.h. */
16915 int i;
16916 int
16917 main (void)
16918 {
16919
16920 ;
16921 return 0;
16922 }
16923 _ACEOF
16924 if ac_fn_c_try_link "$LINENO"
16925 then :
16926 eval $cacheid=yes
16927 else $as_nop
16928 eval $cacheid=no
16929 fi
16930 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16931 conftest$ac_exeext conftest.$ac_ext
16932 fi
16933
16934
16935 CFLAGS="$xorg_testset_save_CFLAGS"
16936
16937 eval supported=\$$cacheid
16938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16939 printf "%s\n" "$supported" >&6; }
16940 if test "$supported" = "yes" ; then
16941 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
16942 found="yes"
16943 fi
16944 fi
16945
16946 if test $found = "no" ; then
16947 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16949 fi
16950
16951 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16952 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16953 fi
16954
16955 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16956
16957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
16958 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
16959 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
16960 if eval test \${$cacheid+y}
16961 then :
16962 printf %s "(cached) " >&6
16963 else $as_nop
16964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16965 /* end confdefs.h. */
16966 int i;
16967 int
16968 main (void)
16969 {
16970
16971 ;
16972 return 0;
16973 }
16974 _ACEOF
16975 if ac_fn_c_try_link "$LINENO"
16976 then :
16977 eval $cacheid=yes
16978 else $as_nop
16979 eval $cacheid=no
16980 fi
16981 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16982 conftest$ac_exeext conftest.$ac_ext
16983 fi
16984
16985
16986 CFLAGS="$xorg_testset_save_CFLAGS"
16987
16988 eval supported=\$$cacheid
16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16990 printf "%s\n" "$supported" >&6; }
16991 if test "$supported" = "yes" ; then
16992 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
16993 found="yes"
16994 fi
16995 fi
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011 xorg_testset_save_CFLAGS="$CFLAGS"
17012
17013 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17014 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17016 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17017 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17018 then :
17019 printf %s "(cached) " >&6
17020 else $as_nop
17021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17022 /* end confdefs.h. */
17023 int i;
17024 _ACEOF
17025 if ac_fn_c_try_compile "$LINENO"
17026 then :
17027 xorg_cv_cc_flag_unknown_warning_option=yes
17028 else $as_nop
17029 xorg_cv_cc_flag_unknown_warning_option=no
17030 fi
17031 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17032 fi
17033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17034 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17036 CFLAGS="$xorg_testset_save_CFLAGS"
17037 fi
17038
17039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17042 fi
17043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17045 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17046 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17047 then :
17048 printf %s "(cached) " >&6
17049 else $as_nop
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17052 int i;
17053 _ACEOF
17054 if ac_fn_c_try_compile "$LINENO"
17055 then :
17056 xorg_cv_cc_flag_unused_command_line_argument=yes
17057 else $as_nop
17058 xorg_cv_cc_flag_unused_command_line_argument=no
17059 fi
17060 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17061 fi
17062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17063 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17064 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17065 CFLAGS="$xorg_testset_save_CFLAGS"
17066 fi
17067
17068 found="no"
17069
17070 if test $found = "no" ; then
17071 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17073 fi
17074
17075 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17076 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17077 fi
17078
17079 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17080
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17082 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17083 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17084 if eval test \${$cacheid+y}
17085 then :
17086 printf %s "(cached) " >&6
17087 else $as_nop
17088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17089 /* end confdefs.h. */
17090 int i;
17091 int
17092 main (void)
17093 {
17094
17095 ;
17096 return 0;
17097 }
17098 _ACEOF
17099 if ac_fn_c_try_link "$LINENO"
17100 then :
17101 eval $cacheid=yes
17102 else $as_nop
17103 eval $cacheid=no
17104 fi
17105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17106 conftest$ac_exeext conftest.$ac_ext
17107 fi
17108
17109
17110 CFLAGS="$xorg_testset_save_CFLAGS"
17111
17112 eval supported=\$$cacheid
17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17114 printf "%s\n" "$supported" >&6; }
17115 if test "$supported" = "yes" ; then
17116 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17117 found="yes"
17118 fi
17119 fi
17120
17121 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17122 else
17123 { 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
17124 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;}
17125
17126
17127
17128
17129
17130
17131
17132
17133
17134
17135
17136
17137
17138 xorg_testset_save_CFLAGS="$CFLAGS"
17139
17140 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17141 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17143 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17144 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17145 then :
17146 printf %s "(cached) " >&6
17147 else $as_nop
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17150 int i;
17151 _ACEOF
17152 if ac_fn_c_try_compile "$LINENO"
17153 then :
17154 xorg_cv_cc_flag_unknown_warning_option=yes
17155 else $as_nop
17156 xorg_cv_cc_flag_unknown_warning_option=no
17157 fi
17158 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17159 fi
17160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17161 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17162 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17163 CFLAGS="$xorg_testset_save_CFLAGS"
17164 fi
17165
17166 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17167 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17168 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17169 fi
17170 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17172 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17173 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17174 then :
17175 printf %s "(cached) " >&6
17176 else $as_nop
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17179 int i;
17180 _ACEOF
17181 if ac_fn_c_try_compile "$LINENO"
17182 then :
17183 xorg_cv_cc_flag_unused_command_line_argument=yes
17184 else $as_nop
17185 xorg_cv_cc_flag_unused_command_line_argument=no
17186 fi
17187 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17188 fi
17189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17190 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17191 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17192 CFLAGS="$xorg_testset_save_CFLAGS"
17193 fi
17194
17195 found="no"
17196
17197 if test $found = "no" ; then
17198 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17200 fi
17201
17202 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17203 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17204 fi
17205
17206 CFLAGS="$CFLAGS -Wimplicit"
17207
17208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17209 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17210 cacheid=xorg_cv_cc_flag__Wimplicit
17211 if eval test \${$cacheid+y}
17212 then :
17213 printf %s "(cached) " >&6
17214 else $as_nop
17215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17216 /* end confdefs.h. */
17217 int i;
17218 int
17219 main (void)
17220 {
17221
17222 ;
17223 return 0;
17224 }
17225 _ACEOF
17226 if ac_fn_c_try_link "$LINENO"
17227 then :
17228 eval $cacheid=yes
17229 else $as_nop
17230 eval $cacheid=no
17231 fi
17232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17233 conftest$ac_exeext conftest.$ac_ext
17234 fi
17235
17236
17237 CFLAGS="$xorg_testset_save_CFLAGS"
17238
17239 eval supported=\$$cacheid
17240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17241 printf "%s\n" "$supported" >&6; }
17242 if test "$supported" = "yes" ; then
17243 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17244 found="yes"
17245 fi
17246 fi
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262 xorg_testset_save_CFLAGS="$CFLAGS"
17263
17264 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17265 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17267 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17268 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17269 then :
17270 printf %s "(cached) " >&6
17271 else $as_nop
17272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17273 /* end confdefs.h. */
17274 int i;
17275 _ACEOF
17276 if ac_fn_c_try_compile "$LINENO"
17277 then :
17278 xorg_cv_cc_flag_unknown_warning_option=yes
17279 else $as_nop
17280 xorg_cv_cc_flag_unknown_warning_option=no
17281 fi
17282 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17283 fi
17284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17285 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17286 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17287 CFLAGS="$xorg_testset_save_CFLAGS"
17288 fi
17289
17290 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17291 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17292 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17293 fi
17294 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17296 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17297 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17298 then :
17299 printf %s "(cached) " >&6
17300 else $as_nop
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17303 int i;
17304 _ACEOF
17305 if ac_fn_c_try_compile "$LINENO"
17306 then :
17307 xorg_cv_cc_flag_unused_command_line_argument=yes
17308 else $as_nop
17309 xorg_cv_cc_flag_unused_command_line_argument=no
17310 fi
17311 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17312 fi
17313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17314 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17315 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17316 CFLAGS="$xorg_testset_save_CFLAGS"
17317 fi
17318
17319 found="no"
17320
17321 if test $found = "no" ; then
17322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17324 fi
17325
17326 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17327 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17328 fi
17329
17330 CFLAGS="$CFLAGS -Wnonnull"
17331
17332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17333 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17334 cacheid=xorg_cv_cc_flag__Wnonnull
17335 if eval test \${$cacheid+y}
17336 then :
17337 printf %s "(cached) " >&6
17338 else $as_nop
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17341 int i;
17342 int
17343 main (void)
17344 {
17345
17346 ;
17347 return 0;
17348 }
17349 _ACEOF
17350 if ac_fn_c_try_link "$LINENO"
17351 then :
17352 eval $cacheid=yes
17353 else $as_nop
17354 eval $cacheid=no
17355 fi
17356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17357 conftest$ac_exeext conftest.$ac_ext
17358 fi
17359
17360
17361 CFLAGS="$xorg_testset_save_CFLAGS"
17362
17363 eval supported=\$$cacheid
17364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17365 printf "%s\n" "$supported" >&6; }
17366 if test "$supported" = "yes" ; then
17367 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17368 found="yes"
17369 fi
17370 fi
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386 xorg_testset_save_CFLAGS="$CFLAGS"
17387
17388 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17391 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17392 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17393 then :
17394 printf %s "(cached) " >&6
17395 else $as_nop
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17398 int i;
17399 _ACEOF
17400 if ac_fn_c_try_compile "$LINENO"
17401 then :
17402 xorg_cv_cc_flag_unknown_warning_option=yes
17403 else $as_nop
17404 xorg_cv_cc_flag_unknown_warning_option=no
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17407 fi
17408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17409 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17410 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17411 CFLAGS="$xorg_testset_save_CFLAGS"
17412 fi
17413
17414 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17417 fi
17418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17420 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17421 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17422 then :
17423 printf %s "(cached) " >&6
17424 else $as_nop
17425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17426 /* end confdefs.h. */
17427 int i;
17428 _ACEOF
17429 if ac_fn_c_try_compile "$LINENO"
17430 then :
17431 xorg_cv_cc_flag_unused_command_line_argument=yes
17432 else $as_nop
17433 xorg_cv_cc_flag_unused_command_line_argument=no
17434 fi
17435 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17436 fi
17437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17438 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17439 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17440 CFLAGS="$xorg_testset_save_CFLAGS"
17441 fi
17442
17443 found="no"
17444
17445 if test $found = "no" ; then
17446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448 fi
17449
17450 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17452 fi
17453
17454 CFLAGS="$CFLAGS -Winit-self"
17455
17456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17457 printf %s "checking if $CC supports -Winit-self... " >&6; }
17458 cacheid=xorg_cv_cc_flag__Winit_self
17459 if eval test \${$cacheid+y}
17460 then :
17461 printf %s "(cached) " >&6
17462 else $as_nop
17463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17464 /* end confdefs.h. */
17465 int i;
17466 int
17467 main (void)
17468 {
17469
17470 ;
17471 return 0;
17472 }
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"
17475 then :
17476 eval $cacheid=yes
17477 else $as_nop
17478 eval $cacheid=no
17479 fi
17480 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17481 conftest$ac_exeext conftest.$ac_ext
17482 fi
17483
17484
17485 CFLAGS="$xorg_testset_save_CFLAGS"
17486
17487 eval supported=\$$cacheid
17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17489 printf "%s\n" "$supported" >&6; }
17490 if test "$supported" = "yes" ; then
17491 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17492 found="yes"
17493 fi
17494 fi
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507
17508
17509
17510 xorg_testset_save_CFLAGS="$CFLAGS"
17511
17512 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17513 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17515 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17516 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17517 then :
17518 printf %s "(cached) " >&6
17519 else $as_nop
17520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17521 /* end confdefs.h. */
17522 int i;
17523 _ACEOF
17524 if ac_fn_c_try_compile "$LINENO"
17525 then :
17526 xorg_cv_cc_flag_unknown_warning_option=yes
17527 else $as_nop
17528 xorg_cv_cc_flag_unknown_warning_option=no
17529 fi
17530 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17531 fi
17532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17533 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17534 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17535 CFLAGS="$xorg_testset_save_CFLAGS"
17536 fi
17537
17538 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17539 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17540 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17541 fi
17542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17544 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17545 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17546 then :
17547 printf %s "(cached) " >&6
17548 else $as_nop
17549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h. */
17551 int i;
17552 _ACEOF
17553 if ac_fn_c_try_compile "$LINENO"
17554 then :
17555 xorg_cv_cc_flag_unused_command_line_argument=yes
17556 else $as_nop
17557 xorg_cv_cc_flag_unused_command_line_argument=no
17558 fi
17559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17560 fi
17561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17562 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17563 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17564 CFLAGS="$xorg_testset_save_CFLAGS"
17565 fi
17566
17567 found="no"
17568
17569 if test $found = "no" ; then
17570 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17571 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17572 fi
17573
17574 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17575 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17576 fi
17577
17578 CFLAGS="$CFLAGS -Wmain"
17579
17580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17581 printf %s "checking if $CC supports -Wmain... " >&6; }
17582 cacheid=xorg_cv_cc_flag__Wmain
17583 if eval test \${$cacheid+y}
17584 then :
17585 printf %s "(cached) " >&6
17586 else $as_nop
17587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17588 /* end confdefs.h. */
17589 int i;
17590 int
17591 main (void)
17592 {
17593
17594 ;
17595 return 0;
17596 }
17597 _ACEOF
17598 if ac_fn_c_try_link "$LINENO"
17599 then :
17600 eval $cacheid=yes
17601 else $as_nop
17602 eval $cacheid=no
17603 fi
17604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17605 conftest$ac_exeext conftest.$ac_ext
17606 fi
17607
17608
17609 CFLAGS="$xorg_testset_save_CFLAGS"
17610
17611 eval supported=\$$cacheid
17612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17613 printf "%s\n" "$supported" >&6; }
17614 if test "$supported" = "yes" ; then
17615 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17616 found="yes"
17617 fi
17618 fi
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634 xorg_testset_save_CFLAGS="$CFLAGS"
17635
17636 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17637 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17639 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17640 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17641 then :
17642 printf %s "(cached) " >&6
17643 else $as_nop
17644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17645 /* end confdefs.h. */
17646 int i;
17647 _ACEOF
17648 if ac_fn_c_try_compile "$LINENO"
17649 then :
17650 xorg_cv_cc_flag_unknown_warning_option=yes
17651 else $as_nop
17652 xorg_cv_cc_flag_unknown_warning_option=no
17653 fi
17654 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17655 fi
17656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17657 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17658 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17659 CFLAGS="$xorg_testset_save_CFLAGS"
17660 fi
17661
17662 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17663 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17664 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17665 fi
17666 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17668 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17669 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17670 then :
17671 printf %s "(cached) " >&6
17672 else $as_nop
17673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17674 /* end confdefs.h. */
17675 int i;
17676 _ACEOF
17677 if ac_fn_c_try_compile "$LINENO"
17678 then :
17679 xorg_cv_cc_flag_unused_command_line_argument=yes
17680 else $as_nop
17681 xorg_cv_cc_flag_unused_command_line_argument=no
17682 fi
17683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17684 fi
17685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17686 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17687 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17688 CFLAGS="$xorg_testset_save_CFLAGS"
17689 fi
17690
17691 found="no"
17692
17693 if test $found = "no" ; then
17694 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17695 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17696 fi
17697
17698 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17699 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17700 fi
17701
17702 CFLAGS="$CFLAGS -Wmissing-braces"
17703
17704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17705 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17706 cacheid=xorg_cv_cc_flag__Wmissing_braces
17707 if eval test \${$cacheid+y}
17708 then :
17709 printf %s "(cached) " >&6
17710 else $as_nop
17711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17712 /* end confdefs.h. */
17713 int i;
17714 int
17715 main (void)
17716 {
17717
17718 ;
17719 return 0;
17720 }
17721 _ACEOF
17722 if ac_fn_c_try_link "$LINENO"
17723 then :
17724 eval $cacheid=yes
17725 else $as_nop
17726 eval $cacheid=no
17727 fi
17728 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17729 conftest$ac_exeext conftest.$ac_ext
17730 fi
17731
17732
17733 CFLAGS="$xorg_testset_save_CFLAGS"
17734
17735 eval supported=\$$cacheid
17736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17737 printf "%s\n" "$supported" >&6; }
17738 if test "$supported" = "yes" ; then
17739 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17740 found="yes"
17741 fi
17742 fi
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758 xorg_testset_save_CFLAGS="$CFLAGS"
17759
17760 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17761 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17763 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17764 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17765 then :
17766 printf %s "(cached) " >&6
17767 else $as_nop
17768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17769 /* end confdefs.h. */
17770 int i;
17771 _ACEOF
17772 if ac_fn_c_try_compile "$LINENO"
17773 then :
17774 xorg_cv_cc_flag_unknown_warning_option=yes
17775 else $as_nop
17776 xorg_cv_cc_flag_unknown_warning_option=no
17777 fi
17778 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17779 fi
17780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17781 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17782 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17783 CFLAGS="$xorg_testset_save_CFLAGS"
17784 fi
17785
17786 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17787 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17788 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17789 fi
17790 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17792 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17793 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17794 then :
17795 printf %s "(cached) " >&6
17796 else $as_nop
17797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17798 /* end confdefs.h. */
17799 int i;
17800 _ACEOF
17801 if ac_fn_c_try_compile "$LINENO"
17802 then :
17803 xorg_cv_cc_flag_unused_command_line_argument=yes
17804 else $as_nop
17805 xorg_cv_cc_flag_unused_command_line_argument=no
17806 fi
17807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17808 fi
17809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17810 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17811 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17812 CFLAGS="$xorg_testset_save_CFLAGS"
17813 fi
17814
17815 found="no"
17816
17817 if test $found = "no" ; then
17818 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17819 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17820 fi
17821
17822 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17823 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17824 fi
17825
17826 CFLAGS="$CFLAGS -Wsequence-point"
17827
17828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
17829 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
17830 cacheid=xorg_cv_cc_flag__Wsequence_point
17831 if eval test \${$cacheid+y}
17832 then :
17833 printf %s "(cached) " >&6
17834 else $as_nop
17835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17836 /* end confdefs.h. */
17837 int i;
17838 int
17839 main (void)
17840 {
17841
17842 ;
17843 return 0;
17844 }
17845 _ACEOF
17846 if ac_fn_c_try_link "$LINENO"
17847 then :
17848 eval $cacheid=yes
17849 else $as_nop
17850 eval $cacheid=no
17851 fi
17852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17853 conftest$ac_exeext conftest.$ac_ext
17854 fi
17855
17856
17857 CFLAGS="$xorg_testset_save_CFLAGS"
17858
17859 eval supported=\$$cacheid
17860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17861 printf "%s\n" "$supported" >&6; }
17862 if test "$supported" = "yes" ; then
17863 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
17864 found="yes"
17865 fi
17866 fi
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882 xorg_testset_save_CFLAGS="$CFLAGS"
17883
17884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17887 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17888 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17889 then :
17890 printf %s "(cached) " >&6
17891 else $as_nop
17892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17893 /* end confdefs.h. */
17894 int i;
17895 _ACEOF
17896 if ac_fn_c_try_compile "$LINENO"
17897 then :
17898 xorg_cv_cc_flag_unknown_warning_option=yes
17899 else $as_nop
17900 xorg_cv_cc_flag_unknown_warning_option=no
17901 fi
17902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17903 fi
17904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17905 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17906 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17907 CFLAGS="$xorg_testset_save_CFLAGS"
17908 fi
17909
17910 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17911 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17912 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17913 fi
17914 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17916 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17917 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17918 then :
17919 printf %s "(cached) " >&6
17920 else $as_nop
17921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17922 /* end confdefs.h. */
17923 int i;
17924 _ACEOF
17925 if ac_fn_c_try_compile "$LINENO"
17926 then :
17927 xorg_cv_cc_flag_unused_command_line_argument=yes
17928 else $as_nop
17929 xorg_cv_cc_flag_unused_command_line_argument=no
17930 fi
17931 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17932 fi
17933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17934 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17935 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17936 CFLAGS="$xorg_testset_save_CFLAGS"
17937 fi
17938
17939 found="no"
17940
17941 if test $found = "no" ; then
17942 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17943 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17944 fi
17945
17946 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17947 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17948 fi
17949
17950 CFLAGS="$CFLAGS -Wreturn-type"
17951
17952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
17953 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
17954 cacheid=xorg_cv_cc_flag__Wreturn_type
17955 if eval test \${$cacheid+y}
17956 then :
17957 printf %s "(cached) " >&6
17958 else $as_nop
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17961 int i;
17962 int
17963 main (void)
17964 {
17965
17966 ;
17967 return 0;
17968 }
17969 _ACEOF
17970 if ac_fn_c_try_link "$LINENO"
17971 then :
17972 eval $cacheid=yes
17973 else $as_nop
17974 eval $cacheid=no
17975 fi
17976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17977 conftest$ac_exeext conftest.$ac_ext
17978 fi
17979
17980
17981 CFLAGS="$xorg_testset_save_CFLAGS"
17982
17983 eval supported=\$$cacheid
17984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17985 printf "%s\n" "$supported" >&6; }
17986 if test "$supported" = "yes" ; then
17987 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
17988 found="yes"
17989 fi
17990 fi
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006 xorg_testset_save_CFLAGS="$CFLAGS"
18007
18008 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18009 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18011 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18012 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18013 then :
18014 printf %s "(cached) " >&6
18015 else $as_nop
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18018 int i;
18019 _ACEOF
18020 if ac_fn_c_try_compile "$LINENO"
18021 then :
18022 xorg_cv_cc_flag_unknown_warning_option=yes
18023 else $as_nop
18024 xorg_cv_cc_flag_unknown_warning_option=no
18025 fi
18026 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18027 fi
18028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18029 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18030 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18031 CFLAGS="$xorg_testset_save_CFLAGS"
18032 fi
18033
18034 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18035 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18036 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18037 fi
18038 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18040 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18041 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18042 then :
18043 printf %s "(cached) " >&6
18044 else $as_nop
18045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18046 /* end confdefs.h. */
18047 int i;
18048 _ACEOF
18049 if ac_fn_c_try_compile "$LINENO"
18050 then :
18051 xorg_cv_cc_flag_unused_command_line_argument=yes
18052 else $as_nop
18053 xorg_cv_cc_flag_unused_command_line_argument=no
18054 fi
18055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18056 fi
18057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18058 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18059 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18060 CFLAGS="$xorg_testset_save_CFLAGS"
18061 fi
18062
18063 found="no"
18064
18065 if test $found = "no" ; then
18066 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18067 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18068 fi
18069
18070 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18071 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18072 fi
18073
18074 CFLAGS="$CFLAGS -Wtrigraphs"
18075
18076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18077 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18078 cacheid=xorg_cv_cc_flag__Wtrigraphs
18079 if eval test \${$cacheid+y}
18080 then :
18081 printf %s "(cached) " >&6
18082 else $as_nop
18083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18084 /* end confdefs.h. */
18085 int i;
18086 int
18087 main (void)
18088 {
18089
18090 ;
18091 return 0;
18092 }
18093 _ACEOF
18094 if ac_fn_c_try_link "$LINENO"
18095 then :
18096 eval $cacheid=yes
18097 else $as_nop
18098 eval $cacheid=no
18099 fi
18100 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18101 conftest$ac_exeext conftest.$ac_ext
18102 fi
18103
18104
18105 CFLAGS="$xorg_testset_save_CFLAGS"
18106
18107 eval supported=\$$cacheid
18108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18109 printf "%s\n" "$supported" >&6; }
18110 if test "$supported" = "yes" ; then
18111 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18112 found="yes"
18113 fi
18114 fi
18115
18116
18117
18118
18119
18120
18121
18122
18123
18124
18125
18126
18127
18128
18129
18130 xorg_testset_save_CFLAGS="$CFLAGS"
18131
18132 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18135 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18136 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18137 then :
18138 printf %s "(cached) " >&6
18139 else $as_nop
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18142 int i;
18143 _ACEOF
18144 if ac_fn_c_try_compile "$LINENO"
18145 then :
18146 xorg_cv_cc_flag_unknown_warning_option=yes
18147 else $as_nop
18148 xorg_cv_cc_flag_unknown_warning_option=no
18149 fi
18150 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18151 fi
18152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18153 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18154 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18155 CFLAGS="$xorg_testset_save_CFLAGS"
18156 fi
18157
18158 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18159 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18160 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18161 fi
18162 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18164 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18165 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18166 then :
18167 printf %s "(cached) " >&6
18168 else $as_nop
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18171 int i;
18172 _ACEOF
18173 if ac_fn_c_try_compile "$LINENO"
18174 then :
18175 xorg_cv_cc_flag_unused_command_line_argument=yes
18176 else $as_nop
18177 xorg_cv_cc_flag_unused_command_line_argument=no
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18180 fi
18181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18182 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18184 CFLAGS="$xorg_testset_save_CFLAGS"
18185 fi
18186
18187 found="no"
18188
18189 if test $found = "no" ; then
18190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18192 fi
18193
18194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18196 fi
18197
18198 CFLAGS="$CFLAGS -Warray-bounds"
18199
18200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18201 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18202 cacheid=xorg_cv_cc_flag__Warray_bounds
18203 if eval test \${$cacheid+y}
18204 then :
18205 printf %s "(cached) " >&6
18206 else $as_nop
18207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18208 /* end confdefs.h. */
18209 int i;
18210 int
18211 main (void)
18212 {
18213
18214 ;
18215 return 0;
18216 }
18217 _ACEOF
18218 if ac_fn_c_try_link "$LINENO"
18219 then :
18220 eval $cacheid=yes
18221 else $as_nop
18222 eval $cacheid=no
18223 fi
18224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18225 conftest$ac_exeext conftest.$ac_ext
18226 fi
18227
18228
18229 CFLAGS="$xorg_testset_save_CFLAGS"
18230
18231 eval supported=\$$cacheid
18232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18233 printf "%s\n" "$supported" >&6; }
18234 if test "$supported" = "yes" ; then
18235 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18236 found="yes"
18237 fi
18238 fi
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254 xorg_testset_save_CFLAGS="$CFLAGS"
18255
18256 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18257 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18259 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18260 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18261 then :
18262 printf %s "(cached) " >&6
18263 else $as_nop
18264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18265 /* end confdefs.h. */
18266 int i;
18267 _ACEOF
18268 if ac_fn_c_try_compile "$LINENO"
18269 then :
18270 xorg_cv_cc_flag_unknown_warning_option=yes
18271 else $as_nop
18272 xorg_cv_cc_flag_unknown_warning_option=no
18273 fi
18274 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18275 fi
18276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18277 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18278 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18279 CFLAGS="$xorg_testset_save_CFLAGS"
18280 fi
18281
18282 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18283 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18284 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18285 fi
18286 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18288 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18289 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18290 then :
18291 printf %s "(cached) " >&6
18292 else $as_nop
18293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18294 /* end confdefs.h. */
18295 int i;
18296 _ACEOF
18297 if ac_fn_c_try_compile "$LINENO"
18298 then :
18299 xorg_cv_cc_flag_unused_command_line_argument=yes
18300 else $as_nop
18301 xorg_cv_cc_flag_unused_command_line_argument=no
18302 fi
18303 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18304 fi
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18306 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18307 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18308 CFLAGS="$xorg_testset_save_CFLAGS"
18309 fi
18310
18311 found="no"
18312
18313 if test $found = "no" ; then
18314 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18315 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18316 fi
18317
18318 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18319 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18320 fi
18321
18322 CFLAGS="$CFLAGS -Wwrite-strings"
18323
18324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18325 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18326 cacheid=xorg_cv_cc_flag__Wwrite_strings
18327 if eval test \${$cacheid+y}
18328 then :
18329 printf %s "(cached) " >&6
18330 else $as_nop
18331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18332 /* end confdefs.h. */
18333 int i;
18334 int
18335 main (void)
18336 {
18337
18338 ;
18339 return 0;
18340 }
18341 _ACEOF
18342 if ac_fn_c_try_link "$LINENO"
18343 then :
18344 eval $cacheid=yes
18345 else $as_nop
18346 eval $cacheid=no
18347 fi
18348 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18349 conftest$ac_exeext conftest.$ac_ext
18350 fi
18351
18352
18353 CFLAGS="$xorg_testset_save_CFLAGS"
18354
18355 eval supported=\$$cacheid
18356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18357 printf "%s\n" "$supported" >&6; }
18358 if test "$supported" = "yes" ; then
18359 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18360 found="yes"
18361 fi
18362 fi
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378 xorg_testset_save_CFLAGS="$CFLAGS"
18379
18380 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18381 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18383 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18384 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18385 then :
18386 printf %s "(cached) " >&6
18387 else $as_nop
18388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18389 /* end confdefs.h. */
18390 int i;
18391 _ACEOF
18392 if ac_fn_c_try_compile "$LINENO"
18393 then :
18394 xorg_cv_cc_flag_unknown_warning_option=yes
18395 else $as_nop
18396 xorg_cv_cc_flag_unknown_warning_option=no
18397 fi
18398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18399 fi
18400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18401 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18402 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18403 CFLAGS="$xorg_testset_save_CFLAGS"
18404 fi
18405
18406 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18407 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18408 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18409 fi
18410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18412 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18413 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18414 then :
18415 printf %s "(cached) " >&6
18416 else $as_nop
18417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18418 /* end confdefs.h. */
18419 int i;
18420 _ACEOF
18421 if ac_fn_c_try_compile "$LINENO"
18422 then :
18423 xorg_cv_cc_flag_unused_command_line_argument=yes
18424 else $as_nop
18425 xorg_cv_cc_flag_unused_command_line_argument=no
18426 fi
18427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18428 fi
18429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18430 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18431 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18432 CFLAGS="$xorg_testset_save_CFLAGS"
18433 fi
18434
18435 found="no"
18436
18437 if test $found = "no" ; then
18438 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18439 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18440 fi
18441
18442 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18443 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18444 fi
18445
18446 CFLAGS="$CFLAGS -Waddress"
18447
18448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18449 printf %s "checking if $CC supports -Waddress... " >&6; }
18450 cacheid=xorg_cv_cc_flag__Waddress
18451 if eval test \${$cacheid+y}
18452 then :
18453 printf %s "(cached) " >&6
18454 else $as_nop
18455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18456 /* end confdefs.h. */
18457 int i;
18458 int
18459 main (void)
18460 {
18461
18462 ;
18463 return 0;
18464 }
18465 _ACEOF
18466 if ac_fn_c_try_link "$LINENO"
18467 then :
18468 eval $cacheid=yes
18469 else $as_nop
18470 eval $cacheid=no
18471 fi
18472 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18473 conftest$ac_exeext conftest.$ac_ext
18474 fi
18475
18476
18477 CFLAGS="$xorg_testset_save_CFLAGS"
18478
18479 eval supported=\$$cacheid
18480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18481 printf "%s\n" "$supported" >&6; }
18482 if test "$supported" = "yes" ; then
18483 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18484 found="yes"
18485 fi
18486 fi
18487
18488
18489
18490
18491
18492
18493
18494
18495
18496
18497
18498
18499
18500
18501
18502 xorg_testset_save_CFLAGS="$CFLAGS"
18503
18504 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18505 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18507 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18508 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18509 then :
18510 printf %s "(cached) " >&6
18511 else $as_nop
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18514 int i;
18515 _ACEOF
18516 if ac_fn_c_try_compile "$LINENO"
18517 then :
18518 xorg_cv_cc_flag_unknown_warning_option=yes
18519 else $as_nop
18520 xorg_cv_cc_flag_unknown_warning_option=no
18521 fi
18522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18523 fi
18524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18525 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18526 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18527 CFLAGS="$xorg_testset_save_CFLAGS"
18528 fi
18529
18530 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18533 fi
18534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18536 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18537 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18538 then :
18539 printf %s "(cached) " >&6
18540 else $as_nop
18541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18542 /* end confdefs.h. */
18543 int i;
18544 _ACEOF
18545 if ac_fn_c_try_compile "$LINENO"
18546 then :
18547 xorg_cv_cc_flag_unused_command_line_argument=yes
18548 else $as_nop
18549 xorg_cv_cc_flag_unused_command_line_argument=no
18550 fi
18551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18552 fi
18553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18554 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18555 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18556 CFLAGS="$xorg_testset_save_CFLAGS"
18557 fi
18558
18559 found="no"
18560
18561 if test $found = "no" ; then
18562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18564 fi
18565
18566 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18567 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18568 fi
18569
18570 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18571
18572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18573 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18574 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18575 if eval test \${$cacheid+y}
18576 then :
18577 printf %s "(cached) " >&6
18578 else $as_nop
18579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18580 /* end confdefs.h. */
18581 int i;
18582 int
18583 main (void)
18584 {
18585
18586 ;
18587 return 0;
18588 }
18589 _ACEOF
18590 if ac_fn_c_try_link "$LINENO"
18591 then :
18592 eval $cacheid=yes
18593 else $as_nop
18594 eval $cacheid=no
18595 fi
18596 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18597 conftest$ac_exeext conftest.$ac_ext
18598 fi
18599
18600
18601 CFLAGS="$xorg_testset_save_CFLAGS"
18602
18603 eval supported=\$$cacheid
18604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18605 printf "%s\n" "$supported" >&6; }
18606 if test "$supported" = "yes" ; then
18607 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18608 found="yes"
18609 fi
18610 fi
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622
18623
18624
18625
18626 xorg_testset_save_CFLAGS="$CFLAGS"
18627
18628 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18629 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18631 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18632 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18633 then :
18634 printf %s "(cached) " >&6
18635 else $as_nop
18636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18637 /* end confdefs.h. */
18638 int i;
18639 _ACEOF
18640 if ac_fn_c_try_compile "$LINENO"
18641 then :
18642 xorg_cv_cc_flag_unknown_warning_option=yes
18643 else $as_nop
18644 xorg_cv_cc_flag_unknown_warning_option=no
18645 fi
18646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18647 fi
18648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18649 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18650 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18651 CFLAGS="$xorg_testset_save_CFLAGS"
18652 fi
18653
18654 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18657 fi
18658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18660 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18661 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18662 then :
18663 printf %s "(cached) " >&6
18664 else $as_nop
18665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18666 /* end confdefs.h. */
18667 int i;
18668 _ACEOF
18669 if ac_fn_c_try_compile "$LINENO"
18670 then :
18671 xorg_cv_cc_flag_unused_command_line_argument=yes
18672 else $as_nop
18673 xorg_cv_cc_flag_unused_command_line_argument=no
18674 fi
18675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18676 fi
18677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18678 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18680 CFLAGS="$xorg_testset_save_CFLAGS"
18681 fi
18682
18683 found="no"
18684
18685 if test $found = "no" ; then
18686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18688 fi
18689
18690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18692 fi
18693
18694 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18695
18696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18697 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18698 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18699 if eval test \${$cacheid+y}
18700 then :
18701 printf %s "(cached) " >&6
18702 else $as_nop
18703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18704 /* end confdefs.h. */
18705 int i;
18706 int
18707 main (void)
18708 {
18709
18710 ;
18711 return 0;
18712 }
18713 _ACEOF
18714 if ac_fn_c_try_link "$LINENO"
18715 then :
18716 eval $cacheid=yes
18717 else $as_nop
18718 eval $cacheid=no
18719 fi
18720 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18721 conftest$ac_exeext conftest.$ac_ext
18722 fi
18723
18724
18725 CFLAGS="$xorg_testset_save_CFLAGS"
18726
18727 eval supported=\$$cacheid
18728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18729 printf "%s\n" "$supported" >&6; }
18730 if test "$supported" = "yes" ; then
18731 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18732 found="yes"
18733 fi
18734 fi
18735
18736
18737 fi
18738
18739
18740
18741
18742
18743
18744
18745 CWARNFLAGS="$BASE_CFLAGS"
18746 if test "x$GCC" = xyes ; then
18747 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18748 fi
18749
18750
18751
18752
18753
18754
18755
18756
18757 # Check whether --enable-strict-compilation was given.
18758 if test ${enable_strict_compilation+y}
18759 then :
18760 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18761 else $as_nop
18762 STRICT_COMPILE=no
18763 fi
18764
18765
18766
18767
18768
18769
18770 STRICT_CFLAGS=""
18771
18772
18773
18774
18775
18776
18777
18778
18779
18780
18781
18782
18783
18784 xorg_testset_save_CFLAGS="$CFLAGS"
18785
18786 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18787 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18789 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18790 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18791 then :
18792 printf %s "(cached) " >&6
18793 else $as_nop
18794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18795 /* end confdefs.h. */
18796 int i;
18797 _ACEOF
18798 if ac_fn_c_try_compile "$LINENO"
18799 then :
18800 xorg_cv_cc_flag_unknown_warning_option=yes
18801 else $as_nop
18802 xorg_cv_cc_flag_unknown_warning_option=no
18803 fi
18804 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18805 fi
18806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18807 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18808 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18809 CFLAGS="$xorg_testset_save_CFLAGS"
18810 fi
18811
18812 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18813 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18814 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18815 fi
18816 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18818 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18819 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18820 then :
18821 printf %s "(cached) " >&6
18822 else $as_nop
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18825 int i;
18826 _ACEOF
18827 if ac_fn_c_try_compile "$LINENO"
18828 then :
18829 xorg_cv_cc_flag_unused_command_line_argument=yes
18830 else $as_nop
18831 xorg_cv_cc_flag_unused_command_line_argument=no
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18834 fi
18835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18836 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18837 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18838 CFLAGS="$xorg_testset_save_CFLAGS"
18839 fi
18840
18841 found="no"
18842
18843 if test $found = "no" ; then
18844 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18846 fi
18847
18848 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18849 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18850 fi
18851
18852 CFLAGS="$CFLAGS -pedantic"
18853
18854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
18855 printf %s "checking if $CC supports -pedantic... " >&6; }
18856 cacheid=xorg_cv_cc_flag__pedantic
18857 if eval test \${$cacheid+y}
18858 then :
18859 printf %s "(cached) " >&6
18860 else $as_nop
18861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862 /* end confdefs.h. */
18863 int i;
18864 int
18865 main (void)
18866 {
18867
18868 ;
18869 return 0;
18870 }
18871 _ACEOF
18872 if ac_fn_c_try_link "$LINENO"
18873 then :
18874 eval $cacheid=yes
18875 else $as_nop
18876 eval $cacheid=no
18877 fi
18878 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18879 conftest$ac_exeext conftest.$ac_ext
18880 fi
18881
18882
18883 CFLAGS="$xorg_testset_save_CFLAGS"
18884
18885 eval supported=\$$cacheid
18886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18887 printf "%s\n" "$supported" >&6; }
18888 if test "$supported" = "yes" ; then
18889 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
18890 found="yes"
18891 fi
18892 fi
18893
18894
18895
18896
18897
18898
18899
18900
18901
18902
18903
18904
18905
18906
18907
18908 xorg_testset_save_CFLAGS="$CFLAGS"
18909
18910 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18911 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18913 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18914 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18915 then :
18916 printf %s "(cached) " >&6
18917 else $as_nop
18918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18919 /* end confdefs.h. */
18920 int i;
18921 _ACEOF
18922 if ac_fn_c_try_compile "$LINENO"
18923 then :
18924 xorg_cv_cc_flag_unknown_warning_option=yes
18925 else $as_nop
18926 xorg_cv_cc_flag_unknown_warning_option=no
18927 fi
18928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18929 fi
18930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18931 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18932 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18933 CFLAGS="$xorg_testset_save_CFLAGS"
18934 fi
18935
18936 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18937 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18938 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18939 fi
18940 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18942 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18943 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18944 then :
18945 printf %s "(cached) " >&6
18946 else $as_nop
18947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18948 /* end confdefs.h. */
18949 int i;
18950 _ACEOF
18951 if ac_fn_c_try_compile "$LINENO"
18952 then :
18953 xorg_cv_cc_flag_unused_command_line_argument=yes
18954 else $as_nop
18955 xorg_cv_cc_flag_unused_command_line_argument=no
18956 fi
18957 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18958 fi
18959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18960 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18961 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18962 CFLAGS="$xorg_testset_save_CFLAGS"
18963 fi
18964
18965 found="no"
18966
18967 if test $found = "no" ; then
18968 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18969 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18970 fi
18971
18972 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18973 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18974 fi
18975
18976 CFLAGS="$CFLAGS -Werror"
18977
18978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
18979 printf %s "checking if $CC supports -Werror... " >&6; }
18980 cacheid=xorg_cv_cc_flag__Werror
18981 if eval test \${$cacheid+y}
18982 then :
18983 printf %s "(cached) " >&6
18984 else $as_nop
18985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18986 /* end confdefs.h. */
18987 int i;
18988 int
18989 main (void)
18990 {
18991
18992 ;
18993 return 0;
18994 }
18995 _ACEOF
18996 if ac_fn_c_try_link "$LINENO"
18997 then :
18998 eval $cacheid=yes
18999 else $as_nop
19000 eval $cacheid=no
19001 fi
19002 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19003 conftest$ac_exeext conftest.$ac_ext
19004 fi
19005
19006
19007 CFLAGS="$xorg_testset_save_CFLAGS"
19008
19009 eval supported=\$$cacheid
19010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19011 printf "%s\n" "$supported" >&6; }
19012 if test "$supported" = "yes" ; then
19013 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19014 found="yes"
19015 fi
19016 fi
19017
19018 if test $found = "no" ; then
19019 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19021 fi
19022
19023 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19025 fi
19026
19027 CFLAGS="$CFLAGS -errwarn"
19028
19029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19030 printf %s "checking if $CC supports -errwarn... " >&6; }
19031 cacheid=xorg_cv_cc_flag__errwarn
19032 if eval test \${$cacheid+y}
19033 then :
19034 printf %s "(cached) " >&6
19035 else $as_nop
19036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19037 /* end confdefs.h. */
19038 int i;
19039 int
19040 main (void)
19041 {
19042
19043 ;
19044 return 0;
19045 }
19046 _ACEOF
19047 if ac_fn_c_try_link "$LINENO"
19048 then :
19049 eval $cacheid=yes
19050 else $as_nop
19051 eval $cacheid=no
19052 fi
19053 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19054 conftest$ac_exeext conftest.$ac_ext
19055 fi
19056
19057
19058 CFLAGS="$xorg_testset_save_CFLAGS"
19059
19060 eval supported=\$$cacheid
19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19062 printf "%s\n" "$supported" >&6; }
19063 if test "$supported" = "yes" ; then
19064 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19065 found="yes"
19066 fi
19067 fi
19068
19069
19070
19071 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19072 # activate it with -Werror, so we add it here explicitly.
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086 xorg_testset_save_CFLAGS="$CFLAGS"
19087
19088 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19089 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19091 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19092 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19093 then :
19094 printf %s "(cached) " >&6
19095 else $as_nop
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19098 int i;
19099 _ACEOF
19100 if ac_fn_c_try_compile "$LINENO"
19101 then :
19102 xorg_cv_cc_flag_unknown_warning_option=yes
19103 else $as_nop
19104 xorg_cv_cc_flag_unknown_warning_option=no
19105 fi
19106 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19107 fi
19108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19109 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19110 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19111 CFLAGS="$xorg_testset_save_CFLAGS"
19112 fi
19113
19114 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19115 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19116 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19117 fi
19118 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19120 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19121 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19122 then :
19123 printf %s "(cached) " >&6
19124 else $as_nop
19125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19126 /* end confdefs.h. */
19127 int i;
19128 _ACEOF
19129 if ac_fn_c_try_compile "$LINENO"
19130 then :
19131 xorg_cv_cc_flag_unused_command_line_argument=yes
19132 else $as_nop
19133 xorg_cv_cc_flag_unused_command_line_argument=no
19134 fi
19135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19136 fi
19137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19138 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19139 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19140 CFLAGS="$xorg_testset_save_CFLAGS"
19141 fi
19142
19143 found="no"
19144
19145 if test $found = "no" ; then
19146 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19147 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19148 fi
19149
19150 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19152 fi
19153
19154 CFLAGS="$CFLAGS -Werror=attributes"
19155
19156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19157 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19158 cacheid=xorg_cv_cc_flag__Werror_attributes
19159 if eval test \${$cacheid+y}
19160 then :
19161 printf %s "(cached) " >&6
19162 else $as_nop
19163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19164 /* end confdefs.h. */
19165 int i;
19166 int
19167 main (void)
19168 {
19169
19170 ;
19171 return 0;
19172 }
19173 _ACEOF
19174 if ac_fn_c_try_link "$LINENO"
19175 then :
19176 eval $cacheid=yes
19177 else $as_nop
19178 eval $cacheid=no
19179 fi
19180 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19181 conftest$ac_exeext conftest.$ac_ext
19182 fi
19183
19184
19185 CFLAGS="$xorg_testset_save_CFLAGS"
19186
19187 eval supported=\$$cacheid
19188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19189 printf "%s\n" "$supported" >&6; }
19190 if test "$supported" = "yes" ; then
19191 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19192 found="yes"
19193 fi
19194 fi
19195
19196
19197
19198 if test "x$STRICT_COMPILE" = "xyes"; then
19199 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19200 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19201 fi
19202
19203
19204
19205
19206
19207
19208 cat >>confdefs.h <<_ACEOF
19209 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19210 _ACEOF
19211
19212 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19213 if test "x$PVM" = "x"; then
19214 PVM="0"
19215 fi
19216
19217 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19218
19219 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19220 if test "x$PVP" = "x"; then
19221 PVP="0"
19222 fi
19223
19224 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19225
19226
19227
19228 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19229 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19230 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19231 touch \$(top_srcdir)/ChangeLog; \
19232 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19233
19234
19235
19236
19237 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19238 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19239 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19240 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19241 touch \$(top_srcdir)/INSTALL; \
19242 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19243
19244
19245
19246
19247
19248
19249 case $host_os in
19250 solaris*)
19251 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19252 # check for a man page file found in later versions that use
19253 # traditional section numbers instead
19254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19255 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19256 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19257 then :
19258 printf %s "(cached) " >&6
19259 else $as_nop
19260 test "$cross_compiling" = yes &&
19261 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19262 if test -r "/usr/share/man/man7/attributes.7"; then
19263 ac_cv_file__usr_share_man_man7_attributes_7=yes
19264 else
19265 ac_cv_file__usr_share_man_man7_attributes_7=no
19266 fi
19267 fi
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19269 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19270 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19271 then :
19272 SYSV_MAN_SECTIONS=false
19273 else $as_nop
19274 SYSV_MAN_SECTIONS=true
19275 fi
19276
19277 ;;
19278 *) SYSV_MAN_SECTIONS=false ;;
19279 esac
19280
19281 if test x$APP_MAN_SUFFIX = x ; then
19282 APP_MAN_SUFFIX=1
19283 fi
19284 if test x$APP_MAN_DIR = x ; then
19285 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19286 fi
19287
19288 if test x$LIB_MAN_SUFFIX = x ; then
19289 LIB_MAN_SUFFIX=3
19290 fi
19291 if test x$LIB_MAN_DIR = x ; then
19292 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19293 fi
19294
19295 if test x$FILE_MAN_SUFFIX = x ; then
19296 case $SYSV_MAN_SECTIONS in
19297 true) FILE_MAN_SUFFIX=4 ;;
19298 *) FILE_MAN_SUFFIX=5 ;;
19299 esac
19300 fi
19301 if test x$FILE_MAN_DIR = x ; then
19302 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19303 fi
19304
19305 if test x$MISC_MAN_SUFFIX = x ; then
19306 case $SYSV_MAN_SECTIONS in
19307 true) MISC_MAN_SUFFIX=5 ;;
19308 *) MISC_MAN_SUFFIX=7 ;;
19309 esac
19310 fi
19311 if test x$MISC_MAN_DIR = x ; then
19312 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19313 fi
19314
19315 if test x$DRIVER_MAN_SUFFIX = x ; then
19316 case $SYSV_MAN_SECTIONS in
19317 true) DRIVER_MAN_SUFFIX=7 ;;
19318 *) DRIVER_MAN_SUFFIX=4 ;;
19319 esac
19320 fi
19321 if test x$DRIVER_MAN_DIR = x ; then
19322 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19323 fi
19324
19325 if test x$ADMIN_MAN_SUFFIX = x ; then
19326 case $SYSV_MAN_SECTIONS in
19327 true) ADMIN_MAN_SUFFIX=1m ;;
19328 *) ADMIN_MAN_SUFFIX=8 ;;
19329 esac
19330 fi
19331 if test x$ADMIN_MAN_DIR = x ; then
19332 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19333 fi
19334
19335
19336
19337
19338
19339
19340
19341
19342
19343
19344
19345
19346
19347
19348
19349 XORG_MAN_PAGE="X Version 11"
19350
19351 MAN_SUBSTS="\
19352 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19353 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19354 -e 's|__xservername__|Xorg|g' \
19355 -e 's|__xconfigfile__|xorg.conf|g' \
19356 -e 's|__projectroot__|\$(prefix)|g' \
19357 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19358 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19359 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19360 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19361 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19362 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19363 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19364
19365
19366
19367 # Check whether --enable-silent-rules was given.
19368 if test ${enable_silent_rules+y}
19369 then :
19370 enableval=$enable_silent_rules;
19371 fi
19372
19373 case $enable_silent_rules in # (((
19374 yes) AM_DEFAULT_VERBOSITY=0;;
19375 no) AM_DEFAULT_VERBOSITY=1;;
19376 *) AM_DEFAULT_VERBOSITY=0;;
19377 esac
19378 am_make=${MAKE-make}
19379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19380 printf %s "checking whether $am_make supports nested variables... " >&6; }
19381 if test ${am_cv_make_support_nested_variables+y}
19382 then :
19383 printf %s "(cached) " >&6
19384 else $as_nop
19385 if printf "%s\n" 'TRUE=$(BAR$(V))
19386 BAR0=false
19387 BAR1=true
19388 V=1
19389 am__doit:
19390 @$(TRUE)
19391 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19392 am_cv_make_support_nested_variables=yes
19393 else
19394 am_cv_make_support_nested_variables=no
19395 fi
19396 fi
19397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19398 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19399 if test $am_cv_make_support_nested_variables = yes; then
19400 AM_V='$(V)'
19401 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19402 else
19403 AM_V=$AM_DEFAULT_VERBOSITY
19404 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19405 fi
19406 AM_BACKSLASH='\'
19407
19408
19409
19410 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
19411
19412
19413
19414
19415
19416
19417
19418
19419
19420
19421
19422
19423
19424
19425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
19426 printf %s "checking for root directory for font files... " >&6; }
19427
19428 # Check whether --with-fontrootdir was given.
19429 if test ${with_fontrootdir+y}
19430 then :
19431 withval=$with_fontrootdir; FONTROOTDIR="$withval"
19432 fi
19433
19434 # if --with-fontrootdir not specified...
19435 if test "x${FONTROOTDIR}" = "x"; then
19436 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
19437 fi
19438 # ...and if pkg-config didn't find fontdir in fontutil.pc...
19439 if test "x${FONTROOTDIR}" = "x"; then
19440 FONTROOTDIR="${datadir}/fonts/X11"
19441 fi
19442
19443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
19444 printf "%s\n" "${FONTROOTDIR}" >&6; }
19445
19446
19447
19448
19449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
19450 printf %s "checking for directory for encodings files... " >&6; }
19451
19452 # Check whether --with-encodingsdir was given.
19453 if test ${with_encodingsdir+y}
19454 then :
19455 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
19456 else $as_nop
19457 ENCODINGSDIR='${FONTROOTDIR}/encodings'
19458 fi
19459
19460
19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
19462 printf "%s\n" "${ENCODINGSDIR}" >&6; }
19463
19464
19465 # zlib
19466 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
19467 if test "x$ac_cv_header_zlib_h" = xyes
19468 then :
19469
19470 else $as_nop
19471 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19472 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19473 as_fn_error $? "zlib.h is required to compile libfontenc
19474 See \`config.log' for more details" "$LINENO" 5; }
19475 fi
19476
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
19478 printf %s "checking for gzclose in -lz... " >&6; }
19479 if test ${ac_cv_lib_z_gzclose+y}
19480 then :
19481 printf %s "(cached) " >&6
19482 else $as_nop
19483 ac_check_lib_save_LIBS=$LIBS
19484 LIBS="-lz $LIBS"
19485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19486 /* end confdefs.h. */
19487
19488 /* Override any GCC internal prototype to avoid an error.
19489 Use char because int might match the return type of a GCC
19490 builtin and then its argument prototype would still apply.
19491 The 'extern "C"' is for builds by C++ compilers;
19492 although this is not generally supported in C code supporting it here
19493 has little cost and some practical benefit (sr 110532). */
19494 #ifdef __cplusplus
19495 extern "C"
19496 #endif
19497 char gzclose (void);
19498 int
19499 main (void)
19500 {
19501 return gzclose ();
19502 ;
19503 return 0;
19504 }
19505 _ACEOF
19506 if ac_fn_c_try_link "$LINENO"
19507 then :
19508 ac_cv_lib_z_gzclose=yes
19509 else $as_nop
19510 ac_cv_lib_z_gzclose=no
19511 fi
19512 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19513 conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19515 fi
19516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
19517 printf "%s\n" "$ac_cv_lib_z_gzclose" >&6; }
19518 if test "x$ac_cv_lib_z_gzclose" = xyes
19519 then :
19520 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
19521
19522 LIBS="-lz $LIBS"
19523
19524 else $as_nop
19525 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19526 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19527 as_fn_error $? "zlib is required to compile libfontenc
19528 See \`config.log' for more details" "$LINENO" 5; }
19529 fi
19530
19531
19532 # Obtain compiler/linker options for dependencies
19533
19534 pkg_failed=no
19535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
19536 printf %s "checking for FONTENC... " >&6; }
19537
19538 if test -n "$FONTENC_CFLAGS"; then
19539 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
19540 elif test -n "$PKG_CONFIG"; then
19541 if test -n "$PKG_CONFIG" && \
19542 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19543 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19544 ac_status=$?
19545 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19546 test $ac_status = 0; }; then
19547 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
19548 test "x$?" != "x0" && pkg_failed=yes
19549 else
19550 pkg_failed=yes
19551 fi
19552 else
19553 pkg_failed=untried
19554 fi
19555 if test -n "$FONTENC_LIBS"; then
19556 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
19557 elif test -n "$PKG_CONFIG"; then
19558 if test -n "$PKG_CONFIG" && \
19559 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
19560 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
19561 ac_status=$?
19562 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19563 test $ac_status = 0; }; then
19564 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
19565 test "x$?" != "x0" && pkg_failed=yes
19566 else
19567 pkg_failed=yes
19568 fi
19569 else
19570 pkg_failed=untried
19571 fi
19572
19573
19574
19575 if test $pkg_failed = yes; then
19576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 printf "%s\n" "no" >&6; }
19578
19579 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19580 _pkg_short_errors_supported=yes
19581 else
19582 _pkg_short_errors_supported=no
19583 fi
19584 if test $_pkg_short_errors_supported = yes; then
19585 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto" 2>&1`
19586 else
19587 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto" 2>&1`
19588 fi
19589 # Put the nasty error message in config.log where it belongs
19590 echo "$FONTENC_PKG_ERRORS" >&5
19591
19592 as_fn_error $? "Package requirements (xproto) were not met:
19593
19594 $FONTENC_PKG_ERRORS
19595
19596 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19597 installed software in a non-standard prefix.
19598
19599 Alternatively, you may set the environment variables FONTENC_CFLAGS
19600 and FONTENC_LIBS to avoid the need to call pkg-config.
19601 See the pkg-config man page for more details." "$LINENO" 5
19602 elif test $pkg_failed = untried; then
19603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19604 printf "%s\n" "no" >&6; }
19605 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19606 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19607 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19608 is in your PATH or set the PKG_CONFIG environment variable to the full
19609 path to pkg-config.
19610
19611 Alternatively, you may set the environment variables FONTENC_CFLAGS
19612 and FONTENC_LIBS to avoid the need to call pkg-config.
19613 See the pkg-config man page for more details.
19614
19615 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19616 See \`config.log' for more details" "$LINENO" 5; }
19617 else
19618 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
19619 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
19620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19621 printf "%s\n" "yes" >&6; }
19622
19623 fi
19624
19625 # Checks for typedefs, structures, and compiler characteristics.
19626 # Check whether --enable-largefile was given.
19627 if test ${enable_largefile+y}
19628 then :
19629 enableval=$enable_largefile;
19630 fi
19631
19632 if test "$enable_largefile" != no; then
19633
19634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
19635 printf %s "checking for special C compiler options needed for large files... " >&6; }
19636 if test ${ac_cv_sys_largefile_CC+y}
19637 then :
19638 printf %s "(cached) " >&6
19639 else $as_nop
19640 ac_cv_sys_largefile_CC=no
19641 if test "$GCC" != yes; then
19642 ac_save_CC=$CC
19643 while :; do
19644 # IRIX 6.2 and later do not support large files by default,
19645 # so use the C compiler's -n32 option if that helps.
19646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19647 /* end confdefs.h. */
19648 #include <sys/types.h>
19649 /* Check that off_t can represent 2**63 - 1 correctly.
19650 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19651 since some C++ compilers masquerading as C compilers
19652 incorrectly reject 9223372036854775807. */
19653 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19654 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19655 && LARGE_OFF_T % 2147483647 == 1)
19656 ? 1 : -1];
19657 int
19658 main (void)
19659 {
19660
19661 ;
19662 return 0;
19663 }
19664 _ACEOF
19665 if ac_fn_c_try_compile "$LINENO"
19666 then :
19667 break
19668 fi
19669 rm -f core conftest.err conftest.$ac_objext conftest.beam
19670 CC="$CC -n32"
19671 if ac_fn_c_try_compile "$LINENO"
19672 then :
19673 ac_cv_sys_largefile_CC=' -n32'; break
19674 fi
19675 rm -f core conftest.err conftest.$ac_objext conftest.beam
19676 break
19677 done
19678 CC=$ac_save_CC
19679 rm -f conftest.$ac_ext
19680 fi
19681 fi
19682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
19683 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
19684 if test "$ac_cv_sys_largefile_CC" != no; then
19685 CC=$CC$ac_cv_sys_largefile_CC
19686 fi
19687
19688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
19689 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
19690 if test ${ac_cv_sys_file_offset_bits+y}
19691 then :
19692 printf %s "(cached) " >&6
19693 else $as_nop
19694 while :; do
19695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19696 /* end confdefs.h. */
19697 #include <sys/types.h>
19698 /* Check that off_t can represent 2**63 - 1 correctly.
19699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19700 since some C++ compilers masquerading as C compilers
19701 incorrectly reject 9223372036854775807. */
19702 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19704 && LARGE_OFF_T % 2147483647 == 1)
19705 ? 1 : -1];
19706 int
19707 main (void)
19708 {
19709
19710 ;
19711 return 0;
19712 }
19713 _ACEOF
19714 if ac_fn_c_try_compile "$LINENO"
19715 then :
19716 ac_cv_sys_file_offset_bits=no; break
19717 fi
19718 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19721 #define _FILE_OFFSET_BITS 64
19722 #include <sys/types.h>
19723 /* Check that off_t can represent 2**63 - 1 correctly.
19724 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19725 since some C++ compilers masquerading as C compilers
19726 incorrectly reject 9223372036854775807. */
19727 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19728 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19729 && LARGE_OFF_T % 2147483647 == 1)
19730 ? 1 : -1];
19731 int
19732 main (void)
19733 {
19734
19735 ;
19736 return 0;
19737 }
19738 _ACEOF
19739 if ac_fn_c_try_compile "$LINENO"
19740 then :
19741 ac_cv_sys_file_offset_bits=64; break
19742 fi
19743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19744 ac_cv_sys_file_offset_bits=unknown
19745 break
19746 done
19747 fi
19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
19749 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
19750 case $ac_cv_sys_file_offset_bits in #(
19751 no | unknown) ;;
19752 *)
19753 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
19754 ;;
19755 esac
19756 rm -rf conftest*
19757 if test $ac_cv_sys_file_offset_bits = unknown; then
19758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
19759 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
19760 if test ${ac_cv_sys_large_files+y}
19761 then :
19762 printf %s "(cached) " >&6
19763 else $as_nop
19764 while :; do
19765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19766 /* end confdefs.h. */
19767 #include <sys/types.h>
19768 /* Check that off_t can represent 2**63 - 1 correctly.
19769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19770 since some C++ compilers masquerading as C compilers
19771 incorrectly reject 9223372036854775807. */
19772 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19774 && LARGE_OFF_T % 2147483647 == 1)
19775 ? 1 : -1];
19776 int
19777 main (void)
19778 {
19779
19780 ;
19781 return 0;
19782 }
19783 _ACEOF
19784 if ac_fn_c_try_compile "$LINENO"
19785 then :
19786 ac_cv_sys_large_files=no; break
19787 fi
19788 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791 #define _LARGE_FILES 1
19792 #include <sys/types.h>
19793 /* Check that off_t can represent 2**63 - 1 correctly.
19794 We can't simply define LARGE_OFF_T to be 9223372036854775807,
19795 since some C++ compilers masquerading as C compilers
19796 incorrectly reject 9223372036854775807. */
19797 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
19798 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19799 && LARGE_OFF_T % 2147483647 == 1)
19800 ? 1 : -1];
19801 int
19802 main (void)
19803 {
19804
19805 ;
19806 return 0;
19807 }
19808 _ACEOF
19809 if ac_fn_c_try_compile "$LINENO"
19810 then :
19811 ac_cv_sys_large_files=1; break
19812 fi
19813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19814 ac_cv_sys_large_files=unknown
19815 break
19816 done
19817 fi
19818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
19819 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
19820 case $ac_cv_sys_large_files in #(
19821 no | unknown) ;;
19822 *)
19823 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
19824 ;;
19825 esac
19826 rm -rf conftest*
19827 fi
19828 fi
19829
19830
19831 # Checks for library functions.
19832 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
19833 if test "x$ac_cv_func_reallocarray" = xyes
19834 then :
19835 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
19836
19837 else $as_nop
19838 case " $LIBOBJS " in
19839 *" reallocarray.$ac_objext "* ) ;;
19840 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
19841 ;;
19842 esac
19843
19844 fi
19845
19846
19847 # Allow checking code with lint, sparse, etc.
19848
19849
19850
19851
19852
19853 # Check whether --with-lint was given.
19854 if test ${with_lint+y}
19855 then :
19856 withval=$with_lint; use_lint=$withval
19857 else $as_nop
19858 use_lint=no
19859 fi
19860
19861
19862 # Obtain platform specific info like program name and options
19863 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
19864 case $host_os in
19865 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
19866 lint_name=splint
19867 lint_options="-badflag"
19868 ;;
19869 *freebsd* | *netbsd*)
19870 lint_name=lint
19871 lint_options="-u -b"
19872 ;;
19873 *solaris*)
19874 lint_name=lint
19875 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
19876 ;;
19877 esac
19878
19879 # Test for the presence of the program (either guessed by the code or spelled out by the user)
19880 if test "x$use_lint" = x"yes" ; then
19881 # Extract the first word of "$lint_name", so it can be a program name with args.
19882 set dummy $lint_name; ac_word=$2
19883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19884 printf %s "checking for $ac_word... " >&6; }
19885 if test ${ac_cv_path_LINT+y}
19886 then :
19887 printf %s "(cached) " >&6
19888 else $as_nop
19889 case $LINT in
19890 [\\/]* | ?:[\\/]*)
19891 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
19892 ;;
19893 *)
19894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19895 for as_dir in $PATH
19896 do
19897 IFS=$as_save_IFS
19898 case $as_dir in #(((
19899 '') as_dir=./ ;;
19900 */) ;;
19901 *) as_dir=$as_dir/ ;;
19902 esac
19903 for ac_exec_ext in '' $ac_executable_extensions; do
19904 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19905 ac_cv_path_LINT="$as_dir$ac_word$ac_exec_ext"
19906 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19907 break 2
19908 fi
19909 done
19910 done
19911 IFS=$as_save_IFS
19912
19913 ;;
19914 esac
19915 fi
19916 LINT=$ac_cv_path_LINT
19917 if test -n "$LINT"; then
19918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
19919 printf "%s\n" "$LINT" >&6; }
19920 else
19921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19922 printf "%s\n" "no" >&6; }
19923 fi
19924
19925
19926 if test "x$LINT" = "x"; then
19927 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
19928 fi
19929 elif test "x$use_lint" = x"no" ; then
19930 if test "x$LINT" != "x"; then
19931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
19932 printf "%s\n" "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
19933 fi
19934 else
19935 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
19936 fi
19937
19938 # User supplied flags override default flags
19939 if test "x$LINT_FLAGS" != "x"; then
19940 lint_options=$LINT_FLAGS
19941 fi
19942
19943 LINT_FLAGS=$lint_options
19944
19945 if test "x$LINT" != x; then
19946 LINT_TRUE=
19947 LINT_FALSE='#'
19948 else
19949 LINT_TRUE='#'
19950 LINT_FALSE=
19951 fi
19952
19953
19954
19955 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
19956
19957 ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
19958
19959 cat >confcache <<\_ACEOF
19960 # This file is a shell script that caches the results of configure
19961 # tests run on this system so they can be shared between configure
19962 # scripts and configure runs, see configure's option --config-cache.
19963 # It is not useful on other systems. If it contains results you don't
19964 # want to keep, you may remove or edit it.
19965 #
19966 # config.status only pays attention to the cache file if you give it
19967 # the --recheck option to rerun configure.
19968 #
19969 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19970 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19971 # following values.
19972
19973 _ACEOF
19974
19975 # The following way of writing the cache mishandles newlines in values,
19976 # but we know of no workaround that is simple, portable, and efficient.
19977 # So, we kill variables containing newlines.
19978 # Ultrix sh set writes to stderr and can't be redirected directly,
19979 # and sets the high bit in the cache file unless we assign to the vars.
19980 (
19981 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19982 eval ac_val=\$$ac_var
19983 case $ac_val in #(
19984 *${as_nl}*)
19985 case $ac_var in #(
19986 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19987 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19988 esac
19989 case $ac_var in #(
19990 _ | IFS | as_nl) ;; #(
19991 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19992 *) { eval $ac_var=; unset $ac_var;} ;;
19993 esac ;;
19994 esac
19995 done
19996
19997 (set) 2>&1 |
19998 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19999 *${as_nl}ac_space=\ *)
20000 # `set' does not quote correctly, so add quotes: double-quote
20001 # substitution turns \\\\ into \\, and sed turns \\ into \.
20002 sed -n \
20003 "s/'/'\\\\''/g;
20004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20005 ;; #(
20006 *)
20007 # `set' quotes correctly as required by POSIX, so do not add quotes.
20008 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20009 ;;
20010 esac |
20011 sort
20012 ) |
20013 sed '
20014 /^ac_cv_env_/b end
20015 t clear
20016 :clear
20017 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
20018 t end
20019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20020 :end' >>confcache
20021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20022 if test -w "$cache_file"; then
20023 if test "x$cache_file" != "x/dev/null"; then
20024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20025 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
20026 if test ! -f "$cache_file" || test -h "$cache_file"; then
20027 cat confcache >"$cache_file"
20028 else
20029 case $cache_file in #(
20030 */* | ?:*)
20031 mv -f confcache "$cache_file"$$ &&
20032 mv -f "$cache_file"$$ "$cache_file" ;; #(
20033 *)
20034 mv -f confcache "$cache_file" ;;
20035 esac
20036 fi
20037 fi
20038 else
20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20040 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
20041 fi
20042 fi
20043 rm -f confcache
20044
20045 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20046 # Let make expand exec_prefix.
20047 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20048
20049 DEFS=-DHAVE_CONFIG_H
20050
20051 ac_libobjs=
20052 ac_ltlibobjs=
20053 U=
20054 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20055 # 1. Remove the extension, and $U if already installed.
20056 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20057 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
20058 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20059 # will be set to the directory where LIBOBJS objects are built.
20060 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20061 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20062 done
20063 LIBOBJS=$ac_libobjs
20064
20065 LTLIBOBJS=$ac_ltlibobjs
20066
20067
20068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20069 printf %s "checking that generated files are newer than configure... " >&6; }
20070 if test -n "$am_sleep_pid"; then
20071 # Hide warnings about reused PIDs.
20072 wait $am_sleep_pid 2>/dev/null
20073 fi
20074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
20075 printf "%s\n" "done" >&6; }
20076 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20077 as_fn_error $? "conditional \"AMDEP\" was never defined.
20078 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20079 fi
20080 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20081 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20082 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20083 fi
20084 if test -n "$EXEEXT"; then
20085 am__EXEEXT_TRUE=
20086 am__EXEEXT_FALSE='#'
20087 else
20088 am__EXEEXT_TRUE='#'
20089 am__EXEEXT_FALSE=
20090 fi
20091
20092 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
20093 as_fn_error $? "conditional \"LINT\" was never defined.
20094 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20095 fi
20096
20097 : "${CONFIG_STATUS=./config.status}"
20098 ac_write_fail=0
20099 ac_clean_files_save=$ac_clean_files
20100 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20102 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
20103 as_write_fail=0
20104 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20105 #! $SHELL
20106 # Generated by $as_me.
20107 # Run this file to recreate the current configuration.
20108 # Compiler output produced by configure, useful for debugging
20109 # configure, is in config.log if it exists.
20110
20111 debug=false
20112 ac_cs_recheck=false
20113 ac_cs_silent=false
20114
20115 SHELL=\${CONFIG_SHELL-$SHELL}
20116 export SHELL
20117 _ASEOF
20118 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20119 ## -------------------- ##
20120 ## M4sh Initialization. ##
20121 ## -------------------- ##
20122
20123 # Be more Bourne compatible
20124 DUALCASE=1; export DUALCASE # for MKS sh
20125 as_nop=:
20126 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20127 then :
20128 emulate sh
20129 NULLCMD=:
20130 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20131 # is contrary to our usage. Disable this feature.
20132 alias -g '${1+"$@"}'='"$@"'
20133 setopt NO_GLOB_SUBST
20134 else $as_nop
20135 case `(set -o) 2>/dev/null` in #(
20136 *posix*) :
20137 set -o posix ;; #(
20138 *) :
20139 ;;
20140 esac
20141 fi
20142
20143
20144
20145 # Reset variables that may have inherited troublesome values from
20146 # the environment.
20147
20148 # IFS needs to be set, to space, tab, and newline, in precisely that order.
20149 # (If _AS_PATH_WALK were called with IFS unset, it would have the
20150 # side effect of setting IFS to empty, thus disabling word splitting.)
20151 # Quoting is to prevent editors from complaining about space-tab.
20152 as_nl='
20153 '
20154 export as_nl
20155 IFS=" "" $as_nl"
20156
20157 PS1='$ '
20158 PS2='> '
20159 PS4='+ '
20160
20161 # Ensure predictable behavior from utilities with locale-dependent output.
20162 LC_ALL=C
20163 export LC_ALL
20164 LANGUAGE=C
20165 export LANGUAGE
20166
20167 # We cannot yet rely on "unset" to work, but we need these variables
20168 # to be unset--not just set to an empty or harmless value--now, to
20169 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
20170 # also avoids known problems related to "unset" and subshell syntax
20171 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
20172 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
20173 do eval test \${$as_var+y} \
20174 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20175 done
20176
20177 # Ensure that fds 0, 1, and 2 are open.
20178 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
20179 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
20180 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
20181
20182 # The user is always right.
20183 if ${PATH_SEPARATOR+false} :; then
20184 PATH_SEPARATOR=:
20185 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20186 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20187 PATH_SEPARATOR=';'
20188 }
20189 fi
20190
20191
20192 # Find who we are. Look in the path if we contain no directory separator.
20193 as_myself=
20194 case $0 in #((
20195 *[\\/]* ) as_myself=$0 ;;
20196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20197 for as_dir in $PATH
20198 do
20199 IFS=$as_save_IFS
20200 case $as_dir in #(((
20201 '') as_dir=./ ;;
20202 */) ;;
20203 *) as_dir=$as_dir/ ;;
20204 esac
20205 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
20206 done
20207 IFS=$as_save_IFS
20208
20209 ;;
20210 esac
20211 # We did not find ourselves, most probably we were run as `sh COMMAND'
20212 # in which case we are not to be found in the path.
20213 if test "x$as_myself" = x; then
20214 as_myself=$0
20215 fi
20216 if test ! -f "$as_myself"; then
20217 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20218 exit 1
20219 fi
20220
20221
20222
20223 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20224 # ----------------------------------------
20225 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20226 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20227 # script with STATUS, using 1 if that was 0.
20228 as_fn_error ()
20229 {
20230 as_status=$1; test $as_status -eq 0 && as_status=1
20231 if test "$4"; then
20232 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20234 fi
20235 printf "%s\n" "$as_me: error: $2" >&2
20236 as_fn_exit $as_status
20237 } # as_fn_error
20238
20239
20240
20241 # as_fn_set_status STATUS
20242 # -----------------------
20243 # Set $? to STATUS, without forking.
20244 as_fn_set_status ()
20245 {
20246 return $1
20247 } # as_fn_set_status
20248
20249 # as_fn_exit STATUS
20250 # -----------------
20251 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20252 as_fn_exit ()
20253 {
20254 set +e
20255 as_fn_set_status $1
20256 exit $1
20257 } # as_fn_exit
20258
20259 # as_fn_unset VAR
20260 # ---------------
20261 # Portably unset VAR.
20262 as_fn_unset ()
20263 {
20264 { eval $1=; unset $1;}
20265 }
20266 as_unset=as_fn_unset
20267
20268 # as_fn_append VAR VALUE
20269 # ----------------------
20270 # Append the text in VALUE to the end of the definition contained in VAR. Take
20271 # advantage of any shell optimizations that allow amortized linear growth over
20272 # repeated appends, instead of the typical quadratic growth present in naive
20273 # implementations.
20274 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
20275 then :
20276 eval 'as_fn_append ()
20277 {
20278 eval $1+=\$2
20279 }'
20280 else $as_nop
20281 as_fn_append ()
20282 {
20283 eval $1=\$$1\$2
20284 }
20285 fi # as_fn_append
20286
20287 # as_fn_arith ARG...
20288 # ------------------
20289 # Perform arithmetic evaluation on the ARGs, and store the result in the
20290 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20291 # must be portable across $(()) and expr.
20292 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
20293 then :
20294 eval 'as_fn_arith ()
20295 {
20296 as_val=$(( $* ))
20297 }'
20298 else $as_nop
20299 as_fn_arith ()
20300 {
20301 as_val=`expr "$@" || test $? -eq 1`
20302 }
20303 fi # as_fn_arith
20304
20305
20306 if expr a : '\(a\)' >/dev/null 2>&1 &&
20307 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20308 as_expr=expr
20309 else
20310 as_expr=false
20311 fi
20312
20313 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20314 as_basename=basename
20315 else
20316 as_basename=false
20317 fi
20318
20319 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20320 as_dirname=dirname
20321 else
20322 as_dirname=false
20323 fi
20324
20325 as_me=`$as_basename -- "$0" ||
20326 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20327 X"$0" : 'X\(//\)$' \| \
20328 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20329 printf "%s\n" X/"$0" |
20330 sed '/^.*\/\([^/][^/]*\)\/*$/{
20331 s//\1/
20332 q
20333 }
20334 /^X\/\(\/\/\)$/{
20335 s//\1/
20336 q
20337 }
20338 /^X\/\(\/\).*/{
20339 s//\1/
20340 q
20341 }
20342 s/.*/./; q'`
20343
20344 # Avoid depending upon Character Ranges.
20345 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20346 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20347 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20348 as_cr_digits='0123456789'
20349 as_cr_alnum=$as_cr_Letters$as_cr_digits
20350
20351
20352 # Determine whether it's possible to make 'echo' print without a newline.
20353 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
20354 # for compatibility with existing Makefiles.
20355 ECHO_C= ECHO_N= ECHO_T=
20356 case `echo -n x` in #(((((
20357 -n*)
20358 case `echo 'xy\c'` in
20359 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20360 xy) ECHO_C='\c';;
20361 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20362 ECHO_T=' ';;
20363 esac;;
20364 *)
20365 ECHO_N='-n';;
20366 esac
20367
20368 # For backward compatibility with old third-party macros, we provide
20369 # the shell variables $as_echo and $as_echo_n. New code should use
20370 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
20371 as_echo='printf %s\n'
20372 as_echo_n='printf %s'
20373
20374 rm -f conf$$ conf$$.exe conf$$.file
20375 if test -d conf$$.dir; then
20376 rm -f conf$$.dir/conf$$.file
20377 else
20378 rm -f conf$$.dir
20379 mkdir conf$$.dir 2>/dev/null
20380 fi
20381 if (echo >conf$$.file) 2>/dev/null; then
20382 if ln -s conf$$.file conf$$ 2>/dev/null; then
20383 as_ln_s='ln -s'
20384 # ... but there are two gotchas:
20385 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20386 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20387 # In both cases, we have to default to `cp -pR'.
20388 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20389 as_ln_s='cp -pR'
20390 elif ln conf$$.file conf$$ 2>/dev/null; then
20391 as_ln_s=ln
20392 else
20393 as_ln_s='cp -pR'
20394 fi
20395 else
20396 as_ln_s='cp -pR'
20397 fi
20398 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20399 rmdir conf$$.dir 2>/dev/null
20400
20401
20402 # as_fn_mkdir_p
20403 # -------------
20404 # Create "$as_dir" as a directory, including parents if necessary.
20405 as_fn_mkdir_p ()
20406 {
20407
20408 case $as_dir in #(
20409 -*) as_dir=./$as_dir;;
20410 esac
20411 test -d "$as_dir" || eval $as_mkdir_p || {
20412 as_dirs=
20413 while :; do
20414 case $as_dir in #(
20415 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20416 *) as_qdir=$as_dir;;
20417 esac
20418 as_dirs="'$as_qdir' $as_dirs"
20419 as_dir=`$as_dirname -- "$as_dir" ||
20420 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20421 X"$as_dir" : 'X\(//\)[^/]' \| \
20422 X"$as_dir" : 'X\(//\)$' \| \
20423 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20424 printf "%s\n" X"$as_dir" |
20425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20426 s//\1/
20427 q
20428 }
20429 /^X\(\/\/\)[^/].*/{
20430 s//\1/
20431 q
20432 }
20433 /^X\(\/\/\)$/{
20434 s//\1/
20435 q
20436 }
20437 /^X\(\/\).*/{
20438 s//\1/
20439 q
20440 }
20441 s/.*/./; q'`
20442 test -d "$as_dir" && break
20443 done
20444 test -z "$as_dirs" || eval "mkdir $as_dirs"
20445 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20446
20447
20448 } # as_fn_mkdir_p
20449 if mkdir -p . 2>/dev/null; then
20450 as_mkdir_p='mkdir -p "$as_dir"'
20451 else
20452 test -d ./-p && rmdir ./-p
20453 as_mkdir_p=false
20454 fi
20455
20456
20457 # as_fn_executable_p FILE
20458 # -----------------------
20459 # Test if FILE is an executable regular file.
20460 as_fn_executable_p ()
20461 {
20462 test -f "$1" && test -x "$1"
20463 } # as_fn_executable_p
20464 as_test_x='test -x'
20465 as_executable_p=as_fn_executable_p
20466
20467 # Sed expression to map a string onto a valid CPP name.
20468 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20469
20470 # Sed expression to map a string onto a valid variable name.
20471 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20472
20473
20474 exec 6>&1
20475 ## ----------------------------------- ##
20476 ## Main body of $CONFIG_STATUS script. ##
20477 ## ----------------------------------- ##
20478 _ASEOF
20479 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20480
20481 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20482 # Save the log message, to keep $0 and so on meaningful, and to
20483 # report actual input values of CONFIG_FILES etc. instead of their
20484 # values after options handling.
20485 ac_log="
20486 This file was extended by libfontenc $as_me 1.1.7, which was
20487 generated by GNU Autoconf 2.71. Invocation command line was
20488
20489 CONFIG_FILES = $CONFIG_FILES
20490 CONFIG_HEADERS = $CONFIG_HEADERS
20491 CONFIG_LINKS = $CONFIG_LINKS
20492 CONFIG_COMMANDS = $CONFIG_COMMANDS
20493 $ $0 $@
20494
20495 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20496 "
20497
20498 _ACEOF
20499
20500 case $ac_config_files in *"
20501 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20502 esac
20503
20504 case $ac_config_headers in *"
20505 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20506 esac
20507
20508
20509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20510 # Files that config.status was made for.
20511 config_files="$ac_config_files"
20512 config_headers="$ac_config_headers"
20513 config_commands="$ac_config_commands"
20514
20515 _ACEOF
20516
20517 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20518 ac_cs_usage="\
20519 \`$as_me' instantiates files and other configuration actions
20520 from templates according to the current configuration. Unless the files
20521 and actions are specified as TAGs, all are instantiated by default.
20522
20523 Usage: $0 [OPTION]... [TAG]...
20524
20525 -h, --help print this help, then exit
20526 -V, --version print version number and configuration settings, then exit
20527 --config print configuration, then exit
20528 -q, --quiet, --silent
20529 do not print progress messages
20530 -d, --debug don't remove temporary files
20531 --recheck update $as_me by reconfiguring in the same conditions
20532 --file=FILE[:TEMPLATE]
20533 instantiate the configuration file FILE
20534 --header=FILE[:TEMPLATE]
20535 instantiate the configuration header FILE
20536
20537 Configuration files:
20538 $config_files
20539
20540 Configuration headers:
20541 $config_headers
20542
20543 Configuration commands:
20544 $config_commands
20545
20546 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libfontenc/-/issues>."
20547
20548 _ACEOF
20549 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
20550 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
20551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20552 ac_cs_config='$ac_cs_config_escaped'
20553 ac_cs_version="\\
20554 libfontenc config.status 1.1.7
20555 configured by $0, generated by GNU Autoconf 2.71,
20556 with options \\"\$ac_cs_config\\"
20557
20558 Copyright (C) 2021 Free Software Foundation, Inc.
20559 This config.status script is free software; the Free Software Foundation
20560 gives unlimited permission to copy, distribute and modify it."
20561
20562 ac_pwd='$ac_pwd'
20563 srcdir='$srcdir'
20564 INSTALL='$INSTALL'
20565 MKDIR_P='$MKDIR_P'
20566 AWK='$AWK'
20567 test -n "\$AWK" || AWK=awk
20568 _ACEOF
20569
20570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20571 # The default lists apply if the user does not specify any file.
20572 ac_need_defaults=:
20573 while test $# != 0
20574 do
20575 case $1 in
20576 --*=?*)
20577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20579 ac_shift=:
20580 ;;
20581 --*=)
20582 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20583 ac_optarg=
20584 ac_shift=:
20585 ;;
20586 *)
20587 ac_option=$1
20588 ac_optarg=$2
20589 ac_shift=shift
20590 ;;
20591 esac
20592
20593 case $ac_option in
20594 # Handling of the options.
20595 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20596 ac_cs_recheck=: ;;
20597 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20598 printf "%s\n" "$ac_cs_version"; exit ;;
20599 --config | --confi | --conf | --con | --co | --c )
20600 printf "%s\n" "$ac_cs_config"; exit ;;
20601 --debug | --debu | --deb | --de | --d | -d )
20602 debug=: ;;
20603 --file | --fil | --fi | --f )
20604 $ac_shift
20605 case $ac_optarg in
20606 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20607 '') as_fn_error $? "missing file argument" ;;
20608 esac
20609 as_fn_append CONFIG_FILES " '$ac_optarg'"
20610 ac_need_defaults=false;;
20611 --header | --heade | --head | --hea )
20612 $ac_shift
20613 case $ac_optarg in
20614 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20615 esac
20616 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20617 ac_need_defaults=false;;
20618 --he | --h)
20619 # Conflict between --help and --header
20620 as_fn_error $? "ambiguous option: \`$1'
20621 Try \`$0 --help' for more information.";;
20622 --help | --hel | -h )
20623 printf "%s\n" "$ac_cs_usage"; exit ;;
20624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20626 ac_cs_silent=: ;;
20627
20628 # This is an error.
20629 -*) as_fn_error $? "unrecognized option: \`$1'
20630 Try \`$0 --help' for more information." ;;
20631
20632 *) as_fn_append ac_config_targets " $1"
20633 ac_need_defaults=false ;;
20634
20635 esac
20636 shift
20637 done
20638
20639 ac_configure_extra_args=
20640
20641 if $ac_cs_silent; then
20642 exec 6>/dev/null
20643 ac_configure_extra_args="$ac_configure_extra_args --silent"
20644 fi
20645
20646 _ACEOF
20647 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20648 if \$ac_cs_recheck; then
20649 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20650 shift
20651 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
20652 CONFIG_SHELL='$SHELL'
20653 export CONFIG_SHELL
20654 exec "\$@"
20655 fi
20656
20657 _ACEOF
20658 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20659 exec 5>>config.log
20660 {
20661 echo
20662 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20663 ## Running $as_me. ##
20664 _ASBOX
20665 printf "%s\n" "$ac_log"
20666 } >&5
20667
20668 _ACEOF
20669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20670 #
20671 # INIT-COMMANDS
20672 #
20673 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
20674
20675
20676 # The HP-UX ksh and POSIX shell print the target directory to stdout
20677 # if CDPATH is set.
20678 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20679
20680 sed_quote_subst='$sed_quote_subst'
20681 double_quote_subst='$double_quote_subst'
20682 delay_variable_subst='$delay_variable_subst'
20683 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20684 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20685 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20686 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20687 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20688 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20689 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
20690 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20691 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20692 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20693 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20694 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20695 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20696 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20697 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20698 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20699 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20700 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20701 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20702 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20703 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20704 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20705 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20706 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20707 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20708 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20709 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20710 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20711 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20712 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20713 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20714 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20715 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20716 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20717 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
20718 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20719 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20720 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20721 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20722 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20723 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20724 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20725 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20726 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
20727 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20728 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20729 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20730 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20731 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20732 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20733 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20734 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20735 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20736 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20737 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20738 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20739 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20740 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20741 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
20742 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20743 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"`'
20744 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
20745 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20746 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20747 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
20748 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20749 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20750 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20751 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20752 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20753 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20754 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20755 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20756 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20757 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20758 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20759 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20760 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20761 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20762 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20763 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20764 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20765 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20766 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20767 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20768 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20769 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20770 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20771 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20772 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20773 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20774 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20775 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20776 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20777 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20778 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20779 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20780 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20781 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20782 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20783 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20784 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20785 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20786 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20787 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20788 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20789 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20790 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20791 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20792 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20793 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20794 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20795 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20796 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20797 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20798 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20799 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20800 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20801 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20802 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20803 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20804 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20805 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20806 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20807 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20808 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20809 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20810 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20811 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20812 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
20813 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
20814 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20815 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20816 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20817 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20818 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20819 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20820
20821 LTCC='$LTCC'
20822 LTCFLAGS='$LTCFLAGS'
20823 compiler='$compiler_DEFAULT'
20824
20825 # A function that is used when there is no print builtin or printf.
20826 func_fallback_echo ()
20827 {
20828 eval 'cat <<_LTECHO_EOF
20829 \$1
20830 _LTECHO_EOF'
20831 }
20832
20833 # Quote evaled strings.
20834 for var in SHELL \
20835 ECHO \
20836 PATH_SEPARATOR \
20837 SED \
20838 GREP \
20839 EGREP \
20840 FGREP \
20841 LD \
20842 NM \
20843 LN_S \
20844 lt_SP2NL \
20845 lt_NL2SP \
20846 reload_flag \
20847 FILECMD \
20848 OBJDUMP \
20849 deplibs_check_method \
20850 file_magic_cmd \
20851 file_magic_glob \
20852 want_nocaseglob \
20853 DLLTOOL \
20854 sharedlib_from_linklib_cmd \
20855 AR \
20856 archiver_list_spec \
20857 STRIP \
20858 RANLIB \
20859 CC \
20860 CFLAGS \
20861 compiler \
20862 lt_cv_sys_global_symbol_pipe \
20863 lt_cv_sys_global_symbol_to_cdecl \
20864 lt_cv_sys_global_symbol_to_import \
20865 lt_cv_sys_global_symbol_to_c_name_address \
20866 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20867 lt_cv_nm_interface \
20868 nm_file_list_spec \
20869 lt_cv_truncate_bin \
20870 lt_prog_compiler_no_builtin_flag \
20871 lt_prog_compiler_pic \
20872 lt_prog_compiler_wl \
20873 lt_prog_compiler_static \
20874 lt_cv_prog_compiler_c_o \
20875 need_locks \
20876 MANIFEST_TOOL \
20877 DSYMUTIL \
20878 NMEDIT \
20879 LIPO \
20880 OTOOL \
20881 OTOOL64 \
20882 shrext_cmds \
20883 export_dynamic_flag_spec \
20884 whole_archive_flag_spec \
20885 compiler_needs_object \
20886 with_gnu_ld \
20887 allow_undefined_flag \
20888 no_undefined_flag \
20889 hardcode_libdir_flag_spec \
20890 hardcode_libdir_separator \
20891 exclude_expsyms \
20892 include_expsyms \
20893 file_list_spec \
20894 variables_saved_for_relink \
20895 libname_spec \
20896 library_names_spec \
20897 soname_spec \
20898 install_override_mode \
20899 finish_eval \
20900 old_striplib \
20901 striplib; do
20902 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20903 *[\\\\\\\`\\"\\\$]*)
20904 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20905 ;;
20906 *)
20907 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20908 ;;
20909 esac
20910 done
20911
20912 # Double-quote double-evaled strings.
20913 for var in reload_cmds \
20914 old_postinstall_cmds \
20915 old_postuninstall_cmds \
20916 old_archive_cmds \
20917 extract_expsyms_cmds \
20918 old_archive_from_new_cmds \
20919 old_archive_from_expsyms_cmds \
20920 archive_cmds \
20921 archive_expsym_cmds \
20922 module_cmds \
20923 module_expsym_cmds \
20924 export_symbols_cmds \
20925 prelink_cmds \
20926 postlink_cmds \
20927 postinstall_cmds \
20928 postuninstall_cmds \
20929 finish_cmds \
20930 sys_lib_search_path_spec \
20931 configure_time_dlsearch_path \
20932 configure_time_lt_sys_library_path; do
20933 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20934 *[\\\\\\\`\\"\\\$]*)
20935 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
20936 ;;
20937 *)
20938 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20939 ;;
20940 esac
20941 done
20942
20943 ac_aux_dir='$ac_aux_dir'
20944
20945 # See if we are running on zsh, and set the options that allow our
20946 # commands through without removal of \ escapes INIT.
20947 if test -n "\${ZSH_VERSION+set}"; then
20948 setopt NO_GLOB_SUBST
20949 fi
20950
20951
20952 PACKAGE='$PACKAGE'
20953 VERSION='$VERSION'
20954 RM='$RM'
20955 ofile='$ofile'
20956
20957
20958
20959
20960 _ACEOF
20961
20962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20963
20964 # Handling of arguments.
20965 for ac_config_target in $ac_config_targets
20966 do
20967 case $ac_config_target in
20968 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20969 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20970 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20971 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20972 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20973 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
20974
20975 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20976 esac
20977 done
20978
20979
20980 # If the user did not use the arguments to specify the items to instantiate,
20981 # then the envvar interface is used. Set only those that are not.
20982 # We use the long form for the default assignment because of an extremely
20983 # bizarre bug on SunOS 4.1.3.
20984 if $ac_need_defaults; then
20985 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
20986 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
20987 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
20988 fi
20989
20990 # Have a temporary directory for convenience. Make it in the build tree
20991 # simply because there is no reason against having it here, and in addition,
20992 # creating and moving files from /tmp can sometimes cause problems.
20993 # Hook for its removal unless debugging.
20994 # Note that there is a small window in which the directory will not be cleaned:
20995 # after its creation but before its name has been assigned to `$tmp'.
20996 $debug ||
20997 {
20998 tmp= ac_tmp=
20999 trap 'exit_status=$?
21000 : "${ac_tmp:=$tmp}"
21001 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21002 ' 0
21003 trap 'as_fn_exit 1' 1 2 13 15
21004 }
21005 # Create a (secure) tmp directory for tmp files.
21006
21007 {
21008 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21009 test -d "$tmp"
21010 } ||
21011 {
21012 tmp=./conf$$-$RANDOM
21013 (umask 077 && mkdir "$tmp")
21014 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21015 ac_tmp=$tmp
21016
21017 # Set up the scripts for CONFIG_FILES section.
21018 # No need to generate them if there are no CONFIG_FILES.
21019 # This happens for instance with `./config.status config.h'.
21020 if test -n "$CONFIG_FILES"; then
21021
21022
21023 ac_cr=`echo X | tr X '\015'`
21024 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21025 # But we know of no other shell where ac_cr would be empty at this
21026 # point, so we can use a bashism as a fallback.
21027 if test "x$ac_cr" = x; then
21028 eval ac_cr=\$\'\\r\'
21029 fi
21030 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21031 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21032 ac_cs_awk_cr='\\r'
21033 else
21034 ac_cs_awk_cr=$ac_cr
21035 fi
21036
21037 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21038 _ACEOF
21039
21040
21041 {
21042 echo "cat >conf$$subs.awk <<_ACEOF" &&
21043 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21044 echo "_ACEOF"
21045 } >conf$$subs.sh ||
21046 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21047 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21048 ac_delim='%!_!# '
21049 for ac_last_try in false false false false false :; do
21050 . ./conf$$subs.sh ||
21051 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21052
21053 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21054 if test $ac_delim_n = $ac_delim_num; then
21055 break
21056 elif $ac_last_try; then
21057 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21058 else
21059 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21060 fi
21061 done
21062 rm -f conf$$subs.sh
21063
21064 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21065 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21066 _ACEOF
21067 sed -n '
21068 h
21069 s/^/S["/; s/!.*/"]=/
21070 p
21071 g
21072 s/^[^!]*!//
21073 :repl
21074 t repl
21075 s/'"$ac_delim"'$//
21076 t delim
21077 :nl
21078 h
21079 s/\(.\{148\}\)..*/\1/
21080 t more1
21081 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21082 p
21083 n
21084 b repl
21085 :more1
21086 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21087 p
21088 g
21089 s/.\{148\}//
21090 t nl
21091 :delim
21092 h
21093 s/\(.\{148\}\)..*/\1/
21094 t more2
21095 s/["\\]/\\&/g; s/^/"/; s/$/"/
21096 p
21097 b
21098 :more2
21099 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21100 p
21101 g
21102 s/.\{148\}//
21103 t delim
21104 ' <conf$$subs.awk | sed '
21105 /^[^""]/{
21106 N
21107 s/\n//
21108 }
21109 ' >>$CONFIG_STATUS || ac_write_fail=1
21110 rm -f conf$$subs.awk
21111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21112 _ACAWK
21113 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21114 for (key in S) S_is_set[key] = 1
21115 FS = ""
21116
21117 }
21118 {
21119 line = $ 0
21120 nfields = split(line, field, "@")
21121 substed = 0
21122 len = length(field[1])
21123 for (i = 2; i < nfields; i++) {
21124 key = field[i]
21125 keylen = length(key)
21126 if (S_is_set[key]) {
21127 value = S[key]
21128 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21129 len += length(value) + length(field[++i])
21130 substed = 1
21131 } else
21132 len += 1 + keylen
21133 }
21134
21135 print line
21136 }
21137
21138 _ACAWK
21139 _ACEOF
21140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21141 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21142 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21143 else
21144 cat
21145 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21146 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21147 _ACEOF
21148
21149 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21150 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21151 # trailing colons and then remove the whole line if VPATH becomes empty
21152 # (actually we leave an empty line to preserve line numbers).
21153 if test "x$srcdir" = x.; then
21154 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21155 h
21156 s///
21157 s/^/:/
21158 s/[ ]*$/:/
21159 s/:\$(srcdir):/:/g
21160 s/:\${srcdir}:/:/g
21161 s/:@srcdir@:/:/g
21162 s/^:*//
21163 s/:*$//
21164 x
21165 s/\(=[ ]*\).*/\1/
21166 G
21167 s/\n//
21168 s/^[^=]*=[ ]*$//
21169 }'
21170 fi
21171
21172 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21173 fi # test -n "$CONFIG_FILES"
21174
21175 # Set up the scripts for CONFIG_HEADERS section.
21176 # No need to generate them if there are no CONFIG_HEADERS.
21177 # This happens for instance with `./config.status Makefile'.
21178 if test -n "$CONFIG_HEADERS"; then
21179 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21180 BEGIN {
21181 _ACEOF
21182
21183 # Transform confdefs.h into an awk script `defines.awk', embedded as
21184 # here-document in config.status, that substitutes the proper values into
21185 # config.h.in to produce config.h.
21186
21187 # Create a delimiter string that does not exist in confdefs.h, to ease
21188 # handling of long lines.
21189 ac_delim='%!_!# '
21190 for ac_last_try in false false :; do
21191 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21192 if test -z "$ac_tt"; then
21193 break
21194 elif $ac_last_try; then
21195 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21196 else
21197 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21198 fi
21199 done
21200
21201 # For the awk script, D is an array of macro values keyed by name,
21202 # likewise P contains macro parameters if any. Preserve backslash
21203 # newline sequences.
21204
21205 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21206 sed -n '
21207 s/.\{148\}/&'"$ac_delim"'/g
21208 t rset
21209 :rset
21210 s/^[ ]*#[ ]*define[ ][ ]*/ /
21211 t def
21212 d
21213 :def
21214 s/\\$//
21215 t bsnl
21216 s/["\\]/\\&/g
21217 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21218 D["\1"]=" \3"/p
21219 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21220 d
21221 :bsnl
21222 s/["\\]/\\&/g
21223 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21224 D["\1"]=" \3\\\\\\n"\\/p
21225 t cont
21226 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21227 t cont
21228 d
21229 :cont
21230 n
21231 s/.\{148\}/&'"$ac_delim"'/g
21232 t clear
21233 :clear
21234 s/\\$//
21235 t bsnlc
21236 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21237 d
21238 :bsnlc
21239 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21240 b cont
21241 ' <confdefs.h | sed '
21242 s/'"$ac_delim"'/"\\\
21243 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21244
21245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21246 for (key in D) D_is_set[key] = 1
21247 FS = ""
21248 }
21249 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21250 line = \$ 0
21251 split(line, arg, " ")
21252 if (arg[1] == "#") {
21253 defundef = arg[2]
21254 mac1 = arg[3]
21255 } else {
21256 defundef = substr(arg[1], 2)
21257 mac1 = arg[2]
21258 }
21259 split(mac1, mac2, "(") #)
21260 macro = mac2[1]
21261 prefix = substr(line, 1, index(line, defundef) - 1)
21262 if (D_is_set[macro]) {
21263 # Preserve the white space surrounding the "#".
21264 print prefix "define", macro P[macro] D[macro]
21265 next
21266 } else {
21267 # Replace #undef with comments. This is necessary, for example,
21268 # in the case of _POSIX_SOURCE, which is predefined and required
21269 # on some systems where configure will not decide to define it.
21270 if (defundef == "undef") {
21271 print "/*", prefix defundef, macro, "*/"
21272 next
21273 }
21274 }
21275 }
21276 { print }
21277 _ACAWK
21278 _ACEOF
21279 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21280 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21281 fi # test -n "$CONFIG_HEADERS"
21282
21283
21284 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21285 shift
21286 for ac_tag
21287 do
21288 case $ac_tag in
21289 :[FHLC]) ac_mode=$ac_tag; continue;;
21290 esac
21291 case $ac_mode$ac_tag in
21292 :[FHL]*:*);;
21293 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21294 :[FH]-) ac_tag=-:-;;
21295 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21296 esac
21297 ac_save_IFS=$IFS
21298 IFS=:
21299 set x $ac_tag
21300 IFS=$ac_save_IFS
21301 shift
21302 ac_file=$1
21303 shift
21304
21305 case $ac_mode in
21306 :L) ac_source=$1;;
21307 :[FH])
21308 ac_file_inputs=
21309 for ac_f
21310 do
21311 case $ac_f in
21312 -) ac_f="$ac_tmp/stdin";;
21313 *) # Look for the file first in the build tree, then in the source tree
21314 # (if the path is not absolute). The absolute path cannot be DOS-style,
21315 # because $ac_f cannot contain `:'.
21316 test -f "$ac_f" ||
21317 case $ac_f in
21318 [\\/$]*) false;;
21319 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21320 esac ||
21321 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21322 esac
21323 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21324 as_fn_append ac_file_inputs " '$ac_f'"
21325 done
21326
21327 # Let's still pretend it is `configure' which instantiates (i.e., don't
21328 # use $as_me), people would be surprised to read:
21329 # /* config.h. Generated by config.status. */
21330 configure_input='Generated from '`
21331 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21332 `' by configure.'
21333 if test x"$ac_file" != x-; then
21334 configure_input="$ac_file. $configure_input"
21335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21336 printf "%s\n" "$as_me: creating $ac_file" >&6;}
21337 fi
21338 # Neutralize special characters interpreted by sed in replacement strings.
21339 case $configure_input in #(
21340 *\&* | *\|* | *\\* )
21341 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
21342 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21343 *) ac_sed_conf_input=$configure_input;;
21344 esac
21345
21346 case $ac_tag in
21347 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21348 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21349 esac
21350 ;;
21351 esac
21352
21353 ac_dir=`$as_dirname -- "$ac_file" ||
21354 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21355 X"$ac_file" : 'X\(//\)[^/]' \| \
21356 X"$ac_file" : 'X\(//\)$' \| \
21357 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21358 printf "%s\n" X"$ac_file" |
21359 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21360 s//\1/
21361 q
21362 }
21363 /^X\(\/\/\)[^/].*/{
21364 s//\1/
21365 q
21366 }
21367 /^X\(\/\/\)$/{
21368 s//\1/
21369 q
21370 }
21371 /^X\(\/\).*/{
21372 s//\1/
21373 q
21374 }
21375 s/.*/./; q'`
21376 as_dir="$ac_dir"; as_fn_mkdir_p
21377 ac_builddir=.
21378
21379 case "$ac_dir" in
21380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21381 *)
21382 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
21383 # A ".." for each directory in $ac_dir_suffix.
21384 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21385 case $ac_top_builddir_sub in
21386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21388 esac ;;
21389 esac
21390 ac_abs_top_builddir=$ac_pwd
21391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21392 # for backward compatibility:
21393 ac_top_builddir=$ac_top_build_prefix
21394
21395 case $srcdir in
21396 .) # We are building in place.
21397 ac_srcdir=.
21398 ac_top_srcdir=$ac_top_builddir_sub
21399 ac_abs_top_srcdir=$ac_pwd ;;
21400 [\\/]* | ?:[\\/]* ) # Absolute name.
21401 ac_srcdir=$srcdir$ac_dir_suffix;
21402 ac_top_srcdir=$srcdir
21403 ac_abs_top_srcdir=$srcdir ;;
21404 *) # Relative name.
21405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21406 ac_top_srcdir=$ac_top_build_prefix$srcdir
21407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21408 esac
21409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21410
21411
21412 case $ac_mode in
21413 :F)
21414 #
21415 # CONFIG_FILE
21416 #
21417
21418 case $INSTALL in
21419 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21420 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21421 esac
21422 ac_MKDIR_P=$MKDIR_P
21423 case $MKDIR_P in
21424 [\\/$]* | ?:[\\/]* ) ;;
21425 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21426 esac
21427 _ACEOF
21428
21429 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21430 # If the template does not know about datarootdir, expand it.
21431 # FIXME: This hack should be removed a few years after 2.60.
21432 ac_datarootdir_hack=; ac_datarootdir_seen=
21433 ac_sed_dataroot='
21434 /datarootdir/ {
21435 p
21436 q
21437 }
21438 /@datadir@/p
21439 /@docdir@/p
21440 /@infodir@/p
21441 /@localedir@/p
21442 /@mandir@/p'
21443 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21444 *datarootdir*) ac_datarootdir_seen=yes;;
21445 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21447 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21448 _ACEOF
21449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21450 ac_datarootdir_hack='
21451 s&@datadir@&$datadir&g
21452 s&@docdir@&$docdir&g
21453 s&@infodir@&$infodir&g
21454 s&@localedir@&$localedir&g
21455 s&@mandir@&$mandir&g
21456 s&\\\${datarootdir}&$datarootdir&g' ;;
21457 esac
21458 _ACEOF
21459
21460 # Neutralize VPATH when `$srcdir' = `.'.
21461 # Shell code in configure.ac might set extrasub.
21462 # FIXME: do we really want to maintain this feature?
21463 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21464 ac_sed_extra="$ac_vpsub
21465 $extrasub
21466 _ACEOF
21467 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21468 :t
21469 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21470 s|@configure_input@|$ac_sed_conf_input|;t t
21471 s&@top_builddir@&$ac_top_builddir_sub&;t t
21472 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21473 s&@srcdir@&$ac_srcdir&;t t
21474 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21475 s&@top_srcdir@&$ac_top_srcdir&;t t
21476 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21477 s&@builddir@&$ac_builddir&;t t
21478 s&@abs_builddir@&$ac_abs_builddir&;t t
21479 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21480 s&@INSTALL@&$ac_INSTALL&;t t
21481 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21482 $ac_datarootdir_hack
21483 "
21484 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21485 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21486
21487 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21488 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21489 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21490 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21492 which seems to be undefined. Please make sure it is defined" >&5
21493 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21494 which seems to be undefined. Please make sure it is defined" >&2;}
21495
21496 rm -f "$ac_tmp/stdin"
21497 case $ac_file in
21498 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21499 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21500 esac \
21501 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21502 ;;
21503 :H)
21504 #
21505 # CONFIG_HEADER
21506 #
21507 if test x"$ac_file" != x-; then
21508 {
21509 printf "%s\n" "/* $configure_input */" >&1 \
21510 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21511 } >"$ac_tmp/config.h" \
21512 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21513 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21515 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
21516 else
21517 rm -f "$ac_file"
21518 mv "$ac_tmp/config.h" "$ac_file" \
21519 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21520 fi
21521 else
21522 printf "%s\n" "/* $configure_input */" >&1 \
21523 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21524 || as_fn_error $? "could not create -" "$LINENO" 5
21525 fi
21526 # Compute "$ac_file"'s index in $config_headers.
21527 _am_arg="$ac_file"
21528 _am_stamp_count=1
21529 for _am_header in $config_headers :; do
21530 case $_am_header in
21531 $_am_arg | $_am_arg:* )
21532 break ;;
21533 * )
21534 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21535 esac
21536 done
21537 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21538 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21539 X"$_am_arg" : 'X\(//\)[^/]' \| \
21540 X"$_am_arg" : 'X\(//\)$' \| \
21541 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21542 printf "%s\n" X"$_am_arg" |
21543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21544 s//\1/
21545 q
21546 }
21547 /^X\(\/\/\)[^/].*/{
21548 s//\1/
21549 q
21550 }
21551 /^X\(\/\/\)$/{
21552 s//\1/
21553 q
21554 }
21555 /^X\(\/\).*/{
21556 s//\1/
21557 q
21558 }
21559 s/.*/./; q'`/stamp-h$_am_stamp_count
21560 ;;
21561
21562 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21563 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
21564 ;;
21565 esac
21566
21567
21568 case $ac_file$ac_mode in
21569 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21570 # Older Autoconf quotes --file arguments for eval, but not when files
21571 # are listed without --file. Let's play safe and only enable the eval
21572 # if we detect the quoting.
21573 # TODO: see whether this extra hack can be removed once we start
21574 # requiring Autoconf 2.70 or later.
21575 case $CONFIG_FILES in #(
21576 *\'*) :
21577 eval set x "$CONFIG_FILES" ;; #(
21578 *) :
21579 set x $CONFIG_FILES ;; #(
21580 *) :
21581 ;;
21582 esac
21583 shift
21584 # Used to flag and report bootstrapping failures.
21585 am_rc=0
21586 for am_mf
21587 do
21588 # Strip MF so we end up with the name of the file.
21589 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
21590 # Check whether this is an Automake generated Makefile which includes
21591 # dependency-tracking related rules and includes.
21592 # Grep'ing the whole file directly is not great: AIX grep has a line
21593 # limit of 2048, but all sed's we know have understand at least 4000.
21594 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
21595 || continue
21596 am_dirpart=`$as_dirname -- "$am_mf" ||
21597 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21598 X"$am_mf" : 'X\(//\)[^/]' \| \
21599 X"$am_mf" : 'X\(//\)$' \| \
21600 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21601 printf "%s\n" X"$am_mf" |
21602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21603 s//\1/
21604 q
21605 }
21606 /^X\(\/\/\)[^/].*/{
21607 s//\1/
21608 q
21609 }
21610 /^X\(\/\/\)$/{
21611 s//\1/
21612 q
21613 }
21614 /^X\(\/\).*/{
21615 s//\1/
21616 q
21617 }
21618 s/.*/./; q'`
21619 am_filepart=`$as_basename -- "$am_mf" ||
21620 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
21621 X"$am_mf" : 'X\(//\)$' \| \
21622 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
21623 printf "%s\n" X/"$am_mf" |
21624 sed '/^.*\/\([^/][^/]*\)\/*$/{
21625 s//\1/
21626 q
21627 }
21628 /^X\/\(\/\/\)$/{
21629 s//\1/
21630 q
21631 }
21632 /^X\/\(\/\).*/{
21633 s//\1/
21634 q
21635 }
21636 s/.*/./; q'`
21637 { echo "$as_me:$LINENO: cd "$am_dirpart" \
21638 && sed -e '/# am--include-marker/d' "$am_filepart" \
21639 | $MAKE -f - am--depfiles" >&5
21640 (cd "$am_dirpart" \
21641 && sed -e '/# am--include-marker/d' "$am_filepart" \
21642 | $MAKE -f - am--depfiles) >&5 2>&5
21643 ac_status=$?
21644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21645 (exit $ac_status); } || am_rc=$?
21646 done
21647 if test $am_rc -ne 0; then
21648 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21649 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
21650 as_fn_error $? "Something went wrong bootstrapping makefile fragments
21651 for automatic dependency tracking. If GNU make was not used, consider
21652 re-running the configure script with MAKE=\"gmake\" (or whatever is
21653 necessary). You can also try re-running configure with the
21654 '--disable-dependency-tracking' option to at least be able to build
21655 the package (albeit without support for automatic dependency tracking).
21656 See \`config.log' for more details" "$LINENO" 5; }
21657 fi
21658 { am_dirpart=; unset am_dirpart;}
21659 { am_filepart=; unset am_filepart;}
21660 { am_mf=; unset am_mf;}
21661 { am_rc=; unset am_rc;}
21662 rm -f conftest-deps.mk
21663 }
21664 ;;
21665 "libtool":C)
21666
21667 # See if we are running on zsh, and set the options that allow our
21668 # commands through without removal of \ escapes.
21669 if test -n "${ZSH_VERSION+set}"; then
21670 setopt NO_GLOB_SUBST
21671 fi
21672
21673 cfgfile=${ofile}T
21674 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21675 $RM "$cfgfile"
21676
21677 cat <<_LT_EOF >> "$cfgfile"
21678 #! $SHELL
21679 # Generated automatically by $as_me ($PACKAGE) $VERSION
21680 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21681 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21682
21683 # Provide generalized library-building support services.
21684 # Written by Gordon Matzigkeit, 1996
21685
21686 # Copyright (C) 2014 Free Software Foundation, Inc.
21687 # This is free software; see the source for copying conditions. There is NO
21688 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
21689
21690 # GNU Libtool is free software; you can redistribute it and/or modify
21691 # it under the terms of the GNU General Public License as published by
21692 # the Free Software Foundation; either version 2 of of the License, or
21693 # (at your option) any later version.
21694 #
21695 # As a special exception to the GNU General Public License, if you
21696 # distribute this file as part of a program or library that is built
21697 # using GNU Libtool, you may include this file under the same
21698 # distribution terms that you use for the rest of that program.
21699 #
21700 # GNU Libtool is distributed in the hope that it will be useful, but
21701 # WITHOUT ANY WARRANTY; without even the implied warranty of
21702 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21703 # GNU General Public License for more details.
21704 #
21705 # You should have received a copy of the GNU General Public License
21706 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21707
21708
21709 # The names of the tagged configurations supported by this script.
21710 available_tags=''
21711
21712 # Configured defaults for sys_lib_dlsearch_path munging.
21713 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
21714
21715 # ### BEGIN LIBTOOL CONFIG
21716
21717 # Which release of libtool.m4 was used?
21718 macro_version=$macro_version
21719 macro_revision=$macro_revision
21720
21721 # Whether or not to build shared libraries.
21722 build_libtool_libs=$enable_shared
21723
21724 # Whether or not to build static libraries.
21725 build_old_libs=$enable_static
21726
21727 # What type of objects to build.
21728 pic_mode=$pic_mode
21729
21730 # Whether or not to optimize for fast installation.
21731 fast_install=$enable_fast_install
21732
21733 # Shared archive member basename,for filename based shared library versioning on AIX.
21734 shared_archive_member_spec=$shared_archive_member_spec
21735
21736 # Shell to use when invoking shell scripts.
21737 SHELL=$lt_SHELL
21738
21739 # An echo program that protects backslashes.
21740 ECHO=$lt_ECHO
21741
21742 # The PATH separator for the build system.
21743 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21744
21745 # The host system.
21746 host_alias=$host_alias
21747 host=$host
21748 host_os=$host_os
21749
21750 # The build system.
21751 build_alias=$build_alias
21752 build=$build
21753 build_os=$build_os
21754
21755 # A sed program that does not truncate output.
21756 SED=$lt_SED
21757
21758 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21759 Xsed="\$SED -e 1s/^X//"
21760
21761 # A grep program that handles long lines.
21762 GREP=$lt_GREP
21763
21764 # An ERE matcher.
21765 EGREP=$lt_EGREP
21766
21767 # A literal string matcher.
21768 FGREP=$lt_FGREP
21769
21770 # A BSD- or MS-compatible name lister.
21771 NM=$lt_NM
21772
21773 # Whether we need soft or hard links.
21774 LN_S=$lt_LN_S
21775
21776 # What is the maximum length of a command?
21777 max_cmd_len=$max_cmd_len
21778
21779 # Object file suffix (normally "o").
21780 objext=$ac_objext
21781
21782 # Executable file suffix (normally "").
21783 exeext=$exeext
21784
21785 # whether the shell understands "unset".
21786 lt_unset=$lt_unset
21787
21788 # turn spaces into newlines.
21789 SP2NL=$lt_lt_SP2NL
21790
21791 # turn newlines into spaces.
21792 NL2SP=$lt_lt_NL2SP
21793
21794 # convert \$build file names to \$host format.
21795 to_host_file_cmd=$lt_cv_to_host_file_cmd
21796
21797 # convert \$build files to toolchain format.
21798 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21799
21800 # A file(cmd) program that detects file types.
21801 FILECMD=$lt_FILECMD
21802
21803 # An object symbol dumper.
21804 OBJDUMP=$lt_OBJDUMP
21805
21806 # Method to check whether dependent libraries are shared objects.
21807 deplibs_check_method=$lt_deplibs_check_method
21808
21809 # Command to use when deplibs_check_method = "file_magic".
21810 file_magic_cmd=$lt_file_magic_cmd
21811
21812 # How to find potential files when deplibs_check_method = "file_magic".
21813 file_magic_glob=$lt_file_magic_glob
21814
21815 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21816 want_nocaseglob=$lt_want_nocaseglob
21817
21818 # DLL creation program.
21819 DLLTOOL=$lt_DLLTOOL
21820
21821 # Command to associate shared and link libraries.
21822 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21823
21824 # The archiver.
21825 AR=$lt_AR
21826
21827 # Flags to create an archive (by configure).
21828 lt_ar_flags=$lt_ar_flags
21829
21830 # Flags to create an archive.
21831 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
21832
21833 # How to feed a file listing to the archiver.
21834 archiver_list_spec=$lt_archiver_list_spec
21835
21836 # A symbol stripping program.
21837 STRIP=$lt_STRIP
21838
21839 # Commands used to install an old-style archive.
21840 RANLIB=$lt_RANLIB
21841 old_postinstall_cmds=$lt_old_postinstall_cmds
21842 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21843
21844 # Whether to use a lock for old archive extraction.
21845 lock_old_archive_extraction=$lock_old_archive_extraction
21846
21847 # A C compiler.
21848 LTCC=$lt_CC
21849
21850 # LTCC compiler flags.
21851 LTCFLAGS=$lt_CFLAGS
21852
21853 # Take the output of nm and produce a listing of raw symbols and C names.
21854 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21855
21856 # Transform the output of nm in a proper C declaration.
21857 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21858
21859 # Transform the output of nm into a list of symbols to manually relocate.
21860 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
21861
21862 # Transform the output of nm in a C name address pair.
21863 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21864
21865 # Transform the output of nm in a C name address pair when lib prefix is needed.
21866 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21867
21868 # The name lister interface.
21869 nm_interface=$lt_lt_cv_nm_interface
21870
21871 # Specify filename containing input files for \$NM.
21872 nm_file_list_spec=$lt_nm_file_list_spec
21873
21874 # The root where to search for dependent libraries,and where our libraries should be installed.
21875 lt_sysroot=$lt_sysroot
21876
21877 # Command to truncate a binary pipe.
21878 lt_truncate_bin=$lt_lt_cv_truncate_bin
21879
21880 # The name of the directory that contains temporary libtool files.
21881 objdir=$objdir
21882
21883 # Used to examine libraries when file_magic_cmd begins with "file".
21884 MAGIC_CMD=$MAGIC_CMD
21885
21886 # Must we lock files when doing compilation?
21887 need_locks=$lt_need_locks
21888
21889 # Manifest tool.
21890 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21891
21892 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21893 DSYMUTIL=$lt_DSYMUTIL
21894
21895 # Tool to change global to local symbols on Mac OS X.
21896 NMEDIT=$lt_NMEDIT
21897
21898 # Tool to manipulate fat objects and archives on Mac OS X.
21899 LIPO=$lt_LIPO
21900
21901 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21902 OTOOL=$lt_OTOOL
21903
21904 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21905 OTOOL64=$lt_OTOOL64
21906
21907 # Old archive suffix (normally "a").
21908 libext=$libext
21909
21910 # Shared library suffix (normally ".so").
21911 shrext_cmds=$lt_shrext_cmds
21912
21913 # The commands to extract the exported symbol list from a shared archive.
21914 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21915
21916 # Variables whose values should be saved in libtool wrapper scripts and
21917 # restored at link time.
21918 variables_saved_for_relink=$lt_variables_saved_for_relink
21919
21920 # Do we need the "lib" prefix for modules?
21921 need_lib_prefix=$need_lib_prefix
21922
21923 # Do we need a version for libraries?
21924 need_version=$need_version
21925
21926 # Library versioning type.
21927 version_type=$version_type
21928
21929 # Shared library runtime path variable.
21930 runpath_var=$runpath_var
21931
21932 # Shared library path variable.
21933 shlibpath_var=$shlibpath_var
21934
21935 # Is shlibpath searched before the hard-coded library search path?
21936 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21937
21938 # Format of library name prefix.
21939 libname_spec=$lt_libname_spec
21940
21941 # List of archive names. First name is the real one, the rest are links.
21942 # The last name is the one that the linker finds with -lNAME
21943 library_names_spec=$lt_library_names_spec
21944
21945 # The coded name of the library, if different from the real name.
21946 soname_spec=$lt_soname_spec
21947
21948 # Permission mode override for installation of shared libraries.
21949 install_override_mode=$lt_install_override_mode
21950
21951 # Command to use after installation of a shared archive.
21952 postinstall_cmds=$lt_postinstall_cmds
21953
21954 # Command to use after uninstallation of a shared archive.
21955 postuninstall_cmds=$lt_postuninstall_cmds
21956
21957 # Commands used to finish a libtool library installation in a directory.
21958 finish_cmds=$lt_finish_cmds
21959
21960 # As "finish_cmds", except a single script fragment to be evaled but
21961 # not shown.
21962 finish_eval=$lt_finish_eval
21963
21964 # Whether we should hardcode library paths into libraries.
21965 hardcode_into_libs=$hardcode_into_libs
21966
21967 # Compile-time system search path for libraries.
21968 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21969
21970 # Detected run-time system search path for libraries.
21971 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
21972
21973 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
21974 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
21975
21976 # Whether dlopen is supported.
21977 dlopen_support=$enable_dlopen
21978
21979 # Whether dlopen of programs is supported.
21980 dlopen_self=$enable_dlopen_self
21981
21982 # Whether dlopen of statically linked programs is supported.
21983 dlopen_self_static=$enable_dlopen_self_static
21984
21985 # Commands to strip libraries.
21986 old_striplib=$lt_old_striplib
21987 striplib=$lt_striplib
21988
21989
21990 # The linker used to build libraries.
21991 LD=$lt_LD
21992
21993 # How to create reloadable object files.
21994 reload_flag=$lt_reload_flag
21995 reload_cmds=$lt_reload_cmds
21996
21997 # Commands used to build an old-style archive.
21998 old_archive_cmds=$lt_old_archive_cmds
21999
22000 # A language specific compiler.
22001 CC=$lt_compiler
22002
22003 # Is the compiler the GNU compiler?
22004 with_gcc=$GCC
22005
22006 # Compiler flag to turn off builtin functions.
22007 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22008
22009 # Additional compiler flags for building library objects.
22010 pic_flag=$lt_lt_prog_compiler_pic
22011
22012 # How to pass a linker flag through the compiler.
22013 wl=$lt_lt_prog_compiler_wl
22014
22015 # Compiler flag to prevent dynamic linking.
22016 link_static_flag=$lt_lt_prog_compiler_static
22017
22018 # Does compiler simultaneously support -c and -o options?
22019 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22020
22021 # Whether or not to add -lc for building shared libraries.
22022 build_libtool_need_lc=$archive_cmds_need_lc
22023
22024 # Whether or not to disallow shared libs when runtime libs are static.
22025 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22026
22027 # Compiler flag to allow reflexive dlopens.
22028 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22029
22030 # Compiler flag to generate shared objects directly from archives.
22031 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22032
22033 # Whether the compiler copes with passing no objects directly.
22034 compiler_needs_object=$lt_compiler_needs_object
22035
22036 # Create an old-style archive from a shared archive.
22037 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22038
22039 # Create a temporary old-style archive to link instead of a shared archive.
22040 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22041
22042 # Commands used to build a shared archive.
22043 archive_cmds=$lt_archive_cmds
22044 archive_expsym_cmds=$lt_archive_expsym_cmds
22045
22046 # Commands used to build a loadable module if different from building
22047 # a shared archive.
22048 module_cmds=$lt_module_cmds
22049 module_expsym_cmds=$lt_module_expsym_cmds
22050
22051 # Whether we are building with GNU ld or not.
22052 with_gnu_ld=$lt_with_gnu_ld
22053
22054 # Flag that allows shared libraries with undefined symbols to be built.
22055 allow_undefined_flag=$lt_allow_undefined_flag
22056
22057 # Flag that enforces no undefined symbols.
22058 no_undefined_flag=$lt_no_undefined_flag
22059
22060 # Flag to hardcode \$libdir into a binary during linking.
22061 # This must work even if \$libdir does not exist
22062 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22063
22064 # Whether we need a single "-rpath" flag with a separated argument.
22065 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22066
22067 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22068 # DIR into the resulting binary.
22069 hardcode_direct=$hardcode_direct
22070
22071 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22072 # DIR into the resulting binary and the resulting library dependency is
22073 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
22074 # library is relocated.
22075 hardcode_direct_absolute=$hardcode_direct_absolute
22076
22077 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22078 # into the resulting binary.
22079 hardcode_minus_L=$hardcode_minus_L
22080
22081 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22082 # into the resulting binary.
22083 hardcode_shlibpath_var=$hardcode_shlibpath_var
22084
22085 # Set to "yes" if building a shared library automatically hardcodes DIR
22086 # into the library and all subsequent libraries and executables linked
22087 # against it.
22088 hardcode_automatic=$hardcode_automatic
22089
22090 # Set to yes if linker adds runtime paths of dependent libraries
22091 # to runtime path list.
22092 inherit_rpath=$inherit_rpath
22093
22094 # Whether libtool must link a program against all its dependency libraries.
22095 link_all_deplibs=$link_all_deplibs
22096
22097 # Set to "yes" if exported symbols are required.
22098 always_export_symbols=$always_export_symbols
22099
22100 # The commands to list exported symbols.
22101 export_symbols_cmds=$lt_export_symbols_cmds
22102
22103 # Symbols that should not be listed in the preloaded symbols.
22104 exclude_expsyms=$lt_exclude_expsyms
22105
22106 # Symbols that must always be exported.
22107 include_expsyms=$lt_include_expsyms
22108
22109 # Commands necessary for linking programs (against libraries) with templates.
22110 prelink_cmds=$lt_prelink_cmds
22111
22112 # Commands necessary for finishing linking programs.
22113 postlink_cmds=$lt_postlink_cmds
22114
22115 # Specify filename containing input files.
22116 file_list_spec=$lt_file_list_spec
22117
22118 # How to hardcode a shared library path into an executable.
22119 hardcode_action=$hardcode_action
22120
22121 # ### END LIBTOOL CONFIG
22122
22123 _LT_EOF
22124
22125 cat <<'_LT_EOF' >> "$cfgfile"
22126
22127 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
22128
22129 # func_munge_path_list VARIABLE PATH
22130 # -----------------------------------
22131 # VARIABLE is name of variable containing _space_ separated list of
22132 # directories to be munged by the contents of PATH, which is string
22133 # having a format:
22134 # "DIR[:DIR]:"
22135 # string "DIR[ DIR]" will be prepended to VARIABLE
22136 # ":DIR[:DIR]"
22137 # string "DIR[ DIR]" will be appended to VARIABLE
22138 # "DIRP[:DIRP]::[DIRA:]DIRA"
22139 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
22140 # "DIRA[ DIRA]" will be appended to VARIABLE
22141 # "DIR[:DIR]"
22142 # VARIABLE will be replaced by "DIR[ DIR]"
22143 func_munge_path_list ()
22144 {
22145 case x$2 in
22146 x)
22147 ;;
22148 *:)
22149 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
22150 ;;
22151 x:*)
22152 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
22153 ;;
22154 *::*)
22155 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
22156 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
22157 ;;
22158 *)
22159 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
22160 ;;
22161 esac
22162 }
22163
22164
22165 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
22166 func_cc_basename ()
22167 {
22168 for cc_temp in $*""; do
22169 case $cc_temp in
22170 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
22171 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
22172 \-*) ;;
22173 *) break;;
22174 esac
22175 done
22176 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
22177 }
22178
22179
22180 # ### END FUNCTIONS SHARED WITH CONFIGURE
22181
22182 _LT_EOF
22183
22184 case $host_os in
22185 aix3*)
22186 cat <<\_LT_EOF >> "$cfgfile"
22187 # AIX sometimes has problems with the GCC collect2 program. For some
22188 # reason, if we set the COLLECT_NAMES environment variable, the problems
22189 # vanish in a puff of smoke.
22190 if test set != "${COLLECT_NAMES+set}"; then
22191 COLLECT_NAMES=
22192 export COLLECT_NAMES
22193 fi
22194 _LT_EOF
22195 ;;
22196 esac
22197
22198
22199
22200 ltmain=$ac_aux_dir/ltmain.sh
22201
22202
22203 # We use sed instead of cat because bash on DJGPP gets confused if
22204 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22205 # text mode, it properly converts lines to CR/LF. This bash problem
22206 # is reportedly fixed, but why not run on old versions too?
22207 $SED '$q' "$ltmain" >> "$cfgfile" \
22208 || (rm -f "$cfgfile"; exit 1)
22209
22210 mv -f "$cfgfile" "$ofile" ||
22211 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22212 chmod +x "$ofile"
22213
22214 ;;
22215
22216 esac
22217 done # for ac_tag
22218
22219
22220 as_fn_exit 0
22221 _ACEOF
22222 ac_clean_files=$ac_clean_files_save
22223
22224 test $ac_write_fail = 0 ||
22225 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22226
22227
22228 # configure is writing to config.log, and then calls config.status.
22229 # config.status does its own redirection, appending to config.log.
22230 # Unfortunately, on DOS this fails, as config.log is still kept open
22231 # by configure, so config.status won't be able to write to it; its
22232 # output is simply discarded. So we exec the FD to /dev/null,
22233 # effectively closing config.log, so it can be properly (re)opened and
22234 # appended to by config.status. When coming back to configure, we
22235 # need to make the FD available again.
22236 if test "$no_create" != yes; then
22237 ac_cs_success=:
22238 ac_config_status_args=
22239 test "$silent" = yes &&
22240 ac_config_status_args="$ac_config_status_args --quiet"
22241 exec 5>/dev/null
22242 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22243 exec 5>>config.log
22244 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22245 # would make configure fail if this is the last instruction.
22246 $ac_cs_success || as_fn_exit 1
22247 fi
22248 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22250 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22251 fi
22252
22253
22254