configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for libXfont2 2.0.6.
4 #
5 # Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/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/libxfont/-/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 as_awk_strverscmp='
602 # Use only awk features that work with 7th edition Unix awk (1978).
603 # My, what an old awk you have, Mr. Solaris!
604 END {
605 while (length(v1) && length(v2)) {
606 # Set d1 to be the next thing to compare from v1, and likewise for d2.
607 # Normally this is a single character, but if v1 and v2 contain digits,
608 # compare them as integers and fractions as strverscmp does.
609 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
610 # Split v1 and v2 into their leading digit string components d1 and d2,
611 # and advance v1 and v2 past the leading digit strings.
612 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
613 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
614 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
615 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
616 if (d1 ~ /^0/) {
617 if (d2 ~ /^0/) {
618 # Compare two fractions.
619 while (d1 ~ /^0/ && d2 ~ /^0/) {
620 d1 = substr(d1, 2); len1--
621 d2 = substr(d2, 2); len2--
622 }
623 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
624 # The two components differ in length, and the common prefix
625 # contains only leading zeros. Consider the longer to be less.
626 d1 = -len1
627 d2 = -len2
628 } else {
629 # Otherwise, compare as strings.
630 d1 = "x" d1
631 d2 = "x" d2
632 }
633 } else {
634 # A fraction is less than an integer.
635 exit 1
636 }
637 } else {
638 if (d2 ~ /^0/) {
639 # An integer is greater than a fraction.
640 exit 2
641 } else {
642 # Compare two integers.
643 d1 += 0
644 d2 += 0
645 }
646 }
647 } else {
648 # The normal case, without worrying about digits.
649 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
650 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
651 }
652 if (d1 < d2) exit 1
653 if (d1 > d2) exit 2
654 }
655 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
656 # which mishandles some comparisons of empty strings to integers.
657 if (length(v2)) exit 1
658 if (length(v1)) exit 2
659 }
660 '
661
662 test -n "$DJDIR" || exec 7<&0 </dev/null
663 exec 6>&1
664
665 # Name of the host.
666 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
667 # so uname gets run too.
668 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
669
670 #
671 # Initializations.
672 #
673 ac_default_prefix=/usr/local
674 ac_clean_files=
675 ac_config_libobj_dir=.
676 LIBOBJS=
677 cross_compiling=no
678 subdirs=
679 MFLAGS=
680 MAKEFLAGS=
681
682 # Identity of this package.
683 PACKAGE_NAME='libXfont2'
684 PACKAGE_TARNAME='libXfont2'
685 PACKAGE_VERSION='2.0.6'
686 PACKAGE_STRING='libXfont2 2.0.6'
687 PACKAGE_BUGREPORT='https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues'
688 PACKAGE_URL=''
689
690 ac_unique_file="Makefile.am"
691 # Factoring default headers for most tests.
692 ac_includes_default="\
693 #include <stddef.h>
694 #ifdef HAVE_STDIO_H
695 # include <stdio.h>
696 #endif
697 #ifdef HAVE_STDLIB_H
698 # include <stdlib.h>
699 #endif
700 #ifdef HAVE_STRING_H
701 # include <string.h>
702 #endif
703 #ifdef HAVE_INTTYPES_H
704 # include <inttypes.h>
705 #endif
706 #ifdef HAVE_STDINT_H
707 # include <stdint.h>
708 #endif
709 #ifdef HAVE_STRINGS_H
710 # include <strings.h>
711 #endif
712 #ifdef HAVE_SYS_TYPES_H
713 # include <sys/types.h>
714 #endif
715 #ifdef HAVE_SYS_STAT_H
716 # include <sys/stat.h>
717 #endif
718 #ifdef HAVE_UNISTD_H
719 # include <unistd.h>
720 #endif"
721
722 ac_header_c_list=
723 ac_config_libobj_dir=src/util
724 ac_subst_vars='am__EXEEXT_FALSE
725 am__EXEEXT_TRUE
726 LTLIBOBJS
727 OS_CFLAGS
728 XFONT_LIBS
729 XFONT_CFLAGS
730 MATH_LIBS
731 XFONT_FC_FALSE
732 XFONT_FC_TRUE
733 XFONT_FONTFILE_FALSE
734 XFONT_FONTFILE_TRUE
735 XFONT_BITMAP_FALSE
736 XFONT_BITMAP_TRUE
737 XFONT_SNFFORMAT_FALSE
738 XFONT_SNFFORMAT_TRUE
739 XFONT_BDFFORMAT_FALSE
740 XFONT_BDFFORMAT_TRUE
741 XFONT_PCF_OR_BUILTIN_FALSE
742 XFONT_PCF_OR_BUILTIN_TRUE
743 XFONT_PCFFORMAT_FALSE
744 XFONT_PCFFORMAT_TRUE
745 XFONT_BUILTINS_FALSE
746 XFONT_BUILTINS_TRUE
747 Z_LIBS
748 X_BZIP2_FONT_COMPRESSION_FALSE
749 X_BZIP2_FONT_COMPRESSION_TRUE
750 Z_REQUIRES
751 ZLIB_LIBS
752 ZLIB_CFLAGS
753 X_GZIP_FONT_COMPRESSION
754 FREETYPE_REQUIRES
755 ft_config
756 FREETYPE_LIBS
757 FREETYPE_CFLAGS
758 XFONT_FREETYPE_FALSE
759 XFONT_FREETYPE_TRUE
760 LIBOBJS
761 HAVE_STYLESHEETS_FALSE
762 HAVE_STYLESHEETS_TRUE
763 XSL_STYLESHEET
764 STYLESHEET_SRCDIR
765 XORG_SGML_PATH
766 HAVE_FOP_FALSE
767 HAVE_FOP_TRUE
768 FOP
769 HAVE_XMLTO_FALSE
770 HAVE_XMLTO_TRUE
771 HAVE_XMLTO_TEXT_FALSE
772 HAVE_XMLTO_TEXT_TRUE
773 XMLTO
774 ENABLE_DEVEL_DOCS_FALSE
775 ENABLE_DEVEL_DOCS_TRUE
776 MAN_SUBSTS
777 XORG_MAN_PAGE
778 ADMIN_MAN_DIR
779 DRIVER_MAN_DIR
780 MISC_MAN_DIR
781 FILE_MAN_DIR
782 LIB_MAN_DIR
783 APP_MAN_DIR
784 ADMIN_MAN_SUFFIX
785 DRIVER_MAN_SUFFIX
786 MISC_MAN_SUFFIX
787 FILE_MAN_SUFFIX
788 LIB_MAN_SUFFIX
789 APP_MAN_SUFFIX
790 INSTALL_CMD
791 PKG_CONFIG_LIBDIR
792 PKG_CONFIG_PATH
793 PKG_CONFIG
794 CHANGELOG_CMD
795 STRICT_CFLAGS
796 CWARNFLAGS
797 BASE_CFLAGS
798 LT_SYS_LIBRARY_PATH
799 OTOOL64
800 OTOOL
801 LIPO
802 NMEDIT
803 DSYMUTIL
804 MANIFEST_TOOL
805 RANLIB
806 ac_ct_AR
807 AR
808 DLLTOOL
809 OBJDUMP
810 FILECMD
811 LN_S
812 NM
813 ac_ct_DUMPBIN
814 DUMPBIN
815 LD
816 FGREP
817 EGREP
818 GREP
819 SED
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 LIBTOOL
829 am__fastdepCC_FALSE
830 am__fastdepCC_TRUE
831 CCDEPMODE
832 am__nodep
833 AMDEPBACKSLASH
834 AMDEP_FALSE
835 AMDEP_TRUE
836 am__include
837 DEPDIR
838 OBJEXT
839 EXEEXT
840 ac_ct_CC
841 CPPFLAGS
842 LDFLAGS
843 CFLAGS
844 CC
845 AM_BACKSLASH
846 AM_DEFAULT_VERBOSITY
847 AM_DEFAULT_V
848 AM_V
849 CSCOPE
850 ETAGS
851 CTAGS
852 am__untar
853 am__tar
854 AMTAR
855 am__leading_dot
856 SET_MAKE
857 AWK
858 mkdir_p
859 MKDIR_P
860 INSTALL_STRIP_PROGRAM
861 STRIP
862 install_sh
863 MAKEINFO
864 AUTOHEADER
865 AUTOMAKE
866 AUTOCONF
867 ACLOCAL
868 VERSION
869 PACKAGE
870 CYGPATH_W
871 am__isrc
872 INSTALL_DATA
873 INSTALL_SCRIPT
874 INSTALL_PROGRAM
875 target_alias
876 host_alias
877 build_alias
878 LIBS
879 ECHO_T
880 ECHO_N
881 ECHO_C
882 DEFS
883 mandir
884 localedir
885 libdir
886 psdir
887 pdfdir
888 dvidir
889 htmldir
890 infodir
891 docdir
892 oldincludedir
893 includedir
894 runstatedir
895 localstatedir
896 sharedstatedir
897 sysconfdir
898 datadir
899 datarootdir
900 libexecdir
901 sbindir
902 bindir
903 program_transform_name
904 prefix
905 exec_prefix
906 PACKAGE_URL
907 PACKAGE_BUGREPORT
908 PACKAGE_STRING
909 PACKAGE_VERSION
910 PACKAGE_TARNAME
911 PACKAGE_NAME
912 PATH_SEPARATOR
913 SHELL
914 am__quote'
915 ac_subst_files=''
916 ac_user_opts='
917 enable_option_checking
918 enable_silent_rules
919 enable_dependency_tracking
920 enable_shared
921 enable_static
922 with_pic
923 enable_fast_install
924 with_aix_soname
925 with_gnu_ld
926 with_sysroot
927 enable_libtool_lock
928 enable_selective_werror
929 enable_strict_compilation
930 enable_devel_docs
931 with_xmlto
932 with_fop
933 enable_freetype
934 with_freetype_config
935 with_bzip2
936 enable_builtins
937 enable_pcfformat
938 enable_bdfformat
939 enable_snfformat
940 enable_fc
941 enable_unix_transport
942 enable_tcp_transport
943 enable_ipv6
944 enable_local_transport
945 '
946 ac_precious_vars='build_alias
947 host_alias
948 target_alias
949 CC
950 CFLAGS
951 LDFLAGS
952 LIBS
953 CPPFLAGS
954 LT_SYS_LIBRARY_PATH
955 PKG_CONFIG
956 PKG_CONFIG_PATH
957 PKG_CONFIG_LIBDIR
958 XMLTO
959 FOP
960 FREETYPE_CFLAGS
961 FREETYPE_LIBS
962 ZLIB_CFLAGS
963 ZLIB_LIBS
964 XFONT_CFLAGS
965 XFONT_LIBS'
966
967
968 # Initialize some variables set by options.
969 ac_init_help=
970 ac_init_version=false
971 ac_unrecognized_opts=
972 ac_unrecognized_sep=
973 # The variables have the same names as the options, with
974 # dashes changed to underlines.
975 cache_file=/dev/null
976 exec_prefix=NONE
977 no_create=
978 no_recursion=
979 prefix=NONE
980 program_prefix=NONE
981 program_suffix=NONE
982 program_transform_name=s,x,x,
983 silent=
984 site=
985 srcdir=
986 verbose=
987 x_includes=NONE
988 x_libraries=NONE
989
990 # Installation directory options.
991 # These are left unexpanded so users can "make install exec_prefix=/foo"
992 # and all the variables that are supposed to be based on exec_prefix
993 # by default will actually change.
994 # Use braces instead of parens because sh, perl, etc. also accept them.
995 # (The list follows the same order as the GNU Coding Standards.)
996 bindir='${exec_prefix}/bin'
997 sbindir='${exec_prefix}/sbin'
998 libexecdir='${exec_prefix}/libexec'
999 datarootdir='${prefix}/share'
1000 datadir='${datarootdir}'
1001 sysconfdir='${prefix}/etc'
1002 sharedstatedir='${prefix}/com'
1003 localstatedir='${prefix}/var'
1004 runstatedir='${localstatedir}/run'
1005 includedir='${prefix}/include'
1006 oldincludedir='/usr/include'
1007 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1008 infodir='${datarootdir}/info'
1009 htmldir='${docdir}'
1010 dvidir='${docdir}'
1011 pdfdir='${docdir}'
1012 psdir='${docdir}'
1013 libdir='${exec_prefix}/lib'
1014 localedir='${datarootdir}/locale'
1015 mandir='${datarootdir}/man'
1016
1017 ac_prev=
1018 ac_dashdash=
1019 for ac_option
1020 do
1021 # If the previous option needs an argument, assign it.
1022 if test -n "$ac_prev"; then
1023 eval $ac_prev=\$ac_option
1024 ac_prev=
1025 continue
1026 fi
1027
1028 case $ac_option in
1029 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1030 *=) ac_optarg= ;;
1031 *) ac_optarg=yes ;;
1032 esac
1033
1034 case $ac_dashdash$ac_option in
1035 --)
1036 ac_dashdash=yes ;;
1037
1038 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1039 ac_prev=bindir ;;
1040 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1041 bindir=$ac_optarg ;;
1042
1043 -build | --build | --buil | --bui | --bu)
1044 ac_prev=build_alias ;;
1045 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1046 build_alias=$ac_optarg ;;
1047
1048 -cache-file | --cache-file | --cache-fil | --cache-fi \
1049 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1050 ac_prev=cache_file ;;
1051 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1052 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1053 cache_file=$ac_optarg ;;
1054
1055 --config-cache | -C)
1056 cache_file=config.cache ;;
1057
1058 -datadir | --datadir | --datadi | --datad)
1059 ac_prev=datadir ;;
1060 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1061 datadir=$ac_optarg ;;
1062
1063 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1064 | --dataroo | --dataro | --datar)
1065 ac_prev=datarootdir ;;
1066 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1067 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1068 datarootdir=$ac_optarg ;;
1069
1070 -disable-* | --disable-*)
1071 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1074 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1075 ac_useropt_orig=$ac_useropt
1076 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1077 case $ac_user_opts in
1078 *"
1079 "enable_$ac_useropt"
1080 "*) ;;
1081 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1082 ac_unrecognized_sep=', ';;
1083 esac
1084 eval enable_$ac_useropt=no ;;
1085
1086 -docdir | --docdir | --docdi | --doc | --do)
1087 ac_prev=docdir ;;
1088 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1089 docdir=$ac_optarg ;;
1090
1091 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1092 ac_prev=dvidir ;;
1093 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1094 dvidir=$ac_optarg ;;
1095
1096 -enable-* | --enable-*)
1097 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1098 # Reject names that are not valid shell variable names.
1099 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1100 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1101 ac_useropt_orig=$ac_useropt
1102 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1103 case $ac_user_opts in
1104 *"
1105 "enable_$ac_useropt"
1106 "*) ;;
1107 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1108 ac_unrecognized_sep=', ';;
1109 esac
1110 eval enable_$ac_useropt=\$ac_optarg ;;
1111
1112 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1113 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1114 | --exec | --exe | --ex)
1115 ac_prev=exec_prefix ;;
1116 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1117 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1118 | --exec=* | --exe=* | --ex=*)
1119 exec_prefix=$ac_optarg ;;
1120
1121 -gas | --gas | --ga | --g)
1122 # Obsolete; use --with-gas.
1123 with_gas=yes ;;
1124
1125 -help | --help | --hel | --he | -h)
1126 ac_init_help=long ;;
1127 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1128 ac_init_help=recursive ;;
1129 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1130 ac_init_help=short ;;
1131
1132 -host | --host | --hos | --ho)
1133 ac_prev=host_alias ;;
1134 -host=* | --host=* | --hos=* | --ho=*)
1135 host_alias=$ac_optarg ;;
1136
1137 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1138 ac_prev=htmldir ;;
1139 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1140 | --ht=*)
1141 htmldir=$ac_optarg ;;
1142
1143 -includedir | --includedir | --includedi | --included | --include \
1144 | --includ | --inclu | --incl | --inc)
1145 ac_prev=includedir ;;
1146 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1147 | --includ=* | --inclu=* | --incl=* | --inc=*)
1148 includedir=$ac_optarg ;;
1149
1150 -infodir | --infodir | --infodi | --infod | --info | --inf)
1151 ac_prev=infodir ;;
1152 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1153 infodir=$ac_optarg ;;
1154
1155 -libdir | --libdir | --libdi | --libd)
1156 ac_prev=libdir ;;
1157 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1158 libdir=$ac_optarg ;;
1159
1160 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1161 | --libexe | --libex | --libe)
1162 ac_prev=libexecdir ;;
1163 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1164 | --libexe=* | --libex=* | --libe=*)
1165 libexecdir=$ac_optarg ;;
1166
1167 -localedir | --localedir | --localedi | --localed | --locale)
1168 ac_prev=localedir ;;
1169 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1170 localedir=$ac_optarg ;;
1171
1172 -localstatedir | --localstatedir | --localstatedi | --localstated \
1173 | --localstate | --localstat | --localsta | --localst | --locals)
1174 ac_prev=localstatedir ;;
1175 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1176 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1177 localstatedir=$ac_optarg ;;
1178
1179 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1180 ac_prev=mandir ;;
1181 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1182 mandir=$ac_optarg ;;
1183
1184 -nfp | --nfp | --nf)
1185 # Obsolete; use --without-fp.
1186 with_fp=no ;;
1187
1188 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1189 | --no-cr | --no-c | -n)
1190 no_create=yes ;;
1191
1192 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1193 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1194 no_recursion=yes ;;
1195
1196 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1197 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1198 | --oldin | --oldi | --old | --ol | --o)
1199 ac_prev=oldincludedir ;;
1200 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1201 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1202 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1203 oldincludedir=$ac_optarg ;;
1204
1205 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1206 ac_prev=prefix ;;
1207 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1208 prefix=$ac_optarg ;;
1209
1210 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1211 | --program-pre | --program-pr | --program-p)
1212 ac_prev=program_prefix ;;
1213 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1214 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1215 program_prefix=$ac_optarg ;;
1216
1217 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1218 | --program-suf | --program-su | --program-s)
1219 ac_prev=program_suffix ;;
1220 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1221 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1222 program_suffix=$ac_optarg ;;
1223
1224 -program-transform-name | --program-transform-name \
1225 | --program-transform-nam | --program-transform-na \
1226 | --program-transform-n | --program-transform- \
1227 | --program-transform | --program-transfor \
1228 | --program-transfo | --program-transf \
1229 | --program-trans | --program-tran \
1230 | --progr-tra | --program-tr | --program-t)
1231 ac_prev=program_transform_name ;;
1232 -program-transform-name=* | --program-transform-name=* \
1233 | --program-transform-nam=* | --program-transform-na=* \
1234 | --program-transform-n=* | --program-transform-=* \
1235 | --program-transform=* | --program-transfor=* \
1236 | --program-transfo=* | --program-transf=* \
1237 | --program-trans=* | --program-tran=* \
1238 | --progr-tra=* | --program-tr=* | --program-t=*)
1239 program_transform_name=$ac_optarg ;;
1240
1241 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1242 ac_prev=pdfdir ;;
1243 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1244 pdfdir=$ac_optarg ;;
1245
1246 -psdir | --psdir | --psdi | --psd | --ps)
1247 ac_prev=psdir ;;
1248 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1249 psdir=$ac_optarg ;;
1250
1251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1252 | -silent | --silent | --silen | --sile | --sil)
1253 silent=yes ;;
1254
1255 -runstatedir | --runstatedir | --runstatedi | --runstated \
1256 | --runstate | --runstat | --runsta | --runst | --runs \
1257 | --run | --ru | --r)
1258 ac_prev=runstatedir ;;
1259 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1260 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1261 | --run=* | --ru=* | --r=*)
1262 runstatedir=$ac_optarg ;;
1263
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1265 ac_prev=sbindir ;;
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1267 | --sbi=* | --sb=*)
1268 sbindir=$ac_optarg ;;
1269
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1273 | --sha | --sh)
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1278 | --sha=* | --sh=*)
1279 sharedstatedir=$ac_optarg ;;
1280
1281 -site | --site | --sit)
1282 ac_prev=site ;;
1283 -site=* | --site=* | --sit=*)
1284 site=$ac_optarg ;;
1285
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1287 ac_prev=srcdir ;;
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1290
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1297
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1302
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1304 verbose=yes ;;
1305
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1308
1309 -with-* | --with-*)
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error $? "invalid package name: \`$ac_useropt'"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1317 *"
1318 "with_$ac_useropt"
1319 "*) ;;
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1322 esac
1323 eval with_$ac_useropt=\$ac_optarg ;;
1324
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error $? "invalid package name: \`$ac_useropt'"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1333 *"
1334 "with_$ac_useropt"
1335 "*) ;;
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1338 esac
1339 eval with_$ac_useropt=no ;;
1340
1341 --x)
1342 # Obsolete; use --with-x.
1343 with_x=yes ;;
1344
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1351
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1358
1359 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information"
1361 ;;
1362
1363 *=*)
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1369 esac
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1372
1373 *)
1374 # FIXME: should be removed in autoconf 3.0.
1375 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1379 ;;
1380
1381 esac
1382 done
1383
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error $? "missing argument to $ac_option"
1387 fi
1388
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1391 no) ;;
1392 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1394 esac
1395 fi
1396
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir runstatedir
1402 do
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1405 case $ac_val in
1406 */ )
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1409 esac
1410 # Be sure to have absolute directory names.
1411 case $ac_val in
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1414 esac
1415 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1416 done
1417
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1421 build=$build_alias
1422 host=$host_alias
1423 target=$target_alias
1424
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 elif test "x$build_alias" != "x$host_alias"; then
1430 cross_compiling=yes
1431 fi
1432 fi
1433
1434 ac_tool_prefix=
1435 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1436
1437 test "$silent" = yes && exec 6>/dev/null
1438
1439
1440 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1441 ac_ls_di=`ls -di .` &&
1442 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1443 as_fn_error $? "working directory cannot be determined"
1444 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1445 as_fn_error $? "pwd does not report name of working directory"
1446
1447
1448 # Find the source files, if location was not specified.
1449 if test -z "$srcdir"; then
1450 ac_srcdir_defaulted=yes
1451 # Try the directory containing this script, then the parent directory.
1452 ac_confdir=`$as_dirname -- "$as_myself" ||
1453 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1454 X"$as_myself" : 'X\(//\)[^/]' \| \
1455 X"$as_myself" : 'X\(//\)$' \| \
1456 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1457 printf "%s\n" X"$as_myself" |
1458 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\/\)[^/].*/{
1463 s//\1/
1464 q
1465 }
1466 /^X\(\/\/\)$/{
1467 s//\1/
1468 q
1469 }
1470 /^X\(\/\).*/{
1471 s//\1/
1472 q
1473 }
1474 s/.*/./; q'`
1475 srcdir=$ac_confdir
1476 if test ! -r "$srcdir/$ac_unique_file"; then
1477 srcdir=..
1478 fi
1479 else
1480 ac_srcdir_defaulted=no
1481 fi
1482 if test ! -r "$srcdir/$ac_unique_file"; then
1483 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1484 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1485 fi
1486 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1487 ac_abs_confdir=`(
1488 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1489 pwd)`
1490 # When building in place, set srcdir=.
1491 if test "$ac_abs_confdir" = "$ac_pwd"; then
1492 srcdir=.
1493 fi
1494 # Remove unnecessary trailing slashes from srcdir.
1495 # Double slashes in file names in object file debugging info
1496 # mess up M-x gdb in Emacs.
1497 case $srcdir in
1498 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1499 esac
1500 for ac_var in $ac_precious_vars; do
1501 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1502 eval ac_env_${ac_var}_value=\$${ac_var}
1503 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1505 done
1506
1507 #
1508 # Report the --help message.
1509 #
1510 if test "$ac_init_help" = "long"; then
1511 # Omit some internal or obsolete options to make the list less imposing.
1512 # This message is too long to be a string in the A/UX 3.1 sh.
1513 cat <<_ACEOF
1514 \`configure' configures libXfont2 2.0.6 to adapt to many kinds of systems.
1515
1516 Usage: $0 [OPTION]... [VAR=VALUE]...
1517
1518 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1519 VAR=VALUE. See below for descriptions of some of the useful variables.
1520
1521 Defaults for the options are specified in brackets.
1522
1523 Configuration:
1524 -h, --help display this help and exit
1525 --help=short display options specific to this package
1526 --help=recursive display the short help of all the included packages
1527 -V, --version display version information and exit
1528 -q, --quiet, --silent do not print \`checking ...' messages
1529 --cache-file=FILE cache test results in FILE [disabled]
1530 -C, --config-cache alias for \`--cache-file=config.cache'
1531 -n, --no-create do not create output files
1532 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1533
1534 Installation directories:
1535 --prefix=PREFIX install architecture-independent files in PREFIX
1536 [$ac_default_prefix]
1537 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1538 [PREFIX]
1539
1540 By default, \`make install' will install all the files in
1541 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1542 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1543 for instance \`--prefix=\$HOME'.
1544
1545 For better control, use the options below.
1546
1547 Fine tuning of the installation directories:
1548 --bindir=DIR user executables [EPREFIX/bin]
1549 --sbindir=DIR system admin executables [EPREFIX/sbin]
1550 --libexecdir=DIR program executables [EPREFIX/libexec]
1551 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1552 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1553 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1554 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1555 --libdir=DIR object code libraries [EPREFIX/lib]
1556 --includedir=DIR C header files [PREFIX/include]
1557 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1558 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1559 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1560 --infodir=DIR info documentation [DATAROOTDIR/info]
1561 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1562 --mandir=DIR man documentation [DATAROOTDIR/man]
1563 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont2]
1564 --htmldir=DIR html documentation [DOCDIR]
1565 --dvidir=DIR dvi documentation [DOCDIR]
1566 --pdfdir=DIR pdf documentation [DOCDIR]
1567 --psdir=DIR ps documentation [DOCDIR]
1568 _ACEOF
1569
1570 cat <<\_ACEOF
1571
1572 Program names:
1573 --program-prefix=PREFIX prepend PREFIX to installed program names
1574 --program-suffix=SUFFIX append SUFFIX to installed program names
1575 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1576
1577 System types:
1578 --build=BUILD configure for building on BUILD [guessed]
1579 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1580 _ACEOF
1581 fi
1582
1583 if test -n "$ac_init_help"; then
1584 case $ac_init_help in
1585 short | recursive ) echo "Configuration of libXfont2 2.0.6:";;
1586 esac
1587 cat <<\_ACEOF
1588
1589 Optional Features:
1590 --disable-option-checking ignore unrecognized --enable/--with options
1591 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1592 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1593 --enable-silent-rules less verbose build output (undo: "make V=1")
1594 --disable-silent-rules verbose build output (undo: "make V=0")
1595 --enable-dependency-tracking
1596 do not reject slow dependency extractors
1597 --disable-dependency-tracking
1598 speeds up one-time build
1599 --enable-shared[=PKGS] build shared libraries [default=yes]
1600 --enable-static[=PKGS] build static libraries [default=yes]
1601 --enable-fast-install[=PKGS]
1602 optimize for fast installation [default=yes]
1603 --disable-libtool-lock avoid locking (might break parallel builds)
1604 --disable-selective-werror
1605 Turn off selective compiler errors. (default:
1606 enabled)
1607 --enable-strict-compilation
1608 Enable all warnings from compiler and make them
1609 errors (default: disabled)
1610 --enable-devel-docs Enable building the developer documentation
1611 (default: yes)
1612 --disable-freetype Build freetype backend (default: enabled)
1613 --disable-builtins Support builtin fonts (default: enabled)
1614 --disable-pcfformat Support PCF format bitmap fonts (default: enabled)
1615 --disable-bdfformat Support BDF format bitmap fonts (default: enabled)
1616 --enable-snfformat Support SNF format bitmap fonts (default: disabled)
1617 --disable-fc Support connections to xfs servers (default:
1618 enabled)
1619 --enable-unix-transport Enable UNIX domain socket transport
1620 --enable-tcp-transport Enable TCP socket transport
1621 --enable-ipv6 Enable IPv6 support
1622 --enable-local-transport
1623 Enable os-specific local transport
1624
1625 Optional Packages:
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1629 both]
1630 --with-aix-soname=aix|svr4|both
1631 shared library versioning (aka "SONAME") variant to
1632 provide on AIX, [default=aix].
1633 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1634 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1635 compiler's sysroot if not specified).
1636 --with-xmlto Use xmlto to regenerate documentation (default:
1637 auto)
1638 --with-fop Use fop to regenerate documentation (default: auto)
1639 --with-freetype-config=PROG
1640 Use FreeType configuration program PROG
1641 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts
1642 (default: no)
1643
1644 Some influential environment variables:
1645 CC C compiler command
1646 CFLAGS C compiler flags
1647 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1648 nonstandard directory <lib dir>
1649 LIBS libraries to pass to the linker, e.g. -l<library>
1650 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1651 you have headers in a nonstandard directory <include dir>
1652 LT_SYS_LIBRARY_PATH
1653 User-defined run-time library search path.
1654 PKG_CONFIG path to pkg-config utility
1655 PKG_CONFIG_PATH
1656 directories to add to pkg-config's search path
1657 PKG_CONFIG_LIBDIR
1658 path overriding pkg-config's built-in search path
1659 XMLTO Path to xmlto command
1660 FOP Path to fop command
1661 FREETYPE_CFLAGS
1662 C compiler flags for FREETYPE, overriding pkg-config
1663 FREETYPE_LIBS
1664 linker flags for FREETYPE, overriding pkg-config
1665 ZLIB_CFLAGS C compiler flags for ZLIB, overriding pkg-config
1666 ZLIB_LIBS linker flags for ZLIB, overriding pkg-config
1667 XFONT_CFLAGS
1668 C compiler flags for XFONT, overriding pkg-config
1669 XFONT_LIBS linker flags for XFONT, overriding pkg-config
1670
1671 Use these variables to override the choices made by `configure' or to help
1672 it to find libraries and programs with nonstandard names/locations.
1673
1674 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>.
1675 _ACEOF
1676 ac_status=$?
1677 fi
1678
1679 if test "$ac_init_help" = "recursive"; then
1680 # If there are subdirs, report their specific --help.
1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1682 test -d "$ac_dir" ||
1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684 continue
1685 ac_builddir=.
1686
1687 case "$ac_dir" in
1688 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689 *)
1690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1691 # A ".." for each directory in $ac_dir_suffix.
1692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1693 case $ac_top_builddir_sub in
1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696 esac ;;
1697 esac
1698 ac_abs_top_builddir=$ac_pwd
1699 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700 # for backward compatibility:
1701 ac_top_builddir=$ac_top_build_prefix
1702
1703 case $srcdir in
1704 .) # We are building in place.
1705 ac_srcdir=.
1706 ac_top_srcdir=$ac_top_builddir_sub
1707 ac_abs_top_srcdir=$ac_pwd ;;
1708 [\\/]* | ?:[\\/]* ) # Absolute name.
1709 ac_srcdir=$srcdir$ac_dir_suffix;
1710 ac_top_srcdir=$srcdir
1711 ac_abs_top_srcdir=$srcdir ;;
1712 *) # Relative name.
1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714 ac_top_srcdir=$ac_top_build_prefix$srcdir
1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1716 esac
1717 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718
1719 cd "$ac_dir" || { ac_status=$?; continue; }
1720 # Check for configure.gnu first; this name is used for a wrapper for
1721 # Metaconfig's "Configure" on case-insensitive file systems.
1722 if test -f "$ac_srcdir/configure.gnu"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1726 echo &&
1727 $SHELL "$ac_srcdir/configure" --help=recursive
1728 else
1729 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1730 fi || ac_status=$?
1731 cd "$ac_pwd" || { ac_status=$?; break; }
1732 done
1733 fi
1734
1735 test -n "$ac_init_help" && exit $ac_status
1736 if $ac_init_version; then
1737 cat <<\_ACEOF
1738 libXfont2 configure 2.0.6
1739 generated by GNU Autoconf 2.71
1740
1741 Copyright (C) 2021 Free Software Foundation, Inc.
1742 This configure script is free software; the Free Software Foundation
1743 gives unlimited permission to copy, distribute and modify it.
1744 _ACEOF
1745 exit
1746 fi
1747
1748 ## ------------------------ ##
1749 ## Autoconf initialization. ##
1750 ## ------------------------ ##
1751
1752 # ac_fn_c_try_compile LINENO
1753 # --------------------------
1754 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1755 ac_fn_c_try_compile ()
1756 {
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 rm -f conftest.$ac_objext conftest.beam
1759 if { { ac_try="$ac_compile"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 printf "%s\n" "$ac_try_echo"; } >&5
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
1777 } && test -s conftest.$ac_objext
1778 then :
1779 ac_retval=0
1780 else $as_nop
1781 printf "%s\n" "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1783
1784 ac_retval=1
1785 fi
1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1787 as_fn_set_status $ac_retval
1788
1789 } # ac_fn_c_try_compile
1790
1791 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792 # -------------------------------------------------------
1793 # Tests whether HEADER exists and can be compiled using the include files in
1794 # INCLUDES, setting the cache variable VAR accordingly.
1795 ac_fn_c_check_header_compile ()
1796 {
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799 printf %s "checking for $2... " >&6; }
1800 if eval test \${$3+y}
1801 then :
1802 printf %s "(cached) " >&6
1803 else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805 /* end confdefs.h. */
1806 $4
1807 #include <$2>
1808 _ACEOF
1809 if ac_fn_c_try_compile "$LINENO"
1810 then :
1811 eval "$3=yes"
1812 else $as_nop
1813 eval "$3=no"
1814 fi
1815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816 fi
1817 eval ac_res=\$$3
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822 } # ac_fn_c_check_header_compile
1823
1824 # ac_fn_c_try_link LINENO
1825 # -----------------------
1826 # Try to link conftest.$ac_ext, and return whether this succeeded.
1827 ac_fn_c_try_link ()
1828 {
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1831 if { { ac_try="$ac_link"
1832 case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835 esac
1836 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837 printf "%s\n" "$ac_try_echo"; } >&5
1838 (eval "$ac_link") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
1845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
1851 test -x conftest$ac_exeext
1852 }
1853 then :
1854 ac_retval=0
1855 else $as_nop
1856 printf "%s\n" "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1858
1859 ac_retval=1
1860 fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_link
1870
1871 # ac_fn_c_check_func LINENO FUNC VAR
1872 # ----------------------------------
1873 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1874 ac_fn_c_check_func ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 printf %s "checking for $2... " >&6; }
1879 if eval test \${$3+y}
1880 then :
1881 printf %s "(cached) " >&6
1882 else $as_nop
1883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h. */
1885 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1886 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1887 #define $2 innocuous_$2
1888
1889 /* System header to define __stub macros and hopefully few prototypes,
1890 which can conflict with char $2 (); below. */
1891
1892 #include <limits.h>
1893 #undef $2
1894
1895 /* Override any GCC internal prototype to avoid an error.
1896 Use char because int might match the return type of a GCC
1897 builtin and then its argument prototype would still apply. */
1898 #ifdef __cplusplus
1899 extern "C"
1900 #endif
1901 char $2 ();
1902 /* The GNU C library defines this for functions which it implements
1903 to always fail with ENOSYS. Some functions are actually named
1904 something starting with __ and the normal name is an alias. */
1905 #if defined __stub_$2 || defined __stub___$2
1906 choke me
1907 #endif
1908
1909 int
1910 main (void)
1911 {
1912 return $2 ();
1913 ;
1914 return 0;
1915 }
1916 _ACEOF
1917 if ac_fn_c_try_link "$LINENO"
1918 then :
1919 eval "$3=yes"
1920 else $as_nop
1921 eval "$3=no"
1922 fi
1923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1924 conftest$ac_exeext conftest.$ac_ext
1925 fi
1926 eval ac_res=\$$3
1927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 printf "%s\n" "$ac_res" >&6; }
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930
1931 } # ac_fn_c_check_func
1932
1933 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
1934 # ------------------------------------------------------------------
1935 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1936 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
1937 ac_fn_check_decl ()
1938 {
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 as_decl_name=`echo $2|sed 's/ *(.*//'`
1941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1942 printf %s "checking whether $as_decl_name is declared... " >&6; }
1943 if eval test \${$3+y}
1944 then :
1945 printf %s "(cached) " >&6
1946 else $as_nop
1947 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1948 eval ac_save_FLAGS=\$$6
1949 as_fn_append $6 " $5"
1950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951 /* end confdefs.h. */
1952 $4
1953 int
1954 main (void)
1955 {
1956 #ifndef $as_decl_name
1957 #ifdef __cplusplus
1958 (void) $as_decl_use;
1959 #else
1960 (void) $as_decl_name;
1961 #endif
1962 #endif
1963
1964 ;
1965 return 0;
1966 }
1967 _ACEOF
1968 if ac_fn_c_try_compile "$LINENO"
1969 then :
1970 eval "$3=yes"
1971 else $as_nop
1972 eval "$3=no"
1973 fi
1974 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1975 eval $6=\$ac_save_FLAGS
1976
1977 fi
1978 eval ac_res=\$$3
1979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1980 printf "%s\n" "$ac_res" >&6; }
1981 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1982
1983 } # ac_fn_check_decl
1984
1985 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1986 # ----------------------------------------------------
1987 # Tries to find if the field MEMBER exists in type AGGR, after including
1988 # INCLUDES, setting cache variable VAR accordingly.
1989 ac_fn_c_check_member ()
1990 {
1991 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1993 printf %s "checking for $2.$3... " >&6; }
1994 if eval test \${$4+y}
1995 then :
1996 printf %s "(cached) " >&6
1997 else $as_nop
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $5
2001 int
2002 main (void)
2003 {
2004 static $2 ac_aggr;
2005 if (ac_aggr.$3)
2006 return 0;
2007 ;
2008 return 0;
2009 }
2010 _ACEOF
2011 if ac_fn_c_try_compile "$LINENO"
2012 then :
2013 eval "$4=yes"
2014 else $as_nop
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $5
2018 int
2019 main (void)
2020 {
2021 static $2 ac_aggr;
2022 if (sizeof ac_aggr.$3)
2023 return 0;
2024 ;
2025 return 0;
2026 }
2027 _ACEOF
2028 if ac_fn_c_try_compile "$LINENO"
2029 then :
2030 eval "$4=yes"
2031 else $as_nop
2032 eval "$4=no"
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2035 fi
2036 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$4
2039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 printf "%s\n" "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_member
2044
2045 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2046 # -------------------------------------------
2047 # Tests whether TYPE exists after having included INCLUDES, setting cache
2048 # variable VAR accordingly.
2049 ac_fn_c_check_type ()
2050 {
2051 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2053 printf %s "checking for $2... " >&6; }
2054 if eval test \${$3+y}
2055 then :
2056 printf %s "(cached) " >&6
2057 else $as_nop
2058 eval "$3=no"
2059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2061 $4
2062 int
2063 main (void)
2064 {
2065 if (sizeof ($2))
2066 return 0;
2067 ;
2068 return 0;
2069 }
2070 _ACEOF
2071 if ac_fn_c_try_compile "$LINENO"
2072 then :
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2075 $4
2076 int
2077 main (void)
2078 {
2079 if (sizeof (($2)))
2080 return 0;
2081 ;
2082 return 0;
2083 }
2084 _ACEOF
2085 if ac_fn_c_try_compile "$LINENO"
2086 then :
2087
2088 else $as_nop
2089 eval "$3=yes"
2090 fi
2091 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2092 fi
2093 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2094 fi
2095 eval ac_res=\$$3
2096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2097 printf "%s\n" "$ac_res" >&6; }
2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2099
2100 } # ac_fn_c_check_type
2101 ac_configure_args_raw=
2102 for ac_arg
2103 do
2104 case $ac_arg in
2105 *\'*)
2106 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2107 esac
2108 as_fn_append ac_configure_args_raw " '$ac_arg'"
2109 done
2110
2111 case $ac_configure_args_raw in
2112 *$as_nl*)
2113 ac_safe_unquote= ;;
2114 *)
2115 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2116 ac_unsafe_a="$ac_unsafe_z#~"
2117 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2118 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2119 esac
2120
2121 cat >config.log <<_ACEOF
2122 This file contains any messages produced by compilers while
2123 running configure, to aid debugging if configure makes a mistake.
2124
2125 It was created by libXfont2 $as_me 2.0.6, which was
2126 generated by GNU Autoconf 2.71. Invocation command line was
2127
2128 $ $0$ac_configure_args_raw
2129
2130 _ACEOF
2131 exec 5>>config.log
2132 {
2133 cat <<_ASUNAME
2134 ## --------- ##
2135 ## Platform. ##
2136 ## --------- ##
2137
2138 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2139 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2140 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2141 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2142 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2143
2144 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2145 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2146
2147 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2148 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2149 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2150 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2151 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2152 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2153 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2154
2155 _ASUNAME
2156
2157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2158 for as_dir in $PATH
2159 do
2160 IFS=$as_save_IFS
2161 case $as_dir in #(((
2162 '') as_dir=./ ;;
2163 */) ;;
2164 *) as_dir=$as_dir/ ;;
2165 esac
2166 printf "%s\n" "PATH: $as_dir"
2167 done
2168 IFS=$as_save_IFS
2169
2170 } >&5
2171
2172 cat >&5 <<_ACEOF
2173
2174
2175 ## ----------- ##
2176 ## Core tests. ##
2177 ## ----------- ##
2178
2179 _ACEOF
2180
2181
2182 # Keep a trace of the command line.
2183 # Strip out --no-create and --no-recursion so they do not pile up.
2184 # Strip out --silent because we don't want to record it for future runs.
2185 # Also quote any args containing shell meta-characters.
2186 # Make two passes to allow for proper duplicate-argument suppression.
2187 ac_configure_args=
2188 ac_configure_args0=
2189 ac_configure_args1=
2190 ac_must_keep_next=false
2191 for ac_pass in 1 2
2192 do
2193 for ac_arg
2194 do
2195 case $ac_arg in
2196 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2197 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2198 | -silent | --silent | --silen | --sile | --sil)
2199 continue ;;
2200 *\'*)
2201 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2202 esac
2203 case $ac_pass in
2204 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2205 2)
2206 as_fn_append ac_configure_args1 " '$ac_arg'"
2207 if test $ac_must_keep_next = true; then
2208 ac_must_keep_next=false # Got value, back to normal.
2209 else
2210 case $ac_arg in
2211 *=* | --config-cache | -C | -disable-* | --disable-* \
2212 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2213 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2214 | -with-* | --with-* | -without-* | --without-* | --x)
2215 case "$ac_configure_args0 " in
2216 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2217 esac
2218 ;;
2219 -* ) ac_must_keep_next=true ;;
2220 esac
2221 fi
2222 as_fn_append ac_configure_args " '$ac_arg'"
2223 ;;
2224 esac
2225 done
2226 done
2227 { ac_configure_args0=; unset ac_configure_args0;}
2228 { ac_configure_args1=; unset ac_configure_args1;}
2229
2230 # When interrupted or exit'd, cleanup temporary files, and complete
2231 # config.log. We remove comments because anyway the quotes in there
2232 # would cause problems or look ugly.
2233 # WARNING: Use '\'' to represent an apostrophe within the trap.
2234 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2235 trap 'exit_status=$?
2236 # Sanitize IFS.
2237 IFS=" "" $as_nl"
2238 # Save into config.log some information that might help in debugging.
2239 {
2240 echo
2241
2242 printf "%s\n" "## ---------------- ##
2243 ## Cache variables. ##
2244 ## ---------------- ##"
2245 echo
2246 # The following way of writing the cache mishandles newlines in values,
2247 (
2248 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2249 eval ac_val=\$$ac_var
2250 case $ac_val in #(
2251 *${as_nl}*)
2252 case $ac_var in #(
2253 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2254 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2255 esac
2256 case $ac_var in #(
2257 _ | IFS | as_nl) ;; #(
2258 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2259 *) { eval $ac_var=; unset $ac_var;} ;;
2260 esac ;;
2261 esac
2262 done
2263 (set) 2>&1 |
2264 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2265 *${as_nl}ac_space=\ *)
2266 sed -n \
2267 "s/'\''/'\''\\\\'\'''\''/g;
2268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2269 ;; #(
2270 *)
2271 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2272 ;;
2273 esac |
2274 sort
2275 )
2276 echo
2277
2278 printf "%s\n" "## ----------------- ##
2279 ## Output variables. ##
2280 ## ----------------- ##"
2281 echo
2282 for ac_var in $ac_subst_vars
2283 do
2284 eval ac_val=\$$ac_var
2285 case $ac_val in
2286 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2287 esac
2288 printf "%s\n" "$ac_var='\''$ac_val'\''"
2289 done | sort
2290 echo
2291
2292 if test -n "$ac_subst_files"; then
2293 printf "%s\n" "## ------------------- ##
2294 ## File substitutions. ##
2295 ## ------------------- ##"
2296 echo
2297 for ac_var in $ac_subst_files
2298 do
2299 eval ac_val=\$$ac_var
2300 case $ac_val in
2301 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2302 esac
2303 printf "%s\n" "$ac_var='\''$ac_val'\''"
2304 done | sort
2305 echo
2306 fi
2307
2308 if test -s confdefs.h; then
2309 printf "%s\n" "## ----------- ##
2310 ## confdefs.h. ##
2311 ## ----------- ##"
2312 echo
2313 cat confdefs.h
2314 echo
2315 fi
2316 test "$ac_signal" != 0 &&
2317 printf "%s\n" "$as_me: caught signal $ac_signal"
2318 printf "%s\n" "$as_me: exit $exit_status"
2319 } >&5
2320 rm -f core *.core core.conftest.* &&
2321 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2322 exit $exit_status
2323 ' 0
2324 for ac_signal in 1 2 13 15; do
2325 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2326 done
2327 ac_signal=0
2328
2329 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2330 rm -f -r conftest* confdefs.h
2331
2332 printf "%s\n" "/* confdefs.h */" > confdefs.h
2333
2334 # Predefined preprocessor variables.
2335
2336 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2337
2338 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2339
2340 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2341
2342 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2343
2344 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2345
2346 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2347
2348
2349 # Let the site file select an alternate cache file if it wants to.
2350 # Prefer an explicitly selected file to automatically selected ones.
2351 if test -n "$CONFIG_SITE"; then
2352 ac_site_files="$CONFIG_SITE"
2353 elif test "x$prefix" != xNONE; then
2354 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2355 else
2356 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2357 fi
2358
2359 for ac_site_file in $ac_site_files
2360 do
2361 case $ac_site_file in #(
2362 */*) :
2363 ;; #(
2364 *) :
2365 ac_site_file=./$ac_site_file ;;
2366 esac
2367 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2369 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2370 sed 's/^/| /' "$ac_site_file" >&5
2371 . "$ac_site_file" \
2372 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2373 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2374 as_fn_error $? "failed to load site script $ac_site_file
2375 See \`config.log' for more details" "$LINENO" 5; }
2376 fi
2377 done
2378
2379 if test -r "$cache_file"; then
2380 # Some versions of bash will fail to source /dev/null (special files
2381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2384 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2385 case $cache_file in
2386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2387 *) . "./$cache_file";;
2388 esac
2389 fi
2390 else
2391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2392 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2393 >$cache_file
2394 fi
2395
2396 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2397 # Test code for whether the C compiler supports C89 (global declarations)
2398 ac_c_conftest_c89_globals='
2399 /* Does the compiler advertise C89 conformance?
2400 Do not test the value of __STDC__, because some compilers set it to 0
2401 while being otherwise adequately conformant. */
2402 #if !defined __STDC__
2403 # error "Compiler does not advertise C89 conformance"
2404 #endif
2405
2406 #include <stddef.h>
2407 #include <stdarg.h>
2408 struct stat;
2409 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2410 struct buf { int x; };
2411 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2412 static char *e (p, i)
2413 char **p;
2414 int i;
2415 {
2416 return p[i];
2417 }
2418 static char *f (char * (*g) (char **, int), char **p, ...)
2419 {
2420 char *s;
2421 va_list v;
2422 va_start (v,p);
2423 s = g (p, va_arg (v,int));
2424 va_end (v);
2425 return s;
2426 }
2427
2428 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2429 function prototypes and stuff, but not \xHH hex character constants.
2430 These do not provoke an error unfortunately, instead are silently treated
2431 as an "x". The following induces an error, until -std is added to get
2432 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2433 array size at least. It is necessary to write \x00 == 0 to get something
2434 that is true only with -std. */
2435 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2436
2437 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2438 inside strings and character constants. */
2439 #define FOO(x) '\''x'\''
2440 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2441
2442 int test (int i, double x);
2443 struct s1 {int (*f) (int a);};
2444 struct s2 {int (*f) (double a);};
2445 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2446 int, int);'
2447
2448 # Test code for whether the C compiler supports C89 (body of main).
2449 ac_c_conftest_c89_main='
2450 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2451 '
2452
2453 # Test code for whether the C compiler supports C99 (global declarations)
2454 ac_c_conftest_c99_globals='
2455 // Does the compiler advertise C99 conformance?
2456 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2457 # error "Compiler does not advertise C99 conformance"
2458 #endif
2459
2460 #include <stdbool.h>
2461 extern int puts (const char *);
2462 extern int printf (const char *, ...);
2463 extern int dprintf (int, const char *, ...);
2464 extern void *malloc (size_t);
2465
2466 // Check varargs macros. These examples are taken from C99 6.10.3.5.
2467 // dprintf is used instead of fprintf to avoid needing to declare
2468 // FILE and stderr.
2469 #define debug(...) dprintf (2, __VA_ARGS__)
2470 #define showlist(...) puts (#__VA_ARGS__)
2471 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2472 static void
2473 test_varargs_macros (void)
2474 {
2475 int x = 1234;
2476 int y = 5678;
2477 debug ("Flag");
2478 debug ("X = %d\n", x);
2479 showlist (The first, second, and third items.);
2480 report (x>y, "x is %d but y is %d", x, y);
2481 }
2482
2483 // Check long long types.
2484 #define BIG64 18446744073709551615ull
2485 #define BIG32 4294967295ul
2486 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2487 #if !BIG_OK
2488 #error "your preprocessor is broken"
2489 #endif
2490 #if BIG_OK
2491 #else
2492 #error "your preprocessor is broken"
2493 #endif
2494 static long long int bignum = -9223372036854775807LL;
2495 static unsigned long long int ubignum = BIG64;
2496
2497 struct incomplete_array
2498 {
2499 int datasize;
2500 double data[];
2501 };
2502
2503 struct named_init {
2504 int number;
2505 const wchar_t *name;
2506 double average;
2507 };
2508
2509 typedef const char *ccp;
2510
2511 static inline int
2512 test_restrict (ccp restrict text)
2513 {
2514 // See if C++-style comments work.
2515 // Iterate through items via the restricted pointer.
2516 // Also check for declarations in for loops.
2517 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2518 continue;
2519 return 0;
2520 }
2521
2522 // Check varargs and va_copy.
2523 static bool
2524 test_varargs (const char *format, ...)
2525 {
2526 va_list args;
2527 va_start (args, format);
2528 va_list args_copy;
2529 va_copy (args_copy, args);
2530
2531 const char *str = "";
2532 int number = 0;
2533 float fnumber = 0;
2534
2535 while (*format)
2536 {
2537 switch (*format++)
2538 {
2539 case '\''s'\'': // string
2540 str = va_arg (args_copy, const char *);
2541 break;
2542 case '\''d'\'': // int
2543 number = va_arg (args_copy, int);
2544 break;
2545 case '\''f'\'': // float
2546 fnumber = va_arg (args_copy, double);
2547 break;
2548 default:
2549 break;
2550 }
2551 }
2552 va_end (args_copy);
2553 va_end (args);
2554
2555 return *str && number && fnumber;
2556 }
2557 '
2558
2559 # Test code for whether the C compiler supports C99 (body of main).
2560 ac_c_conftest_c99_main='
2561 // Check bool.
2562 _Bool success = false;
2563 success |= (argc != 0);
2564
2565 // Check restrict.
2566 if (test_restrict ("String literal") == 0)
2567 success = true;
2568 char *restrict newvar = "Another string";
2569
2570 // Check varargs.
2571 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2572 test_varargs_macros ();
2573
2574 // Check flexible array members.
2575 struct incomplete_array *ia =
2576 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2577 ia->datasize = 10;
2578 for (int i = 0; i < ia->datasize; ++i)
2579 ia->data[i] = i * 1.234;
2580
2581 // Check named initializers.
2582 struct named_init ni = {
2583 .number = 34,
2584 .name = L"Test wide string",
2585 .average = 543.34343,
2586 };
2587
2588 ni.number = 58;
2589
2590 int dynamic_array[ni.number];
2591 dynamic_array[0] = argv[0][0];
2592 dynamic_array[ni.number - 1] = 543;
2593
2594 // work around unused variable warnings
2595 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2596 || dynamic_array[ni.number - 1] != 543);
2597 '
2598
2599 # Test code for whether the C compiler supports C11 (global declarations)
2600 ac_c_conftest_c11_globals='
2601 // Does the compiler advertise C11 conformance?
2602 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2603 # error "Compiler does not advertise C11 conformance"
2604 #endif
2605
2606 // Check _Alignas.
2607 char _Alignas (double) aligned_as_double;
2608 char _Alignas (0) no_special_alignment;
2609 extern char aligned_as_int;
2610 char _Alignas (0) _Alignas (int) aligned_as_int;
2611
2612 // Check _Alignof.
2613 enum
2614 {
2615 int_alignment = _Alignof (int),
2616 int_array_alignment = _Alignof (int[100]),
2617 char_alignment = _Alignof (char)
2618 };
2619 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2620
2621 // Check _Noreturn.
2622 int _Noreturn does_not_return (void) { for (;;) continue; }
2623
2624 // Check _Static_assert.
2625 struct test_static_assert
2626 {
2627 int x;
2628 _Static_assert (sizeof (int) <= sizeof (long int),
2629 "_Static_assert does not work in struct");
2630 long int y;
2631 };
2632
2633 // Check UTF-8 literals.
2634 #define u8 syntax error!
2635 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2636
2637 // Check duplicate typedefs.
2638 typedef long *long_ptr;
2639 typedef long int *long_ptr;
2640 typedef long_ptr long_ptr;
2641
2642 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2643 struct anonymous
2644 {
2645 union {
2646 struct { int i; int j; };
2647 struct { int k; long int l; } w;
2648 };
2649 int m;
2650 } v1;
2651 '
2652
2653 # Test code for whether the C compiler supports C11 (body of main).
2654 ac_c_conftest_c11_main='
2655 _Static_assert ((offsetof (struct anonymous, i)
2656 == offsetof (struct anonymous, w.k)),
2657 "Anonymous union alignment botch");
2658 v1.i = 2;
2659 v1.w.k = 5;
2660 ok |= v1.i != 5;
2661 '
2662
2663 # Test code for whether the C compiler supports C11 (complete).
2664 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2665 ${ac_c_conftest_c99_globals}
2666 ${ac_c_conftest_c11_globals}
2667
2668 int
2669 main (int argc, char **argv)
2670 {
2671 int ok = 0;
2672 ${ac_c_conftest_c89_main}
2673 ${ac_c_conftest_c99_main}
2674 ${ac_c_conftest_c11_main}
2675 return ok;
2676 }
2677 "
2678
2679 # Test code for whether the C compiler supports C99 (complete).
2680 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2681 ${ac_c_conftest_c99_globals}
2682
2683 int
2684 main (int argc, char **argv)
2685 {
2686 int ok = 0;
2687 ${ac_c_conftest_c89_main}
2688 ${ac_c_conftest_c99_main}
2689 return ok;
2690 }
2691 "
2692
2693 # Test code for whether the C compiler supports C89 (complete).
2694 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2695
2696 int
2697 main (int argc, char **argv)
2698 {
2699 int ok = 0;
2700 ${ac_c_conftest_c89_main}
2701 return ok;
2702 }
2703 "
2704
2705 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2706 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2707 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2708 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2709 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2710 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2711 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2712 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2713 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2714 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2715
2716 # Auxiliary files required by this configure script.
2717 ac_aux_files="config.guess config.sub ltmain.sh compile missing install-sh"
2718
2719 # Locations in which to look for auxiliary files.
2720 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
2721
2722 # Search for a directory containing all of the required auxiliary files,
2723 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
2724 # If we don't find one directory that contains all the files we need,
2725 # we report the set of missing files from the *first* directory in
2726 # $ac_aux_dir_candidates and give up.
2727 ac_missing_aux_files=""
2728 ac_first_candidate=:
2729 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
2730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2731 as_found=false
2732 for as_dir in $ac_aux_dir_candidates
2733 do
2734 IFS=$as_save_IFS
2735 case $as_dir in #(((
2736 '') as_dir=./ ;;
2737 */) ;;
2738 *) as_dir=$as_dir/ ;;
2739 esac
2740 as_found=:
2741
2742 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
2743 ac_aux_dir_found=yes
2744 ac_install_sh=
2745 for ac_aux in $ac_aux_files
2746 do
2747 # As a special case, if "install-sh" is required, that requirement
2748 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
2749 # and $ac_install_sh is set appropriately for whichever one is found.
2750 if test x"$ac_aux" = x"install-sh"
2751 then
2752 if test -f "${as_dir}install-sh"; then
2753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
2754 ac_install_sh="${as_dir}install-sh -c"
2755 elif test -f "${as_dir}install.sh"; then
2756 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
2757 ac_install_sh="${as_dir}install.sh -c"
2758 elif test -f "${as_dir}shtool"; then
2759 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
2760 ac_install_sh="${as_dir}shtool install -c"
2761 else
2762 ac_aux_dir_found=no
2763 if $ac_first_candidate; then
2764 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
2765 else
2766 break
2767 fi
2768 fi
2769 else
2770 if test -f "${as_dir}${ac_aux}"; then
2771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
2772 else
2773 ac_aux_dir_found=no
2774 if $ac_first_candidate; then
2775 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
2776 else
2777 break
2778 fi
2779 fi
2780 fi
2781 done
2782 if test "$ac_aux_dir_found" = yes; then
2783 ac_aux_dir="$as_dir"
2784 break
2785 fi
2786 ac_first_candidate=false
2787
2788 as_found=false
2789 done
2790 IFS=$as_save_IFS
2791 if $as_found
2792 then :
2793
2794 else $as_nop
2795 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
2796 fi
2797
2798
2799 # These three variables are undocumented and unsupported,
2800 # and are intended to be withdrawn in a future Autoconf release.
2801 # They can cause serious problems if a builder's source tree is in a directory
2802 # whose full name contains unusual characters.
2803 if test -f "${ac_aux_dir}config.guess"; then
2804 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
2805 fi
2806 if test -f "${ac_aux_dir}config.sub"; then
2807 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
2808 fi
2809 if test -f "$ac_aux_dir/configure"; then
2810 ac_configure="$SHELL ${ac_aux_dir}configure"
2811 fi
2812
2813 # Check that the precious variables saved in the cache have kept the same
2814 # value.
2815 ac_cache_corrupted=false
2816 for ac_var in $ac_precious_vars; do
2817 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2818 eval ac_new_set=\$ac_env_${ac_var}_set
2819 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2820 eval ac_new_val=\$ac_env_${ac_var}_value
2821 case $ac_old_set,$ac_new_set in
2822 set,)
2823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2824 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2825 ac_cache_corrupted=: ;;
2826 ,set)
2827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2828 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2829 ac_cache_corrupted=: ;;
2830 ,);;
2831 *)
2832 if test "x$ac_old_val" != "x$ac_new_val"; then
2833 # differences in whitespace do not lead to failure.
2834 ac_old_val_w=`echo x $ac_old_val`
2835 ac_new_val_w=`echo x $ac_new_val`
2836 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2838 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2839 ac_cache_corrupted=:
2840 else
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2842 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2843 eval $ac_var=\$ac_old_val
2844 fi
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2846 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
2847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2848 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
2849 fi;;
2850 esac
2851 # Pass precious variables to config.status.
2852 if test "$ac_new_set" = set; then
2853 case $ac_new_val in
2854 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2855 *) ac_arg=$ac_var=$ac_new_val ;;
2856 esac
2857 case " $ac_configure_args " in
2858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2859 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2860 esac
2861 fi
2862 done
2863 if $ac_cache_corrupted; then
2864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2865 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2867 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2868 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2869 and start over" "$LINENO" 5
2870 fi
2871 ## -------------------- ##
2872 ## Main body of script. ##
2873 ## -------------------- ##
2874
2875 ac_ext=c
2876 ac_cpp='$CPP $CPPFLAGS'
2877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2880
2881
2882
2883 ac_config_headers="$ac_config_headers config.h"
2884
2885
2886 # Initialize Automake
2887 am__api_version='1.16'
2888
2889
2890
2891 # Find a good install program. We prefer a C program (faster),
2892 # so one script is as good as another. But avoid the broken or
2893 # incompatible versions:
2894 # SysV /etc/install, /usr/sbin/install
2895 # SunOS /usr/etc/install
2896 # IRIX /sbin/install
2897 # AIX /bin/install
2898 # AmigaOS /C/install, which installs bootblocks on floppy discs
2899 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2900 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2901 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2902 # OS/2's system install, which has a completely different semantic
2903 # ./install, which can be erroneously created by make from ./install.sh.
2904 # Reject install programs that cannot install multiple files.
2905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2906 printf %s "checking for a BSD-compatible install... " >&6; }
2907 if test -z "$INSTALL"; then
2908 if test ${ac_cv_path_install+y}
2909 then :
2910 printf %s "(cached) " >&6
2911 else $as_nop
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH
2914 do
2915 IFS=$as_save_IFS
2916 case $as_dir in #(((
2917 '') as_dir=./ ;;
2918 */) ;;
2919 *) as_dir=$as_dir/ ;;
2920 esac
2921 # Account for fact that we put trailing slashes in our PATH walk.
2922 case $as_dir in #((
2923 ./ | /[cC]/* | \
2924 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2925 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2926 /usr/ucb/* ) ;;
2927 *)
2928 # OSF1 and SCO ODT 3.0 have their own names for install.
2929 # Don't use installbsd from OSF since it installs stuff as root
2930 # by default.
2931 for ac_prog in ginstall scoinst install; do
2932 for ac_exec_ext in '' $ac_executable_extensions; do
2933 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
2934 if test $ac_prog = install &&
2935 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2936 # AIX install. It has an incompatible calling convention.
2937 :
2938 elif test $ac_prog = install &&
2939 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2940 # program-specific install script used by HP pwplus--don't use.
2941 :
2942 else
2943 rm -rf conftest.one conftest.two conftest.dir
2944 echo one > conftest.one
2945 echo two > conftest.two
2946 mkdir conftest.dir
2947 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
2948 test -s conftest.one && test -s conftest.two &&
2949 test -s conftest.dir/conftest.one &&
2950 test -s conftest.dir/conftest.two
2951 then
2952 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
2953 break 3
2954 fi
2955 fi
2956 fi
2957 done
2958 done
2959 ;;
2960 esac
2961
2962 done
2963 IFS=$as_save_IFS
2964
2965 rm -rf conftest.one conftest.two conftest.dir
2966
2967 fi
2968 if test ${ac_cv_path_install+y}; then
2969 INSTALL=$ac_cv_path_install
2970 else
2971 # As a last resort, use the slow shell script. Don't cache a
2972 # value for INSTALL within a source directory, because that will
2973 # break other packages using the cache if that directory is
2974 # removed, or if the value is a relative name.
2975 INSTALL=$ac_install_sh
2976 fi
2977 fi
2978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2979 printf "%s\n" "$INSTALL" >&6; }
2980
2981 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2982 # It thinks the first close brace ends the variable substitution.
2983 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2984
2985 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2986
2987 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2988
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2990 printf %s "checking whether build environment is sane... " >&6; }
2991 # Reject unsafe characters in $srcdir or the absolute working directory
2992 # name. Accept space and tab only in the latter.
2993 am_lf='
2994 '
2995 case `pwd` in
2996 *[\\\"\#\$\&\'\`$am_lf]*)
2997 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2998 esac
2999 case $srcdir in
3000 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3001 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3002 esac
3003
3004 # Do 'set' in a subshell so we don't clobber the current shell's
3005 # arguments. Must try -L first in case configure is actually a
3006 # symlink; some systems play weird games with the mod time of symlinks
3007 # (eg FreeBSD returns the mod time of the symlink's containing
3008 # directory).
3009 if (
3010 am_has_slept=no
3011 for am_try in 1 2; do
3012 echo "timestamp, slept: $am_has_slept" > conftest.file
3013 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3014 if test "$*" = "X"; then
3015 # -L didn't work.
3016 set X `ls -t "$srcdir/configure" conftest.file`
3017 fi
3018 if test "$*" != "X $srcdir/configure conftest.file" \
3019 && test "$*" != "X conftest.file $srcdir/configure"; then
3020
3021 # If neither matched, then we have a broken ls. This can happen
3022 # if, for instance, CONFIG_SHELL is bash and it inherits a
3023 # broken ls alias from the environment. This has actually
3024 # happened. Such a system could not be considered "sane".
3025 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3026 alias in your environment" "$LINENO" 5
3027 fi
3028 if test "$2" = conftest.file || test $am_try -eq 2; then
3029 break
3030 fi
3031 # Just in case.
3032 sleep 1
3033 am_has_slept=yes
3034 done
3035 test "$2" = conftest.file
3036 )
3037 then
3038 # Ok.
3039 :
3040 else
3041 as_fn_error $? "newly created file is older than distributed files!
3042 Check your system clock" "$LINENO" 5
3043 fi
3044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3045 printf "%s\n" "yes" >&6; }
3046 # If we didn't sleep, we still need to ensure time stamps of config.status and
3047 # generated files are strictly newer.
3048 am_sleep_pid=
3049 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3050 ( sleep 1 ) &
3051 am_sleep_pid=$!
3052 fi
3053
3054 rm -f conftest.file
3055
3056 test "$program_prefix" != NONE &&
3057 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3058 # Use a double $ so make ignores it.
3059 test "$program_suffix" != NONE &&
3060 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3061 # Double any \ or $.
3062 # By default was `s,x,x', remove it if useless.
3063 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3064 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3065
3066
3067 # Expand $ac_aux_dir to an absolute path.
3068 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3069
3070
3071 if test x"${MISSING+set}" != xset; then
3072 MISSING="\${SHELL} '$am_aux_dir/missing'"
3073 fi
3074 # Use eval to expand $SHELL
3075 if eval "$MISSING --is-lightweight"; then
3076 am_missing_run="$MISSING "
3077 else
3078 am_missing_run=
3079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3080 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3081 fi
3082
3083 if test x"${install_sh+set}" != xset; then
3084 case $am_aux_dir in
3085 *\ * | *\ *)
3086 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087 *)
3088 install_sh="\${SHELL} $am_aux_dir/install-sh"
3089 esac
3090 fi
3091
3092 # Installed binaries are usually stripped using 'strip' when the user
3093 # run "make install-strip". However 'strip' might not be the right
3094 # tool to use in cross-compilation environments, therefore Automake
3095 # will honor the 'STRIP' environment variable to overrule this program.
3096 if test "$cross_compiling" != no; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}strip; ac_word=$2
3100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 printf %s "checking for $ac_word... " >&6; }
3102 if test ${ac_cv_prog_STRIP+y}
3103 then :
3104 printf %s "(cached) " >&6
3105 else $as_nop
3106 if test -n "$STRIP"; then
3107 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112 IFS=$as_save_IFS
3113 case $as_dir in #(((
3114 '') as_dir=./ ;;
3115 */) ;;
3116 *) as_dir=$as_dir/ ;;
3117 esac
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3121 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3122 break 2
3123 fi
3124 done
3125 done
3126 IFS=$as_save_IFS
3127
3128 fi
3129 fi
3130 STRIP=$ac_cv_prog_STRIP
3131 if test -n "$STRIP"; then
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3133 printf "%s\n" "$STRIP" >&6; }
3134 else
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 printf "%s\n" "no" >&6; }
3137 fi
3138
3139
3140 fi
3141 if test -z "$ac_cv_prog_STRIP"; then
3142 ac_ct_STRIP=$STRIP
3143 # Extract the first word of "strip", so it can be a program name with args.
3144 set dummy strip; ac_word=$2
3145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 printf %s "checking for $ac_word... " >&6; }
3147 if test ${ac_cv_prog_ac_ct_STRIP+y}
3148 then :
3149 printf %s "(cached) " >&6
3150 else $as_nop
3151 if test -n "$ac_ct_STRIP"; then
3152 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3156 do
3157 IFS=$as_save_IFS
3158 case $as_dir in #(((
3159 '') as_dir=./ ;;
3160 */) ;;
3161 *) as_dir=$as_dir/ ;;
3162 esac
3163 for ac_exec_ext in '' $ac_executable_extensions; do
3164 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3165 ac_cv_prog_ac_ct_STRIP="strip"
3166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3167 break 2
3168 fi
3169 done
3170 done
3171 IFS=$as_save_IFS
3172
3173 fi
3174 fi
3175 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3176 if test -n "$ac_ct_STRIP"; then
3177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3178 printf "%s\n" "$ac_ct_STRIP" >&6; }
3179 else
3180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3181 printf "%s\n" "no" >&6; }
3182 fi
3183
3184 if test "x$ac_ct_STRIP" = x; then
3185 STRIP=":"
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 STRIP=$ac_ct_STRIP
3194 fi
3195 else
3196 STRIP="$ac_cv_prog_STRIP"
3197 fi
3198
3199 fi
3200 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3201
3202
3203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
3204 printf %s "checking for a race-free mkdir -p... " >&6; }
3205 if test -z "$MKDIR_P"; then
3206 if test ${ac_cv_path_mkdir+y}
3207 then :
3208 printf %s "(cached) " >&6
3209 else $as_nop
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3212 do
3213 IFS=$as_save_IFS
3214 case $as_dir in #(((
3215 '') as_dir=./ ;;
3216 */) ;;
3217 *) as_dir=$as_dir/ ;;
3218 esac
3219 for ac_prog in mkdir gmkdir; do
3220 for ac_exec_ext in '' $ac_executable_extensions; do
3221 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3222 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3223 'mkdir ('*'coreutils) '* | \
3224 'BusyBox '* | \
3225 'mkdir (fileutils) '4.1*)
3226 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3227 break 3;;
3228 esac
3229 done
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235
3236 test -d ./--version && rmdir ./--version
3237 if test ${ac_cv_path_mkdir+y}; then
3238 MKDIR_P="$ac_cv_path_mkdir -p"
3239 else
3240 # As a last resort, use the slow shell script. Don't cache a
3241 # value for MKDIR_P within a source directory, because that will
3242 # break other packages using the cache if that directory is
3243 # removed, or if the value is a relative name.
3244 MKDIR_P="$ac_install_sh -d"
3245 fi
3246 fi
3247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3248 printf "%s\n" "$MKDIR_P" >&6; }
3249
3250 for ac_prog in gawk mawk nawk awk
3251 do
3252 # Extract the first word of "$ac_prog", so it can be a program name with args.
3253 set dummy $ac_prog; ac_word=$2
3254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3255 printf %s "checking for $ac_word... " >&6; }
3256 if test ${ac_cv_prog_AWK+y}
3257 then :
3258 printf %s "(cached) " >&6
3259 else $as_nop
3260 if test -n "$AWK"; then
3261 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 case $as_dir in #(((
3268 '') as_dir=./ ;;
3269 */) ;;
3270 *) as_dir=$as_dir/ ;;
3271 esac
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_AWK="$ac_prog"
3275 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 AWK=$ac_cv_prog_AWK
3285 if test -n "$AWK"; then
3286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3287 printf "%s\n" "$AWK" >&6; }
3288 else
3289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 printf "%s\n" "no" >&6; }
3291 fi
3292
3293
3294 test -n "$AWK" && break
3295 done
3296
3297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3298 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3299 set x ${MAKE-make}
3300 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3301 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3302 then :
3303 printf %s "(cached) " >&6
3304 else $as_nop
3305 cat >conftest.make <<\_ACEOF
3306 SHELL = /bin/sh
3307 all:
3308 @echo '@@@%%%=$(MAKE)=@@@%%%'
3309 _ACEOF
3310 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3311 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3312 *@@@%%%=?*=@@@%%%*)
3313 eval ac_cv_prog_make_${ac_make}_set=yes;;
3314 *)
3315 eval ac_cv_prog_make_${ac_make}_set=no;;
3316 esac
3317 rm -f conftest.make
3318 fi
3319 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 printf "%s\n" "yes" >&6; }
3322 SET_MAKE=
3323 else
3324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 printf "%s\n" "no" >&6; }
3326 SET_MAKE="MAKE=${MAKE-make}"
3327 fi
3328
3329 rm -rf .tst 2>/dev/null
3330 mkdir .tst 2>/dev/null
3331 if test -d .tst; then
3332 am__leading_dot=.
3333 else
3334 am__leading_dot=_
3335 fi
3336 rmdir .tst 2>/dev/null
3337
3338 # Check whether --enable-silent-rules was given.
3339 if test ${enable_silent_rules+y}
3340 then :
3341 enableval=$enable_silent_rules;
3342 fi
3343
3344 case $enable_silent_rules in # (((
3345 yes) AM_DEFAULT_VERBOSITY=0;;
3346 no) AM_DEFAULT_VERBOSITY=1;;
3347 *) AM_DEFAULT_VERBOSITY=1;;
3348 esac
3349 am_make=${MAKE-make}
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3351 printf %s "checking whether $am_make supports nested variables... " >&6; }
3352 if test ${am_cv_make_support_nested_variables+y}
3353 then :
3354 printf %s "(cached) " >&6
3355 else $as_nop
3356 if printf "%s\n" 'TRUE=$(BAR$(V))
3357 BAR0=false
3358 BAR1=true
3359 V=1
3360 am__doit:
3361 @$(TRUE)
3362 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3363 am_cv_make_support_nested_variables=yes
3364 else
3365 am_cv_make_support_nested_variables=no
3366 fi
3367 fi
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3369 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3370 if test $am_cv_make_support_nested_variables = yes; then
3371 AM_V='$(V)'
3372 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3373 else
3374 AM_V=$AM_DEFAULT_VERBOSITY
3375 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3376 fi
3377 AM_BACKSLASH='\'
3378
3379 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3380 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3381 # is not polluted with repeated "-I."
3382 am__isrc=' -I$(srcdir)'
3383 # test to see if srcdir already configured
3384 if test -f $srcdir/config.status; then
3385 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3386 fi
3387 fi
3388
3389 # test whether we have cygpath
3390 if test -z "$CYGPATH_W"; then
3391 if (cygpath --version) >/dev/null 2>/dev/null; then
3392 CYGPATH_W='cygpath -w'
3393 else
3394 CYGPATH_W=echo
3395 fi
3396 fi
3397
3398
3399 # Define the identity of the package.
3400 PACKAGE='libXfont2'
3401 VERSION='2.0.6'
3402
3403
3404 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
3405
3406
3407 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
3408
3409 # Some tools Automake needs.
3410
3411 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3412
3413
3414 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3415
3416
3417 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3418
3419
3420 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3421
3422
3423 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3424
3425 # For better backward compatibility. To be removed once Automake 1.9.x
3426 # dies out for good. For more background, see:
3427 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3428 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3429 mkdir_p='$(MKDIR_P)'
3430
3431 # We need awk for the "check" target (and possibly the TAP driver). The
3432 # system "awk" is bad on some platforms.
3433 # Always define AMTAR for backward compatibility. Yes, it's still used
3434 # in the wild :-( We should find a proper way to deprecate it ...
3435 AMTAR='$${TAR-tar}'
3436
3437
3438 # We'll loop over all known methods to create a tar archive until one works.
3439 _am_tools='gnutar pax cpio none'
3440
3441 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3442
3443
3444
3445
3446
3447 # Variables for tags utilities; see am/tags.am
3448 if test -z "$CTAGS"; then
3449 CTAGS=ctags
3450 fi
3451
3452 if test -z "$ETAGS"; then
3453 ETAGS=etags
3454 fi
3455
3456 if test -z "$CSCOPE"; then
3457 CSCOPE=cscope
3458 fi
3459
3460
3461
3462 # POSIX will say in a future version that running "rm -f" with no argument
3463 # is OK; and we want to be able to make that assumption in our Makefile
3464 # recipes. So use an aggressive probe to check that the usage we want is
3465 # actually supported "in the wild" to an acceptable degree.
3466 # See automake bug#10828.
3467 # To make any issue more visible, cause the running configure to be aborted
3468 # by default if the 'rm' program in use doesn't match our expectations; the
3469 # user can still override this though.
3470 if rm -f && rm -fr && rm -rf; then : OK; else
3471 cat >&2 <<'END'
3472 Oops!
3473
3474 Your 'rm' program seems unable to run without file operands specified
3475 on the command line, even when the '-f' option is present. This is contrary
3476 to the behaviour of most rm programs out there, and not conforming with
3477 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3478
3479 Please tell bug-automake@gnu.org about your system, including the value
3480 of your $PATH and any error possibly output before this message. This
3481 can help us improve future automake versions.
3482
3483 END
3484 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3485 echo 'Configuration will proceed anyway, since you have set the' >&2
3486 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3487 echo >&2
3488 else
3489 cat >&2 <<'END'
3490 Aborting the configuration process, to ensure you take notice of the issue.
3491
3492 You can download and install GNU coreutils to get an 'rm' implementation
3493 that behaves properly: <https://www.gnu.org/software/coreutils/>.
3494
3495 If you want to complete the configuration process using your problematic
3496 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3497 to "yes", and re-run configure.
3498
3499 END
3500 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3501 fi
3502 fi
3503
3504
3505 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3506 # Must be called before any macros that run the compiler (like
3507 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517 DEPDIR="${am__leading_dot}deps"
3518
3519 ac_config_commands="$ac_config_commands depfiles"
3520
3521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
3522 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
3523 cat > confinc.mk << 'END'
3524 am__doit:
3525 @echo this is the am__doit target >confinc.out
3526 .PHONY: am__doit
3527 END
3528 am__include="#"
3529 am__quote=
3530 # BSD make does it like this.
3531 echo '.include "confinc.mk" # ignored' > confmf.BSD
3532 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
3533 echo 'include confinc.mk # ignored' > confmf.GNU
3534 _am_result=no
3535 for s in GNU BSD; do
3536 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
3537 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
3538 ac_status=$?
3539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3540 (exit $ac_status); }
3541 case $?:`cat confinc.out 2>/dev/null` in #(
3542 '0:this is the am__doit target') :
3543 case $s in #(
3544 BSD) :
3545 am__include='.include' am__quote='"' ;; #(
3546 *) :
3547 am__include='include' am__quote='' ;;
3548 esac ;; #(
3549 *) :
3550 ;;
3551 esac
3552 if test "$am__include" != "#"; then
3553 _am_result="yes ($s style)"
3554 break
3555 fi
3556 done
3557 rm -f confinc.* confmf.*
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
3559 printf "%s\n" "${_am_result}" >&6; }
3560
3561 # Check whether --enable-dependency-tracking was given.
3562 if test ${enable_dependency_tracking+y}
3563 then :
3564 enableval=$enable_dependency_tracking;
3565 fi
3566
3567 if test "x$enable_dependency_tracking" != xno; then
3568 am_depcomp="$ac_aux_dir/depcomp"
3569 AMDEPBACKSLASH='\'
3570 am__nodep='_no'
3571 fi
3572 if test "x$enable_dependency_tracking" != xno; then
3573 AMDEP_TRUE=
3574 AMDEP_FALSE='#'
3575 else
3576 AMDEP_TRUE='#'
3577 AMDEP_FALSE=
3578 fi
3579
3580
3581 ac_ext=c
3582 ac_cpp='$CPP $CPPFLAGS'
3583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3586 if test -n "$ac_tool_prefix"; then
3587 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3588 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3590 printf %s "checking for $ac_word... " >&6; }
3591 if test ${ac_cv_prog_CC+y}
3592 then :
3593 printf %s "(cached) " >&6
3594 else $as_nop
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC="$CC" # Let the user override the test.
3597 else
3598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599 for as_dir in $PATH
3600 do
3601 IFS=$as_save_IFS
3602 case $as_dir in #(((
3603 '') as_dir=./ ;;
3604 */) ;;
3605 *) as_dir=$as_dir/ ;;
3606 esac
3607 for ac_exec_ext in '' $ac_executable_extensions; do
3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3610 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3611 break 2
3612 fi
3613 done
3614 done
3615 IFS=$as_save_IFS
3616
3617 fi
3618 fi
3619 CC=$ac_cv_prog_CC
3620 if test -n "$CC"; then
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3622 printf "%s\n" "$CC" >&6; }
3623 else
3624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 printf "%s\n" "no" >&6; }
3626 fi
3627
3628
3629 fi
3630 if test -z "$ac_cv_prog_CC"; then
3631 ac_ct_CC=$CC
3632 # Extract the first word of "gcc", so it can be a program name with args.
3633 set dummy gcc; ac_word=$2
3634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3635 printf %s "checking for $ac_word... " >&6; }
3636 if test ${ac_cv_prog_ac_ct_CC+y}
3637 then :
3638 printf %s "(cached) " >&6
3639 else $as_nop
3640 if test -n "$ac_ct_CC"; then
3641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 case $as_dir in #(((
3648 '') as_dir=./ ;;
3649 */) ;;
3650 *) as_dir=$as_dir/ ;;
3651 esac
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_ac_ct_CC="gcc"
3655 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3661
3662 fi
3663 fi
3664 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3665 if test -n "$ac_ct_CC"; then
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3667 printf "%s\n" "$ac_ct_CC" >&6; }
3668 else
3669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 printf "%s\n" "no" >&6; }
3671 fi
3672
3673 if test "x$ac_ct_CC" = x; then
3674 CC=""
3675 else
3676 case $cross_compiling:$ac_tool_warned in
3677 yes:)
3678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3679 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3680 ac_tool_warned=yes ;;
3681 esac
3682 CC=$ac_ct_CC
3683 fi
3684 else
3685 CC="$ac_cv_prog_CC"
3686 fi
3687
3688 if test -z "$CC"; then
3689 if test -n "$ac_tool_prefix"; then
3690 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3691 set dummy ${ac_tool_prefix}cc; ac_word=$2
3692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 printf %s "checking for $ac_word... " >&6; }
3694 if test ${ac_cv_prog_CC+y}
3695 then :
3696 printf %s "(cached) " >&6
3697 else $as_nop
3698 if test -n "$CC"; then
3699 ac_cv_prog_CC="$CC" # Let the user override the test.
3700 else
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3703 do
3704 IFS=$as_save_IFS
3705 case $as_dir in #(((
3706 '') as_dir=./ ;;
3707 */) ;;
3708 *) as_dir=$as_dir/ ;;
3709 esac
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3712 ac_cv_prog_CC="${ac_tool_prefix}cc"
3713 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716 done
3717 done
3718 IFS=$as_save_IFS
3719
3720 fi
3721 fi
3722 CC=$ac_cv_prog_CC
3723 if test -n "$CC"; then
3724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3725 printf "%s\n" "$CC" >&6; }
3726 else
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3728 printf "%s\n" "no" >&6; }
3729 fi
3730
3731
3732 fi
3733 fi
3734 if test -z "$CC"; then
3735 # Extract the first word of "cc", so it can be a program name with args.
3736 set dummy cc; ac_word=$2
3737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3738 printf %s "checking for $ac_word... " >&6; }
3739 if test ${ac_cv_prog_CC+y}
3740 then :
3741 printf %s "(cached) " >&6
3742 else $as_nop
3743 if test -n "$CC"; then
3744 ac_cv_prog_CC="$CC" # Let the user override the test.
3745 else
3746 ac_prog_rejected=no
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750 IFS=$as_save_IFS
3751 case $as_dir in #(((
3752 '') as_dir=./ ;;
3753 */) ;;
3754 *) as_dir=$as_dir/ ;;
3755 esac
3756 for ac_exec_ext in '' $ac_executable_extensions; do
3757 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3758 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3759 ac_prog_rejected=yes
3760 continue
3761 fi
3762 ac_cv_prog_CC="cc"
3763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3764 break 2
3765 fi
3766 done
3767 done
3768 IFS=$as_save_IFS
3769
3770 if test $ac_prog_rejected = yes; then
3771 # We found a bogon in the path, so make sure we never use it.
3772 set dummy $ac_cv_prog_CC
3773 shift
3774 if test $# != 0; then
3775 # We chose a different compiler from the bogus one.
3776 # However, it has the same basename, so the bogon will be chosen
3777 # first if we set CC to just the basename; use the full file name.
3778 shift
3779 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
3780 fi
3781 fi
3782 fi
3783 fi
3784 CC=$ac_cv_prog_CC
3785 if test -n "$CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787 printf "%s\n" "$CC" >&6; }
3788 else
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 printf "%s\n" "no" >&6; }
3791 fi
3792
3793
3794 fi
3795 if test -z "$CC"; then
3796 if test -n "$ac_tool_prefix"; then
3797 for ac_prog in cl.exe
3798 do
3799 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3800 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802 printf %s "checking for $ac_word... " >&6; }
3803 if test ${ac_cv_prog_CC+y}
3804 then :
3805 printf %s "(cached) " >&6
3806 else $as_nop
3807 if test -n "$CC"; then
3808 ac_cv_prog_CC="$CC" # Let the user override the test.
3809 else
3810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811 for as_dir in $PATH
3812 do
3813 IFS=$as_save_IFS
3814 case $as_dir in #(((
3815 '') as_dir=./ ;;
3816 */) ;;
3817 *) as_dir=$as_dir/ ;;
3818 esac
3819 for ac_exec_ext in '' $ac_executable_extensions; do
3820 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3821 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3822 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3823 break 2
3824 fi
3825 done
3826 done
3827 IFS=$as_save_IFS
3828
3829 fi
3830 fi
3831 CC=$ac_cv_prog_CC
3832 if test -n "$CC"; then
3833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3834 printf "%s\n" "$CC" >&6; }
3835 else
3836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3837 printf "%s\n" "no" >&6; }
3838 fi
3839
3840
3841 test -n "$CC" && break
3842 done
3843 fi
3844 if test -z "$CC"; then
3845 ac_ct_CC=$CC
3846 for ac_prog in cl.exe
3847 do
3848 # Extract the first word of "$ac_prog", so it can be a program name with args.
3849 set dummy $ac_prog; ac_word=$2
3850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3851 printf %s "checking for $ac_word... " >&6; }
3852 if test ${ac_cv_prog_ac_ct_CC+y}
3853 then :
3854 printf %s "(cached) " >&6
3855 else $as_nop
3856 if test -n "$ac_ct_CC"; then
3857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3858 else
3859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860 for as_dir in $PATH
3861 do
3862 IFS=$as_save_IFS
3863 case $as_dir in #(((
3864 '') as_dir=./ ;;
3865 */) ;;
3866 *) as_dir=$as_dir/ ;;
3867 esac
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3870 ac_cv_prog_ac_ct_CC="$ac_prog"
3871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874 done
3875 done
3876 IFS=$as_save_IFS
3877
3878 fi
3879 fi
3880 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3881 if test -n "$ac_ct_CC"; then
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3883 printf "%s\n" "$ac_ct_CC" >&6; }
3884 else
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886 printf "%s\n" "no" >&6; }
3887 fi
3888
3889
3890 test -n "$ac_ct_CC" && break
3891 done
3892
3893 if test "x$ac_ct_CC" = x; then
3894 CC=""
3895 else
3896 case $cross_compiling:$ac_tool_warned in
3897 yes:)
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3899 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3900 ac_tool_warned=yes ;;
3901 esac
3902 CC=$ac_ct_CC
3903 fi
3904 fi
3905
3906 fi
3907 if test -z "$CC"; then
3908 if test -n "$ac_tool_prefix"; then
3909 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3910 set dummy ${ac_tool_prefix}clang; ac_word=$2
3911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3912 printf %s "checking for $ac_word... " >&6; }
3913 if test ${ac_cv_prog_CC+y}
3914 then :
3915 printf %s "(cached) " >&6
3916 else $as_nop
3917 if test -n "$CC"; then
3918 ac_cv_prog_CC="$CC" # Let the user override the test.
3919 else
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3922 do
3923 IFS=$as_save_IFS
3924 case $as_dir in #(((
3925 '') as_dir=./ ;;
3926 */) ;;
3927 *) as_dir=$as_dir/ ;;
3928 esac
3929 for ac_exec_ext in '' $ac_executable_extensions; do
3930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3931 ac_cv_prog_CC="${ac_tool_prefix}clang"
3932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3933 break 2
3934 fi
3935 done
3936 done
3937 IFS=$as_save_IFS
3938
3939 fi
3940 fi
3941 CC=$ac_cv_prog_CC
3942 if test -n "$CC"; then
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3944 printf "%s\n" "$CC" >&6; }
3945 else
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3947 printf "%s\n" "no" >&6; }
3948 fi
3949
3950
3951 fi
3952 if test -z "$ac_cv_prog_CC"; then
3953 ac_ct_CC=$CC
3954 # Extract the first word of "clang", so it can be a program name with args.
3955 set dummy clang; ac_word=$2
3956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3957 printf %s "checking for $ac_word... " >&6; }
3958 if test ${ac_cv_prog_ac_ct_CC+y}
3959 then :
3960 printf %s "(cached) " >&6
3961 else $as_nop
3962 if test -n "$ac_ct_CC"; then
3963 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3964 else
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH
3967 do
3968 IFS=$as_save_IFS
3969 case $as_dir in #(((
3970 '') as_dir=./ ;;
3971 */) ;;
3972 *) as_dir=$as_dir/ ;;
3973 esac
3974 for ac_exec_ext in '' $ac_executable_extensions; do
3975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3976 ac_cv_prog_ac_ct_CC="clang"
3977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3978 break 2
3979 fi
3980 done
3981 done
3982 IFS=$as_save_IFS
3983
3984 fi
3985 fi
3986 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3987 if test -n "$ac_ct_CC"; then
3988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3989 printf "%s\n" "$ac_ct_CC" >&6; }
3990 else
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3992 printf "%s\n" "no" >&6; }
3993 fi
3994
3995 if test "x$ac_ct_CC" = x; then
3996 CC=""
3997 else
3998 case $cross_compiling:$ac_tool_warned in
3999 yes:)
4000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4002 ac_tool_warned=yes ;;
4003 esac
4004 CC=$ac_ct_CC
4005 fi
4006 else
4007 CC="$ac_cv_prog_CC"
4008 fi
4009
4010 fi
4011
4012
4013 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4014 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4015 as_fn_error $? "no acceptable C compiler found in \$PATH
4016 See \`config.log' for more details" "$LINENO" 5; }
4017
4018 # Provide some information about the compiler.
4019 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4020 set X $ac_compile
4021 ac_compiler=$2
4022 for ac_option in --version -v -V -qversion -version; do
4023 { { ac_try="$ac_compiler $ac_option >&5"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4029 printf "%s\n" "$ac_try_echo"; } >&5
4030 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4031 ac_status=$?
4032 if test -s conftest.err; then
4033 sed '10a\
4034 ... rest of stderr output deleted ...
4035 10q' conftest.err >conftest.er1
4036 cat conftest.er1 >&5
4037 fi
4038 rm -f conftest.er1 conftest.err
4039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4040 test $ac_status = 0; }
4041 done
4042
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045
4046 int
4047 main (void)
4048 {
4049
4050 ;
4051 return 0;
4052 }
4053 _ACEOF
4054 ac_clean_files_save=$ac_clean_files
4055 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4056 # Try to create an executable without -o first, disregard a.out.
4057 # It will help us diagnose broken compilers, and finding out an intuition
4058 # of exeext.
4059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4060 printf %s "checking whether the C compiler works... " >&6; }
4061 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4062
4063 # The possible output files:
4064 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4065
4066 ac_rmfiles=
4067 for ac_file in $ac_files
4068 do
4069 case $ac_file in
4070 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4071 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4072 esac
4073 done
4074 rm -f $ac_rmfiles
4075
4076 if { { ac_try="$ac_link_default"
4077 case "(($ac_try" in
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4080 esac
4081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4082 printf "%s\n" "$ac_try_echo"; } >&5
4083 (eval "$ac_link_default") 2>&5
4084 ac_status=$?
4085 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4086 test $ac_status = 0; }
4087 then :
4088 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4089 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4090 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4091 # so that the user can short-circuit this test for compilers unknown to
4092 # Autoconf.
4093 for ac_file in $ac_files ''
4094 do
4095 test -f "$ac_file" || continue
4096 case $ac_file in
4097 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4098 ;;
4099 [ab].out )
4100 # We found the default executable, but exeext='' is most
4101 # certainly right.
4102 break;;
4103 *.* )
4104 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4105 then :; else
4106 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4107 fi
4108 # We set ac_cv_exeext here because the later test for it is not
4109 # safe: cross compilers may not add the suffix if given an `-o'
4110 # argument, so we may need to know it at that point already.
4111 # Even if this section looks crufty: it has the advantage of
4112 # actually working.
4113 break;;
4114 * )
4115 break;;
4116 esac
4117 done
4118 test "$ac_cv_exeext" = no && ac_cv_exeext=
4119
4120 else $as_nop
4121 ac_file=''
4122 fi
4123 if test -z "$ac_file"
4124 then :
4125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4126 printf "%s\n" "no" >&6; }
4127 printf "%s\n" "$as_me: failed program was:" >&5
4128 sed 's/^/| /' conftest.$ac_ext >&5
4129
4130 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4132 as_fn_error 77 "C compiler cannot create executables
4133 See \`config.log' for more details" "$LINENO" 5; }
4134 else $as_nop
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4136 printf "%s\n" "yes" >&6; }
4137 fi
4138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4139 printf %s "checking for C compiler default output file name... " >&6; }
4140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4141 printf "%s\n" "$ac_file" >&6; }
4142 ac_exeext=$ac_cv_exeext
4143
4144 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4145 ac_clean_files=$ac_clean_files_save
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4147 printf %s "checking for suffix of executables... " >&6; }
4148 if { { ac_try="$ac_link"
4149 case "(($ac_try" in
4150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4151 *) ac_try_echo=$ac_try;;
4152 esac
4153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4154 printf "%s\n" "$ac_try_echo"; } >&5
4155 (eval "$ac_link") 2>&5
4156 ac_status=$?
4157 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4158 test $ac_status = 0; }
4159 then :
4160 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4161 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4162 # work properly (i.e., refer to `conftest.exe'), while it won't with
4163 # `rm'.
4164 for ac_file in conftest.exe conftest conftest.*; do
4165 test -f "$ac_file" || continue
4166 case $ac_file in
4167 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4168 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4169 break;;
4170 * ) break;;
4171 esac
4172 done
4173 else $as_nop
4174 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4175 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4176 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4177 See \`config.log' for more details" "$LINENO" 5; }
4178 fi
4179 rm -f conftest conftest$ac_cv_exeext
4180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4181 printf "%s\n" "$ac_cv_exeext" >&6; }
4182
4183 rm -f conftest.$ac_ext
4184 EXEEXT=$ac_cv_exeext
4185 ac_exeext=$EXEEXT
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187 /* end confdefs.h. */
4188 #include <stdio.h>
4189 int
4190 main (void)
4191 {
4192 FILE *f = fopen ("conftest.out", "w");
4193 return ferror (f) || fclose (f) != 0;
4194
4195 ;
4196 return 0;
4197 }
4198 _ACEOF
4199 ac_clean_files="$ac_clean_files conftest.out"
4200 # Check that the compiler produces executables we can run. If not, either
4201 # the compiler is broken, or we cross compile.
4202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4203 printf %s "checking whether we are cross compiling... " >&6; }
4204 if test "$cross_compiling" != yes; then
4205 { { ac_try="$ac_link"
4206 case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209 esac
4210 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4211 printf "%s\n" "$ac_try_echo"; } >&5
4212 (eval "$ac_link") 2>&5
4213 ac_status=$?
4214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4215 test $ac_status = 0; }
4216 if { ac_try='./conftest$ac_cv_exeext'
4217 { { case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 printf "%s\n" "$ac_try_echo"; } >&5
4223 (eval "$ac_try") 2>&5
4224 ac_status=$?
4225 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4226 test $ac_status = 0; }; }; then
4227 cross_compiling=no
4228 else
4229 if test "$cross_compiling" = maybe; then
4230 cross_compiling=yes
4231 else
4232 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4233 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4234 as_fn_error 77 "cannot run C compiled programs.
4235 If you meant to cross compile, use \`--host'.
4236 See \`config.log' for more details" "$LINENO" 5; }
4237 fi
4238 fi
4239 fi
4240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4241 printf "%s\n" "$cross_compiling" >&6; }
4242
4243 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4244 ac_clean_files=$ac_clean_files_save
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4246 printf %s "checking for suffix of object files... " >&6; }
4247 if test ${ac_cv_objext+y}
4248 then :
4249 printf %s "(cached) " >&6
4250 else $as_nop
4251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4252 /* end confdefs.h. */
4253
4254 int
4255 main (void)
4256 {
4257
4258 ;
4259 return 0;
4260 }
4261 _ACEOF
4262 rm -f conftest.o conftest.obj
4263 if { { ac_try="$ac_compile"
4264 case "(($ac_try" in
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4267 esac
4268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4269 printf "%s\n" "$ac_try_echo"; } >&5
4270 (eval "$ac_compile") 2>&5
4271 ac_status=$?
4272 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4273 test $ac_status = 0; }
4274 then :
4275 for ac_file in conftest.o conftest.obj conftest.*; do
4276 test -f "$ac_file" || continue;
4277 case $ac_file in
4278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4279 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4280 break;;
4281 esac
4282 done
4283 else $as_nop
4284 printf "%s\n" "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4286
4287 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4288 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4289 as_fn_error $? "cannot compute suffix of object files: cannot compile
4290 See \`config.log' for more details" "$LINENO" 5; }
4291 fi
4292 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4293 fi
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4295 printf "%s\n" "$ac_cv_objext" >&6; }
4296 OBJEXT=$ac_cv_objext
4297 ac_objext=$OBJEXT
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4299 printf %s "checking whether the compiler supports GNU C... " >&6; }
4300 if test ${ac_cv_c_compiler_gnu+y}
4301 then :
4302 printf %s "(cached) " >&6
4303 else $as_nop
4304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4305 /* end confdefs.h. */
4306
4307 int
4308 main (void)
4309 {
4310 #ifndef __GNUC__
4311 choke me
4312 #endif
4313
4314 ;
4315 return 0;
4316 }
4317 _ACEOF
4318 if ac_fn_c_try_compile "$LINENO"
4319 then :
4320 ac_compiler_gnu=yes
4321 else $as_nop
4322 ac_compiler_gnu=no
4323 fi
4324 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4325 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4326
4327 fi
4328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4329 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4331
4332 if test $ac_compiler_gnu = yes; then
4333 GCC=yes
4334 else
4335 GCC=
4336 fi
4337 ac_test_CFLAGS=${CFLAGS+y}
4338 ac_save_CFLAGS=$CFLAGS
4339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4340 printf %s "checking whether $CC accepts -g... " >&6; }
4341 if test ${ac_cv_prog_cc_g+y}
4342 then :
4343 printf %s "(cached) " >&6
4344 else $as_nop
4345 ac_save_c_werror_flag=$ac_c_werror_flag
4346 ac_c_werror_flag=yes
4347 ac_cv_prog_cc_g=no
4348 CFLAGS="-g"
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350 /* end confdefs.h. */
4351
4352 int
4353 main (void)
4354 {
4355
4356 ;
4357 return 0;
4358 }
4359 _ACEOF
4360 if ac_fn_c_try_compile "$LINENO"
4361 then :
4362 ac_cv_prog_cc_g=yes
4363 else $as_nop
4364 CFLAGS=""
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367
4368 int
4369 main (void)
4370 {
4371
4372 ;
4373 return 0;
4374 }
4375 _ACEOF
4376 if ac_fn_c_try_compile "$LINENO"
4377 then :
4378
4379 else $as_nop
4380 ac_c_werror_flag=$ac_save_c_werror_flag
4381 CFLAGS="-g"
4382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4383 /* end confdefs.h. */
4384
4385 int
4386 main (void)
4387 {
4388
4389 ;
4390 return 0;
4391 }
4392 _ACEOF
4393 if ac_fn_c_try_compile "$LINENO"
4394 then :
4395 ac_cv_prog_cc_g=yes
4396 fi
4397 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4398 fi
4399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4400 fi
4401 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4402 ac_c_werror_flag=$ac_save_c_werror_flag
4403 fi
4404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4405 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4406 if test $ac_test_CFLAGS; then
4407 CFLAGS=$ac_save_CFLAGS
4408 elif test $ac_cv_prog_cc_g = yes; then
4409 if test "$GCC" = yes; then
4410 CFLAGS="-g -O2"
4411 else
4412 CFLAGS="-g"
4413 fi
4414 else
4415 if test "$GCC" = yes; then
4416 CFLAGS="-O2"
4417 else
4418 CFLAGS=
4419 fi
4420 fi
4421 ac_prog_cc_stdc=no
4422 if test x$ac_prog_cc_stdc = xno
4423 then :
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4425 printf %s "checking for $CC option to enable C11 features... " >&6; }
4426 if test ${ac_cv_prog_cc_c11+y}
4427 then :
4428 printf %s "(cached) " >&6
4429 else $as_nop
4430 ac_cv_prog_cc_c11=no
4431 ac_save_CC=$CC
4432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4433 /* end confdefs.h. */
4434 $ac_c_conftest_c11_program
4435 _ACEOF
4436 for ac_arg in '' -std=gnu11
4437 do
4438 CC="$ac_save_CC $ac_arg"
4439 if ac_fn_c_try_compile "$LINENO"
4440 then :
4441 ac_cv_prog_cc_c11=$ac_arg
4442 fi
4443 rm -f core conftest.err conftest.$ac_objext conftest.beam
4444 test "x$ac_cv_prog_cc_c11" != "xno" && break
4445 done
4446 rm -f conftest.$ac_ext
4447 CC=$ac_save_CC
4448 fi
4449
4450 if test "x$ac_cv_prog_cc_c11" = xno
4451 then :
4452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4453 printf "%s\n" "unsupported" >&6; }
4454 else $as_nop
4455 if test "x$ac_cv_prog_cc_c11" = x
4456 then :
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4458 printf "%s\n" "none needed" >&6; }
4459 else $as_nop
4460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4461 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4462 CC="$CC $ac_cv_prog_cc_c11"
4463 fi
4464 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4465 ac_prog_cc_stdc=c11
4466 fi
4467 fi
4468 if test x$ac_prog_cc_stdc = xno
4469 then :
4470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4471 printf %s "checking for $CC option to enable C99 features... " >&6; }
4472 if test ${ac_cv_prog_cc_c99+y}
4473 then :
4474 printf %s "(cached) " >&6
4475 else $as_nop
4476 ac_cv_prog_cc_c99=no
4477 ac_save_CC=$CC
4478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4479 /* end confdefs.h. */
4480 $ac_c_conftest_c99_program
4481 _ACEOF
4482 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4483 do
4484 CC="$ac_save_CC $ac_arg"
4485 if ac_fn_c_try_compile "$LINENO"
4486 then :
4487 ac_cv_prog_cc_c99=$ac_arg
4488 fi
4489 rm -f core conftest.err conftest.$ac_objext conftest.beam
4490 test "x$ac_cv_prog_cc_c99" != "xno" && break
4491 done
4492 rm -f conftest.$ac_ext
4493 CC=$ac_save_CC
4494 fi
4495
4496 if test "x$ac_cv_prog_cc_c99" = xno
4497 then :
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4499 printf "%s\n" "unsupported" >&6; }
4500 else $as_nop
4501 if test "x$ac_cv_prog_cc_c99" = x
4502 then :
4503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4504 printf "%s\n" "none needed" >&6; }
4505 else $as_nop
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4507 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4508 CC="$CC $ac_cv_prog_cc_c99"
4509 fi
4510 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4511 ac_prog_cc_stdc=c99
4512 fi
4513 fi
4514 if test x$ac_prog_cc_stdc = xno
4515 then :
4516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4517 printf %s "checking for $CC option to enable C89 features... " >&6; }
4518 if test ${ac_cv_prog_cc_c89+y}
4519 then :
4520 printf %s "(cached) " >&6
4521 else $as_nop
4522 ac_cv_prog_cc_c89=no
4523 ac_save_CC=$CC
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4526 $ac_c_conftest_c89_program
4527 _ACEOF
4528 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4529 do
4530 CC="$ac_save_CC $ac_arg"
4531 if ac_fn_c_try_compile "$LINENO"
4532 then :
4533 ac_cv_prog_cc_c89=$ac_arg
4534 fi
4535 rm -f core conftest.err conftest.$ac_objext conftest.beam
4536 test "x$ac_cv_prog_cc_c89" != "xno" && break
4537 done
4538 rm -f conftest.$ac_ext
4539 CC=$ac_save_CC
4540 fi
4541
4542 if test "x$ac_cv_prog_cc_c89" = xno
4543 then :
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4545 printf "%s\n" "unsupported" >&6; }
4546 else $as_nop
4547 if test "x$ac_cv_prog_cc_c89" = x
4548 then :
4549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4550 printf "%s\n" "none needed" >&6; }
4551 else $as_nop
4552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4553 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4554 CC="$CC $ac_cv_prog_cc_c89"
4555 fi
4556 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4557 ac_prog_cc_stdc=c89
4558 fi
4559 fi
4560
4561 ac_ext=c
4562 ac_cpp='$CPP $CPPFLAGS'
4563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4566
4567
4568 ac_ext=c
4569 ac_cpp='$CPP $CPPFLAGS'
4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4574 printf %s "checking whether $CC understands -c and -o together... " >&6; }
4575 if test ${am_cv_prog_cc_c_o+y}
4576 then :
4577 printf %s "(cached) " >&6
4578 else $as_nop
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581
4582 int
4583 main (void)
4584 {
4585
4586 ;
4587 return 0;
4588 }
4589 _ACEOF
4590 # Make sure it works both with $CC and with simple cc.
4591 # Following AC_PROG_CC_C_O, we do the test twice because some
4592 # compilers refuse to overwrite an existing .o file with -o,
4593 # though they will create one.
4594 am_cv_prog_cc_c_o=yes
4595 for am_i in 1 2; do
4596 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4597 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4598 ac_status=$?
4599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600 (exit $ac_status); } \
4601 && test -f conftest2.$ac_objext; then
4602 : OK
4603 else
4604 am_cv_prog_cc_c_o=no
4605 break
4606 fi
4607 done
4608 rm -f core conftest*
4609 unset am_i
4610 fi
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4612 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
4613 if test "$am_cv_prog_cc_c_o" != yes; then
4614 # Losing compiler, so override with the script.
4615 # FIXME: It is wrong to rewrite CC.
4616 # But if we don't then we get into trouble of one sort or another.
4617 # A longer-term fix would be to have automake use am__CC in this case,
4618 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4619 CC="$am_aux_dir/compile $CC"
4620 fi
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626
4627
4628 depcc="$CC" am_compiler_list=
4629
4630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4631 printf %s "checking dependency style of $depcc... " >&6; }
4632 if test ${am_cv_CC_dependencies_compiler_type+y}
4633 then :
4634 printf %s "(cached) " >&6
4635 else $as_nop
4636 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4637 # We make a subdir and do the tests there. Otherwise we can end up
4638 # making bogus files that we don't know about and never remove. For
4639 # instance it was reported that on HP-UX the gcc test will end up
4640 # making a dummy file named 'D' -- because '-MD' means "put the output
4641 # in D".
4642 rm -rf conftest.dir
4643 mkdir conftest.dir
4644 # Copy depcomp to subdir because otherwise we won't find it if we're
4645 # using a relative directory.
4646 cp "$am_depcomp" conftest.dir
4647 cd conftest.dir
4648 # We will build objects and dependencies in a subdirectory because
4649 # it helps to detect inapplicable dependency modes. For instance
4650 # both Tru64's cc and ICC support -MD to output dependencies as a
4651 # side effect of compilation, but ICC will put the dependencies in
4652 # the current directory while Tru64 will put them in the object
4653 # directory.
4654 mkdir sub
4655
4656 am_cv_CC_dependencies_compiler_type=none
4657 if test "$am_compiler_list" = ""; then
4658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4659 fi
4660 am__universal=false
4661 case " $depcc " in #(
4662 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4663 esac
4664
4665 for depmode in $am_compiler_list; do
4666 # Setup a source with many dependencies, because some compilers
4667 # like to wrap large dependency lists on column 80 (with \), and
4668 # we should not choose a depcomp mode which is confused by this.
4669 #
4670 # We need to recreate these files for each test, as the compiler may
4671 # overwrite some of them when testing with obscure command lines.
4672 # This happens at least with the AIX C compiler.
4673 : > sub/conftest.c
4674 for i in 1 2 3 4 5 6; do
4675 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4676 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4677 # Solaris 10 /bin/sh.
4678 echo '/* dummy */' > sub/conftst$i.h
4679 done
4680 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4681
4682 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4683 # mode. It turns out that the SunPro C++ compiler does not properly
4684 # handle '-M -o', and we need to detect this. Also, some Intel
4685 # versions had trouble with output in subdirs.
4686 am__obj=sub/conftest.${OBJEXT-o}
4687 am__minus_obj="-o $am__obj"
4688 case $depmode in
4689 gcc)
4690 # This depmode causes a compiler race in universal mode.
4691 test "$am__universal" = false || continue
4692 ;;
4693 nosideeffect)
4694 # After this tag, mechanisms are not by side-effect, so they'll
4695 # only be used when explicitly requested.
4696 if test "x$enable_dependency_tracking" = xyes; then
4697 continue
4698 else
4699 break
4700 fi
4701 ;;
4702 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4703 # This compiler won't grok '-c -o', but also, the minuso test has
4704 # not run yet. These depmodes are late enough in the game, and
4705 # so weak that their functioning should not be impacted.
4706 am__obj=conftest.${OBJEXT-o}
4707 am__minus_obj=
4708 ;;
4709 none) break ;;
4710 esac
4711 if depmode=$depmode \
4712 source=sub/conftest.c object=$am__obj \
4713 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4714 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4715 >/dev/null 2>conftest.err &&
4716 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4717 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4718 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4719 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4720 # icc doesn't choke on unknown options, it will just issue warnings
4721 # or remarks (even with -Werror). So we grep stderr for any message
4722 # that says an option was ignored or not supported.
4723 # When given -MP, icc 7.0 and 7.1 complain thusly:
4724 # icc: Command line warning: ignoring option '-M'; no argument required
4725 # The diagnosis changed in icc 8.0:
4726 # icc: Command line remark: option '-MP' not supported
4727 if (grep 'ignoring option' conftest.err ||
4728 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4729 am_cv_CC_dependencies_compiler_type=$depmode
4730 break
4731 fi
4732 fi
4733 done
4734
4735 cd ..
4736 rm -rf conftest.dir
4737 else
4738 am_cv_CC_dependencies_compiler_type=none
4739 fi
4740
4741 fi
4742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4743 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
4744 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4745
4746 if
4747 test "x$enable_dependency_tracking" != xno \
4748 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4749 am__fastdepCC_TRUE=
4750 am__fastdepCC_FALSE='#'
4751 else
4752 am__fastdepCC_TRUE='#'
4753 am__fastdepCC_FALSE=
4754 fi
4755
4756
4757
4758 ac_header= ac_cache=
4759 for ac_item in $ac_header_c_list
4760 do
4761 if test $ac_cache; then
4762 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4763 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4764 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4765 fi
4766 ac_header= ac_cache=
4767 elif test $ac_header; then
4768 ac_cache=$ac_item
4769 else
4770 ac_header=$ac_item
4771 fi
4772 done
4773
4774
4775
4776
4777
4778
4779
4780
4781 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4782 then :
4783
4784 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4785
4786 fi
4787
4788
4789
4790
4791
4792
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4794 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4795 if test ${ac_cv_safe_to_define___extensions__+y}
4796 then :
4797 printf %s "(cached) " >&6
4798 else $as_nop
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4801
4802 # define __EXTENSIONS__ 1
4803 $ac_includes_default
4804 int
4805 main (void)
4806 {
4807
4808 ;
4809 return 0;
4810 }
4811 _ACEOF
4812 if ac_fn_c_try_compile "$LINENO"
4813 then :
4814 ac_cv_safe_to_define___extensions__=yes
4815 else $as_nop
4816 ac_cv_safe_to_define___extensions__=no
4817 fi
4818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4819 fi
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4821 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4822
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4824 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4825 if test ${ac_cv_should_define__xopen_source+y}
4826 then :
4827 printf %s "(cached) " >&6
4828 else $as_nop
4829 ac_cv_should_define__xopen_source=no
4830 if test $ac_cv_header_wchar_h = yes
4831 then :
4832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4833 /* end confdefs.h. */
4834
4835 #include <wchar.h>
4836 mbstate_t x;
4837 int
4838 main (void)
4839 {
4840
4841 ;
4842 return 0;
4843 }
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"
4846 then :
4847
4848 else $as_nop
4849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4850 /* end confdefs.h. */
4851
4852 #define _XOPEN_SOURCE 500
4853 #include <wchar.h>
4854 mbstate_t x;
4855 int
4856 main (void)
4857 {
4858
4859 ;
4860 return 0;
4861 }
4862 _ACEOF
4863 if ac_fn_c_try_compile "$LINENO"
4864 then :
4865 ac_cv_should_define__xopen_source=yes
4866 fi
4867 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4868 fi
4869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4870 fi
4871 fi
4872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4873 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4874
4875 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4876
4877 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4878
4879 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4880
4881 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4882
4883 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4884
4885 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4886
4887 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4888
4889 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4890
4891 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4892
4893 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4894
4895 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4896
4897 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4898
4899 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4900
4901 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4902
4903 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4904
4905 if test $ac_cv_header_minix_config_h = yes
4906 then :
4907 MINIX=yes
4908 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4909
4910 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4911
4912 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4913
4914 else $as_nop
4915 MINIX=
4916 fi
4917 if test $ac_cv_safe_to_define___extensions__ = yes
4918 then :
4919 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4920
4921 fi
4922 if test $ac_cv_should_define__xopen_source = yes
4923 then :
4924 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4925
4926 fi
4927
4928
4929 # Initialize libtool
4930 case `pwd` in
4931 *\ * | *\ *)
4932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4933 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4934 esac
4935
4936
4937
4938 macro_version='2.4.7'
4939 macro_revision='2.4.7'
4940
4941
4942
4943
4944
4945
4946
4947
4948
4949
4950
4951
4952
4953
4954 ltmain=$ac_aux_dir/ltmain.sh
4955
4956
4957
4958 # Make sure we can run config.sub.
4959 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4960 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4961
4962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4963 printf %s "checking build system type... " >&6; }
4964 if test ${ac_cv_build+y}
4965 then :
4966 printf %s "(cached) " >&6
4967 else $as_nop
4968 ac_build_alias=$build_alias
4969 test "x$ac_build_alias" = x &&
4970 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4971 test "x$ac_build_alias" = x &&
4972 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4973 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4974 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4975
4976 fi
4977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4978 printf "%s\n" "$ac_cv_build" >&6; }
4979 case $ac_cv_build in
4980 *-*-*) ;;
4981 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4982 esac
4983 build=$ac_cv_build
4984 ac_save_IFS=$IFS; IFS='-'
4985 set x $ac_cv_build
4986 shift
4987 build_cpu=$1
4988 build_vendor=$2
4989 shift; shift
4990 # Remember, the first character of IFS is used to create $*,
4991 # except with old shells:
4992 build_os=$*
4993 IFS=$ac_save_IFS
4994 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4995
4996
4997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4998 printf %s "checking host system type... " >&6; }
4999 if test ${ac_cv_host+y}
5000 then :
5001 printf %s "(cached) " >&6
5002 else $as_nop
5003 if test "x$host_alias" = x; then
5004 ac_cv_host=$ac_cv_build
5005 else
5006 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
5007 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
5008 fi
5009
5010 fi
5011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5012 printf "%s\n" "$ac_cv_host" >&6; }
5013 case $ac_cv_host in
5014 *-*-*) ;;
5015 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5016 esac
5017 host=$ac_cv_host
5018 ac_save_IFS=$IFS; IFS='-'
5019 set x $ac_cv_host
5020 shift
5021 host_cpu=$1
5022 host_vendor=$2
5023 shift; shift
5024 # Remember, the first character of IFS is used to create $*,
5025 # except with old shells:
5026 host_os=$*
5027 IFS=$ac_save_IFS
5028 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5029
5030
5031 # Backslashify metacharacters that are still active within
5032 # double-quoted strings.
5033 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5034
5035 # Same as above, but do not quote variable references.
5036 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5037
5038 # Sed substitution to delay expansion of an escaped shell variable in a
5039 # double_quote_subst'ed string.
5040 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5041
5042 # Sed substitution to delay expansion of an escaped single quote.
5043 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5044
5045 # Sed substitution to avoid accidental globbing in evaled expressions
5046 no_glob_subst='s/\*/\\\*/g'
5047
5048 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5049 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5050 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5051
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5053 printf %s "checking how to print strings... " >&6; }
5054 # Test print first, because it will be a builtin if present.
5055 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5056 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5057 ECHO='print -r --'
5058 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5059 ECHO='printf %s\n'
5060 else
5061 # Use this function as a fallback that always works.
5062 func_fallback_echo ()
5063 {
5064 eval 'cat <<_LTECHO_EOF
5065 $1
5066 _LTECHO_EOF'
5067 }
5068 ECHO='func_fallback_echo'
5069 fi
5070
5071 # func_echo_all arg...
5072 # Invoke $ECHO with all args, space-separated.
5073 func_echo_all ()
5074 {
5075 $ECHO ""
5076 }
5077
5078 case $ECHO in
5079 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5080 printf "%s\n" "printf" >&6; } ;;
5081 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5082 printf "%s\n" "print -r" >&6; } ;;
5083 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5084 printf "%s\n" "cat" >&6; } ;;
5085 esac
5086
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099
5100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5101 printf %s "checking for a sed that does not truncate output... " >&6; }
5102 if test ${ac_cv_path_SED+y}
5103 then :
5104 printf %s "(cached) " >&6
5105 else $as_nop
5106 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5107 for ac_i in 1 2 3 4 5 6 7; do
5108 ac_script="$ac_script$as_nl$ac_script"
5109 done
5110 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5111 { ac_script=; unset ac_script;}
5112 if test -z "$SED"; then
5113 ac_path_SED_found=false
5114 # Loop through the user's path and test for each of PROGNAME-LIST
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5117 do
5118 IFS=$as_save_IFS
5119 case $as_dir in #(((
5120 '') as_dir=./ ;;
5121 */) ;;
5122 *) as_dir=$as_dir/ ;;
5123 esac
5124 for ac_prog in sed gsed
5125 do
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5128 as_fn_executable_p "$ac_path_SED" || continue
5129 # Check for GNU ac_path_SED and select it if it is found.
5130 # Check for GNU $ac_path_SED
5131 case `"$ac_path_SED" --version 2>&1` in
5132 *GNU*)
5133 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5134 *)
5135 ac_count=0
5136 printf %s 0123456789 >"conftest.in"
5137 while :
5138 do
5139 cat "conftest.in" "conftest.in" >"conftest.tmp"
5140 mv "conftest.tmp" "conftest.in"
5141 cp "conftest.in" "conftest.nl"
5142 printf "%s\n" '' >> "conftest.nl"
5143 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5145 as_fn_arith $ac_count + 1 && ac_count=$as_val
5146 if test $ac_count -gt ${ac_path_SED_max-0}; then
5147 # Best one so far, save it but keep looking for a better one
5148 ac_cv_path_SED="$ac_path_SED"
5149 ac_path_SED_max=$ac_count
5150 fi
5151 # 10*(2^10) chars as input seems more than enough
5152 test $ac_count -gt 10 && break
5153 done
5154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5155 esac
5156
5157 $ac_path_SED_found && break 3
5158 done
5159 done
5160 done
5161 IFS=$as_save_IFS
5162 if test -z "$ac_cv_path_SED"; then
5163 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5164 fi
5165 else
5166 ac_cv_path_SED=$SED
5167 fi
5168
5169 fi
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5171 printf "%s\n" "$ac_cv_path_SED" >&6; }
5172 SED="$ac_cv_path_SED"
5173 rm -f conftest.sed
5174
5175 test -z "$SED" && SED=sed
5176 Xsed="$SED -e 1s/^X//"
5177
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5189 printf %s "checking for grep that handles long lines and -e... " >&6; }
5190 if test ${ac_cv_path_GREP+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else $as_nop
5194 if test -z "$GREP"; then
5195 ac_path_GREP_found=false
5196 # Loop through the user's path and test for each of PROGNAME-LIST
5197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5198 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5199 do
5200 IFS=$as_save_IFS
5201 case $as_dir in #(((
5202 '') as_dir=./ ;;
5203 */) ;;
5204 *) as_dir=$as_dir/ ;;
5205 esac
5206 for ac_prog in grep ggrep
5207 do
5208 for ac_exec_ext in '' $ac_executable_extensions; do
5209 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5210 as_fn_executable_p "$ac_path_GREP" || continue
5211 # Check for GNU ac_path_GREP and select it if it is found.
5212 # Check for GNU $ac_path_GREP
5213 case `"$ac_path_GREP" --version 2>&1` in
5214 *GNU*)
5215 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5216 *)
5217 ac_count=0
5218 printf %s 0123456789 >"conftest.in"
5219 while :
5220 do
5221 cat "conftest.in" "conftest.in" >"conftest.tmp"
5222 mv "conftest.tmp" "conftest.in"
5223 cp "conftest.in" "conftest.nl"
5224 printf "%s\n" 'GREP' >> "conftest.nl"
5225 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5227 as_fn_arith $ac_count + 1 && ac_count=$as_val
5228 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5229 # Best one so far, save it but keep looking for a better one
5230 ac_cv_path_GREP="$ac_path_GREP"
5231 ac_path_GREP_max=$ac_count
5232 fi
5233 # 10*(2^10) chars as input seems more than enough
5234 test $ac_count -gt 10 && break
5235 done
5236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5237 esac
5238
5239 $ac_path_GREP_found && break 3
5240 done
5241 done
5242 done
5243 IFS=$as_save_IFS
5244 if test -z "$ac_cv_path_GREP"; then
5245 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5246 fi
5247 else
5248 ac_cv_path_GREP=$GREP
5249 fi
5250
5251 fi
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5253 printf "%s\n" "$ac_cv_path_GREP" >&6; }
5254 GREP="$ac_cv_path_GREP"
5255
5256
5257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5258 printf %s "checking for egrep... " >&6; }
5259 if test ${ac_cv_path_EGREP+y}
5260 then :
5261 printf %s "(cached) " >&6
5262 else $as_nop
5263 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5264 then ac_cv_path_EGREP="$GREP -E"
5265 else
5266 if test -z "$EGREP"; then
5267 ac_path_EGREP_found=false
5268 # Loop through the user's path and test for each of PROGNAME-LIST
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5271 do
5272 IFS=$as_save_IFS
5273 case $as_dir in #(((
5274 '') as_dir=./ ;;
5275 */) ;;
5276 *) as_dir=$as_dir/ ;;
5277 esac
5278 for ac_prog in egrep
5279 do
5280 for ac_exec_ext in '' $ac_executable_extensions; do
5281 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
5282 as_fn_executable_p "$ac_path_EGREP" || continue
5283 # Check for GNU ac_path_EGREP and select it if it is found.
5284 # Check for GNU $ac_path_EGREP
5285 case `"$ac_path_EGREP" --version 2>&1` in
5286 *GNU*)
5287 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5288 *)
5289 ac_count=0
5290 printf %s 0123456789 >"conftest.in"
5291 while :
5292 do
5293 cat "conftest.in" "conftest.in" >"conftest.tmp"
5294 mv "conftest.tmp" "conftest.in"
5295 cp "conftest.in" "conftest.nl"
5296 printf "%s\n" 'EGREP' >> "conftest.nl"
5297 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5298 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5299 as_fn_arith $ac_count + 1 && ac_count=$as_val
5300 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5301 # Best one so far, save it but keep looking for a better one
5302 ac_cv_path_EGREP="$ac_path_EGREP"
5303 ac_path_EGREP_max=$ac_count
5304 fi
5305 # 10*(2^10) chars as input seems more than enough
5306 test $ac_count -gt 10 && break
5307 done
5308 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5309 esac
5310
5311 $ac_path_EGREP_found && break 3
5312 done
5313 done
5314 done
5315 IFS=$as_save_IFS
5316 if test -z "$ac_cv_path_EGREP"; then
5317 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5318 fi
5319 else
5320 ac_cv_path_EGREP=$EGREP
5321 fi
5322
5323 fi
5324 fi
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5326 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
5327 EGREP="$ac_cv_path_EGREP"
5328
5329
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5331 printf %s "checking for fgrep... " >&6; }
5332 if test ${ac_cv_path_FGREP+y}
5333 then :
5334 printf %s "(cached) " >&6
5335 else $as_nop
5336 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5337 then ac_cv_path_FGREP="$GREP -F"
5338 else
5339 if test -z "$FGREP"; then
5340 ac_path_FGREP_found=false
5341 # Loop through the user's path and test for each of PROGNAME-LIST
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5344 do
5345 IFS=$as_save_IFS
5346 case $as_dir in #(((
5347 '') as_dir=./ ;;
5348 */) ;;
5349 *) as_dir=$as_dir/ ;;
5350 esac
5351 for ac_prog in fgrep
5352 do
5353 for ac_exec_ext in '' $ac_executable_extensions; do
5354 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
5355 as_fn_executable_p "$ac_path_FGREP" || continue
5356 # Check for GNU ac_path_FGREP and select it if it is found.
5357 # Check for GNU $ac_path_FGREP
5358 case `"$ac_path_FGREP" --version 2>&1` in
5359 *GNU*)
5360 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5361 *)
5362 ac_count=0
5363 printf %s 0123456789 >"conftest.in"
5364 while :
5365 do
5366 cat "conftest.in" "conftest.in" >"conftest.tmp"
5367 mv "conftest.tmp" "conftest.in"
5368 cp "conftest.in" "conftest.nl"
5369 printf "%s\n" 'FGREP' >> "conftest.nl"
5370 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5371 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5372 as_fn_arith $ac_count + 1 && ac_count=$as_val
5373 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5374 # Best one so far, save it but keep looking for a better one
5375 ac_cv_path_FGREP="$ac_path_FGREP"
5376 ac_path_FGREP_max=$ac_count
5377 fi
5378 # 10*(2^10) chars as input seems more than enough
5379 test $ac_count -gt 10 && break
5380 done
5381 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5382 esac
5383
5384 $ac_path_FGREP_found && break 3
5385 done
5386 done
5387 done
5388 IFS=$as_save_IFS
5389 if test -z "$ac_cv_path_FGREP"; then
5390 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5391 fi
5392 else
5393 ac_cv_path_FGREP=$FGREP
5394 fi
5395
5396 fi
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5399 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
5400 FGREP="$ac_cv_path_FGREP"
5401
5402
5403 test -z "$GREP" && GREP=grep
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
5421
5422
5423 # Check whether --with-gnu-ld was given.
5424 if test ${with_gnu_ld+y}
5425 then :
5426 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5427 else $as_nop
5428 with_gnu_ld=no
5429 fi
5430
5431 ac_prog=ld
5432 if test yes = "$GCC"; then
5433 # Check if gcc -print-prog-name=ld gives a path.
5434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5435 printf %s "checking for ld used by $CC... " >&6; }
5436 case $host in
5437 *-*-mingw*)
5438 # gcc leaves a trailing carriage return, which upsets mingw
5439 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5440 *)
5441 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5442 esac
5443 case $ac_prog in
5444 # Accept absolute paths.
5445 [\\/]* | ?:[\\/]*)
5446 re_direlt='/[^/][^/]*/\.\./'
5447 # Canonicalize the pathname of ld
5448 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5449 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5450 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5451 done
5452 test -z "$LD" && LD=$ac_prog
5453 ;;
5454 "")
5455 # If it fails, then pretend we aren't using GCC.
5456 ac_prog=ld
5457 ;;
5458 *)
5459 # If it is relative, then search for the first ld in PATH.
5460 with_gnu_ld=unknown
5461 ;;
5462 esac
5463 elif test yes = "$with_gnu_ld"; then
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5465 printf %s "checking for GNU ld... " >&6; }
5466 else
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5468 printf %s "checking for non-GNU ld... " >&6; }
5469 fi
5470 if test ${lt_cv_path_LD+y}
5471 then :
5472 printf %s "(cached) " >&6
5473 else $as_nop
5474 if test -z "$LD"; then
5475 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5476 for ac_dir in $PATH; do
5477 IFS=$lt_save_ifs
5478 test -z "$ac_dir" && ac_dir=.
5479 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5480 lt_cv_path_LD=$ac_dir/$ac_prog
5481 # Check to see if the program is GNU ld. I'd rather use --version,
5482 # but apparently some variants of GNU ld only accept -v.
5483 # Break only if it was the GNU/non-GNU ld that we prefer.
5484 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5485 *GNU* | *'with BFD'*)
5486 test no != "$with_gnu_ld" && break
5487 ;;
5488 *)
5489 test yes != "$with_gnu_ld" && break
5490 ;;
5491 esac
5492 fi
5493 done
5494 IFS=$lt_save_ifs
5495 else
5496 lt_cv_path_LD=$LD # Let the user override the test with a path.
5497 fi
5498 fi
5499
5500 LD=$lt_cv_path_LD
5501 if test -n "$LD"; then
5502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5503 printf "%s\n" "$LD" >&6; }
5504 else
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5506 printf "%s\n" "no" >&6; }
5507 fi
5508 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5510 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
5511 if test ${lt_cv_prog_gnu_ld+y}
5512 then :
5513 printf %s "(cached) " >&6
5514 else $as_nop
5515 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5516 case `$LD -v 2>&1 </dev/null` in
5517 *GNU* | *'with BFD'*)
5518 lt_cv_prog_gnu_ld=yes
5519 ;;
5520 *)
5521 lt_cv_prog_gnu_ld=no
5522 ;;
5523 esac
5524 fi
5525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5526 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
5527 with_gnu_ld=$lt_cv_prog_gnu_ld
5528
5529
5530
5531
5532
5533
5534
5535
5536
5537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5538 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5539 if test ${lt_cv_path_NM+y}
5540 then :
5541 printf %s "(cached) " >&6
5542 else $as_nop
5543 if test -n "$NM"; then
5544 # Let the user override the test.
5545 lt_cv_path_NM=$NM
5546 else
5547 lt_nm_to_check=${ac_tool_prefix}nm
5548 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5549 lt_nm_to_check="$lt_nm_to_check nm"
5550 fi
5551 for lt_tmp_nm in $lt_nm_to_check; do
5552 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5553 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5554 IFS=$lt_save_ifs
5555 test -z "$ac_dir" && ac_dir=.
5556 tmp_nm=$ac_dir/$lt_tmp_nm
5557 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5558 # Check to see if the nm accepts a BSD-compat flag.
5559 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5560 # nm: unknown option "B" ignored
5561 # Tru64's nm complains that /dev/null is an invalid object file
5562 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5563 case $build_os in
5564 mingw*) lt_bad_file=conftest.nm/nofile ;;
5565 *) lt_bad_file=/dev/null ;;
5566 esac
5567 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
5568 *$lt_bad_file* | *'Invalid file or object type'*)
5569 lt_cv_path_NM="$tmp_nm -B"
5570 break 2
5571 ;;
5572 *)
5573 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
5574 */dev/null*)
5575 lt_cv_path_NM="$tmp_nm -p"
5576 break 2
5577 ;;
5578 *)
5579 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5580 continue # so that we can try to find one that supports BSD flags
5581 ;;
5582 esac
5583 ;;
5584 esac
5585 fi
5586 done
5587 IFS=$lt_save_ifs
5588 done
5589 : ${lt_cv_path_NM=no}
5590 fi
5591 fi
5592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5593 printf "%s\n" "$lt_cv_path_NM" >&6; }
5594 if test no != "$lt_cv_path_NM"; then
5595 NM=$lt_cv_path_NM
5596 else
5597 # Didn't find any BSD compatible name lister, look for dumpbin.
5598 if test -n "$DUMPBIN"; then :
5599 # Let the user override the test.
5600 else
5601 if test -n "$ac_tool_prefix"; then
5602 for ac_prog in dumpbin "link -dump"
5603 do
5604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5607 printf %s "checking for $ac_word... " >&6; }
5608 if test ${ac_cv_prog_DUMPBIN+y}
5609 then :
5610 printf %s "(cached) " >&6
5611 else $as_nop
5612 if test -n "$DUMPBIN"; then
5613 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5614 else
5615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5616 for as_dir in $PATH
5617 do
5618 IFS=$as_save_IFS
5619 case $as_dir in #(((
5620 '') as_dir=./ ;;
5621 */) ;;
5622 *) as_dir=$as_dir/ ;;
5623 esac
5624 for ac_exec_ext in '' $ac_executable_extensions; do
5625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5626 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5628 break 2
5629 fi
5630 done
5631 done
5632 IFS=$as_save_IFS
5633
5634 fi
5635 fi
5636 DUMPBIN=$ac_cv_prog_DUMPBIN
5637 if test -n "$DUMPBIN"; then
5638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5639 printf "%s\n" "$DUMPBIN" >&6; }
5640 else
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642 printf "%s\n" "no" >&6; }
5643 fi
5644
5645
5646 test -n "$DUMPBIN" && break
5647 done
5648 fi
5649 if test -z "$DUMPBIN"; then
5650 ac_ct_DUMPBIN=$DUMPBIN
5651 for ac_prog in dumpbin "link -dump"
5652 do
5653 # Extract the first word of "$ac_prog", so it can be a program name with args.
5654 set dummy $ac_prog; ac_word=$2
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656 printf %s "checking for $ac_word... " >&6; }
5657 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
5658 then :
5659 printf %s "(cached) " >&6
5660 else $as_nop
5661 if test -n "$ac_ct_DUMPBIN"; then
5662 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5663 else
5664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665 for as_dir in $PATH
5666 do
5667 IFS=$as_save_IFS
5668 case $as_dir in #(((
5669 '') as_dir=./ ;;
5670 */) ;;
5671 *) as_dir=$as_dir/ ;;
5672 esac
5673 for ac_exec_ext in '' $ac_executable_extensions; do
5674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5675 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5677 break 2
5678 fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5686 if test -n "$ac_ct_DUMPBIN"; then
5687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5688 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
5689 else
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5691 printf "%s\n" "no" >&6; }
5692 fi
5693
5694
5695 test -n "$ac_ct_DUMPBIN" && break
5696 done
5697
5698 if test "x$ac_ct_DUMPBIN" = x; then
5699 DUMPBIN=":"
5700 else
5701 case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707 DUMPBIN=$ac_ct_DUMPBIN
5708 fi
5709 fi
5710
5711 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
5712 *COFF*)
5713 DUMPBIN="$DUMPBIN -symbols -headers"
5714 ;;
5715 *)
5716 DUMPBIN=:
5717 ;;
5718 esac
5719 fi
5720
5721 if test : != "$DUMPBIN"; then
5722 NM=$DUMPBIN
5723 fi
5724 fi
5725 test -z "$NM" && NM=nm
5726
5727
5728
5729
5730
5731
5732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5733 printf %s "checking the name lister ($NM) interface... " >&6; }
5734 if test ${lt_cv_nm_interface+y}
5735 then :
5736 printf %s "(cached) " >&6
5737 else $as_nop
5738 lt_cv_nm_interface="BSD nm"
5739 echo "int some_variable = 0;" > conftest.$ac_ext
5740 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5741 (eval "$ac_compile" 2>conftest.err)
5742 cat conftest.err >&5
5743 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5744 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5745 cat conftest.err >&5
5746 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5747 cat conftest.out >&5
5748 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5749 lt_cv_nm_interface="MS dumpbin"
5750 fi
5751 rm -f conftest*
5752 fi
5753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5754 printf "%s\n" "$lt_cv_nm_interface" >&6; }
5755
5756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5757 printf %s "checking whether ln -s works... " >&6; }
5758 LN_S=$as_ln_s
5759 if test "$LN_S" = "ln -s"; then
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5761 printf "%s\n" "yes" >&6; }
5762 else
5763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5764 printf "%s\n" "no, using $LN_S" >&6; }
5765 fi
5766
5767 # find the maximum length of command line arguments
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5769 printf %s "checking the maximum length of command line arguments... " >&6; }
5770 if test ${lt_cv_sys_max_cmd_len+y}
5771 then :
5772 printf %s "(cached) " >&6
5773 else $as_nop
5774 i=0
5775 teststring=ABCD
5776
5777 case $build_os in
5778 msdosdjgpp*)
5779 # On DJGPP, this test can blow up pretty badly due to problems in libc
5780 # (any single argument exceeding 2000 bytes causes a buffer overrun
5781 # during glob expansion). Even if it were fixed, the result of this
5782 # check would be larger than it should be.
5783 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5784 ;;
5785
5786 gnu*)
5787 # Under GNU Hurd, this test is not required because there is
5788 # no limit to the length of command line arguments.
5789 # Libtool will interpret -1 as no limit whatsoever
5790 lt_cv_sys_max_cmd_len=-1;
5791 ;;
5792
5793 cygwin* | mingw* | cegcc*)
5794 # On Win9x/ME, this test blows up -- it succeeds, but takes
5795 # about 5 minutes as the teststring grows exponentially.
5796 # Worse, since 9x/ME are not pre-emptively multitasking,
5797 # you end up with a "frozen" computer, even though with patience
5798 # the test eventually succeeds (with a max line length of 256k).
5799 # Instead, let's just punt: use the minimum linelength reported by
5800 # all of the supported platforms: 8192 (on NT/2K/XP).
5801 lt_cv_sys_max_cmd_len=8192;
5802 ;;
5803
5804 mint*)
5805 # On MiNT this can take a long time and run out of memory.
5806 lt_cv_sys_max_cmd_len=8192;
5807 ;;
5808
5809 amigaos*)
5810 # On AmigaOS with pdksh, this test takes hours, literally.
5811 # So we just punt and use a minimum line length of 8192.
5812 lt_cv_sys_max_cmd_len=8192;
5813 ;;
5814
5815 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
5816 # This has been around since 386BSD, at least. Likely further.
5817 if test -x /sbin/sysctl; then
5818 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5819 elif test -x /usr/sbin/sysctl; then
5820 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5821 else
5822 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5823 fi
5824 # And add a safety zone
5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5827 ;;
5828
5829 interix*)
5830 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5831 lt_cv_sys_max_cmd_len=196608
5832 ;;
5833
5834 os2*)
5835 # The test takes a long time on OS/2.
5836 lt_cv_sys_max_cmd_len=8192
5837 ;;
5838
5839 osf*)
5840 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5841 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5842 # nice to cause kernel panics so lets avoid the loop below.
5843 # First set a reasonable default.
5844 lt_cv_sys_max_cmd_len=16384
5845 #
5846 if test -x /sbin/sysconfig; then
5847 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5848 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5849 esac
5850 fi
5851 ;;
5852 sco3.2v5*)
5853 lt_cv_sys_max_cmd_len=102400
5854 ;;
5855 sysv5* | sco5v6* | sysv4.2uw2*)
5856 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5857 if test -n "$kargmax"; then
5858 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
5859 else
5860 lt_cv_sys_max_cmd_len=32768
5861 fi
5862 ;;
5863 *)
5864 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5865 if test -n "$lt_cv_sys_max_cmd_len" && \
5866 test undefined != "$lt_cv_sys_max_cmd_len"; then
5867 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5868 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5869 else
5870 # Make teststring a little bigger before we do anything with it.
5871 # a 1K string should be a reasonable start.
5872 for i in 1 2 3 4 5 6 7 8; do
5873 teststring=$teststring$teststring
5874 done
5875 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5876 # If test is not a shell built-in, we'll probably end up computing a
5877 # maximum length that is only half of the actual maximum length, but
5878 # we can't tell.
5879 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
5880 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5881 test 17 != "$i" # 1/2 MB should be enough
5882 do
5883 i=`expr $i + 1`
5884 teststring=$teststring$teststring
5885 done
5886 # Only check the string length outside the loop.
5887 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5888 teststring=
5889 # Add a significant safety factor because C++ compilers can tack on
5890 # massive amounts of additional arguments before passing them to the
5891 # linker. It appears as though 1/2 is a usable value.
5892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5893 fi
5894 ;;
5895 esac
5896
5897 fi
5898
5899 if test -n "$lt_cv_sys_max_cmd_len"; then
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5901 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
5902 else
5903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
5904 printf "%s\n" "none" >&6; }
5905 fi
5906 max_cmd_len=$lt_cv_sys_max_cmd_len
5907
5908
5909
5910
5911
5912
5913 : ${CP="cp -f"}
5914 : ${MV="mv -f"}
5915 : ${RM="rm -f"}
5916
5917 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5918 lt_unset=unset
5919 else
5920 lt_unset=false
5921 fi
5922
5923
5924
5925
5926
5927 # test EBCDIC or ASCII
5928 case `echo X|tr X '\101'` in
5929 A) # ASCII based system
5930 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5931 lt_SP2NL='tr \040 \012'
5932 lt_NL2SP='tr \015\012 \040\040'
5933 ;;
5934 *) # EBCDIC based system
5935 lt_SP2NL='tr \100 \n'
5936 lt_NL2SP='tr \r\n \100\100'
5937 ;;
5938 esac
5939
5940
5941
5942
5943
5944
5945
5946
5947
5948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5949 printf %s "checking how to convert $build file names to $host format... " >&6; }
5950 if test ${lt_cv_to_host_file_cmd+y}
5951 then :
5952 printf %s "(cached) " >&6
5953 else $as_nop
5954 case $host in
5955 *-*-mingw* )
5956 case $build in
5957 *-*-mingw* ) # actually msys
5958 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5959 ;;
5960 *-*-cygwin* )
5961 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5962 ;;
5963 * ) # otherwise, assume *nix
5964 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5965 ;;
5966 esac
5967 ;;
5968 *-*-cygwin* )
5969 case $build in
5970 *-*-mingw* ) # actually msys
5971 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5972 ;;
5973 *-*-cygwin* )
5974 lt_cv_to_host_file_cmd=func_convert_file_noop
5975 ;;
5976 * ) # otherwise, assume *nix
5977 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5978 ;;
5979 esac
5980 ;;
5981 * ) # unhandled hosts (and "normal" native builds)
5982 lt_cv_to_host_file_cmd=func_convert_file_noop
5983 ;;
5984 esac
5985
5986 fi
5987
5988 to_host_file_cmd=$lt_cv_to_host_file_cmd
5989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5990 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
5991
5992
5993
5994
5995
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5997 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
5998 if test ${lt_cv_to_tool_file_cmd+y}
5999 then :
6000 printf %s "(cached) " >&6
6001 else $as_nop
6002 #assume ordinary cross tools, or native build.
6003 lt_cv_to_tool_file_cmd=func_convert_file_noop
6004 case $host in
6005 *-*-mingw* )
6006 case $build in
6007 *-*-mingw* ) # actually msys
6008 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6009 ;;
6010 esac
6011 ;;
6012 esac
6013
6014 fi
6015
6016 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6018 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
6019
6020
6021
6022
6023
6024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6025 printf %s "checking for $LD option to reload object files... " >&6; }
6026 if test ${lt_cv_ld_reload_flag+y}
6027 then :
6028 printf %s "(cached) " >&6
6029 else $as_nop
6030 lt_cv_ld_reload_flag='-r'
6031 fi
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6033 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
6034 reload_flag=$lt_cv_ld_reload_flag
6035 case $reload_flag in
6036 "" | " "*) ;;
6037 *) reload_flag=" $reload_flag" ;;
6038 esac
6039 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6040 case $host_os in
6041 cygwin* | mingw* | pw32* | cegcc*)
6042 if test yes != "$GCC"; then
6043 reload_cmds=false
6044 fi
6045 ;;
6046 darwin*)
6047 if test yes = "$GCC"; then
6048 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6049 else
6050 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6051 fi
6052 ;;
6053 esac
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063 if test -n "$ac_tool_prefix"; then
6064 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
6065 set dummy ${ac_tool_prefix}file; ac_word=$2
6066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6067 printf %s "checking for $ac_word... " >&6; }
6068 if test ${ac_cv_prog_FILECMD+y}
6069 then :
6070 printf %s "(cached) " >&6
6071 else $as_nop
6072 if test -n "$FILECMD"; then
6073 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078 IFS=$as_save_IFS
6079 case $as_dir in #(((
6080 '') as_dir=./ ;;
6081 */) ;;
6082 *) as_dir=$as_dir/ ;;
6083 esac
6084 for ac_exec_ext in '' $ac_executable_extensions; do
6085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6086 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
6087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6088 break 2
6089 fi
6090 done
6091 done
6092 IFS=$as_save_IFS
6093
6094 fi
6095 fi
6096 FILECMD=$ac_cv_prog_FILECMD
6097 if test -n "$FILECMD"; then
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
6099 printf "%s\n" "$FILECMD" >&6; }
6100 else
6101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6102 printf "%s\n" "no" >&6; }
6103 fi
6104
6105
6106 fi
6107 if test -z "$ac_cv_prog_FILECMD"; then
6108 ac_ct_FILECMD=$FILECMD
6109 # Extract the first word of "file", so it can be a program name with args.
6110 set dummy file; ac_word=$2
6111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6112 printf %s "checking for $ac_word... " >&6; }
6113 if test ${ac_cv_prog_ac_ct_FILECMD+y}
6114 then :
6115 printf %s "(cached) " >&6
6116 else $as_nop
6117 if test -n "$ac_ct_FILECMD"; then
6118 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
6119 else
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6121 for as_dir in $PATH
6122 do
6123 IFS=$as_save_IFS
6124 case $as_dir in #(((
6125 '') as_dir=./ ;;
6126 */) ;;
6127 *) as_dir=$as_dir/ ;;
6128 esac
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_ac_ct_FILECMD="file"
6132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6138
6139 fi
6140 fi
6141 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
6142 if test -n "$ac_ct_FILECMD"; then
6143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
6144 printf "%s\n" "$ac_ct_FILECMD" >&6; }
6145 else
6146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 printf "%s\n" "no" >&6; }
6148 fi
6149
6150 if test "x$ac_ct_FILECMD" = x; then
6151 FILECMD=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159 FILECMD=$ac_ct_FILECMD
6160 fi
6161 else
6162 FILECMD="$ac_cv_prog_FILECMD"
6163 fi
6164
6165
6166
6167
6168
6169
6170
6171 if test -n "$ac_tool_prefix"; then
6172 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6173 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6175 printf %s "checking for $ac_word... " >&6; }
6176 if test ${ac_cv_prog_OBJDUMP+y}
6177 then :
6178 printf %s "(cached) " >&6
6179 else $as_nop
6180 if test -n "$OBJDUMP"; then
6181 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186 IFS=$as_save_IFS
6187 case $as_dir in #(((
6188 '') as_dir=./ ;;
6189 */) ;;
6190 *) as_dir=$as_dir/ ;;
6191 esac
6192 for ac_exec_ext in '' $ac_executable_extensions; do
6193 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6194 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6195 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6196 break 2
6197 fi
6198 done
6199 done
6200 IFS=$as_save_IFS
6201
6202 fi
6203 fi
6204 OBJDUMP=$ac_cv_prog_OBJDUMP
6205 if test -n "$OBJDUMP"; then
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6207 printf "%s\n" "$OBJDUMP" >&6; }
6208 else
6209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210 printf "%s\n" "no" >&6; }
6211 fi
6212
6213
6214 fi
6215 if test -z "$ac_cv_prog_OBJDUMP"; then
6216 ac_ct_OBJDUMP=$OBJDUMP
6217 # Extract the first word of "objdump", so it can be a program name with args.
6218 set dummy objdump; ac_word=$2
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6220 printf %s "checking for $ac_word... " >&6; }
6221 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
6222 then :
6223 printf %s "(cached) " >&6
6224 else $as_nop
6225 if test -n "$ac_ct_OBJDUMP"; then
6226 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6227 else
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH
6230 do
6231 IFS=$as_save_IFS
6232 case $as_dir in #(((
6233 '') as_dir=./ ;;
6234 */) ;;
6235 *) as_dir=$as_dir/ ;;
6236 esac
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6250 if test -n "$ac_ct_OBJDUMP"; then
6251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6252 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
6253 else
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 printf "%s\n" "no" >&6; }
6256 fi
6257
6258 if test "x$ac_ct_OBJDUMP" = x; then
6259 OBJDUMP="false"
6260 else
6261 case $cross_compiling:$ac_tool_warned in
6262 yes:)
6263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265 ac_tool_warned=yes ;;
6266 esac
6267 OBJDUMP=$ac_ct_OBJDUMP
6268 fi
6269 else
6270 OBJDUMP="$ac_cv_prog_OBJDUMP"
6271 fi
6272
6273 test -z "$OBJDUMP" && OBJDUMP=objdump
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6284 printf %s "checking how to recognize dependent libraries... " >&6; }
6285 if test ${lt_cv_deplibs_check_method+y}
6286 then :
6287 printf %s "(cached) " >&6
6288 else $as_nop
6289 lt_cv_file_magic_cmd='$MAGIC_CMD'
6290 lt_cv_file_magic_test_file=
6291 lt_cv_deplibs_check_method='unknown'
6292 # Need to set the preceding variable on all platforms that support
6293 # interlibrary dependencies.
6294 # 'none' -- dependencies not supported.
6295 # 'unknown' -- same as none, but documents that we really don't know.
6296 # 'pass_all' -- all dependencies passed with no checks.
6297 # 'test_compile' -- check by making test program.
6298 # 'file_magic [[regex]]' -- check by looking for files in library path
6299 # that responds to the $file_magic_cmd with a given extended regex.
6300 # If you have 'file' or equivalent on your system and you're not sure
6301 # whether 'pass_all' will *always* work, you probably want this one.
6302
6303 case $host_os in
6304 aix[4-9]*)
6305 lt_cv_deplibs_check_method=pass_all
6306 ;;
6307
6308 beos*)
6309 lt_cv_deplibs_check_method=pass_all
6310 ;;
6311
6312 bsdi[45]*)
6313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6314 lt_cv_file_magic_cmd='$FILECMD -L'
6315 lt_cv_file_magic_test_file=/shlib/libc.so
6316 ;;
6317
6318 cygwin*)
6319 # func_win32_libid is a shell function defined in ltmain.sh
6320 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6321 lt_cv_file_magic_cmd='func_win32_libid'
6322 ;;
6323
6324 mingw* | pw32*)
6325 # Base MSYS/MinGW do not provide the 'file' command needed by
6326 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6327 # unless we find 'file', for example because we are cross-compiling.
6328 if ( file / ) >/dev/null 2>&1; then
6329 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6330 lt_cv_file_magic_cmd='func_win32_libid'
6331 else
6332 # Keep this pattern in sync with the one in func_win32_libid.
6333 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6334 lt_cv_file_magic_cmd='$OBJDUMP -f'
6335 fi
6336 ;;
6337
6338 cegcc*)
6339 # use the weaker test based on 'objdump'. See mingw*.
6340 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6341 lt_cv_file_magic_cmd='$OBJDUMP -f'
6342 ;;
6343
6344 darwin* | rhapsody*)
6345 lt_cv_deplibs_check_method=pass_all
6346 ;;
6347
6348 freebsd* | dragonfly* | midnightbsd*)
6349 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6350 case $host_cpu in
6351 i*86 )
6352 # Not sure whether the presence of OpenBSD here was a mistake.
6353 # Let's accept both of them until this is cleared up.
6354 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6355 lt_cv_file_magic_cmd=$FILECMD
6356 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6357 ;;
6358 esac
6359 else
6360 lt_cv_deplibs_check_method=pass_all
6361 fi
6362 ;;
6363
6364 haiku*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 hpux10.20* | hpux11*)
6369 lt_cv_file_magic_cmd=$FILECMD
6370 case $host_cpu in
6371 ia64*)
6372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374 ;;
6375 hppa*64*)
6376 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]'
6377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378 ;;
6379 *)
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382 ;;
6383 esac
6384 ;;
6385
6386 interix[3-9]*)
6387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389 ;;
6390
6391 irix5* | irix6* | nonstopux*)
6392 case $LD in
6393 *-32|*"-32 ") libmagic=32-bit;;
6394 *-n32|*"-n32 ") libmagic=N32;;
6395 *-64|*"-64 ") libmagic=64-bit;;
6396 *) libmagic=never-match;;
6397 esac
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 # This must be glibc/ELF.
6402 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
6406 netbsd*)
6407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 else
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411 fi
6412 ;;
6413
6414 newos6*)
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416 lt_cv_file_magic_cmd=$FILECMD
6417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418 ;;
6419
6420 *nto* | *qnx*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 openbsd* | bitrig*)
6425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427 else
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429 fi
6430 ;;
6431
6432 osf3* | osf4* | osf5*)
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
6435
6436 rdos*)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439
6440 solaris*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448 sysv4 | sysv4.3*)
6449 case $host_vendor in
6450 motorola)
6451 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]'
6452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6453 ;;
6454 ncr)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457 sequent)
6458 lt_cv_file_magic_cmd='/bin/file'
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6460 ;;
6461 sni)
6462 lt_cv_file_magic_cmd='/bin/file'
6463 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464 lt_cv_file_magic_test_file=/lib/libc.so
6465 ;;
6466 siemens)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469 pc)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472 esac
6473 ;;
6474
6475 tpf*)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 os2*)
6479 lt_cv_deplibs_check_method=pass_all
6480 ;;
6481 esac
6482
6483 fi
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6485 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
6486
6487 file_magic_glob=
6488 want_nocaseglob=no
6489 if test "$build" = "$host"; then
6490 case $host_os in
6491 mingw* | pw32*)
6492 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6493 want_nocaseglob=yes
6494 else
6495 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6496 fi
6497 ;;
6498 esac
6499 fi
6500
6501 file_magic_cmd=$lt_cv_file_magic_cmd
6502 deplibs_check_method=$lt_cv_deplibs_check_method
6503 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526 if test -n "$ac_tool_prefix"; then
6527 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6528 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6530 printf %s "checking for $ac_word... " >&6; }
6531 if test ${ac_cv_prog_DLLTOOL+y}
6532 then :
6533 printf %s "(cached) " >&6
6534 else $as_nop
6535 if test -n "$DLLTOOL"; then
6536 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6537 else
6538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6539 for as_dir in $PATH
6540 do
6541 IFS=$as_save_IFS
6542 case $as_dir in #(((
6543 '') as_dir=./ ;;
6544 */) ;;
6545 *) as_dir=$as_dir/ ;;
6546 esac
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553 done
6554 done
6555 IFS=$as_save_IFS
6556
6557 fi
6558 fi
6559 DLLTOOL=$ac_cv_prog_DLLTOOL
6560 if test -n "$DLLTOOL"; then
6561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6562 printf "%s\n" "$DLLTOOL" >&6; }
6563 else
6564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565 printf "%s\n" "no" >&6; }
6566 fi
6567
6568
6569 fi
6570 if test -z "$ac_cv_prog_DLLTOOL"; then
6571 ac_ct_DLLTOOL=$DLLTOOL
6572 # Extract the first word of "dlltool", so it can be a program name with args.
6573 set dummy dlltool; ac_word=$2
6574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6575 printf %s "checking for $ac_word... " >&6; }
6576 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
6577 then :
6578 printf %s "(cached) " >&6
6579 else $as_nop
6580 if test -n "$ac_ct_DLLTOOL"; then
6581 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6582 else
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6584 for as_dir in $PATH
6585 do
6586 IFS=$as_save_IFS
6587 case $as_dir in #(((
6588 '') as_dir=./ ;;
6589 */) ;;
6590 *) as_dir=$as_dir/ ;;
6591 esac
6592 for ac_exec_ext in '' $ac_executable_extensions; do
6593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6594 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6596 break 2
6597 fi
6598 done
6599 done
6600 IFS=$as_save_IFS
6601
6602 fi
6603 fi
6604 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6605 if test -n "$ac_ct_DLLTOOL"; then
6606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6607 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
6608 else
6609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6610 printf "%s\n" "no" >&6; }
6611 fi
6612
6613 if test "x$ac_ct_DLLTOOL" = x; then
6614 DLLTOOL="false"
6615 else
6616 case $cross_compiling:$ac_tool_warned in
6617 yes:)
6618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6619 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6620 ac_tool_warned=yes ;;
6621 esac
6622 DLLTOOL=$ac_ct_DLLTOOL
6623 fi
6624 else
6625 DLLTOOL="$ac_cv_prog_DLLTOOL"
6626 fi
6627
6628 test -z "$DLLTOOL" && DLLTOOL=dlltool
6629
6630
6631
6632
6633
6634
6635
6636
6637
6638
6639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6640 printf %s "checking how to associate runtime and link libraries... " >&6; }
6641 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
6642 then :
6643 printf %s "(cached) " >&6
6644 else $as_nop
6645 lt_cv_sharedlib_from_linklib_cmd='unknown'
6646
6647 case $host_os in
6648 cygwin* | mingw* | pw32* | cegcc*)
6649 # two different shell functions defined in ltmain.sh;
6650 # decide which one to use based on capabilities of $DLLTOOL
6651 case `$DLLTOOL --help 2>&1` in
6652 *--identify-strict*)
6653 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6654 ;;
6655 *)
6656 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6657 ;;
6658 esac
6659 ;;
6660 *)
6661 # fallback: assume linklib IS sharedlib
6662 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6663 ;;
6664 esac
6665
6666 fi
6667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6668 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6669 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6670 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6671
6672
6673
6674
6675
6676
6677
6678 if test -n "$ac_tool_prefix"; then
6679 for ac_prog in ar
6680 do
6681 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6682 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684 printf %s "checking for $ac_word... " >&6; }
6685 if test ${ac_cv_prog_AR+y}
6686 then :
6687 printf %s "(cached) " >&6
6688 else $as_nop
6689 if test -n "$AR"; then
6690 ac_cv_prog_AR="$AR" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6694 do
6695 IFS=$as_save_IFS
6696 case $as_dir in #(((
6697 '') as_dir=./ ;;
6698 */) ;;
6699 *) as_dir=$as_dir/ ;;
6700 esac
6701 for ac_exec_ext in '' $ac_executable_extensions; do
6702 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6703 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6704 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6705 break 2
6706 fi
6707 done
6708 done
6709 IFS=$as_save_IFS
6710
6711 fi
6712 fi
6713 AR=$ac_cv_prog_AR
6714 if test -n "$AR"; then
6715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6716 printf "%s\n" "$AR" >&6; }
6717 else
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6719 printf "%s\n" "no" >&6; }
6720 fi
6721
6722
6723 test -n "$AR" && break
6724 done
6725 fi
6726 if test -z "$AR"; then
6727 ac_ct_AR=$AR
6728 for ac_prog in ar
6729 do
6730 # Extract the first word of "$ac_prog", so it can be a program name with args.
6731 set dummy $ac_prog; ac_word=$2
6732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6733 printf %s "checking for $ac_word... " >&6; }
6734 if test ${ac_cv_prog_ac_ct_AR+y}
6735 then :
6736 printf %s "(cached) " >&6
6737 else $as_nop
6738 if test -n "$ac_ct_AR"; then
6739 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6740 else
6741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6742 for as_dir in $PATH
6743 do
6744 IFS=$as_save_IFS
6745 case $as_dir in #(((
6746 '') as_dir=./ ;;
6747 */) ;;
6748 *) as_dir=$as_dir/ ;;
6749 esac
6750 for ac_exec_ext in '' $ac_executable_extensions; do
6751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6752 ac_cv_prog_ac_ct_AR="$ac_prog"
6753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6754 break 2
6755 fi
6756 done
6757 done
6758 IFS=$as_save_IFS
6759
6760 fi
6761 fi
6762 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6763 if test -n "$ac_ct_AR"; then
6764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6765 printf "%s\n" "$ac_ct_AR" >&6; }
6766 else
6767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6768 printf "%s\n" "no" >&6; }
6769 fi
6770
6771
6772 test -n "$ac_ct_AR" && break
6773 done
6774
6775 if test "x$ac_ct_AR" = x; then
6776 AR="false"
6777 else
6778 case $cross_compiling:$ac_tool_warned in
6779 yes:)
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6781 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6782 ac_tool_warned=yes ;;
6783 esac
6784 AR=$ac_ct_AR
6785 fi
6786 fi
6787
6788 : ${AR=ar}
6789
6790
6791
6792
6793
6794
6795 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
6796 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
6797 # higher priority because thats what people were doing historically (setting
6798 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
6799 # variable obsoleted/removed.
6800
6801 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
6802 lt_ar_flags=$AR_FLAGS
6803
6804
6805
6806
6807
6808
6809 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
6810 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
6811
6812
6813
6814
6815
6816
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6818 printf %s "checking for archiver @FILE support... " >&6; }
6819 if test ${lt_cv_ar_at_file+y}
6820 then :
6821 printf %s "(cached) " >&6
6822 else $as_nop
6823 lt_cv_ar_at_file=no
6824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6825 /* end confdefs.h. */
6826
6827 int
6828 main (void)
6829 {
6830
6831 ;
6832 return 0;
6833 }
6834 _ACEOF
6835 if ac_fn_c_try_compile "$LINENO"
6836 then :
6837 echo conftest.$ac_objext > conftest.lst
6838 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6840 (eval $lt_ar_try) 2>&5
6841 ac_status=$?
6842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6843 test $ac_status = 0; }
6844 if test 0 -eq "$ac_status"; then
6845 # Ensure the archiver fails upon bogus file names.
6846 rm -f conftest.$ac_objext libconftest.a
6847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6848 (eval $lt_ar_try) 2>&5
6849 ac_status=$?
6850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6851 test $ac_status = 0; }
6852 if test 0 -ne "$ac_status"; then
6853 lt_cv_ar_at_file=@
6854 fi
6855 fi
6856 rm -f conftest.* libconftest.a
6857
6858 fi
6859 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6860
6861 fi
6862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6863 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
6864
6865 if test no = "$lt_cv_ar_at_file"; then
6866 archiver_list_spec=
6867 else
6868 archiver_list_spec=$lt_cv_ar_at_file
6869 fi
6870
6871
6872
6873
6874
6875
6876
6877 if test -n "$ac_tool_prefix"; then
6878 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6879 set dummy ${ac_tool_prefix}strip; ac_word=$2
6880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6881 printf %s "checking for $ac_word... " >&6; }
6882 if test ${ac_cv_prog_STRIP+y}
6883 then :
6884 printf %s "(cached) " >&6
6885 else $as_nop
6886 if test -n "$STRIP"; then
6887 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6891 do
6892 IFS=$as_save_IFS
6893 case $as_dir in #(((
6894 '') as_dir=./ ;;
6895 */) ;;
6896 *) as_dir=$as_dir/ ;;
6897 esac
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6900 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6902 break 2
6903 fi
6904 done
6905 done
6906 IFS=$as_save_IFS
6907
6908 fi
6909 fi
6910 STRIP=$ac_cv_prog_STRIP
6911 if test -n "$STRIP"; then
6912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6913 printf "%s\n" "$STRIP" >&6; }
6914 else
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 printf "%s\n" "no" >&6; }
6917 fi
6918
6919
6920 fi
6921 if test -z "$ac_cv_prog_STRIP"; then
6922 ac_ct_STRIP=$STRIP
6923 # Extract the first word of "strip", so it can be a program name with args.
6924 set dummy strip; ac_word=$2
6925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 printf %s "checking for $ac_word... " >&6; }
6927 if test ${ac_cv_prog_ac_ct_STRIP+y}
6928 then :
6929 printf %s "(cached) " >&6
6930 else $as_nop
6931 if test -n "$ac_ct_STRIP"; then
6932 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6933 else
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 for as_dir in $PATH
6936 do
6937 IFS=$as_save_IFS
6938 case $as_dir in #(((
6939 '') as_dir=./ ;;
6940 */) ;;
6941 *) as_dir=$as_dir/ ;;
6942 esac
6943 for ac_exec_ext in '' $ac_executable_extensions; do
6944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6945 ac_cv_prog_ac_ct_STRIP="strip"
6946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6947 break 2
6948 fi
6949 done
6950 done
6951 IFS=$as_save_IFS
6952
6953 fi
6954 fi
6955 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6956 if test -n "$ac_ct_STRIP"; then
6957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6958 printf "%s\n" "$ac_ct_STRIP" >&6; }
6959 else
6960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6961 printf "%s\n" "no" >&6; }
6962 fi
6963
6964 if test "x$ac_ct_STRIP" = x; then
6965 STRIP=":"
6966 else
6967 case $cross_compiling:$ac_tool_warned in
6968 yes:)
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6971 ac_tool_warned=yes ;;
6972 esac
6973 STRIP=$ac_ct_STRIP
6974 fi
6975 else
6976 STRIP="$ac_cv_prog_STRIP"
6977 fi
6978
6979 test -z "$STRIP" && STRIP=:
6980
6981
6982
6983
6984
6985
6986 if test -n "$ac_tool_prefix"; then
6987 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6988 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6990 printf %s "checking for $ac_word... " >&6; }
6991 if test ${ac_cv_prog_RANLIB+y}
6992 then :
6993 printf %s "(cached) " >&6
6994 else $as_nop
6995 if test -n "$RANLIB"; then
6996 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6997 else
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001 IFS=$as_save_IFS
7002 case $as_dir in #(((
7003 '') as_dir=./ ;;
7004 */) ;;
7005 *) as_dir=$as_dir/ ;;
7006 esac
7007 for ac_exec_ext in '' $ac_executable_extensions; do
7008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7009 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7011 break 2
7012 fi
7013 done
7014 done
7015 IFS=$as_save_IFS
7016
7017 fi
7018 fi
7019 RANLIB=$ac_cv_prog_RANLIB
7020 if test -n "$RANLIB"; then
7021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7022 printf "%s\n" "$RANLIB" >&6; }
7023 else
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7025 printf "%s\n" "no" >&6; }
7026 fi
7027
7028
7029 fi
7030 if test -z "$ac_cv_prog_RANLIB"; then
7031 ac_ct_RANLIB=$RANLIB
7032 # Extract the first word of "ranlib", so it can be a program name with args.
7033 set dummy ranlib; ac_word=$2
7034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7035 printf %s "checking for $ac_word... " >&6; }
7036 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7037 then :
7038 printf %s "(cached) " >&6
7039 else $as_nop
7040 if test -n "$ac_ct_RANLIB"; then
7041 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7042 else
7043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7044 for as_dir in $PATH
7045 do
7046 IFS=$as_save_IFS
7047 case $as_dir in #(((
7048 '') as_dir=./ ;;
7049 */) ;;
7050 *) as_dir=$as_dir/ ;;
7051 esac
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_ac_ct_RANLIB="ranlib"
7055 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7061
7062 fi
7063 fi
7064 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7065 if test -n "$ac_ct_RANLIB"; then
7066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7067 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7068 else
7069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 printf "%s\n" "no" >&6; }
7071 fi
7072
7073 if test "x$ac_ct_RANLIB" = x; then
7074 RANLIB=":"
7075 else
7076 case $cross_compiling:$ac_tool_warned in
7077 yes:)
7078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7080 ac_tool_warned=yes ;;
7081 esac
7082 RANLIB=$ac_ct_RANLIB
7083 fi
7084 else
7085 RANLIB="$ac_cv_prog_RANLIB"
7086 fi
7087
7088 test -z "$RANLIB" && RANLIB=:
7089
7090
7091
7092
7093
7094
7095 # Determine commands to create old-style static archives.
7096 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7097 old_postinstall_cmds='chmod 644 $oldlib'
7098 old_postuninstall_cmds=
7099
7100 if test -n "$RANLIB"; then
7101 case $host_os in
7102 bitrig* | openbsd*)
7103 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7104 ;;
7105 *)
7106 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7107 ;;
7108 esac
7109 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7110 fi
7111
7112 case $host_os in
7113 darwin*)
7114 lock_old_archive_extraction=yes ;;
7115 *)
7116 lock_old_archive_extraction=no ;;
7117 esac
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146
7147
7148
7149
7150
7151
7152
7153
7154
7155
7156
7157 # If no C compiler was specified, use CC.
7158 LTCC=${LTCC-"$CC"}
7159
7160 # If no C compiler flags were specified, use CFLAGS.
7161 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7162
7163 # Allow CC to be a program name with arguments.
7164 compiler=$CC
7165
7166
7167 # Check for command to grab the raw symbol name followed by C symbol from nm.
7168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7169 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
7170 if test ${lt_cv_sys_global_symbol_pipe+y}
7171 then :
7172 printf %s "(cached) " >&6
7173 else $as_nop
7174
7175 # These are sane defaults that work on at least a few old systems.
7176 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7177
7178 # Character class describing NM global symbol codes.
7179 symcode='[BCDEGRST]'
7180
7181 # Regexp to match symbols that can be accessed directly from C.
7182 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7183
7184 # Define system-specific variables.
7185 case $host_os in
7186 aix*)
7187 symcode='[BCDT]'
7188 ;;
7189 cygwin* | mingw* | pw32* | cegcc*)
7190 symcode='[ABCDGISTW]'
7191 ;;
7192 hpux*)
7193 if test ia64 = "$host_cpu"; then
7194 symcode='[ABCDEGRST]'
7195 fi
7196 ;;
7197 irix* | nonstopux*)
7198 symcode='[BCDEGRST]'
7199 ;;
7200 osf*)
7201 symcode='[BCDEGQRST]'
7202 ;;
7203 solaris*)
7204 symcode='[BDRT]'
7205 ;;
7206 sco3.2v5*)
7207 symcode='[DT]'
7208 ;;
7209 sysv4.2uw2*)
7210 symcode='[DT]'
7211 ;;
7212 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7213 symcode='[ABDT]'
7214 ;;
7215 sysv4)
7216 symcode='[DFNSTU]'
7217 ;;
7218 esac
7219
7220 # If we're using GNU nm, then use its standard symbol codes.
7221 case `$NM -V 2>&1` in
7222 *GNU* | *'with BFD'*)
7223 symcode='[ABCDGIRSTW]' ;;
7224 esac
7225
7226 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7227 # Gets list of data symbols to import.
7228 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
7229 # Adjust the below global symbol transforms to fixup imported variables.
7230 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7231 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7232 lt_c_name_lib_hook="\
7233 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7234 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7235 else
7236 # Disable hooks by default.
7237 lt_cv_sys_global_symbol_to_import=
7238 lt_cdecl_hook=
7239 lt_c_name_hook=
7240 lt_c_name_lib_hook=
7241 fi
7242
7243 # Transform an extracted symbol line into a proper C declaration.
7244 # Some systems (esp. on ia64) link data and code symbols differently,
7245 # so use this general approach.
7246 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
7247 $lt_cdecl_hook\
7248 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7249 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7250
7251 # Transform an extracted symbol line into symbol name and symbol address
7252 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
7253 $lt_c_name_hook\
7254 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7255 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7256
7257 # Transform an extracted symbol line into symbol name with lib prefix and
7258 # symbol address.
7259 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
7260 $lt_c_name_lib_hook\
7261 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7262 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7263 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7264
7265 # Handle CRLF in mingw tool chain
7266 opt_cr=
7267 case $build_os in
7268 mingw*)
7269 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7270 ;;
7271 esac
7272
7273 # Try without a prefix underscore, then with it.
7274 for ac_symprfx in "" "_"; do
7275
7276 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7277 symxfrm="\\1 $ac_symprfx\\2 \\2"
7278
7279 # Write the raw and C identifiers.
7280 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7281 # Fake it for dumpbin and say T for any non-static function,
7282 # D for any global variable and I for any imported variable.
7283 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
7284 # which start with @ or ?.
7285 lt_cv_sys_global_symbol_pipe="$AWK '"\
7286 " {last_section=section; section=\$ 3};"\
7287 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7288 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7289 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7290 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7291 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7292 " \$ 0!~/External *\|/{next};"\
7293 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7294 " {if(hide[section]) next};"\
7295 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7296 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7297 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7298 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7299 " ' prfx=^$ac_symprfx"
7300 else
7301 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7302 fi
7303 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
7304
7305 # Check to see that the pipe works correctly.
7306 pipe_works=no
7307
7308 rm -f conftest*
7309 cat > conftest.$ac_ext <<_LT_EOF
7310 #ifdef __cplusplus
7311 extern "C" {
7312 #endif
7313 char nm_test_var;
7314 void nm_test_func(void);
7315 void nm_test_func(void){}
7316 #ifdef __cplusplus
7317 }
7318 #endif
7319 int main(){nm_test_var='a';nm_test_func();return(0);}
7320 _LT_EOF
7321
7322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323 (eval $ac_compile) 2>&5
7324 ac_status=$?
7325 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326 test $ac_status = 0; }; then
7327 # Now try to grab the symbols.
7328 nlist=conftest.nm
7329 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7330 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7331 ac_status=$?
7332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7333 test $ac_status = 0; } && test -s "$nlist"; then
7334 # Try sorting and uniquifying the output.
7335 if sort "$nlist" | uniq > "$nlist"T; then
7336 mv -f "$nlist"T "$nlist"
7337 else
7338 rm -f "$nlist"T
7339 fi
7340
7341 # Make sure that we snagged all the symbols we need.
7342 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7343 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7344 cat <<_LT_EOF > conftest.$ac_ext
7345 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7346 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7347 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7348 relocations are performed -- see ld's documentation on pseudo-relocs. */
7349 # define LT_DLSYM_CONST
7350 #elif defined __osf__
7351 /* This system does not cope well with relocations in const data. */
7352 # define LT_DLSYM_CONST
7353 #else
7354 # define LT_DLSYM_CONST const
7355 #endif
7356
7357 #ifdef __cplusplus
7358 extern "C" {
7359 #endif
7360
7361 _LT_EOF
7362 # Now generate the symbol file.
7363 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7364
7365 cat <<_LT_EOF >> conftest.$ac_ext
7366
7367 /* The mapping between symbol names and symbols. */
7368 LT_DLSYM_CONST struct {
7369 const char *name;
7370 void *address;
7371 }
7372 lt__PROGRAM__LTX_preloaded_symbols[] =
7373 {
7374 { "@PROGRAM@", (void *) 0 },
7375 _LT_EOF
7376 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7377 cat <<\_LT_EOF >> conftest.$ac_ext
7378 {0, (void *) 0}
7379 };
7380
7381 /* This works around a problem in FreeBSD linker */
7382 #ifdef FREEBSD_WORKAROUND
7383 static const void *lt_preloaded_setup() {
7384 return lt__PROGRAM__LTX_preloaded_symbols;
7385 }
7386 #endif
7387
7388 #ifdef __cplusplus
7389 }
7390 #endif
7391 _LT_EOF
7392 # Now try linking the two files.
7393 mv conftest.$ac_objext conftstm.$ac_objext
7394 lt_globsym_save_LIBS=$LIBS
7395 lt_globsym_save_CFLAGS=$CFLAGS
7396 LIBS=conftstm.$ac_objext
7397 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7399 (eval $ac_link) 2>&5
7400 ac_status=$?
7401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7402 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7403 pipe_works=yes
7404 fi
7405 LIBS=$lt_globsym_save_LIBS
7406 CFLAGS=$lt_globsym_save_CFLAGS
7407 else
7408 echo "cannot find nm_test_func in $nlist" >&5
7409 fi
7410 else
7411 echo "cannot find nm_test_var in $nlist" >&5
7412 fi
7413 else
7414 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7415 fi
7416 else
7417 echo "$progname: failed program was:" >&5
7418 cat conftest.$ac_ext >&5
7419 fi
7420 rm -rf conftest* conftst*
7421
7422 # Do not use the global_symbol_pipe unless it works.
7423 if test yes = "$pipe_works"; then
7424 break
7425 else
7426 lt_cv_sys_global_symbol_pipe=
7427 fi
7428 done
7429
7430 fi
7431
7432 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7433 lt_cv_sys_global_symbol_to_cdecl=
7434 fi
7435 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7437 printf "%s\n" "failed" >&6; }
7438 else
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7440 printf "%s\n" "ok" >&6; }
7441 fi
7442
7443 # Response file support.
7444 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7445 nm_file_list_spec='@'
7446 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7447 nm_file_list_spec='@'
7448 fi
7449
7450
7451
7452
7453
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483
7484
7485
7486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7487 printf %s "checking for sysroot... " >&6; }
7488
7489 # Check whether --with-sysroot was given.
7490 if test ${with_sysroot+y}
7491 then :
7492 withval=$with_sysroot;
7493 else $as_nop
7494 with_sysroot=no
7495 fi
7496
7497
7498 lt_sysroot=
7499 case $with_sysroot in #(
7500 yes)
7501 if test yes = "$GCC"; then
7502 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7503 fi
7504 ;; #(
7505 /*)
7506 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
7507 ;; #(
7508 no|'')
7509 ;; #(
7510 *)
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7512 printf "%s\n" "$with_sysroot" >&6; }
7513 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7514 ;;
7515 esac
7516
7517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7518 printf "%s\n" "${lt_sysroot:-no}" >&6; }
7519
7520
7521
7522
7523
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7525 printf %s "checking for a working dd... " >&6; }
7526 if test ${ac_cv_path_lt_DD+y}
7527 then :
7528 printf %s "(cached) " >&6
7529 else $as_nop
7530 printf 0123456789abcdef0123456789abcdef >conftest.i
7531 cat conftest.i conftest.i >conftest2.i
7532 : ${lt_DD:=$DD}
7533 if test -z "$lt_DD"; then
7534 ac_path_lt_DD_found=false
7535 # Loop through the user's path and test for each of PROGNAME-LIST
7536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537 for as_dir in $PATH
7538 do
7539 IFS=$as_save_IFS
7540 case $as_dir in #(((
7541 '') as_dir=./ ;;
7542 */) ;;
7543 *) as_dir=$as_dir/ ;;
7544 esac
7545 for ac_prog in dd
7546 do
7547 for ac_exec_ext in '' $ac_executable_extensions; do
7548 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
7549 as_fn_executable_p "$ac_path_lt_DD" || continue
7550 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7551 cmp -s conftest.i conftest.out \
7552 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7553 fi
7554 $ac_path_lt_DD_found && break 3
7555 done
7556 done
7557 done
7558 IFS=$as_save_IFS
7559 if test -z "$ac_cv_path_lt_DD"; then
7560 :
7561 fi
7562 else
7563 ac_cv_path_lt_DD=$lt_DD
7564 fi
7565
7566 rm -f conftest.i conftest2.i conftest.out
7567 fi
7568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7569 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
7570
7571
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7573 printf %s "checking how to truncate binary pipes... " >&6; }
7574 if test ${lt_cv_truncate_bin+y}
7575 then :
7576 printf %s "(cached) " >&6
7577 else $as_nop
7578 printf 0123456789abcdef0123456789abcdef >conftest.i
7579 cat conftest.i conftest.i >conftest2.i
7580 lt_cv_truncate_bin=
7581 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7582 cmp -s conftest.i conftest.out \
7583 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7584 fi
7585 rm -f conftest.i conftest2.i conftest.out
7586 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7587 fi
7588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7589 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
7590
7591
7592
7593
7594
7595
7596
7597 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7598 func_cc_basename ()
7599 {
7600 for cc_temp in $*""; do
7601 case $cc_temp in
7602 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7603 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7604 \-*) ;;
7605 *) break;;
7606 esac
7607 done
7608 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7609 }
7610
7611 # Check whether --enable-libtool-lock was given.
7612 if test ${enable_libtool_lock+y}
7613 then :
7614 enableval=$enable_libtool_lock;
7615 fi
7616
7617 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7618
7619 # Some flags need to be propagated to the compiler or linker for good
7620 # libtool support.
7621 case $host in
7622 ia64-*-hpux*)
7623 # Find out what ABI is being produced by ac_compile, and set mode
7624 # options accordingly.
7625 echo 'int i;' > conftest.$ac_ext
7626 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7627 (eval $ac_compile) 2>&5
7628 ac_status=$?
7629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7630 test $ac_status = 0; }; then
7631 case `$FILECMD conftest.$ac_objext` in
7632 *ELF-32*)
7633 HPUX_IA64_MODE=32
7634 ;;
7635 *ELF-64*)
7636 HPUX_IA64_MODE=64
7637 ;;
7638 esac
7639 fi
7640 rm -rf conftest*
7641 ;;
7642 *-*-irix6*)
7643 # Find out what ABI is being produced by ac_compile, and set linker
7644 # options accordingly.
7645 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7646 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7647 (eval $ac_compile) 2>&5
7648 ac_status=$?
7649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7650 test $ac_status = 0; }; then
7651 if test yes = "$lt_cv_prog_gnu_ld"; then
7652 case `$FILECMD conftest.$ac_objext` in
7653 *32-bit*)
7654 LD="${LD-ld} -melf32bsmip"
7655 ;;
7656 *N32*)
7657 LD="${LD-ld} -melf32bmipn32"
7658 ;;
7659 *64-bit*)
7660 LD="${LD-ld} -melf64bmip"
7661 ;;
7662 esac
7663 else
7664 case `$FILECMD conftest.$ac_objext` in
7665 *32-bit*)
7666 LD="${LD-ld} -32"
7667 ;;
7668 *N32*)
7669 LD="${LD-ld} -n32"
7670 ;;
7671 *64-bit*)
7672 LD="${LD-ld} -64"
7673 ;;
7674 esac
7675 fi
7676 fi
7677 rm -rf conftest*
7678 ;;
7679
7680 mips64*-*linux*)
7681 # Find out what ABI is being produced by ac_compile, and set linker
7682 # options accordingly.
7683 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7684 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7685 (eval $ac_compile) 2>&5
7686 ac_status=$?
7687 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7688 test $ac_status = 0; }; then
7689 emul=elf
7690 case `$FILECMD conftest.$ac_objext` in
7691 *32-bit*)
7692 emul="${emul}32"
7693 ;;
7694 *64-bit*)
7695 emul="${emul}64"
7696 ;;
7697 esac
7698 case `$FILECMD conftest.$ac_objext` in
7699 *MSB*)
7700 emul="${emul}btsmip"
7701 ;;
7702 *LSB*)
7703 emul="${emul}ltsmip"
7704 ;;
7705 esac
7706 case `$FILECMD conftest.$ac_objext` in
7707 *N32*)
7708 emul="${emul}n32"
7709 ;;
7710 esac
7711 LD="${LD-ld} -m $emul"
7712 fi
7713 rm -rf conftest*
7714 ;;
7715
7716 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7717 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7718 # Find out what ABI is being produced by ac_compile, and set linker
7719 # options accordingly. Note that the listed cases only cover the
7720 # situations where additional linker options are needed (such as when
7721 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7722 # vice versa); the common cases where no linker options are needed do
7723 # not appear in the list.
7724 echo 'int i;' > conftest.$ac_ext
7725 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7726 (eval $ac_compile) 2>&5
7727 ac_status=$?
7728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7729 test $ac_status = 0; }; then
7730 case `$FILECMD conftest.o` in
7731 *32-bit*)
7732 case $host in
7733 x86_64-*kfreebsd*-gnu)
7734 LD="${LD-ld} -m elf_i386_fbsd"
7735 ;;
7736 x86_64-*linux*)
7737 case `$FILECMD conftest.o` in
7738 *x86-64*)
7739 LD="${LD-ld} -m elf32_x86_64"
7740 ;;
7741 *)
7742 LD="${LD-ld} -m elf_i386"
7743 ;;
7744 esac
7745 ;;
7746 powerpc64le-*linux*)
7747 LD="${LD-ld} -m elf32lppclinux"
7748 ;;
7749 powerpc64-*linux*)
7750 LD="${LD-ld} -m elf32ppclinux"
7751 ;;
7752 s390x-*linux*)
7753 LD="${LD-ld} -m elf_s390"
7754 ;;
7755 sparc64-*linux*)
7756 LD="${LD-ld} -m elf32_sparc"
7757 ;;
7758 esac
7759 ;;
7760 *64-bit*)
7761 case $host in
7762 x86_64-*kfreebsd*-gnu)
7763 LD="${LD-ld} -m elf_x86_64_fbsd"
7764 ;;
7765 x86_64-*linux*)
7766 LD="${LD-ld} -m elf_x86_64"
7767 ;;
7768 powerpcle-*linux*)
7769 LD="${LD-ld} -m elf64lppc"
7770 ;;
7771 powerpc-*linux*)
7772 LD="${LD-ld} -m elf64ppc"
7773 ;;
7774 s390*-*linux*|s390*-*tpf*)
7775 LD="${LD-ld} -m elf64_s390"
7776 ;;
7777 sparc*-*linux*)
7778 LD="${LD-ld} -m elf64_sparc"
7779 ;;
7780 esac
7781 ;;
7782 esac
7783 fi
7784 rm -rf conftest*
7785 ;;
7786
7787 *-*-sco3.2v5*)
7788 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7789 SAVE_CFLAGS=$CFLAGS
7790 CFLAGS="$CFLAGS -belf"
7791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7792 printf %s "checking whether the C compiler needs -belf... " >&6; }
7793 if test ${lt_cv_cc_needs_belf+y}
7794 then :
7795 printf %s "(cached) " >&6
7796 else $as_nop
7797 ac_ext=c
7798 ac_cpp='$CPP $CPPFLAGS'
7799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7802
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805
7806 int
7807 main (void)
7808 {
7809
7810 ;
7811 return 0;
7812 }
7813 _ACEOF
7814 if ac_fn_c_try_link "$LINENO"
7815 then :
7816 lt_cv_cc_needs_belf=yes
7817 else $as_nop
7818 lt_cv_cc_needs_belf=no
7819 fi
7820 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7821 conftest$ac_exeext conftest.$ac_ext
7822 ac_ext=c
7823 ac_cpp='$CPP $CPPFLAGS'
7824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7827
7828 fi
7829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7830 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
7831 if test yes != "$lt_cv_cc_needs_belf"; then
7832 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7833 CFLAGS=$SAVE_CFLAGS
7834 fi
7835 ;;
7836 *-*solaris*)
7837 # Find out what ABI is being produced by ac_compile, and set linker
7838 # options accordingly.
7839 echo 'int i;' > conftest.$ac_ext
7840 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7841 (eval $ac_compile) 2>&5
7842 ac_status=$?
7843 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7844 test $ac_status = 0; }; then
7845 case `$FILECMD conftest.o` in
7846 *64-bit*)
7847 case $lt_cv_prog_gnu_ld in
7848 yes*)
7849 case $host in
7850 i?86-*-solaris*|x86_64-*-solaris*)
7851 LD="${LD-ld} -m elf_x86_64"
7852 ;;
7853 sparc*-*-solaris*)
7854 LD="${LD-ld} -m elf64_sparc"
7855 ;;
7856 esac
7857 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7858 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7859 LD=${LD-ld}_sol2
7860 fi
7861 ;;
7862 *)
7863 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7864 LD="${LD-ld} -64"
7865 fi
7866 ;;
7867 esac
7868 ;;
7869 esac
7870 fi
7871 rm -rf conftest*
7872 ;;
7873 esac
7874
7875 need_locks=$enable_libtool_lock
7876
7877 if test -n "$ac_tool_prefix"; then
7878 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7879 set dummy ${ac_tool_prefix}mt; ac_word=$2
7880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7881 printf %s "checking for $ac_word... " >&6; }
7882 if test ${ac_cv_prog_MANIFEST_TOOL+y}
7883 then :
7884 printf %s "(cached) " >&6
7885 else $as_nop
7886 if test -n "$MANIFEST_TOOL"; then
7887 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7888 else
7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7890 for as_dir in $PATH
7891 do
7892 IFS=$as_save_IFS
7893 case $as_dir in #(((
7894 '') as_dir=./ ;;
7895 */) ;;
7896 *) as_dir=$as_dir/ ;;
7897 esac
7898 for ac_exec_ext in '' $ac_executable_extensions; do
7899 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7900 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7901 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7902 break 2
7903 fi
7904 done
7905 done
7906 IFS=$as_save_IFS
7907
7908 fi
7909 fi
7910 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7911 if test -n "$MANIFEST_TOOL"; then
7912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7913 printf "%s\n" "$MANIFEST_TOOL" >&6; }
7914 else
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7916 printf "%s\n" "no" >&6; }
7917 fi
7918
7919
7920 fi
7921 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7922 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7923 # Extract the first word of "mt", so it can be a program name with args.
7924 set dummy mt; ac_word=$2
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7926 printf %s "checking for $ac_word... " >&6; }
7927 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
7928 then :
7929 printf %s "(cached) " >&6
7930 else $as_nop
7931 if test -n "$ac_ct_MANIFEST_TOOL"; then
7932 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7933 else
7934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 for as_dir in $PATH
7936 do
7937 IFS=$as_save_IFS
7938 case $as_dir in #(((
7939 '') as_dir=./ ;;
7940 */) ;;
7941 *) as_dir=$as_dir/ ;;
7942 esac
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7945 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7946 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7947 break 2
7948 fi
7949 done
7950 done
7951 IFS=$as_save_IFS
7952
7953 fi
7954 fi
7955 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7956 if test -n "$ac_ct_MANIFEST_TOOL"; then
7957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7958 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
7959 else
7960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7961 printf "%s\n" "no" >&6; }
7962 fi
7963
7964 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7965 MANIFEST_TOOL=":"
7966 else
7967 case $cross_compiling:$ac_tool_warned in
7968 yes:)
7969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7970 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7971 ac_tool_warned=yes ;;
7972 esac
7973 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7974 fi
7975 else
7976 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7977 fi
7978
7979 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7981 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7982 if test ${lt_cv_path_mainfest_tool+y}
7983 then :
7984 printf %s "(cached) " >&6
7985 else $as_nop
7986 lt_cv_path_mainfest_tool=no
7987 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7988 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7989 cat conftest.err >&5
7990 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7991 lt_cv_path_mainfest_tool=yes
7992 fi
7993 rm -f conftest*
7994 fi
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7996 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
7997 if test yes != "$lt_cv_path_mainfest_tool"; then
7998 MANIFEST_TOOL=:
7999 fi
8000
8001
8002
8003
8004
8005
8006 case $host_os in
8007 rhapsody* | darwin*)
8008 if test -n "$ac_tool_prefix"; then
8009 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8010 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8012 printf %s "checking for $ac_word... " >&6; }
8013 if test ${ac_cv_prog_DSYMUTIL+y}
8014 then :
8015 printf %s "(cached) " >&6
8016 else $as_nop
8017 if test -n "$DSYMUTIL"; then
8018 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8019 else
8020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 for as_dir in $PATH
8022 do
8023 IFS=$as_save_IFS
8024 case $as_dir in #(((
8025 '') as_dir=./ ;;
8026 */) ;;
8027 *) as_dir=$as_dir/ ;;
8028 esac
8029 for ac_exec_ext in '' $ac_executable_extensions; do
8030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8031 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8033 break 2
8034 fi
8035 done
8036 done
8037 IFS=$as_save_IFS
8038
8039 fi
8040 fi
8041 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8042 if test -n "$DSYMUTIL"; then
8043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8044 printf "%s\n" "$DSYMUTIL" >&6; }
8045 else
8046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8047 printf "%s\n" "no" >&6; }
8048 fi
8049
8050
8051 fi
8052 if test -z "$ac_cv_prog_DSYMUTIL"; then
8053 ac_ct_DSYMUTIL=$DSYMUTIL
8054 # Extract the first word of "dsymutil", so it can be a program name with args.
8055 set dummy dsymutil; ac_word=$2
8056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8057 printf %s "checking for $ac_word... " >&6; }
8058 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
8059 then :
8060 printf %s "(cached) " >&6
8061 else $as_nop
8062 if test -n "$ac_ct_DSYMUTIL"; then
8063 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8064 else
8065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8066 for as_dir in $PATH
8067 do
8068 IFS=$as_save_IFS
8069 case $as_dir in #(((
8070 '') as_dir=./ ;;
8071 */) ;;
8072 *) as_dir=$as_dir/ ;;
8073 esac
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080 done
8081 done
8082 IFS=$as_save_IFS
8083
8084 fi
8085 fi
8086 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8087 if test -n "$ac_ct_DSYMUTIL"; then
8088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8089 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
8090 else
8091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092 printf "%s\n" "no" >&6; }
8093 fi
8094
8095 if test "x$ac_ct_DSYMUTIL" = x; then
8096 DSYMUTIL=":"
8097 else
8098 case $cross_compiling:$ac_tool_warned in
8099 yes:)
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8102 ac_tool_warned=yes ;;
8103 esac
8104 DSYMUTIL=$ac_ct_DSYMUTIL
8105 fi
8106 else
8107 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8108 fi
8109
8110 if test -n "$ac_tool_prefix"; then
8111 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8112 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8114 printf %s "checking for $ac_word... " >&6; }
8115 if test ${ac_cv_prog_NMEDIT+y}
8116 then :
8117 printf %s "(cached) " >&6
8118 else $as_nop
8119 if test -n "$NMEDIT"; then
8120 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8121 else
8122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8123 for as_dir in $PATH
8124 do
8125 IFS=$as_save_IFS
8126 case $as_dir in #(((
8127 '') as_dir=./ ;;
8128 */) ;;
8129 *) as_dir=$as_dir/ ;;
8130 esac
8131 for ac_exec_ext in '' $ac_executable_extensions; do
8132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8133 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8135 break 2
8136 fi
8137 done
8138 done
8139 IFS=$as_save_IFS
8140
8141 fi
8142 fi
8143 NMEDIT=$ac_cv_prog_NMEDIT
8144 if test -n "$NMEDIT"; then
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8146 printf "%s\n" "$NMEDIT" >&6; }
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152
8153 fi
8154 if test -z "$ac_cv_prog_NMEDIT"; then
8155 ac_ct_NMEDIT=$NMEDIT
8156 # Extract the first word of "nmedit", so it can be a program name with args.
8157 set dummy nmedit; ac_word=$2
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 printf %s "checking for $ac_word... " >&6; }
8160 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else $as_nop
8164 if test -n "$ac_ct_NMEDIT"; then
8165 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 case $as_dir in #(((
8172 '') as_dir=./ ;;
8173 */) ;;
8174 *) as_dir=$as_dir/ ;;
8175 esac
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi
8187 fi
8188 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8189 if test -n "$ac_ct_NMEDIT"; then
8190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8191 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
8192 else
8193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 printf "%s\n" "no" >&6; }
8195 fi
8196
8197 if test "x$ac_ct_NMEDIT" = x; then
8198 NMEDIT=":"
8199 else
8200 case $cross_compiling:$ac_tool_warned in
8201 yes:)
8202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8204 ac_tool_warned=yes ;;
8205 esac
8206 NMEDIT=$ac_ct_NMEDIT
8207 fi
8208 else
8209 NMEDIT="$ac_cv_prog_NMEDIT"
8210 fi
8211
8212 if test -n "$ac_tool_prefix"; then
8213 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8214 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8216 printf %s "checking for $ac_word... " >&6; }
8217 if test ${ac_cv_prog_LIPO+y}
8218 then :
8219 printf %s "(cached) " >&6
8220 else $as_nop
8221 if test -n "$LIPO"; then
8222 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8223 else
8224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 for as_dir in $PATH
8226 do
8227 IFS=$as_save_IFS
8228 case $as_dir in #(((
8229 '') as_dir=./ ;;
8230 */) ;;
8231 *) as_dir=$as_dir/ ;;
8232 esac
8233 for ac_exec_ext in '' $ac_executable_extensions; do
8234 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8235 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8236 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8237 break 2
8238 fi
8239 done
8240 done
8241 IFS=$as_save_IFS
8242
8243 fi
8244 fi
8245 LIPO=$ac_cv_prog_LIPO
8246 if test -n "$LIPO"; then
8247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8248 printf "%s\n" "$LIPO" >&6; }
8249 else
8250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8251 printf "%s\n" "no" >&6; }
8252 fi
8253
8254
8255 fi
8256 if test -z "$ac_cv_prog_LIPO"; then
8257 ac_ct_LIPO=$LIPO
8258 # Extract the first word of "lipo", so it can be a program name with args.
8259 set dummy lipo; ac_word=$2
8260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8261 printf %s "checking for $ac_word... " >&6; }
8262 if test ${ac_cv_prog_ac_ct_LIPO+y}
8263 then :
8264 printf %s "(cached) " >&6
8265 else $as_nop
8266 if test -n "$ac_ct_LIPO"; then
8267 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8268 else
8269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 for as_dir in $PATH
8271 do
8272 IFS=$as_save_IFS
8273 case $as_dir in #(((
8274 '') as_dir=./ ;;
8275 */) ;;
8276 *) as_dir=$as_dir/ ;;
8277 esac
8278 for ac_exec_ext in '' $ac_executable_extensions; do
8279 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8280 ac_cv_prog_ac_ct_LIPO="lipo"
8281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8282 break 2
8283 fi
8284 done
8285 done
8286 IFS=$as_save_IFS
8287
8288 fi
8289 fi
8290 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8291 if test -n "$ac_ct_LIPO"; then
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8293 printf "%s\n" "$ac_ct_LIPO" >&6; }
8294 else
8295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 printf "%s\n" "no" >&6; }
8297 fi
8298
8299 if test "x$ac_ct_LIPO" = x; then
8300 LIPO=":"
8301 else
8302 case $cross_compiling:$ac_tool_warned in
8303 yes:)
8304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8305 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8306 ac_tool_warned=yes ;;
8307 esac
8308 LIPO=$ac_ct_LIPO
8309 fi
8310 else
8311 LIPO="$ac_cv_prog_LIPO"
8312 fi
8313
8314 if test -n "$ac_tool_prefix"; then
8315 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8316 set dummy ${ac_tool_prefix}otool; ac_word=$2
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8318 printf %s "checking for $ac_word... " >&6; }
8319 if test ${ac_cv_prog_OTOOL+y}
8320 then :
8321 printf %s "(cached) " >&6
8322 else $as_nop
8323 if test -n "$OTOOL"; then
8324 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8325 else
8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8327 for as_dir in $PATH
8328 do
8329 IFS=$as_save_IFS
8330 case $as_dir in #(((
8331 '') as_dir=./ ;;
8332 */) ;;
8333 *) as_dir=$as_dir/ ;;
8334 esac
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8337 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8338 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8339 break 2
8340 fi
8341 done
8342 done
8343 IFS=$as_save_IFS
8344
8345 fi
8346 fi
8347 OTOOL=$ac_cv_prog_OTOOL
8348 if test -n "$OTOOL"; then
8349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8350 printf "%s\n" "$OTOOL" >&6; }
8351 else
8352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 printf "%s\n" "no" >&6; }
8354 fi
8355
8356
8357 fi
8358 if test -z "$ac_cv_prog_OTOOL"; then
8359 ac_ct_OTOOL=$OTOOL
8360 # Extract the first word of "otool", so it can be a program name with args.
8361 set dummy otool; ac_word=$2
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 printf %s "checking for $ac_word... " >&6; }
8364 if test ${ac_cv_prog_ac_ct_OTOOL+y}
8365 then :
8366 printf %s "(cached) " >&6
8367 else $as_nop
8368 if test -n "$ac_ct_OTOOL"; then
8369 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8370 else
8371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8372 for as_dir in $PATH
8373 do
8374 IFS=$as_save_IFS
8375 case $as_dir in #(((
8376 '') as_dir=./ ;;
8377 */) ;;
8378 *) as_dir=$as_dir/ ;;
8379 esac
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8382 ac_cv_prog_ac_ct_OTOOL="otool"
8383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8384 break 2
8385 fi
8386 done
8387 done
8388 IFS=$as_save_IFS
8389
8390 fi
8391 fi
8392 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8393 if test -n "$ac_ct_OTOOL"; then
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8395 printf "%s\n" "$ac_ct_OTOOL" >&6; }
8396 else
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8398 printf "%s\n" "no" >&6; }
8399 fi
8400
8401 if test "x$ac_ct_OTOOL" = x; then
8402 OTOOL=":"
8403 else
8404 case $cross_compiling:$ac_tool_warned in
8405 yes:)
8406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8407 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8408 ac_tool_warned=yes ;;
8409 esac
8410 OTOOL=$ac_ct_OTOOL
8411 fi
8412 else
8413 OTOOL="$ac_cv_prog_OTOOL"
8414 fi
8415
8416 if test -n "$ac_tool_prefix"; then
8417 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8418 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 printf %s "checking for $ac_word... " >&6; }
8421 if test ${ac_cv_prog_OTOOL64+y}
8422 then :
8423 printf %s "(cached) " >&6
8424 else $as_nop
8425 if test -n "$OTOOL64"; then
8426 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8427 else
8428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8429 for as_dir in $PATH
8430 do
8431 IFS=$as_save_IFS
8432 case $as_dir in #(((
8433 '') as_dir=./ ;;
8434 */) ;;
8435 *) as_dir=$as_dir/ ;;
8436 esac
8437 for ac_exec_ext in '' $ac_executable_extensions; do
8438 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8439 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8440 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8441 break 2
8442 fi
8443 done
8444 done
8445 IFS=$as_save_IFS
8446
8447 fi
8448 fi
8449 OTOOL64=$ac_cv_prog_OTOOL64
8450 if test -n "$OTOOL64"; then
8451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8452 printf "%s\n" "$OTOOL64" >&6; }
8453 else
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8455 printf "%s\n" "no" >&6; }
8456 fi
8457
8458
8459 fi
8460 if test -z "$ac_cv_prog_OTOOL64"; then
8461 ac_ct_OTOOL64=$OTOOL64
8462 # Extract the first word of "otool64", so it can be a program name with args.
8463 set dummy otool64; ac_word=$2
8464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8465 printf %s "checking for $ac_word... " >&6; }
8466 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
8467 then :
8468 printf %s "(cached) " >&6
8469 else $as_nop
8470 if test -n "$ac_ct_OTOOL64"; then
8471 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8472 else
8473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8474 for as_dir in $PATH
8475 do
8476 IFS=$as_save_IFS
8477 case $as_dir in #(((
8478 '') as_dir=./ ;;
8479 */) ;;
8480 *) as_dir=$as_dir/ ;;
8481 esac
8482 for ac_exec_ext in '' $ac_executable_extensions; do
8483 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8484 ac_cv_prog_ac_ct_OTOOL64="otool64"
8485 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8486 break 2
8487 fi
8488 done
8489 done
8490 IFS=$as_save_IFS
8491
8492 fi
8493 fi
8494 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8495 if test -n "$ac_ct_OTOOL64"; then
8496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8497 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
8498 else
8499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8500 printf "%s\n" "no" >&6; }
8501 fi
8502
8503 if test "x$ac_ct_OTOOL64" = x; then
8504 OTOOL64=":"
8505 else
8506 case $cross_compiling:$ac_tool_warned in
8507 yes:)
8508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8509 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8510 ac_tool_warned=yes ;;
8511 esac
8512 OTOOL64=$ac_ct_OTOOL64
8513 fi
8514 else
8515 OTOOL64="$ac_cv_prog_OTOOL64"
8516 fi
8517
8518
8519
8520
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8545 printf %s "checking for -single_module linker flag... " >&6; }
8546 if test ${lt_cv_apple_cc_single_mod+y}
8547 then :
8548 printf %s "(cached) " >&6
8549 else $as_nop
8550 lt_cv_apple_cc_single_mod=no
8551 if test -z "$LT_MULTI_MODULE"; then
8552 # By default we will add the -single_module flag. You can override
8553 # by either setting the environment variable LT_MULTI_MODULE
8554 # non-empty at configure time, or by adding -multi_module to the
8555 # link flags.
8556 rm -rf libconftest.dylib*
8557 echo "int foo(void){return 1;}" > conftest.c
8558 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8559 -dynamiclib -Wl,-single_module conftest.c" >&5
8560 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8561 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8562 _lt_result=$?
8563 # If there is a non-empty error log, and "single_module"
8564 # appears in it, assume the flag caused a linker warning
8565 if test -s conftest.err && $GREP single_module conftest.err; then
8566 cat conftest.err >&5
8567 # Otherwise, if the output was created with a 0 exit code from
8568 # the compiler, it worked.
8569 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8570 lt_cv_apple_cc_single_mod=yes
8571 else
8572 cat conftest.err >&5
8573 fi
8574 rm -rf libconftest.dylib*
8575 rm -f conftest.*
8576 fi
8577 fi
8578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8579 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
8580
8581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8582 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
8583 if test ${lt_cv_ld_exported_symbols_list+y}
8584 then :
8585 printf %s "(cached) " >&6
8586 else $as_nop
8587 lt_cv_ld_exported_symbols_list=no
8588 save_LDFLAGS=$LDFLAGS
8589 echo "_main" > conftest.sym
8590 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8592 /* end confdefs.h. */
8593
8594 int
8595 main (void)
8596 {
8597
8598 ;
8599 return 0;
8600 }
8601 _ACEOF
8602 if ac_fn_c_try_link "$LINENO"
8603 then :
8604 lt_cv_ld_exported_symbols_list=yes
8605 else $as_nop
8606 lt_cv_ld_exported_symbols_list=no
8607 fi
8608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8609 conftest$ac_exeext conftest.$ac_ext
8610 LDFLAGS=$save_LDFLAGS
8611
8612 fi
8613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8614 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
8615
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8617 printf %s "checking for -force_load linker flag... " >&6; }
8618 if test ${lt_cv_ld_force_load+y}
8619 then :
8620 printf %s "(cached) " >&6
8621 else $as_nop
8622 lt_cv_ld_force_load=no
8623 cat > conftest.c << _LT_EOF
8624 int forced_loaded() { return 2;}
8625 _LT_EOF
8626 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8627 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8628 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
8629 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
8630 echo "$RANLIB libconftest.a" >&5
8631 $RANLIB libconftest.a 2>&5
8632 cat > conftest.c << _LT_EOF
8633 int main() { return 0;}
8634 _LT_EOF
8635 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8636 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8637 _lt_result=$?
8638 if test -s conftest.err && $GREP force_load conftest.err; then
8639 cat conftest.err >&5
8640 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8641 lt_cv_ld_force_load=yes
8642 else
8643 cat conftest.err >&5
8644 fi
8645 rm -f conftest.err libconftest.a conftest conftest.c
8646 rm -rf conftest.dSYM
8647
8648 fi
8649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8650 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
8651 case $host_os in
8652 rhapsody* | darwin1.[012])
8653 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8654 darwin1.*)
8655 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8656 darwin*)
8657 case $MACOSX_DEPLOYMENT_TARGET,$host in
8658 10.[012],*|,*powerpc*-darwin[5-8]*)
8659 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8660 *)
8661 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8662 esac
8663 ;;
8664 esac
8665 if test yes = "$lt_cv_apple_cc_single_mod"; then
8666 _lt_dar_single_mod='$single_module'
8667 fi
8668 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8669 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8670 else
8671 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8672 fi
8673 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8674 _lt_dsymutil='~$DSYMUTIL $lib || :'
8675 else
8676 _lt_dsymutil=
8677 fi
8678 ;;
8679 esac
8680
8681 # func_munge_path_list VARIABLE PATH
8682 # -----------------------------------
8683 # VARIABLE is name of variable containing _space_ separated list of
8684 # directories to be munged by the contents of PATH, which is string
8685 # having a format:
8686 # "DIR[:DIR]:"
8687 # string "DIR[ DIR]" will be prepended to VARIABLE
8688 # ":DIR[:DIR]"
8689 # string "DIR[ DIR]" will be appended to VARIABLE
8690 # "DIRP[:DIRP]::[DIRA:]DIRA"
8691 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8692 # "DIRA[ DIRA]" will be appended to VARIABLE
8693 # "DIR[:DIR]"
8694 # VARIABLE will be replaced by "DIR[ DIR]"
8695 func_munge_path_list ()
8696 {
8697 case x$2 in
8698 x)
8699 ;;
8700 *:)
8701 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8702 ;;
8703 x:*)
8704 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8705 ;;
8706 *::*)
8707 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8708 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8709 ;;
8710 *)
8711 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8712 ;;
8713 esac
8714 }
8715
8716 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8717 "
8718 if test "x$ac_cv_header_dlfcn_h" = xyes
8719 then :
8720 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
8721
8722 fi
8723
8724
8725
8726
8727
8728 # Set options
8729
8730
8731
8732 enable_dlopen=no
8733
8734
8735 enable_win32_dll=no
8736
8737
8738 # Check whether --enable-shared was given.
8739 if test ${enable_shared+y}
8740 then :
8741 enableval=$enable_shared; p=${PACKAGE-default}
8742 case $enableval in
8743 yes) enable_shared=yes ;;
8744 no) enable_shared=no ;;
8745 *)
8746 enable_shared=no
8747 # Look at the argument we got. We use all the common list separators.
8748 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8749 for pkg in $enableval; do
8750 IFS=$lt_save_ifs
8751 if test "X$pkg" = "X$p"; then
8752 enable_shared=yes
8753 fi
8754 done
8755 IFS=$lt_save_ifs
8756 ;;
8757 esac
8758 else $as_nop
8759 enable_shared=yes
8760 fi
8761
8762
8763
8764
8765
8766
8767
8768
8769
8770 # Check whether --enable-static was given.
8771 if test ${enable_static+y}
8772 then :
8773 enableval=$enable_static; p=${PACKAGE-default}
8774 case $enableval in
8775 yes) enable_static=yes ;;
8776 no) enable_static=no ;;
8777 *)
8778 enable_static=no
8779 # Look at the argument we got. We use all the common list separators.
8780 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8781 for pkg in $enableval; do
8782 IFS=$lt_save_ifs
8783 if test "X$pkg" = "X$p"; then
8784 enable_static=yes
8785 fi
8786 done
8787 IFS=$lt_save_ifs
8788 ;;
8789 esac
8790 else $as_nop
8791 enable_static=yes
8792 fi
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802
8803 # Check whether --with-pic was given.
8804 if test ${with_pic+y}
8805 then :
8806 withval=$with_pic; lt_p=${PACKAGE-default}
8807 case $withval in
8808 yes|no) pic_mode=$withval ;;
8809 *)
8810 pic_mode=default
8811 # Look at the argument we got. We use all the common list separators.
8812 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8813 for lt_pkg in $withval; do
8814 IFS=$lt_save_ifs
8815 if test "X$lt_pkg" = "X$lt_p"; then
8816 pic_mode=yes
8817 fi
8818 done
8819 IFS=$lt_save_ifs
8820 ;;
8821 esac
8822 else $as_nop
8823 pic_mode=default
8824 fi
8825
8826
8827
8828
8829
8830
8831
8832
8833 # Check whether --enable-fast-install was given.
8834 if test ${enable_fast_install+y}
8835 then :
8836 enableval=$enable_fast_install; p=${PACKAGE-default}
8837 case $enableval in
8838 yes) enable_fast_install=yes ;;
8839 no) enable_fast_install=no ;;
8840 *)
8841 enable_fast_install=no
8842 # Look at the argument we got. We use all the common list separators.
8843 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8844 for pkg in $enableval; do
8845 IFS=$lt_save_ifs
8846 if test "X$pkg" = "X$p"; then
8847 enable_fast_install=yes
8848 fi
8849 done
8850 IFS=$lt_save_ifs
8851 ;;
8852 esac
8853 else $as_nop
8854 enable_fast_install=yes
8855 fi
8856
8857
8858
8859
8860
8861
8862
8863
8864 shared_archive_member_spec=
8865 case $host,$enable_shared in
8866 power*-*-aix[5-9]*,yes)
8867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
8868 printf %s "checking which variant of shared library versioning to provide... " >&6; }
8869
8870 # Check whether --with-aix-soname was given.
8871 if test ${with_aix_soname+y}
8872 then :
8873 withval=$with_aix_soname; case $withval in
8874 aix|svr4|both)
8875 ;;
8876 *)
8877 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
8878 ;;
8879 esac
8880 lt_cv_with_aix_soname=$with_aix_soname
8881 else $as_nop
8882 if test ${lt_cv_with_aix_soname+y}
8883 then :
8884 printf %s "(cached) " >&6
8885 else $as_nop
8886 lt_cv_with_aix_soname=aix
8887 fi
8888
8889 with_aix_soname=$lt_cv_with_aix_soname
8890 fi
8891
8892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
8893 printf "%s\n" "$with_aix_soname" >&6; }
8894 if test aix != "$with_aix_soname"; then
8895 # For the AIX way of multilib, we name the shared archive member
8896 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
8897 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
8898 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
8899 # the AIX toolchain works better with OBJECT_MODE set (default 32).
8900 if test 64 = "${OBJECT_MODE-32}"; then
8901 shared_archive_member_spec=shr_64
8902 else
8903 shared_archive_member_spec=shr
8904 fi
8905 fi
8906 ;;
8907 *)
8908 with_aix_soname=aix
8909 ;;
8910 esac
8911
8912
8913
8914
8915
8916
8917
8918
8919
8920
8921 # This can be used to rebuild libtool when needed
8922 LIBTOOL_DEPS=$ltmain
8923
8924 # Always use our own libtool.
8925 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8926
8927
8928
8929
8930
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956 test -z "$LN_S" && LN_S="ln -s"
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971 if test -n "${ZSH_VERSION+set}"; then
8972 setopt NO_GLOB_SUBST
8973 fi
8974
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8976 printf %s "checking for objdir... " >&6; }
8977 if test ${lt_cv_objdir+y}
8978 then :
8979 printf %s "(cached) " >&6
8980 else $as_nop
8981 rm -f .libs 2>/dev/null
8982 mkdir .libs 2>/dev/null
8983 if test -d .libs; then
8984 lt_cv_objdir=.libs
8985 else
8986 # MS-DOS does not allow filenames that begin with a dot.
8987 lt_cv_objdir=_libs
8988 fi
8989 rmdir .libs 2>/dev/null
8990 fi
8991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8992 printf "%s\n" "$lt_cv_objdir" >&6; }
8993 objdir=$lt_cv_objdir
8994
8995
8996
8997
8998
8999 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
9000
9001
9002
9003
9004 case $host_os in
9005 aix3*)
9006 # AIX sometimes has problems with the GCC collect2 program. For some
9007 # reason, if we set the COLLECT_NAMES environment variable, the problems
9008 # vanish in a puff of smoke.
9009 if test set != "${COLLECT_NAMES+set}"; then
9010 COLLECT_NAMES=
9011 export COLLECT_NAMES
9012 fi
9013 ;;
9014 esac
9015
9016 # Global variables:
9017 ofile=libtool
9018 can_build_shared=yes
9019
9020 # All known linkers require a '.a' archive for static linking (except MSVC and
9021 # ICC, which need '.lib').
9022 libext=a
9023
9024 with_gnu_ld=$lt_cv_prog_gnu_ld
9025
9026 old_CC=$CC
9027 old_CFLAGS=$CFLAGS
9028
9029 # Set sane defaults for various variables
9030 test -z "$CC" && CC=cc
9031 test -z "$LTCC" && LTCC=$CC
9032 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9033 test -z "$LD" && LD=ld
9034 test -z "$ac_objext" && ac_objext=o
9035
9036 func_cc_basename $compiler
9037 cc_basename=$func_cc_basename_result
9038
9039
9040 # Only perform the check for file, if the check method requires it
9041 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9042 case $deplibs_check_method in
9043 file_magic*)
9044 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9046 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
9047 if test ${lt_cv_path_MAGIC_CMD+y}
9048 then :
9049 printf %s "(cached) " >&6
9050 else $as_nop
9051 case $MAGIC_CMD in
9052 [\\/*] | ?:[\\/]*)
9053 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9054 ;;
9055 *)
9056 lt_save_MAGIC_CMD=$MAGIC_CMD
9057 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9059 for ac_dir in $ac_dummy; do
9060 IFS=$lt_save_ifs
9061 test -z "$ac_dir" && ac_dir=.
9062 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9063 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9064 if test -n "$file_magic_test_file"; then
9065 case $deplibs_check_method in
9066 "file_magic "*)
9067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9068 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9070 $EGREP "$file_magic_regex" > /dev/null; then
9071 :
9072 else
9073 cat <<_LT_EOF 1>&2
9074
9075 *** Warning: the command libtool uses to detect shared libraries,
9076 *** $file_magic_cmd, produces output that libtool cannot recognize.
9077 *** The result is that libtool may fail to recognize shared libraries
9078 *** as such. This will affect the creation of libtool libraries that
9079 *** depend on shared libraries, but programs linked with such libtool
9080 *** libraries will work regardless of this problem. Nevertheless, you
9081 *** may want to report the problem to your system manager and/or to
9082 *** bug-libtool@gnu.org
9083
9084 _LT_EOF
9085 fi ;;
9086 esac
9087 fi
9088 break
9089 fi
9090 done
9091 IFS=$lt_save_ifs
9092 MAGIC_CMD=$lt_save_MAGIC_CMD
9093 ;;
9094 esac
9095 fi
9096
9097 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9098 if test -n "$MAGIC_CMD"; then
9099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9100 printf "%s\n" "$MAGIC_CMD" >&6; }
9101 else
9102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9103 printf "%s\n" "no" >&6; }
9104 fi
9105
9106
9107
9108
9109
9110 if test -z "$lt_cv_path_MAGIC_CMD"; then
9111 if test -n "$ac_tool_prefix"; then
9112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9113 printf %s "checking for file... " >&6; }
9114 if test ${lt_cv_path_MAGIC_CMD+y}
9115 then :
9116 printf %s "(cached) " >&6
9117 else $as_nop
9118 case $MAGIC_CMD in
9119 [\\/*] | ?:[\\/]*)
9120 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9121 ;;
9122 *)
9123 lt_save_MAGIC_CMD=$MAGIC_CMD
9124 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9125 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9126 for ac_dir in $ac_dummy; do
9127 IFS=$lt_save_ifs
9128 test -z "$ac_dir" && ac_dir=.
9129 if test -f "$ac_dir/file"; then
9130 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9131 if test -n "$file_magic_test_file"; then
9132 case $deplibs_check_method in
9133 "file_magic "*)
9134 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9135 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9136 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9137 $EGREP "$file_magic_regex" > /dev/null; then
9138 :
9139 else
9140 cat <<_LT_EOF 1>&2
9141
9142 *** Warning: the command libtool uses to detect shared libraries,
9143 *** $file_magic_cmd, produces output that libtool cannot recognize.
9144 *** The result is that libtool may fail to recognize shared libraries
9145 *** as such. This will affect the creation of libtool libraries that
9146 *** depend on shared libraries, but programs linked with such libtool
9147 *** libraries will work regardless of this problem. Nevertheless, you
9148 *** may want to report the problem to your system manager and/or to
9149 *** bug-libtool@gnu.org
9150
9151 _LT_EOF
9152 fi ;;
9153 esac
9154 fi
9155 break
9156 fi
9157 done
9158 IFS=$lt_save_ifs
9159 MAGIC_CMD=$lt_save_MAGIC_CMD
9160 ;;
9161 esac
9162 fi
9163
9164 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9165 if test -n "$MAGIC_CMD"; then
9166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9167 printf "%s\n" "$MAGIC_CMD" >&6; }
9168 else
9169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9170 printf "%s\n" "no" >&6; }
9171 fi
9172
9173
9174 else
9175 MAGIC_CMD=:
9176 fi
9177 fi
9178
9179 fi
9180 ;;
9181 esac
9182
9183 # Use C for the default configuration in the libtool script
9184
9185 lt_save_CC=$CC
9186 ac_ext=c
9187 ac_cpp='$CPP $CPPFLAGS'
9188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9191
9192
9193 # Source file extension for C test sources.
9194 ac_ext=c
9195
9196 # Object file extension for compiled C test sources.
9197 objext=o
9198 objext=$objext
9199
9200 # Code to be used in simple compile tests
9201 lt_simple_compile_test_code="int some_variable = 0;"
9202
9203 # Code to be used in simple link tests
9204 lt_simple_link_test_code='int main(){return(0);}'
9205
9206
9207
9208
9209
9210
9211
9212 # If no C compiler was specified, use CC.
9213 LTCC=${LTCC-"$CC"}
9214
9215 # If no C compiler flags were specified, use CFLAGS.
9216 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9217
9218 # Allow CC to be a program name with arguments.
9219 compiler=$CC
9220
9221 # Save the default compiler, since it gets overwritten when the other
9222 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9223 compiler_DEFAULT=$CC
9224
9225 # save warnings/boilerplate of simple test code
9226 ac_outfile=conftest.$ac_objext
9227 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9228 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9229 _lt_compiler_boilerplate=`cat conftest.err`
9230 $RM conftest*
9231
9232 ac_outfile=conftest.$ac_objext
9233 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9234 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9235 _lt_linker_boilerplate=`cat conftest.err`
9236 $RM -r conftest*
9237
9238
9239 if test -n "$compiler"; then
9240
9241 lt_prog_compiler_no_builtin_flag=
9242
9243 if test yes = "$GCC"; then
9244 case $cc_basename in
9245 nvcc*)
9246 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9247 *)
9248 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9249 esac
9250
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9252 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9253 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
9254 then :
9255 printf %s "(cached) " >&6
9256 else $as_nop
9257 lt_cv_prog_compiler_rtti_exceptions=no
9258 ac_outfile=conftest.$ac_objext
9259 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9260 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9261 # Insert the option either (1) after the last *FLAGS variable, or
9262 # (2) before a word containing "conftest.", or (3) at the end.
9263 # Note that $ac_compile itself does not contain backslashes and begins
9264 # with a dollar sign (not a hyphen), so the echo should work correctly.
9265 # The option is referenced via a variable to avoid confusing sed.
9266 lt_compile=`echo "$ac_compile" | $SED \
9267 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9268 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9269 -e 's:$: $lt_compiler_flag:'`
9270 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9271 (eval "$lt_compile" 2>conftest.err)
9272 ac_status=$?
9273 cat conftest.err >&5
9274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9275 if (exit $ac_status) && test -s "$ac_outfile"; then
9276 # The compiler can only warn and ignore the option if not recognized
9277 # So say no if there are warnings other than the usual output.
9278 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9279 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9280 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9281 lt_cv_prog_compiler_rtti_exceptions=yes
9282 fi
9283 fi
9284 $RM conftest*
9285
9286 fi
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9288 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9289
9290 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9291 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9292 else
9293 :
9294 fi
9295
9296 fi
9297
9298
9299
9300
9301
9302
9303 lt_prog_compiler_wl=
9304 lt_prog_compiler_pic=
9305 lt_prog_compiler_static=
9306
9307
9308 if test yes = "$GCC"; then
9309 lt_prog_compiler_wl='-Wl,'
9310 lt_prog_compiler_static='-static'
9311
9312 case $host_os in
9313 aix*)
9314 # All AIX code is PIC.
9315 if test ia64 = "$host_cpu"; then
9316 # AIX 5 now supports IA64 processor
9317 lt_prog_compiler_static='-Bstatic'
9318 fi
9319 lt_prog_compiler_pic='-fPIC'
9320 ;;
9321
9322 amigaos*)
9323 case $host_cpu in
9324 powerpc)
9325 # see comment about AmigaOS4 .so support
9326 lt_prog_compiler_pic='-fPIC'
9327 ;;
9328 m68k)
9329 # FIXME: we need at least 68020 code to build shared libraries, but
9330 # adding the '-m68020' flag to GCC prevents building anything better,
9331 # like '-m68040'.
9332 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9333 ;;
9334 esac
9335 ;;
9336
9337 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9338 # PIC is the default for these OSes.
9339 ;;
9340
9341 mingw* | cygwin* | pw32* | os2* | cegcc*)
9342 # This hack is so that the source file can tell whether it is being
9343 # built for inclusion in a dll (and should export symbols for example).
9344 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9345 # (--disable-auto-import) libraries
9346 lt_prog_compiler_pic='-DDLL_EXPORT'
9347 case $host_os in
9348 os2*)
9349 lt_prog_compiler_static='$wl-static'
9350 ;;
9351 esac
9352 ;;
9353
9354 darwin* | rhapsody*)
9355 # PIC is the default on this platform
9356 # Common symbols not allowed in MH_DYLIB files
9357 lt_prog_compiler_pic='-fno-common'
9358 ;;
9359
9360 haiku*)
9361 # PIC is the default for Haiku.
9362 # The "-static" flag exists, but is broken.
9363 lt_prog_compiler_static=
9364 ;;
9365
9366 hpux*)
9367 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9368 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9369 # sets the default TLS model and affects inlining.
9370 case $host_cpu in
9371 hppa*64*)
9372 # +Z the default
9373 ;;
9374 *)
9375 lt_prog_compiler_pic='-fPIC'
9376 ;;
9377 esac
9378 ;;
9379
9380 interix[3-9]*)
9381 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9382 # Instead, we relocate shared libraries at runtime.
9383 ;;
9384
9385 msdosdjgpp*)
9386 # Just because we use GCC doesn't mean we suddenly get shared libraries
9387 # on systems that don't support them.
9388 lt_prog_compiler_can_build_shared=no
9389 enable_shared=no
9390 ;;
9391
9392 *nto* | *qnx*)
9393 # QNX uses GNU C++, but need to define -shared option too, otherwise
9394 # it will coredump.
9395 lt_prog_compiler_pic='-fPIC -shared'
9396 ;;
9397
9398 sysv4*MP*)
9399 if test -d /usr/nec; then
9400 lt_prog_compiler_pic=-Kconform_pic
9401 fi
9402 ;;
9403
9404 *)
9405 lt_prog_compiler_pic='-fPIC'
9406 ;;
9407 esac
9408
9409 case $cc_basename in
9410 nvcc*) # Cuda Compiler Driver 2.2
9411 lt_prog_compiler_wl='-Xlinker '
9412 if test -n "$lt_prog_compiler_pic"; then
9413 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9414 fi
9415 ;;
9416 esac
9417 else
9418 # PORTME Check for flag to pass linker flags through the system compiler.
9419 case $host_os in
9420 aix*)
9421 lt_prog_compiler_wl='-Wl,'
9422 if test ia64 = "$host_cpu"; then
9423 # AIX 5 now supports IA64 processor
9424 lt_prog_compiler_static='-Bstatic'
9425 else
9426 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9427 fi
9428 ;;
9429
9430 darwin* | rhapsody*)
9431 # PIC is the default on this platform
9432 # Common symbols not allowed in MH_DYLIB files
9433 lt_prog_compiler_pic='-fno-common'
9434 case $cc_basename in
9435 nagfor*)
9436 # NAG Fortran compiler
9437 lt_prog_compiler_wl='-Wl,-Wl,,'
9438 lt_prog_compiler_pic='-PIC'
9439 lt_prog_compiler_static='-Bstatic'
9440 ;;
9441 esac
9442 ;;
9443
9444 mingw* | cygwin* | pw32* | os2* | cegcc*)
9445 # This hack is so that the source file can tell whether it is being
9446 # built for inclusion in a dll (and should export symbols for example).
9447 lt_prog_compiler_pic='-DDLL_EXPORT'
9448 case $host_os in
9449 os2*)
9450 lt_prog_compiler_static='$wl-static'
9451 ;;
9452 esac
9453 ;;
9454
9455 hpux9* | hpux10* | hpux11*)
9456 lt_prog_compiler_wl='-Wl,'
9457 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9458 # not for PA HP-UX.
9459 case $host_cpu in
9460 hppa*64*|ia64*)
9461 # +Z the default
9462 ;;
9463 *)
9464 lt_prog_compiler_pic='+Z'
9465 ;;
9466 esac
9467 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9468 lt_prog_compiler_static='$wl-a ${wl}archive'
9469 ;;
9470
9471 irix5* | irix6* | nonstopux*)
9472 lt_prog_compiler_wl='-Wl,'
9473 # PIC (with -KPIC) is the default.
9474 lt_prog_compiler_static='-non_shared'
9475 ;;
9476
9477 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9478 case $cc_basename in
9479 # old Intel for x86_64, which still supported -KPIC.
9480 ecc*)
9481 lt_prog_compiler_wl='-Wl,'
9482 lt_prog_compiler_pic='-KPIC'
9483 lt_prog_compiler_static='-static'
9484 ;;
9485 # icc used to be incompatible with GCC.
9486 # ICC 10 doesn't accept -KPIC any more.
9487 icc* | ifort*)
9488 lt_prog_compiler_wl='-Wl,'
9489 lt_prog_compiler_pic='-fPIC'
9490 lt_prog_compiler_static='-static'
9491 ;;
9492 # Lahey Fortran 8.1.
9493 lf95*)
9494 lt_prog_compiler_wl='-Wl,'
9495 lt_prog_compiler_pic='--shared'
9496 lt_prog_compiler_static='--static'
9497 ;;
9498 nagfor*)
9499 # NAG Fortran compiler
9500 lt_prog_compiler_wl='-Wl,-Wl,,'
9501 lt_prog_compiler_pic='-PIC'
9502 lt_prog_compiler_static='-Bstatic'
9503 ;;
9504 tcc*)
9505 # Fabrice Bellard et al's Tiny C Compiler
9506 lt_prog_compiler_wl='-Wl,'
9507 lt_prog_compiler_pic='-fPIC'
9508 lt_prog_compiler_static='-static'
9509 ;;
9510 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9511 # Portland Group compilers (*not* the Pentium gcc compiler,
9512 # which looks to be a dead project)
9513 lt_prog_compiler_wl='-Wl,'
9514 lt_prog_compiler_pic='-fpic'
9515 lt_prog_compiler_static='-Bstatic'
9516 ;;
9517 ccc*)
9518 lt_prog_compiler_wl='-Wl,'
9519 # All Alpha code is PIC.
9520 lt_prog_compiler_static='-non_shared'
9521 ;;
9522 xl* | bgxl* | bgf* | mpixl*)
9523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9524 lt_prog_compiler_wl='-Wl,'
9525 lt_prog_compiler_pic='-qpic'
9526 lt_prog_compiler_static='-qstaticlink'
9527 ;;
9528 *)
9529 case `$CC -V 2>&1 | $SED 5q` in
9530 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9532 lt_prog_compiler_pic='-KPIC'
9533 lt_prog_compiler_static='-Bstatic'
9534 lt_prog_compiler_wl=''
9535 ;;
9536 *Sun\ F* | *Sun*Fortran*)
9537 lt_prog_compiler_pic='-KPIC'
9538 lt_prog_compiler_static='-Bstatic'
9539 lt_prog_compiler_wl='-Qoption ld '
9540 ;;
9541 *Sun\ C*)
9542 # Sun C 5.9
9543 lt_prog_compiler_pic='-KPIC'
9544 lt_prog_compiler_static='-Bstatic'
9545 lt_prog_compiler_wl='-Wl,'
9546 ;;
9547 *Intel*\ [CF]*Compiler*)
9548 lt_prog_compiler_wl='-Wl,'
9549 lt_prog_compiler_pic='-fPIC'
9550 lt_prog_compiler_static='-static'
9551 ;;
9552 *Portland\ Group*)
9553 lt_prog_compiler_wl='-Wl,'
9554 lt_prog_compiler_pic='-fpic'
9555 lt_prog_compiler_static='-Bstatic'
9556 ;;
9557 esac
9558 ;;
9559 esac
9560 ;;
9561
9562 newsos6)
9563 lt_prog_compiler_pic='-KPIC'
9564 lt_prog_compiler_static='-Bstatic'
9565 ;;
9566
9567 *nto* | *qnx*)
9568 # QNX uses GNU C++, but need to define -shared option too, otherwise
9569 # it will coredump.
9570 lt_prog_compiler_pic='-fPIC -shared'
9571 ;;
9572
9573 osf3* | osf4* | osf5*)
9574 lt_prog_compiler_wl='-Wl,'
9575 # All OSF/1 code is PIC.
9576 lt_prog_compiler_static='-non_shared'
9577 ;;
9578
9579 rdos*)
9580 lt_prog_compiler_static='-non_shared'
9581 ;;
9582
9583 solaris*)
9584 lt_prog_compiler_pic='-KPIC'
9585 lt_prog_compiler_static='-Bstatic'
9586 case $cc_basename in
9587 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9588 lt_prog_compiler_wl='-Qoption ld ';;
9589 *)
9590 lt_prog_compiler_wl='-Wl,';;
9591 esac
9592 ;;
9593
9594 sunos4*)
9595 lt_prog_compiler_wl='-Qoption ld '
9596 lt_prog_compiler_pic='-PIC'
9597 lt_prog_compiler_static='-Bstatic'
9598 ;;
9599
9600 sysv4 | sysv4.2uw2* | sysv4.3*)
9601 lt_prog_compiler_wl='-Wl,'
9602 lt_prog_compiler_pic='-KPIC'
9603 lt_prog_compiler_static='-Bstatic'
9604 ;;
9605
9606 sysv4*MP*)
9607 if test -d /usr/nec; then
9608 lt_prog_compiler_pic='-Kconform_pic'
9609 lt_prog_compiler_static='-Bstatic'
9610 fi
9611 ;;
9612
9613 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9614 lt_prog_compiler_wl='-Wl,'
9615 lt_prog_compiler_pic='-KPIC'
9616 lt_prog_compiler_static='-Bstatic'
9617 ;;
9618
9619 unicos*)
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_can_build_shared=no
9622 ;;
9623
9624 uts4*)
9625 lt_prog_compiler_pic='-pic'
9626 lt_prog_compiler_static='-Bstatic'
9627 ;;
9628
9629 *)
9630 lt_prog_compiler_can_build_shared=no
9631 ;;
9632 esac
9633 fi
9634
9635 case $host_os in
9636 # For platforms that do not support PIC, -DPIC is meaningless:
9637 *djgpp*)
9638 lt_prog_compiler_pic=
9639 ;;
9640 *)
9641 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9642 ;;
9643 esac
9644
9645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9646 printf %s "checking for $compiler option to produce PIC... " >&6; }
9647 if test ${lt_cv_prog_compiler_pic+y}
9648 then :
9649 printf %s "(cached) " >&6
9650 else $as_nop
9651 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9652 fi
9653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9654 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
9655 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9656
9657 #
9658 # Check to make sure the PIC flag actually works.
9659 #
9660 if test -n "$lt_prog_compiler_pic"; then
9661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9662 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9663 if test ${lt_cv_prog_compiler_pic_works+y}
9664 then :
9665 printf %s "(cached) " >&6
9666 else $as_nop
9667 lt_cv_prog_compiler_pic_works=no
9668 ac_outfile=conftest.$ac_objext
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
9671 # Insert the option either (1) after the last *FLAGS variable, or
9672 # (2) before a word containing "conftest.", or (3) at the end.
9673 # Note that $ac_compile itself does not contain backslashes and begins
9674 # with a dollar sign (not a hyphen), so the echo should work correctly.
9675 # The option is referenced via a variable to avoid confusing sed.
9676 lt_compile=`echo "$ac_compile" | $SED \
9677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679 -e 's:$: $lt_compiler_flag:'`
9680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681 (eval "$lt_compile" 2>conftest.err)
9682 ac_status=$?
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 if (exit $ac_status) && test -s "$ac_outfile"; then
9686 # The compiler can only warn and ignore the option if not recognized
9687 # So say no if there are warnings other than the usual output.
9688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9691 lt_cv_prog_compiler_pic_works=yes
9692 fi
9693 fi
9694 $RM conftest*
9695
9696 fi
9697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9698 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
9699
9700 if test yes = "$lt_cv_prog_compiler_pic_works"; then
9701 case $lt_prog_compiler_pic in
9702 "" | " "*) ;;
9703 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9704 esac
9705 else
9706 lt_prog_compiler_pic=
9707 lt_prog_compiler_can_build_shared=no
9708 fi
9709
9710 fi
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722 #
9723 # Check to make sure the static flag actually works.
9724 #
9725 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9727 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9728 if test ${lt_cv_prog_compiler_static_works+y}
9729 then :
9730 printf %s "(cached) " >&6
9731 else $as_nop
9732 lt_cv_prog_compiler_static_works=no
9733 save_LDFLAGS=$LDFLAGS
9734 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9735 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9736 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9737 # The linker can only warn and ignore the option if not recognized
9738 # So say no if there are warnings
9739 if test -s conftest.err; then
9740 # Append any errors to the config.log.
9741 cat conftest.err 1>&5
9742 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9744 if diff conftest.exp conftest.er2 >/dev/null; then
9745 lt_cv_prog_compiler_static_works=yes
9746 fi
9747 else
9748 lt_cv_prog_compiler_static_works=yes
9749 fi
9750 fi
9751 $RM -r conftest*
9752 LDFLAGS=$save_LDFLAGS
9753
9754 fi
9755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9756 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
9757
9758 if test yes = "$lt_cv_prog_compiler_static_works"; then
9759 :
9760 else
9761 lt_prog_compiler_static=
9762 fi
9763
9764
9765
9766
9767
9768
9769
9770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9771 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9772 if test ${lt_cv_prog_compiler_c_o+y}
9773 then :
9774 printf %s "(cached) " >&6
9775 else $as_nop
9776 lt_cv_prog_compiler_c_o=no
9777 $RM -r conftest 2>/dev/null
9778 mkdir conftest
9779 cd conftest
9780 mkdir out
9781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782
9783 lt_compiler_flag="-o out/conftest2.$ac_objext"
9784 # Insert the option either (1) after the last *FLAGS variable, or
9785 # (2) before a word containing "conftest.", or (3) at the end.
9786 # Note that $ac_compile itself does not contain backslashes and begins
9787 # with a dollar sign (not a hyphen), so the echo should work correctly.
9788 lt_compile=`echo "$ac_compile" | $SED \
9789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9791 -e 's:$: $lt_compiler_flag:'`
9792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9793 (eval "$lt_compile" 2>out/conftest.err)
9794 ac_status=$?
9795 cat out/conftest.err >&5
9796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9797 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9798 then
9799 # The compiler can only warn and ignore the option if not recognized
9800 # So say no if there are warnings
9801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9804 lt_cv_prog_compiler_c_o=yes
9805 fi
9806 fi
9807 chmod u+w . 2>&5
9808 $RM conftest*
9809 # SGI C++ compiler will create directory out/ii_files/ for
9810 # template instantiation
9811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9812 $RM out/* && rmdir out
9813 cd ..
9814 $RM -r conftest
9815 $RM conftest*
9816
9817 fi
9818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9819 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9820
9821
9822
9823
9824
9825
9826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9827 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9828 if test ${lt_cv_prog_compiler_c_o+y}
9829 then :
9830 printf %s "(cached) " >&6
9831 else $as_nop
9832 lt_cv_prog_compiler_c_o=no
9833 $RM -r conftest 2>/dev/null
9834 mkdir conftest
9835 cd conftest
9836 mkdir out
9837 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9838
9839 lt_compiler_flag="-o out/conftest2.$ac_objext"
9840 # Insert the option either (1) after the last *FLAGS variable, or
9841 # (2) before a word containing "conftest.", or (3) at the end.
9842 # Note that $ac_compile itself does not contain backslashes and begins
9843 # with a dollar sign (not a hyphen), so the echo should work correctly.
9844 lt_compile=`echo "$ac_compile" | $SED \
9845 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9846 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9847 -e 's:$: $lt_compiler_flag:'`
9848 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9849 (eval "$lt_compile" 2>out/conftest.err)
9850 ac_status=$?
9851 cat out/conftest.err >&5
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9854 then
9855 # The compiler can only warn and ignore the option if not recognized
9856 # So say no if there are warnings
9857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9858 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9859 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9860 lt_cv_prog_compiler_c_o=yes
9861 fi
9862 fi
9863 chmod u+w . 2>&5
9864 $RM conftest*
9865 # SGI C++ compiler will create directory out/ii_files/ for
9866 # template instantiation
9867 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9868 $RM out/* && rmdir out
9869 cd ..
9870 $RM -r conftest
9871 $RM conftest*
9872
9873 fi
9874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9875 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
9876
9877
9878
9879
9880 hard_links=nottested
9881 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
9882 # do not overwrite the value of need_locks provided by the user
9883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9884 printf %s "checking if we can lock with hard links... " >&6; }
9885 hard_links=yes
9886 $RM conftest*
9887 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9888 touch conftest.a
9889 ln conftest.a conftest.b 2>&5 || hard_links=no
9890 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9892 printf "%s\n" "$hard_links" >&6; }
9893 if test no = "$hard_links"; then
9894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
9895 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
9896 need_locks=warn
9897 fi
9898 else
9899 need_locks=no
9900 fi
9901
9902
9903
9904
9905
9906
9907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9908 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9909
9910 runpath_var=
9911 allow_undefined_flag=
9912 always_export_symbols=no
9913 archive_cmds=
9914 archive_expsym_cmds=
9915 compiler_needs_object=no
9916 enable_shared_with_static_runtimes=no
9917 export_dynamic_flag_spec=
9918 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9919 hardcode_automatic=no
9920 hardcode_direct=no
9921 hardcode_direct_absolute=no
9922 hardcode_libdir_flag_spec=
9923 hardcode_libdir_separator=
9924 hardcode_minus_L=no
9925 hardcode_shlibpath_var=unsupported
9926 inherit_rpath=no
9927 link_all_deplibs=unknown
9928 module_cmds=
9929 module_expsym_cmds=
9930 old_archive_from_new_cmds=
9931 old_archive_from_expsyms_cmds=
9932 thread_safe_flag_spec=
9933 whole_archive_flag_spec=
9934 # include_expsyms should be a list of space-separated symbols to be *always*
9935 # included in the symbol list
9936 include_expsyms=
9937 # exclude_expsyms can be an extended regexp of symbols to exclude
9938 # it will be wrapped by ' (' and ')$', so one must not match beginning or
9939 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
9940 # as well as any symbol that contains 'd'.
9941 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9942 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9943 # platforms (ab)use it in PIC code, but their linkers get confused if
9944 # the symbol is explicitly referenced. Since portable code cannot
9945 # rely on this symbol name, it's probably fine to never include it in
9946 # preloaded symbol tables.
9947 # Exclude shared library initialization/finalization symbols.
9948 extract_expsyms_cmds=
9949
9950 case $host_os in
9951 cygwin* | mingw* | pw32* | cegcc*)
9952 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
9953 # When not using gcc, we currently assume that we are using
9954 # Microsoft Visual C++ or Intel C++ Compiler.
9955 if test yes != "$GCC"; then
9956 with_gnu_ld=no
9957 fi
9958 ;;
9959 interix*)
9960 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
9961 with_gnu_ld=yes
9962 ;;
9963 openbsd* | bitrig*)
9964 with_gnu_ld=no
9965 ;;
9966 esac
9967
9968 ld_shlibs=yes
9969
9970 # On some targets, GNU ld is compatible enough with the native linker
9971 # that we're better off using the native interface for both.
9972 lt_use_gnu_ld_interface=no
9973 if test yes = "$with_gnu_ld"; then
9974 case $host_os in
9975 aix*)
9976 # The AIX port of GNU ld has always aspired to compatibility
9977 # with the native linker. However, as the warning in the GNU ld
9978 # block says, versions before 2.19.5* couldn't really create working
9979 # shared libraries, regardless of the interface used.
9980 case `$LD -v 2>&1` in
9981 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9982 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9983 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9984 *)
9985 lt_use_gnu_ld_interface=yes
9986 ;;
9987 esac
9988 ;;
9989 *)
9990 lt_use_gnu_ld_interface=yes
9991 ;;
9992 esac
9993 fi
9994
9995 if test yes = "$lt_use_gnu_ld_interface"; then
9996 # If archive_cmds runs LD, not CC, wlarc should be empty
9997 wlarc='$wl'
9998
9999 # Set some defaults for GNU ld with shared library support. These
10000 # are reset later if shared libraries are not supported. Putting them
10001 # here allows them to be overridden if necessary.
10002 runpath_var=LD_RUN_PATH
10003 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10004 export_dynamic_flag_spec='$wl--export-dynamic'
10005 # ancient GNU ld didn't support --whole-archive et. al.
10006 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10007 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10008 else
10009 whole_archive_flag_spec=
10010 fi
10011 supports_anon_versioning=no
10012 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
10013 *GNU\ gold*) supports_anon_versioning=yes ;;
10014 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10015 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10016 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10017 *\ 2.11.*) ;; # other 2.11 versions
10018 *) supports_anon_versioning=yes ;;
10019 esac
10020
10021 # See if GNU ld supports shared libraries.
10022 case $host_os in
10023 aix[3-9]*)
10024 # On AIX/PPC, the GNU linker is very broken
10025 if test ia64 != "$host_cpu"; then
10026 ld_shlibs=no
10027 cat <<_LT_EOF 1>&2
10028
10029 *** Warning: the GNU linker, at least up to release 2.19, is reported
10030 *** to be unable to reliably create shared libraries on AIX.
10031 *** Therefore, libtool is disabling shared libraries support. If you
10032 *** really care for shared libraries, you may want to install binutils
10033 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10034 *** You will then need to restart the configuration process.
10035
10036 _LT_EOF
10037 fi
10038 ;;
10039
10040 amigaos*)
10041 case $host_cpu in
10042 powerpc)
10043 # see comment about AmigaOS4 .so support
10044 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10045 archive_expsym_cmds=''
10046 ;;
10047 m68k)
10048 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)'
10049 hardcode_libdir_flag_spec='-L$libdir'
10050 hardcode_minus_L=yes
10051 ;;
10052 esac
10053 ;;
10054
10055 beos*)
10056 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10057 allow_undefined_flag=unsupported
10058 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10059 # support --undefined. This deserves some investigation. FIXME
10060 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10061 else
10062 ld_shlibs=no
10063 fi
10064 ;;
10065
10066 cygwin* | mingw* | pw32* | cegcc*)
10067 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10068 # as there is no search path for DLLs.
10069 hardcode_libdir_flag_spec='-L$libdir'
10070 export_dynamic_flag_spec='$wl--export-all-symbols'
10071 allow_undefined_flag=unsupported
10072 always_export_symbols=no
10073 enable_shared_with_static_runtimes=yes
10074 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'
10075 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10076
10077 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10078 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10079 # If the export-symbols file already is a .def file, use it as
10080 # is; otherwise, prepend EXPORTS...
10081 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10082 cp $export_symbols $output_objdir/$soname.def;
10083 else
10084 echo EXPORTS > $output_objdir/$soname.def;
10085 cat $export_symbols >> $output_objdir/$soname.def;
10086 fi~
10087 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10088 else
10089 ld_shlibs=no
10090 fi
10091 ;;
10092
10093 haiku*)
10094 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10095 link_all_deplibs=yes
10096 ;;
10097
10098 os2*)
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_minus_L=yes
10101 allow_undefined_flag=unsupported
10102 shrext_cmds=.dll
10103 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10104 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10105 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10106 $ECHO EXPORTS >> $output_objdir/$libname.def~
10107 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10108 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10109 emximp -o $lib $output_objdir/$libname.def'
10110 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10111 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10112 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10113 $ECHO EXPORTS >> $output_objdir/$libname.def~
10114 prefix_cmds="$SED"~
10115 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10116 prefix_cmds="$prefix_cmds -e 1d";
10117 fi~
10118 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10119 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10120 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10121 emximp -o $lib $output_objdir/$libname.def'
10122 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10123 enable_shared_with_static_runtimes=yes
10124 file_list_spec='@'
10125 ;;
10126
10127 interix[3-9]*)
10128 hardcode_direct=no
10129 hardcode_shlibpath_var=no
10130 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10131 export_dynamic_flag_spec='$wl-E'
10132 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10133 # Instead, shared libraries are loaded at an image base (0x10000000 by
10134 # default) and relocated if they conflict, which is a slow very memory
10135 # consuming and fragmenting process. To avoid this, we pick a random,
10136 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10137 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10138 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10139 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'
10140 ;;
10141
10142 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10143 tmp_diet=no
10144 if test linux-dietlibc = "$host_os"; then
10145 case $cc_basename in
10146 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10147 esac
10148 fi
10149 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10150 && test no = "$tmp_diet"
10151 then
10152 tmp_addflag=' $pic_flag'
10153 tmp_sharedflag='-shared'
10154 case $cc_basename,$host_cpu in
10155 pgcc*) # Portland Group C compiler
10156 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'
10157 tmp_addflag=' $pic_flag'
10158 ;;
10159 pgf77* | pgf90* | pgf95* | pgfortran*)
10160 # Portland Group f77 and f90 compilers
10161 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'
10162 tmp_addflag=' $pic_flag -Mnomain' ;;
10163 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10164 tmp_addflag=' -i_dynamic' ;;
10165 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10166 tmp_addflag=' -i_dynamic -nofor_main' ;;
10167 ifc* | ifort*) # Intel Fortran compiler
10168 tmp_addflag=' -nofor_main' ;;
10169 lf95*) # Lahey Fortran 8.1
10170 whole_archive_flag_spec=
10171 tmp_sharedflag='--shared' ;;
10172 nagfor*) # NAGFOR 5.3
10173 tmp_sharedflag='-Wl,-shared' ;;
10174 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10175 tmp_sharedflag='-qmkshrobj'
10176 tmp_addflag= ;;
10177 nvcc*) # Cuda Compiler Driver 2.2
10178 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'
10179 compiler_needs_object=yes
10180 ;;
10181 esac
10182 case `$CC -V 2>&1 | $SED 5q` in
10183 *Sun\ C*) # Sun C 5.9
10184 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'
10185 compiler_needs_object=yes
10186 tmp_sharedflag='-G' ;;
10187 *Sun\ F*) # Sun Fortran 8.3
10188 tmp_sharedflag='-G' ;;
10189 esac
10190 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10191
10192 if test yes = "$supports_anon_versioning"; then
10193 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10194 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10195 echo "local: *; };" >> $output_objdir/$libname.ver~
10196 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10197 fi
10198
10199 case $cc_basename in
10200 tcc*)
10201 export_dynamic_flag_spec='-rdynamic'
10202 ;;
10203 xlf* | bgf* | bgxlf* | mpixlf*)
10204 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10205 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10206 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10207 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10208 if test yes = "$supports_anon_versioning"; then
10209 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10210 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10211 echo "local: *; };" >> $output_objdir/$libname.ver~
10212 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10213 fi
10214 ;;
10215 esac
10216 else
10217 ld_shlibs=no
10218 fi
10219 ;;
10220
10221 netbsd*)
10222 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10223 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10224 wlarc=
10225 else
10226 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10227 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10228 fi
10229 ;;
10230
10231 solaris*)
10232 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10233 ld_shlibs=no
10234 cat <<_LT_EOF 1>&2
10235
10236 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10237 *** create shared libraries on Solaris systems. Therefore, libtool
10238 *** is disabling shared libraries support. We urge you to upgrade GNU
10239 *** binutils to release 2.9.1 or newer. Another option is to modify
10240 *** your PATH or compiler configuration so that the native linker is
10241 *** used, and then restart.
10242
10243 _LT_EOF
10244 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10245 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10246 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10247 else
10248 ld_shlibs=no
10249 fi
10250 ;;
10251
10252 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10253 case `$LD -v 2>&1` in
10254 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10255 ld_shlibs=no
10256 cat <<_LT_EOF 1>&2
10257
10258 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10259 *** reliably create shared libraries on SCO systems. Therefore, libtool
10260 *** is disabling shared libraries support. We urge you to upgrade GNU
10261 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10262 *** your PATH or compiler configuration so that the native linker is
10263 *** used, and then restart.
10264
10265 _LT_EOF
10266 ;;
10267 *)
10268 # For security reasons, it is highly recommended that you always
10269 # use absolute paths for naming shared libraries, and exclude the
10270 # DT_RUNPATH tag from executables and libraries. But doing so
10271 # requires that you compile everything twice, which is a pain.
10272 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10273 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10276 else
10277 ld_shlibs=no
10278 fi
10279 ;;
10280 esac
10281 ;;
10282
10283 sunos4*)
10284 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10285 wlarc=
10286 hardcode_direct=yes
10287 hardcode_shlibpath_var=no
10288 ;;
10289
10290 *)
10291 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10292 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10293 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10294 else
10295 ld_shlibs=no
10296 fi
10297 ;;
10298 esac
10299
10300 if test no = "$ld_shlibs"; then
10301 runpath_var=
10302 hardcode_libdir_flag_spec=
10303 export_dynamic_flag_spec=
10304 whole_archive_flag_spec=
10305 fi
10306 else
10307 # PORTME fill in a description of your system's linker (not GNU ld)
10308 case $host_os in
10309 aix3*)
10310 allow_undefined_flag=unsupported
10311 always_export_symbols=yes
10312 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'
10313 # Note: this linker hardcodes the directories in LIBPATH if there
10314 # are no directories specified by -L.
10315 hardcode_minus_L=yes
10316 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10317 # Neither direct hardcoding nor static linking is supported with a
10318 # broken collect2.
10319 hardcode_direct=unsupported
10320 fi
10321 ;;
10322
10323 aix[4-9]*)
10324 if test ia64 = "$host_cpu"; then
10325 # On IA64, the linker does run time linking by default, so we don't
10326 # have to do anything special.
10327 aix_use_runtimelinking=no
10328 exp_sym_flag='-Bexport'
10329 no_entry_flag=
10330 else
10331 # If we're using GNU nm, then we don't want the "-C" option.
10332 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10333 # Without the "-l" option, or with the "-B" option, AIX nm treats
10334 # weak defined symbols like other global defined symbols, whereas
10335 # GNU nm marks them as "W".
10336 # While the 'weak' keyword is ignored in the Export File, we need
10337 # it in the Import File for the 'aix-soname' feature, so we have
10338 # to replace the "-B" option with "-P" for AIX nm.
10339 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10340 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'
10341 else
10342 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'
10343 fi
10344 aix_use_runtimelinking=no
10345
10346 # Test if we are trying to use run time linking or normal
10347 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10348 # have runtime linking enabled, and use it for executables.
10349 # For shared libraries, we enable/disable runtime linking
10350 # depending on the kind of the shared library created -
10351 # when "with_aix_soname,aix_use_runtimelinking" is:
10352 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10353 # "aix,yes" lib.so shared, rtl:yes, for executables
10354 # lib.a static archive
10355 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10356 # lib.a(lib.so.V) shared, rtl:no, for executables
10357 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10358 # lib.a(lib.so.V) shared, rtl:no
10359 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10360 # lib.a static archive
10361 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10362 for ld_flag in $LDFLAGS; do
10363 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10364 aix_use_runtimelinking=yes
10365 break
10366 fi
10367 done
10368 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10369 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10370 # so we don't have lib.a shared libs to link our executables.
10371 # We have to force runtime linking in this case.
10372 aix_use_runtimelinking=yes
10373 LDFLAGS="$LDFLAGS -Wl,-brtl"
10374 fi
10375 ;;
10376 esac
10377
10378 exp_sym_flag='-bexport'
10379 no_entry_flag='-bnoentry'
10380 fi
10381
10382 # When large executables or shared objects are built, AIX ld can
10383 # have problems creating the table of contents. If linking a library
10384 # or program results in "error TOC overflow" add -mminimal-toc to
10385 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10386 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10387
10388 archive_cmds=''
10389 hardcode_direct=yes
10390 hardcode_direct_absolute=yes
10391 hardcode_libdir_separator=':'
10392 link_all_deplibs=yes
10393 file_list_spec='$wl-f,'
10394 case $with_aix_soname,$aix_use_runtimelinking in
10395 aix,*) ;; # traditional, no import file
10396 svr4,* | *,yes) # use import file
10397 # The Import File defines what to hardcode.
10398 hardcode_direct=no
10399 hardcode_direct_absolute=no
10400 ;;
10401 esac
10402
10403 if test yes = "$GCC"; then
10404 case $host_os in aix4.[012]|aix4.[012].*)
10405 # We only want to do this on AIX 4.2 and lower, the check
10406 # below for broken collect2 doesn't work under 4.3+
10407 collect2name=`$CC -print-prog-name=collect2`
10408 if test -f "$collect2name" &&
10409 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10410 then
10411 # We have reworked collect2
10412 :
10413 else
10414 # We have old collect2
10415 hardcode_direct=unsupported
10416 # It fails to find uninstalled libraries when the uninstalled
10417 # path is not listed in the libpath. Setting hardcode_minus_L
10418 # to unsupported forces relinking
10419 hardcode_minus_L=yes
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_libdir_separator=
10422 fi
10423 ;;
10424 esac
10425 shared_flag='-shared'
10426 if test yes = "$aix_use_runtimelinking"; then
10427 shared_flag="$shared_flag "'$wl-G'
10428 fi
10429 # Need to ensure runtime linking is disabled for the traditional
10430 # shared library, or the linker may eventually find shared libraries
10431 # /with/ Import File - we do not want to mix them.
10432 shared_flag_aix='-shared'
10433 shared_flag_svr4='-shared $wl-G'
10434 else
10435 # not using gcc
10436 if test ia64 = "$host_cpu"; then
10437 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10438 # chokes on -Wl,-G. The following line is correct:
10439 shared_flag='-G'
10440 else
10441 if test yes = "$aix_use_runtimelinking"; then
10442 shared_flag='$wl-G'
10443 else
10444 shared_flag='$wl-bM:SRE'
10445 fi
10446 shared_flag_aix='$wl-bM:SRE'
10447 shared_flag_svr4='$wl-G'
10448 fi
10449 fi
10450
10451 export_dynamic_flag_spec='$wl-bexpall'
10452 # It seems that -bexpall does not export symbols beginning with
10453 # underscore (_), so it is better to generate a list of symbols to export.
10454 always_export_symbols=yes
10455 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10456 # Warning - without using the other runtime loading flags (-brtl),
10457 # -berok will link without error, but may produce a broken library.
10458 allow_undefined_flag='-berok'
10459 # Determine the default libpath from the value encoded in an
10460 # empty executable.
10461 if test set = "${lt_cv_aix_libpath+set}"; then
10462 aix_libpath=$lt_cv_aix_libpath
10463 else
10464 if test ${lt_cv_aix_libpath_+y}
10465 then :
10466 printf %s "(cached) " >&6
10467 else $as_nop
10468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10469 /* end confdefs.h. */
10470
10471 int
10472 main (void)
10473 {
10474
10475 ;
10476 return 0;
10477 }
10478 _ACEOF
10479 if ac_fn_c_try_link "$LINENO"
10480 then :
10481
10482 lt_aix_libpath_sed='
10483 /Import File Strings/,/^$/ {
10484 /^0/ {
10485 s/^0 *\([^ ]*\) *$/\1/
10486 p
10487 }
10488 }'
10489 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10490 # Check for a 64-bit object if we didn't find anything.
10491 if test -z "$lt_cv_aix_libpath_"; then
10492 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10493 fi
10494 fi
10495 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10496 conftest$ac_exeext conftest.$ac_ext
10497 if test -z "$lt_cv_aix_libpath_"; then
10498 lt_cv_aix_libpath_=/usr/lib:/lib
10499 fi
10500
10501 fi
10502
10503 aix_libpath=$lt_cv_aix_libpath_
10504 fi
10505
10506 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10507 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
10508 else
10509 if test ia64 = "$host_cpu"; then
10510 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10511 allow_undefined_flag="-z nodefs"
10512 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"
10513 else
10514 # Determine the default libpath from the value encoded in an
10515 # empty executable.
10516 if test set = "${lt_cv_aix_libpath+set}"; then
10517 aix_libpath=$lt_cv_aix_libpath
10518 else
10519 if test ${lt_cv_aix_libpath_+y}
10520 then :
10521 printf %s "(cached) " >&6
10522 else $as_nop
10523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10524 /* end confdefs.h. */
10525
10526 int
10527 main (void)
10528 {
10529
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 if ac_fn_c_try_link "$LINENO"
10535 then :
10536
10537 lt_aix_libpath_sed='
10538 /Import File Strings/,/^$/ {
10539 /^0/ {
10540 s/^0 *\([^ ]*\) *$/\1/
10541 p
10542 }
10543 }'
10544 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10545 # Check for a 64-bit object if we didn't find anything.
10546 if test -z "$lt_cv_aix_libpath_"; then
10547 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10548 fi
10549 fi
10550 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10551 conftest$ac_exeext conftest.$ac_ext
10552 if test -z "$lt_cv_aix_libpath_"; then
10553 lt_cv_aix_libpath_=/usr/lib:/lib
10554 fi
10555
10556 fi
10557
10558 aix_libpath=$lt_cv_aix_libpath_
10559 fi
10560
10561 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10562 # Warning - without using the other run time loading flags,
10563 # -berok will link without error, but may produce a broken library.
10564 no_undefined_flag=' $wl-bernotok'
10565 allow_undefined_flag=' $wl-berok'
10566 if test yes = "$with_gnu_ld"; then
10567 # We only use this code for GNU lds that support --whole-archive.
10568 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10569 else
10570 # Exported symbols can be pulled into shared objects from archives
10571 whole_archive_flag_spec='$convenience'
10572 fi
10573 archive_cmds_need_lc=yes
10574 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10575 # -brtl affects multiple linker settings, -berok does not and is overridden later
10576 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
10577 if test svr4 != "$with_aix_soname"; then
10578 # This is similar to how AIX traditionally builds its shared libraries.
10579 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'
10580 fi
10581 if test aix != "$with_aix_soname"; then
10582 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'
10583 else
10584 # used by -dlpreopen to get the symbols
10585 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
10586 fi
10587 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
10588 fi
10589 fi
10590 ;;
10591
10592 amigaos*)
10593 case $host_cpu in
10594 powerpc)
10595 # see comment about AmigaOS4 .so support
10596 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10597 archive_expsym_cmds=''
10598 ;;
10599 m68k)
10600 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)'
10601 hardcode_libdir_flag_spec='-L$libdir'
10602 hardcode_minus_L=yes
10603 ;;
10604 esac
10605 ;;
10606
10607 bsdi[45]*)
10608 export_dynamic_flag_spec=-rdynamic
10609 ;;
10610
10611 cygwin* | mingw* | pw32* | cegcc*)
10612 # When not using gcc, we currently assume that we are using
10613 # Microsoft Visual C++ or Intel C++ Compiler.
10614 # hardcode_libdir_flag_spec is actually meaningless, as there is
10615 # no search path for DLLs.
10616 case $cc_basename in
10617 cl* | icl*)
10618 # Native MSVC or ICC
10619 hardcode_libdir_flag_spec=' '
10620 allow_undefined_flag=unsupported
10621 always_export_symbols=yes
10622 file_list_spec='@'
10623 # Tell ltmain to make .lib files, not .a files.
10624 libext=lib
10625 # Tell ltmain to make .dll files, not .so files.
10626 shrext_cmds=.dll
10627 # FIXME: Setting linknames here is a bad hack.
10628 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
10629 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10630 cp "$export_symbols" "$output_objdir/$soname.def";
10631 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
10632 else
10633 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
10634 fi~
10635 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10636 linknames='
10637 # The linker will not automatically build a static lib if we build a DLL.
10638 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10639 enable_shared_with_static_runtimes=yes
10640 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10641 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10642 # Don't use ranlib
10643 old_postinstall_cmds='chmod 644 $oldlib'
10644 postlink_cmds='lt_outputfile="@OUTPUT@"~
10645 lt_tool_outputfile="@TOOL_OUTPUT@"~
10646 case $lt_outputfile in
10647 *.exe|*.EXE) ;;
10648 *)
10649 lt_outputfile=$lt_outputfile.exe
10650 lt_tool_outputfile=$lt_tool_outputfile.exe
10651 ;;
10652 esac~
10653 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
10654 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10655 $RM "$lt_outputfile.manifest";
10656 fi'
10657 ;;
10658 *)
10659 # Assume MSVC and ICC wrapper
10660 hardcode_libdir_flag_spec=' '
10661 allow_undefined_flag=unsupported
10662 # Tell ltmain to make .lib files, not .a files.
10663 libext=lib
10664 # Tell ltmain to make .dll files, not .so files.
10665 shrext_cmds=.dll
10666 # FIXME: Setting linknames here is a bad hack.
10667 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10668 # The linker will automatically build a .lib file if we build a DLL.
10669 old_archive_from_new_cmds='true'
10670 # FIXME: Should let the user specify the lib program.
10671 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10672 enable_shared_with_static_runtimes=yes
10673 ;;
10674 esac
10675 ;;
10676
10677 darwin* | rhapsody*)
10678
10679
10680 archive_cmds_need_lc=no
10681 hardcode_direct=no
10682 hardcode_automatic=yes
10683 hardcode_shlibpath_var=unsupported
10684 if test yes = "$lt_cv_ld_force_load"; then
10685 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\"`'
10686
10687 else
10688 whole_archive_flag_spec=''
10689 fi
10690 link_all_deplibs=yes
10691 allow_undefined_flag=$_lt_dar_allow_undefined
10692 case $cc_basename in
10693 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
10694 *) _lt_dar_can_shared=$GCC ;;
10695 esac
10696 if test yes = "$_lt_dar_can_shared"; then
10697 output_verbose_link_cmd=func_echo_all
10698 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
10699 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
10700 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"
10701 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"
10702
10703 else
10704 ld_shlibs=no
10705 fi
10706
10707 ;;
10708
10709 dgux*)
10710 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10711 hardcode_libdir_flag_spec='-L$libdir'
10712 hardcode_shlibpath_var=no
10713 ;;
10714
10715 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10716 # support. Future versions do this automatically, but an explicit c++rt0.o
10717 # does not break anything, and helps significantly (at the cost of a little
10718 # extra space).
10719 freebsd2.2*)
10720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10721 hardcode_libdir_flag_spec='-R$libdir'
10722 hardcode_direct=yes
10723 hardcode_shlibpath_var=no
10724 ;;
10725
10726 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10727 freebsd2.*)
10728 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10729 hardcode_direct=yes
10730 hardcode_minus_L=yes
10731 hardcode_shlibpath_var=no
10732 ;;
10733
10734 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10735 freebsd* | dragonfly* | midnightbsd*)
10736 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10737 hardcode_libdir_flag_spec='-R$libdir'
10738 hardcode_direct=yes
10739 hardcode_shlibpath_var=no
10740 ;;
10741
10742 hpux9*)
10743 if test yes = "$GCC"; then
10744 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'
10745 else
10746 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'
10747 fi
10748 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10749 hardcode_libdir_separator=:
10750 hardcode_direct=yes
10751
10752 # hardcode_minus_L: Not really in the search PATH,
10753 # but as the default location of the library.
10754 hardcode_minus_L=yes
10755 export_dynamic_flag_spec='$wl-E'
10756 ;;
10757
10758 hpux10*)
10759 if test yes,no = "$GCC,$with_gnu_ld"; then
10760 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10761 else
10762 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10763 fi
10764 if test no = "$with_gnu_ld"; then
10765 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10766 hardcode_libdir_separator=:
10767 hardcode_direct=yes
10768 hardcode_direct_absolute=yes
10769 export_dynamic_flag_spec='$wl-E'
10770 # hardcode_minus_L: Not really in the search PATH,
10771 # but as the default location of the library.
10772 hardcode_minus_L=yes
10773 fi
10774 ;;
10775
10776 hpux11*)
10777 if test yes,no = "$GCC,$with_gnu_ld"; then
10778 case $host_cpu in
10779 hppa*64*)
10780 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10781 ;;
10782 ia64*)
10783 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10784 ;;
10785 *)
10786 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10787 ;;
10788 esac
10789 else
10790 case $host_cpu in
10791 hppa*64*)
10792 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
10793 ;;
10794 ia64*)
10795 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10796 ;;
10797 *)
10798
10799 # Older versions of the 11.00 compiler do not understand -b yet
10800 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10802 printf %s "checking if $CC understands -b... " >&6; }
10803 if test ${lt_cv_prog_compiler__b+y}
10804 then :
10805 printf %s "(cached) " >&6
10806 else $as_nop
10807 lt_cv_prog_compiler__b=no
10808 save_LDFLAGS=$LDFLAGS
10809 LDFLAGS="$LDFLAGS -b"
10810 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10811 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10812 # The linker can only warn and ignore the option if not recognized
10813 # So say no if there are warnings
10814 if test -s conftest.err; then
10815 # Append any errors to the config.log.
10816 cat conftest.err 1>&5
10817 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10818 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10819 if diff conftest.exp conftest.er2 >/dev/null; then
10820 lt_cv_prog_compiler__b=yes
10821 fi
10822 else
10823 lt_cv_prog_compiler__b=yes
10824 fi
10825 fi
10826 $RM -r conftest*
10827 LDFLAGS=$save_LDFLAGS
10828
10829 fi
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10831 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
10832
10833 if test yes = "$lt_cv_prog_compiler__b"; then
10834 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10835 else
10836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10837 fi
10838
10839 ;;
10840 esac
10841 fi
10842 if test no = "$with_gnu_ld"; then
10843 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
10844 hardcode_libdir_separator=:
10845
10846 case $host_cpu in
10847 hppa*64*|ia64*)
10848 hardcode_direct=no
10849 hardcode_shlibpath_var=no
10850 ;;
10851 *)
10852 hardcode_direct=yes
10853 hardcode_direct_absolute=yes
10854 export_dynamic_flag_spec='$wl-E'
10855
10856 # hardcode_minus_L: Not really in the search PATH,
10857 # but as the default location of the library.
10858 hardcode_minus_L=yes
10859 ;;
10860 esac
10861 fi
10862 ;;
10863
10864 irix5* | irix6* | nonstopux*)
10865 if test yes = "$GCC"; then
10866 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'
10867 # Try to use the -exported_symbol ld option, if it does not
10868 # work, assume that -exports_file does not work either and
10869 # implicitly export all symbols.
10870 # This should be the same for all languages, so no per-tag cache variable.
10871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10872 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10873 if test ${lt_cv_irix_exported_symbol+y}
10874 then :
10875 printf %s "(cached) " >&6
10876 else $as_nop
10877 save_LDFLAGS=$LDFLAGS
10878 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
10879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880 /* end confdefs.h. */
10881 int foo (void) { return 0; }
10882 _ACEOF
10883 if ac_fn_c_try_link "$LINENO"
10884 then :
10885 lt_cv_irix_exported_symbol=yes
10886 else $as_nop
10887 lt_cv_irix_exported_symbol=no
10888 fi
10889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10890 conftest$ac_exeext conftest.$ac_ext
10891 LDFLAGS=$save_LDFLAGS
10892 fi
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10894 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
10895 if test yes = "$lt_cv_irix_exported_symbol"; then
10896 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'
10897 fi
10898 else
10899 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'
10900 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'
10901 fi
10902 archive_cmds_need_lc='no'
10903 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10904 hardcode_libdir_separator=:
10905 inherit_rpath=yes
10906 link_all_deplibs=yes
10907 ;;
10908
10909 linux*)
10910 case $cc_basename in
10911 tcc*)
10912 # Fabrice Bellard et al's Tiny C Compiler
10913 ld_shlibs=yes
10914 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10915 ;;
10916 esac
10917 ;;
10918
10919 netbsd*)
10920 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10921 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10922 else
10923 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10924 fi
10925 hardcode_libdir_flag_spec='-R$libdir'
10926 hardcode_direct=yes
10927 hardcode_shlibpath_var=no
10928 ;;
10929
10930 newsos6)
10931 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10932 hardcode_direct=yes
10933 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10934 hardcode_libdir_separator=:
10935 hardcode_shlibpath_var=no
10936 ;;
10937
10938 *nto* | *qnx*)
10939 ;;
10940
10941 openbsd* | bitrig*)
10942 if test -f /usr/libexec/ld.so; then
10943 hardcode_direct=yes
10944 hardcode_shlibpath_var=no
10945 hardcode_direct_absolute=yes
10946 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
10947 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
10949 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10950 export_dynamic_flag_spec='$wl-E'
10951 else
10952 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10953 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10954 fi
10955 else
10956 ld_shlibs=no
10957 fi
10958 ;;
10959
10960 os2*)
10961 hardcode_libdir_flag_spec='-L$libdir'
10962 hardcode_minus_L=yes
10963 allow_undefined_flag=unsupported
10964 shrext_cmds=.dll
10965 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10966 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10967 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10968 $ECHO EXPORTS >> $output_objdir/$libname.def~
10969 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10970 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10971 emximp -o $lib $output_objdir/$libname.def'
10972 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10973 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10974 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10975 $ECHO EXPORTS >> $output_objdir/$libname.def~
10976 prefix_cmds="$SED"~
10977 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10978 prefix_cmds="$prefix_cmds -e 1d";
10979 fi~
10980 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10981 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10982 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10983 emximp -o $lib $output_objdir/$libname.def'
10984 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10985 enable_shared_with_static_runtimes=yes
10986 file_list_spec='@'
10987 ;;
10988
10989 osf3*)
10990 if test yes = "$GCC"; then
10991 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
10992 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'
10993 else
10994 allow_undefined_flag=' -expect_unresolved \*'
10995 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'
10996 fi
10997 archive_cmds_need_lc='no'
10998 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10999 hardcode_libdir_separator=:
11000 ;;
11001
11002 osf4* | osf5*) # as osf3* with the addition of -msym flag
11003 if test yes = "$GCC"; then
11004 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11005 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'
11006 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11007 else
11008 allow_undefined_flag=' -expect_unresolved \*'
11009 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'
11010 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~
11011 $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'
11012
11013 # Both c and cxx compiler support -rpath directly
11014 hardcode_libdir_flag_spec='-rpath $libdir'
11015 fi
11016 archive_cmds_need_lc='no'
11017 hardcode_libdir_separator=:
11018 ;;
11019
11020 solaris*)
11021 no_undefined_flag=' -z defs'
11022 if test yes = "$GCC"; then
11023 wlarc='$wl'
11024 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11025 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11026 $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'
11027 else
11028 case `$CC -V 2>&1` in
11029 *"Compilers 5.0"*)
11030 wlarc=''
11031 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11033 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11034 ;;
11035 *)
11036 wlarc='$wl'
11037 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11038 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11039 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11040 ;;
11041 esac
11042 fi
11043 hardcode_libdir_flag_spec='-R$libdir'
11044 hardcode_shlibpath_var=no
11045 case $host_os in
11046 solaris2.[0-5] | solaris2.[0-5].*) ;;
11047 *)
11048 # The compiler driver will combine and reorder linker options,
11049 # but understands '-z linker_flag'. GCC discards it without '$wl',
11050 # but is careful enough not to reorder.
11051 # Supported since Solaris 2.6 (maybe 2.5.1?)
11052 if test yes = "$GCC"; then
11053 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11054 else
11055 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11056 fi
11057 ;;
11058 esac
11059 link_all_deplibs=yes
11060 ;;
11061
11062 sunos4*)
11063 if test sequent = "$host_vendor"; then
11064 # Use $CC to link under sequent, because it throws in some extra .o
11065 # files that make .init and .fini sections work.
11066 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11067 else
11068 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11069 fi
11070 hardcode_libdir_flag_spec='-L$libdir'
11071 hardcode_direct=yes
11072 hardcode_minus_L=yes
11073 hardcode_shlibpath_var=no
11074 ;;
11075
11076 sysv4)
11077 case $host_vendor in
11078 sni)
11079 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11080 hardcode_direct=yes # is this really true???
11081 ;;
11082 siemens)
11083 ## LD is ld it makes a PLAMLIB
11084 ## CC just makes a GrossModule.
11085 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11086 reload_cmds='$CC -r -o $output$reload_objs'
11087 hardcode_direct=no
11088 ;;
11089 motorola)
11090 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11091 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11092 ;;
11093 esac
11094 runpath_var='LD_RUN_PATH'
11095 hardcode_shlibpath_var=no
11096 ;;
11097
11098 sysv4.3*)
11099 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11100 hardcode_shlibpath_var=no
11101 export_dynamic_flag_spec='-Bexport'
11102 ;;
11103
11104 sysv4*MP*)
11105 if test -d /usr/nec; then
11106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11107 hardcode_shlibpath_var=no
11108 runpath_var=LD_RUN_PATH
11109 hardcode_runpath_var=yes
11110 ld_shlibs=yes
11111 fi
11112 ;;
11113
11114 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11115 no_undefined_flag='$wl-z,text'
11116 archive_cmds_need_lc=no
11117 hardcode_shlibpath_var=no
11118 runpath_var='LD_RUN_PATH'
11119
11120 if test yes = "$GCC"; then
11121 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11122 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11123 else
11124 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11125 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11126 fi
11127 ;;
11128
11129 sysv5* | sco3.2v5* | sco5v6*)
11130 # Note: We CANNOT use -z defs as we might desire, because we do not
11131 # link with -lc, and that would cause any symbols used from libc to
11132 # always be unresolved, which means just about no library would
11133 # ever link correctly. If we're not using GNU ld we use -z text
11134 # though, which does catch some bad symbols but isn't as heavy-handed
11135 # as -z defs.
11136 no_undefined_flag='$wl-z,text'
11137 allow_undefined_flag='$wl-z,nodefs'
11138 archive_cmds_need_lc=no
11139 hardcode_shlibpath_var=no
11140 hardcode_libdir_flag_spec='$wl-R,$libdir'
11141 hardcode_libdir_separator=':'
11142 link_all_deplibs=yes
11143 export_dynamic_flag_spec='$wl-Bexport'
11144 runpath_var='LD_RUN_PATH'
11145
11146 if test yes = "$GCC"; then
11147 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11148 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11149 else
11150 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11151 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11152 fi
11153 ;;
11154
11155 uts4*)
11156 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11157 hardcode_libdir_flag_spec='-L$libdir'
11158 hardcode_shlibpath_var=no
11159 ;;
11160
11161 *)
11162 ld_shlibs=no
11163 ;;
11164 esac
11165
11166 if test sni = "$host_vendor"; then
11167 case $host in
11168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11169 export_dynamic_flag_spec='$wl-Blargedynsym'
11170 ;;
11171 esac
11172 fi
11173 fi
11174
11175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11176 printf "%s\n" "$ld_shlibs" >&6; }
11177 test no = "$ld_shlibs" && can_build_shared=no
11178
11179 with_gnu_ld=$with_gnu_ld
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195 #
11196 # Do we need to explicitly link libc?
11197 #
11198 case "x$archive_cmds_need_lc" in
11199 x|xyes)
11200 # Assume -lc should be added
11201 archive_cmds_need_lc=yes
11202
11203 if test yes,yes = "$GCC,$enable_shared"; then
11204 case $archive_cmds in
11205 *'~'*)
11206 # FIXME: we may have to deal with multi-command sequences.
11207 ;;
11208 '$CC '*)
11209 # Test whether the compiler implicitly links with -lc since on some
11210 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11211 # to ld, don't add -lc before -lgcc.
11212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11213 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
11214 if test ${lt_cv_archive_cmds_need_lc+y}
11215 then :
11216 printf %s "(cached) " >&6
11217 else $as_nop
11218 $RM conftest*
11219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11220
11221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11222 (eval $ac_compile) 2>&5
11223 ac_status=$?
11224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11225 test $ac_status = 0; } 2>conftest.err; then
11226 soname=conftest
11227 lib=conftest
11228 libobjs=conftest.$ac_objext
11229 deplibs=
11230 wl=$lt_prog_compiler_wl
11231 pic_flag=$lt_prog_compiler_pic
11232 compiler_flags=-v
11233 linker_flags=-v
11234 verstring=
11235 output_objdir=.
11236 libname=conftest
11237 lt_save_allow_undefined_flag=$allow_undefined_flag
11238 allow_undefined_flag=
11239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11240 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11241 ac_status=$?
11242 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11243 test $ac_status = 0; }
11244 then
11245 lt_cv_archive_cmds_need_lc=no
11246 else
11247 lt_cv_archive_cmds_need_lc=yes
11248 fi
11249 allow_undefined_flag=$lt_save_allow_undefined_flag
11250 else
11251 cat conftest.err 1>&5
11252 fi
11253 $RM conftest*
11254
11255 fi
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11257 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
11258 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11259 ;;
11260 esac
11261 fi
11262 ;;
11263 esac
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297
11298
11299
11300
11301
11302
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350
11351
11352
11353
11354
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11417 printf %s "checking dynamic linker characteristics... " >&6; }
11418
11419 if test yes = "$GCC"; then
11420 case $host_os in
11421 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11422 *) lt_awk_arg='/^libraries:/' ;;
11423 esac
11424 case $host_os in
11425 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11426 *) lt_sed_strip_eq='s|=/|/|g' ;;
11427 esac
11428 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11429 case $lt_search_path_spec in
11430 *\;*)
11431 # if the path contains ";" then we assume it to be the separator
11432 # otherwise default to the standard path separator (i.e. ":") - it is
11433 # assumed that no part of a normal pathname contains ";" but that should
11434 # okay in the real world where ";" in dirpaths is itself problematic.
11435 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11436 ;;
11437 *)
11438 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11439 ;;
11440 esac
11441 # Ok, now we have the path, separated by spaces, we can step through it
11442 # and add multilib dir if necessary...
11443 lt_tmp_lt_search_path_spec=
11444 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11445 # ...but if some path component already ends with the multilib dir we assume
11446 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11447 case "$lt_multi_os_dir; $lt_search_path_spec " in
11448 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11449 lt_multi_os_dir=
11450 ;;
11451 esac
11452 for lt_sys_path in $lt_search_path_spec; do
11453 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11454 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11455 elif test -n "$lt_multi_os_dir"; then
11456 test -d "$lt_sys_path" && \
11457 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11458 fi
11459 done
11460 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11461 BEGIN {RS = " "; FS = "/|\n";} {
11462 lt_foo = "";
11463 lt_count = 0;
11464 for (lt_i = NF; lt_i > 0; lt_i--) {
11465 if ($lt_i != "" && $lt_i != ".") {
11466 if ($lt_i == "..") {
11467 lt_count++;
11468 } else {
11469 if (lt_count == 0) {
11470 lt_foo = "/" $lt_i lt_foo;
11471 } else {
11472 lt_count--;
11473 }
11474 }
11475 }
11476 }
11477 if (lt_foo != "") { lt_freq[lt_foo]++; }
11478 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11479 }'`
11480 # AWK program above erroneously prepends '/' to C:/dos/paths
11481 # for these hosts.
11482 case $host_os in
11483 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11484 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11485 esac
11486 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11487 else
11488 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11489 fi
11490 library_names_spec=
11491 libname_spec='lib$name'
11492 soname_spec=
11493 shrext_cmds=.so
11494 postinstall_cmds=
11495 postuninstall_cmds=
11496 finish_cmds=
11497 finish_eval=
11498 shlibpath_var=
11499 shlibpath_overrides_runpath=unknown
11500 version_type=none
11501 dynamic_linker="$host_os ld.so"
11502 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11503 need_lib_prefix=unknown
11504 hardcode_into_libs=no
11505
11506 # when you set need_version to no, make sure it does not cause -set_version
11507 # flags to be left without arguments
11508 need_version=unknown
11509
11510
11511
11512 case $host_os in
11513 aix3*)
11514 version_type=linux # correct to gnu/linux during the next big refactor
11515 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11516 shlibpath_var=LIBPATH
11517
11518 # AIX 3 has no versioning support, so we append a major version to the name.
11519 soname_spec='$libname$release$shared_ext$major'
11520 ;;
11521
11522 aix[4-9]*)
11523 version_type=linux # correct to gnu/linux during the next big refactor
11524 need_lib_prefix=no
11525 need_version=no
11526 hardcode_into_libs=yes
11527 if test ia64 = "$host_cpu"; then
11528 # AIX 5 supports IA64
11529 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11530 shlibpath_var=LD_LIBRARY_PATH
11531 else
11532 # With GCC up to 2.95.x, collect2 would create an import file
11533 # for dependence libraries. The import file would start with
11534 # the line '#! .'. This would cause the generated library to
11535 # depend on '.', always an invalid library. This was fixed in
11536 # development snapshots of GCC prior to 3.0.
11537 case $host_os in
11538 aix4 | aix4.[01] | aix4.[01].*)
11539 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11540 echo ' yes '
11541 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11542 :
11543 else
11544 can_build_shared=no
11545 fi
11546 ;;
11547 esac
11548 # Using Import Files as archive members, it is possible to support
11549 # filename-based versioning of shared library archives on AIX. While
11550 # this would work for both with and without runtime linking, it will
11551 # prevent static linking of such archives. So we do filename-based
11552 # shared library versioning with .so extension only, which is used
11553 # when both runtime linking and shared linking is enabled.
11554 # Unfortunately, runtime linking may impact performance, so we do
11555 # not want this to be the default eventually. Also, we use the
11556 # versioned .so libs for executables only if there is the -brtl
11557 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11558 # To allow for filename-based versioning support, we need to create
11559 # libNAME.so.V as an archive file, containing:
11560 # *) an Import File, referring to the versioned filename of the
11561 # archive as well as the shared archive member, telling the
11562 # bitwidth (32 or 64) of that shared object, and providing the
11563 # list of exported symbols of that shared object, eventually
11564 # decorated with the 'weak' keyword
11565 # *) the shared object with the F_LOADONLY flag set, to really avoid
11566 # it being seen by the linker.
11567 # At run time we better use the real file rather than another symlink,
11568 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11569
11570 case $with_aix_soname,$aix_use_runtimelinking in
11571 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11572 # soname into executable. Probably we can add versioning support to
11573 # collect2, so additional links can be useful in future.
11574 aix,yes) # traditional libtool
11575 dynamic_linker='AIX unversionable lib.so'
11576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11577 # instead of lib<name>.a to let people know that these are not
11578 # typical AIX shared libraries.
11579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11580 ;;
11581 aix,no) # traditional AIX only
11582 dynamic_linker='AIX lib.a(lib.so.V)'
11583 # We preserve .a as extension for shared libraries through AIX4.2
11584 # and later when we are not doing run time linking.
11585 library_names_spec='$libname$release.a $libname.a'
11586 soname_spec='$libname$release$shared_ext$major'
11587 ;;
11588 svr4,*) # full svr4 only
11589 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
11590 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11591 # We do not specify a path in Import Files, so LIBPATH fires.
11592 shlibpath_overrides_runpath=yes
11593 ;;
11594 *,yes) # both, prefer svr4
11595 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
11596 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
11597 # unpreferred sharedlib libNAME.a needs extra handling
11598 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"'
11599 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"'
11600 # We do not specify a path in Import Files, so LIBPATH fires.
11601 shlibpath_overrides_runpath=yes
11602 ;;
11603 *,no) # both, prefer aix
11604 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
11605 library_names_spec='$libname$release.a $libname.a'
11606 soname_spec='$libname$release$shared_ext$major'
11607 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
11608 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)'
11609 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"'
11610 ;;
11611 esac
11612 shlibpath_var=LIBPATH
11613 fi
11614 ;;
11615
11616 amigaos*)
11617 case $host_cpu in
11618 powerpc)
11619 # Since July 2007 AmigaOS4 officially supports .so libraries.
11620 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11621 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11622 ;;
11623 m68k)
11624 library_names_spec='$libname.ixlibrary $libname.a'
11625 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11626 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'
11627 ;;
11628 esac
11629 ;;
11630
11631 beos*)
11632 library_names_spec='$libname$shared_ext'
11633 dynamic_linker="$host_os ld.so"
11634 shlibpath_var=LIBRARY_PATH
11635 ;;
11636
11637 bsdi[45]*)
11638 version_type=linux # correct to gnu/linux during the next big refactor
11639 need_version=no
11640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11641 soname_spec='$libname$release$shared_ext$major'
11642 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11643 shlibpath_var=LD_LIBRARY_PATH
11644 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11645 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11646 # the default ld.so.conf also contains /usr/contrib/lib and
11647 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11648 # libtool to hard-code these into programs
11649 ;;
11650
11651 cygwin* | mingw* | pw32* | cegcc*)
11652 version_type=windows
11653 shrext_cmds=.dll
11654 need_version=no
11655 need_lib_prefix=no
11656
11657 case $GCC,$cc_basename in
11658 yes,*)
11659 # gcc
11660 library_names_spec='$libname.dll.a'
11661 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11662 postinstall_cmds='base_file=`basename \$file`~
11663 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11664 dldir=$destdir/`dirname \$dlpath`~
11665 test -d \$dldir || mkdir -p \$dldir~
11666 $install_prog $dir/$dlname \$dldir/$dlname~
11667 chmod a+x \$dldir/$dlname~
11668 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11669 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11670 fi'
11671 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11672 dlpath=$dir/\$dldll~
11673 $RM \$dlpath'
11674 shlibpath_overrides_runpath=yes
11675
11676 case $host_os in
11677 cygwin*)
11678 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11679 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11680
11681 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11682 ;;
11683 mingw* | cegcc*)
11684 # MinGW DLLs use traditional 'lib' prefix
11685 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11686 ;;
11687 pw32*)
11688 # pw32 DLLs use 'pw' prefix rather than 'lib'
11689 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11690 ;;
11691 esac
11692 dynamic_linker='Win32 ld.exe'
11693 ;;
11694
11695 *,cl* | *,icl*)
11696 # Native MSVC or ICC
11697 libname_spec='$name'
11698 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
11699 library_names_spec='$libname.dll.lib'
11700
11701 case $build_os in
11702 mingw*)
11703 sys_lib_search_path_spec=
11704 lt_save_ifs=$IFS
11705 IFS=';'
11706 for lt_path in $LIB
11707 do
11708 IFS=$lt_save_ifs
11709 # Let DOS variable expansion print the short 8.3 style file name.
11710 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11711 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11712 done
11713 IFS=$lt_save_ifs
11714 # Convert to MSYS style.
11715 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11716 ;;
11717 cygwin*)
11718 # Convert to unix form, then to dos form, then back to unix form
11719 # but this time dos style (no spaces!) so that the unix form looks
11720 # like /cygdrive/c/PROGRA~1:/cygdr...
11721 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11722 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11723 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11724 ;;
11725 *)
11726 sys_lib_search_path_spec=$LIB
11727 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11728 # It is most probably a Windows format PATH.
11729 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11730 else
11731 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11732 fi
11733 # FIXME: find the short name or the path components, as spaces are
11734 # common. (e.g. "Program Files" -> "PROGRA~1")
11735 ;;
11736 esac
11737
11738 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11739 postinstall_cmds='base_file=`basename \$file`~
11740 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
11741 dldir=$destdir/`dirname \$dlpath`~
11742 test -d \$dldir || mkdir -p \$dldir~
11743 $install_prog $dir/$dlname \$dldir/$dlname'
11744 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11745 dlpath=$dir/\$dldll~
11746 $RM \$dlpath'
11747 shlibpath_overrides_runpath=yes
11748 dynamic_linker='Win32 link.exe'
11749 ;;
11750
11751 *)
11752 # Assume MSVC and ICC wrapper
11753 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
11754 dynamic_linker='Win32 ld.exe'
11755 ;;
11756 esac
11757 # FIXME: first we should search . and the directory the executable is in
11758 shlibpath_var=PATH
11759 ;;
11760
11761 darwin* | rhapsody*)
11762 dynamic_linker="$host_os dyld"
11763 version_type=darwin
11764 need_lib_prefix=no
11765 need_version=no
11766 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
11767 soname_spec='$libname$release$major$shared_ext'
11768 shlibpath_overrides_runpath=yes
11769 shlibpath_var=DYLD_LIBRARY_PATH
11770 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11771
11772 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11773 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11774 ;;
11775
11776 dgux*)
11777 version_type=linux # correct to gnu/linux during the next big refactor
11778 need_lib_prefix=no
11779 need_version=no
11780 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11781 soname_spec='$libname$release$shared_ext$major'
11782 shlibpath_var=LD_LIBRARY_PATH
11783 ;;
11784
11785 freebsd* | dragonfly* | midnightbsd*)
11786 # DragonFly does not have aout. When/if they implement a new
11787 # versioning mechanism, adjust this.
11788 if test -x /usr/bin/objformat; then
11789 objformat=`/usr/bin/objformat`
11790 else
11791 case $host_os in
11792 freebsd[23].*) objformat=aout ;;
11793 *) objformat=elf ;;
11794 esac
11795 fi
11796 version_type=freebsd-$objformat
11797 case $version_type in
11798 freebsd-elf*)
11799 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11800 soname_spec='$libname$release$shared_ext$major'
11801 need_version=no
11802 need_lib_prefix=no
11803 ;;
11804 freebsd-*)
11805 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
11806 need_version=yes
11807 ;;
11808 esac
11809 shlibpath_var=LD_LIBRARY_PATH
11810 case $host_os in
11811 freebsd2.*)
11812 shlibpath_overrides_runpath=yes
11813 ;;
11814 freebsd3.[01]* | freebsdelf3.[01]*)
11815 shlibpath_overrides_runpath=yes
11816 hardcode_into_libs=yes
11817 ;;
11818 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11819 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11820 shlibpath_overrides_runpath=no
11821 hardcode_into_libs=yes
11822 ;;
11823 *) # from 4.6 on, and DragonFly
11824 shlibpath_overrides_runpath=yes
11825 hardcode_into_libs=yes
11826 ;;
11827 esac
11828 ;;
11829
11830 haiku*)
11831 version_type=linux # correct to gnu/linux during the next big refactor
11832 need_lib_prefix=no
11833 need_version=no
11834 dynamic_linker="$host_os runtime_loader"
11835 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11836 soname_spec='$libname$release$shared_ext$major'
11837 shlibpath_var=LIBRARY_PATH
11838 shlibpath_overrides_runpath=no
11839 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11840 hardcode_into_libs=yes
11841 ;;
11842
11843 hpux9* | hpux10* | hpux11*)
11844 # Give a soname corresponding to the major version so that dld.sl refuses to
11845 # link against other versions.
11846 version_type=sunos
11847 need_lib_prefix=no
11848 need_version=no
11849 case $host_cpu in
11850 ia64*)
11851 shrext_cmds='.so'
11852 hardcode_into_libs=yes
11853 dynamic_linker="$host_os dld.so"
11854 shlibpath_var=LD_LIBRARY_PATH
11855 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11856 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11857 soname_spec='$libname$release$shared_ext$major'
11858 if test 32 = "$HPUX_IA64_MODE"; then
11859 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11860 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
11861 else
11862 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11863 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
11864 fi
11865 ;;
11866 hppa*64*)
11867 shrext_cmds='.sl'
11868 hardcode_into_libs=yes
11869 dynamic_linker="$host_os dld.sl"
11870 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11871 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11873 soname_spec='$libname$release$shared_ext$major'
11874 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11875 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11876 ;;
11877 *)
11878 shrext_cmds='.sl'
11879 dynamic_linker="$host_os dld.sl"
11880 shlibpath_var=SHLIB_PATH
11881 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11882 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11883 soname_spec='$libname$release$shared_ext$major'
11884 ;;
11885 esac
11886 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11887 postinstall_cmds='chmod 555 $lib'
11888 # or fails outright, so override atomically:
11889 install_override_mode=555
11890 ;;
11891
11892 interix[3-9]*)
11893 version_type=linux # correct to gnu/linux during the next big refactor
11894 need_lib_prefix=no
11895 need_version=no
11896 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11897 soname_spec='$libname$release$shared_ext$major'
11898 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11899 shlibpath_var=LD_LIBRARY_PATH
11900 shlibpath_overrides_runpath=no
11901 hardcode_into_libs=yes
11902 ;;
11903
11904 irix5* | irix6* | nonstopux*)
11905 case $host_os in
11906 nonstopux*) version_type=nonstopux ;;
11907 *)
11908 if test yes = "$lt_cv_prog_gnu_ld"; then
11909 version_type=linux # correct to gnu/linux during the next big refactor
11910 else
11911 version_type=irix
11912 fi ;;
11913 esac
11914 need_lib_prefix=no
11915 need_version=no
11916 soname_spec='$libname$release$shared_ext$major'
11917 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
11918 case $host_os in
11919 irix5* | nonstopux*)
11920 libsuff= shlibsuff=
11921 ;;
11922 *)
11923 case $LD in # libtool.m4 will add one of these switches to LD
11924 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11925 libsuff= shlibsuff= libmagic=32-bit;;
11926 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11927 libsuff=32 shlibsuff=N32 libmagic=N32;;
11928 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11929 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11930 *) libsuff= shlibsuff= libmagic=never-match;;
11931 esac
11932 ;;
11933 esac
11934 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11935 shlibpath_overrides_runpath=no
11936 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
11937 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
11938 hardcode_into_libs=yes
11939 ;;
11940
11941 # No shared lib support for Linux oldld, aout, or coff.
11942 linux*oldld* | linux*aout* | linux*coff*)
11943 dynamic_linker=no
11944 ;;
11945
11946 linux*android*)
11947 version_type=none # Android doesn't support versioned libraries.
11948 need_lib_prefix=no
11949 need_version=no
11950 library_names_spec='$libname$release$shared_ext'
11951 soname_spec='$libname$release$shared_ext'
11952 finish_cmds=
11953 shlibpath_var=LD_LIBRARY_PATH
11954 shlibpath_overrides_runpath=yes
11955
11956 # This implies no fast_install, which is unacceptable.
11957 # Some rework will be needed to allow for fast_install
11958 # before this can be enabled.
11959 hardcode_into_libs=yes
11960
11961 dynamic_linker='Android linker'
11962 # Don't embed -rpath directories since the linker doesn't support them.
11963 hardcode_libdir_flag_spec='-L$libdir'
11964 ;;
11965
11966 # This must be glibc/ELF.
11967 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11968 version_type=linux # correct to gnu/linux during the next big refactor
11969 need_lib_prefix=no
11970 need_version=no
11971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11972 soname_spec='$libname$release$shared_ext$major'
11973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11974 shlibpath_var=LD_LIBRARY_PATH
11975 shlibpath_overrides_runpath=no
11976
11977 # Some binutils ld are patched to set DT_RUNPATH
11978 if test ${lt_cv_shlibpath_overrides_runpath+y}
11979 then :
11980 printf %s "(cached) " >&6
11981 else $as_nop
11982 lt_cv_shlibpath_overrides_runpath=no
11983 save_LDFLAGS=$LDFLAGS
11984 save_libdir=$libdir
11985 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11986 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11988 /* end confdefs.h. */
11989
11990 int
11991 main (void)
11992 {
11993
11994 ;
11995 return 0;
11996 }
11997 _ACEOF
11998 if ac_fn_c_try_link "$LINENO"
11999 then :
12000 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
12001 then :
12002 lt_cv_shlibpath_overrides_runpath=yes
12003 fi
12004 fi
12005 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12006 conftest$ac_exeext conftest.$ac_ext
12007 LDFLAGS=$save_LDFLAGS
12008 libdir=$save_libdir
12009
12010 fi
12011
12012 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12013
12014 # This implies no fast_install, which is unacceptable.
12015 # Some rework will be needed to allow for fast_install
12016 # before this can be enabled.
12017 hardcode_into_libs=yes
12018
12019 # Ideally, we could use ldconfig to report *all* directores which are
12020 # searched for libraries, however this is still not possible. Aside from not
12021 # being certain /sbin/ldconfig is available, command
12022 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12023 # even though it is searched at run-time. Try to do the best guess by
12024 # appending ld.so.conf contents (and includes) to the search path.
12025 if test -f /etc/ld.so.conf; then
12026 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' ' '`
12027 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12028 fi
12029
12030 # We used to test for /lib/ld.so.1 and disable shared libraries on
12031 # powerpc, because MkLinux only supported shared libraries with the
12032 # GNU dynamic linker. Since this was broken with cross compilers,
12033 # most powerpc-linux boxes support dynamic linking these days and
12034 # people can always --disable-shared, the test was removed, and we
12035 # assume the GNU/Linux dynamic linker is in use.
12036 dynamic_linker='GNU/Linux ld.so'
12037 ;;
12038
12039 netbsd*)
12040 version_type=sunos
12041 need_lib_prefix=no
12042 need_version=no
12043 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12044 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12046 dynamic_linker='NetBSD (a.out) ld.so'
12047 else
12048 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12049 soname_spec='$libname$release$shared_ext$major'
12050 dynamic_linker='NetBSD ld.elf_so'
12051 fi
12052 shlibpath_var=LD_LIBRARY_PATH
12053 shlibpath_overrides_runpath=yes
12054 hardcode_into_libs=yes
12055 ;;
12056
12057 newsos6)
12058 version_type=linux # correct to gnu/linux during the next big refactor
12059 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12060 shlibpath_var=LD_LIBRARY_PATH
12061 shlibpath_overrides_runpath=yes
12062 ;;
12063
12064 *nto* | *qnx*)
12065 version_type=qnx
12066 need_lib_prefix=no
12067 need_version=no
12068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12069 soname_spec='$libname$release$shared_ext$major'
12070 shlibpath_var=LD_LIBRARY_PATH
12071 shlibpath_overrides_runpath=no
12072 hardcode_into_libs=yes
12073 dynamic_linker='ldqnx.so'
12074 ;;
12075
12076 openbsd* | bitrig*)
12077 version_type=sunos
12078 sys_lib_dlsearch_path_spec=/usr/lib
12079 need_lib_prefix=no
12080 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12081 need_version=no
12082 else
12083 need_version=yes
12084 fi
12085 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12086 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12087 shlibpath_var=LD_LIBRARY_PATH
12088 shlibpath_overrides_runpath=yes
12089 ;;
12090
12091 os2*)
12092 libname_spec='$name'
12093 version_type=windows
12094 shrext_cmds=.dll
12095 need_version=no
12096 need_lib_prefix=no
12097 # OS/2 can only load a DLL with a base name of 8 characters or less.
12098 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12099 v=$($ECHO $release$versuffix | tr -d .-);
12100 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12101 $ECHO $n$v`$shared_ext'
12102 library_names_spec='${libname}_dll.$libext'
12103 dynamic_linker='OS/2 ld.exe'
12104 shlibpath_var=BEGINLIBPATH
12105 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12106 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12107 postinstall_cmds='base_file=`basename \$file`~
12108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12109 dldir=$destdir/`dirname \$dlpath`~
12110 test -d \$dldir || mkdir -p \$dldir~
12111 $install_prog $dir/$dlname \$dldir/$dlname~
12112 chmod a+x \$dldir/$dlname~
12113 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12114 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12115 fi'
12116 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12117 dlpath=$dir/\$dldll~
12118 $RM \$dlpath'
12119 ;;
12120
12121 osf3* | osf4* | osf5*)
12122 version_type=osf
12123 need_lib_prefix=no
12124 need_version=no
12125 soname_spec='$libname$release$shared_ext$major'
12126 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12127 shlibpath_var=LD_LIBRARY_PATH
12128 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12129 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12130 ;;
12131
12132 rdos*)
12133 dynamic_linker=no
12134 ;;
12135
12136 solaris*)
12137 version_type=linux # correct to gnu/linux during the next big refactor
12138 need_lib_prefix=no
12139 need_version=no
12140 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12141 soname_spec='$libname$release$shared_ext$major'
12142 shlibpath_var=LD_LIBRARY_PATH
12143 shlibpath_overrides_runpath=yes
12144 hardcode_into_libs=yes
12145 # ldd complains unless libraries are executable
12146 postinstall_cmds='chmod +x $lib'
12147 ;;
12148
12149 sunos4*)
12150 version_type=sunos
12151 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12152 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12155 if test yes = "$with_gnu_ld"; then
12156 need_lib_prefix=no
12157 fi
12158 need_version=yes
12159 ;;
12160
12161 sysv4 | sysv4.3*)
12162 version_type=linux # correct to gnu/linux during the next big refactor
12163 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12164 soname_spec='$libname$release$shared_ext$major'
12165 shlibpath_var=LD_LIBRARY_PATH
12166 case $host_vendor in
12167 sni)
12168 shlibpath_overrides_runpath=no
12169 need_lib_prefix=no
12170 runpath_var=LD_RUN_PATH
12171 ;;
12172 siemens)
12173 need_lib_prefix=no
12174 ;;
12175 motorola)
12176 need_lib_prefix=no
12177 need_version=no
12178 shlibpath_overrides_runpath=no
12179 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12180 ;;
12181 esac
12182 ;;
12183
12184 sysv4*MP*)
12185 if test -d /usr/nec; then
12186 version_type=linux # correct to gnu/linux during the next big refactor
12187 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12188 soname_spec='$libname$shared_ext.$major'
12189 shlibpath_var=LD_LIBRARY_PATH
12190 fi
12191 ;;
12192
12193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12194 version_type=sco
12195 need_lib_prefix=no
12196 need_version=no
12197 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12198 soname_spec='$libname$release$shared_ext$major'
12199 shlibpath_var=LD_LIBRARY_PATH
12200 shlibpath_overrides_runpath=yes
12201 hardcode_into_libs=yes
12202 if test yes = "$with_gnu_ld"; then
12203 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12204 else
12205 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12206 case $host_os in
12207 sco3.2v5*)
12208 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12209 ;;
12210 esac
12211 fi
12212 sys_lib_dlsearch_path_spec='/usr/lib'
12213 ;;
12214
12215 tpf*)
12216 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12217 version_type=linux # correct to gnu/linux during the next big refactor
12218 need_lib_prefix=no
12219 need_version=no
12220 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12221 shlibpath_var=LD_LIBRARY_PATH
12222 shlibpath_overrides_runpath=no
12223 hardcode_into_libs=yes
12224 ;;
12225
12226 uts4*)
12227 version_type=linux # correct to gnu/linux during the next big refactor
12228 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12229 soname_spec='$libname$release$shared_ext$major'
12230 shlibpath_var=LD_LIBRARY_PATH
12231 ;;
12232
12233 *)
12234 dynamic_linker=no
12235 ;;
12236 esac
12237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12238 printf "%s\n" "$dynamic_linker" >&6; }
12239 test no = "$dynamic_linker" && can_build_shared=no
12240
12241 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12242 if test yes = "$GCC"; then
12243 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12244 fi
12245
12246 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12247 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12248 fi
12249
12250 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12251 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12252 fi
12253
12254 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12255 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12256
12257 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12258 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12259
12260 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12261 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275
12276
12277
12278
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352
12353
12354
12355
12356
12357
12358
12359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12360 printf %s "checking how to hardcode library paths into programs... " >&6; }
12361 hardcode_action=
12362 if test -n "$hardcode_libdir_flag_spec" ||
12363 test -n "$runpath_var" ||
12364 test yes = "$hardcode_automatic"; then
12365
12366 # We can hardcode non-existent directories.
12367 if test no != "$hardcode_direct" &&
12368 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12369 # have to relink, otherwise we might link with an installed library
12370 # when we should be linking with a yet-to-be-installed one
12371 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12372 test no != "$hardcode_minus_L"; then
12373 # Linking always hardcodes the temporary library directory.
12374 hardcode_action=relink
12375 else
12376 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12377 hardcode_action=immediate
12378 fi
12379 else
12380 # We cannot hardcode anything, or else we can only hardcode existing
12381 # directories.
12382 hardcode_action=unsupported
12383 fi
12384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12385 printf "%s\n" "$hardcode_action" >&6; }
12386
12387 if test relink = "$hardcode_action" ||
12388 test yes = "$inherit_rpath"; then
12389 # Fast installation is not supported
12390 enable_fast_install=no
12391 elif test yes = "$shlibpath_overrides_runpath" ||
12392 test no = "$enable_shared"; then
12393 # Fast installation is not necessary
12394 enable_fast_install=needless
12395 fi
12396
12397
12398
12399
12400
12401
12402 if test yes != "$enable_dlopen"; then
12403 enable_dlopen=unknown
12404 enable_dlopen_self=unknown
12405 enable_dlopen_self_static=unknown
12406 else
12407 lt_cv_dlopen=no
12408 lt_cv_dlopen_libs=
12409
12410 case $host_os in
12411 beos*)
12412 lt_cv_dlopen=load_add_on
12413 lt_cv_dlopen_libs=
12414 lt_cv_dlopen_self=yes
12415 ;;
12416
12417 mingw* | pw32* | cegcc*)
12418 lt_cv_dlopen=LoadLibrary
12419 lt_cv_dlopen_libs=
12420 ;;
12421
12422 cygwin*)
12423 lt_cv_dlopen=dlopen
12424 lt_cv_dlopen_libs=
12425 ;;
12426
12427 darwin*)
12428 # if libdl is installed we need to link against it
12429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12430 printf %s "checking for dlopen in -ldl... " >&6; }
12431 if test ${ac_cv_lib_dl_dlopen+y}
12432 then :
12433 printf %s "(cached) " >&6
12434 else $as_nop
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-ldl $LIBS"
12437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12438 /* end confdefs.h. */
12439
12440 /* Override any GCC internal prototype to avoid an error.
12441 Use char because int might match the return type of a GCC
12442 builtin and then its argument prototype would still apply. */
12443 char dlopen ();
12444 int
12445 main (void)
12446 {
12447 return dlopen ();
12448 ;
12449 return 0;
12450 }
12451 _ACEOF
12452 if ac_fn_c_try_link "$LINENO"
12453 then :
12454 ac_cv_lib_dl_dlopen=yes
12455 else $as_nop
12456 ac_cv_lib_dl_dlopen=no
12457 fi
12458 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12459 conftest$ac_exeext conftest.$ac_ext
12460 LIBS=$ac_check_lib_save_LIBS
12461 fi
12462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12463 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12464 if test "x$ac_cv_lib_dl_dlopen" = xyes
12465 then :
12466 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12467 else $as_nop
12468
12469 lt_cv_dlopen=dyld
12470 lt_cv_dlopen_libs=
12471 lt_cv_dlopen_self=yes
12472
12473 fi
12474
12475 ;;
12476
12477 tpf*)
12478 # Don't try to run any link tests for TPF. We know it's impossible
12479 # because TPF is a cross-compiler, and we know how we open DSOs.
12480 lt_cv_dlopen=dlopen
12481 lt_cv_dlopen_libs=
12482 lt_cv_dlopen_self=no
12483 ;;
12484
12485 *)
12486 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12487 if test "x$ac_cv_func_shl_load" = xyes
12488 then :
12489 lt_cv_dlopen=shl_load
12490 else $as_nop
12491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12492 printf %s "checking for shl_load in -ldld... " >&6; }
12493 if test ${ac_cv_lib_dld_shl_load+y}
12494 then :
12495 printf %s "(cached) " >&6
12496 else $as_nop
12497 ac_check_lib_save_LIBS=$LIBS
12498 LIBS="-ldld $LIBS"
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501
12502 /* Override any GCC internal prototype to avoid an error.
12503 Use char because int might match the return type of a GCC
12504 builtin and then its argument prototype would still apply. */
12505 char shl_load ();
12506 int
12507 main (void)
12508 {
12509 return shl_load ();
12510 ;
12511 return 0;
12512 }
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"
12515 then :
12516 ac_cv_lib_dld_shl_load=yes
12517 else $as_nop
12518 ac_cv_lib_dld_shl_load=no
12519 fi
12520 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12521 conftest$ac_exeext conftest.$ac_ext
12522 LIBS=$ac_check_lib_save_LIBS
12523 fi
12524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12525 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
12526 if test "x$ac_cv_lib_dld_shl_load" = xyes
12527 then :
12528 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12529 else $as_nop
12530 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12531 if test "x$ac_cv_func_dlopen" = xyes
12532 then :
12533 lt_cv_dlopen=dlopen
12534 else $as_nop
12535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12536 printf %s "checking for dlopen in -ldl... " >&6; }
12537 if test ${ac_cv_lib_dl_dlopen+y}
12538 then :
12539 printf %s "(cached) " >&6
12540 else $as_nop
12541 ac_check_lib_save_LIBS=$LIBS
12542 LIBS="-ldl $LIBS"
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544 /* end confdefs.h. */
12545
12546 /* Override any GCC internal prototype to avoid an error.
12547 Use char because int might match the return type of a GCC
12548 builtin and then its argument prototype would still apply. */
12549 char dlopen ();
12550 int
12551 main (void)
12552 {
12553 return dlopen ();
12554 ;
12555 return 0;
12556 }
12557 _ACEOF
12558 if ac_fn_c_try_link "$LINENO"
12559 then :
12560 ac_cv_lib_dl_dlopen=yes
12561 else $as_nop
12562 ac_cv_lib_dl_dlopen=no
12563 fi
12564 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12565 conftest$ac_exeext conftest.$ac_ext
12566 LIBS=$ac_check_lib_save_LIBS
12567 fi
12568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12569 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
12570 if test "x$ac_cv_lib_dl_dlopen" = xyes
12571 then :
12572 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12573 else $as_nop
12574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12575 printf %s "checking for dlopen in -lsvld... " >&6; }
12576 if test ${ac_cv_lib_svld_dlopen+y}
12577 then :
12578 printf %s "(cached) " >&6
12579 else $as_nop
12580 ac_check_lib_save_LIBS=$LIBS
12581 LIBS="-lsvld $LIBS"
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12584
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12588 char dlopen ();
12589 int
12590 main (void)
12591 {
12592 return dlopen ();
12593 ;
12594 return 0;
12595 }
12596 _ACEOF
12597 if ac_fn_c_try_link "$LINENO"
12598 then :
12599 ac_cv_lib_svld_dlopen=yes
12600 else $as_nop
12601 ac_cv_lib_svld_dlopen=no
12602 fi
12603 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12604 conftest$ac_exeext conftest.$ac_ext
12605 LIBS=$ac_check_lib_save_LIBS
12606 fi
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12608 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
12609 if test "x$ac_cv_lib_svld_dlopen" = xyes
12610 then :
12611 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
12612 else $as_nop
12613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12614 printf %s "checking for dld_link in -ldld... " >&6; }
12615 if test ${ac_cv_lib_dld_dld_link+y}
12616 then :
12617 printf %s "(cached) " >&6
12618 else $as_nop
12619 ac_check_lib_save_LIBS=$LIBS
12620 LIBS="-ldld $LIBS"
12621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12622 /* end confdefs.h. */
12623
12624 /* Override any GCC internal prototype to avoid an error.
12625 Use char because int might match the return type of a GCC
12626 builtin and then its argument prototype would still apply. */
12627 char dld_link ();
12628 int
12629 main (void)
12630 {
12631 return dld_link ();
12632 ;
12633 return 0;
12634 }
12635 _ACEOF
12636 if ac_fn_c_try_link "$LINENO"
12637 then :
12638 ac_cv_lib_dld_dld_link=yes
12639 else $as_nop
12640 ac_cv_lib_dld_dld_link=no
12641 fi
12642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12643 conftest$ac_exeext conftest.$ac_ext
12644 LIBS=$ac_check_lib_save_LIBS
12645 fi
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12647 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
12648 if test "x$ac_cv_lib_dld_dld_link" = xyes
12649 then :
12650 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
12651 fi
12652
12653
12654 fi
12655
12656
12657 fi
12658
12659
12660 fi
12661
12662
12663 fi
12664
12665
12666 fi
12667
12668 ;;
12669 esac
12670
12671 if test no = "$lt_cv_dlopen"; then
12672 enable_dlopen=no
12673 else
12674 enable_dlopen=yes
12675 fi
12676
12677 case $lt_cv_dlopen in
12678 dlopen)
12679 save_CPPFLAGS=$CPPFLAGS
12680 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12681
12682 save_LDFLAGS=$LDFLAGS
12683 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12684
12685 save_LIBS=$LIBS
12686 LIBS="$lt_cv_dlopen_libs $LIBS"
12687
12688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12689 printf %s "checking whether a program can dlopen itself... " >&6; }
12690 if test ${lt_cv_dlopen_self+y}
12691 then :
12692 printf %s "(cached) " >&6
12693 else $as_nop
12694 if test yes = "$cross_compiling"; then :
12695 lt_cv_dlopen_self=cross
12696 else
12697 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12698 lt_status=$lt_dlunknown
12699 cat > conftest.$ac_ext <<_LT_EOF
12700 #line $LINENO "configure"
12701 #include "confdefs.h"
12702
12703 #if HAVE_DLFCN_H
12704 #include <dlfcn.h>
12705 #endif
12706
12707 #include <stdio.h>
12708
12709 #ifdef RTLD_GLOBAL
12710 # define LT_DLGLOBAL RTLD_GLOBAL
12711 #else
12712 # ifdef DL_GLOBAL
12713 # define LT_DLGLOBAL DL_GLOBAL
12714 # else
12715 # define LT_DLGLOBAL 0
12716 # endif
12717 #endif
12718
12719 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12720 find out it does not work in some platform. */
12721 #ifndef LT_DLLAZY_OR_NOW
12722 # ifdef RTLD_LAZY
12723 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12724 # else
12725 # ifdef DL_LAZY
12726 # define LT_DLLAZY_OR_NOW DL_LAZY
12727 # else
12728 # ifdef RTLD_NOW
12729 # define LT_DLLAZY_OR_NOW RTLD_NOW
12730 # else
12731 # ifdef DL_NOW
12732 # define LT_DLLAZY_OR_NOW DL_NOW
12733 # else
12734 # define LT_DLLAZY_OR_NOW 0
12735 # endif
12736 # endif
12737 # endif
12738 # endif
12739 #endif
12740
12741 /* When -fvisibility=hidden is used, assume the code has been annotated
12742 correspondingly for the symbols needed. */
12743 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12744 int fnord () __attribute__((visibility("default")));
12745 #endif
12746
12747 int fnord () { return 42; }
12748 int main ()
12749 {
12750 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12751 int status = $lt_dlunknown;
12752
12753 if (self)
12754 {
12755 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12756 else
12757 {
12758 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12759 else puts (dlerror ());
12760 }
12761 /* dlclose (self); */
12762 }
12763 else
12764 puts (dlerror ());
12765
12766 return status;
12767 }
12768 _LT_EOF
12769 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12770 (eval $ac_link) 2>&5
12771 ac_status=$?
12772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12773 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12774 (./conftest; exit; ) >&5 2>/dev/null
12775 lt_status=$?
12776 case x$lt_status in
12777 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12778 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12779 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12780 esac
12781 else :
12782 # compilation failed
12783 lt_cv_dlopen_self=no
12784 fi
12785 fi
12786 rm -fr conftest*
12787
12788
12789 fi
12790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12791 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
12792
12793 if test yes = "$lt_cv_dlopen_self"; then
12794 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12796 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
12797 if test ${lt_cv_dlopen_self_static+y}
12798 then :
12799 printf %s "(cached) " >&6
12800 else $as_nop
12801 if test yes = "$cross_compiling"; then :
12802 lt_cv_dlopen_self_static=cross
12803 else
12804 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12805 lt_status=$lt_dlunknown
12806 cat > conftest.$ac_ext <<_LT_EOF
12807 #line $LINENO "configure"
12808 #include "confdefs.h"
12809
12810 #if HAVE_DLFCN_H
12811 #include <dlfcn.h>
12812 #endif
12813
12814 #include <stdio.h>
12815
12816 #ifdef RTLD_GLOBAL
12817 # define LT_DLGLOBAL RTLD_GLOBAL
12818 #else
12819 # ifdef DL_GLOBAL
12820 # define LT_DLGLOBAL DL_GLOBAL
12821 # else
12822 # define LT_DLGLOBAL 0
12823 # endif
12824 #endif
12825
12826 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12827 find out it does not work in some platform. */
12828 #ifndef LT_DLLAZY_OR_NOW
12829 # ifdef RTLD_LAZY
12830 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12831 # else
12832 # ifdef DL_LAZY
12833 # define LT_DLLAZY_OR_NOW DL_LAZY
12834 # else
12835 # ifdef RTLD_NOW
12836 # define LT_DLLAZY_OR_NOW RTLD_NOW
12837 # else
12838 # ifdef DL_NOW
12839 # define LT_DLLAZY_OR_NOW DL_NOW
12840 # else
12841 # define LT_DLLAZY_OR_NOW 0
12842 # endif
12843 # endif
12844 # endif
12845 # endif
12846 #endif
12847
12848 /* When -fvisibility=hidden is used, assume the code has been annotated
12849 correspondingly for the symbols needed. */
12850 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12851 int fnord () __attribute__((visibility("default")));
12852 #endif
12853
12854 int fnord () { return 42; }
12855 int main ()
12856 {
12857 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12858 int status = $lt_dlunknown;
12859
12860 if (self)
12861 {
12862 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12863 else
12864 {
12865 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12866 else puts (dlerror ());
12867 }
12868 /* dlclose (self); */
12869 }
12870 else
12871 puts (dlerror ());
12872
12873 return status;
12874 }
12875 _LT_EOF
12876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12877 (eval $ac_link) 2>&5
12878 ac_status=$?
12879 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12880 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
12881 (./conftest; exit; ) >&5 2>/dev/null
12882 lt_status=$?
12883 case x$lt_status in
12884 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12885 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12886 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12887 esac
12888 else :
12889 # compilation failed
12890 lt_cv_dlopen_self_static=no
12891 fi
12892 fi
12893 rm -fr conftest*
12894
12895
12896 fi
12897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12898 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
12899 fi
12900
12901 CPPFLAGS=$save_CPPFLAGS
12902 LDFLAGS=$save_LDFLAGS
12903 LIBS=$save_LIBS
12904 ;;
12905 esac
12906
12907 case $lt_cv_dlopen_self in
12908 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12909 *) enable_dlopen_self=unknown ;;
12910 esac
12911
12912 case $lt_cv_dlopen_self_static in
12913 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12914 *) enable_dlopen_self_static=unknown ;;
12915 esac
12916 fi
12917
12918
12919
12920
12921
12922
12923
12924
12925
12926
12927
12928
12929
12930
12931
12932
12933
12934 striplib=
12935 old_striplib=
12936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12937 printf %s "checking whether stripping libraries is possible... " >&6; }
12938 if test -z "$STRIP"; then
12939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12940 printf "%s\n" "no" >&6; }
12941 else
12942 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12943 old_striplib="$STRIP --strip-debug"
12944 striplib="$STRIP --strip-unneeded"
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 printf "%s\n" "yes" >&6; }
12947 else
12948 case $host_os in
12949 darwin*)
12950 # FIXME - insert some real tests, host_os isn't really good enough
12951 striplib="$STRIP -x"
12952 old_striplib="$STRIP -S"
12953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12954 printf "%s\n" "yes" >&6; }
12955 ;;
12956 freebsd*)
12957 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
12958 old_striplib="$STRIP --strip-debug"
12959 striplib="$STRIP --strip-unneeded"
12960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12961 printf "%s\n" "yes" >&6; }
12962 else
12963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12964 printf "%s\n" "no" >&6; }
12965 fi
12966 ;;
12967 *)
12968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969 printf "%s\n" "no" >&6; }
12970 ;;
12971 esac
12972 fi
12973 fi
12974
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986 # Report what library types will actually be built
12987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12988 printf %s "checking if libtool supports shared libraries... " >&6; }
12989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12990 printf "%s\n" "$can_build_shared" >&6; }
12991
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12993 printf %s "checking whether to build shared libraries... " >&6; }
12994 test no = "$can_build_shared" && enable_shared=no
12995
12996 # On AIX, shared libraries and static libraries use the same namespace, and
12997 # are all built from PIC.
12998 case $host_os in
12999 aix3*)
13000 test yes = "$enable_shared" && enable_static=no
13001 if test -n "$RANLIB"; then
13002 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13003 postinstall_cmds='$RANLIB $lib'
13004 fi
13005 ;;
13006
13007 aix[4-9]*)
13008 if test ia64 != "$host_cpu"; then
13009 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13010 yes,aix,yes) ;; # shared object as lib.so file only
13011 yes,svr4,*) ;; # shared object as lib.so archive member only
13012 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13013 esac
13014 fi
13015 ;;
13016 esac
13017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13018 printf "%s\n" "$enable_shared" >&6; }
13019
13020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13021 printf %s "checking whether to build static libraries... " >&6; }
13022 # Make sure either enable_shared or enable_static is yes.
13023 test yes = "$enable_shared" || enable_static=yes
13024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13025 printf "%s\n" "$enable_static" >&6; }
13026
13027
13028
13029
13030 fi
13031 ac_ext=c
13032 ac_cpp='$CPP $CPPFLAGS'
13033 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13036
13037 CC=$lt_save_CC
13038
13039
13040
13041
13042
13043
13044
13045
13046
13047
13048
13049
13050
13051
13052
13053 ac_config_commands="$ac_config_commands libtool"
13054
13055
13056
13057
13058 # Only expand once:
13059
13060
13061
13062 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
13076 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
13077 if test ${ac_cv_c_undeclared_builtin_options+y}
13078 then :
13079 printf %s "(cached) " >&6
13080 else $as_nop
13081 ac_save_CFLAGS=$CFLAGS
13082 ac_cv_c_undeclared_builtin_options='cannot detect'
13083 for ac_arg in '' -fno-builtin; do
13084 CFLAGS="$ac_save_CFLAGS $ac_arg"
13085 # This test program should *not* compile successfully.
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087 /* end confdefs.h. */
13088
13089 int
13090 main (void)
13091 {
13092 (void) strchr;
13093 ;
13094 return 0;
13095 }
13096 _ACEOF
13097 if ac_fn_c_try_compile "$LINENO"
13098 then :
13099
13100 else $as_nop
13101 # This test program should compile successfully.
13102 # No library function is consistently available on
13103 # freestanding implementations, so test against a dummy
13104 # declaration. Include always-available headers on the
13105 # off chance that they somehow elicit warnings.
13106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h. */
13108 #include <float.h>
13109 #include <limits.h>
13110 #include <stdarg.h>
13111 #include <stddef.h>
13112 extern void ac_decl (int, char *);
13113
13114 int
13115 main (void)
13116 {
13117 (void) ac_decl (0, (char *) 0);
13118 (void) ac_decl;
13119
13120 ;
13121 return 0;
13122 }
13123 _ACEOF
13124 if ac_fn_c_try_compile "$LINENO"
13125 then :
13126 if test x"$ac_arg" = x
13127 then :
13128 ac_cv_c_undeclared_builtin_options='none needed'
13129 else $as_nop
13130 ac_cv_c_undeclared_builtin_options=$ac_arg
13131 fi
13132 break
13133 fi
13134 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13135 fi
13136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13137 done
13138 CFLAGS=$ac_save_CFLAGS
13139
13140 fi
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
13142 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
13143 case $ac_cv_c_undeclared_builtin_options in #(
13144 'cannot detect') :
13145 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13146 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13147 as_fn_error $? "cannot make $CC report undeclared builtins
13148 See \`config.log' for more details" "$LINENO" 5; } ;; #(
13149 'none needed') :
13150 ac_c_undeclared_builtin_options='' ;; #(
13151 *) :
13152 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
13153 esac
13154
13155
13156
13157
13158
13159 ac_fn_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13160 if test "x$ac_cv_have_decl___clang__" = xyes
13161 then :
13162 CLANGCC="yes"
13163 else $as_nop
13164 CLANGCC="no"
13165 fi
13166 ac_fn_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13167 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes
13168 then :
13169 INTELCC="yes"
13170 else $as_nop
13171 INTELCC="no"
13172 fi
13173 ac_fn_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13174 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes
13175 then :
13176 SUNCC="yes"
13177 else $as_nop
13178 SUNCC="no"
13179 fi
13180
13181
13182
13183
13184
13185
13186
13187
13188 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
13189 if test -n "$ac_tool_prefix"; then
13190 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
13191 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
13192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13193 printf %s "checking for $ac_word... " >&6; }
13194 if test ${ac_cv_path_PKG_CONFIG+y}
13195 then :
13196 printf %s "(cached) " >&6
13197 else $as_nop
13198 case $PKG_CONFIG in
13199 [\\/]* | ?:[\\/]*)
13200 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13201 ;;
13202 *)
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13205 do
13206 IFS=$as_save_IFS
13207 case $as_dir in #(((
13208 '') as_dir=./ ;;
13209 */) ;;
13210 *) as_dir=$as_dir/ ;;
13211 esac
13212 for ac_exec_ext in '' $ac_executable_extensions; do
13213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13214 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13216 break 2
13217 fi
13218 done
13219 done
13220 IFS=$as_save_IFS
13221
13222 ;;
13223 esac
13224 fi
13225 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13226 if test -n "$PKG_CONFIG"; then
13227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13228 printf "%s\n" "$PKG_CONFIG" >&6; }
13229 else
13230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13231 printf "%s\n" "no" >&6; }
13232 fi
13233
13234
13235 fi
13236 if test -z "$ac_cv_path_PKG_CONFIG"; then
13237 ac_pt_PKG_CONFIG=$PKG_CONFIG
13238 # Extract the first word of "pkg-config", so it can be a program name with args.
13239 set dummy pkg-config; ac_word=$2
13240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13241 printf %s "checking for $ac_word... " >&6; }
13242 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
13243 then :
13244 printf %s "(cached) " >&6
13245 else $as_nop
13246 case $ac_pt_PKG_CONFIG in
13247 [\\/]* | ?:[\\/]*)
13248 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
13249 ;;
13250 *)
13251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13252 for as_dir in $PATH
13253 do
13254 IFS=$as_save_IFS
13255 case $as_dir in #(((
13256 '') as_dir=./ ;;
13257 */) ;;
13258 *) as_dir=$as_dir/ ;;
13259 esac
13260 for ac_exec_ext in '' $ac_executable_extensions; do
13261 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13262 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
13263 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
13264 break 2
13265 fi
13266 done
13267 done
13268 IFS=$as_save_IFS
13269
13270 ;;
13271 esac
13272 fi
13273 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
13274 if test -n "$ac_pt_PKG_CONFIG"; then
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
13276 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
13277 else
13278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13279 printf "%s\n" "no" >&6; }
13280 fi
13281
13282 if test "x$ac_pt_PKG_CONFIG" = x; then
13283 PKG_CONFIG=""
13284 else
13285 case $cross_compiling:$ac_tool_warned in
13286 yes:)
13287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13288 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13289 ac_tool_warned=yes ;;
13290 esac
13291 PKG_CONFIG=$ac_pt_PKG_CONFIG
13292 fi
13293 else
13294 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
13295 fi
13296
13297 fi
13298 if test -n "$PKG_CONFIG"; then
13299 _pkg_min_version=0.9.0
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
13301 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
13302 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
13303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13304 printf "%s\n" "yes" >&6; }
13305 else
13306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13307 printf "%s\n" "no" >&6; }
13308 PKG_CONFIG=""
13309 fi
13310 fi
13311
13312
13313
13314
13315
13316 # Check whether --enable-selective-werror was given.
13317 if test ${enable_selective_werror+y}
13318 then :
13319 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
13320 else $as_nop
13321 SELECTIVE_WERROR=yes
13322 fi
13323
13324
13325
13326
13327
13328 # -v is too short to test reliably with XORG_TESTSET_CFLAG
13329 if test "x$SUNCC" = "xyes"; then
13330 BASE_CFLAGS="-v"
13331 else
13332 BASE_CFLAGS=""
13333 fi
13334
13335 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349 xorg_testset_save_CFLAGS="$CFLAGS"
13350
13351 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13352 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13354 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13355 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13356 then :
13357 printf %s "(cached) " >&6
13358 else $as_nop
13359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13360 /* end confdefs.h. */
13361 int i;
13362 _ACEOF
13363 if ac_fn_c_try_compile "$LINENO"
13364 then :
13365 xorg_cv_cc_flag_unknown_warning_option=yes
13366 else $as_nop
13367 xorg_cv_cc_flag_unknown_warning_option=no
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13370 fi
13371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13372 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13373 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13374 CFLAGS="$xorg_testset_save_CFLAGS"
13375 fi
13376
13377 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13378 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13379 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13380 fi
13381 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13383 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13384 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13385 then :
13386 printf %s "(cached) " >&6
13387 else $as_nop
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 int i;
13391 _ACEOF
13392 if ac_fn_c_try_compile "$LINENO"
13393 then :
13394 xorg_cv_cc_flag_unused_command_line_argument=yes
13395 else $as_nop
13396 xorg_cv_cc_flag_unused_command_line_argument=no
13397 fi
13398 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13399 fi
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13401 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13402 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13403 CFLAGS="$xorg_testset_save_CFLAGS"
13404 fi
13405
13406 found="no"
13407
13408 if test $found = "no" ; then
13409 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13410 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13411 fi
13412
13413 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13414 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13415 fi
13416
13417 CFLAGS="$CFLAGS -Wall"
13418
13419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
13420 printf %s "checking if $CC supports -Wall... " >&6; }
13421 cacheid=xorg_cv_cc_flag__Wall
13422 if eval test \${$cacheid+y}
13423 then :
13424 printf %s "(cached) " >&6
13425 else $as_nop
13426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13427 /* end confdefs.h. */
13428 int i;
13429 int
13430 main (void)
13431 {
13432
13433 ;
13434 return 0;
13435 }
13436 _ACEOF
13437 if ac_fn_c_try_link "$LINENO"
13438 then :
13439 eval $cacheid=yes
13440 else $as_nop
13441 eval $cacheid=no
13442 fi
13443 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13444 conftest$ac_exeext conftest.$ac_ext
13445 fi
13446
13447
13448 CFLAGS="$xorg_testset_save_CFLAGS"
13449
13450 eval supported=\$$cacheid
13451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13452 printf "%s\n" "$supported" >&6; }
13453 if test "$supported" = "yes" ; then
13454 BASE_CFLAGS="$BASE_CFLAGS -Wall"
13455 found="yes"
13456 fi
13457 fi
13458
13459
13460
13461
13462
13463
13464
13465
13466
13467
13468
13469
13470
13471
13472
13473 xorg_testset_save_CFLAGS="$CFLAGS"
13474
13475 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13478 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13479 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13480 then :
13481 printf %s "(cached) " >&6
13482 else $as_nop
13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484 /* end confdefs.h. */
13485 int i;
13486 _ACEOF
13487 if ac_fn_c_try_compile "$LINENO"
13488 then :
13489 xorg_cv_cc_flag_unknown_warning_option=yes
13490 else $as_nop
13491 xorg_cv_cc_flag_unknown_warning_option=no
13492 fi
13493 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13494 fi
13495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13496 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13498 CFLAGS="$xorg_testset_save_CFLAGS"
13499 fi
13500
13501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13504 fi
13505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13507 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13508 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13509 then :
13510 printf %s "(cached) " >&6
13511 else $as_nop
13512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13513 /* end confdefs.h. */
13514 int i;
13515 _ACEOF
13516 if ac_fn_c_try_compile "$LINENO"
13517 then :
13518 xorg_cv_cc_flag_unused_command_line_argument=yes
13519 else $as_nop
13520 xorg_cv_cc_flag_unused_command_line_argument=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13523 fi
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13525 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13526 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13527 CFLAGS="$xorg_testset_save_CFLAGS"
13528 fi
13529
13530 found="no"
13531
13532 if test $found = "no" ; then
13533 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13534 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13535 fi
13536
13537 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13538 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13539 fi
13540
13541 CFLAGS="$CFLAGS -Wpointer-arith"
13542
13543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
13544 printf %s "checking if $CC supports -Wpointer-arith... " >&6; }
13545 cacheid=xorg_cv_cc_flag__Wpointer_arith
13546 if eval test \${$cacheid+y}
13547 then :
13548 printf %s "(cached) " >&6
13549 else $as_nop
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552 int i;
13553 int
13554 main (void)
13555 {
13556
13557 ;
13558 return 0;
13559 }
13560 _ACEOF
13561 if ac_fn_c_try_link "$LINENO"
13562 then :
13563 eval $cacheid=yes
13564 else $as_nop
13565 eval $cacheid=no
13566 fi
13567 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13568 conftest$ac_exeext conftest.$ac_ext
13569 fi
13570
13571
13572 CFLAGS="$xorg_testset_save_CFLAGS"
13573
13574 eval supported=\$$cacheid
13575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13576 printf "%s\n" "$supported" >&6; }
13577 if test "$supported" = "yes" ; then
13578 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
13579 found="yes"
13580 fi
13581 fi
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597 xorg_testset_save_CFLAGS="$CFLAGS"
13598
13599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13602 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13603 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13604 then :
13605 printf %s "(cached) " >&6
13606 else $as_nop
13607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h. */
13609 int i;
13610 _ACEOF
13611 if ac_fn_c_try_compile "$LINENO"
13612 then :
13613 xorg_cv_cc_flag_unknown_warning_option=yes
13614 else $as_nop
13615 xorg_cv_cc_flag_unknown_warning_option=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13618 fi
13619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13620 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13621 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13622 CFLAGS="$xorg_testset_save_CFLAGS"
13623 fi
13624
13625 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13628 fi
13629 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13631 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13632 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13633 then :
13634 printf %s "(cached) " >&6
13635 else $as_nop
13636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13637 /* end confdefs.h. */
13638 int i;
13639 _ACEOF
13640 if ac_fn_c_try_compile "$LINENO"
13641 then :
13642 xorg_cv_cc_flag_unused_command_line_argument=yes
13643 else $as_nop
13644 xorg_cv_cc_flag_unused_command_line_argument=no
13645 fi
13646 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13647 fi
13648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13649 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13650 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13651 CFLAGS="$xorg_testset_save_CFLAGS"
13652 fi
13653
13654 found="no"
13655
13656 if test $found = "no" ; then
13657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13659 fi
13660
13661 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13662 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13663 fi
13664
13665 CFLAGS="$CFLAGS -Wmissing-declarations"
13666
13667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
13668 printf %s "checking if $CC supports -Wmissing-declarations... " >&6; }
13669 cacheid=xorg_cv_cc_flag__Wmissing_declarations
13670 if eval test \${$cacheid+y}
13671 then :
13672 printf %s "(cached) " >&6
13673 else $as_nop
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13676 int i;
13677 int
13678 main (void)
13679 {
13680
13681 ;
13682 return 0;
13683 }
13684 _ACEOF
13685 if ac_fn_c_try_link "$LINENO"
13686 then :
13687 eval $cacheid=yes
13688 else $as_nop
13689 eval $cacheid=no
13690 fi
13691 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13692 conftest$ac_exeext conftest.$ac_ext
13693 fi
13694
13695
13696 CFLAGS="$xorg_testset_save_CFLAGS"
13697
13698 eval supported=\$$cacheid
13699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13700 printf "%s\n" "$supported" >&6; }
13701 if test "$supported" = "yes" ; then
13702 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
13703 found="yes"
13704 fi
13705 fi
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721 xorg_testset_save_CFLAGS="$CFLAGS"
13722
13723 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13724 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13726 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13727 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13728 then :
13729 printf %s "(cached) " >&6
13730 else $as_nop
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 int i;
13734 _ACEOF
13735 if ac_fn_c_try_compile "$LINENO"
13736 then :
13737 xorg_cv_cc_flag_unknown_warning_option=yes
13738 else $as_nop
13739 xorg_cv_cc_flag_unknown_warning_option=no
13740 fi
13741 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13742 fi
13743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13744 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13745 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13746 CFLAGS="$xorg_testset_save_CFLAGS"
13747 fi
13748
13749 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13750 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13752 fi
13753 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13755 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13756 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13757 then :
13758 printf %s "(cached) " >&6
13759 else $as_nop
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762 int i;
13763 _ACEOF
13764 if ac_fn_c_try_compile "$LINENO"
13765 then :
13766 xorg_cv_cc_flag_unused_command_line_argument=yes
13767 else $as_nop
13768 xorg_cv_cc_flag_unused_command_line_argument=no
13769 fi
13770 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13771 fi
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13773 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13774 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13775 CFLAGS="$xorg_testset_save_CFLAGS"
13776 fi
13777
13778 found="no"
13779
13780 if test $found = "no" ; then
13781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13783 fi
13784
13785 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13786 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13787 fi
13788
13789 CFLAGS="$CFLAGS -Wformat=2"
13790
13791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
13792 printf %s "checking if $CC supports -Wformat=2... " >&6; }
13793 cacheid=xorg_cv_cc_flag__Wformat_2
13794 if eval test \${$cacheid+y}
13795 then :
13796 printf %s "(cached) " >&6
13797 else $as_nop
13798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13799 /* end confdefs.h. */
13800 int i;
13801 int
13802 main (void)
13803 {
13804
13805 ;
13806 return 0;
13807 }
13808 _ACEOF
13809 if ac_fn_c_try_link "$LINENO"
13810 then :
13811 eval $cacheid=yes
13812 else $as_nop
13813 eval $cacheid=no
13814 fi
13815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13816 conftest$ac_exeext conftest.$ac_ext
13817 fi
13818
13819
13820 CFLAGS="$xorg_testset_save_CFLAGS"
13821
13822 eval supported=\$$cacheid
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13824 printf "%s\n" "$supported" >&6; }
13825 if test "$supported" = "yes" ; then
13826 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
13827 found="yes"
13828 fi
13829 fi
13830
13831 if test $found = "no" ; then
13832 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13833 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13834 fi
13835
13836 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13837 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13838 fi
13839
13840 CFLAGS="$CFLAGS -Wformat"
13841
13842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
13843 printf %s "checking if $CC supports -Wformat... " >&6; }
13844 cacheid=xorg_cv_cc_flag__Wformat
13845 if eval test \${$cacheid+y}
13846 then :
13847 printf %s "(cached) " >&6
13848 else $as_nop
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 int i;
13852 int
13853 main (void)
13854 {
13855
13856 ;
13857 return 0;
13858 }
13859 _ACEOF
13860 if ac_fn_c_try_link "$LINENO"
13861 then :
13862 eval $cacheid=yes
13863 else $as_nop
13864 eval $cacheid=no
13865 fi
13866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13867 conftest$ac_exeext conftest.$ac_ext
13868 fi
13869
13870
13871 CFLAGS="$xorg_testset_save_CFLAGS"
13872
13873 eval supported=\$$cacheid
13874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13875 printf "%s\n" "$supported" >&6; }
13876 if test "$supported" = "yes" ; then
13877 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
13878 found="yes"
13879 fi
13880 fi
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895
13896
13897
13898 xorg_testset_save_CFLAGS="$CFLAGS"
13899
13900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13903 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13904 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
13905 then :
13906 printf %s "(cached) " >&6
13907 else $as_nop
13908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13909 /* end confdefs.h. */
13910 int i;
13911 _ACEOF
13912 if ac_fn_c_try_compile "$LINENO"
13913 then :
13914 xorg_cv_cc_flag_unknown_warning_option=yes
13915 else $as_nop
13916 xorg_cv_cc_flag_unknown_warning_option=no
13917 fi
13918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13919 fi
13920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13921 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13923 CFLAGS="$xorg_testset_save_CFLAGS"
13924 fi
13925
13926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13929 fi
13930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13932 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13933 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
13934 then :
13935 printf %s "(cached) " >&6
13936 else $as_nop
13937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13938 /* end confdefs.h. */
13939 int i;
13940 _ACEOF
13941 if ac_fn_c_try_compile "$LINENO"
13942 then :
13943 xorg_cv_cc_flag_unused_command_line_argument=yes
13944 else $as_nop
13945 xorg_cv_cc_flag_unused_command_line_argument=no
13946 fi
13947 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13948 fi
13949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13950 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13951 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13952 CFLAGS="$xorg_testset_save_CFLAGS"
13953 fi
13954
13955 found="no"
13956
13957 if test $found = "no" ; then
13958 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13960 fi
13961
13962 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13963 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13964 fi
13965
13966 CFLAGS="$CFLAGS -Wstrict-prototypes"
13967
13968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
13969 printf %s "checking if $CC supports -Wstrict-prototypes... " >&6; }
13970 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
13971 if eval test \${$cacheid+y}
13972 then :
13973 printf %s "(cached) " >&6
13974 else $as_nop
13975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13976 /* end confdefs.h. */
13977 int i;
13978 int
13979 main (void)
13980 {
13981
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 if ac_fn_c_try_link "$LINENO"
13987 then :
13988 eval $cacheid=yes
13989 else $as_nop
13990 eval $cacheid=no
13991 fi
13992 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13993 conftest$ac_exeext conftest.$ac_ext
13994 fi
13995
13996
13997 CFLAGS="$xorg_testset_save_CFLAGS"
13998
13999 eval supported=\$$cacheid
14000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14001 printf "%s\n" "$supported" >&6; }
14002 if test "$supported" = "yes" ; then
14003 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
14004 found="yes"
14005 fi
14006 fi
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022 xorg_testset_save_CFLAGS="$CFLAGS"
14023
14024 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14025 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14027 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14028 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14029 then :
14030 printf %s "(cached) " >&6
14031 else $as_nop
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14034 int i;
14035 _ACEOF
14036 if ac_fn_c_try_compile "$LINENO"
14037 then :
14038 xorg_cv_cc_flag_unknown_warning_option=yes
14039 else $as_nop
14040 xorg_cv_cc_flag_unknown_warning_option=no
14041 fi
14042 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14043 fi
14044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14045 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14046 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14047 CFLAGS="$xorg_testset_save_CFLAGS"
14048 fi
14049
14050 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14053 fi
14054 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14056 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14057 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14058 then :
14059 printf %s "(cached) " >&6
14060 else $as_nop
14061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14062 /* end confdefs.h. */
14063 int i;
14064 _ACEOF
14065 if ac_fn_c_try_compile "$LINENO"
14066 then :
14067 xorg_cv_cc_flag_unused_command_line_argument=yes
14068 else $as_nop
14069 xorg_cv_cc_flag_unused_command_line_argument=no
14070 fi
14071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14072 fi
14073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14074 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14075 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14076 CFLAGS="$xorg_testset_save_CFLAGS"
14077 fi
14078
14079 found="no"
14080
14081 if test $found = "no" ; then
14082 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14084 fi
14085
14086 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14087 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14088 fi
14089
14090 CFLAGS="$CFLAGS -Wmissing-prototypes"
14091
14092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
14093 printf %s "checking if $CC supports -Wmissing-prototypes... " >&6; }
14094 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
14095 if eval test \${$cacheid+y}
14096 then :
14097 printf %s "(cached) " >&6
14098 else $as_nop
14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14100 /* end confdefs.h. */
14101 int i;
14102 int
14103 main (void)
14104 {
14105
14106 ;
14107 return 0;
14108 }
14109 _ACEOF
14110 if ac_fn_c_try_link "$LINENO"
14111 then :
14112 eval $cacheid=yes
14113 else $as_nop
14114 eval $cacheid=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14117 conftest$ac_exeext conftest.$ac_ext
14118 fi
14119
14120
14121 CFLAGS="$xorg_testset_save_CFLAGS"
14122
14123 eval supported=\$$cacheid
14124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14125 printf "%s\n" "$supported" >&6; }
14126 if test "$supported" = "yes" ; then
14127 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
14128 found="yes"
14129 fi
14130 fi
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142
14143
14144
14145
14146 xorg_testset_save_CFLAGS="$CFLAGS"
14147
14148 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14151 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14152 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14153 then :
14154 printf %s "(cached) " >&6
14155 else $as_nop
14156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14157 /* end confdefs.h. */
14158 int i;
14159 _ACEOF
14160 if ac_fn_c_try_compile "$LINENO"
14161 then :
14162 xorg_cv_cc_flag_unknown_warning_option=yes
14163 else $as_nop
14164 xorg_cv_cc_flag_unknown_warning_option=no
14165 fi
14166 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14167 fi
14168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14169 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14170 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14171 CFLAGS="$xorg_testset_save_CFLAGS"
14172 fi
14173
14174 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14177 fi
14178 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14180 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14181 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14182 then :
14183 printf %s "(cached) " >&6
14184 else $as_nop
14185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14186 /* end confdefs.h. */
14187 int i;
14188 _ACEOF
14189 if ac_fn_c_try_compile "$LINENO"
14190 then :
14191 xorg_cv_cc_flag_unused_command_line_argument=yes
14192 else $as_nop
14193 xorg_cv_cc_flag_unused_command_line_argument=no
14194 fi
14195 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14196 fi
14197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14198 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14199 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14200 CFLAGS="$xorg_testset_save_CFLAGS"
14201 fi
14202
14203 found="no"
14204
14205 if test $found = "no" ; then
14206 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14207 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14208 fi
14209
14210 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14212 fi
14213
14214 CFLAGS="$CFLAGS -Wnested-externs"
14215
14216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
14217 printf %s "checking if $CC supports -Wnested-externs... " >&6; }
14218 cacheid=xorg_cv_cc_flag__Wnested_externs
14219 if eval test \${$cacheid+y}
14220 then :
14221 printf %s "(cached) " >&6
14222 else $as_nop
14223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14224 /* end confdefs.h. */
14225 int i;
14226 int
14227 main (void)
14228 {
14229
14230 ;
14231 return 0;
14232 }
14233 _ACEOF
14234 if ac_fn_c_try_link "$LINENO"
14235 then :
14236 eval $cacheid=yes
14237 else $as_nop
14238 eval $cacheid=no
14239 fi
14240 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14241 conftest$ac_exeext conftest.$ac_ext
14242 fi
14243
14244
14245 CFLAGS="$xorg_testset_save_CFLAGS"
14246
14247 eval supported=\$$cacheid
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14249 printf "%s\n" "$supported" >&6; }
14250 if test "$supported" = "yes" ; then
14251 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
14252 found="yes"
14253 fi
14254 fi
14255
14256
14257
14258
14259
14260
14261
14262
14263
14264
14265
14266
14267
14268
14269
14270 xorg_testset_save_CFLAGS="$CFLAGS"
14271
14272 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14273 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14275 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14276 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14277 then :
14278 printf %s "(cached) " >&6
14279 else $as_nop
14280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14281 /* end confdefs.h. */
14282 int i;
14283 _ACEOF
14284 if ac_fn_c_try_compile "$LINENO"
14285 then :
14286 xorg_cv_cc_flag_unknown_warning_option=yes
14287 else $as_nop
14288 xorg_cv_cc_flag_unknown_warning_option=no
14289 fi
14290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14291 fi
14292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14293 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14294 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14295 CFLAGS="$xorg_testset_save_CFLAGS"
14296 fi
14297
14298 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14301 fi
14302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14304 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14305 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14306 then :
14307 printf %s "(cached) " >&6
14308 else $as_nop
14309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14310 /* end confdefs.h. */
14311 int i;
14312 _ACEOF
14313 if ac_fn_c_try_compile "$LINENO"
14314 then :
14315 xorg_cv_cc_flag_unused_command_line_argument=yes
14316 else $as_nop
14317 xorg_cv_cc_flag_unused_command_line_argument=no
14318 fi
14319 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14320 fi
14321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14322 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14323 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14324 CFLAGS="$xorg_testset_save_CFLAGS"
14325 fi
14326
14327 found="no"
14328
14329 if test $found = "no" ; then
14330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14332 fi
14333
14334 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14335 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14336 fi
14337
14338 CFLAGS="$CFLAGS -Wbad-function-cast"
14339
14340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
14341 printf %s "checking if $CC supports -Wbad-function-cast... " >&6; }
14342 cacheid=xorg_cv_cc_flag__Wbad_function_cast
14343 if eval test \${$cacheid+y}
14344 then :
14345 printf %s "(cached) " >&6
14346 else $as_nop
14347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14348 /* end confdefs.h. */
14349 int i;
14350 int
14351 main (void)
14352 {
14353
14354 ;
14355 return 0;
14356 }
14357 _ACEOF
14358 if ac_fn_c_try_link "$LINENO"
14359 then :
14360 eval $cacheid=yes
14361 else $as_nop
14362 eval $cacheid=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14365 conftest$ac_exeext conftest.$ac_ext
14366 fi
14367
14368
14369 CFLAGS="$xorg_testset_save_CFLAGS"
14370
14371 eval supported=\$$cacheid
14372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14373 printf "%s\n" "$supported" >&6; }
14374 if test "$supported" = "yes" ; then
14375 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
14376 found="yes"
14377 fi
14378 fi
14379
14380
14381
14382
14383
14384
14385
14386
14387
14388
14389
14390
14391
14392
14393
14394 xorg_testset_save_CFLAGS="$CFLAGS"
14395
14396 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14397 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14399 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14400 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14401 then :
14402 printf %s "(cached) " >&6
14403 else $as_nop
14404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h. */
14406 int i;
14407 _ACEOF
14408 if ac_fn_c_try_compile "$LINENO"
14409 then :
14410 xorg_cv_cc_flag_unknown_warning_option=yes
14411 else $as_nop
14412 xorg_cv_cc_flag_unknown_warning_option=no
14413 fi
14414 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14415 fi
14416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14417 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14418 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14419 CFLAGS="$xorg_testset_save_CFLAGS"
14420 fi
14421
14422 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14423 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14425 fi
14426 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14428 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14429 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14430 then :
14431 printf %s "(cached) " >&6
14432 else $as_nop
14433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14434 /* end confdefs.h. */
14435 int i;
14436 _ACEOF
14437 if ac_fn_c_try_compile "$LINENO"
14438 then :
14439 xorg_cv_cc_flag_unused_command_line_argument=yes
14440 else $as_nop
14441 xorg_cv_cc_flag_unused_command_line_argument=no
14442 fi
14443 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14444 fi
14445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14446 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14447 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14448 CFLAGS="$xorg_testset_save_CFLAGS"
14449 fi
14450
14451 found="no"
14452
14453 if test $found = "no" ; then
14454 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14455 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14456 fi
14457
14458 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14459 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14460 fi
14461
14462 CFLAGS="$CFLAGS -Wold-style-definition"
14463
14464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
14465 printf %s "checking if $CC supports -Wold-style-definition... " >&6; }
14466 cacheid=xorg_cv_cc_flag__Wold_style_definition
14467 if eval test \${$cacheid+y}
14468 then :
14469 printf %s "(cached) " >&6
14470 else $as_nop
14471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14472 /* end confdefs.h. */
14473 int i;
14474 int
14475 main (void)
14476 {
14477
14478 ;
14479 return 0;
14480 }
14481 _ACEOF
14482 if ac_fn_c_try_link "$LINENO"
14483 then :
14484 eval $cacheid=yes
14485 else $as_nop
14486 eval $cacheid=no
14487 fi
14488 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14489 conftest$ac_exeext conftest.$ac_ext
14490 fi
14491
14492
14493 CFLAGS="$xorg_testset_save_CFLAGS"
14494
14495 eval supported=\$$cacheid
14496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14497 printf "%s\n" "$supported" >&6; }
14498 if test "$supported" = "yes" ; then
14499 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
14500 found="yes"
14501 fi
14502 fi
14503
14504 if test $found = "no" ; then
14505 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14506 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14507 fi
14508
14509 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14510 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14511 fi
14512
14513 CFLAGS="$CFLAGS -fd"
14514
14515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
14516 printf %s "checking if $CC supports -fd... " >&6; }
14517 cacheid=xorg_cv_cc_flag__fd
14518 if eval test \${$cacheid+y}
14519 then :
14520 printf %s "(cached) " >&6
14521 else $as_nop
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 int i;
14525 int
14526 main (void)
14527 {
14528
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 if ac_fn_c_try_link "$LINENO"
14534 then :
14535 eval $cacheid=yes
14536 else $as_nop
14537 eval $cacheid=no
14538 fi
14539 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14540 conftest$ac_exeext conftest.$ac_ext
14541 fi
14542
14543
14544 CFLAGS="$xorg_testset_save_CFLAGS"
14545
14546 eval supported=\$$cacheid
14547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14548 printf "%s\n" "$supported" >&6; }
14549 if test "$supported" = "yes" ; then
14550 BASE_CFLAGS="$BASE_CFLAGS -fd"
14551 found="yes"
14552 fi
14553 fi
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569 xorg_testset_save_CFLAGS="$CFLAGS"
14570
14571 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14572 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14574 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14575 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14576 then :
14577 printf %s "(cached) " >&6
14578 else $as_nop
14579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14580 /* end confdefs.h. */
14581 int i;
14582 _ACEOF
14583 if ac_fn_c_try_compile "$LINENO"
14584 then :
14585 xorg_cv_cc_flag_unknown_warning_option=yes
14586 else $as_nop
14587 xorg_cv_cc_flag_unknown_warning_option=no
14588 fi
14589 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14590 fi
14591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14592 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14593 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14594 CFLAGS="$xorg_testset_save_CFLAGS"
14595 fi
14596
14597 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14598 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14599 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14600 fi
14601 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14603 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14604 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14605 then :
14606 printf %s "(cached) " >&6
14607 else $as_nop
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14610 int i;
14611 _ACEOF
14612 if ac_fn_c_try_compile "$LINENO"
14613 then :
14614 xorg_cv_cc_flag_unused_command_line_argument=yes
14615 else $as_nop
14616 xorg_cv_cc_flag_unused_command_line_argument=no
14617 fi
14618 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14619 fi
14620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14621 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14622 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14623 CFLAGS="$xorg_testset_save_CFLAGS"
14624 fi
14625
14626 found="no"
14627
14628 if test $found = "no" ; then
14629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14631 fi
14632
14633 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14635 fi
14636
14637 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
14638
14639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
14640 printf %s "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
14641 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
14642 if eval test \${$cacheid+y}
14643 then :
14644 printf %s "(cached) " >&6
14645 else $as_nop
14646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14647 /* end confdefs.h. */
14648 int i;
14649 int
14650 main (void)
14651 {
14652
14653 ;
14654 return 0;
14655 }
14656 _ACEOF
14657 if ac_fn_c_try_link "$LINENO"
14658 then :
14659 eval $cacheid=yes
14660 else $as_nop
14661 eval $cacheid=no
14662 fi
14663 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14664 conftest$ac_exeext conftest.$ac_ext
14665 fi
14666
14667
14668 CFLAGS="$xorg_testset_save_CFLAGS"
14669
14670 eval supported=\$$cacheid
14671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14672 printf "%s\n" "$supported" >&6; }
14673 if test "$supported" = "yes" ; then
14674 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
14675 found="yes"
14676 fi
14677 fi
14678
14679
14680
14681
14682
14683 # This chunk adds additional warnings that could catch undesired effects.
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697 xorg_testset_save_CFLAGS="$CFLAGS"
14698
14699 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14700 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14702 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14703 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14704 then :
14705 printf %s "(cached) " >&6
14706 else $as_nop
14707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14708 /* end confdefs.h. */
14709 int i;
14710 _ACEOF
14711 if ac_fn_c_try_compile "$LINENO"
14712 then :
14713 xorg_cv_cc_flag_unknown_warning_option=yes
14714 else $as_nop
14715 xorg_cv_cc_flag_unknown_warning_option=no
14716 fi
14717 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14718 fi
14719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14720 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14721 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14722 CFLAGS="$xorg_testset_save_CFLAGS"
14723 fi
14724
14725 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14726 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728 fi
14729 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14731 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14732 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14733 then :
14734 printf %s "(cached) " >&6
14735 else $as_nop
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738 int i;
14739 _ACEOF
14740 if ac_fn_c_try_compile "$LINENO"
14741 then :
14742 xorg_cv_cc_flag_unused_command_line_argument=yes
14743 else $as_nop
14744 xorg_cv_cc_flag_unused_command_line_argument=no
14745 fi
14746 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14747 fi
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14749 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14750 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14751 CFLAGS="$xorg_testset_save_CFLAGS"
14752 fi
14753
14754 found="no"
14755
14756 if test $found = "no" ; then
14757 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14758 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14759 fi
14760
14761 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14762 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14763 fi
14764
14765 CFLAGS="$CFLAGS -Wunused"
14766
14767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
14768 printf %s "checking if $CC supports -Wunused... " >&6; }
14769 cacheid=xorg_cv_cc_flag__Wunused
14770 if eval test \${$cacheid+y}
14771 then :
14772 printf %s "(cached) " >&6
14773 else $as_nop
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776 int i;
14777 int
14778 main (void)
14779 {
14780
14781 ;
14782 return 0;
14783 }
14784 _ACEOF
14785 if ac_fn_c_try_link "$LINENO"
14786 then :
14787 eval $cacheid=yes
14788 else $as_nop
14789 eval $cacheid=no
14790 fi
14791 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14792 conftest$ac_exeext conftest.$ac_ext
14793 fi
14794
14795
14796 CFLAGS="$xorg_testset_save_CFLAGS"
14797
14798 eval supported=\$$cacheid
14799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14800 printf "%s\n" "$supported" >&6; }
14801 if test "$supported" = "yes" ; then
14802 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
14803 found="yes"
14804 fi
14805 fi
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815
14816
14817
14818
14819
14820
14821 xorg_testset_save_CFLAGS="$CFLAGS"
14822
14823 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14824 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14826 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14827 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14828 then :
14829 printf %s "(cached) " >&6
14830 else $as_nop
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 int i;
14834 _ACEOF
14835 if ac_fn_c_try_compile "$LINENO"
14836 then :
14837 xorg_cv_cc_flag_unknown_warning_option=yes
14838 else $as_nop
14839 xorg_cv_cc_flag_unknown_warning_option=no
14840 fi
14841 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14842 fi
14843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14844 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14845 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14846 CFLAGS="$xorg_testset_save_CFLAGS"
14847 fi
14848
14849 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14850 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14851 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14852 fi
14853 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14855 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14856 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14857 then :
14858 printf %s "(cached) " >&6
14859 else $as_nop
14860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14861 /* end confdefs.h. */
14862 int i;
14863 _ACEOF
14864 if ac_fn_c_try_compile "$LINENO"
14865 then :
14866 xorg_cv_cc_flag_unused_command_line_argument=yes
14867 else $as_nop
14868 xorg_cv_cc_flag_unused_command_line_argument=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14871 fi
14872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14873 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14874 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14875 CFLAGS="$xorg_testset_save_CFLAGS"
14876 fi
14877
14878 found="no"
14879
14880 if test $found = "no" ; then
14881 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14882 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14883 fi
14884
14885 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14886 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14887 fi
14888
14889 CFLAGS="$CFLAGS -Wuninitialized"
14890
14891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
14892 printf %s "checking if $CC supports -Wuninitialized... " >&6; }
14893 cacheid=xorg_cv_cc_flag__Wuninitialized
14894 if eval test \${$cacheid+y}
14895 then :
14896 printf %s "(cached) " >&6
14897 else $as_nop
14898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14899 /* end confdefs.h. */
14900 int i;
14901 int
14902 main (void)
14903 {
14904
14905 ;
14906 return 0;
14907 }
14908 _ACEOF
14909 if ac_fn_c_try_link "$LINENO"
14910 then :
14911 eval $cacheid=yes
14912 else $as_nop
14913 eval $cacheid=no
14914 fi
14915 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14916 conftest$ac_exeext conftest.$ac_ext
14917 fi
14918
14919
14920 CFLAGS="$xorg_testset_save_CFLAGS"
14921
14922 eval supported=\$$cacheid
14923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14924 printf "%s\n" "$supported" >&6; }
14925 if test "$supported" = "yes" ; then
14926 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
14927 found="yes"
14928 fi
14929 fi
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945 xorg_testset_save_CFLAGS="$CFLAGS"
14946
14947 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14948 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14950 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14951 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
14952 then :
14953 printf %s "(cached) " >&6
14954 else $as_nop
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 int i;
14958 _ACEOF
14959 if ac_fn_c_try_compile "$LINENO"
14960 then :
14961 xorg_cv_cc_flag_unknown_warning_option=yes
14962 else $as_nop
14963 xorg_cv_cc_flag_unknown_warning_option=no
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14966 fi
14967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14968 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14970 CFLAGS="$xorg_testset_save_CFLAGS"
14971 fi
14972
14973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14976 fi
14977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14979 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14980 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
14981 then :
14982 printf %s "(cached) " >&6
14983 else $as_nop
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986 int i;
14987 _ACEOF
14988 if ac_fn_c_try_compile "$LINENO"
14989 then :
14990 xorg_cv_cc_flag_unused_command_line_argument=yes
14991 else $as_nop
14992 xorg_cv_cc_flag_unused_command_line_argument=no
14993 fi
14994 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14995 fi
14996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14997 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14998 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14999 CFLAGS="$xorg_testset_save_CFLAGS"
15000 fi
15001
15002 found="no"
15003
15004 if test $found = "no" ; then
15005 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15007 fi
15008
15009 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15010 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15011 fi
15012
15013 CFLAGS="$CFLAGS -Wshadow"
15014
15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
15016 printf %s "checking if $CC supports -Wshadow... " >&6; }
15017 cacheid=xorg_cv_cc_flag__Wshadow
15018 if eval test \${$cacheid+y}
15019 then :
15020 printf %s "(cached) " >&6
15021 else $as_nop
15022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15023 /* end confdefs.h. */
15024 int i;
15025 int
15026 main (void)
15027 {
15028
15029 ;
15030 return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_link "$LINENO"
15034 then :
15035 eval $cacheid=yes
15036 else $as_nop
15037 eval $cacheid=no
15038 fi
15039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15040 conftest$ac_exeext conftest.$ac_ext
15041 fi
15042
15043
15044 CFLAGS="$xorg_testset_save_CFLAGS"
15045
15046 eval supported=\$$cacheid
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15048 printf "%s\n" "$supported" >&6; }
15049 if test "$supported" = "yes" ; then
15050 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
15051 found="yes"
15052 fi
15053 fi
15054
15055
15056
15057
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069 xorg_testset_save_CFLAGS="$CFLAGS"
15070
15071 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15072 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15074 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15075 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15076 then :
15077 printf %s "(cached) " >&6
15078 else $as_nop
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15080 /* end confdefs.h. */
15081 int i;
15082 _ACEOF
15083 if ac_fn_c_try_compile "$LINENO"
15084 then :
15085 xorg_cv_cc_flag_unknown_warning_option=yes
15086 else $as_nop
15087 xorg_cv_cc_flag_unknown_warning_option=no
15088 fi
15089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15090 fi
15091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15092 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15094 CFLAGS="$xorg_testset_save_CFLAGS"
15095 fi
15096
15097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15100 fi
15101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15103 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15104 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15105 then :
15106 printf %s "(cached) " >&6
15107 else $as_nop
15108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15109 /* end confdefs.h. */
15110 int i;
15111 _ACEOF
15112 if ac_fn_c_try_compile "$LINENO"
15113 then :
15114 xorg_cv_cc_flag_unused_command_line_argument=yes
15115 else $as_nop
15116 xorg_cv_cc_flag_unused_command_line_argument=no
15117 fi
15118 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15119 fi
15120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15121 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15122 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15123 CFLAGS="$xorg_testset_save_CFLAGS"
15124 fi
15125
15126 found="no"
15127
15128 if test $found = "no" ; then
15129 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15130 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15131 fi
15132
15133 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15134 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15135 fi
15136
15137 CFLAGS="$CFLAGS -Wmissing-noreturn"
15138
15139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
15140 printf %s "checking if $CC supports -Wmissing-noreturn... " >&6; }
15141 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
15142 if eval test \${$cacheid+y}
15143 then :
15144 printf %s "(cached) " >&6
15145 else $as_nop
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 int i;
15149 int
15150 main (void)
15151 {
15152
15153 ;
15154 return 0;
15155 }
15156 _ACEOF
15157 if ac_fn_c_try_link "$LINENO"
15158 then :
15159 eval $cacheid=yes
15160 else $as_nop
15161 eval $cacheid=no
15162 fi
15163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15164 conftest$ac_exeext conftest.$ac_ext
15165 fi
15166
15167
15168 CFLAGS="$xorg_testset_save_CFLAGS"
15169
15170 eval supported=\$$cacheid
15171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15172 printf "%s\n" "$supported" >&6; }
15173 if test "$supported" = "yes" ; then
15174 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
15175 found="yes"
15176 fi
15177 fi
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193 xorg_testset_save_CFLAGS="$CFLAGS"
15194
15195 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15196 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15198 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15199 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15200 then :
15201 printf %s "(cached) " >&6
15202 else $as_nop
15203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15204 /* end confdefs.h. */
15205 int i;
15206 _ACEOF
15207 if ac_fn_c_try_compile "$LINENO"
15208 then :
15209 xorg_cv_cc_flag_unknown_warning_option=yes
15210 else $as_nop
15211 xorg_cv_cc_flag_unknown_warning_option=no
15212 fi
15213 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15214 fi
15215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15216 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15217 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15218 CFLAGS="$xorg_testset_save_CFLAGS"
15219 fi
15220
15221 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15222 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15223 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15224 fi
15225 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15227 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15228 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15229 then :
15230 printf %s "(cached) " >&6
15231 else $as_nop
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 int i;
15235 _ACEOF
15236 if ac_fn_c_try_compile "$LINENO"
15237 then :
15238 xorg_cv_cc_flag_unused_command_line_argument=yes
15239 else $as_nop
15240 xorg_cv_cc_flag_unused_command_line_argument=no
15241 fi
15242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15243 fi
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15245 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15247 CFLAGS="$xorg_testset_save_CFLAGS"
15248 fi
15249
15250 found="no"
15251
15252 if test $found = "no" ; then
15253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15255 fi
15256
15257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15259 fi
15260
15261 CFLAGS="$CFLAGS -Wmissing-format-attribute"
15262
15263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
15264 printf %s "checking if $CC supports -Wmissing-format-attribute... " >&6; }
15265 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
15266 if eval test \${$cacheid+y}
15267 then :
15268 printf %s "(cached) " >&6
15269 else $as_nop
15270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15271 /* end confdefs.h. */
15272 int i;
15273 int
15274 main (void)
15275 {
15276
15277 ;
15278 return 0;
15279 }
15280 _ACEOF
15281 if ac_fn_c_try_link "$LINENO"
15282 then :
15283 eval $cacheid=yes
15284 else $as_nop
15285 eval $cacheid=no
15286 fi
15287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15288 conftest$ac_exeext conftest.$ac_ext
15289 fi
15290
15291
15292 CFLAGS="$xorg_testset_save_CFLAGS"
15293
15294 eval supported=\$$cacheid
15295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15296 printf "%s\n" "$supported" >&6; }
15297 if test "$supported" = "yes" ; then
15298 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
15299 found="yes"
15300 fi
15301 fi
15302
15303
15304
15305
15306
15307
15308
15309
15310
15311
15312
15313
15314
15315
15316
15317 xorg_testset_save_CFLAGS="$CFLAGS"
15318
15319 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15320 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15322 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15323 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15324 then :
15325 printf %s "(cached) " >&6
15326 else $as_nop
15327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15328 /* end confdefs.h. */
15329 int i;
15330 _ACEOF
15331 if ac_fn_c_try_compile "$LINENO"
15332 then :
15333 xorg_cv_cc_flag_unknown_warning_option=yes
15334 else $as_nop
15335 xorg_cv_cc_flag_unknown_warning_option=no
15336 fi
15337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15338 fi
15339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15340 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15342 CFLAGS="$xorg_testset_save_CFLAGS"
15343 fi
15344
15345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15348 fi
15349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15351 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15352 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15353 then :
15354 printf %s "(cached) " >&6
15355 else $as_nop
15356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15357 /* end confdefs.h. */
15358 int i;
15359 _ACEOF
15360 if ac_fn_c_try_compile "$LINENO"
15361 then :
15362 xorg_cv_cc_flag_unused_command_line_argument=yes
15363 else $as_nop
15364 xorg_cv_cc_flag_unused_command_line_argument=no
15365 fi
15366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15367 fi
15368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15369 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15371 CFLAGS="$xorg_testset_save_CFLAGS"
15372 fi
15373
15374 found="no"
15375
15376 if test $found = "no" ; then
15377 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15379 fi
15380
15381 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15383 fi
15384
15385 CFLAGS="$CFLAGS -Wredundant-decls"
15386
15387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
15388 printf %s "checking if $CC supports -Wredundant-decls... " >&6; }
15389 cacheid=xorg_cv_cc_flag__Wredundant_decls
15390 if eval test \${$cacheid+y}
15391 then :
15392 printf %s "(cached) " >&6
15393 else $as_nop
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15396 int i;
15397 int
15398 main (void)
15399 {
15400
15401 ;
15402 return 0;
15403 }
15404 _ACEOF
15405 if ac_fn_c_try_link "$LINENO"
15406 then :
15407 eval $cacheid=yes
15408 else $as_nop
15409 eval $cacheid=no
15410 fi
15411 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15412 conftest$ac_exeext conftest.$ac_ext
15413 fi
15414
15415
15416 CFLAGS="$xorg_testset_save_CFLAGS"
15417
15418 eval supported=\$$cacheid
15419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15420 printf "%s\n" "$supported" >&6; }
15421 if test "$supported" = "yes" ; then
15422 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
15423 found="yes"
15424 fi
15425 fi
15426
15427
15428
15429
15430
15431
15432
15433
15434
15435
15436
15437
15438
15439
15440
15441 xorg_testset_save_CFLAGS="$CFLAGS"
15442
15443 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15444 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15446 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15447 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15448 then :
15449 printf %s "(cached) " >&6
15450 else $as_nop
15451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452 /* end confdefs.h. */
15453 int i;
15454 _ACEOF
15455 if ac_fn_c_try_compile "$LINENO"
15456 then :
15457 xorg_cv_cc_flag_unknown_warning_option=yes
15458 else $as_nop
15459 xorg_cv_cc_flag_unknown_warning_option=no
15460 fi
15461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15462 fi
15463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15464 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15465 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15466 CFLAGS="$xorg_testset_save_CFLAGS"
15467 fi
15468
15469 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15470 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15471 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15472 fi
15473 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15475 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15476 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15477 then :
15478 printf %s "(cached) " >&6
15479 else $as_nop
15480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15481 /* end confdefs.h. */
15482 int i;
15483 _ACEOF
15484 if ac_fn_c_try_compile "$LINENO"
15485 then :
15486 xorg_cv_cc_flag_unused_command_line_argument=yes
15487 else $as_nop
15488 xorg_cv_cc_flag_unused_command_line_argument=no
15489 fi
15490 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15491 fi
15492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15493 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15494 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15495 CFLAGS="$xorg_testset_save_CFLAGS"
15496 fi
15497
15498 found="no"
15499
15500 if test $found = "no" ; then
15501 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15502 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15503 fi
15504
15505 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15506 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15507 fi
15508
15509 CFLAGS="$CFLAGS -Wlogical-op"
15510
15511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
15512 printf %s "checking if $CC supports -Wlogical-op... " >&6; }
15513 cacheid=xorg_cv_cc_flag__Wlogical_op
15514 if eval test \${$cacheid+y}
15515 then :
15516 printf %s "(cached) " >&6
15517 else $as_nop
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520 int i;
15521 int
15522 main (void)
15523 {
15524
15525 ;
15526 return 0;
15527 }
15528 _ACEOF
15529 if ac_fn_c_try_link "$LINENO"
15530 then :
15531 eval $cacheid=yes
15532 else $as_nop
15533 eval $cacheid=no
15534 fi
15535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15536 conftest$ac_exeext conftest.$ac_ext
15537 fi
15538
15539
15540 CFLAGS="$xorg_testset_save_CFLAGS"
15541
15542 eval supported=\$$cacheid
15543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15544 printf "%s\n" "$supported" >&6; }
15545 if test "$supported" = "yes" ; then
15546 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
15547 found="yes"
15548 fi
15549 fi
15550
15551
15552
15553 # These are currently disabled because they are noisy. They will be enabled
15554 # in the future once the codebase is sufficiently modernized to silence
15555 # them. For now, I don't want them to drown out the other warnings.
15556 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
15557 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
15558 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
15559
15560 # Turn some warnings into errors, so we don't accidently get successful builds
15561 # when there are problems that should be fixed.
15562
15563 if test "x$SELECTIVE_WERROR" = "xyes" ; then
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577 xorg_testset_save_CFLAGS="$CFLAGS"
15578
15579 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15582 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15583 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15584 then :
15585 printf %s "(cached) " >&6
15586 else $as_nop
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 int i;
15590 _ACEOF
15591 if ac_fn_c_try_compile "$LINENO"
15592 then :
15593 xorg_cv_cc_flag_unknown_warning_option=yes
15594 else $as_nop
15595 xorg_cv_cc_flag_unknown_warning_option=no
15596 fi
15597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15598 fi
15599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15600 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15601 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15602 CFLAGS="$xorg_testset_save_CFLAGS"
15603 fi
15604
15605 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15606 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15608 fi
15609 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15611 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15612 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15613 then :
15614 printf %s "(cached) " >&6
15615 else $as_nop
15616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15617 /* end confdefs.h. */
15618 int i;
15619 _ACEOF
15620 if ac_fn_c_try_compile "$LINENO"
15621 then :
15622 xorg_cv_cc_flag_unused_command_line_argument=yes
15623 else $as_nop
15624 xorg_cv_cc_flag_unused_command_line_argument=no
15625 fi
15626 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15627 fi
15628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15629 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15630 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15631 CFLAGS="$xorg_testset_save_CFLAGS"
15632 fi
15633
15634 found="no"
15635
15636 if test $found = "no" ; then
15637 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15638 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15639 fi
15640
15641 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15642 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15643 fi
15644
15645 CFLAGS="$CFLAGS -Werror=implicit"
15646
15647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
15648 printf %s "checking if $CC supports -Werror=implicit... " >&6; }
15649 cacheid=xorg_cv_cc_flag__Werror_implicit
15650 if eval test \${$cacheid+y}
15651 then :
15652 printf %s "(cached) " >&6
15653 else $as_nop
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656 int i;
15657 int
15658 main (void)
15659 {
15660
15661 ;
15662 return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_link "$LINENO"
15666 then :
15667 eval $cacheid=yes
15668 else $as_nop
15669 eval $cacheid=no
15670 fi
15671 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15672 conftest$ac_exeext conftest.$ac_ext
15673 fi
15674
15675
15676 CFLAGS="$xorg_testset_save_CFLAGS"
15677
15678 eval supported=\$$cacheid
15679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15680 printf "%s\n" "$supported" >&6; }
15681 if test "$supported" = "yes" ; then
15682 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
15683 found="yes"
15684 fi
15685 fi
15686
15687 if test $found = "no" ; then
15688 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15689 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15690 fi
15691
15692 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15693 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15694 fi
15695
15696 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15697
15698 { 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
15699 printf %s "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
15700 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
15701 if eval test \${$cacheid+y}
15702 then :
15703 printf %s "(cached) " >&6
15704 else $as_nop
15705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15706 /* end confdefs.h. */
15707 int i;
15708 int
15709 main (void)
15710 {
15711
15712 ;
15713 return 0;
15714 }
15715 _ACEOF
15716 if ac_fn_c_try_link "$LINENO"
15717 then :
15718 eval $cacheid=yes
15719 else $as_nop
15720 eval $cacheid=no
15721 fi
15722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15723 conftest$ac_exeext conftest.$ac_ext
15724 fi
15725
15726
15727 CFLAGS="$xorg_testset_save_CFLAGS"
15728
15729 eval supported=\$$cacheid
15730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15731 printf "%s\n" "$supported" >&6; }
15732 if test "$supported" = "yes" ; then
15733 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
15734 found="yes"
15735 fi
15736 fi
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752 xorg_testset_save_CFLAGS="$CFLAGS"
15753
15754 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15757 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15758 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15759 then :
15760 printf %s "(cached) " >&6
15761 else $as_nop
15762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15763 /* end confdefs.h. */
15764 int i;
15765 _ACEOF
15766 if ac_fn_c_try_compile "$LINENO"
15767 then :
15768 xorg_cv_cc_flag_unknown_warning_option=yes
15769 else $as_nop
15770 xorg_cv_cc_flag_unknown_warning_option=no
15771 fi
15772 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15773 fi
15774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15775 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15776 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15777 CFLAGS="$xorg_testset_save_CFLAGS"
15778 fi
15779
15780 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15781 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15782 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15783 fi
15784 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15786 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15787 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15788 then :
15789 printf %s "(cached) " >&6
15790 else $as_nop
15791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15792 /* end confdefs.h. */
15793 int i;
15794 _ACEOF
15795 if ac_fn_c_try_compile "$LINENO"
15796 then :
15797 xorg_cv_cc_flag_unused_command_line_argument=yes
15798 else $as_nop
15799 xorg_cv_cc_flag_unused_command_line_argument=no
15800 fi
15801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15802 fi
15803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15804 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15805 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15806 CFLAGS="$xorg_testset_save_CFLAGS"
15807 fi
15808
15809 found="no"
15810
15811 if test $found = "no" ; then
15812 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15813 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15814 fi
15815
15816 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15817 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15818 fi
15819
15820 CFLAGS="$CFLAGS -Werror=nonnull"
15821
15822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
15823 printf %s "checking if $CC supports -Werror=nonnull... " >&6; }
15824 cacheid=xorg_cv_cc_flag__Werror_nonnull
15825 if eval test \${$cacheid+y}
15826 then :
15827 printf %s "(cached) " >&6
15828 else $as_nop
15829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15830 /* end confdefs.h. */
15831 int i;
15832 int
15833 main (void)
15834 {
15835
15836 ;
15837 return 0;
15838 }
15839 _ACEOF
15840 if ac_fn_c_try_link "$LINENO"
15841 then :
15842 eval $cacheid=yes
15843 else $as_nop
15844 eval $cacheid=no
15845 fi
15846 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15847 conftest$ac_exeext conftest.$ac_ext
15848 fi
15849
15850
15851 CFLAGS="$xorg_testset_save_CFLAGS"
15852
15853 eval supported=\$$cacheid
15854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15855 printf "%s\n" "$supported" >&6; }
15856 if test "$supported" = "yes" ; then
15857 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
15858 found="yes"
15859 fi
15860 fi
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876 xorg_testset_save_CFLAGS="$CFLAGS"
15877
15878 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15879 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15881 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15882 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
15883 then :
15884 printf %s "(cached) " >&6
15885 else $as_nop
15886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15887 /* end confdefs.h. */
15888 int i;
15889 _ACEOF
15890 if ac_fn_c_try_compile "$LINENO"
15891 then :
15892 xorg_cv_cc_flag_unknown_warning_option=yes
15893 else $as_nop
15894 xorg_cv_cc_flag_unknown_warning_option=no
15895 fi
15896 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15897 fi
15898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15899 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15900 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15901 CFLAGS="$xorg_testset_save_CFLAGS"
15902 fi
15903
15904 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15905 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15907 fi
15908 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15910 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15911 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
15912 then :
15913 printf %s "(cached) " >&6
15914 else $as_nop
15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15916 /* end confdefs.h. */
15917 int i;
15918 _ACEOF
15919 if ac_fn_c_try_compile "$LINENO"
15920 then :
15921 xorg_cv_cc_flag_unused_command_line_argument=yes
15922 else $as_nop
15923 xorg_cv_cc_flag_unused_command_line_argument=no
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15926 fi
15927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15928 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15929 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15930 CFLAGS="$xorg_testset_save_CFLAGS"
15931 fi
15932
15933 found="no"
15934
15935 if test $found = "no" ; then
15936 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15937 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15938 fi
15939
15940 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15941 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15942 fi
15943
15944 CFLAGS="$CFLAGS -Werror=init-self"
15945
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
15947 printf %s "checking if $CC supports -Werror=init-self... " >&6; }
15948 cacheid=xorg_cv_cc_flag__Werror_init_self
15949 if eval test \${$cacheid+y}
15950 then :
15951 printf %s "(cached) " >&6
15952 else $as_nop
15953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15954 /* end confdefs.h. */
15955 int i;
15956 int
15957 main (void)
15958 {
15959
15960 ;
15961 return 0;
15962 }
15963 _ACEOF
15964 if ac_fn_c_try_link "$LINENO"
15965 then :
15966 eval $cacheid=yes
15967 else $as_nop
15968 eval $cacheid=no
15969 fi
15970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15971 conftest$ac_exeext conftest.$ac_ext
15972 fi
15973
15974
15975 CFLAGS="$xorg_testset_save_CFLAGS"
15976
15977 eval supported=\$$cacheid
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15979 printf "%s\n" "$supported" >&6; }
15980 if test "$supported" = "yes" ; then
15981 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
15982 found="yes"
15983 fi
15984 fi
15985
15986
15987
15988
15989
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000 xorg_testset_save_CFLAGS="$CFLAGS"
16001
16002 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16003 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16005 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16006 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16007 then :
16008 printf %s "(cached) " >&6
16009 else $as_nop
16010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16011 /* end confdefs.h. */
16012 int i;
16013 _ACEOF
16014 if ac_fn_c_try_compile "$LINENO"
16015 then :
16016 xorg_cv_cc_flag_unknown_warning_option=yes
16017 else $as_nop
16018 xorg_cv_cc_flag_unknown_warning_option=no
16019 fi
16020 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16021 fi
16022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16023 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16024 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16025 CFLAGS="$xorg_testset_save_CFLAGS"
16026 fi
16027
16028 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16029 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16030 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16031 fi
16032 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16034 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16035 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16036 then :
16037 printf %s "(cached) " >&6
16038 else $as_nop
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16041 int i;
16042 _ACEOF
16043 if ac_fn_c_try_compile "$LINENO"
16044 then :
16045 xorg_cv_cc_flag_unused_command_line_argument=yes
16046 else $as_nop
16047 xorg_cv_cc_flag_unused_command_line_argument=no
16048 fi
16049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16050 fi
16051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16052 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16053 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16054 CFLAGS="$xorg_testset_save_CFLAGS"
16055 fi
16056
16057 found="no"
16058
16059 if test $found = "no" ; then
16060 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16061 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16062 fi
16063
16064 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16065 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16066 fi
16067
16068 CFLAGS="$CFLAGS -Werror=main"
16069
16070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
16071 printf %s "checking if $CC supports -Werror=main... " >&6; }
16072 cacheid=xorg_cv_cc_flag__Werror_main
16073 if eval test \${$cacheid+y}
16074 then :
16075 printf %s "(cached) " >&6
16076 else $as_nop
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079 int i;
16080 int
16081 main (void)
16082 {
16083
16084 ;
16085 return 0;
16086 }
16087 _ACEOF
16088 if ac_fn_c_try_link "$LINENO"
16089 then :
16090 eval $cacheid=yes
16091 else $as_nop
16092 eval $cacheid=no
16093 fi
16094 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16095 conftest$ac_exeext conftest.$ac_ext
16096 fi
16097
16098
16099 CFLAGS="$xorg_testset_save_CFLAGS"
16100
16101 eval supported=\$$cacheid
16102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16103 printf "%s\n" "$supported" >&6; }
16104 if test "$supported" = "yes" ; then
16105 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
16106 found="yes"
16107 fi
16108 fi
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124 xorg_testset_save_CFLAGS="$CFLAGS"
16125
16126 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16127 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16129 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16130 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16131 then :
16132 printf %s "(cached) " >&6
16133 else $as_nop
16134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16135 /* end confdefs.h. */
16136 int i;
16137 _ACEOF
16138 if ac_fn_c_try_compile "$LINENO"
16139 then :
16140 xorg_cv_cc_flag_unknown_warning_option=yes
16141 else $as_nop
16142 xorg_cv_cc_flag_unknown_warning_option=no
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16145 fi
16146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16147 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16148 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16149 CFLAGS="$xorg_testset_save_CFLAGS"
16150 fi
16151
16152 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16153 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16154 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16155 fi
16156 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16158 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16159 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16160 then :
16161 printf %s "(cached) " >&6
16162 else $as_nop
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 int i;
16166 _ACEOF
16167 if ac_fn_c_try_compile "$LINENO"
16168 then :
16169 xorg_cv_cc_flag_unused_command_line_argument=yes
16170 else $as_nop
16171 xorg_cv_cc_flag_unused_command_line_argument=no
16172 fi
16173 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16174 fi
16175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16176 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16177 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16178 CFLAGS="$xorg_testset_save_CFLAGS"
16179 fi
16180
16181 found="no"
16182
16183 if test $found = "no" ; then
16184 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16185 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16186 fi
16187
16188 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16189 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16190 fi
16191
16192 CFLAGS="$CFLAGS -Werror=missing-braces"
16193
16194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
16195 printf %s "checking if $CC supports -Werror=missing-braces... " >&6; }
16196 cacheid=xorg_cv_cc_flag__Werror_missing_braces
16197 if eval test \${$cacheid+y}
16198 then :
16199 printf %s "(cached) " >&6
16200 else $as_nop
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 int i;
16204 int
16205 main (void)
16206 {
16207
16208 ;
16209 return 0;
16210 }
16211 _ACEOF
16212 if ac_fn_c_try_link "$LINENO"
16213 then :
16214 eval $cacheid=yes
16215 else $as_nop
16216 eval $cacheid=no
16217 fi
16218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16219 conftest$ac_exeext conftest.$ac_ext
16220 fi
16221
16222
16223 CFLAGS="$xorg_testset_save_CFLAGS"
16224
16225 eval supported=\$$cacheid
16226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16227 printf "%s\n" "$supported" >&6; }
16228 if test "$supported" = "yes" ; then
16229 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
16230 found="yes"
16231 fi
16232 fi
16233
16234
16235
16236
16237
16238
16239
16240
16241
16242
16243
16244
16245
16246
16247
16248 xorg_testset_save_CFLAGS="$CFLAGS"
16249
16250 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16251 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16253 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16254 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16255 then :
16256 printf %s "(cached) " >&6
16257 else $as_nop
16258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16259 /* end confdefs.h. */
16260 int i;
16261 _ACEOF
16262 if ac_fn_c_try_compile "$LINENO"
16263 then :
16264 xorg_cv_cc_flag_unknown_warning_option=yes
16265 else $as_nop
16266 xorg_cv_cc_flag_unknown_warning_option=no
16267 fi
16268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16269 fi
16270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16271 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16273 CFLAGS="$xorg_testset_save_CFLAGS"
16274 fi
16275
16276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16279 fi
16280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16282 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16283 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16284 then :
16285 printf %s "(cached) " >&6
16286 else $as_nop
16287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16288 /* end confdefs.h. */
16289 int i;
16290 _ACEOF
16291 if ac_fn_c_try_compile "$LINENO"
16292 then :
16293 xorg_cv_cc_flag_unused_command_line_argument=yes
16294 else $as_nop
16295 xorg_cv_cc_flag_unused_command_line_argument=no
16296 fi
16297 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16298 fi
16299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16300 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16302 CFLAGS="$xorg_testset_save_CFLAGS"
16303 fi
16304
16305 found="no"
16306
16307 if test $found = "no" ; then
16308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16310 fi
16311
16312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16314 fi
16315
16316 CFLAGS="$CFLAGS -Werror=sequence-point"
16317
16318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
16319 printf %s "checking if $CC supports -Werror=sequence-point... " >&6; }
16320 cacheid=xorg_cv_cc_flag__Werror_sequence_point
16321 if eval test \${$cacheid+y}
16322 then :
16323 printf %s "(cached) " >&6
16324 else $as_nop
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326 /* end confdefs.h. */
16327 int i;
16328 int
16329 main (void)
16330 {
16331
16332 ;
16333 return 0;
16334 }
16335 _ACEOF
16336 if ac_fn_c_try_link "$LINENO"
16337 then :
16338 eval $cacheid=yes
16339 else $as_nop
16340 eval $cacheid=no
16341 fi
16342 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16343 conftest$ac_exeext conftest.$ac_ext
16344 fi
16345
16346
16347 CFLAGS="$xorg_testset_save_CFLAGS"
16348
16349 eval supported=\$$cacheid
16350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16351 printf "%s\n" "$supported" >&6; }
16352 if test "$supported" = "yes" ; then
16353 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
16354 found="yes"
16355 fi
16356 fi
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368
16369
16370
16371
16372 xorg_testset_save_CFLAGS="$CFLAGS"
16373
16374 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16377 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16378 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16379 then :
16380 printf %s "(cached) " >&6
16381 else $as_nop
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16384 int i;
16385 _ACEOF
16386 if ac_fn_c_try_compile "$LINENO"
16387 then :
16388 xorg_cv_cc_flag_unknown_warning_option=yes
16389 else $as_nop
16390 xorg_cv_cc_flag_unknown_warning_option=no
16391 fi
16392 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16393 fi
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16395 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16396 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16397 CFLAGS="$xorg_testset_save_CFLAGS"
16398 fi
16399
16400 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16401 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16402 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16403 fi
16404 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16406 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16407 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16408 then :
16409 printf %s "(cached) " >&6
16410 else $as_nop
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413 int i;
16414 _ACEOF
16415 if ac_fn_c_try_compile "$LINENO"
16416 then :
16417 xorg_cv_cc_flag_unused_command_line_argument=yes
16418 else $as_nop
16419 xorg_cv_cc_flag_unused_command_line_argument=no
16420 fi
16421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16422 fi
16423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16424 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16425 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16426 CFLAGS="$xorg_testset_save_CFLAGS"
16427 fi
16428
16429 found="no"
16430
16431 if test $found = "no" ; then
16432 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16433 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16434 fi
16435
16436 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16437 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16438 fi
16439
16440 CFLAGS="$CFLAGS -Werror=return-type"
16441
16442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
16443 printf %s "checking if $CC supports -Werror=return-type... " >&6; }
16444 cacheid=xorg_cv_cc_flag__Werror_return_type
16445 if eval test \${$cacheid+y}
16446 then :
16447 printf %s "(cached) " >&6
16448 else $as_nop
16449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16450 /* end confdefs.h. */
16451 int i;
16452 int
16453 main (void)
16454 {
16455
16456 ;
16457 return 0;
16458 }
16459 _ACEOF
16460 if ac_fn_c_try_link "$LINENO"
16461 then :
16462 eval $cacheid=yes
16463 else $as_nop
16464 eval $cacheid=no
16465 fi
16466 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16467 conftest$ac_exeext conftest.$ac_ext
16468 fi
16469
16470
16471 CFLAGS="$xorg_testset_save_CFLAGS"
16472
16473 eval supported=\$$cacheid
16474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16475 printf "%s\n" "$supported" >&6; }
16476 if test "$supported" = "yes" ; then
16477 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
16478 found="yes"
16479 fi
16480 fi
16481
16482 if test $found = "no" ; then
16483 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16485 fi
16486
16487 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16488 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16489 fi
16490
16491 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16492
16493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
16494 printf %s "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
16495 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
16496 if eval test \${$cacheid+y}
16497 then :
16498 printf %s "(cached) " >&6
16499 else $as_nop
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 int i;
16503 int
16504 main (void)
16505 {
16506
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 if ac_fn_c_try_link "$LINENO"
16512 then :
16513 eval $cacheid=yes
16514 else $as_nop
16515 eval $cacheid=no
16516 fi
16517 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16518 conftest$ac_exeext conftest.$ac_ext
16519 fi
16520
16521
16522 CFLAGS="$xorg_testset_save_CFLAGS"
16523
16524 eval supported=\$$cacheid
16525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16526 printf "%s\n" "$supported" >&6; }
16527 if test "$supported" = "yes" ; then
16528 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
16529 found="yes"
16530 fi
16531 fi
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546
16547 xorg_testset_save_CFLAGS="$CFLAGS"
16548
16549 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16552 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16553 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16554 then :
16555 printf %s "(cached) " >&6
16556 else $as_nop
16557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16558 /* end confdefs.h. */
16559 int i;
16560 _ACEOF
16561 if ac_fn_c_try_compile "$LINENO"
16562 then :
16563 xorg_cv_cc_flag_unknown_warning_option=yes
16564 else $as_nop
16565 xorg_cv_cc_flag_unknown_warning_option=no
16566 fi
16567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16568 fi
16569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16570 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16571 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16572 CFLAGS="$xorg_testset_save_CFLAGS"
16573 fi
16574
16575 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16576 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16577 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16578 fi
16579 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16581 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16582 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16583 then :
16584 printf %s "(cached) " >&6
16585 else $as_nop
16586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16587 /* end confdefs.h. */
16588 int i;
16589 _ACEOF
16590 if ac_fn_c_try_compile "$LINENO"
16591 then :
16592 xorg_cv_cc_flag_unused_command_line_argument=yes
16593 else $as_nop
16594 xorg_cv_cc_flag_unused_command_line_argument=no
16595 fi
16596 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16597 fi
16598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16599 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16601 CFLAGS="$xorg_testset_save_CFLAGS"
16602 fi
16603
16604 found="no"
16605
16606 if test $found = "no" ; then
16607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16609 fi
16610
16611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16613 fi
16614
16615 CFLAGS="$CFLAGS -Werror=trigraphs"
16616
16617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
16618 printf %s "checking if $CC supports -Werror=trigraphs... " >&6; }
16619 cacheid=xorg_cv_cc_flag__Werror_trigraphs
16620 if eval test \${$cacheid+y}
16621 then :
16622 printf %s "(cached) " >&6
16623 else $as_nop
16624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16625 /* end confdefs.h. */
16626 int i;
16627 int
16628 main (void)
16629 {
16630
16631 ;
16632 return 0;
16633 }
16634 _ACEOF
16635 if ac_fn_c_try_link "$LINENO"
16636 then :
16637 eval $cacheid=yes
16638 else $as_nop
16639 eval $cacheid=no
16640 fi
16641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16642 conftest$ac_exeext conftest.$ac_ext
16643 fi
16644
16645
16646 CFLAGS="$xorg_testset_save_CFLAGS"
16647
16648 eval supported=\$$cacheid
16649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16650 printf "%s\n" "$supported" >&6; }
16651 if test "$supported" = "yes" ; then
16652 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
16653 found="yes"
16654 fi
16655 fi
16656
16657
16658
16659
16660
16661
16662
16663
16664
16665
16666
16667
16668
16669
16670
16671 xorg_testset_save_CFLAGS="$CFLAGS"
16672
16673 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16674 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16676 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16677 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16678 then :
16679 printf %s "(cached) " >&6
16680 else $as_nop
16681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16682 /* end confdefs.h. */
16683 int i;
16684 _ACEOF
16685 if ac_fn_c_try_compile "$LINENO"
16686 then :
16687 xorg_cv_cc_flag_unknown_warning_option=yes
16688 else $as_nop
16689 xorg_cv_cc_flag_unknown_warning_option=no
16690 fi
16691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16692 fi
16693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16694 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16695 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16696 CFLAGS="$xorg_testset_save_CFLAGS"
16697 fi
16698
16699 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16700 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16701 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16702 fi
16703 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16705 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16706 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16707 then :
16708 printf %s "(cached) " >&6
16709 else $as_nop
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16712 int i;
16713 _ACEOF
16714 if ac_fn_c_try_compile "$LINENO"
16715 then :
16716 xorg_cv_cc_flag_unused_command_line_argument=yes
16717 else $as_nop
16718 xorg_cv_cc_flag_unused_command_line_argument=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16721 fi
16722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16723 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16724 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16725 CFLAGS="$xorg_testset_save_CFLAGS"
16726 fi
16727
16728 found="no"
16729
16730 if test $found = "no" ; then
16731 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16732 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16733 fi
16734
16735 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16736 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16737 fi
16738
16739 CFLAGS="$CFLAGS -Werror=array-bounds"
16740
16741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
16742 printf %s "checking if $CC supports -Werror=array-bounds... " >&6; }
16743 cacheid=xorg_cv_cc_flag__Werror_array_bounds
16744 if eval test \${$cacheid+y}
16745 then :
16746 printf %s "(cached) " >&6
16747 else $as_nop
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 int i;
16751 int
16752 main (void)
16753 {
16754
16755 ;
16756 return 0;
16757 }
16758 _ACEOF
16759 if ac_fn_c_try_link "$LINENO"
16760 then :
16761 eval $cacheid=yes
16762 else $as_nop
16763 eval $cacheid=no
16764 fi
16765 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16766 conftest$ac_exeext conftest.$ac_ext
16767 fi
16768
16769
16770 CFLAGS="$xorg_testset_save_CFLAGS"
16771
16772 eval supported=\$$cacheid
16773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16774 printf "%s\n" "$supported" >&6; }
16775 if test "$supported" = "yes" ; then
16776 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
16777 found="yes"
16778 fi
16779 fi
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795 xorg_testset_save_CFLAGS="$CFLAGS"
16796
16797 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16798 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16800 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16801 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16802 then :
16803 printf %s "(cached) " >&6
16804 else $as_nop
16805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16806 /* end confdefs.h. */
16807 int i;
16808 _ACEOF
16809 if ac_fn_c_try_compile "$LINENO"
16810 then :
16811 xorg_cv_cc_flag_unknown_warning_option=yes
16812 else $as_nop
16813 xorg_cv_cc_flag_unknown_warning_option=no
16814 fi
16815 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16816 fi
16817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16818 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16819 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16820 CFLAGS="$xorg_testset_save_CFLAGS"
16821 fi
16822
16823 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16824 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16825 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16826 fi
16827 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16829 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16830 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16831 then :
16832 printf %s "(cached) " >&6
16833 else $as_nop
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16836 int i;
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"
16839 then :
16840 xorg_cv_cc_flag_unused_command_line_argument=yes
16841 else $as_nop
16842 xorg_cv_cc_flag_unused_command_line_argument=no
16843 fi
16844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16845 fi
16846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16847 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16848 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16849 CFLAGS="$xorg_testset_save_CFLAGS"
16850 fi
16851
16852 found="no"
16853
16854 if test $found = "no" ; then
16855 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16856 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16857 fi
16858
16859 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16860 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16861 fi
16862
16863 CFLAGS="$CFLAGS -Werror=write-strings"
16864
16865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
16866 printf %s "checking if $CC supports -Werror=write-strings... " >&6; }
16867 cacheid=xorg_cv_cc_flag__Werror_write_strings
16868 if eval test \${$cacheid+y}
16869 then :
16870 printf %s "(cached) " >&6
16871 else $as_nop
16872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16873 /* end confdefs.h. */
16874 int i;
16875 int
16876 main (void)
16877 {
16878
16879 ;
16880 return 0;
16881 }
16882 _ACEOF
16883 if ac_fn_c_try_link "$LINENO"
16884 then :
16885 eval $cacheid=yes
16886 else $as_nop
16887 eval $cacheid=no
16888 fi
16889 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16890 conftest$ac_exeext conftest.$ac_ext
16891 fi
16892
16893
16894 CFLAGS="$xorg_testset_save_CFLAGS"
16895
16896 eval supported=\$$cacheid
16897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16898 printf "%s\n" "$supported" >&6; }
16899 if test "$supported" = "yes" ; then
16900 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
16901 found="yes"
16902 fi
16903 fi
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914
16915
16916
16917
16918
16919 xorg_testset_save_CFLAGS="$CFLAGS"
16920
16921 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16922 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16924 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16925 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
16926 then :
16927 printf %s "(cached) " >&6
16928 else $as_nop
16929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16930 /* end confdefs.h. */
16931 int i;
16932 _ACEOF
16933 if ac_fn_c_try_compile "$LINENO"
16934 then :
16935 xorg_cv_cc_flag_unknown_warning_option=yes
16936 else $as_nop
16937 xorg_cv_cc_flag_unknown_warning_option=no
16938 fi
16939 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16940 fi
16941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16942 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16943 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16944 CFLAGS="$xorg_testset_save_CFLAGS"
16945 fi
16946
16947 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16948 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16949 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16950 fi
16951 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16953 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16954 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
16955 then :
16956 printf %s "(cached) " >&6
16957 else $as_nop
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16960 int i;
16961 _ACEOF
16962 if ac_fn_c_try_compile "$LINENO"
16963 then :
16964 xorg_cv_cc_flag_unused_command_line_argument=yes
16965 else $as_nop
16966 xorg_cv_cc_flag_unused_command_line_argument=no
16967 fi
16968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16969 fi
16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16971 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16972 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16973 CFLAGS="$xorg_testset_save_CFLAGS"
16974 fi
16975
16976 found="no"
16977
16978 if test $found = "no" ; then
16979 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16980 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16981 fi
16982
16983 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16984 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16985 fi
16986
16987 CFLAGS="$CFLAGS -Werror=address"
16988
16989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
16990 printf %s "checking if $CC supports -Werror=address... " >&6; }
16991 cacheid=xorg_cv_cc_flag__Werror_address
16992 if eval test \${$cacheid+y}
16993 then :
16994 printf %s "(cached) " >&6
16995 else $as_nop
16996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997 /* end confdefs.h. */
16998 int i;
16999 int
17000 main (void)
17001 {
17002
17003 ;
17004 return 0;
17005 }
17006 _ACEOF
17007 if ac_fn_c_try_link "$LINENO"
17008 then :
17009 eval $cacheid=yes
17010 else $as_nop
17011 eval $cacheid=no
17012 fi
17013 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17014 conftest$ac_exeext conftest.$ac_ext
17015 fi
17016
17017
17018 CFLAGS="$xorg_testset_save_CFLAGS"
17019
17020 eval supported=\$$cacheid
17021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17022 printf "%s\n" "$supported" >&6; }
17023 if test "$supported" = "yes" ; then
17024 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
17025 found="yes"
17026 fi
17027 fi
17028
17029
17030
17031
17032
17033
17034
17035
17036
17037
17038
17039
17040
17041
17042
17043 xorg_testset_save_CFLAGS="$CFLAGS"
17044
17045 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17048 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17049 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17050 then :
17051 printf %s "(cached) " >&6
17052 else $as_nop
17053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17054 /* end confdefs.h. */
17055 int i;
17056 _ACEOF
17057 if ac_fn_c_try_compile "$LINENO"
17058 then :
17059 xorg_cv_cc_flag_unknown_warning_option=yes
17060 else $as_nop
17061 xorg_cv_cc_flag_unknown_warning_option=no
17062 fi
17063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17064 fi
17065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17066 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17067 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17068 CFLAGS="$xorg_testset_save_CFLAGS"
17069 fi
17070
17071 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17074 fi
17075 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17077 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17078 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17079 then :
17080 printf %s "(cached) " >&6
17081 else $as_nop
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17084 int i;
17085 _ACEOF
17086 if ac_fn_c_try_compile "$LINENO"
17087 then :
17088 xorg_cv_cc_flag_unused_command_line_argument=yes
17089 else $as_nop
17090 xorg_cv_cc_flag_unused_command_line_argument=no
17091 fi
17092 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17093 fi
17094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17095 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17096 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17097 CFLAGS="$xorg_testset_save_CFLAGS"
17098 fi
17099
17100 found="no"
17101
17102 if test $found = "no" ; then
17103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17105 fi
17106
17107 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17109 fi
17110
17111 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
17112
17113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
17114 printf %s "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
17115 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
17116 if eval test \${$cacheid+y}
17117 then :
17118 printf %s "(cached) " >&6
17119 else $as_nop
17120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17121 /* end confdefs.h. */
17122 int i;
17123 int
17124 main (void)
17125 {
17126
17127 ;
17128 return 0;
17129 }
17130 _ACEOF
17131 if ac_fn_c_try_link "$LINENO"
17132 then :
17133 eval $cacheid=yes
17134 else $as_nop
17135 eval $cacheid=no
17136 fi
17137 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17138 conftest$ac_exeext conftest.$ac_ext
17139 fi
17140
17141
17142 CFLAGS="$xorg_testset_save_CFLAGS"
17143
17144 eval supported=\$$cacheid
17145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17146 printf "%s\n" "$supported" >&6; }
17147 if test "$supported" = "yes" ; then
17148 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
17149 found="yes"
17150 fi
17151 fi
17152
17153 if test $found = "no" ; then
17154 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17155 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17156 fi
17157
17158 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17159 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17160 fi
17161
17162 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17163
17164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
17165 printf %s "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
17166 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
17167 if eval test \${$cacheid+y}
17168 then :
17169 printf %s "(cached) " >&6
17170 else $as_nop
17171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17172 /* end confdefs.h. */
17173 int i;
17174 int
17175 main (void)
17176 {
17177
17178 ;
17179 return 0;
17180 }
17181 _ACEOF
17182 if ac_fn_c_try_link "$LINENO"
17183 then :
17184 eval $cacheid=yes
17185 else $as_nop
17186 eval $cacheid=no
17187 fi
17188 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17189 conftest$ac_exeext conftest.$ac_ext
17190 fi
17191
17192
17193 CFLAGS="$xorg_testset_save_CFLAGS"
17194
17195 eval supported=\$$cacheid
17196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17197 printf "%s\n" "$supported" >&6; }
17198 if test "$supported" = "yes" ; then
17199 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
17200 found="yes"
17201 fi
17202 fi
17203
17204
17205
17206
17207
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218 xorg_testset_save_CFLAGS="$CFLAGS"
17219
17220 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17221 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17223 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17224 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17225 then :
17226 printf %s "(cached) " >&6
17227 else $as_nop
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17230 int i;
17231 _ACEOF
17232 if ac_fn_c_try_compile "$LINENO"
17233 then :
17234 xorg_cv_cc_flag_unknown_warning_option=yes
17235 else $as_nop
17236 xorg_cv_cc_flag_unknown_warning_option=no
17237 fi
17238 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17239 fi
17240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17241 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17242 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17243 CFLAGS="$xorg_testset_save_CFLAGS"
17244 fi
17245
17246 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17247 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17248 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17249 fi
17250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17252 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17253 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17254 then :
17255 printf %s "(cached) " >&6
17256 else $as_nop
17257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17258 /* end confdefs.h. */
17259 int i;
17260 _ACEOF
17261 if ac_fn_c_try_compile "$LINENO"
17262 then :
17263 xorg_cv_cc_flag_unused_command_line_argument=yes
17264 else $as_nop
17265 xorg_cv_cc_flag_unused_command_line_argument=no
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17268 fi
17269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17270 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17271 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17272 CFLAGS="$xorg_testset_save_CFLAGS"
17273 fi
17274
17275 found="no"
17276
17277 if test $found = "no" ; then
17278 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17279 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17280 fi
17281
17282 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17283 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17284 fi
17285
17286 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
17287
17288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
17289 printf %s "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
17290 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
17291 if eval test \${$cacheid+y}
17292 then :
17293 printf %s "(cached) " >&6
17294 else $as_nop
17295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17296 /* end confdefs.h. */
17297 int i;
17298 int
17299 main (void)
17300 {
17301
17302 ;
17303 return 0;
17304 }
17305 _ACEOF
17306 if ac_fn_c_try_link "$LINENO"
17307 then :
17308 eval $cacheid=yes
17309 else $as_nop
17310 eval $cacheid=no
17311 fi
17312 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17313 conftest$ac_exeext conftest.$ac_ext
17314 fi
17315
17316
17317 CFLAGS="$xorg_testset_save_CFLAGS"
17318
17319 eval supported=\$$cacheid
17320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17321 printf "%s\n" "$supported" >&6; }
17322 if test "$supported" = "yes" ; then
17323 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
17324 found="yes"
17325 fi
17326 fi
17327
17328 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
17329 else
17330 { 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
17331 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;}
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345 xorg_testset_save_CFLAGS="$CFLAGS"
17346
17347 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17348 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17350 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17351 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17352 then :
17353 printf %s "(cached) " >&6
17354 else $as_nop
17355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17356 /* end confdefs.h. */
17357 int i;
17358 _ACEOF
17359 if ac_fn_c_try_compile "$LINENO"
17360 then :
17361 xorg_cv_cc_flag_unknown_warning_option=yes
17362 else $as_nop
17363 xorg_cv_cc_flag_unknown_warning_option=no
17364 fi
17365 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17366 fi
17367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17368 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17369 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17370 CFLAGS="$xorg_testset_save_CFLAGS"
17371 fi
17372
17373 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17374 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17375 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17376 fi
17377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17379 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17380 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17381 then :
17382 printf %s "(cached) " >&6
17383 else $as_nop
17384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17385 /* end confdefs.h. */
17386 int i;
17387 _ACEOF
17388 if ac_fn_c_try_compile "$LINENO"
17389 then :
17390 xorg_cv_cc_flag_unused_command_line_argument=yes
17391 else $as_nop
17392 xorg_cv_cc_flag_unused_command_line_argument=no
17393 fi
17394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17395 fi
17396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17397 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17398 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17399 CFLAGS="$xorg_testset_save_CFLAGS"
17400 fi
17401
17402 found="no"
17403
17404 if test $found = "no" ; then
17405 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17406 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17407 fi
17408
17409 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17410 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17411 fi
17412
17413 CFLAGS="$CFLAGS -Wimplicit"
17414
17415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
17416 printf %s "checking if $CC supports -Wimplicit... " >&6; }
17417 cacheid=xorg_cv_cc_flag__Wimplicit
17418 if eval test \${$cacheid+y}
17419 then :
17420 printf %s "(cached) " >&6
17421 else $as_nop
17422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17423 /* end confdefs.h. */
17424 int i;
17425 int
17426 main (void)
17427 {
17428
17429 ;
17430 return 0;
17431 }
17432 _ACEOF
17433 if ac_fn_c_try_link "$LINENO"
17434 then :
17435 eval $cacheid=yes
17436 else $as_nop
17437 eval $cacheid=no
17438 fi
17439 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17440 conftest$ac_exeext conftest.$ac_ext
17441 fi
17442
17443
17444 CFLAGS="$xorg_testset_save_CFLAGS"
17445
17446 eval supported=\$$cacheid
17447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17448 printf "%s\n" "$supported" >&6; }
17449 if test "$supported" = "yes" ; then
17450 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
17451 found="yes"
17452 fi
17453 fi
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469 xorg_testset_save_CFLAGS="$CFLAGS"
17470
17471 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17472 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17474 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17475 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17476 then :
17477 printf %s "(cached) " >&6
17478 else $as_nop
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17481 int i;
17482 _ACEOF
17483 if ac_fn_c_try_compile "$LINENO"
17484 then :
17485 xorg_cv_cc_flag_unknown_warning_option=yes
17486 else $as_nop
17487 xorg_cv_cc_flag_unknown_warning_option=no
17488 fi
17489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17490 fi
17491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17492 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17493 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17494 CFLAGS="$xorg_testset_save_CFLAGS"
17495 fi
17496
17497 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17498 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17499 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17500 fi
17501 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17503 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17504 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17505 then :
17506 printf %s "(cached) " >&6
17507 else $as_nop
17508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17509 /* end confdefs.h. */
17510 int i;
17511 _ACEOF
17512 if ac_fn_c_try_compile "$LINENO"
17513 then :
17514 xorg_cv_cc_flag_unused_command_line_argument=yes
17515 else $as_nop
17516 xorg_cv_cc_flag_unused_command_line_argument=no
17517 fi
17518 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17519 fi
17520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17521 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17522 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17523 CFLAGS="$xorg_testset_save_CFLAGS"
17524 fi
17525
17526 found="no"
17527
17528 if test $found = "no" ; then
17529 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17530 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17531 fi
17532
17533 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17534 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17535 fi
17536
17537 CFLAGS="$CFLAGS -Wnonnull"
17538
17539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
17540 printf %s "checking if $CC supports -Wnonnull... " >&6; }
17541 cacheid=xorg_cv_cc_flag__Wnonnull
17542 if eval test \${$cacheid+y}
17543 then :
17544 printf %s "(cached) " >&6
17545 else $as_nop
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17548 int i;
17549 int
17550 main (void)
17551 {
17552
17553 ;
17554 return 0;
17555 }
17556 _ACEOF
17557 if ac_fn_c_try_link "$LINENO"
17558 then :
17559 eval $cacheid=yes
17560 else $as_nop
17561 eval $cacheid=no
17562 fi
17563 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17564 conftest$ac_exeext conftest.$ac_ext
17565 fi
17566
17567
17568 CFLAGS="$xorg_testset_save_CFLAGS"
17569
17570 eval supported=\$$cacheid
17571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17572 printf "%s\n" "$supported" >&6; }
17573 if test "$supported" = "yes" ; then
17574 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
17575 found="yes"
17576 fi
17577 fi
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593 xorg_testset_save_CFLAGS="$CFLAGS"
17594
17595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17598 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17599 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17600 then :
17601 printf %s "(cached) " >&6
17602 else $as_nop
17603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17604 /* end confdefs.h. */
17605 int i;
17606 _ACEOF
17607 if ac_fn_c_try_compile "$LINENO"
17608 then :
17609 xorg_cv_cc_flag_unknown_warning_option=yes
17610 else $as_nop
17611 xorg_cv_cc_flag_unknown_warning_option=no
17612 fi
17613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17614 fi
17615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17616 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17617 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17618 CFLAGS="$xorg_testset_save_CFLAGS"
17619 fi
17620
17621 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17622 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17623 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17624 fi
17625 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17627 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17628 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17629 then :
17630 printf %s "(cached) " >&6
17631 else $as_nop
17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17634 int i;
17635 _ACEOF
17636 if ac_fn_c_try_compile "$LINENO"
17637 then :
17638 xorg_cv_cc_flag_unused_command_line_argument=yes
17639 else $as_nop
17640 xorg_cv_cc_flag_unused_command_line_argument=no
17641 fi
17642 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17643 fi
17644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17645 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17647 CFLAGS="$xorg_testset_save_CFLAGS"
17648 fi
17649
17650 found="no"
17651
17652 if test $found = "no" ; then
17653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17655 fi
17656
17657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17659 fi
17660
17661 CFLAGS="$CFLAGS -Winit-self"
17662
17663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
17664 printf %s "checking if $CC supports -Winit-self... " >&6; }
17665 cacheid=xorg_cv_cc_flag__Winit_self
17666 if eval test \${$cacheid+y}
17667 then :
17668 printf %s "(cached) " >&6
17669 else $as_nop
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672 int i;
17673 int
17674 main (void)
17675 {
17676
17677 ;
17678 return 0;
17679 }
17680 _ACEOF
17681 if ac_fn_c_try_link "$LINENO"
17682 then :
17683 eval $cacheid=yes
17684 else $as_nop
17685 eval $cacheid=no
17686 fi
17687 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17688 conftest$ac_exeext conftest.$ac_ext
17689 fi
17690
17691
17692 CFLAGS="$xorg_testset_save_CFLAGS"
17693
17694 eval supported=\$$cacheid
17695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17696 printf "%s\n" "$supported" >&6; }
17697 if test "$supported" = "yes" ; then
17698 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
17699 found="yes"
17700 fi
17701 fi
17702
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712
17713
17714
17715
17716
17717 xorg_testset_save_CFLAGS="$CFLAGS"
17718
17719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17722 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17723 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17724 then :
17725 printf %s "(cached) " >&6
17726 else $as_nop
17727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17728 /* end confdefs.h. */
17729 int i;
17730 _ACEOF
17731 if ac_fn_c_try_compile "$LINENO"
17732 then :
17733 xorg_cv_cc_flag_unknown_warning_option=yes
17734 else $as_nop
17735 xorg_cv_cc_flag_unknown_warning_option=no
17736 fi
17737 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17738 fi
17739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17740 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17741 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17742 CFLAGS="$xorg_testset_save_CFLAGS"
17743 fi
17744
17745 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17746 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17747 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17748 fi
17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17751 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17752 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17753 then :
17754 printf %s "(cached) " >&6
17755 else $as_nop
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17758 int i;
17759 _ACEOF
17760 if ac_fn_c_try_compile "$LINENO"
17761 then :
17762 xorg_cv_cc_flag_unused_command_line_argument=yes
17763 else $as_nop
17764 xorg_cv_cc_flag_unused_command_line_argument=no
17765 fi
17766 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17767 fi
17768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17769 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17770 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17771 CFLAGS="$xorg_testset_save_CFLAGS"
17772 fi
17773
17774 found="no"
17775
17776 if test $found = "no" ; then
17777 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17779 fi
17780
17781 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17782 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17783 fi
17784
17785 CFLAGS="$CFLAGS -Wmain"
17786
17787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
17788 printf %s "checking if $CC supports -Wmain... " >&6; }
17789 cacheid=xorg_cv_cc_flag__Wmain
17790 if eval test \${$cacheid+y}
17791 then :
17792 printf %s "(cached) " >&6
17793 else $as_nop
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17796 int i;
17797 int
17798 main (void)
17799 {
17800
17801 ;
17802 return 0;
17803 }
17804 _ACEOF
17805 if ac_fn_c_try_link "$LINENO"
17806 then :
17807 eval $cacheid=yes
17808 else $as_nop
17809 eval $cacheid=no
17810 fi
17811 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17812 conftest$ac_exeext conftest.$ac_ext
17813 fi
17814
17815
17816 CFLAGS="$xorg_testset_save_CFLAGS"
17817
17818 eval supported=\$$cacheid
17819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17820 printf "%s\n" "$supported" >&6; }
17821 if test "$supported" = "yes" ; then
17822 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
17823 found="yes"
17824 fi
17825 fi
17826
17827
17828
17829
17830
17831
17832
17833
17834
17835
17836
17837
17838
17839
17840
17841 xorg_testset_save_CFLAGS="$CFLAGS"
17842
17843 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17844 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17846 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17847 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17848 then :
17849 printf %s "(cached) " >&6
17850 else $as_nop
17851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17852 /* end confdefs.h. */
17853 int i;
17854 _ACEOF
17855 if ac_fn_c_try_compile "$LINENO"
17856 then :
17857 xorg_cv_cc_flag_unknown_warning_option=yes
17858 else $as_nop
17859 xorg_cv_cc_flag_unknown_warning_option=no
17860 fi
17861 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17862 fi
17863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17864 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17865 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17866 CFLAGS="$xorg_testset_save_CFLAGS"
17867 fi
17868
17869 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17870 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17871 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17872 fi
17873 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17875 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17876 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
17877 then :
17878 printf %s "(cached) " >&6
17879 else $as_nop
17880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17881 /* end confdefs.h. */
17882 int i;
17883 _ACEOF
17884 if ac_fn_c_try_compile "$LINENO"
17885 then :
17886 xorg_cv_cc_flag_unused_command_line_argument=yes
17887 else $as_nop
17888 xorg_cv_cc_flag_unused_command_line_argument=no
17889 fi
17890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17891 fi
17892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17893 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17895 CFLAGS="$xorg_testset_save_CFLAGS"
17896 fi
17897
17898 found="no"
17899
17900 if test $found = "no" ; then
17901 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17903 fi
17904
17905 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17907 fi
17908
17909 CFLAGS="$CFLAGS -Wmissing-braces"
17910
17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
17912 printf %s "checking if $CC supports -Wmissing-braces... " >&6; }
17913 cacheid=xorg_cv_cc_flag__Wmissing_braces
17914 if eval test \${$cacheid+y}
17915 then :
17916 printf %s "(cached) " >&6
17917 else $as_nop
17918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17919 /* end confdefs.h. */
17920 int i;
17921 int
17922 main (void)
17923 {
17924
17925 ;
17926 return 0;
17927 }
17928 _ACEOF
17929 if ac_fn_c_try_link "$LINENO"
17930 then :
17931 eval $cacheid=yes
17932 else $as_nop
17933 eval $cacheid=no
17934 fi
17935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17936 conftest$ac_exeext conftest.$ac_ext
17937 fi
17938
17939
17940 CFLAGS="$xorg_testset_save_CFLAGS"
17941
17942 eval supported=\$$cacheid
17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17944 printf "%s\n" "$supported" >&6; }
17945 if test "$supported" = "yes" ; then
17946 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
17947 found="yes"
17948 fi
17949 fi
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964
17965 xorg_testset_save_CFLAGS="$CFLAGS"
17966
17967 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17968 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17970 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17971 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
17972 then :
17973 printf %s "(cached) " >&6
17974 else $as_nop
17975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17976 /* end confdefs.h. */
17977 int i;
17978 _ACEOF
17979 if ac_fn_c_try_compile "$LINENO"
17980 then :
17981 xorg_cv_cc_flag_unknown_warning_option=yes
17982 else $as_nop
17983 xorg_cv_cc_flag_unknown_warning_option=no
17984 fi
17985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17986 fi
17987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17988 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17990 CFLAGS="$xorg_testset_save_CFLAGS"
17991 fi
17992
17993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17996 fi
17997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17999 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18000 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18001 then :
18002 printf %s "(cached) " >&6
18003 else $as_nop
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18005 /* end confdefs.h. */
18006 int i;
18007 _ACEOF
18008 if ac_fn_c_try_compile "$LINENO"
18009 then :
18010 xorg_cv_cc_flag_unused_command_line_argument=yes
18011 else $as_nop
18012 xorg_cv_cc_flag_unused_command_line_argument=no
18013 fi
18014 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18015 fi
18016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18017 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18018 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18019 CFLAGS="$xorg_testset_save_CFLAGS"
18020 fi
18021
18022 found="no"
18023
18024 if test $found = "no" ; then
18025 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18026 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18027 fi
18028
18029 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18030 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18031 fi
18032
18033 CFLAGS="$CFLAGS -Wsequence-point"
18034
18035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
18036 printf %s "checking if $CC supports -Wsequence-point... " >&6; }
18037 cacheid=xorg_cv_cc_flag__Wsequence_point
18038 if eval test \${$cacheid+y}
18039 then :
18040 printf %s "(cached) " >&6
18041 else $as_nop
18042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18043 /* end confdefs.h. */
18044 int i;
18045 int
18046 main (void)
18047 {
18048
18049 ;
18050 return 0;
18051 }
18052 _ACEOF
18053 if ac_fn_c_try_link "$LINENO"
18054 then :
18055 eval $cacheid=yes
18056 else $as_nop
18057 eval $cacheid=no
18058 fi
18059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18060 conftest$ac_exeext conftest.$ac_ext
18061 fi
18062
18063
18064 CFLAGS="$xorg_testset_save_CFLAGS"
18065
18066 eval supported=\$$cacheid
18067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18068 printf "%s\n" "$supported" >&6; }
18069 if test "$supported" = "yes" ; then
18070 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
18071 found="yes"
18072 fi
18073 fi
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089 xorg_testset_save_CFLAGS="$CFLAGS"
18090
18091 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18092 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18094 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18095 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18096 then :
18097 printf %s "(cached) " >&6
18098 else $as_nop
18099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18100 /* end confdefs.h. */
18101 int i;
18102 _ACEOF
18103 if ac_fn_c_try_compile "$LINENO"
18104 then :
18105 xorg_cv_cc_flag_unknown_warning_option=yes
18106 else $as_nop
18107 xorg_cv_cc_flag_unknown_warning_option=no
18108 fi
18109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18110 fi
18111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18112 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18113 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18114 CFLAGS="$xorg_testset_save_CFLAGS"
18115 fi
18116
18117 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18118 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18119 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18120 fi
18121 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18123 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18124 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18125 then :
18126 printf %s "(cached) " >&6
18127 else $as_nop
18128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18129 /* end confdefs.h. */
18130 int i;
18131 _ACEOF
18132 if ac_fn_c_try_compile "$LINENO"
18133 then :
18134 xorg_cv_cc_flag_unused_command_line_argument=yes
18135 else $as_nop
18136 xorg_cv_cc_flag_unused_command_line_argument=no
18137 fi
18138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18139 fi
18140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18141 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18142 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18143 CFLAGS="$xorg_testset_save_CFLAGS"
18144 fi
18145
18146 found="no"
18147
18148 if test $found = "no" ; then
18149 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18150 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18151 fi
18152
18153 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18154 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18155 fi
18156
18157 CFLAGS="$CFLAGS -Wreturn-type"
18158
18159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
18160 printf %s "checking if $CC supports -Wreturn-type... " >&6; }
18161 cacheid=xorg_cv_cc_flag__Wreturn_type
18162 if eval test \${$cacheid+y}
18163 then :
18164 printf %s "(cached) " >&6
18165 else $as_nop
18166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18167 /* end confdefs.h. */
18168 int i;
18169 int
18170 main (void)
18171 {
18172
18173 ;
18174 return 0;
18175 }
18176 _ACEOF
18177 if ac_fn_c_try_link "$LINENO"
18178 then :
18179 eval $cacheid=yes
18180 else $as_nop
18181 eval $cacheid=no
18182 fi
18183 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18184 conftest$ac_exeext conftest.$ac_ext
18185 fi
18186
18187
18188 CFLAGS="$xorg_testset_save_CFLAGS"
18189
18190 eval supported=\$$cacheid
18191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18192 printf "%s\n" "$supported" >&6; }
18193 if test "$supported" = "yes" ; then
18194 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
18195 found="yes"
18196 fi
18197 fi
18198
18199
18200
18201
18202
18203
18204
18205
18206
18207
18208
18209
18210
18211
18212
18213 xorg_testset_save_CFLAGS="$CFLAGS"
18214
18215 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18216 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18218 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18219 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18220 then :
18221 printf %s "(cached) " >&6
18222 else $as_nop
18223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18224 /* end confdefs.h. */
18225 int i;
18226 _ACEOF
18227 if ac_fn_c_try_compile "$LINENO"
18228 then :
18229 xorg_cv_cc_flag_unknown_warning_option=yes
18230 else $as_nop
18231 xorg_cv_cc_flag_unknown_warning_option=no
18232 fi
18233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18234 fi
18235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18236 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18237 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18238 CFLAGS="$xorg_testset_save_CFLAGS"
18239 fi
18240
18241 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18242 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18243 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18244 fi
18245 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18247 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18248 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18249 then :
18250 printf %s "(cached) " >&6
18251 else $as_nop
18252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18253 /* end confdefs.h. */
18254 int i;
18255 _ACEOF
18256 if ac_fn_c_try_compile "$LINENO"
18257 then :
18258 xorg_cv_cc_flag_unused_command_line_argument=yes
18259 else $as_nop
18260 xorg_cv_cc_flag_unused_command_line_argument=no
18261 fi
18262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18263 fi
18264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18265 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18266 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18267 CFLAGS="$xorg_testset_save_CFLAGS"
18268 fi
18269
18270 found="no"
18271
18272 if test $found = "no" ; then
18273 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18274 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18275 fi
18276
18277 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18278 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18279 fi
18280
18281 CFLAGS="$CFLAGS -Wtrigraphs"
18282
18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
18284 printf %s "checking if $CC supports -Wtrigraphs... " >&6; }
18285 cacheid=xorg_cv_cc_flag__Wtrigraphs
18286 if eval test \${$cacheid+y}
18287 then :
18288 printf %s "(cached) " >&6
18289 else $as_nop
18290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18291 /* end confdefs.h. */
18292 int i;
18293 int
18294 main (void)
18295 {
18296
18297 ;
18298 return 0;
18299 }
18300 _ACEOF
18301 if ac_fn_c_try_link "$LINENO"
18302 then :
18303 eval $cacheid=yes
18304 else $as_nop
18305 eval $cacheid=no
18306 fi
18307 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18308 conftest$ac_exeext conftest.$ac_ext
18309 fi
18310
18311
18312 CFLAGS="$xorg_testset_save_CFLAGS"
18313
18314 eval supported=\$$cacheid
18315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18316 printf "%s\n" "$supported" >&6; }
18317 if test "$supported" = "yes" ; then
18318 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
18319 found="yes"
18320 fi
18321 fi
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337 xorg_testset_save_CFLAGS="$CFLAGS"
18338
18339 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18340 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18342 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18343 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18344 then :
18345 printf %s "(cached) " >&6
18346 else $as_nop
18347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18348 /* end confdefs.h. */
18349 int i;
18350 _ACEOF
18351 if ac_fn_c_try_compile "$LINENO"
18352 then :
18353 xorg_cv_cc_flag_unknown_warning_option=yes
18354 else $as_nop
18355 xorg_cv_cc_flag_unknown_warning_option=no
18356 fi
18357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18358 fi
18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18360 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18362 CFLAGS="$xorg_testset_save_CFLAGS"
18363 fi
18364
18365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18368 fi
18369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18371 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18372 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18373 then :
18374 printf %s "(cached) " >&6
18375 else $as_nop
18376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18377 /* end confdefs.h. */
18378 int i;
18379 _ACEOF
18380 if ac_fn_c_try_compile "$LINENO"
18381 then :
18382 xorg_cv_cc_flag_unused_command_line_argument=yes
18383 else $as_nop
18384 xorg_cv_cc_flag_unused_command_line_argument=no
18385 fi
18386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18387 fi
18388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18389 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18390 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18391 CFLAGS="$xorg_testset_save_CFLAGS"
18392 fi
18393
18394 found="no"
18395
18396 if test $found = "no" ; then
18397 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18398 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18399 fi
18400
18401 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18402 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18403 fi
18404
18405 CFLAGS="$CFLAGS -Warray-bounds"
18406
18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
18408 printf %s "checking if $CC supports -Warray-bounds... " >&6; }
18409 cacheid=xorg_cv_cc_flag__Warray_bounds
18410 if eval test \${$cacheid+y}
18411 then :
18412 printf %s "(cached) " >&6
18413 else $as_nop
18414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18415 /* end confdefs.h. */
18416 int i;
18417 int
18418 main (void)
18419 {
18420
18421 ;
18422 return 0;
18423 }
18424 _ACEOF
18425 if ac_fn_c_try_link "$LINENO"
18426 then :
18427 eval $cacheid=yes
18428 else $as_nop
18429 eval $cacheid=no
18430 fi
18431 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18432 conftest$ac_exeext conftest.$ac_ext
18433 fi
18434
18435
18436 CFLAGS="$xorg_testset_save_CFLAGS"
18437
18438 eval supported=\$$cacheid
18439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18440 printf "%s\n" "$supported" >&6; }
18441 if test "$supported" = "yes" ; then
18442 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
18443 found="yes"
18444 fi
18445 fi
18446
18447
18448
18449
18450
18451
18452
18453
18454
18455
18456
18457
18458
18459
18460
18461 xorg_testset_save_CFLAGS="$CFLAGS"
18462
18463 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18464 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18466 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18467 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18468 then :
18469 printf %s "(cached) " >&6
18470 else $as_nop
18471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18472 /* end confdefs.h. */
18473 int i;
18474 _ACEOF
18475 if ac_fn_c_try_compile "$LINENO"
18476 then :
18477 xorg_cv_cc_flag_unknown_warning_option=yes
18478 else $as_nop
18479 xorg_cv_cc_flag_unknown_warning_option=no
18480 fi
18481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18482 fi
18483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18484 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18485 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18486 CFLAGS="$xorg_testset_save_CFLAGS"
18487 fi
18488
18489 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18490 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18492 fi
18493 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18495 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18496 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18497 then :
18498 printf %s "(cached) " >&6
18499 else $as_nop
18500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18501 /* end confdefs.h. */
18502 int i;
18503 _ACEOF
18504 if ac_fn_c_try_compile "$LINENO"
18505 then :
18506 xorg_cv_cc_flag_unused_command_line_argument=yes
18507 else $as_nop
18508 xorg_cv_cc_flag_unused_command_line_argument=no
18509 fi
18510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18511 fi
18512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18513 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18514 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18515 CFLAGS="$xorg_testset_save_CFLAGS"
18516 fi
18517
18518 found="no"
18519
18520 if test $found = "no" ; then
18521 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18522 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18523 fi
18524
18525 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18526 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18527 fi
18528
18529 CFLAGS="$CFLAGS -Wwrite-strings"
18530
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
18532 printf %s "checking if $CC supports -Wwrite-strings... " >&6; }
18533 cacheid=xorg_cv_cc_flag__Wwrite_strings
18534 if eval test \${$cacheid+y}
18535 then :
18536 printf %s "(cached) " >&6
18537 else $as_nop
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540 int i;
18541 int
18542 main (void)
18543 {
18544
18545 ;
18546 return 0;
18547 }
18548 _ACEOF
18549 if ac_fn_c_try_link "$LINENO"
18550 then :
18551 eval $cacheid=yes
18552 else $as_nop
18553 eval $cacheid=no
18554 fi
18555 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18556 conftest$ac_exeext conftest.$ac_ext
18557 fi
18558
18559
18560 CFLAGS="$xorg_testset_save_CFLAGS"
18561
18562 eval supported=\$$cacheid
18563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18564 printf "%s\n" "$supported" >&6; }
18565 if test "$supported" = "yes" ; then
18566 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
18567 found="yes"
18568 fi
18569 fi
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585 xorg_testset_save_CFLAGS="$CFLAGS"
18586
18587 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18588 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18590 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18591 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18592 then :
18593 printf %s "(cached) " >&6
18594 else $as_nop
18595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18596 /* end confdefs.h. */
18597 int i;
18598 _ACEOF
18599 if ac_fn_c_try_compile "$LINENO"
18600 then :
18601 xorg_cv_cc_flag_unknown_warning_option=yes
18602 else $as_nop
18603 xorg_cv_cc_flag_unknown_warning_option=no
18604 fi
18605 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18606 fi
18607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18608 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18609 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18610 CFLAGS="$xorg_testset_save_CFLAGS"
18611 fi
18612
18613 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18614 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18615 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18616 fi
18617 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18619 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18620 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18621 then :
18622 printf %s "(cached) " >&6
18623 else $as_nop
18624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18625 /* end confdefs.h. */
18626 int i;
18627 _ACEOF
18628 if ac_fn_c_try_compile "$LINENO"
18629 then :
18630 xorg_cv_cc_flag_unused_command_line_argument=yes
18631 else $as_nop
18632 xorg_cv_cc_flag_unused_command_line_argument=no
18633 fi
18634 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18635 fi
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18637 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18638 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18639 CFLAGS="$xorg_testset_save_CFLAGS"
18640 fi
18641
18642 found="no"
18643
18644 if test $found = "no" ; then
18645 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18646 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18647 fi
18648
18649 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18650 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18651 fi
18652
18653 CFLAGS="$CFLAGS -Waddress"
18654
18655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
18656 printf %s "checking if $CC supports -Waddress... " >&6; }
18657 cacheid=xorg_cv_cc_flag__Waddress
18658 if eval test \${$cacheid+y}
18659 then :
18660 printf %s "(cached) " >&6
18661 else $as_nop
18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h. */
18664 int i;
18665 int
18666 main (void)
18667 {
18668
18669 ;
18670 return 0;
18671 }
18672 _ACEOF
18673 if ac_fn_c_try_link "$LINENO"
18674 then :
18675 eval $cacheid=yes
18676 else $as_nop
18677 eval $cacheid=no
18678 fi
18679 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18680 conftest$ac_exeext conftest.$ac_ext
18681 fi
18682
18683
18684 CFLAGS="$xorg_testset_save_CFLAGS"
18685
18686 eval supported=\$$cacheid
18687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18688 printf "%s\n" "$supported" >&6; }
18689 if test "$supported" = "yes" ; then
18690 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
18691 found="yes"
18692 fi
18693 fi
18694
18695
18696
18697
18698
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709 xorg_testset_save_CFLAGS="$CFLAGS"
18710
18711 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18712 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18714 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18715 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18716 then :
18717 printf %s "(cached) " >&6
18718 else $as_nop
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18721 int i;
18722 _ACEOF
18723 if ac_fn_c_try_compile "$LINENO"
18724 then :
18725 xorg_cv_cc_flag_unknown_warning_option=yes
18726 else $as_nop
18727 xorg_cv_cc_flag_unknown_warning_option=no
18728 fi
18729 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18730 fi
18731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18732 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18734 CFLAGS="$xorg_testset_save_CFLAGS"
18735 fi
18736
18737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18740 fi
18741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18743 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18744 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18745 then :
18746 printf %s "(cached) " >&6
18747 else $as_nop
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18750 int i;
18751 _ACEOF
18752 if ac_fn_c_try_compile "$LINENO"
18753 then :
18754 xorg_cv_cc_flag_unused_command_line_argument=yes
18755 else $as_nop
18756 xorg_cv_cc_flag_unused_command_line_argument=no
18757 fi
18758 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18759 fi
18760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18761 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18762 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18763 CFLAGS="$xorg_testset_save_CFLAGS"
18764 fi
18765
18766 found="no"
18767
18768 if test $found = "no" ; then
18769 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18770 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18771 fi
18772
18773 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18774 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18775 fi
18776
18777 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
18778
18779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
18780 printf %s "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
18781 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
18782 if eval test \${$cacheid+y}
18783 then :
18784 printf %s "(cached) " >&6
18785 else $as_nop
18786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18787 /* end confdefs.h. */
18788 int i;
18789 int
18790 main (void)
18791 {
18792
18793 ;
18794 return 0;
18795 }
18796 _ACEOF
18797 if ac_fn_c_try_link "$LINENO"
18798 then :
18799 eval $cacheid=yes
18800 else $as_nop
18801 eval $cacheid=no
18802 fi
18803 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18804 conftest$ac_exeext conftest.$ac_ext
18805 fi
18806
18807
18808 CFLAGS="$xorg_testset_save_CFLAGS"
18809
18810 eval supported=\$$cacheid
18811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18812 printf "%s\n" "$supported" >&6; }
18813 if test "$supported" = "yes" ; then
18814 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
18815 found="yes"
18816 fi
18817 fi
18818
18819
18820
18821
18822
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833 xorg_testset_save_CFLAGS="$CFLAGS"
18834
18835 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18836 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18838 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18839 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18840 then :
18841 printf %s "(cached) " >&6
18842 else $as_nop
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18845 int i;
18846 _ACEOF
18847 if ac_fn_c_try_compile "$LINENO"
18848 then :
18849 xorg_cv_cc_flag_unknown_warning_option=yes
18850 else $as_nop
18851 xorg_cv_cc_flag_unknown_warning_option=no
18852 fi
18853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18854 fi
18855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
18856 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
18857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
18858 CFLAGS="$xorg_testset_save_CFLAGS"
18859 fi
18860
18861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
18862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18864 fi
18865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
18867 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
18868 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
18869 then :
18870 printf %s "(cached) " >&6
18871 else $as_nop
18872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18873 /* end confdefs.h. */
18874 int i;
18875 _ACEOF
18876 if ac_fn_c_try_compile "$LINENO"
18877 then :
18878 xorg_cv_cc_flag_unused_command_line_argument=yes
18879 else $as_nop
18880 xorg_cv_cc_flag_unused_command_line_argument=no
18881 fi
18882 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18883 fi
18884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
18885 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
18886 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
18887 CFLAGS="$xorg_testset_save_CFLAGS"
18888 fi
18889
18890 found="no"
18891
18892 if test $found = "no" ; then
18893 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
18894 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18895 fi
18896
18897 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
18898 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
18899 fi
18900
18901 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
18902
18903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
18904 printf %s "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
18905 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
18906 if eval test \${$cacheid+y}
18907 then :
18908 printf %s "(cached) " >&6
18909 else $as_nop
18910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18911 /* end confdefs.h. */
18912 int i;
18913 int
18914 main (void)
18915 {
18916
18917 ;
18918 return 0;
18919 }
18920 _ACEOF
18921 if ac_fn_c_try_link "$LINENO"
18922 then :
18923 eval $cacheid=yes
18924 else $as_nop
18925 eval $cacheid=no
18926 fi
18927 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18928 conftest$ac_exeext conftest.$ac_ext
18929 fi
18930
18931
18932 CFLAGS="$xorg_testset_save_CFLAGS"
18933
18934 eval supported=\$$cacheid
18935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18936 printf "%s\n" "$supported" >&6; }
18937 if test "$supported" = "yes" ; then
18938 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
18939 found="yes"
18940 fi
18941 fi
18942
18943
18944 fi
18945
18946
18947
18948
18949
18950
18951
18952 CWARNFLAGS="$BASE_CFLAGS"
18953 if test "x$GCC" = xyes ; then
18954 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
18955 fi
18956
18957
18958
18959
18960
18961
18962
18963
18964 # Check whether --enable-strict-compilation was given.
18965 if test ${enable_strict_compilation+y}
18966 then :
18967 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
18968 else $as_nop
18969 STRICT_COMPILE=no
18970 fi
18971
18972
18973
18974
18975
18976
18977 STRICT_CFLAGS=""
18978
18979
18980
18981
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991 xorg_testset_save_CFLAGS="$CFLAGS"
18992
18993 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
18994 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
18996 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
18997 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
18998 then :
18999 printf %s "(cached) " >&6
19000 else $as_nop
19001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19002 /* end confdefs.h. */
19003 int i;
19004 _ACEOF
19005 if ac_fn_c_try_compile "$LINENO"
19006 then :
19007 xorg_cv_cc_flag_unknown_warning_option=yes
19008 else $as_nop
19009 xorg_cv_cc_flag_unknown_warning_option=no
19010 fi
19011 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19012 fi
19013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19014 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19015 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19016 CFLAGS="$xorg_testset_save_CFLAGS"
19017 fi
19018
19019 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19020 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19022 fi
19023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19025 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19026 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19027 then :
19028 printf %s "(cached) " >&6
19029 else $as_nop
19030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19031 /* end confdefs.h. */
19032 int i;
19033 _ACEOF
19034 if ac_fn_c_try_compile "$LINENO"
19035 then :
19036 xorg_cv_cc_flag_unused_command_line_argument=yes
19037 else $as_nop
19038 xorg_cv_cc_flag_unused_command_line_argument=no
19039 fi
19040 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19041 fi
19042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19043 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19044 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19045 CFLAGS="$xorg_testset_save_CFLAGS"
19046 fi
19047
19048 found="no"
19049
19050 if test $found = "no" ; then
19051 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19052 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19053 fi
19054
19055 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19056 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19057 fi
19058
19059 CFLAGS="$CFLAGS -pedantic"
19060
19061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
19062 printf %s "checking if $CC supports -pedantic... " >&6; }
19063 cacheid=xorg_cv_cc_flag__pedantic
19064 if eval test \${$cacheid+y}
19065 then :
19066 printf %s "(cached) " >&6
19067 else $as_nop
19068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19069 /* end confdefs.h. */
19070 int i;
19071 int
19072 main (void)
19073 {
19074
19075 ;
19076 return 0;
19077 }
19078 _ACEOF
19079 if ac_fn_c_try_link "$LINENO"
19080 then :
19081 eval $cacheid=yes
19082 else $as_nop
19083 eval $cacheid=no
19084 fi
19085 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19086 conftest$ac_exeext conftest.$ac_ext
19087 fi
19088
19089
19090 CFLAGS="$xorg_testset_save_CFLAGS"
19091
19092 eval supported=\$$cacheid
19093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19094 printf "%s\n" "$supported" >&6; }
19095 if test "$supported" = "yes" ; then
19096 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
19097 found="yes"
19098 fi
19099 fi
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115 xorg_testset_save_CFLAGS="$CFLAGS"
19116
19117 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19118 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19120 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19121 if test ${xorg_cv_cc_flag_unknown_warning_option+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_unknown_warning_option=yes
19132 else $as_nop
19133 xorg_cv_cc_flag_unknown_warning_option=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_unknown_warning_option" >&5
19138 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19139 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19140 CFLAGS="$xorg_testset_save_CFLAGS"
19141 fi
19142
19143 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19144 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19145 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19146 fi
19147 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19149 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19150 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19151 then :
19152 printf %s "(cached) " >&6
19153 else $as_nop
19154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19155 /* end confdefs.h. */
19156 int i;
19157 _ACEOF
19158 if ac_fn_c_try_compile "$LINENO"
19159 then :
19160 xorg_cv_cc_flag_unused_command_line_argument=yes
19161 else $as_nop
19162 xorg_cv_cc_flag_unused_command_line_argument=no
19163 fi
19164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19165 fi
19166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19167 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19168 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19169 CFLAGS="$xorg_testset_save_CFLAGS"
19170 fi
19171
19172 found="no"
19173
19174 if test $found = "no" ; then
19175 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19176 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19177 fi
19178
19179 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19180 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19181 fi
19182
19183 CFLAGS="$CFLAGS -Werror"
19184
19185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
19186 printf %s "checking if $CC supports -Werror... " >&6; }
19187 cacheid=xorg_cv_cc_flag__Werror
19188 if eval test \${$cacheid+y}
19189 then :
19190 printf %s "(cached) " >&6
19191 else $as_nop
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19194 int i;
19195 int
19196 main (void)
19197 {
19198
19199 ;
19200 return 0;
19201 }
19202 _ACEOF
19203 if ac_fn_c_try_link "$LINENO"
19204 then :
19205 eval $cacheid=yes
19206 else $as_nop
19207 eval $cacheid=no
19208 fi
19209 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19210 conftest$ac_exeext conftest.$ac_ext
19211 fi
19212
19213
19214 CFLAGS="$xorg_testset_save_CFLAGS"
19215
19216 eval supported=\$$cacheid
19217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19218 printf "%s\n" "$supported" >&6; }
19219 if test "$supported" = "yes" ; then
19220 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
19221 found="yes"
19222 fi
19223 fi
19224
19225 if test $found = "no" ; then
19226 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19227 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19228 fi
19229
19230 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19231 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19232 fi
19233
19234 CFLAGS="$CFLAGS -errwarn"
19235
19236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
19237 printf %s "checking if $CC supports -errwarn... " >&6; }
19238 cacheid=xorg_cv_cc_flag__errwarn
19239 if eval test \${$cacheid+y}
19240 then :
19241 printf %s "(cached) " >&6
19242 else $as_nop
19243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19244 /* end confdefs.h. */
19245 int i;
19246 int
19247 main (void)
19248 {
19249
19250 ;
19251 return 0;
19252 }
19253 _ACEOF
19254 if ac_fn_c_try_link "$LINENO"
19255 then :
19256 eval $cacheid=yes
19257 else $as_nop
19258 eval $cacheid=no
19259 fi
19260 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19261 conftest$ac_exeext conftest.$ac_ext
19262 fi
19263
19264
19265 CFLAGS="$xorg_testset_save_CFLAGS"
19266
19267 eval supported=\$$cacheid
19268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19269 printf "%s\n" "$supported" >&6; }
19270 if test "$supported" = "yes" ; then
19271 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
19272 found="yes"
19273 fi
19274 fi
19275
19276
19277
19278 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
19279 # activate it with -Werror, so we add it here explicitly.
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293 xorg_testset_save_CFLAGS="$CFLAGS"
19294
19295 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
19296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
19298 printf %s "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
19299 if test ${xorg_cv_cc_flag_unknown_warning_option+y}
19300 then :
19301 printf %s "(cached) " >&6
19302 else $as_nop
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19305 int i;
19306 _ACEOF
19307 if ac_fn_c_try_compile "$LINENO"
19308 then :
19309 xorg_cv_cc_flag_unknown_warning_option=yes
19310 else $as_nop
19311 xorg_cv_cc_flag_unknown_warning_option=no
19312 fi
19313 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19314 fi
19315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
19316 printf "%s\n" "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
19317 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
19318 CFLAGS="$xorg_testset_save_CFLAGS"
19319 fi
19320
19321 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
19322 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19323 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19324 fi
19325 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
19327 printf %s "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
19328 if test ${xorg_cv_cc_flag_unused_command_line_argument+y}
19329 then :
19330 printf %s "(cached) " >&6
19331 else $as_nop
19332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19333 /* end confdefs.h. */
19334 int i;
19335 _ACEOF
19336 if ac_fn_c_try_compile "$LINENO"
19337 then :
19338 xorg_cv_cc_flag_unused_command_line_argument=yes
19339 else $as_nop
19340 xorg_cv_cc_flag_unused_command_line_argument=no
19341 fi
19342 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19343 fi
19344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
19345 printf "%s\n" "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
19346 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
19347 CFLAGS="$xorg_testset_save_CFLAGS"
19348 fi
19349
19350 found="no"
19351
19352 if test $found = "no" ; then
19353 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
19354 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
19355 fi
19356
19357 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
19358 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
19359 fi
19360
19361 CFLAGS="$CFLAGS -Werror=attributes"
19362
19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
19364 printf %s "checking if $CC supports -Werror=attributes... " >&6; }
19365 cacheid=xorg_cv_cc_flag__Werror_attributes
19366 if eval test \${$cacheid+y}
19367 then :
19368 printf %s "(cached) " >&6
19369 else $as_nop
19370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19371 /* end confdefs.h. */
19372 int i;
19373 int
19374 main (void)
19375 {
19376
19377 ;
19378 return 0;
19379 }
19380 _ACEOF
19381 if ac_fn_c_try_link "$LINENO"
19382 then :
19383 eval $cacheid=yes
19384 else $as_nop
19385 eval $cacheid=no
19386 fi
19387 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19388 conftest$ac_exeext conftest.$ac_ext
19389 fi
19390
19391
19392 CFLAGS="$xorg_testset_save_CFLAGS"
19393
19394 eval supported=\$$cacheid
19395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
19396 printf "%s\n" "$supported" >&6; }
19397 if test "$supported" = "yes" ; then
19398 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
19399 found="yes"
19400 fi
19401 fi
19402
19403
19404
19405 if test "x$STRICT_COMPILE" = "xyes"; then
19406 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
19407 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
19408 fi
19409
19410
19411
19412
19413
19414
19415 cat >>confdefs.h <<_ACEOF
19416 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
19417 _ACEOF
19418
19419 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
19420 if test "x$PVM" = "x"; then
19421 PVM="0"
19422 fi
19423
19424 printf "%s\n" "#define PACKAGE_VERSION_MINOR $PVM" >>confdefs.h
19425
19426 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
19427 if test "x$PVP" = "x"; then
19428 PVP="0"
19429 fi
19430
19431 printf "%s\n" "#define PACKAGE_VERSION_PATCHLEVEL $PVP" >>confdefs.h
19432
19433
19434
19435 CHANGELOG_CMD="((GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp) 2>/dev/null && \
19436 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
19437 || (rm -f \$(top_srcdir)/.changelog.tmp; test -e \$(top_srcdir)/ChangeLog || ( \
19438 touch \$(top_srcdir)/ChangeLog; \
19439 echo 'git failed to create ChangeLog: installing empty ChangeLog.' >&2))"
19440
19441
19442
19443
19444 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
19445 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
19446 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
19447 || (rm -f \$(top_srcdir)/.INSTALL.tmp; test -e \$(top_srcdir)/INSTALL || ( \
19448 touch \$(top_srcdir)/INSTALL; \
19449 echo 'failed to copy INSTALL from util-macros: installing empty INSTALL.' >&2))"
19450
19451
19452
19453
19454
19455
19456 case $host_os in
19457 solaris*)
19458 # Solaris 2.0 - 11.3 use SysV man page section numbers, so we
19459 # check for a man page file found in later versions that use
19460 # traditional section numbers instead
19461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for /usr/share/man/man7/attributes.7" >&5
19462 printf %s "checking for /usr/share/man/man7/attributes.7... " >&6; }
19463 if test ${ac_cv_file__usr_share_man_man7_attributes_7+y}
19464 then :
19465 printf %s "(cached) " >&6
19466 else $as_nop
19467 test "$cross_compiling" = yes &&
19468 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
19469 if test -r "/usr/share/man/man7/attributes.7"; then
19470 ac_cv_file__usr_share_man_man7_attributes_7=yes
19471 else
19472 ac_cv_file__usr_share_man_man7_attributes_7=no
19473 fi
19474 fi
19475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_man_man7_attributes_7" >&5
19476 printf "%s\n" "$ac_cv_file__usr_share_man_man7_attributes_7" >&6; }
19477 if test "x$ac_cv_file__usr_share_man_man7_attributes_7" = xyes
19478 then :
19479 SYSV_MAN_SECTIONS=false
19480 else $as_nop
19481 SYSV_MAN_SECTIONS=true
19482 fi
19483
19484 ;;
19485 *) SYSV_MAN_SECTIONS=false ;;
19486 esac
19487
19488 if test x$APP_MAN_SUFFIX = x ; then
19489 APP_MAN_SUFFIX=1
19490 fi
19491 if test x$APP_MAN_DIR = x ; then
19492 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
19493 fi
19494
19495 if test x$LIB_MAN_SUFFIX = x ; then
19496 LIB_MAN_SUFFIX=3
19497 fi
19498 if test x$LIB_MAN_DIR = x ; then
19499 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
19500 fi
19501
19502 if test x$FILE_MAN_SUFFIX = x ; then
19503 case $SYSV_MAN_SECTIONS in
19504 true) FILE_MAN_SUFFIX=4 ;;
19505 *) FILE_MAN_SUFFIX=5 ;;
19506 esac
19507 fi
19508 if test x$FILE_MAN_DIR = x ; then
19509 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
19510 fi
19511
19512 if test x$MISC_MAN_SUFFIX = x ; then
19513 case $SYSV_MAN_SECTIONS in
19514 true) MISC_MAN_SUFFIX=5 ;;
19515 *) MISC_MAN_SUFFIX=7 ;;
19516 esac
19517 fi
19518 if test x$MISC_MAN_DIR = x ; then
19519 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
19520 fi
19521
19522 if test x$DRIVER_MAN_SUFFIX = x ; then
19523 case $SYSV_MAN_SECTIONS in
19524 true) DRIVER_MAN_SUFFIX=7 ;;
19525 *) DRIVER_MAN_SUFFIX=4 ;;
19526 esac
19527 fi
19528 if test x$DRIVER_MAN_DIR = x ; then
19529 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
19530 fi
19531
19532 if test x$ADMIN_MAN_SUFFIX = x ; then
19533 case $SYSV_MAN_SECTIONS in
19534 true) ADMIN_MAN_SUFFIX=1m ;;
19535 *) ADMIN_MAN_SUFFIX=8 ;;
19536 esac
19537 fi
19538 if test x$ADMIN_MAN_DIR = x ; then
19539 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
19540 fi
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552
19553
19554
19555
19556 XORG_MAN_PAGE="X Version 11"
19557
19558 MAN_SUBSTS="\
19559 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19560 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
19561 -e 's|__xservername__|Xorg|g' \
19562 -e 's|__xconfigfile__|xorg.conf|g' \
19563 -e 's|__projectroot__|\$(prefix)|g' \
19564 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
19565 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
19566 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
19567 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
19568 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
19569 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
19570 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
19571
19572
19573
19574 # Check whether --enable-silent-rules was given.
19575 if test ${enable_silent_rules+y}
19576 then :
19577 enableval=$enable_silent_rules;
19578 fi
19579
19580 case $enable_silent_rules in # (((
19581 yes) AM_DEFAULT_VERBOSITY=0;;
19582 no) AM_DEFAULT_VERBOSITY=1;;
19583 *) AM_DEFAULT_VERBOSITY=0;;
19584 esac
19585 am_make=${MAKE-make}
19586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
19587 printf %s "checking whether $am_make supports nested variables... " >&6; }
19588 if test ${am_cv_make_support_nested_variables+y}
19589 then :
19590 printf %s "(cached) " >&6
19591 else $as_nop
19592 if printf "%s\n" 'TRUE=$(BAR$(V))
19593 BAR0=false
19594 BAR1=true
19595 V=1
19596 am__doit:
19597 @$(TRUE)
19598 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
19599 am_cv_make_support_nested_variables=yes
19600 else
19601 am_cv_make_support_nested_variables=no
19602 fi
19603 fi
19604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
19605 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
19606 if test $am_cv_make_support_nested_variables = yes; then
19607 AM_V='$(V)'
19608 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19609 else
19610 AM_V=$AM_DEFAULT_VERBOSITY
19611 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19612 fi
19613 AM_BACKSLASH='\'
19614
19615
19616
19617
19618 # Check whether --enable-devel-docs was given.
19619 if test ${enable_devel_docs+y}
19620 then :
19621 enableval=$enable_devel_docs; build_devel_docs=$enableval
19622 else $as_nop
19623 build_devel_docs=yes
19624 fi
19625
19626
19627 if test x$build_devel_docs = xyes; then
19628 ENABLE_DEVEL_DOCS_TRUE=
19629 ENABLE_DEVEL_DOCS_FALSE='#'
19630 else
19631 ENABLE_DEVEL_DOCS_TRUE='#'
19632 ENABLE_DEVEL_DOCS_FALSE=
19633 fi
19634
19635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
19636 printf %s "checking whether to build developer documentation... " >&6; }
19637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
19638 printf "%s\n" "$build_devel_docs" >&6; }
19639
19640
19641
19642
19643
19644 # Check whether --with-xmlto was given.
19645 if test ${with_xmlto+y}
19646 then :
19647 withval=$with_xmlto; use_xmlto=$withval
19648 else $as_nop
19649 use_xmlto=auto
19650 fi
19651
19652
19653
19654 if test "x$use_xmlto" = x"auto"; then
19655 # Extract the first word of "xmlto", so it can be a program name with args.
19656 set dummy xmlto; ac_word=$2
19657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19658 printf %s "checking for $ac_word... " >&6; }
19659 if test ${ac_cv_path_XMLTO+y}
19660 then :
19661 printf %s "(cached) " >&6
19662 else $as_nop
19663 case $XMLTO in
19664 [\\/]* | ?:[\\/]*)
19665 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19666 ;;
19667 *)
19668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19669 for as_dir in $PATH
19670 do
19671 IFS=$as_save_IFS
19672 case $as_dir in #(((
19673 '') as_dir=./ ;;
19674 */) ;;
19675 *) as_dir=$as_dir/ ;;
19676 esac
19677 for ac_exec_ext in '' $ac_executable_extensions; do
19678 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19679 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19680 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19681 break 2
19682 fi
19683 done
19684 done
19685 IFS=$as_save_IFS
19686
19687 ;;
19688 esac
19689 fi
19690 XMLTO=$ac_cv_path_XMLTO
19691 if test -n "$XMLTO"; then
19692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19693 printf "%s\n" "$XMLTO" >&6; }
19694 else
19695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696 printf "%s\n" "no" >&6; }
19697 fi
19698
19699
19700 if test "x$XMLTO" = "x"; then
19701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
19702 printf "%s\n" "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
19703 have_xmlto=no
19704 else
19705 have_xmlto=yes
19706 fi
19707 elif test "x$use_xmlto" = x"yes" ; then
19708 # Extract the first word of "xmlto", so it can be a program name with args.
19709 set dummy xmlto; ac_word=$2
19710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19711 printf %s "checking for $ac_word... " >&6; }
19712 if test ${ac_cv_path_XMLTO+y}
19713 then :
19714 printf %s "(cached) " >&6
19715 else $as_nop
19716 case $XMLTO in
19717 [\\/]* | ?:[\\/]*)
19718 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
19719 ;;
19720 *)
19721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19722 for as_dir in $PATH
19723 do
19724 IFS=$as_save_IFS
19725 case $as_dir in #(((
19726 '') as_dir=./ ;;
19727 */) ;;
19728 *) as_dir=$as_dir/ ;;
19729 esac
19730 for ac_exec_ext in '' $ac_executable_extensions; do
19731 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19732 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
19733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19734 break 2
19735 fi
19736 done
19737 done
19738 IFS=$as_save_IFS
19739
19740 ;;
19741 esac
19742 fi
19743 XMLTO=$ac_cv_path_XMLTO
19744 if test -n "$XMLTO"; then
19745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
19746 printf "%s\n" "$XMLTO" >&6; }
19747 else
19748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19749 printf "%s\n" "no" >&6; }
19750 fi
19751
19752
19753 if test "x$XMLTO" = "x"; then
19754 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
19755 fi
19756 have_xmlto=yes
19757 elif test "x$use_xmlto" = x"no" ; then
19758 if test "x$XMLTO" != "x"; then
19759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
19760 printf "%s\n" "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
19761 fi
19762 have_xmlto=no
19763 else
19764 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
19765 fi
19766
19767 # Test for a minimum version of xmlto, if provided.
19768 if test "$have_xmlto" = yes; then
19769 # scrape the xmlto version
19770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
19771 printf %s "checking the xmlto version... " >&6; }
19772 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
19773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
19774 printf "%s\n" "$xmlto_version" >&6; }
19775 as_arg_v1=$xmlto_version
19776 as_arg_v2=0.0.22
19777 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
19778 case $? in #(
19779 1) :
19780 if test "x$use_xmlto" = xauto; then
19781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
19782 printf "%s\n" "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
19783 have_xmlto=no
19784 else
19785 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
19786 fi ;; #(
19787 0) :
19788 ;; #(
19789 2) :
19790 ;; #(
19791 *) :
19792 ;;
19793 esac
19794 fi
19795
19796 # Test for the ability of xmlto to generate a text target
19797 #
19798 # NOTE: xmlto 0.0.27 or higher return a non-zero return code in the
19799 # following test for empty XML docbook files.
19800 # For compatibility reasons use the following empty XML docbook file and if
19801 # it fails try it again with a non-empty XML file.
19802 have_xmlto_text=no
19803 cat > conftest.xml << "EOF"
19804 EOF
19805 if test "$have_xmlto" = yes
19806 then :
19807 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19808 then :
19809 have_xmlto_text=yes
19810 else $as_nop
19811 # Try it again with a non-empty XML file.
19812 cat > conftest.xml << "EOF"
19813 <x></x>
19814 EOF
19815 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1
19816 then :
19817 have_xmlto_text=yes
19818 else $as_nop
19819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
19820 printf "%s\n" "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
19821 fi
19822 fi
19823 fi
19824 rm -f conftest.xml
19825 if test $have_xmlto_text = yes; then
19826 HAVE_XMLTO_TEXT_TRUE=
19827 HAVE_XMLTO_TEXT_FALSE='#'
19828 else
19829 HAVE_XMLTO_TEXT_TRUE='#'
19830 HAVE_XMLTO_TEXT_FALSE=
19831 fi
19832
19833 if test "$have_xmlto" = yes; then
19834 HAVE_XMLTO_TRUE=
19835 HAVE_XMLTO_FALSE='#'
19836 else
19837 HAVE_XMLTO_TRUE='#'
19838 HAVE_XMLTO_FALSE=
19839 fi
19840
19841
19842
19843
19844
19845
19846 # Check whether --with-fop was given.
19847 if test ${with_fop+y}
19848 then :
19849 withval=$with_fop; use_fop=$withval
19850 else $as_nop
19851 use_fop=auto
19852 fi
19853
19854
19855
19856 if test "x$use_fop" = x"auto"; then
19857 # Extract the first word of "fop", so it can be a program name with args.
19858 set dummy fop; ac_word=$2
19859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19860 printf %s "checking for $ac_word... " >&6; }
19861 if test ${ac_cv_path_FOP+y}
19862 then :
19863 printf %s "(cached) " >&6
19864 else $as_nop
19865 case $FOP in
19866 [\\/]* | ?:[\\/]*)
19867 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19868 ;;
19869 *)
19870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19871 for as_dir in $PATH
19872 do
19873 IFS=$as_save_IFS
19874 case $as_dir in #(((
19875 '') as_dir=./ ;;
19876 */) ;;
19877 *) as_dir=$as_dir/ ;;
19878 esac
19879 for ac_exec_ext in '' $ac_executable_extensions; do
19880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19881 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19883 break 2
19884 fi
19885 done
19886 done
19887 IFS=$as_save_IFS
19888
19889 ;;
19890 esac
19891 fi
19892 FOP=$ac_cv_path_FOP
19893 if test -n "$FOP"; then
19894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19895 printf "%s\n" "$FOP" >&6; }
19896 else
19897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19898 printf "%s\n" "no" >&6; }
19899 fi
19900
19901
19902 if test "x$FOP" = "x"; then
19903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
19904 printf "%s\n" "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
19905 have_fop=no
19906 else
19907 have_fop=yes
19908 fi
19909 elif test "x$use_fop" = x"yes" ; then
19910 # Extract the first word of "fop", so it can be a program name with args.
19911 set dummy fop; ac_word=$2
19912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19913 printf %s "checking for $ac_word... " >&6; }
19914 if test ${ac_cv_path_FOP+y}
19915 then :
19916 printf %s "(cached) " >&6
19917 else $as_nop
19918 case $FOP in
19919 [\\/]* | ?:[\\/]*)
19920 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
19921 ;;
19922 *)
19923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19924 for as_dir in $PATH
19925 do
19926 IFS=$as_save_IFS
19927 case $as_dir in #(((
19928 '') as_dir=./ ;;
19929 */) ;;
19930 *) as_dir=$as_dir/ ;;
19931 esac
19932 for ac_exec_ext in '' $ac_executable_extensions; do
19933 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
19934 ac_cv_path_FOP="$as_dir$ac_word$ac_exec_ext"
19935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
19936 break 2
19937 fi
19938 done
19939 done
19940 IFS=$as_save_IFS
19941
19942 ;;
19943 esac
19944 fi
19945 FOP=$ac_cv_path_FOP
19946 if test -n "$FOP"; then
19947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
19948 printf "%s\n" "$FOP" >&6; }
19949 else
19950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19951 printf "%s\n" "no" >&6; }
19952 fi
19953
19954
19955 if test "x$FOP" = "x"; then
19956 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
19957 fi
19958 have_fop=yes
19959 elif test "x$use_fop" = x"no" ; then
19960 if test "x$FOP" != "x"; then
19961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
19962 printf "%s\n" "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
19963 fi
19964 have_fop=no
19965 else
19966 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
19967 fi
19968
19969 # Test for a minimum version of fop, if provided.
19970
19971 if test "$have_fop" = yes; then
19972 HAVE_FOP_TRUE=
19973 HAVE_FOP_FALSE='#'
19974 else
19975 HAVE_FOP_TRUE='#'
19976 HAVE_FOP_FALSE=
19977 fi
19978
19979
19980
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
19982 printf %s "checking for X.Org SGML entities >= 1.7... " >&6; }
19983 XORG_SGML_PATH=
19984 if test -n "$PKG_CONFIG" && \
19985 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
19986 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
19987 ac_status=$?
19988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19989 test $ac_status = 0; }; then
19990 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
19991 else
19992 :
19993
19994 fi
19995
19996 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
19997 # the path and the name of the doc stylesheet
19998 if test "x$XORG_SGML_PATH" != "x" ; then
19999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
20000 printf "%s\n" "$XORG_SGML_PATH" >&6; }
20001 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
20002 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
20003 else
20004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20005 printf "%s\n" "no" >&6; }
20006 fi
20007
20008
20009
20010
20011 if test "x$XSL_STYLESHEET" != "x"; then
20012 HAVE_STYLESHEETS_TRUE=
20013 HAVE_STYLESHEETS_FALSE='#'
20014 else
20015 HAVE_STYLESHEETS_TRUE='#'
20016 HAVE_STYLESHEETS_FALSE=
20017 fi
20018
20019
20020
20021 # Checks for header files.
20022 ac_fn_c_check_header_compile "$LINENO" "endian.h" "ac_cv_header_endian_h" "$ac_includes_default"
20023 if test "x$ac_cv_header_endian_h" = xyes
20024 then :
20025 printf "%s\n" "#define HAVE_ENDIAN_H 1" >>confdefs.h
20026
20027 fi
20028 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$ac_includes_default"
20029 if test "x$ac_cv_header_poll_h" = xyes
20030 then :
20031 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
20032
20033 fi
20034 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$ac_includes_default"
20035 if test "x$ac_cv_header_sys_poll_h" = xyes
20036 then :
20037 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
20038
20039 fi
20040
20041
20042 # Checks for library functions.
20043 ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
20044 if test "x$ac_cv_func_poll" = xyes
20045 then :
20046 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
20047
20048 fi
20049 ac_fn_c_check_func "$LINENO" "readlink" "ac_cv_func_readlink"
20050 if test "x$ac_cv_func_readlink" = xyes
20051 then :
20052 printf "%s\n" "#define HAVE_READLINK 1" >>confdefs.h
20053
20054 fi
20055
20056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strlcat" >&5
20057 printf %s "checking for library containing strlcat... " >&6; }
20058 if test ${ac_cv_search_strlcat+y}
20059 then :
20060 printf %s "(cached) " >&6
20061 else $as_nop
20062 ac_func_search_save_LIBS=$LIBS
20063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20064 /* end confdefs.h. */
20065
20066 /* Override any GCC internal prototype to avoid an error.
20067 Use char because int might match the return type of a GCC
20068 builtin and then its argument prototype would still apply. */
20069 char strlcat ();
20070 int
20071 main (void)
20072 {
20073 return strlcat ();
20074 ;
20075 return 0;
20076 }
20077 _ACEOF
20078 for ac_lib in '' bsd
20079 do
20080 if test -z "$ac_lib"; then
20081 ac_res="none required"
20082 else
20083 ac_res=-l$ac_lib
20084 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20085 fi
20086 if ac_fn_c_try_link "$LINENO"
20087 then :
20088 ac_cv_search_strlcat=$ac_res
20089 fi
20090 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20091 conftest$ac_exeext
20092 if test ${ac_cv_search_strlcat+y}
20093 then :
20094 break
20095 fi
20096 done
20097 if test ${ac_cv_search_strlcat+y}
20098 then :
20099
20100 else $as_nop
20101 ac_cv_search_strlcat=no
20102 fi
20103 rm conftest.$ac_ext
20104 LIBS=$ac_func_search_save_LIBS
20105 fi
20106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcat" >&5
20107 printf "%s\n" "$ac_cv_search_strlcat" >&6; }
20108 ac_res=$ac_cv_search_strlcat
20109 if test "$ac_res" != no
20110 then :
20111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20112
20113 fi
20114
20115 if test "$ac_cv_search_strlcat" = "-lbsd"; then
20116
20117 printf "%s\n" "#define HAVE_LIBBSD 1" >>confdefs.h
20118
20119 fi
20120
20121 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
20122 if test "x$ac_cv_func_reallocarray" = xyes
20123 then :
20124 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
20125
20126 else $as_nop
20127 case " $LIBOBJS " in
20128 *" reallocarray.$ac_objext "* ) ;;
20129 *) LIBOBJS="$LIBOBJS reallocarray.$ac_objext"
20130 ;;
20131 esac
20132
20133 fi
20134 ac_fn_c_check_func "$LINENO" "realpath" "ac_cv_func_realpath"
20135 if test "x$ac_cv_func_realpath" = xyes
20136 then :
20137 printf "%s\n" "#define HAVE_REALPATH 1" >>confdefs.h
20138
20139 else $as_nop
20140 case " $LIBOBJS " in
20141 *" realpath.$ac_objext "* ) ;;
20142 *) LIBOBJS="$LIBOBJS realpath.$ac_objext"
20143 ;;
20144 esac
20145
20146 fi
20147 ac_fn_c_check_func "$LINENO" "strlcat" "ac_cv_func_strlcat"
20148 if test "x$ac_cv_func_strlcat" = xyes
20149 then :
20150 printf "%s\n" "#define HAVE_STRLCAT 1" >>confdefs.h
20151
20152 else $as_nop
20153 case " $LIBOBJS " in
20154 *" strlcat.$ac_objext "* ) ;;
20155 *) LIBOBJS="$LIBOBJS strlcat.$ac_objext"
20156 ;;
20157 esac
20158
20159 fi
20160 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
20161 if test "x$ac_cv_func_strlcpy" = xyes
20162 then :
20163 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
20164
20165 else $as_nop
20166 case " $LIBOBJS " in
20167 *" strlcpy.$ac_objext "* ) ;;
20168 *) LIBOBJS="$LIBOBJS strlcpy.$ac_objext"
20169 ;;
20170 esac
20171
20172 fi
20173
20174
20175 # Check for BSDish err.h
20176 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
20177 if test "x$ac_cv_header_err_h" = xyes
20178 then :
20179 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
20180
20181 fi
20182
20183
20184 # If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
20185 # must first be located explicitly.
20186
20187
20188
20189
20190
20191
20192
20193 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20194 if test -n "$ac_tool_prefix"; then
20195 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20196 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20198 printf %s "checking for $ac_word... " >&6; }
20199 if test ${ac_cv_path_PKG_CONFIG+y}
20200 then :
20201 printf %s "(cached) " >&6
20202 else $as_nop
20203 case $PKG_CONFIG in
20204 [\\/]* | ?:[\\/]*)
20205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20206 ;;
20207 *)
20208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20209 for as_dir in $PATH
20210 do
20211 IFS=$as_save_IFS
20212 case $as_dir in #(((
20213 '') as_dir=./ ;;
20214 */) ;;
20215 *) as_dir=$as_dir/ ;;
20216 esac
20217 for ac_exec_ext in '' $ac_executable_extensions; do
20218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20219 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20221 break 2
20222 fi
20223 done
20224 done
20225 IFS=$as_save_IFS
20226
20227 ;;
20228 esac
20229 fi
20230 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20231 if test -n "$PKG_CONFIG"; then
20232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20233 printf "%s\n" "$PKG_CONFIG" >&6; }
20234 else
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20236 printf "%s\n" "no" >&6; }
20237 fi
20238
20239
20240 fi
20241 if test -z "$ac_cv_path_PKG_CONFIG"; then
20242 ac_pt_PKG_CONFIG=$PKG_CONFIG
20243 # Extract the first word of "pkg-config", so it can be a program name with args.
20244 set dummy pkg-config; ac_word=$2
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20246 printf %s "checking for $ac_word... " >&6; }
20247 if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
20248 then :
20249 printf %s "(cached) " >&6
20250 else $as_nop
20251 case $ac_pt_PKG_CONFIG in
20252 [\\/]* | ?:[\\/]*)
20253 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20254 ;;
20255 *)
20256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20257 for as_dir in $PATH
20258 do
20259 IFS=$as_save_IFS
20260 case $as_dir in #(((
20261 '') as_dir=./ ;;
20262 */) ;;
20263 *) as_dir=$as_dir/ ;;
20264 esac
20265 for ac_exec_ext in '' $ac_executable_extensions; do
20266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20267 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
20268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20269 break 2
20270 fi
20271 done
20272 done
20273 IFS=$as_save_IFS
20274
20275 ;;
20276 esac
20277 fi
20278 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20279 if test -n "$ac_pt_PKG_CONFIG"; then
20280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
20281 printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
20282 else
20283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20284 printf "%s\n" "no" >&6; }
20285 fi
20286
20287 if test "x$ac_pt_PKG_CONFIG" = x; then
20288 PKG_CONFIG=""
20289 else
20290 case $cross_compiling:$ac_tool_warned in
20291 yes:)
20292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20293 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20294 ac_tool_warned=yes ;;
20295 esac
20296 PKG_CONFIG=$ac_pt_PKG_CONFIG
20297 fi
20298 else
20299 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20300 fi
20301
20302 fi
20303 if test -n "$PKG_CONFIG"; then
20304 _pkg_min_version=0.9.0
20305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
20306 printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20307 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20309 printf "%s\n" "yes" >&6; }
20310 else
20311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20312 printf "%s\n" "no" >&6; }
20313 PKG_CONFIG=""
20314 fi
20315 fi
20316
20317 #
20318 # select libraries to include
20319 #
20320
20321 XFONT_FONTFILE=no
20322
20323 #
20324 # FreeType for all scalable (OpenType, TrueType, PostScript) and
20325 # some bitmap formats (BDF & PCF)
20326 #
20327 # Check whether --enable-freetype was given.
20328 if test ${enable_freetype+y}
20329 then :
20330 enableval=$enable_freetype; XFONT_FREETYPE=$enableval
20331 else $as_nop
20332 XFONT_FREETYPE=yes
20333 fi
20334
20335 if test x$XFONT_FREETYPE = xyes; then
20336 XFONT_FREETYPE_TRUE=
20337 XFONT_FREETYPE_FALSE='#'
20338 else
20339 XFONT_FREETYPE_TRUE='#'
20340 XFONT_FREETYPE_FALSE=
20341 fi
20342
20343 if test x$XFONT_FREETYPE = xyes; then
20344
20345 printf "%s\n" "#define XFONT_FREETYPE 1" >>confdefs.h
20346
20347
20348 # Check whether --with-freetype-config was given.
20349 if test ${with_freetype_config+y}
20350 then :
20351 withval=$with_freetype_config; freetype_config=$withval
20352 else $as_nop
20353 freetype_config=auto
20354 fi
20355
20356
20357 if test "$freetype_config" = "auto" ; then
20358
20359 pkg_failed=no
20360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
20361 printf %s "checking for FREETYPE... " >&6; }
20362
20363 if test -n "$FREETYPE_CFLAGS"; then
20364 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
20365 elif test -n "$PKG_CONFIG"; then
20366 if test -n "$PKG_CONFIG" && \
20367 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
20368 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
20369 ac_status=$?
20370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20371 test $ac_status = 0; }; then
20372 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
20373 test "x$?" != "x0" && pkg_failed=yes
20374 else
20375 pkg_failed=yes
20376 fi
20377 else
20378 pkg_failed=untried
20379 fi
20380 if test -n "$FREETYPE_LIBS"; then
20381 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
20382 elif test -n "$PKG_CONFIG"; then
20383 if test -n "$PKG_CONFIG" && \
20384 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
20385 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
20386 ac_status=$?
20387 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20388 test $ac_status = 0; }; then
20389 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
20390 test "x$?" != "x0" && pkg_failed=yes
20391 else
20392 pkg_failed=yes
20393 fi
20394 else
20395 pkg_failed=untried
20396 fi
20397
20398
20399
20400 if test $pkg_failed = yes; then
20401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20402 printf "%s\n" "no" >&6; }
20403
20404 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20405 _pkg_short_errors_supported=yes
20406 else
20407 _pkg_short_errors_supported=no
20408 fi
20409 if test $_pkg_short_errors_supported = yes; then
20410 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
20411 else
20412 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
20413 fi
20414 # Put the nasty error message in config.log where it belongs
20415 echo "$FREETYPE_PKG_ERRORS" >&5
20416
20417 freetype_config=yes
20418 elif test $pkg_failed = untried; then
20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20420 printf "%s\n" "no" >&6; }
20421 freetype_config=yes
20422 else
20423 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
20424 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
20425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20426 printf "%s\n" "yes" >&6; }
20427 freetype_config=no
20428 fi
20429 fi
20430
20431 if test "$freetype_config" = "yes"; then
20432 # Extract the first word of "freetype-config", so it can be a program name with args.
20433 set dummy freetype-config; ac_word=$2
20434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20435 printf %s "checking for $ac_word... " >&6; }
20436 if test ${ac_cv_path_ft_config+y}
20437 then :
20438 printf %s "(cached) " >&6
20439 else $as_nop
20440 case $ft_config in
20441 [\\/]* | ?:[\\/]*)
20442 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
20443 ;;
20444 *)
20445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20446 for as_dir in $PATH
20447 do
20448 IFS=$as_save_IFS
20449 case $as_dir in #(((
20450 '') as_dir=./ ;;
20451 */) ;;
20452 *) as_dir=$as_dir/ ;;
20453 esac
20454 for ac_exec_ext in '' $ac_executable_extensions; do
20455 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20456 ac_cv_path_ft_config="$as_dir$ac_word$ac_exec_ext"
20457 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20458 break 2
20459 fi
20460 done
20461 done
20462 IFS=$as_save_IFS
20463
20464 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
20465 ;;
20466 esac
20467 fi
20468 ft_config=$ac_cv_path_ft_config
20469 if test -n "$ft_config"; then
20470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
20471 printf "%s\n" "$ft_config" >&6; }
20472 else
20473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20474 printf "%s\n" "no" >&6; }
20475 fi
20476
20477
20478 if test "$ft_config" = "no"; then
20479 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
20480 fi
20481 else
20482 ft_config="$freetype_config"
20483 fi
20484
20485 if test "$freetype_config" != "no"; then
20486 FREETYPE_CFLAGS="`$ft_config --cflags`"
20487 FREETYPE_LIBS="`$ft_config --libs`"
20488 fi
20489 FREETYPE_REQUIRES="freetype2"
20490 XFONT_FONTFILE=yes
20491 else
20492 FREETYPE_CFLAGS=""
20493 FREETYPE_LIBS=""
20494 FREETYPE_REQUIRES=""
20495 fi
20496
20497
20498
20499
20500 #
20501 # Bitmap fonts in files:
20502 # Builtins (gzipped pcf format in .text segment)
20503 # PCF
20504 # BDF
20505 # SNF
20506 #
20507
20508
20509 printf "%s\n" "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
20510
20511 X_GZIP_FONT_COMPRESSION=1
20512
20513
20514 pkg_failed=no
20515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
20516 printf %s "checking for ZLIB... " >&6; }
20517
20518 if test -n "$ZLIB_CFLAGS"; then
20519 pkg_cv_ZLIB_CFLAGS="$ZLIB_CFLAGS"
20520 elif test -n "$PKG_CONFIG"; then
20521 if test -n "$PKG_CONFIG" && \
20522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20523 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20524 ac_status=$?
20525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20526 test $ac_status = 0; }; then
20527 pkg_cv_ZLIB_CFLAGS=`$PKG_CONFIG --cflags "zlib" 2>/dev/null`
20528 test "x$?" != "x0" && pkg_failed=yes
20529 else
20530 pkg_failed=yes
20531 fi
20532 else
20533 pkg_failed=untried
20534 fi
20535 if test -n "$ZLIB_LIBS"; then
20536 pkg_cv_ZLIB_LIBS="$ZLIB_LIBS"
20537 elif test -n "$PKG_CONFIG"; then
20538 if test -n "$PKG_CONFIG" && \
20539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib\""; } >&5
20540 ($PKG_CONFIG --exists --print-errors "zlib") 2>&5
20541 ac_status=$?
20542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20543 test $ac_status = 0; }; then
20544 pkg_cv_ZLIB_LIBS=`$PKG_CONFIG --libs "zlib" 2>/dev/null`
20545 test "x$?" != "x0" && pkg_failed=yes
20546 else
20547 pkg_failed=yes
20548 fi
20549 else
20550 pkg_failed=untried
20551 fi
20552
20553
20554
20555 if test $pkg_failed = yes; then
20556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20557 printf "%s\n" "no" >&6; }
20558
20559 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20560 _pkg_short_errors_supported=yes
20561 else
20562 _pkg_short_errors_supported=no
20563 fi
20564 if test $_pkg_short_errors_supported = yes; then
20565 ZLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib" 2>&1`
20566 else
20567 ZLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib" 2>&1`
20568 fi
20569 # Put the nasty error message in config.log where it belongs
20570 echo "$ZLIB_PKG_ERRORS" >&5
20571
20572 Z_REQUIRES=""
20573 elif test $pkg_failed = untried; then
20574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20575 printf "%s\n" "no" >&6; }
20576 Z_REQUIRES=""
20577 else
20578 ZLIB_CFLAGS=$pkg_cv_ZLIB_CFLAGS
20579 ZLIB_LIBS=$pkg_cv_ZLIB_LIBS
20580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20581 printf "%s\n" "yes" >&6; }
20582 Z_REQUIRES=zlib
20583 fi
20584 if test "x$Z_REQUIRES" = "x"; then
20585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
20586 printf %s "checking for gzopen in -lz... " >&6; }
20587 if test ${ac_cv_lib_z_gzopen+y}
20588 then :
20589 printf %s "(cached) " >&6
20590 else $as_nop
20591 ac_check_lib_save_LIBS=$LIBS
20592 LIBS="-lz $LIBS"
20593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20594 /* end confdefs.h. */
20595
20596 /* Override any GCC internal prototype to avoid an error.
20597 Use char because int might match the return type of a GCC
20598 builtin and then its argument prototype would still apply. */
20599 char gzopen ();
20600 int
20601 main (void)
20602 {
20603 return gzopen ();
20604 ;
20605 return 0;
20606 }
20607 _ACEOF
20608 if ac_fn_c_try_link "$LINENO"
20609 then :
20610 ac_cv_lib_z_gzopen=yes
20611 else $as_nop
20612 ac_cv_lib_z_gzopen=no
20613 fi
20614 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20615 conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20617 fi
20618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
20619 printf "%s\n" "$ac_cv_lib_z_gzopen" >&6; }
20620 if test "x$ac_cv_lib_z_gzopen" = xyes
20621 then :
20622 Z_LIBS=-lz
20623 else $as_nop
20624 as_fn_error $? "*** zlib is required" "$LINENO" 5
20625 fi
20626
20627 fi
20628
20629
20630
20631 # Check whether --with-bzip2 was given.
20632 if test ${with_bzip2+y}
20633 then :
20634 withval=$with_bzip2;
20635 else $as_nop
20636 with_bzip2=no
20637 fi
20638
20639 if test "x$with_bzip2" = xyes; then
20640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
20641 printf %s "checking for BZ2_bzopen in -lbz2... " >&6; }
20642 if test ${ac_cv_lib_bz2_BZ2_bzopen+y}
20643 then :
20644 printf %s "(cached) " >&6
20645 else $as_nop
20646 ac_check_lib_save_LIBS=$LIBS
20647 LIBS="-lbz2 $LIBS"
20648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20649 /* end confdefs.h. */
20650
20651 /* Override any GCC internal prototype to avoid an error.
20652 Use char because int might match the return type of a GCC
20653 builtin and then its argument prototype would still apply. */
20654 char BZ2_bzopen ();
20655 int
20656 main (void)
20657 {
20658 return BZ2_bzopen ();
20659 ;
20660 return 0;
20661 }
20662 _ACEOF
20663 if ac_fn_c_try_link "$LINENO"
20664 then :
20665 ac_cv_lib_bz2_BZ2_bzopen=yes
20666 else $as_nop
20667 ac_cv_lib_bz2_BZ2_bzopen=no
20668 fi
20669 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20670 conftest$ac_exeext conftest.$ac_ext
20671 LIBS=$ac_check_lib_save_LIBS
20672 fi
20673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
20674 printf "%s\n" "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
20675 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes
20676 then :
20677 Z_LIBS="$Z_LIBS -lbz2"
20678 else $as_nop
20679 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
20680 fi
20681
20682
20683 printf "%s\n" "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
20684
20685 fi
20686 if test "x$with_bzip2" = xyes ; then
20687 X_BZIP2_FONT_COMPRESSION_TRUE=
20688 X_BZIP2_FONT_COMPRESSION_FALSE='#'
20689 else
20690 X_BZIP2_FONT_COMPRESSION_TRUE='#'
20691 X_BZIP2_FONT_COMPRESSION_FALSE=
20692 fi
20693
20694
20695
20696 # Check whether --enable-builtins was given.
20697 if test ${enable_builtins+y}
20698 then :
20699 enableval=$enable_builtins; XFONT_BUILTINS=$enableval
20700 else $as_nop
20701 XFONT_BUILTINS=yes
20702 fi
20703
20704 if test "x$XFONT_BUILTINS" = xyes ; then
20705 XFONT_BUILTINS_TRUE=
20706 XFONT_BUILTINS_FALSE='#'
20707 else
20708 XFONT_BUILTINS_TRUE='#'
20709 XFONT_BUILTINS_FALSE=
20710 fi
20711
20712 if test "x$XFONT_BUILTINS" = xyes; then
20713
20714 printf "%s\n" "#define XFONT_BUILTINS 1" >>confdefs.h
20715
20716 XFONT_BITMAP=yes
20717 fi
20718
20719 # Check whether --enable-pcfformat was given.
20720 if test ${enable_pcfformat+y}
20721 then :
20722 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
20723 else $as_nop
20724 XFONT_PCFFORMAT=yes
20725 fi
20726
20727 if test "x$XFONT_PCFFORMAT" = xyes; then
20728 XFONT_PCFFORMAT_TRUE=
20729 XFONT_PCFFORMAT_FALSE='#'
20730 else
20731 XFONT_PCFFORMAT_TRUE='#'
20732 XFONT_PCFFORMAT_FALSE=
20733 fi
20734
20735 if test "x$XFONT_PCFFORMAT" = xyes; then
20736
20737 printf "%s\n" "#define XFONT_PCFFORMAT 1" >>confdefs.h
20738
20739 XFONT_BITMAP=yes
20740 fi
20741
20742 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
20743 XFONT_PCF_OR_BUILTIN_TRUE=
20744 XFONT_PCF_OR_BUILTIN_FALSE='#'
20745 else
20746 XFONT_PCF_OR_BUILTIN_TRUE='#'
20747 XFONT_PCF_OR_BUILTIN_FALSE=
20748 fi
20749
20750
20751 # Check whether --enable-bdfformat was given.
20752 if test ${enable_bdfformat+y}
20753 then :
20754 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
20755 else $as_nop
20756 XFONT_BDFFORMAT=yes
20757 fi
20758
20759 if test "x$XFONT_BDFFORMAT" = xyes; then
20760 XFONT_BDFFORMAT_TRUE=
20761 XFONT_BDFFORMAT_FALSE='#'
20762 else
20763 XFONT_BDFFORMAT_TRUE='#'
20764 XFONT_BDFFORMAT_FALSE=
20765 fi
20766
20767 if test "x$XFONT_BDFFORMAT" = xyes; then
20768
20769 printf "%s\n" "#define XFONT_BDFFORMAT 1" >>confdefs.h
20770
20771 XFONT_BITMAP=yes
20772 fi
20773
20774 # Check whether --enable-snfformat was given.
20775 if test ${enable_snfformat+y}
20776 then :
20777 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
20778 else $as_nop
20779 XFONT_SNFFORMAT=no
20780 fi
20781
20782 if test "x$XFONT_SNFFORMAT" = xyes; then
20783 XFONT_SNFFORMAT_TRUE=
20784 XFONT_SNFFORMAT_FALSE='#'
20785 else
20786 XFONT_SNFFORMAT_TRUE='#'
20787 XFONT_SNFFORMAT_FALSE=
20788 fi
20789
20790 if test "x$XFONT_SNFFORMAT" = xyes; then
20791
20792 printf "%s\n" "#define XFONT_SNFFORMAT 1" >>confdefs.h
20793
20794 XFONT_BITMAP=yes
20795 fi
20796
20797 if test "x$XFONT_BITMAP" = xyes ; then
20798 XFONT_BITMAP_TRUE=
20799 XFONT_BITMAP_FALSE='#'
20800 else
20801 XFONT_BITMAP_TRUE='#'
20802 XFONT_BITMAP_FALSE=
20803 fi
20804
20805 if test "x$XFONT_BITMAP" = xyes; then
20806
20807 printf "%s\n" "#define XFONT_BITMAP 1" >>confdefs.h
20808
20809 XFONT_FONTFILE=yes
20810 fi
20811
20812 if test "x$XFONT_FONTFILE" = xyes; then
20813 XFONT_FONTFILE_TRUE=
20814 XFONT_FONTFILE_FALSE='#'
20815 else
20816 XFONT_FONTFILE_TRUE='#'
20817 XFONT_FONTFILE_FALSE=
20818 fi
20819
20820 if test "x$XFONT_FONTFILE" = xyes; then
20821
20822 printf "%s\n" "#define XFONT_FONTFILE 1" >>confdefs.h
20823
20824 fi
20825
20826 #
20827 # Support connection to font servers?
20828 #
20829
20830 # Check whether --enable-fc was given.
20831 if test ${enable_fc+y}
20832 then :
20833 enableval=$enable_fc; XFONT_FC=$enableval
20834 else $as_nop
20835 XFONT_FC=yes
20836 fi
20837
20838 if test "x$XFONT_FC" = xyes; then
20839 XFONT_FC_TRUE=
20840 XFONT_FC_FALSE='#'
20841 else
20842 XFONT_FC_TRUE='#'
20843 XFONT_FC_FALSE=
20844 fi
20845
20846 if test "x$XFONT_FC" = xyes; then
20847
20848 printf "%s\n" "#define XFONT_FC 1" >>confdefs.h
20849
20850 fi
20851
20852
20853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
20854 printf %s "checking for hypot in -lm... " >&6; }
20855 if test ${ac_cv_lib_m_hypot+y}
20856 then :
20857 printf %s "(cached) " >&6
20858 else $as_nop
20859 ac_check_lib_save_LIBS=$LIBS
20860 LIBS="-lm $LIBS"
20861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20862 /* end confdefs.h. */
20863
20864 /* Override any GCC internal prototype to avoid an error.
20865 Use char because int might match the return type of a GCC
20866 builtin and then its argument prototype would still apply. */
20867 char hypot ();
20868 int
20869 main (void)
20870 {
20871 return hypot ();
20872 ;
20873 return 0;
20874 }
20875 _ACEOF
20876 if ac_fn_c_try_link "$LINENO"
20877 then :
20878 ac_cv_lib_m_hypot=yes
20879 else $as_nop
20880 ac_cv_lib_m_hypot=no
20881 fi
20882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20883 conftest$ac_exeext conftest.$ac_ext
20884 LIBS=$ac_check_lib_save_LIBS
20885 fi
20886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
20887 printf "%s\n" "$ac_cv_lib_m_hypot" >&6; }
20888 if test "x$ac_cv_lib_m_hypot" = xyes
20889 then :
20890 MATH_LIBS=-lm
20891
20892 else $as_nop
20893 as_fn_error $? "*** libm is required" "$LINENO" 5
20894 fi
20895
20896
20897
20898 pkg_failed=no
20899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
20900 printf %s "checking for XFONT... " >&6; }
20901
20902 if test -n "$XFONT_CFLAGS"; then
20903 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
20904 elif test -n "$PKG_CONFIG"; then
20905 if test -n "$PKG_CONFIG" && \
20906 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
20907 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
20908 ac_status=$?
20909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20910 test $ac_status = 0; }; then
20911 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
20912 test "x$?" != "x0" && pkg_failed=yes
20913 else
20914 pkg_failed=yes
20915 fi
20916 else
20917 pkg_failed=untried
20918 fi
20919 if test -n "$XFONT_LIBS"; then
20920 pkg_cv_XFONT_LIBS="$XFONT_LIBS"
20921 elif test -n "$PKG_CONFIG"; then
20922 if test -n "$PKG_CONFIG" && \
20923 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
20924 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
20925 ac_status=$?
20926 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20927 test $ac_status = 0; }; then
20928 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
20929 test "x$?" != "x0" && pkg_failed=yes
20930 else
20931 pkg_failed=yes
20932 fi
20933 else
20934 pkg_failed=untried
20935 fi
20936
20937
20938
20939 if test $pkg_failed = yes; then
20940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20941 printf "%s\n" "no" >&6; }
20942
20943 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20944 _pkg_short_errors_supported=yes
20945 else
20946 _pkg_short_errors_supported=no
20947 fi
20948 if test $_pkg_short_errors_supported = yes; then
20949 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
20950 else
20951 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
20952 fi
20953 # Put the nasty error message in config.log where it belongs
20954 echo "$XFONT_PKG_ERRORS" >&5
20955
20956 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
20957
20958 $XFONT_PKG_ERRORS
20959
20960 Consider adjusting the PKG_CONFIG_PATH environment variable if you
20961 installed software in a non-standard prefix.
20962
20963 Alternatively, you may set the environment variables XFONT_CFLAGS
20964 and XFONT_LIBS to avoid the need to call pkg-config.
20965 See the pkg-config man page for more details." "$LINENO" 5
20966 elif test $pkg_failed = untried; then
20967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20968 printf "%s\n" "no" >&6; }
20969 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20970 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20971 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
20972 is in your PATH or set the PKG_CONFIG environment variable to the full
20973 path to pkg-config.
20974
20975 Alternatively, you may set the environment variables XFONT_CFLAGS
20976 and XFONT_LIBS to avoid the need to call pkg-config.
20977 See the pkg-config man page for more details.
20978
20979 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
20980 See \`config.log' for more details" "$LINENO" 5; }
20981 else
20982 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
20983 XFONT_LIBS=$pkg_cv_XFONT_LIBS
20984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20985 printf "%s\n" "yes" >&6; }
20986
20987 fi
20988
20989 # Transport selection macro from xtrans.m4
20990
20991
20992 case $host_os in
20993 mingw*) unixdef="no" ;;
20994 *) unixdef="yes" ;;
20995 esac
20996 # Check whether --enable-unix-transport was given.
20997 if test ${enable_unix_transport+y}
20998 then :
20999 enableval=$enable_unix_transport; UNIXCONN=$enableval
21000 else $as_nop
21001 UNIXCONN=$unixdef
21002 fi
21003
21004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
21005 printf %s "checking if Xtrans should support UNIX socket connections... " >&6; }
21006 if test "$UNIXCONN" = "yes"; then
21007
21008 printf "%s\n" "#define UNIXCONN 1" >>confdefs.h
21009
21010 fi
21011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
21012 printf "%s\n" "$UNIXCONN" >&6; }
21013 # Check whether --enable-tcp-transport was given.
21014 if test ${enable_tcp_transport+y}
21015 then :
21016 enableval=$enable_tcp_transport; TCPCONN=$enableval
21017 else $as_nop
21018 TCPCONN=yes
21019 fi
21020
21021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
21022 printf %s "checking if Xtrans should support TCP socket connections... " >&6; }
21023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
21024 printf "%s\n" "$TCPCONN" >&6; }
21025 if test "$TCPCONN" = "yes"; then
21026
21027 printf "%s\n" "#define TCPCONN 1" >>confdefs.h
21028
21029
21030 # SVR4 hides these in libraries other than libc
21031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
21032 printf %s "checking for library containing socket... " >&6; }
21033 if test ${ac_cv_search_socket+y}
21034 then :
21035 printf %s "(cached) " >&6
21036 else $as_nop
21037 ac_func_search_save_LIBS=$LIBS
21038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21040
21041 /* Override any GCC internal prototype to avoid an error.
21042 Use char because int might match the return type of a GCC
21043 builtin and then its argument prototype would still apply. */
21044 char socket ();
21045 int
21046 main (void)
21047 {
21048 return socket ();
21049 ;
21050 return 0;
21051 }
21052 _ACEOF
21053 for ac_lib in '' socket
21054 do
21055 if test -z "$ac_lib"; then
21056 ac_res="none required"
21057 else
21058 ac_res=-l$ac_lib
21059 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21060 fi
21061 if ac_fn_c_try_link "$LINENO"
21062 then :
21063 ac_cv_search_socket=$ac_res
21064 fi
21065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21066 conftest$ac_exeext
21067 if test ${ac_cv_search_socket+y}
21068 then :
21069 break
21070 fi
21071 done
21072 if test ${ac_cv_search_socket+y}
21073 then :
21074
21075 else $as_nop
21076 ac_cv_search_socket=no
21077 fi
21078 rm conftest.$ac_ext
21079 LIBS=$ac_func_search_save_LIBS
21080 fi
21081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
21082 printf "%s\n" "$ac_cv_search_socket" >&6; }
21083 ac_res=$ac_cv_search_socket
21084 if test "$ac_res" != no
21085 then :
21086 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21087
21088 fi
21089
21090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
21091 printf %s "checking for library containing gethostbyname... " >&6; }
21092 if test ${ac_cv_search_gethostbyname+y}
21093 then :
21094 printf %s "(cached) " >&6
21095 else $as_nop
21096 ac_func_search_save_LIBS=$LIBS
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21099
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21103 char gethostbyname ();
21104 int
21105 main (void)
21106 {
21107 return gethostbyname ();
21108 ;
21109 return 0;
21110 }
21111 _ACEOF
21112 for ac_lib in '' nsl
21113 do
21114 if test -z "$ac_lib"; then
21115 ac_res="none required"
21116 else
21117 ac_res=-l$ac_lib
21118 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21119 fi
21120 if ac_fn_c_try_link "$LINENO"
21121 then :
21122 ac_cv_search_gethostbyname=$ac_res
21123 fi
21124 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21125 conftest$ac_exeext
21126 if test ${ac_cv_search_gethostbyname+y}
21127 then :
21128 break
21129 fi
21130 done
21131 if test ${ac_cv_search_gethostbyname+y}
21132 then :
21133
21134 else $as_nop
21135 ac_cv_search_gethostbyname=no
21136 fi
21137 rm conftest.$ac_ext
21138 LIBS=$ac_func_search_save_LIBS
21139 fi
21140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
21141 printf "%s\n" "$ac_cv_search_gethostbyname" >&6; }
21142 ac_res=$ac_cv_search_gethostbyname
21143 if test "$ac_res" != no
21144 then :
21145 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21146
21147 fi
21148
21149 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
21150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
21151 printf %s "checking for main in -lws2_32... " >&6; }
21152 if test ${ac_cv_lib_ws2_32_main+y}
21153 then :
21154 printf %s "(cached) " >&6
21155 else $as_nop
21156 ac_check_lib_save_LIBS=$LIBS
21157 LIBS="-lws2_32 $LIBS"
21158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21159 /* end confdefs.h. */
21160
21161
21162 int
21163 main (void)
21164 {
21165 return main ();
21166 ;
21167 return 0;
21168 }
21169 _ACEOF
21170 if ac_fn_c_try_link "$LINENO"
21171 then :
21172 ac_cv_lib_ws2_32_main=yes
21173 else $as_nop
21174 ac_cv_lib_ws2_32_main=no
21175 fi
21176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21177 conftest$ac_exeext conftest.$ac_ext
21178 LIBS=$ac_check_lib_save_LIBS
21179 fi
21180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
21181 printf "%s\n" "$ac_cv_lib_ws2_32_main" >&6; }
21182 if test "x$ac_cv_lib_ws2_32_main" = xyes
21183 then :
21184 printf "%s\n" "#define HAVE_LIBWS2_32 1" >>confdefs.h
21185
21186 LIBS="-lws2_32 $LIBS"
21187
21188 fi
21189
21190 fi
21191
21192 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
21193 # Check whether --enable-ipv6 was given.
21194 if test ${enable_ipv6+y}
21195 then :
21196 enableval=$enable_ipv6; IPV6CONN=$enableval
21197 else $as_nop
21198 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
21199 if test "x$ac_cv_func_getaddrinfo" = xyes
21200 then :
21201 IPV6CONN=yes
21202 else $as_nop
21203 IPV6CONN=no
21204 fi
21205
21206 fi
21207
21208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
21209 printf %s "checking if IPv6 support should be built... " >&6; }
21210 if test "$IPV6CONN" = "yes"; then
21211
21212 printf "%s\n" "#define IPv6 1" >>confdefs.h
21213
21214 fi
21215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
21216 printf "%s\n" "$IPV6CONN" >&6; }
21217
21218 # 4.3BSD-Reno added a new member to struct sockaddr_in
21219 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
21220 #include <sys/types.h>
21221 #include <sys/socket.h>
21222 #include <netinet/in.h>
21223
21224 "
21225 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes
21226 then :
21227
21228 printf "%s\n" "#define BSD44SOCKETS 1" >>confdefs.h
21229
21230 fi
21231
21232
21233 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
21234 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
21235 $ac_includes_default
21236 #include <sys/socket.h>
21237 "
21238 if test "x$ac_cv_type_socklen_t" = xyes
21239 then :
21240
21241 printf "%s\n" "#define HAVE_SOCKLEN_T 1" >>confdefs.h
21242
21243
21244 fi
21245
21246
21247 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
21248 # _XOPEN_SOURCE to get it (such as on Solaris)
21249 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21250 $ac_includes_default
21251 #include <sys/socket.h>
21252
21253 "
21254 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21255 then :
21256
21257 fi
21258
21259 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
21260 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21261 unset ac_cv_member_struct_msghdr_msg_control
21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
21263 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
21264 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21265 #define _XOPEN_SOURCE 600
21266 $ac_includes_default
21267 #include <sys/socket.h>
21268
21269 "
21270 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21271 then :
21272
21273 printf "%s\n" "#define _XOPEN_SOURCE 600" >>confdefs.h
21274
21275
21276 fi
21277
21278 fi
21279 # If that didn't work, fall back to XPG5/UNIX98 with C89
21280 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
21281 unset ac_cv_member_struct_msghdr_msg_control
21282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
21283 printf "%s\n" "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
21284 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
21285 #define _XOPEN_SOURCE 500
21286 $ac_includes_default
21287 #include <sys/socket.h>
21288
21289 "
21290 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes
21291 then :
21292
21293 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
21294
21295
21296 fi
21297
21298 fi
21299
21300
21301
21302 fi
21303 case $host_os in
21304 solaris*) localdef="yes" ;;
21305 *) localdef="no" ;;
21306 esac
21307 # Check whether --enable-local-transport was given.
21308 if test ${enable_local_transport+y}
21309 then :
21310 enableval=$enable_local_transport; LOCALCONN=$enableval
21311 else $as_nop
21312 LOCALCONN=$localdef
21313 fi
21314
21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
21316 printf %s "checking if Xtrans should support os-specific local connections... " >&6; }
21317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
21318 printf "%s\n" "$LOCALCONN" >&6; }
21319 if test "$LOCALCONN" = "yes"; then
21320
21321 printf "%s\n" "#define LOCALCONN 1" >>confdefs.h
21322
21323 fi
21324
21325 # Other functions Xtrans may need
21326 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
21327 if test "x$ac_cv_func_strcasecmp" = xyes
21328 then :
21329 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
21330
21331 fi
21332 ac_fn_c_check_func "$LINENO" "strlcpy" "ac_cv_func_strlcpy"
21333 if test "x$ac_cv_func_strlcpy" = xyes
21334 then :
21335 printf "%s\n" "#define HAVE_STRLCPY 1" >>confdefs.h
21336
21337 fi
21338
21339
21340
21341
21342 case $host_os in
21343 linux*)
21344 OS_CFLAGS="-D_XOPEN_SOURCE"
21345 ;;
21346 *)
21347 OS_CFLAGS=
21348 ;;
21349 esac
21350
21351 save_CFLAGS="$CFLAGS"
21352 CFLAGS="$CFLAGS -fvisibility=hidden"
21353 CFLAGS_VISIBILITY=
21354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21355 /* end confdefs.h. */
21356
21357 #if defined(__CYGWIN__) || defined(__MINGW32__)
21358 #error No visibility support
21359 #endif
21360 extern __attribute__((__visibility__("default"))) int x;
21361
21362 _ACEOF
21363 if ac_fn_c_try_compile "$LINENO"
21364 then :
21365 CFLAGS_VISIBILITY=-fvisibility=hidden
21366 fi
21367 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21368 CFLAGS="$save_CFLAGS"
21369 OS_CFLAGS="$OS_CFLAGS $CFLAGS_VISIBILITY"
21370
21371
21372
21373 ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc"
21374
21375 cat >confcache <<\_ACEOF
21376 # This file is a shell script that caches the results of configure
21377 # tests run on this system so they can be shared between configure
21378 # scripts and configure runs, see configure's option --config-cache.
21379 # It is not useful on other systems. If it contains results you don't
21380 # want to keep, you may remove or edit it.
21381 #
21382 # config.status only pays attention to the cache file if you give it
21383 # the --recheck option to rerun configure.
21384 #
21385 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21386 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21387 # following values.
21388
21389 _ACEOF
21390
21391 # The following way of writing the cache mishandles newlines in values,
21392 # but we know of no workaround that is simple, portable, and efficient.
21393 # So, we kill variables containing newlines.
21394 # Ultrix sh set writes to stderr and can't be redirected directly,
21395 # and sets the high bit in the cache file unless we assign to the vars.
21396 (
21397 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21398 eval ac_val=\$$ac_var
21399 case $ac_val in #(
21400 *${as_nl}*)
21401 case $ac_var in #(
21402 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21403 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21404 esac
21405 case $ac_var in #(
21406 _ | IFS | as_nl) ;; #(
21407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21408 *) { eval $ac_var=; unset $ac_var;} ;;
21409 esac ;;
21410 esac
21411 done
21412
21413 (set) 2>&1 |
21414 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21415 *${as_nl}ac_space=\ *)
21416 # `set' does not quote correctly, so add quotes: double-quote
21417 # substitution turns \\\\ into \\, and sed turns \\ into \.
21418 sed -n \
21419 "s/'/'\\\\''/g;
21420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21421 ;; #(
21422 *)
21423 # `set' quotes correctly as required by POSIX, so do not add quotes.
21424 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21425 ;;
21426 esac |
21427 sort
21428 ) |
21429 sed '
21430 /^ac_cv_env_/b end
21431 t clear
21432 :clear
21433 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21434 t end
21435 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21436 :end' >>confcache
21437 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21438 if test -w "$cache_file"; then
21439 if test "x$cache_file" != "x/dev/null"; then
21440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21441 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21442 if test ! -f "$cache_file" || test -h "$cache_file"; then
21443 cat confcache >"$cache_file"
21444 else
21445 case $cache_file in #(
21446 */* | ?:*)
21447 mv -f confcache "$cache_file"$$ &&
21448 mv -f "$cache_file"$$ "$cache_file" ;; #(
21449 *)
21450 mv -f confcache "$cache_file" ;;
21451 esac
21452 fi
21453 fi
21454 else
21455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21456 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21457 fi
21458 fi
21459 rm -f confcache
21460
21461 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21462 # Let make expand exec_prefix.
21463 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21464
21465 DEFS=-DHAVE_CONFIG_H
21466
21467 ac_libobjs=
21468 ac_ltlibobjs=
21469 U=
21470 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21471 # 1. Remove the extension, and $U if already installed.
21472 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21473 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21474 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21475 # will be set to the directory where LIBOBJS objects are built.
21476 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21477 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21478 done
21479 LIBOBJS=$ac_libobjs
21480
21481 LTLIBOBJS=$ac_ltlibobjs
21482
21483
21484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21485 printf %s "checking that generated files are newer than configure... " >&6; }
21486 if test -n "$am_sleep_pid"; then
21487 # Hide warnings about reused PIDs.
21488 wait $am_sleep_pid 2>/dev/null
21489 fi
21490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21491 printf "%s\n" "done" >&6; }
21492 if test -n "$EXEEXT"; then
21493 am__EXEEXT_TRUE=
21494 am__EXEEXT_FALSE='#'
21495 else
21496 am__EXEEXT_TRUE='#'
21497 am__EXEEXT_FALSE=
21498 fi
21499
21500 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21501 as_fn_error $? "conditional \"AMDEP\" was never defined.
21502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21503 fi
21504 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21505 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21507 fi
21508 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
21509 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
21510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21511 fi
21512 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
21513 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
21514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21515 fi
21516 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
21517 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
21518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21519 fi
21520 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
21521 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
21522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21523 fi
21524 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
21525 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
21526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21527 fi
21528 if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
21529 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
21530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21531 fi
21532 if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
21533 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
21534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21535 fi
21536 if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
21537 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
21538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21539 fi
21540 if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
21541 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
21542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21543 fi
21544 if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
21545 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
21546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21547 fi
21548 if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
21549 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
21550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21551 fi
21552 if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
21553 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
21554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21555 fi
21556 if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
21557 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
21558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21559 fi
21560 if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
21561 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
21562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21563 fi
21564 if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
21565 as_fn_error $? "conditional \"XFONT_FC\" was never defined.
21566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21567 fi
21568
21569 : "${CONFIG_STATUS=./config.status}"
21570 ac_write_fail=0
21571 ac_clean_files_save=$ac_clean_files
21572 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21574 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21575 as_write_fail=0
21576 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21577 #! $SHELL
21578 # Generated by $as_me.
21579 # Run this file to recreate the current configuration.
21580 # Compiler output produced by configure, useful for debugging
21581 # configure, is in config.log if it exists.
21582
21583 debug=false
21584 ac_cs_recheck=false
21585 ac_cs_silent=false
21586
21587 SHELL=\${CONFIG_SHELL-$SHELL}
21588 export SHELL
21589 _ASEOF
21590 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21591 ## -------------------- ##
21592 ## M4sh Initialization. ##
21593 ## -------------------- ##
21594
21595 # Be more Bourne compatible
21596 DUALCASE=1; export DUALCASE # for MKS sh
21597 as_nop=:
21598 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21599 then :
21600 emulate sh
21601 NULLCMD=:
21602 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21603 # is contrary to our usage. Disable this feature.
21604 alias -g '${1+"$@"}'='"$@"'
21605 setopt NO_GLOB_SUBST
21606 else $as_nop
21607 case `(set -o) 2>/dev/null` in #(
21608 *posix*) :
21609 set -o posix ;; #(
21610 *) :
21611 ;;
21612 esac
21613 fi
21614
21615
21616
21617 # Reset variables that may have inherited troublesome values from
21618 # the environment.
21619
21620 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21621 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21622 # side effect of setting IFS to empty, thus disabling word splitting.)
21623 # Quoting is to prevent editors from complaining about space-tab.
21624 as_nl='
21625 '
21626 export as_nl
21627 IFS=" "" $as_nl"
21628
21629 PS1='$ '
21630 PS2='> '
21631 PS4='+ '
21632
21633 # Ensure predictable behavior from utilities with locale-dependent output.
21634 LC_ALL=C
21635 export LC_ALL
21636 LANGUAGE=C
21637 export LANGUAGE
21638
21639 # We cannot yet rely on "unset" to work, but we need these variables
21640 # to be unset--not just set to an empty or harmless value--now, to
21641 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21642 # also avoids known problems related to "unset" and subshell syntax
21643 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21644 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21645 do eval test \${$as_var+y} \
21646 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21647 done
21648
21649 # Ensure that fds 0, 1, and 2 are open.
21650 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21651 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21652 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21653
21654 # The user is always right.
21655 if ${PATH_SEPARATOR+false} :; then
21656 PATH_SEPARATOR=:
21657 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21658 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21659 PATH_SEPARATOR=';'
21660 }
21661 fi
21662
21663
21664 # Find who we are. Look in the path if we contain no directory separator.
21665 as_myself=
21666 case $0 in #((
21667 *[\\/]* ) as_myself=$0 ;;
21668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21669 for as_dir in $PATH
21670 do
21671 IFS=$as_save_IFS
21672 case $as_dir in #(((
21673 '') as_dir=./ ;;
21674 */) ;;
21675 *) as_dir=$as_dir/ ;;
21676 esac
21677 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21678 done
21679 IFS=$as_save_IFS
21680
21681 ;;
21682 esac
21683 # We did not find ourselves, most probably we were run as `sh COMMAND'
21684 # in which case we are not to be found in the path.
21685 if test "x$as_myself" = x; then
21686 as_myself=$0
21687 fi
21688 if test ! -f "$as_myself"; then
21689 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21690 exit 1
21691 fi
21692
21693
21694
21695 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21696 # ----------------------------------------
21697 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21698 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21699 # script with STATUS, using 1 if that was 0.
21700 as_fn_error ()
21701 {
21702 as_status=$1; test $as_status -eq 0 && as_status=1
21703 if test "$4"; then
21704 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21706 fi
21707 printf "%s\n" "$as_me: error: $2" >&2
21708 as_fn_exit $as_status
21709 } # as_fn_error
21710
21711
21712
21713 # as_fn_set_status STATUS
21714 # -----------------------
21715 # Set $? to STATUS, without forking.
21716 as_fn_set_status ()
21717 {
21718 return $1
21719 } # as_fn_set_status
21720
21721 # as_fn_exit STATUS
21722 # -----------------
21723 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21724 as_fn_exit ()
21725 {
21726 set +e
21727 as_fn_set_status $1
21728 exit $1
21729 } # as_fn_exit
21730
21731 # as_fn_unset VAR
21732 # ---------------
21733 # Portably unset VAR.
21734 as_fn_unset ()
21735 {
21736 { eval $1=; unset $1;}
21737 }
21738 as_unset=as_fn_unset
21739
21740 # as_fn_append VAR VALUE
21741 # ----------------------
21742 # Append the text in VALUE to the end of the definition contained in VAR. Take
21743 # advantage of any shell optimizations that allow amortized linear growth over
21744 # repeated appends, instead of the typical quadratic growth present in naive
21745 # implementations.
21746 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21747 then :
21748 eval 'as_fn_append ()
21749 {
21750 eval $1+=\$2
21751 }'
21752 else $as_nop
21753 as_fn_append ()
21754 {
21755 eval $1=\$$1\$2
21756 }
21757 fi # as_fn_append
21758
21759 # as_fn_arith ARG...
21760 # ------------------
21761 # Perform arithmetic evaluation on the ARGs, and store the result in the
21762 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21763 # must be portable across $(()) and expr.
21764 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21765 then :
21766 eval 'as_fn_arith ()
21767 {
21768 as_val=$(( $* ))
21769 }'
21770 else $as_nop
21771 as_fn_arith ()
21772 {
21773 as_val=`expr "$@" || test $? -eq 1`
21774 }
21775 fi # as_fn_arith
21776
21777
21778 if expr a : '\(a\)' >/dev/null 2>&1 &&
21779 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21780 as_expr=expr
21781 else
21782 as_expr=false
21783 fi
21784
21785 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21786 as_basename=basename
21787 else
21788 as_basename=false
21789 fi
21790
21791 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21792 as_dirname=dirname
21793 else
21794 as_dirname=false
21795 fi
21796
21797 as_me=`$as_basename -- "$0" ||
21798 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21799 X"$0" : 'X\(//\)$' \| \
21800 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21801 printf "%s\n" X/"$0" |
21802 sed '/^.*\/\([^/][^/]*\)\/*$/{
21803 s//\1/
21804 q
21805 }
21806 /^X\/\(\/\/\)$/{
21807 s//\1/
21808 q
21809 }
21810 /^X\/\(\/\).*/{
21811 s//\1/
21812 q
21813 }
21814 s/.*/./; q'`
21815
21816 # Avoid depending upon Character Ranges.
21817 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21818 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21819 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21820 as_cr_digits='0123456789'
21821 as_cr_alnum=$as_cr_Letters$as_cr_digits
21822
21823
21824 # Determine whether it's possible to make 'echo' print without a newline.
21825 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21826 # for compatibility with existing Makefiles.
21827 ECHO_C= ECHO_N= ECHO_T=
21828 case `echo -n x` in #(((((
21829 -n*)
21830 case `echo 'xy\c'` in
21831 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21832 xy) ECHO_C='\c';;
21833 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21834 ECHO_T=' ';;
21835 esac;;
21836 *)
21837 ECHO_N='-n';;
21838 esac
21839
21840 # For backward compatibility with old third-party macros, we provide
21841 # the shell variables $as_echo and $as_echo_n. New code should use
21842 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21843 as_echo='printf %s\n'
21844 as_echo_n='printf %s'
21845
21846 rm -f conf$$ conf$$.exe conf$$.file
21847 if test -d conf$$.dir; then
21848 rm -f conf$$.dir/conf$$.file
21849 else
21850 rm -f conf$$.dir
21851 mkdir conf$$.dir 2>/dev/null
21852 fi
21853 if (echo >conf$$.file) 2>/dev/null; then
21854 if ln -s conf$$.file conf$$ 2>/dev/null; then
21855 as_ln_s='ln -s'
21856 # ... but there are two gotchas:
21857 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21858 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21859 # In both cases, we have to default to `cp -pR'.
21860 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21861 as_ln_s='cp -pR'
21862 elif ln conf$$.file conf$$ 2>/dev/null; then
21863 as_ln_s=ln
21864 else
21865 as_ln_s='cp -pR'
21866 fi
21867 else
21868 as_ln_s='cp -pR'
21869 fi
21870 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21871 rmdir conf$$.dir 2>/dev/null
21872
21873
21874 # as_fn_mkdir_p
21875 # -------------
21876 # Create "$as_dir" as a directory, including parents if necessary.
21877 as_fn_mkdir_p ()
21878 {
21879
21880 case $as_dir in #(
21881 -*) as_dir=./$as_dir;;
21882 esac
21883 test -d "$as_dir" || eval $as_mkdir_p || {
21884 as_dirs=
21885 while :; do
21886 case $as_dir in #(
21887 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21888 *) as_qdir=$as_dir;;
21889 esac
21890 as_dirs="'$as_qdir' $as_dirs"
21891 as_dir=`$as_dirname -- "$as_dir" ||
21892 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21893 X"$as_dir" : 'X\(//\)[^/]' \| \
21894 X"$as_dir" : 'X\(//\)$' \| \
21895 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21896 printf "%s\n" X"$as_dir" |
21897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21898 s//\1/
21899 q
21900 }
21901 /^X\(\/\/\)[^/].*/{
21902 s//\1/
21903 q
21904 }
21905 /^X\(\/\/\)$/{
21906 s//\1/
21907 q
21908 }
21909 /^X\(\/\).*/{
21910 s//\1/
21911 q
21912 }
21913 s/.*/./; q'`
21914 test -d "$as_dir" && break
21915 done
21916 test -z "$as_dirs" || eval "mkdir $as_dirs"
21917 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21918
21919
21920 } # as_fn_mkdir_p
21921 if mkdir -p . 2>/dev/null; then
21922 as_mkdir_p='mkdir -p "$as_dir"'
21923 else
21924 test -d ./-p && rmdir ./-p
21925 as_mkdir_p=false
21926 fi
21927
21928
21929 # as_fn_executable_p FILE
21930 # -----------------------
21931 # Test if FILE is an executable regular file.
21932 as_fn_executable_p ()
21933 {
21934 test -f "$1" && test -x "$1"
21935 } # as_fn_executable_p
21936 as_test_x='test -x'
21937 as_executable_p=as_fn_executable_p
21938
21939 # Sed expression to map a string onto a valid CPP name.
21940 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21941
21942 # Sed expression to map a string onto a valid variable name.
21943 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21944
21945
21946 exec 6>&1
21947 ## ----------------------------------- ##
21948 ## Main body of $CONFIG_STATUS script. ##
21949 ## ----------------------------------- ##
21950 _ASEOF
21951 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21952
21953 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21954 # Save the log message, to keep $0 and so on meaningful, and to
21955 # report actual input values of CONFIG_FILES etc. instead of their
21956 # values after options handling.
21957 ac_log="
21958 This file was extended by libXfont2 $as_me 2.0.6, which was
21959 generated by GNU Autoconf 2.71. Invocation command line was
21960
21961 CONFIG_FILES = $CONFIG_FILES
21962 CONFIG_HEADERS = $CONFIG_HEADERS
21963 CONFIG_LINKS = $CONFIG_LINKS
21964 CONFIG_COMMANDS = $CONFIG_COMMANDS
21965 $ $0 $@
21966
21967 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21968 "
21969
21970 _ACEOF
21971
21972 case $ac_config_files in *"
21973 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21974 esac
21975
21976 case $ac_config_headers in *"
21977 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21978 esac
21979
21980
21981 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21982 # Files that config.status was made for.
21983 config_files="$ac_config_files"
21984 config_headers="$ac_config_headers"
21985 config_commands="$ac_config_commands"
21986
21987 _ACEOF
21988
21989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21990 ac_cs_usage="\
21991 \`$as_me' instantiates files and other configuration actions
21992 from templates according to the current configuration. Unless the files
21993 and actions are specified as TAGs, all are instantiated by default.
21994
21995 Usage: $0 [OPTION]... [TAG]...
21996
21997 -h, --help print this help, then exit
21998 -V, --version print version number and configuration settings, then exit
21999 --config print configuration, then exit
22000 -q, --quiet, --silent
22001 do not print progress messages
22002 -d, --debug don't remove temporary files
22003 --recheck update $as_me by reconfiguring in the same conditions
22004 --file=FILE[:TEMPLATE]
22005 instantiate the configuration file FILE
22006 --header=FILE[:TEMPLATE]
22007 instantiate the configuration header FILE
22008
22009 Configuration files:
22010 $config_files
22011
22012 Configuration headers:
22013 $config_headers
22014
22015 Configuration commands:
22016 $config_commands
22017
22018 Report bugs to <https://gitlab.freedesktop.org/xorg/lib/libxfont/-/issues>."
22019
22020 _ACEOF
22021 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
22022 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
22023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22024 ac_cs_config='$ac_cs_config_escaped'
22025 ac_cs_version="\\
22026 libXfont2 config.status 2.0.6
22027 configured by $0, generated by GNU Autoconf 2.71,
22028 with options \\"\$ac_cs_config\\"
22029
22030 Copyright (C) 2021 Free Software Foundation, Inc.
22031 This config.status script is free software; the Free Software Foundation
22032 gives unlimited permission to copy, distribute and modify it."
22033
22034 ac_pwd='$ac_pwd'
22035 srcdir='$srcdir'
22036 INSTALL='$INSTALL'
22037 MKDIR_P='$MKDIR_P'
22038 AWK='$AWK'
22039 test -n "\$AWK" || AWK=awk
22040 _ACEOF
22041
22042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22043 # The default lists apply if the user does not specify any file.
22044 ac_need_defaults=:
22045 while test $# != 0
22046 do
22047 case $1 in
22048 --*=?*)
22049 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22050 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22051 ac_shift=:
22052 ;;
22053 --*=)
22054 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22055 ac_optarg=
22056 ac_shift=:
22057 ;;
22058 *)
22059 ac_option=$1
22060 ac_optarg=$2
22061 ac_shift=shift
22062 ;;
22063 esac
22064
22065 case $ac_option in
22066 # Handling of the options.
22067 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22068 ac_cs_recheck=: ;;
22069 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22070 printf "%s\n" "$ac_cs_version"; exit ;;
22071 --config | --confi | --conf | --con | --co | --c )
22072 printf "%s\n" "$ac_cs_config"; exit ;;
22073 --debug | --debu | --deb | --de | --d | -d )
22074 debug=: ;;
22075 --file | --fil | --fi | --f )
22076 $ac_shift
22077 case $ac_optarg in
22078 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22079 '') as_fn_error $? "missing file argument" ;;
22080 esac
22081 as_fn_append CONFIG_FILES " '$ac_optarg'"
22082 ac_need_defaults=false;;
22083 --header | --heade | --head | --hea )
22084 $ac_shift
22085 case $ac_optarg in
22086 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22087 esac
22088 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22089 ac_need_defaults=false;;
22090 --he | --h)
22091 # Conflict between --help and --header
22092 as_fn_error $? "ambiguous option: \`$1'
22093 Try \`$0 --help' for more information.";;
22094 --help | --hel | -h )
22095 printf "%s\n" "$ac_cs_usage"; exit ;;
22096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22097 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22098 ac_cs_silent=: ;;
22099
22100 # This is an error.
22101 -*) as_fn_error $? "unrecognized option: \`$1'
22102 Try \`$0 --help' for more information." ;;
22103
22104 *) as_fn_append ac_config_targets " $1"
22105 ac_need_defaults=false ;;
22106
22107 esac
22108 shift
22109 done
22110
22111 ac_configure_extra_args=
22112
22113 if $ac_cs_silent; then
22114 exec 6>/dev/null
22115 ac_configure_extra_args="$ac_configure_extra_args --silent"
22116 fi
22117
22118 _ACEOF
22119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22120 if \$ac_cs_recheck; then
22121 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22122 shift
22123 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
22124 CONFIG_SHELL='$SHELL'
22125 export CONFIG_SHELL
22126 exec "\$@"
22127 fi
22128
22129 _ACEOF
22130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22131 exec 5>>config.log
22132 {
22133 echo
22134 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22135 ## Running $as_me. ##
22136 _ASBOX
22137 printf "%s\n" "$ac_log"
22138 } >&5
22139
22140 _ACEOF
22141 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22142 #
22143 # INIT-COMMANDS
22144 #
22145 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
22146
22147
22148 # The HP-UX ksh and POSIX shell print the target directory to stdout
22149 # if CDPATH is set.
22150 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22151
22152 sed_quote_subst='$sed_quote_subst'
22153 double_quote_subst='$double_quote_subst'
22154 delay_variable_subst='$delay_variable_subst'
22155 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22156 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22157 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22158 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22159 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22160 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22161 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
22162 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22163 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22164 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22165 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22166 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22167 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22168 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22169 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22170 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22171 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22172 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22173 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22174 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22175 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22176 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22177 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22178 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22179 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22180 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22181 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22182 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22183 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22184 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22185 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22186 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22187 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22188 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22189 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
22190 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22191 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22192 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22193 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22194 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22195 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22196 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22197 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22198 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
22199 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22200 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22201 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22202 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22203 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22204 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22205 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22206 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22207 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22208 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22209 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22210 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22211 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22212 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22213 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
22214 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22215 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"`'
22216 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
22217 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22218 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22219 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
22220 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22221 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22222 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22223 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22224 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22225 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22226 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22227 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22228 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22229 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22230 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22231 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22232 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22233 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22234 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22235 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22236 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22237 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22238 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22239 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22240 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22241 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22242 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22243 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22244 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22245 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22246 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22247 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22248 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22249 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22250 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22251 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22252 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22253 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22254 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22255 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22256 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22257 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22258 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22259 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22260 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22261 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22262 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22263 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22264 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22265 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22266 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22267 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22268 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22269 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22270 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22271 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22272 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22273 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22274 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22275 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22276 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22277 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22278 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22279 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22280 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22281 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22282 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22283 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22284 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
22285 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
22286 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22287 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22288 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22289 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22290 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22291 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22292
22293 LTCC='$LTCC'
22294 LTCFLAGS='$LTCFLAGS'
22295 compiler='$compiler_DEFAULT'
22296
22297 # A function that is used when there is no print builtin or printf.
22298 func_fallback_echo ()
22299 {
22300 eval 'cat <<_LTECHO_EOF
22301 \$1
22302 _LTECHO_EOF'
22303 }
22304
22305 # Quote evaled strings.
22306 for var in SHELL \
22307 ECHO \
22308 PATH_SEPARATOR \
22309 SED \
22310 GREP \
22311 EGREP \
22312 FGREP \
22313 LD \
22314 NM \
22315 LN_S \
22316 lt_SP2NL \
22317 lt_NL2SP \
22318 reload_flag \
22319 FILECMD \
22320 OBJDUMP \
22321 deplibs_check_method \
22322 file_magic_cmd \
22323 file_magic_glob \
22324 want_nocaseglob \
22325 DLLTOOL \
22326 sharedlib_from_linklib_cmd \
22327 AR \
22328 archiver_list_spec \
22329 STRIP \
22330 RANLIB \
22331 CC \
22332 CFLAGS \
22333 compiler \
22334 lt_cv_sys_global_symbol_pipe \
22335 lt_cv_sys_global_symbol_to_cdecl \
22336 lt_cv_sys_global_symbol_to_import \
22337 lt_cv_sys_global_symbol_to_c_name_address \
22338 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
22339 lt_cv_nm_interface \
22340 nm_file_list_spec \
22341 lt_cv_truncate_bin \
22342 lt_prog_compiler_no_builtin_flag \
22343 lt_prog_compiler_pic \
22344 lt_prog_compiler_wl \
22345 lt_prog_compiler_static \
22346 lt_cv_prog_compiler_c_o \
22347 need_locks \
22348 MANIFEST_TOOL \
22349 DSYMUTIL \
22350 NMEDIT \
22351 LIPO \
22352 OTOOL \
22353 OTOOL64 \
22354 shrext_cmds \
22355 export_dynamic_flag_spec \
22356 whole_archive_flag_spec \
22357 compiler_needs_object \
22358 with_gnu_ld \
22359 allow_undefined_flag \
22360 no_undefined_flag \
22361 hardcode_libdir_flag_spec \
22362 hardcode_libdir_separator \
22363 exclude_expsyms \
22364 include_expsyms \
22365 file_list_spec \
22366 variables_saved_for_relink \
22367 libname_spec \
22368 library_names_spec \
22369 soname_spec \
22370 install_override_mode \
22371 finish_eval \
22372 old_striplib \
22373 striplib; do
22374 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22375 *[\\\\\\\`\\"\\\$]*)
22376 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22377 ;;
22378 *)
22379 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22380 ;;
22381 esac
22382 done
22383
22384 # Double-quote double-evaled strings.
22385 for var in reload_cmds \
22386 old_postinstall_cmds \
22387 old_postuninstall_cmds \
22388 old_archive_cmds \
22389 extract_expsyms_cmds \
22390 old_archive_from_new_cmds \
22391 old_archive_from_expsyms_cmds \
22392 archive_cmds \
22393 archive_expsym_cmds \
22394 module_cmds \
22395 module_expsym_cmds \
22396 export_symbols_cmds \
22397 prelink_cmds \
22398 postlink_cmds \
22399 postinstall_cmds \
22400 postuninstall_cmds \
22401 finish_cmds \
22402 sys_lib_search_path_spec \
22403 configure_time_dlsearch_path \
22404 configure_time_lt_sys_library_path; do
22405 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
22406 *[\\\\\\\`\\"\\\$]*)
22407 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
22408 ;;
22409 *)
22410 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22411 ;;
22412 esac
22413 done
22414
22415 ac_aux_dir='$ac_aux_dir'
22416
22417 # See if we are running on zsh, and set the options that allow our
22418 # commands through without removal of \ escapes INIT.
22419 if test -n "\${ZSH_VERSION+set}"; then
22420 setopt NO_GLOB_SUBST
22421 fi
22422
22423
22424 PACKAGE='$PACKAGE'
22425 VERSION='$VERSION'
22426 RM='$RM'
22427 ofile='$ofile'
22428
22429
22430
22431
22432 _ACEOF
22433
22434 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22435
22436 # Handling of arguments.
22437 for ac_config_target in $ac_config_targets
22438 do
22439 case $ac_config_target in
22440 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22441 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22442 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22443 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22444 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
22445 "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;;
22446
22447 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22448 esac
22449 done
22450
22451
22452 # If the user did not use the arguments to specify the items to instantiate,
22453 # then the envvar interface is used. Set only those that are not.
22454 # We use the long form for the default assignment because of an extremely
22455 # bizarre bug on SunOS 4.1.3.
22456 if $ac_need_defaults; then
22457 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22458 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22459 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22460 fi
22461
22462 # Have a temporary directory for convenience. Make it in the build tree
22463 # simply because there is no reason against having it here, and in addition,
22464 # creating and moving files from /tmp can sometimes cause problems.
22465 # Hook for its removal unless debugging.
22466 # Note that there is a small window in which the directory will not be cleaned:
22467 # after its creation but before its name has been assigned to `$tmp'.
22468 $debug ||
22469 {
22470 tmp= ac_tmp=
22471 trap 'exit_status=$?
22472 : "${ac_tmp:=$tmp}"
22473 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22474 ' 0
22475 trap 'as_fn_exit 1' 1 2 13 15
22476 }
22477 # Create a (secure) tmp directory for tmp files.
22478
22479 {
22480 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22481 test -d "$tmp"
22482 } ||
22483 {
22484 tmp=./conf$$-$RANDOM
22485 (umask 077 && mkdir "$tmp")
22486 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22487 ac_tmp=$tmp
22488
22489 # Set up the scripts for CONFIG_FILES section.
22490 # No need to generate them if there are no CONFIG_FILES.
22491 # This happens for instance with `./config.status config.h'.
22492 if test -n "$CONFIG_FILES"; then
22493
22494
22495 ac_cr=`echo X | tr X '\015'`
22496 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22497 # But we know of no other shell where ac_cr would be empty at this
22498 # point, so we can use a bashism as a fallback.
22499 if test "x$ac_cr" = x; then
22500 eval ac_cr=\$\'\\r\'
22501 fi
22502 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22503 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22504 ac_cs_awk_cr='\\r'
22505 else
22506 ac_cs_awk_cr=$ac_cr
22507 fi
22508
22509 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22510 _ACEOF
22511
22512
22513 {
22514 echo "cat >conf$$subs.awk <<_ACEOF" &&
22515 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22516 echo "_ACEOF"
22517 } >conf$$subs.sh ||
22518 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22519 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22520 ac_delim='%!_!# '
22521 for ac_last_try in false false false false false :; do
22522 . ./conf$$subs.sh ||
22523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22524
22525 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22526 if test $ac_delim_n = $ac_delim_num; then
22527 break
22528 elif $ac_last_try; then
22529 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22530 else
22531 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22532 fi
22533 done
22534 rm -f conf$$subs.sh
22535
22536 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22537 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22538 _ACEOF
22539 sed -n '
22540 h
22541 s/^/S["/; s/!.*/"]=/
22542 p
22543 g
22544 s/^[^!]*!//
22545 :repl
22546 t repl
22547 s/'"$ac_delim"'$//
22548 t delim
22549 :nl
22550 h
22551 s/\(.\{148\}\)..*/\1/
22552 t more1
22553 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22554 p
22555 n
22556 b repl
22557 :more1
22558 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22559 p
22560 g
22561 s/.\{148\}//
22562 t nl
22563 :delim
22564 h
22565 s/\(.\{148\}\)..*/\1/
22566 t more2
22567 s/["\\]/\\&/g; s/^/"/; s/$/"/
22568 p
22569 b
22570 :more2
22571 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22572 p
22573 g
22574 s/.\{148\}//
22575 t delim
22576 ' <conf$$subs.awk | sed '
22577 /^[^""]/{
22578 N
22579 s/\n//
22580 }
22581 ' >>$CONFIG_STATUS || ac_write_fail=1
22582 rm -f conf$$subs.awk
22583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22584 _ACAWK
22585 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22586 for (key in S) S_is_set[key] = 1
22587 FS = ""
22588
22589 }
22590 {
22591 line = $ 0
22592 nfields = split(line, field, "@")
22593 substed = 0
22594 len = length(field[1])
22595 for (i = 2; i < nfields; i++) {
22596 key = field[i]
22597 keylen = length(key)
22598 if (S_is_set[key]) {
22599 value = S[key]
22600 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22601 len += length(value) + length(field[++i])
22602 substed = 1
22603 } else
22604 len += 1 + keylen
22605 }
22606
22607 print line
22608 }
22609
22610 _ACAWK
22611 _ACEOF
22612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22613 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22615 else
22616 cat
22617 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22619 _ACEOF
22620
22621 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22622 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22623 # trailing colons and then remove the whole line if VPATH becomes empty
22624 # (actually we leave an empty line to preserve line numbers).
22625 if test "x$srcdir" = x.; then
22626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22627 h
22628 s///
22629 s/^/:/
22630 s/[ ]*$/:/
22631 s/:\$(srcdir):/:/g
22632 s/:\${srcdir}:/:/g
22633 s/:@srcdir@:/:/g
22634 s/^:*//
22635 s/:*$//
22636 x
22637 s/\(=[ ]*\).*/\1/
22638 G
22639 s/\n//
22640 s/^[^=]*=[ ]*$//
22641 }'
22642 fi
22643
22644 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22645 fi # test -n "$CONFIG_FILES"
22646
22647 # Set up the scripts for CONFIG_HEADERS section.
22648 # No need to generate them if there are no CONFIG_HEADERS.
22649 # This happens for instance with `./config.status Makefile'.
22650 if test -n "$CONFIG_HEADERS"; then
22651 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22652 BEGIN {
22653 _ACEOF
22654
22655 # Transform confdefs.h into an awk script `defines.awk', embedded as
22656 # here-document in config.status, that substitutes the proper values into
22657 # config.h.in to produce config.h.
22658
22659 # Create a delimiter string that does not exist in confdefs.h, to ease
22660 # handling of long lines.
22661 ac_delim='%!_!# '
22662 for ac_last_try in false false :; do
22663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22664 if test -z "$ac_tt"; then
22665 break
22666 elif $ac_last_try; then
22667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22668 else
22669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22670 fi
22671 done
22672
22673 # For the awk script, D is an array of macro values keyed by name,
22674 # likewise P contains macro parameters if any. Preserve backslash
22675 # newline sequences.
22676
22677 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22678 sed -n '
22679 s/.\{148\}/&'"$ac_delim"'/g
22680 t rset
22681 :rset
22682 s/^[ ]*#[ ]*define[ ][ ]*/ /
22683 t def
22684 d
22685 :def
22686 s/\\$//
22687 t bsnl
22688 s/["\\]/\\&/g
22689 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22690 D["\1"]=" \3"/p
22691 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22692 d
22693 :bsnl
22694 s/["\\]/\\&/g
22695 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22696 D["\1"]=" \3\\\\\\n"\\/p
22697 t cont
22698 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22699 t cont
22700 d
22701 :cont
22702 n
22703 s/.\{148\}/&'"$ac_delim"'/g
22704 t clear
22705 :clear
22706 s/\\$//
22707 t bsnlc
22708 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22709 d
22710 :bsnlc
22711 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22712 b cont
22713 ' <confdefs.h | sed '
22714 s/'"$ac_delim"'/"\\\
22715 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22716
22717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22718 for (key in D) D_is_set[key] = 1
22719 FS = ""
22720 }
22721 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22722 line = \$ 0
22723 split(line, arg, " ")
22724 if (arg[1] == "#") {
22725 defundef = arg[2]
22726 mac1 = arg[3]
22727 } else {
22728 defundef = substr(arg[1], 2)
22729 mac1 = arg[2]
22730 }
22731 split(mac1, mac2, "(") #)
22732 macro = mac2[1]
22733 prefix = substr(line, 1, index(line, defundef) - 1)
22734 if (D_is_set[macro]) {
22735 # Preserve the white space surrounding the "#".
22736 print prefix "define", macro P[macro] D[macro]
22737 next
22738 } else {
22739 # Replace #undef with comments. This is necessary, for example,
22740 # in the case of _POSIX_SOURCE, which is predefined and required
22741 # on some systems where configure will not decide to define it.
22742 if (defundef == "undef") {
22743 print "/*", prefix defundef, macro, "*/"
22744 next
22745 }
22746 }
22747 }
22748 { print }
22749 _ACAWK
22750 _ACEOF
22751 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22753 fi # test -n "$CONFIG_HEADERS"
22754
22755
22756 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22757 shift
22758 for ac_tag
22759 do
22760 case $ac_tag in
22761 :[FHLC]) ac_mode=$ac_tag; continue;;
22762 esac
22763 case $ac_mode$ac_tag in
22764 :[FHL]*:*);;
22765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22766 :[FH]-) ac_tag=-:-;;
22767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22768 esac
22769 ac_save_IFS=$IFS
22770 IFS=:
22771 set x $ac_tag
22772 IFS=$ac_save_IFS
22773 shift
22774 ac_file=$1
22775 shift
22776
22777 case $ac_mode in
22778 :L) ac_source=$1;;
22779 :[FH])
22780 ac_file_inputs=
22781 for ac_f
22782 do
22783 case $ac_f in
22784 -) ac_f="$ac_tmp/stdin";;
22785 *) # Look for the file first in the build tree, then in the source tree
22786 # (if the path is not absolute). The absolute path cannot be DOS-style,
22787 # because $ac_f cannot contain `:'.
22788 test -f "$ac_f" ||
22789 case $ac_f in
22790 [\\/$]*) false;;
22791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22792 esac ||
22793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22794 esac
22795 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22796 as_fn_append ac_file_inputs " '$ac_f'"
22797 done
22798
22799 # Let's still pretend it is `configure' which instantiates (i.e., don't
22800 # use $as_me), people would be surprised to read:
22801 # /* config.h. Generated by config.status. */
22802 configure_input='Generated from '`
22803 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22804 `' by configure.'
22805 if test x"$ac_file" != x-; then
22806 configure_input="$ac_file. $configure_input"
22807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22808 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22809 fi
22810 # Neutralize special characters interpreted by sed in replacement strings.
22811 case $configure_input in #(
22812 *\&* | *\|* | *\\* )
22813 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22815 *) ac_sed_conf_input=$configure_input;;
22816 esac
22817
22818 case $ac_tag in
22819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22821 esac
22822 ;;
22823 esac
22824
22825 ac_dir=`$as_dirname -- "$ac_file" ||
22826 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22827 X"$ac_file" : 'X\(//\)[^/]' \| \
22828 X"$ac_file" : 'X\(//\)$' \| \
22829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22830 printf "%s\n" X"$ac_file" |
22831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22832 s//\1/
22833 q
22834 }
22835 /^X\(\/\/\)[^/].*/{
22836 s//\1/
22837 q
22838 }
22839 /^X\(\/\/\)$/{
22840 s//\1/
22841 q
22842 }
22843 /^X\(\/\).*/{
22844 s//\1/
22845 q
22846 }
22847 s/.*/./; q'`
22848 as_dir="$ac_dir"; as_fn_mkdir_p
22849 ac_builddir=.
22850
22851 case "$ac_dir" in
22852 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22853 *)
22854 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22855 # A ".." for each directory in $ac_dir_suffix.
22856 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22857 case $ac_top_builddir_sub in
22858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22860 esac ;;
22861 esac
22862 ac_abs_top_builddir=$ac_pwd
22863 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22864 # for backward compatibility:
22865 ac_top_builddir=$ac_top_build_prefix
22866
22867 case $srcdir in
22868 .) # We are building in place.
22869 ac_srcdir=.
22870 ac_top_srcdir=$ac_top_builddir_sub
22871 ac_abs_top_srcdir=$ac_pwd ;;
22872 [\\/]* | ?:[\\/]* ) # Absolute name.
22873 ac_srcdir=$srcdir$ac_dir_suffix;
22874 ac_top_srcdir=$srcdir
22875 ac_abs_top_srcdir=$srcdir ;;
22876 *) # Relative name.
22877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22878 ac_top_srcdir=$ac_top_build_prefix$srcdir
22879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22880 esac
22881 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22882
22883
22884 case $ac_mode in
22885 :F)
22886 #
22887 # CONFIG_FILE
22888 #
22889
22890 case $INSTALL in
22891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22893 esac
22894 ac_MKDIR_P=$MKDIR_P
22895 case $MKDIR_P in
22896 [\\/$]* | ?:[\\/]* ) ;;
22897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22898 esac
22899 _ACEOF
22900
22901 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22902 # If the template does not know about datarootdir, expand it.
22903 # FIXME: This hack should be removed a few years after 2.60.
22904 ac_datarootdir_hack=; ac_datarootdir_seen=
22905 ac_sed_dataroot='
22906 /datarootdir/ {
22907 p
22908 q
22909 }
22910 /@datadir@/p
22911 /@docdir@/p
22912 /@infodir@/p
22913 /@localedir@/p
22914 /@mandir@/p'
22915 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22916 *datarootdir*) ac_datarootdir_seen=yes;;
22917 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22919 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22920 _ACEOF
22921 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22922 ac_datarootdir_hack='
22923 s&@datadir@&$datadir&g
22924 s&@docdir@&$docdir&g
22925 s&@infodir@&$infodir&g
22926 s&@localedir@&$localedir&g
22927 s&@mandir@&$mandir&g
22928 s&\\\${datarootdir}&$datarootdir&g' ;;
22929 esac
22930 _ACEOF
22931
22932 # Neutralize VPATH when `$srcdir' = `.'.
22933 # Shell code in configure.ac might set extrasub.
22934 # FIXME: do we really want to maintain this feature?
22935 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22936 ac_sed_extra="$ac_vpsub
22937 $extrasub
22938 _ACEOF
22939 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22940 :t
22941 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22942 s|@configure_input@|$ac_sed_conf_input|;t t
22943 s&@top_builddir@&$ac_top_builddir_sub&;t t
22944 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22945 s&@srcdir@&$ac_srcdir&;t t
22946 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22947 s&@top_srcdir@&$ac_top_srcdir&;t t
22948 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22949 s&@builddir@&$ac_builddir&;t t
22950 s&@abs_builddir@&$ac_abs_builddir&;t t
22951 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22952 s&@INSTALL@&$ac_INSTALL&;t t
22953 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22954 $ac_datarootdir_hack
22955 "
22956 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22957 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22958
22959 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22960 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22961 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22962 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22964 which seems to be undefined. Please make sure it is defined" >&5
22965 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22966 which seems to be undefined. Please make sure it is defined" >&2;}
22967
22968 rm -f "$ac_tmp/stdin"
22969 case $ac_file in
22970 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22971 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22972 esac \
22973 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22974 ;;
22975 :H)
22976 #
22977 # CONFIG_HEADER
22978 #
22979 if test x"$ac_file" != x-; then
22980 {
22981 printf "%s\n" "/* $configure_input */" >&1 \
22982 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22983 } >"$ac_tmp/config.h" \
22984 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22985 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22987 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22988 else
22989 rm -f "$ac_file"
22990 mv "$ac_tmp/config.h" "$ac_file" \
22991 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22992 fi
22993 else
22994 printf "%s\n" "/* $configure_input */" >&1 \
22995 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22996 || as_fn_error $? "could not create -" "$LINENO" 5
22997 fi
22998 # Compute "$ac_file"'s index in $config_headers.
22999 _am_arg="$ac_file"
23000 _am_stamp_count=1
23001 for _am_header in $config_headers :; do
23002 case $_am_header in
23003 $_am_arg | $_am_arg:* )
23004 break ;;
23005 * )
23006 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23007 esac
23008 done
23009 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23010 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23011 X"$_am_arg" : 'X\(//\)[^/]' \| \
23012 X"$_am_arg" : 'X\(//\)$' \| \
23013 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23014 printf "%s\n" X"$_am_arg" |
23015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23016 s//\1/
23017 q
23018 }
23019 /^X\(\/\/\)[^/].*/{
23020 s//\1/
23021 q
23022 }
23023 /^X\(\/\/\)$/{
23024 s//\1/
23025 q
23026 }
23027 /^X\(\/\).*/{
23028 s//\1/
23029 q
23030 }
23031 s/.*/./; q'`/stamp-h$_am_stamp_count
23032 ;;
23033
23034 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23035 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
23036 ;;
23037 esac
23038
23039
23040 case $ac_file$ac_mode in
23041 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23042 # Older Autoconf quotes --file arguments for eval, but not when files
23043 # are listed without --file. Let's play safe and only enable the eval
23044 # if we detect the quoting.
23045 # TODO: see whether this extra hack can be removed once we start
23046 # requiring Autoconf 2.70 or later.
23047 case $CONFIG_FILES in #(
23048 *\'*) :
23049 eval set x "$CONFIG_FILES" ;; #(
23050 *) :
23051 set x $CONFIG_FILES ;; #(
23052 *) :
23053 ;;
23054 esac
23055 shift
23056 # Used to flag and report bootstrapping failures.
23057 am_rc=0
23058 for am_mf
23059 do
23060 # Strip MF so we end up with the name of the file.
23061 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
23062 # Check whether this is an Automake generated Makefile which includes
23063 # dependency-tracking related rules and includes.
23064 # Grep'ing the whole file directly is not great: AIX grep has a line
23065 # limit of 2048, but all sed's we know have understand at least 4000.
23066 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
23067 || continue
23068 am_dirpart=`$as_dirname -- "$am_mf" ||
23069 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23070 X"$am_mf" : 'X\(//\)[^/]' \| \
23071 X"$am_mf" : 'X\(//\)$' \| \
23072 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23073 printf "%s\n" X"$am_mf" |
23074 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23075 s//\1/
23076 q
23077 }
23078 /^X\(\/\/\)[^/].*/{
23079 s//\1/
23080 q
23081 }
23082 /^X\(\/\/\)$/{
23083 s//\1/
23084 q
23085 }
23086 /^X\(\/\).*/{
23087 s//\1/
23088 q
23089 }
23090 s/.*/./; q'`
23091 am_filepart=`$as_basename -- "$am_mf" ||
23092 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
23093 X"$am_mf" : 'X\(//\)$' \| \
23094 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
23095 printf "%s\n" X/"$am_mf" |
23096 sed '/^.*\/\([^/][^/]*\)\/*$/{
23097 s//\1/
23098 q
23099 }
23100 /^X\/\(\/\/\)$/{
23101 s//\1/
23102 q
23103 }
23104 /^X\/\(\/\).*/{
23105 s//\1/
23106 q
23107 }
23108 s/.*/./; q'`
23109 { echo "$as_me:$LINENO: cd "$am_dirpart" \
23110 && sed -e '/# am--include-marker/d' "$am_filepart" \
23111 | $MAKE -f - am--depfiles" >&5
23112 (cd "$am_dirpart" \
23113 && sed -e '/# am--include-marker/d' "$am_filepart" \
23114 | $MAKE -f - am--depfiles) >&5 2>&5
23115 ac_status=$?
23116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117 (exit $ac_status); } || am_rc=$?
23118 done
23119 if test $am_rc -ne 0; then
23120 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23121 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
23122 as_fn_error $? "Something went wrong bootstrapping makefile fragments
23123 for automatic dependency tracking. If GNU make was not used, consider
23124 re-running the configure script with MAKE=\"gmake\" (or whatever is
23125 necessary). You can also try re-running configure with the
23126 '--disable-dependency-tracking' option to at least be able to build
23127 the package (albeit without support for automatic dependency tracking).
23128 See \`config.log' for more details" "$LINENO" 5; }
23129 fi
23130 { am_dirpart=; unset am_dirpart;}
23131 { am_filepart=; unset am_filepart;}
23132 { am_mf=; unset am_mf;}
23133 { am_rc=; unset am_rc;}
23134 rm -f conftest-deps.mk
23135 }
23136 ;;
23137 "libtool":C)
23138
23139 # See if we are running on zsh, and set the options that allow our
23140 # commands through without removal of \ escapes.
23141 if test -n "${ZSH_VERSION+set}"; then
23142 setopt NO_GLOB_SUBST
23143 fi
23144
23145 cfgfile=${ofile}T
23146 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23147 $RM "$cfgfile"
23148
23149 cat <<_LT_EOF >> "$cfgfile"
23150 #! $SHELL
23151 # Generated automatically by $as_me ($PACKAGE) $VERSION
23152 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23153 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23154
23155 # Provide generalized library-building support services.
23156 # Written by Gordon Matzigkeit, 1996
23157
23158 # Copyright (C) 2014 Free Software Foundation, Inc.
23159 # This is free software; see the source for copying conditions. There is NO
23160 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
23161
23162 # GNU Libtool is free software; you can redistribute it and/or modify
23163 # it under the terms of the GNU General Public License as published by
23164 # the Free Software Foundation; either version 2 of of the License, or
23165 # (at your option) any later version.
23166 #
23167 # As a special exception to the GNU General Public License, if you
23168 # distribute this file as part of a program or library that is built
23169 # using GNU Libtool, you may include this file under the same
23170 # distribution terms that you use for the rest of that program.
23171 #
23172 # GNU Libtool is distributed in the hope that it will be useful, but
23173 # WITHOUT ANY WARRANTY; without even the implied warranty of
23174 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23175 # GNU General Public License for more details.
23176 #
23177 # You should have received a copy of the GNU General Public License
23178 # along with this program. If not, see <http://www.gnu.org/licenses/>.
23179
23180
23181 # The names of the tagged configurations supported by this script.
23182 available_tags=''
23183
23184 # Configured defaults for sys_lib_dlsearch_path munging.
23185 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
23186
23187 # ### BEGIN LIBTOOL CONFIG
23188
23189 # Which release of libtool.m4 was used?
23190 macro_version=$macro_version
23191 macro_revision=$macro_revision
23192
23193 # Whether or not to build shared libraries.
23194 build_libtool_libs=$enable_shared
23195
23196 # Whether or not to build static libraries.
23197 build_old_libs=$enable_static
23198
23199 # What type of objects to build.
23200 pic_mode=$pic_mode
23201
23202 # Whether or not to optimize for fast installation.
23203 fast_install=$enable_fast_install
23204
23205 # Shared archive member basename,for filename based shared library versioning on AIX.
23206 shared_archive_member_spec=$shared_archive_member_spec
23207
23208 # Shell to use when invoking shell scripts.
23209 SHELL=$lt_SHELL
23210
23211 # An echo program that protects backslashes.
23212 ECHO=$lt_ECHO
23213
23214 # The PATH separator for the build system.
23215 PATH_SEPARATOR=$lt_PATH_SEPARATOR
23216
23217 # The host system.
23218 host_alias=$host_alias
23219 host=$host
23220 host_os=$host_os
23221
23222 # The build system.
23223 build_alias=$build_alias
23224 build=$build
23225 build_os=$build_os
23226
23227 # A sed program that does not truncate output.
23228 SED=$lt_SED
23229
23230 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
23231 Xsed="\$SED -e 1s/^X//"
23232
23233 # A grep program that handles long lines.
23234 GREP=$lt_GREP
23235
23236 # An ERE matcher.
23237 EGREP=$lt_EGREP
23238
23239 # A literal string matcher.
23240 FGREP=$lt_FGREP
23241
23242 # A BSD- or MS-compatible name lister.
23243 NM=$lt_NM
23244
23245 # Whether we need soft or hard links.
23246 LN_S=$lt_LN_S
23247
23248 # What is the maximum length of a command?
23249 max_cmd_len=$max_cmd_len
23250
23251 # Object file suffix (normally "o").
23252 objext=$ac_objext
23253
23254 # Executable file suffix (normally "").
23255 exeext=$exeext
23256
23257 # whether the shell understands "unset".
23258 lt_unset=$lt_unset
23259
23260 # turn spaces into newlines.
23261 SP2NL=$lt_lt_SP2NL
23262
23263 # turn newlines into spaces.
23264 NL2SP=$lt_lt_NL2SP
23265
23266 # convert \$build file names to \$host format.
23267 to_host_file_cmd=$lt_cv_to_host_file_cmd
23268
23269 # convert \$build files to toolchain format.
23270 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
23271
23272 # A file(cmd) program that detects file types.
23273 FILECMD=$lt_FILECMD
23274
23275 # An object symbol dumper.
23276 OBJDUMP=$lt_OBJDUMP
23277
23278 # Method to check whether dependent libraries are shared objects.
23279 deplibs_check_method=$lt_deplibs_check_method
23280
23281 # Command to use when deplibs_check_method = "file_magic".
23282 file_magic_cmd=$lt_file_magic_cmd
23283
23284 # How to find potential files when deplibs_check_method = "file_magic".
23285 file_magic_glob=$lt_file_magic_glob
23286
23287 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
23288 want_nocaseglob=$lt_want_nocaseglob
23289
23290 # DLL creation program.
23291 DLLTOOL=$lt_DLLTOOL
23292
23293 # Command to associate shared and link libraries.
23294 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
23295
23296 # The archiver.
23297 AR=$lt_AR
23298
23299 # Flags to create an archive (by configure).
23300 lt_ar_flags=$lt_ar_flags
23301
23302 # Flags to create an archive.
23303 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
23304
23305 # How to feed a file listing to the archiver.
23306 archiver_list_spec=$lt_archiver_list_spec
23307
23308 # A symbol stripping program.
23309 STRIP=$lt_STRIP
23310
23311 # Commands used to install an old-style archive.
23312 RANLIB=$lt_RANLIB
23313 old_postinstall_cmds=$lt_old_postinstall_cmds
23314 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23315
23316 # Whether to use a lock for old archive extraction.
23317 lock_old_archive_extraction=$lock_old_archive_extraction
23318
23319 # A C compiler.
23320 LTCC=$lt_CC
23321
23322 # LTCC compiler flags.
23323 LTCFLAGS=$lt_CFLAGS
23324
23325 # Take the output of nm and produce a listing of raw symbols and C names.
23326 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23327
23328 # Transform the output of nm in a proper C declaration.
23329 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23330
23331 # Transform the output of nm into a list of symbols to manually relocate.
23332 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
23333
23334 # Transform the output of nm in a C name address pair.
23335 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23336
23337 # Transform the output of nm in a C name address pair when lib prefix is needed.
23338 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
23339
23340 # The name lister interface.
23341 nm_interface=$lt_lt_cv_nm_interface
23342
23343 # Specify filename containing input files for \$NM.
23344 nm_file_list_spec=$lt_nm_file_list_spec
23345
23346 # The root where to search for dependent libraries,and where our libraries should be installed.
23347 lt_sysroot=$lt_sysroot
23348
23349 # Command to truncate a binary pipe.
23350 lt_truncate_bin=$lt_lt_cv_truncate_bin
23351
23352 # The name of the directory that contains temporary libtool files.
23353 objdir=$objdir
23354
23355 # Used to examine libraries when file_magic_cmd begins with "file".
23356 MAGIC_CMD=$MAGIC_CMD
23357
23358 # Must we lock files when doing compilation?
23359 need_locks=$lt_need_locks
23360
23361 # Manifest tool.
23362 MANIFEST_TOOL=$lt_MANIFEST_TOOL
23363
23364 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
23365 DSYMUTIL=$lt_DSYMUTIL
23366
23367 # Tool to change global to local symbols on Mac OS X.
23368 NMEDIT=$lt_NMEDIT
23369
23370 # Tool to manipulate fat objects and archives on Mac OS X.
23371 LIPO=$lt_LIPO
23372
23373 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
23374 OTOOL=$lt_OTOOL
23375
23376 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
23377 OTOOL64=$lt_OTOOL64
23378
23379 # Old archive suffix (normally "a").
23380 libext=$libext
23381
23382 # Shared library suffix (normally ".so").
23383 shrext_cmds=$lt_shrext_cmds
23384
23385 # The commands to extract the exported symbol list from a shared archive.
23386 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23387
23388 # Variables whose values should be saved in libtool wrapper scripts and
23389 # restored at link time.
23390 variables_saved_for_relink=$lt_variables_saved_for_relink
23391
23392 # Do we need the "lib" prefix for modules?
23393 need_lib_prefix=$need_lib_prefix
23394
23395 # Do we need a version for libraries?
23396 need_version=$need_version
23397
23398 # Library versioning type.
23399 version_type=$version_type
23400
23401 # Shared library runtime path variable.
23402 runpath_var=$runpath_var
23403
23404 # Shared library path variable.
23405 shlibpath_var=$shlibpath_var
23406
23407 # Is shlibpath searched before the hard-coded library search path?
23408 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23409
23410 # Format of library name prefix.
23411 libname_spec=$lt_libname_spec
23412
23413 # List of archive names. First name is the real one, the rest are links.
23414 # The last name is the one that the linker finds with -lNAME
23415 library_names_spec=$lt_library_names_spec
23416
23417 # The coded name of the library, if different from the real name.
23418 soname_spec=$lt_soname_spec
23419
23420 # Permission mode override for installation of shared libraries.
23421 install_override_mode=$lt_install_override_mode
23422
23423 # Command to use after installation of a shared archive.
23424 postinstall_cmds=$lt_postinstall_cmds
23425
23426 # Command to use after uninstallation of a shared archive.
23427 postuninstall_cmds=$lt_postuninstall_cmds
23428
23429 # Commands used to finish a libtool library installation in a directory.
23430 finish_cmds=$lt_finish_cmds
23431
23432 # As "finish_cmds", except a single script fragment to be evaled but
23433 # not shown.
23434 finish_eval=$lt_finish_eval
23435
23436 # Whether we should hardcode library paths into libraries.
23437 hardcode_into_libs=$hardcode_into_libs
23438
23439 # Compile-time system search path for libraries.
23440 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23441
23442 # Detected run-time system search path for libraries.
23443 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
23444
23445 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
23446 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
23447
23448 # Whether dlopen is supported.
23449 dlopen_support=$enable_dlopen
23450
23451 # Whether dlopen of programs is supported.
23452 dlopen_self=$enable_dlopen_self
23453
23454 # Whether dlopen of statically linked programs is supported.
23455 dlopen_self_static=$enable_dlopen_self_static
23456
23457 # Commands to strip libraries.
23458 old_striplib=$lt_old_striplib
23459 striplib=$lt_striplib
23460
23461
23462 # The linker used to build libraries.
23463 LD=$lt_LD
23464
23465 # How to create reloadable object files.
23466 reload_flag=$lt_reload_flag
23467 reload_cmds=$lt_reload_cmds
23468
23469 # Commands used to build an old-style archive.
23470 old_archive_cmds=$lt_old_archive_cmds
23471
23472 # A language specific compiler.
23473 CC=$lt_compiler
23474
23475 # Is the compiler the GNU compiler?
23476 with_gcc=$GCC
23477
23478 # Compiler flag to turn off builtin functions.
23479 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
23480
23481 # Additional compiler flags for building library objects.
23482 pic_flag=$lt_lt_prog_compiler_pic
23483
23484 # How to pass a linker flag through the compiler.
23485 wl=$lt_lt_prog_compiler_wl
23486
23487 # Compiler flag to prevent dynamic linking.
23488 link_static_flag=$lt_lt_prog_compiler_static
23489
23490 # Does compiler simultaneously support -c and -o options?
23491 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
23492
23493 # Whether or not to add -lc for building shared libraries.
23494 build_libtool_need_lc=$archive_cmds_need_lc
23495
23496 # Whether or not to disallow shared libs when runtime libs are static.
23497 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
23498
23499 # Compiler flag to allow reflexive dlopens.
23500 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
23501
23502 # Compiler flag to generate shared objects directly from archives.
23503 whole_archive_flag_spec=$lt_whole_archive_flag_spec
23504
23505 # Whether the compiler copes with passing no objects directly.
23506 compiler_needs_object=$lt_compiler_needs_object
23507
23508 # Create an old-style archive from a shared archive.
23509 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
23510
23511 # Create a temporary old-style archive to link instead of a shared archive.
23512 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
23513
23514 # Commands used to build a shared archive.
23515 archive_cmds=$lt_archive_cmds
23516 archive_expsym_cmds=$lt_archive_expsym_cmds
23517
23518 # Commands used to build a loadable module if different from building
23519 # a shared archive.
23520 module_cmds=$lt_module_cmds
23521 module_expsym_cmds=$lt_module_expsym_cmds
23522
23523 # Whether we are building with GNU ld or not.
23524 with_gnu_ld=$lt_with_gnu_ld
23525
23526 # Flag that allows shared libraries with undefined symbols to be built.
23527 allow_undefined_flag=$lt_allow_undefined_flag
23528
23529 # Flag that enforces no undefined symbols.
23530 no_undefined_flag=$lt_no_undefined_flag
23531
23532 # Flag to hardcode \$libdir into a binary during linking.
23533 # This must work even if \$libdir does not exist
23534 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
23535
23536 # Whether we need a single "-rpath" flag with a separated argument.
23537 hardcode_libdir_separator=$lt_hardcode_libdir_separator
23538
23539 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23540 # DIR into the resulting binary.
23541 hardcode_direct=$hardcode_direct
23542
23543 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23544 # DIR into the resulting binary and the resulting library dependency is
23545 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
23546 # library is relocated.
23547 hardcode_direct_absolute=$hardcode_direct_absolute
23548
23549 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23550 # into the resulting binary.
23551 hardcode_minus_L=$hardcode_minus_L
23552
23553 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23554 # into the resulting binary.
23555 hardcode_shlibpath_var=$hardcode_shlibpath_var
23556
23557 # Set to "yes" if building a shared library automatically hardcodes DIR
23558 # into the library and all subsequent libraries and executables linked
23559 # against it.
23560 hardcode_automatic=$hardcode_automatic
23561
23562 # Set to yes if linker adds runtime paths of dependent libraries
23563 # to runtime path list.
23564 inherit_rpath=$inherit_rpath
23565
23566 # Whether libtool must link a program against all its dependency libraries.
23567 link_all_deplibs=$link_all_deplibs
23568
23569 # Set to "yes" if exported symbols are required.
23570 always_export_symbols=$always_export_symbols
23571
23572 # The commands to list exported symbols.
23573 export_symbols_cmds=$lt_export_symbols_cmds
23574
23575 # Symbols that should not be listed in the preloaded symbols.
23576 exclude_expsyms=$lt_exclude_expsyms
23577
23578 # Symbols that must always be exported.
23579 include_expsyms=$lt_include_expsyms
23580
23581 # Commands necessary for linking programs (against libraries) with templates.
23582 prelink_cmds=$lt_prelink_cmds
23583
23584 # Commands necessary for finishing linking programs.
23585 postlink_cmds=$lt_postlink_cmds
23586
23587 # Specify filename containing input files.
23588 file_list_spec=$lt_file_list_spec
23589
23590 # How to hardcode a shared library path into an executable.
23591 hardcode_action=$hardcode_action
23592
23593 # ### END LIBTOOL CONFIG
23594
23595 _LT_EOF
23596
23597 cat <<'_LT_EOF' >> "$cfgfile"
23598
23599 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23600
23601 # func_munge_path_list VARIABLE PATH
23602 # -----------------------------------
23603 # VARIABLE is name of variable containing _space_ separated list of
23604 # directories to be munged by the contents of PATH, which is string
23605 # having a format:
23606 # "DIR[:DIR]:"
23607 # string "DIR[ DIR]" will be prepended to VARIABLE
23608 # ":DIR[:DIR]"
23609 # string "DIR[ DIR]" will be appended to VARIABLE
23610 # "DIRP[:DIRP]::[DIRA:]DIRA"
23611 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23612 # "DIRA[ DIRA]" will be appended to VARIABLE
23613 # "DIR[:DIR]"
23614 # VARIABLE will be replaced by "DIR[ DIR]"
23615 func_munge_path_list ()
23616 {
23617 case x$2 in
23618 x)
23619 ;;
23620 *:)
23621 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23622 ;;
23623 x:*)
23624 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23625 ;;
23626 *::*)
23627 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23628 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23629 ;;
23630 *)
23631 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23632 ;;
23633 esac
23634 }
23635
23636
23637 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
23638 func_cc_basename ()
23639 {
23640 for cc_temp in $*""; do
23641 case $cc_temp in
23642 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23643 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23644 \-*) ;;
23645 *) break;;
23646 esac
23647 done
23648 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23649 }
23650
23651
23652 # ### END FUNCTIONS SHARED WITH CONFIGURE
23653
23654 _LT_EOF
23655
23656 case $host_os in
23657 aix3*)
23658 cat <<\_LT_EOF >> "$cfgfile"
23659 # AIX sometimes has problems with the GCC collect2 program. For some
23660 # reason, if we set the COLLECT_NAMES environment variable, the problems
23661 # vanish in a puff of smoke.
23662 if test set != "${COLLECT_NAMES+set}"; then
23663 COLLECT_NAMES=
23664 export COLLECT_NAMES
23665 fi
23666 _LT_EOF
23667 ;;
23668 esac
23669
23670
23671
23672 ltmain=$ac_aux_dir/ltmain.sh
23673
23674
23675 # We use sed instead of cat because bash on DJGPP gets confused if
23676 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23677 # text mode, it properly converts lines to CR/LF. This bash problem
23678 # is reportedly fixed, but why not run on old versions too?
23679 $SED '$q' "$ltmain" >> "$cfgfile" \
23680 || (rm -f "$cfgfile"; exit 1)
23681
23682 mv -f "$cfgfile" "$ofile" ||
23683 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23684 chmod +x "$ofile"
23685
23686 ;;
23687
23688 esac
23689 done # for ac_tag
23690
23691
23692 as_fn_exit 0
23693 _ACEOF
23694 ac_clean_files=$ac_clean_files_save
23695
23696 test $ac_write_fail = 0 ||
23697 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23698
23699
23700 # configure is writing to config.log, and then calls config.status.
23701 # config.status does its own redirection, appending to config.log.
23702 # Unfortunately, on DOS this fails, as config.log is still kept open
23703 # by configure, so config.status won't be able to write to it; its
23704 # output is simply discarded. So we exec the FD to /dev/null,
23705 # effectively closing config.log, so it can be properly (re)opened and
23706 # appended to by config.status. When coming back to configure, we
23707 # need to make the FD available again.
23708 if test "$no_create" != yes; then
23709 ac_cs_success=:
23710 ac_config_status_args=
23711 test "$silent" = yes &&
23712 ac_config_status_args="$ac_config_status_args --quiet"
23713 exec 5>/dev/null
23714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23715 exec 5>>config.log
23716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23717 # would make configure fail if this is the last instruction.
23718 $ac_cs_success || as_fn_exit 1
23719 fi
23720 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23722 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23723 fi
23724
23725
23726