configure revision 1.1.1.7.2.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libXfont 1.5.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
178
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550 as_awk_strverscmp='
551 # Use only awk features that work with 7th edition Unix awk (1978).
552 # My, what an old awk you have, Mr. Solaris!
553 END {
554 while (length(v1) && length(v2)) {
555 # Set d1 to be the next thing to compare from v1, and likewise for d2.
556 # Normally this is a single character, but if v1 and v2 contain digits,
557 # compare them as integers and fractions as strverscmp does.
558 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
559 # Split v1 and v2 into their leading digit string components d1 and d2,
560 # and advance v1 and v2 past the leading digit strings.
561 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
562 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
563 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
564 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
565 if (d1 ~ /^0/) {
566 if (d2 ~ /^0/) {
567 # Compare two fractions.
568 while (d1 ~ /^0/ && d2 ~ /^0/) {
569 d1 = substr(d1, 2); len1--
570 d2 = substr(d2, 2); len2--
571 }
572 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
573 # The two components differ in length, and the common prefix
574 # contains only leading zeros. Consider the longer to be less.
575 d1 = -len1
576 d2 = -len2
577 } else {
578 # Otherwise, compare as strings.
579 d1 = "x" d1
580 d2 = "x" d2
581 }
582 } else {
583 # A fraction is less than an integer.
584 exit 1
585 }
586 } else {
587 if (d2 ~ /^0/) {
588 # An integer is greater than a fraction.
589 exit 2
590 } else {
591 # Compare two integers.
592 d1 += 0
593 d2 += 0
594 }
595 }
596 } else {
597 # The normal case, without worrying about digits.
598 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
599 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
600 }
601 if (d1 < d2) exit 1
602 if (d1 > d2) exit 2
603 }
604 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
605 # which mishandles some comparisons of empty strings to integers.
606 if (length(v2)) exit 1
607 if (length(v1)) exit 2
608 }
609 '
610
611 test -n "$DJDIR" || exec 7<&0 </dev/null
612 exec 6>&1
613
614 # Name of the host.
615 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
616 # so uname gets run too.
617 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
618
619 #
620 # Initializations.
621 #
622 ac_default_prefix=/usr/local
623 ac_clean_files=
624 ac_config_libobj_dir=.
625 LIBOBJS=
626 cross_compiling=no
627 subdirs=
628 MFLAGS=
629 MAKEFLAGS=
630
631 # Identity of this package.
632 PACKAGE_NAME='libXfont'
633 PACKAGE_TARNAME='libXfont'
634 PACKAGE_VERSION='1.5.0'
635 PACKAGE_STRING='libXfont 1.5.0'
636 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
637 PACKAGE_URL=''
638
639 ac_unique_file="Makefile.am"
640 # Factoring default headers for most tests.
641 ac_includes_default="\
642 #include <stdio.h>
643 #ifdef HAVE_SYS_TYPES_H
644 # include <sys/types.h>
645 #endif
646 #ifdef HAVE_SYS_STAT_H
647 # include <sys/stat.h>
648 #endif
649 #ifdef STDC_HEADERS
650 # include <stdlib.h>
651 # include <stddef.h>
652 #else
653 # ifdef HAVE_STDLIB_H
654 # include <stdlib.h>
655 # endif
656 #endif
657 #ifdef HAVE_STRING_H
658 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
659 # include <memory.h>
660 # endif
661 # include <string.h>
662 #endif
663 #ifdef HAVE_STRINGS_H
664 # include <strings.h>
665 #endif
666 #ifdef HAVE_INTTYPES_H
667 # include <inttypes.h>
668 #endif
669 #ifdef HAVE_STDINT_H
670 # include <stdint.h>
671 #endif
672 #ifdef HAVE_UNISTD_H
673 # include <unistd.h>
674 #endif"
675
676 ac_subst_vars='am__EXEEXT_FALSE
677 am__EXEEXT_TRUE
678 LTLIBOBJS
679 LIBOBJS
680 OS_CFLAGS
681 XFONT_LIBS
682 XFONT_CFLAGS
683 MATH_LIBS
684 XFONT_FC_FALSE
685 XFONT_FC_TRUE
686 XFONT_FONTFILE_FALSE
687 XFONT_FONTFILE_TRUE
688 XFONT_BITMAP_FALSE
689 XFONT_BITMAP_TRUE
690 XFONT_SNFFORMAT_FALSE
691 XFONT_SNFFORMAT_TRUE
692 XFONT_BDFFORMAT_FALSE
693 XFONT_BDFFORMAT_TRUE
694 XFONT_PCF_OR_BUILTIN_FALSE
695 XFONT_PCF_OR_BUILTIN_TRUE
696 XFONT_PCFFORMAT_FALSE
697 XFONT_PCFFORMAT_TRUE
698 XFONT_BUILTINS_FALSE
699 XFONT_BUILTINS_TRUE
700 Z_LIBS
701 X_BZIP2_FONT_COMPRESSION_FALSE
702 X_BZIP2_FONT_COMPRESSION_TRUE
703 X_GZIP_FONT_COMPRESSION
704 FREETYPE_REQUIRES
705 ft_config
706 FREETYPE_LIBS
707 FREETYPE_CFLAGS
708 XFONT_FREETYPE_FALSE
709 XFONT_FREETYPE_TRUE
710 HAVE_STYLESHEETS_FALSE
711 HAVE_STYLESHEETS_TRUE
712 XSL_STYLESHEET
713 STYLESHEET_SRCDIR
714 XORG_SGML_PATH
715 HAVE_FOP_FALSE
716 HAVE_FOP_TRUE
717 FOP
718 HAVE_XMLTO_FALSE
719 HAVE_XMLTO_TRUE
720 HAVE_XMLTO_TEXT_FALSE
721 HAVE_XMLTO_TEXT_TRUE
722 XMLTO
723 ENABLE_DEVEL_DOCS_FALSE
724 ENABLE_DEVEL_DOCS_TRUE
725 MAN_SUBSTS
726 XORG_MAN_PAGE
727 ADMIN_MAN_DIR
728 DRIVER_MAN_DIR
729 MISC_MAN_DIR
730 FILE_MAN_DIR
731 LIB_MAN_DIR
732 APP_MAN_DIR
733 ADMIN_MAN_SUFFIX
734 DRIVER_MAN_SUFFIX
735 MISC_MAN_SUFFIX
736 FILE_MAN_SUFFIX
737 LIB_MAN_SUFFIX
738 APP_MAN_SUFFIX
739 INSTALL_CMD
740 PKG_CONFIG
741 CHANGELOG_CMD
742 STRICT_CFLAGS
743 CWARNFLAGS
744 BASE_CFLAGS
745 OTOOL64
746 OTOOL
747 LIPO
748 NMEDIT
749 DSYMUTIL
750 MANIFEST_TOOL
751 RANLIB
752 ac_ct_AR
753 AR
754 DLLTOOL
755 OBJDUMP
756 LN_S
757 NM
758 ac_ct_DUMPBIN
759 DUMPBIN
760 LD
761 FGREP
762 SED
763 host_os
764 host_vendor
765 host_cpu
766 host
767 build_os
768 build_vendor
769 build_cpu
770 build
771 LIBTOOL
772 EGREP
773 GREP
774 CPP
775 am__fastdepCC_FALSE
776 am__fastdepCC_TRUE
777 CCDEPMODE
778 am__nodep
779 AMDEPBACKSLASH
780 AMDEP_FALSE
781 AMDEP_TRUE
782 am__quote
783 am__include
784 DEPDIR
785 OBJEXT
786 EXEEXT
787 ac_ct_CC
788 CPPFLAGS
789 LDFLAGS
790 CFLAGS
791 CC
792 AM_BACKSLASH
793 AM_DEFAULT_VERBOSITY
794 AM_DEFAULT_V
795 AM_V
796 am__untar
797 am__tar
798 AMTAR
799 am__leading_dot
800 SET_MAKE
801 AWK
802 mkdir_p
803 MKDIR_P
804 INSTALL_STRIP_PROGRAM
805 STRIP
806 install_sh
807 MAKEINFO
808 AUTOHEADER
809 AUTOMAKE
810 AUTOCONF
811 ACLOCAL
812 VERSION
813 PACKAGE
814 CYGPATH_W
815 am__isrc
816 INSTALL_DATA
817 INSTALL_SCRIPT
818 INSTALL_PROGRAM
819 target_alias
820 host_alias
821 build_alias
822 LIBS
823 ECHO_T
824 ECHO_N
825 ECHO_C
826 DEFS
827 mandir
828 localedir
829 libdir
830 psdir
831 pdfdir
832 dvidir
833 htmldir
834 infodir
835 docdir
836 oldincludedir
837 includedir
838 localstatedir
839 sharedstatedir
840 sysconfdir
841 datadir
842 datarootdir
843 libexecdir
844 sbindir
845 bindir
846 program_transform_name
847 prefix
848 exec_prefix
849 PACKAGE_URL
850 PACKAGE_BUGREPORT
851 PACKAGE_STRING
852 PACKAGE_VERSION
853 PACKAGE_TARNAME
854 PACKAGE_NAME
855 PATH_SEPARATOR
856 SHELL'
857 ac_subst_files=''
858 ac_user_opts='
859 enable_option_checking
860 enable_silent_rules
861 enable_dependency_tracking
862 enable_shared
863 enable_static
864 with_pic
865 enable_fast_install
866 with_gnu_ld
867 with_sysroot
868 enable_libtool_lock
869 enable_selective_werror
870 enable_strict_compilation
871 enable_devel_docs
872 with_xmlto
873 with_fop
874 enable_freetype
875 with_freetype_config
876 with_bzip2
877 enable_builtins
878 enable_pcfformat
879 enable_bdfformat
880 enable_snfformat
881 enable_fc
882 enable_unix_transport
883 enable_tcp_transport
884 enable_ipv6
885 enable_local_transport
886 '
887 ac_precious_vars='build_alias
888 host_alias
889 target_alias
890 CC
891 CFLAGS
892 LDFLAGS
893 LIBS
894 CPPFLAGS
895 CPP
896 PKG_CONFIG
897 XMLTO
898 FOP
899 FREETYPE_CFLAGS
900 FREETYPE_LIBS
901 XFONT_CFLAGS
902 XFONT_LIBS'
903
904
905 # Initialize some variables set by options.
906 ac_init_help=
907 ac_init_version=false
908 ac_unrecognized_opts=
909 ac_unrecognized_sep=
910 # The variables have the same names as the options, with
911 # dashes changed to underlines.
912 cache_file=/dev/null
913 exec_prefix=NONE
914 no_create=
915 no_recursion=
916 prefix=NONE
917 program_prefix=NONE
918 program_suffix=NONE
919 program_transform_name=s,x,x,
920 silent=
921 site=
922 srcdir=
923 verbose=
924 x_includes=NONE
925 x_libraries=NONE
926
927 # Installation directory options.
928 # These are left unexpanded so users can "make install exec_prefix=/foo"
929 # and all the variables that are supposed to be based on exec_prefix
930 # by default will actually change.
931 # Use braces instead of parens because sh, perl, etc. also accept them.
932 # (The list follows the same order as the GNU Coding Standards.)
933 bindir='${exec_prefix}/bin'
934 sbindir='${exec_prefix}/sbin'
935 libexecdir='${exec_prefix}/libexec'
936 datarootdir='${prefix}/share'
937 datadir='${datarootdir}'
938 sysconfdir='${prefix}/etc'
939 sharedstatedir='${prefix}/com'
940 localstatedir='${prefix}/var'
941 includedir='${prefix}/include'
942 oldincludedir='/usr/include'
943 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
944 infodir='${datarootdir}/info'
945 htmldir='${docdir}'
946 dvidir='${docdir}'
947 pdfdir='${docdir}'
948 psdir='${docdir}'
949 libdir='${exec_prefix}/lib'
950 localedir='${datarootdir}/locale'
951 mandir='${datarootdir}/man'
952
953 ac_prev=
954 ac_dashdash=
955 for ac_option
956 do
957 # If the previous option needs an argument, assign it.
958 if test -n "$ac_prev"; then
959 eval $ac_prev=\$ac_option
960 ac_prev=
961 continue
962 fi
963
964 case $ac_option in
965 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 *=) ac_optarg= ;;
967 *) ac_optarg=yes ;;
968 esac
969
970 # Accept the important Cygnus configure options, so we can diagnose typos.
971
972 case $ac_dashdash$ac_option in
973 --)
974 ac_dashdash=yes ;;
975
976 -bindir | --bindir | --bindi | --bind | --bin | --bi)
977 ac_prev=bindir ;;
978 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
979 bindir=$ac_optarg ;;
980
981 -build | --build | --buil | --bui | --bu)
982 ac_prev=build_alias ;;
983 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
984 build_alias=$ac_optarg ;;
985
986 -cache-file | --cache-file | --cache-fil | --cache-fi \
987 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
988 ac_prev=cache_file ;;
989 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
990 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
991 cache_file=$ac_optarg ;;
992
993 --config-cache | -C)
994 cache_file=config.cache ;;
995
996 -datadir | --datadir | --datadi | --datad)
997 ac_prev=datadir ;;
998 -datadir=* | --datadir=* | --datadi=* | --datad=*)
999 datadir=$ac_optarg ;;
1000
1001 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1002 | --dataroo | --dataro | --datar)
1003 ac_prev=datarootdir ;;
1004 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1005 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1006 datarootdir=$ac_optarg ;;
1007
1008 -disable-* | --disable-*)
1009 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1010 # Reject names that are not valid shell variable names.
1011 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012 as_fn_error $? "invalid feature name: $ac_useropt"
1013 ac_useropt_orig=$ac_useropt
1014 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015 case $ac_user_opts in
1016 *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1020 ac_unrecognized_sep=', ';;
1021 esac
1022 eval enable_$ac_useropt=no ;;
1023
1024 -docdir | --docdir | --docdi | --doc | --do)
1025 ac_prev=docdir ;;
1026 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1027 docdir=$ac_optarg ;;
1028
1029 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1030 ac_prev=dvidir ;;
1031 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1032 dvidir=$ac_optarg ;;
1033
1034 -enable-* | --enable-*)
1035 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1036 # Reject names that are not valid shell variable names.
1037 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1038 as_fn_error $? "invalid feature name: $ac_useropt"
1039 ac_useropt_orig=$ac_useropt
1040 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1041 case $ac_user_opts in
1042 *"
1043 "enable_$ac_useropt"
1044 "*) ;;
1045 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1046 ac_unrecognized_sep=', ';;
1047 esac
1048 eval enable_$ac_useropt=\$ac_optarg ;;
1049
1050 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1051 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1052 | --exec | --exe | --ex)
1053 ac_prev=exec_prefix ;;
1054 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1055 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1056 | --exec=* | --exe=* | --ex=*)
1057 exec_prefix=$ac_optarg ;;
1058
1059 -gas | --gas | --ga | --g)
1060 # Obsolete; use --with-gas.
1061 with_gas=yes ;;
1062
1063 -help | --help | --hel | --he | -h)
1064 ac_init_help=long ;;
1065 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1066 ac_init_help=recursive ;;
1067 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1068 ac_init_help=short ;;
1069
1070 -host | --host | --hos | --ho)
1071 ac_prev=host_alias ;;
1072 -host=* | --host=* | --hos=* | --ho=*)
1073 host_alias=$ac_optarg ;;
1074
1075 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1076 ac_prev=htmldir ;;
1077 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1078 | --ht=*)
1079 htmldir=$ac_optarg ;;
1080
1081 -includedir | --includedir | --includedi | --included | --include \
1082 | --includ | --inclu | --incl | --inc)
1083 ac_prev=includedir ;;
1084 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1085 | --includ=* | --inclu=* | --incl=* | --inc=*)
1086 includedir=$ac_optarg ;;
1087
1088 -infodir | --infodir | --infodi | --infod | --info | --inf)
1089 ac_prev=infodir ;;
1090 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1091 infodir=$ac_optarg ;;
1092
1093 -libdir | --libdir | --libdi | --libd)
1094 ac_prev=libdir ;;
1095 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1096 libdir=$ac_optarg ;;
1097
1098 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1099 | --libexe | --libex | --libe)
1100 ac_prev=libexecdir ;;
1101 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1102 | --libexe=* | --libex=* | --libe=*)
1103 libexecdir=$ac_optarg ;;
1104
1105 -localedir | --localedir | --localedi | --localed | --locale)
1106 ac_prev=localedir ;;
1107 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1108 localedir=$ac_optarg ;;
1109
1110 -localstatedir | --localstatedir | --localstatedi | --localstated \
1111 | --localstate | --localstat | --localsta | --localst | --locals)
1112 ac_prev=localstatedir ;;
1113 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1114 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1115 localstatedir=$ac_optarg ;;
1116
1117 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1118 ac_prev=mandir ;;
1119 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1120 mandir=$ac_optarg ;;
1121
1122 -nfp | --nfp | --nf)
1123 # Obsolete; use --without-fp.
1124 with_fp=no ;;
1125
1126 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1127 | --no-cr | --no-c | -n)
1128 no_create=yes ;;
1129
1130 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1131 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1132 no_recursion=yes ;;
1133
1134 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1135 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1136 | --oldin | --oldi | --old | --ol | --o)
1137 ac_prev=oldincludedir ;;
1138 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1139 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1140 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1141 oldincludedir=$ac_optarg ;;
1142
1143 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1144 ac_prev=prefix ;;
1145 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1146 prefix=$ac_optarg ;;
1147
1148 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1149 | --program-pre | --program-pr | --program-p)
1150 ac_prev=program_prefix ;;
1151 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1152 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1153 program_prefix=$ac_optarg ;;
1154
1155 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1156 | --program-suf | --program-su | --program-s)
1157 ac_prev=program_suffix ;;
1158 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1159 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1160 program_suffix=$ac_optarg ;;
1161
1162 -program-transform-name | --program-transform-name \
1163 | --program-transform-nam | --program-transform-na \
1164 | --program-transform-n | --program-transform- \
1165 | --program-transform | --program-transfor \
1166 | --program-transfo | --program-transf \
1167 | --program-trans | --program-tran \
1168 | --progr-tra | --program-tr | --program-t)
1169 ac_prev=program_transform_name ;;
1170 -program-transform-name=* | --program-transform-name=* \
1171 | --program-transform-nam=* | --program-transform-na=* \
1172 | --program-transform-n=* | --program-transform-=* \
1173 | --program-transform=* | --program-transfor=* \
1174 | --program-transfo=* | --program-transf=* \
1175 | --program-trans=* | --program-tran=* \
1176 | --progr-tra=* | --program-tr=* | --program-t=*)
1177 program_transform_name=$ac_optarg ;;
1178
1179 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1180 ac_prev=pdfdir ;;
1181 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1182 pdfdir=$ac_optarg ;;
1183
1184 -psdir | --psdir | --psdi | --psd | --ps)
1185 ac_prev=psdir ;;
1186 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1187 psdir=$ac_optarg ;;
1188
1189 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1190 | -silent | --silent | --silen | --sile | --sil)
1191 silent=yes ;;
1192
1193 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1194 ac_prev=sbindir ;;
1195 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1196 | --sbi=* | --sb=*)
1197 sbindir=$ac_optarg ;;
1198
1199 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1200 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1201 | --sharedst | --shareds | --shared | --share | --shar \
1202 | --sha | --sh)
1203 ac_prev=sharedstatedir ;;
1204 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1205 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1206 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1207 | --sha=* | --sh=*)
1208 sharedstatedir=$ac_optarg ;;
1209
1210 -site | --site | --sit)
1211 ac_prev=site ;;
1212 -site=* | --site=* | --sit=*)
1213 site=$ac_optarg ;;
1214
1215 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1216 ac_prev=srcdir ;;
1217 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1218 srcdir=$ac_optarg ;;
1219
1220 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1221 | --syscon | --sysco | --sysc | --sys | --sy)
1222 ac_prev=sysconfdir ;;
1223 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1224 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1225 sysconfdir=$ac_optarg ;;
1226
1227 -target | --target | --targe | --targ | --tar | --ta | --t)
1228 ac_prev=target_alias ;;
1229 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1230 target_alias=$ac_optarg ;;
1231
1232 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1233 verbose=yes ;;
1234
1235 -version | --version | --versio | --versi | --vers | -V)
1236 ac_init_version=: ;;
1237
1238 -with-* | --with-*)
1239 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1240 # Reject names that are not valid shell variable names.
1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1242 as_fn_error $? "invalid package name: $ac_useropt"
1243 ac_useropt_orig=$ac_useropt
1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1245 case $ac_user_opts in
1246 *"
1247 "with_$ac_useropt"
1248 "*) ;;
1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1250 ac_unrecognized_sep=', ';;
1251 esac
1252 eval with_$ac_useropt=\$ac_optarg ;;
1253
1254 -without-* | --without-*)
1255 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1256 # Reject names that are not valid shell variable names.
1257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1258 as_fn_error $? "invalid package name: $ac_useropt"
1259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263 "with_$ac_useropt"
1264 "*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=no ;;
1269
1270 --x)
1271 # Obsolete; use --with-x.
1272 with_x=yes ;;
1273
1274 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1275 | --x-incl | --x-inc | --x-in | --x-i)
1276 ac_prev=x_includes ;;
1277 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1278 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1279 x_includes=$ac_optarg ;;
1280
1281 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1282 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1283 ac_prev=x_libraries ;;
1284 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1285 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1286 x_libraries=$ac_optarg ;;
1287
1288 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1289 Try \`$0 --help' for more information"
1290 ;;
1291
1292 *=*)
1293 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1294 # Reject names that are not valid shell variable names.
1295 case $ac_envvar in #(
1296 '' | [0-9]* | *[!_$as_cr_alnum]* )
1297 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1298 esac
1299 eval $ac_envvar=\$ac_optarg
1300 export $ac_envvar ;;
1301
1302 *)
1303 # FIXME: should be removed in autoconf 3.0.
1304 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1305 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1306 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1307 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1308 ;;
1309
1310 esac
1311 done
1312
1313 if test -n "$ac_prev"; then
1314 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1315 as_fn_error $? "missing argument to $ac_option"
1316 fi
1317
1318 if test -n "$ac_unrecognized_opts"; then
1319 case $enable_option_checking in
1320 no) ;;
1321 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1322 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 esac
1324 fi
1325
1326 # Check all directory arguments for consistency.
1327 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1328 datadir sysconfdir sharedstatedir localstatedir includedir \
1329 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1330 libdir localedir mandir
1331 do
1332 eval ac_val=\$$ac_var
1333 # Remove trailing slashes.
1334 case $ac_val in
1335 */ )
1336 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1337 eval $ac_var=\$ac_val;;
1338 esac
1339 # Be sure to have absolute directory names.
1340 case $ac_val in
1341 [\\/$]* | ?:[\\/]* ) continue;;
1342 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1343 esac
1344 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1345 done
1346
1347 # There might be people who depend on the old broken behavior: `$host'
1348 # used to hold the argument of --host etc.
1349 # FIXME: To remove some day.
1350 build=$build_alias
1351 host=$host_alias
1352 target=$target_alias
1353
1354 # FIXME: To remove some day.
1355 if test "x$host_alias" != x; then
1356 if test "x$build_alias" = x; then
1357 cross_compiling=maybe
1358 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1359 If a cross compiler is detected then cross compile mode will be used" >&2
1360 elif test "x$build_alias" != "x$host_alias"; then
1361 cross_compiling=yes
1362 fi
1363 fi
1364
1365 ac_tool_prefix=
1366 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1367
1368 test "$silent" = yes && exec 6>/dev/null
1369
1370
1371 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di=`ls -di .` &&
1373 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $? "working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $? "pwd does not report name of working directory"
1377
1378
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 s//\1/
1391 q
1392 }
1393 /^X\(\/\/\)[^/].*/{
1394 s//\1/
1395 q
1396 }
1397 /^X\(\/\/\)$/{
1398 s//\1/
1399 q
1400 }
1401 /^X\(\/\).*/{
1402 s//\1/
1403 q
1404 }
1405 s/.*/./; q'`
1406 srcdir=$ac_confdir
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 srcdir=..
1409 fi
1410 else
1411 ac_srcdir_defaulted=no
1412 fi
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1415 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1416 fi
1417 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 ac_abs_confdir=`(
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 pwd)`
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1423 srcdir=.
1424 fi
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1428 case $srcdir in
1429 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1430 esac
1431 for ac_var in $ac_precious_vars; do
1432 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1433 eval ac_env_${ac_var}_value=\$${ac_var}
1434 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1435 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1436 done
1437
1438 #
1439 # Report the --help message.
1440 #
1441 if test "$ac_init_help" = "long"; then
1442 # Omit some internal or obsolete options to make the list less imposing.
1443 # This message is too long to be a string in the A/UX 3.1 sh.
1444 cat <<_ACEOF
1445 \`configure' configures libXfont 1.5.0 to adapt to many kinds of systems.
1446
1447 Usage: $0 [OPTION]... [VAR=VALUE]...
1448
1449 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1450 VAR=VALUE. See below for descriptions of some of the useful variables.
1451
1452 Defaults for the options are specified in brackets.
1453
1454 Configuration:
1455 -h, --help display this help and exit
1456 --help=short display options specific to this package
1457 --help=recursive display the short help of all the included packages
1458 -V, --version display version information and exit
1459 -q, --quiet, --silent do not print \`checking ...' messages
1460 --cache-file=FILE cache test results in FILE [disabled]
1461 -C, --config-cache alias for \`--cache-file=config.cache'
1462 -n, --no-create do not create output files
1463 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1464
1465 Installation directories:
1466 --prefix=PREFIX install architecture-independent files in PREFIX
1467 [$ac_default_prefix]
1468 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1469 [PREFIX]
1470
1471 By default, \`make install' will install all the files in
1472 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1473 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1474 for instance \`--prefix=\$HOME'.
1475
1476 For better control, use the options below.
1477
1478 Fine tuning of the installation directories:
1479 --bindir=DIR user executables [EPREFIX/bin]
1480 --sbindir=DIR system admin executables [EPREFIX/sbin]
1481 --libexecdir=DIR program executables [EPREFIX/libexec]
1482 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1483 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1484 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1485 --libdir=DIR object code libraries [EPREFIX/lib]
1486 --includedir=DIR C header files [PREFIX/include]
1487 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1488 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1489 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1490 --infodir=DIR info documentation [DATAROOTDIR/info]
1491 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1492 --mandir=DIR man documentation [DATAROOTDIR/man]
1493 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont]
1494 --htmldir=DIR html documentation [DOCDIR]
1495 --dvidir=DIR dvi documentation [DOCDIR]
1496 --pdfdir=DIR pdf documentation [DOCDIR]
1497 --psdir=DIR ps documentation [DOCDIR]
1498 _ACEOF
1499
1500 cat <<\_ACEOF
1501
1502 Program names:
1503 --program-prefix=PREFIX prepend PREFIX to installed program names
1504 --program-suffix=SUFFIX append SUFFIX to installed program names
1505 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1506
1507 System types:
1508 --build=BUILD configure for building on BUILD [guessed]
1509 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1510 _ACEOF
1511 fi
1512
1513 if test -n "$ac_init_help"; then
1514 case $ac_init_help in
1515 short | recursive ) echo "Configuration of libXfont 1.5.0:";;
1516 esac
1517 cat <<\_ACEOF
1518
1519 Optional Features:
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-silent-rules less verbose build output (undo: "make V=1")
1524 --disable-silent-rules verbose build output (undo: "make V=0")
1525 --enable-dependency-tracking
1526 do not reject slow dependency extractors
1527 --disable-dependency-tracking
1528 speeds up one-time build
1529 --enable-shared[=PKGS] build shared libraries [default=yes]
1530 --enable-static[=PKGS] build static libraries [default=yes]
1531 --enable-fast-install[=PKGS]
1532 optimize for fast installation [default=yes]
1533 --disable-libtool-lock avoid locking (might break parallel builds)
1534 --disable-selective-werror
1535 Turn off selective compiler errors. (default:
1536 enabled)
1537 --enable-strict-compilation
1538 Enable all warnings from compiler and make them
1539 errors (default: disabled)
1540 --enable-devel-docs Enable building the developer documentation
1541 (default: yes)
1542 --disable-freetype Build freetype backend (default: enabled)
1543 --disable-builtins Support builtin fonts (default: enabled)
1544 --disable-pcfformat Support PCF format bitmap fonts (default: enabled)
1545 --disable-bdfformat Support BDF format bitmap fonts (default: enabled)
1546 --enable-snfformat Support SNF format bitmap fonts (default: disabled)
1547 --disable-fc Support connections to xfs servers (default:
1548 enabled)
1549 --enable-unix-transport Enable UNIX domain socket transport
1550 --enable-tcp-transport Enable TCP socket transport
1551 --enable-ipv6 Enable IPv6 support
1552 --enable-local-transport
1553 Enable os-specific local transport
1554
1555 Optional Packages:
1556 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1557 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1558 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1559 both]
1560 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1561 --with-sysroot=DIR Search for dependent libraries within DIR
1562 (or the compiler's sysroot if not specified).
1563 --with-xmlto Use xmlto to regenerate documentation (default:
1564 auto)
1565 --with-fop Use fop to regenerate documentation (default: auto)
1566 --with-freetype-config=PROG
1567 Use FreeType configuration program PROG
1568 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts
1569 (default: no)
1570
1571 Some influential environment variables:
1572 CC C compiler command
1573 CFLAGS C compiler flags
1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1575 nonstandard directory <lib dir>
1576 LIBS libraries to pass to the linker, e.g. -l<library>
1577 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1578 you have headers in a nonstandard directory <include dir>
1579 CPP C preprocessor
1580 PKG_CONFIG path to pkg-config utility
1581 XMLTO Path to xmlto command
1582 FOP Path to fop command
1583 FREETYPE_CFLAGS
1584 C compiler flags for FREETYPE, overriding pkg-config
1585 FREETYPE_LIBS
1586 linker flags for FREETYPE, overriding pkg-config
1587 XFONT_CFLAGS
1588 C compiler flags for XFONT, overriding pkg-config
1589 XFONT_LIBS linker flags for XFONT, overriding pkg-config
1590
1591 Use these variables to override the choices made by `configure' or to help
1592 it to find libraries and programs with nonstandard names/locations.
1593
1594 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1595 _ACEOF
1596 ac_status=$?
1597 fi
1598
1599 if test "$ac_init_help" = "recursive"; then
1600 # If there are subdirs, report their specific --help.
1601 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1602 test -d "$ac_dir" ||
1603 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1604 continue
1605 ac_builddir=.
1606
1607 case "$ac_dir" in
1608 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *)
1610 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1611 # A ".." for each directory in $ac_dir_suffix.
1612 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1613 case $ac_top_builddir_sub in
1614 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1615 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1616 esac ;;
1617 esac
1618 ac_abs_top_builddir=$ac_pwd
1619 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1620 # for backward compatibility:
1621 ac_top_builddir=$ac_top_build_prefix
1622
1623 case $srcdir in
1624 .) # We are building in place.
1625 ac_srcdir=.
1626 ac_top_srcdir=$ac_top_builddir_sub
1627 ac_abs_top_srcdir=$ac_pwd ;;
1628 [\\/]* | ?:[\\/]* ) # Absolute name.
1629 ac_srcdir=$srcdir$ac_dir_suffix;
1630 ac_top_srcdir=$srcdir
1631 ac_abs_top_srcdir=$srcdir ;;
1632 *) # Relative name.
1633 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1634 ac_top_srcdir=$ac_top_build_prefix$srcdir
1635 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1636 esac
1637 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1638
1639 cd "$ac_dir" || { ac_status=$?; continue; }
1640 # Check for guested configure.
1641 if test -f "$ac_srcdir/configure.gnu"; then
1642 echo &&
1643 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1644 elif test -f "$ac_srcdir/configure"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure" --help=recursive
1647 else
1648 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1649 fi || ac_status=$?
1650 cd "$ac_pwd" || { ac_status=$?; break; }
1651 done
1652 fi
1653
1654 test -n "$ac_init_help" && exit $ac_status
1655 if $ac_init_version; then
1656 cat <<\_ACEOF
1657 libXfont configure 1.5.0
1658 generated by GNU Autoconf 2.68
1659
1660 Copyright (C) 2010 Free Software Foundation, Inc.
1661 This configure script is free software; the Free Software Foundation
1662 gives unlimited permission to copy, distribute and modify it.
1663 _ACEOF
1664 exit
1665 fi
1666
1667 ## ------------------------ ##
1668 ## Autoconf initialization. ##
1669 ## ------------------------ ##
1670
1671 # ac_fn_c_try_compile LINENO
1672 # --------------------------
1673 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1674 ac_fn_c_try_compile ()
1675 {
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 rm -f conftest.$ac_objext
1678 if { { ac_try="$ac_compile"
1679 case "(($ac_try" in
1680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1681 *) ac_try_echo=$ac_try;;
1682 esac
1683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1684 $as_echo "$ac_try_echo"; } >&5
1685 (eval "$ac_compile") 2>conftest.err
1686 ac_status=$?
1687 if test -s conftest.err; then
1688 grep -v '^ *+' conftest.err >conftest.er1
1689 cat conftest.er1 >&5
1690 mv -f conftest.er1 conftest.err
1691 fi
1692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1693 test $ac_status = 0; } && {
1694 test -z "$ac_c_werror_flag" ||
1695 test ! -s conftest.err
1696 } && test -s conftest.$ac_objext; then :
1697 ac_retval=0
1698 else
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1701
1702 ac_retval=1
1703 fi
1704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1705 as_fn_set_status $ac_retval
1706
1707 } # ac_fn_c_try_compile
1708
1709 # ac_fn_c_try_cpp LINENO
1710 # ----------------------
1711 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1712 ac_fn_c_try_cpp ()
1713 {
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 if { { ac_try="$ac_cpp conftest.$ac_ext"
1716 case "(($ac_try" in
1717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1718 *) ac_try_echo=$ac_try;;
1719 esac
1720 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1721 $as_echo "$ac_try_echo"; } >&5
1722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1723 ac_status=$?
1724 if test -s conftest.err; then
1725 grep -v '^ *+' conftest.err >conftest.er1
1726 cat conftest.er1 >&5
1727 mv -f conftest.er1 conftest.err
1728 fi
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } > conftest.i && {
1731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1732 test ! -s conftest.err
1733 }; then :
1734 ac_retval=0
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
1741 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742 as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_cpp
1745
1746 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1747 # -------------------------------------------------------
1748 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1749 # the include files in INCLUDES and setting the cache variable VAR
1750 # accordingly.
1751 ac_fn_c_check_header_mongrel ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if eval \${$3+:} false; then :
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1759 fi
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 else
1764 # Is the header compilable?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1766 $as_echo_n "checking $2 usability... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 $4
1770 #include <$2>
1771 _ACEOF
1772 if ac_fn_c_try_compile "$LINENO"; then :
1773 ac_header_compiler=yes
1774 else
1775 ac_header_compiler=no
1776 fi
1777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1779 $as_echo "$ac_header_compiler" >&6; }
1780
1781 # Is the header present?
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1783 $as_echo_n "checking $2 presence... " >&6; }
1784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785 /* end confdefs.h. */
1786 #include <$2>
1787 _ACEOF
1788 if ac_fn_c_try_cpp "$LINENO"; then :
1789 ac_header_preproc=yes
1790 else
1791 ac_header_preproc=no
1792 fi
1793 rm -f conftest.err conftest.i conftest.$ac_ext
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1795 $as_echo "$ac_header_preproc" >&6; }
1796
1797 # So? What about this header?
1798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1799 yes:no: )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1801 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1803 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1804 ;;
1805 no:yes:* )
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1807 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1809 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1811 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1813 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1815 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1816 ( $as_echo "## ---------------------------------------------------------------------- ##
1817 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1818 ## ---------------------------------------------------------------------- ##"
1819 ) | sed "s/^/$as_me: WARNING: /" >&2
1820 ;;
1821 esac
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if eval \${$3+:} false; then :
1825 $as_echo_n "(cached) " >&6
1826 else
1827 eval "$3=\$ac_header_compiler"
1828 fi
1829 eval ac_res=\$$3
1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1831 $as_echo "$ac_res" >&6; }
1832 fi
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834
1835 } # ac_fn_c_check_header_mongrel
1836
1837 # ac_fn_c_try_run LINENO
1838 # ----------------------
1839 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1840 # that executables *can* be run.
1841 ac_fn_c_try_run ()
1842 {
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 if { { ac_try="$ac_link"
1845 case "(($ac_try" in
1846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1847 *) ac_try_echo=$ac_try;;
1848 esac
1849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_link") 2>&5
1852 ac_status=$?
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1855 { { case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_try") 2>&5
1862 ac_status=$?
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; }; }; then :
1865 ac_retval=0
1866 else
1867 $as_echo "$as_me: program exited with status $ac_status" >&5
1868 $as_echo "$as_me: failed program was:" >&5
1869 sed 's/^/| /' conftest.$ac_ext >&5
1870
1871 ac_retval=$ac_status
1872 fi
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status $ac_retval
1876
1877 } # ac_fn_c_try_run
1878
1879 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1880 # -------------------------------------------------------
1881 # Tests whether HEADER exists and can be compiled using the include files in
1882 # INCLUDES, setting the cache variable VAR accordingly.
1883 ac_fn_c_check_header_compile ()
1884 {
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1892 /* end confdefs.h. */
1893 $4
1894 #include <$2>
1895 _ACEOF
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 eval "$3=yes"
1898 else
1899 eval "$3=no"
1900 fi
1901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1902 fi
1903 eval ac_res=\$$3
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
1908 } # ac_fn_c_check_header_compile
1909
1910 # ac_fn_c_try_link LINENO
1911 # -----------------------
1912 # Try to link conftest.$ac_ext, and return whether this succeeded.
1913 ac_fn_c_try_link ()
1914 {
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 rm -f conftest.$ac_objext conftest$ac_exeext
1917 if { { ac_try="$ac_link"
1918 case "(($ac_try" in
1919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1920 *) ac_try_echo=$ac_try;;
1921 esac
1922 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1923 $as_echo "$ac_try_echo"; } >&5
1924 (eval "$ac_link") 2>conftest.err
1925 ac_status=$?
1926 if test -s conftest.err; then
1927 grep -v '^ *+' conftest.err >conftest.er1
1928 cat conftest.er1 >&5
1929 mv -f conftest.er1 conftest.err
1930 fi
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; } && {
1933 test -z "$ac_c_werror_flag" ||
1934 test ! -s conftest.err
1935 } && test -s conftest$ac_exeext && {
1936 test "$cross_compiling" = yes ||
1937 $as_test_x conftest$ac_exeext
1938 }; then :
1939 ac_retval=0
1940 else
1941 $as_echo "$as_me: failed program was:" >&5
1942 sed 's/^/| /' conftest.$ac_ext >&5
1943
1944 ac_retval=1
1945 fi
1946 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1947 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1948 # interfere with the next link command; also delete a directory that is
1949 # left behind by Apple's compiler. We do this before executing the actions.
1950 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_c_try_link
1955
1956 # ac_fn_c_check_func LINENO FUNC VAR
1957 # ----------------------------------
1958 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1959 ac_fn_c_check_func ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963 $as_echo_n "checking for $2... " >&6; }
1964 if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1971 #define $2 innocuous_$2
1972
1973 /* System header to define __stub macros and hopefully few prototypes,
1974 which can conflict with char $2 (); below.
1975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1976 <limits.h> exists even on freestanding compilers. */
1977
1978 #ifdef __STDC__
1979 # include <limits.h>
1980 #else
1981 # include <assert.h>
1982 #endif
1983
1984 #undef $2
1985
1986 /* Override any GCC internal prototype to avoid an error.
1987 Use char because int might match the return type of a GCC
1988 builtin and then its argument prototype would still apply. */
1989 #ifdef __cplusplus
1990 extern "C"
1991 #endif
1992 char $2 ();
1993 /* The GNU C library defines this for functions which it implements
1994 to always fail with ENOSYS. Some functions are actually named
1995 something starting with __ and the normal name is an alias. */
1996 #if defined __stub_$2 || defined __stub___$2
1997 choke me
1998 #endif
1999
2000 int
2001 main ()
2002 {
2003 return $2 ();
2004 ;
2005 return 0;
2006 }
2007 _ACEOF
2008 if ac_fn_c_try_link "$LINENO"; then :
2009 eval "$3=yes"
2010 else
2011 eval "$3=no"
2012 fi
2013 rm -f core conftest.err conftest.$ac_objext \
2014 conftest$ac_exeext conftest.$ac_ext
2015 fi
2016 eval ac_res=\$$3
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2018 $as_echo "$ac_res" >&6; }
2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2020
2021 } # ac_fn_c_check_func
2022
2023 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2024 # ---------------------------------------------
2025 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2026 # accordingly.
2027 ac_fn_c_check_decl ()
2028 {
2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2030 as_decl_name=`echo $2|sed 's/ *(.*//'`
2031 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2033 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2034 if eval \${$3+:} false; then :
2035 $as_echo_n "(cached) " >&6
2036 else
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2039 $4
2040 int
2041 main ()
2042 {
2043 #ifndef $as_decl_name
2044 #ifdef __cplusplus
2045 (void) $as_decl_use;
2046 #else
2047 (void) $as_decl_name;
2048 #endif
2049 #endif
2050
2051 ;
2052 return 0;
2053 }
2054 _ACEOF
2055 if ac_fn_c_try_compile "$LINENO"; then :
2056 eval "$3=yes"
2057 else
2058 eval "$3=no"
2059 fi
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 fi
2062 eval ac_res=\$$3
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2066
2067 } # ac_fn_c_check_decl
2068
2069 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2070 # ----------------------------------------------------
2071 # Tries to find if the field MEMBER exists in type AGGR, after including
2072 # INCLUDES, setting cache variable VAR accordingly.
2073 ac_fn_c_check_member ()
2074 {
2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2077 $as_echo_n "checking for $2.$3... " >&6; }
2078 if eval \${$4+:} false; then :
2079 $as_echo_n "(cached) " >&6
2080 else
2081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2082 /* end confdefs.h. */
2083 $5
2084 int
2085 main ()
2086 {
2087 static $2 ac_aggr;
2088 if (ac_aggr.$3)
2089 return 0;
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$4=yes"
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $5
2100 int
2101 main ()
2102 {
2103 static $2 ac_aggr;
2104 if (sizeof ac_aggr.$3)
2105 return 0;
2106 ;
2107 return 0;
2108 }
2109 _ACEOF
2110 if ac_fn_c_try_compile "$LINENO"; then :
2111 eval "$4=yes"
2112 else
2113 eval "$4=no"
2114 fi
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 fi
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118 fi
2119 eval ac_res=\$$4
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121 $as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124 } # ac_fn_c_check_member
2125
2126 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2127 # -------------------------------------------
2128 # Tests whether TYPE exists after having included INCLUDES, setting cache
2129 # variable VAR accordingly.
2130 ac_fn_c_check_type ()
2131 {
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2134 $as_echo_n "checking for $2... " >&6; }
2135 if eval \${$3+:} false; then :
2136 $as_echo_n "(cached) " >&6
2137 else
2138 eval "$3=no"
2139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140 /* end confdefs.h. */
2141 $4
2142 int
2143 main ()
2144 {
2145 if (sizeof ($2))
2146 return 0;
2147 ;
2148 return 0;
2149 }
2150 _ACEOF
2151 if ac_fn_c_try_compile "$LINENO"; then :
2152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153 /* end confdefs.h. */
2154 $4
2155 int
2156 main ()
2157 {
2158 if (sizeof (($2)))
2159 return 0;
2160 ;
2161 return 0;
2162 }
2163 _ACEOF
2164 if ac_fn_c_try_compile "$LINENO"; then :
2165
2166 else
2167 eval "$3=yes"
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 fi
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 fi
2173 eval ac_res=\$$3
2174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2175 $as_echo "$ac_res" >&6; }
2176 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2177
2178 } # ac_fn_c_check_type
2179 cat >config.log <<_ACEOF
2180 This file contains any messages produced by compilers while
2181 running configure, to aid debugging if configure makes a mistake.
2182
2183 It was created by libXfont $as_me 1.5.0, which was
2184 generated by GNU Autoconf 2.68. Invocation command line was
2185
2186 $ $0 $@
2187
2188 _ACEOF
2189 exec 5>>config.log
2190 {
2191 cat <<_ASUNAME
2192 ## --------- ##
2193 ## Platform. ##
2194 ## --------- ##
2195
2196 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2197 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2198 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2199 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2200 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
2202 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2203 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
2205 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2206 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2207 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2208 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2209 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2210 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2211 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2212
2213 _ASUNAME
2214
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 $as_echo "PATH: $as_dir"
2221 done
2222 IFS=$as_save_IFS
2223
2224 } >&5
2225
2226 cat >&5 <<_ACEOF
2227
2228
2229 ## ----------- ##
2230 ## Core tests. ##
2231 ## ----------- ##
2232
2233 _ACEOF
2234
2235
2236 # Keep a trace of the command line.
2237 # Strip out --no-create and --no-recursion so they do not pile up.
2238 # Strip out --silent because we don't want to record it for future runs.
2239 # Also quote any args containing shell meta-characters.
2240 # Make two passes to allow for proper duplicate-argument suppression.
2241 ac_configure_args=
2242 ac_configure_args0=
2243 ac_configure_args1=
2244 ac_must_keep_next=false
2245 for ac_pass in 1 2
2246 do
2247 for ac_arg
2248 do
2249 case $ac_arg in
2250 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2252 | -silent | --silent | --silen | --sile | --sil)
2253 continue ;;
2254 *\'*)
2255 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2256 esac
2257 case $ac_pass in
2258 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259 2)
2260 as_fn_append ac_configure_args1 " '$ac_arg'"
2261 if test $ac_must_keep_next = true; then
2262 ac_must_keep_next=false # Got value, back to normal.
2263 else
2264 case $ac_arg in
2265 *=* | --config-cache | -C | -disable-* | --disable-* \
2266 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2267 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2268 | -with-* | --with-* | -without-* | --without-* | --x)
2269 case "$ac_configure_args0 " in
2270 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2271 esac
2272 ;;
2273 -* ) ac_must_keep_next=true ;;
2274 esac
2275 fi
2276 as_fn_append ac_configure_args " '$ac_arg'"
2277 ;;
2278 esac
2279 done
2280 done
2281 { ac_configure_args0=; unset ac_configure_args0;}
2282 { ac_configure_args1=; unset ac_configure_args1;}
2283
2284 # When interrupted or exit'd, cleanup temporary files, and complete
2285 # config.log. We remove comments because anyway the quotes in there
2286 # would cause problems or look ugly.
2287 # WARNING: Use '\'' to represent an apostrophe within the trap.
2288 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2289 trap 'exit_status=$?
2290 # Save into config.log some information that might help in debugging.
2291 {
2292 echo
2293
2294 $as_echo "## ---------------- ##
2295 ## Cache variables. ##
2296 ## ---------------- ##"
2297 echo
2298 # The following way of writing the cache mishandles newlines in values,
2299 (
2300 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2301 eval ac_val=\$$ac_var
2302 case $ac_val in #(
2303 *${as_nl}*)
2304 case $ac_var in #(
2305 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2306 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2307 esac
2308 case $ac_var in #(
2309 _ | IFS | as_nl) ;; #(
2310 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2311 *) { eval $ac_var=; unset $ac_var;} ;;
2312 esac ;;
2313 esac
2314 done
2315 (set) 2>&1 |
2316 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2317 *${as_nl}ac_space=\ *)
2318 sed -n \
2319 "s/'\''/'\''\\\\'\'''\''/g;
2320 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2321 ;; #(
2322 *)
2323 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2324 ;;
2325 esac |
2326 sort
2327 )
2328 echo
2329
2330 $as_echo "## ----------------- ##
2331 ## Output variables. ##
2332 ## ----------------- ##"
2333 echo
2334 for ac_var in $ac_subst_vars
2335 do
2336 eval ac_val=\$$ac_var
2337 case $ac_val in
2338 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339 esac
2340 $as_echo "$ac_var='\''$ac_val'\''"
2341 done | sort
2342 echo
2343
2344 if test -n "$ac_subst_files"; then
2345 $as_echo "## ------------------- ##
2346 ## File substitutions. ##
2347 ## ------------------- ##"
2348 echo
2349 for ac_var in $ac_subst_files
2350 do
2351 eval ac_val=\$$ac_var
2352 case $ac_val in
2353 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354 esac
2355 $as_echo "$ac_var='\''$ac_val'\''"
2356 done | sort
2357 echo
2358 fi
2359
2360 if test -s confdefs.h; then
2361 $as_echo "## ----------- ##
2362 ## confdefs.h. ##
2363 ## ----------- ##"
2364 echo
2365 cat confdefs.h
2366 echo
2367 fi
2368 test "$ac_signal" != 0 &&
2369 $as_echo "$as_me: caught signal $ac_signal"
2370 $as_echo "$as_me: exit $exit_status"
2371 } >&5
2372 rm -f core *.core core.conftest.* &&
2373 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2374 exit $exit_status
2375 ' 0
2376 for ac_signal in 1 2 13 15; do
2377 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2378 done
2379 ac_signal=0
2380
2381 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2382 rm -f -r conftest* confdefs.h
2383
2384 $as_echo "/* confdefs.h */" > confdefs.h
2385
2386 # Predefined preprocessor variables.
2387
2388 cat >>confdefs.h <<_ACEOF
2389 #define PACKAGE_NAME "$PACKAGE_NAME"
2390 _ACEOF
2391
2392 cat >>confdefs.h <<_ACEOF
2393 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2394 _ACEOF
2395
2396 cat >>confdefs.h <<_ACEOF
2397 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2398 _ACEOF
2399
2400 cat >>confdefs.h <<_ACEOF
2401 #define PACKAGE_STRING "$PACKAGE_STRING"
2402 _ACEOF
2403
2404 cat >>confdefs.h <<_ACEOF
2405 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2406 _ACEOF
2407
2408 cat >>confdefs.h <<_ACEOF
2409 #define PACKAGE_URL "$PACKAGE_URL"
2410 _ACEOF
2411
2412
2413 # Let the site file select an alternate cache file if it wants to.
2414 # Prefer an explicitly selected file to automatically selected ones.
2415 ac_site_file1=NONE
2416 ac_site_file2=NONE
2417 if test -n "$CONFIG_SITE"; then
2418 # We do not want a PATH search for config.site.
2419 case $CONFIG_SITE in #((
2420 -*) ac_site_file1=./$CONFIG_SITE;;
2421 */*) ac_site_file1=$CONFIG_SITE;;
2422 *) ac_site_file1=./$CONFIG_SITE;;
2423 esac
2424 elif test "x$prefix" != xNONE; then
2425 ac_site_file1=$prefix/share/config.site
2426 ac_site_file2=$prefix/etc/config.site
2427 else
2428 ac_site_file1=$ac_default_prefix/share/config.site
2429 ac_site_file2=$ac_default_prefix/etc/config.site
2430 fi
2431 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432 do
2433 test "x$ac_site_file" = xNONE && continue
2434 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2435 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2436 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2437 sed 's/^/| /' "$ac_site_file" >&5
2438 . "$ac_site_file" \
2439 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2440 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2441 as_fn_error $? "failed to load site script $ac_site_file
2442 See \`config.log' for more details" "$LINENO" 5; }
2443 fi
2444 done
2445
2446 if test -r "$cache_file"; then
2447 # Some versions of bash will fail to source /dev/null (special files
2448 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2449 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2451 $as_echo "$as_me: loading cache $cache_file" >&6;}
2452 case $cache_file in
2453 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2454 *) . "./$cache_file";;
2455 esac
2456 fi
2457 else
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2459 $as_echo "$as_me: creating cache $cache_file" >&6;}
2460 >$cache_file
2461 fi
2462
2463 # Check that the precious variables saved in the cache have kept the same
2464 # value.
2465 ac_cache_corrupted=false
2466 for ac_var in $ac_precious_vars; do
2467 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2468 eval ac_new_set=\$ac_env_${ac_var}_set
2469 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2470 eval ac_new_val=\$ac_env_${ac_var}_value
2471 case $ac_old_set,$ac_new_set in
2472 set,)
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2474 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2475 ac_cache_corrupted=: ;;
2476 ,set)
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2478 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2479 ac_cache_corrupted=: ;;
2480 ,);;
2481 *)
2482 if test "x$ac_old_val" != "x$ac_new_val"; then
2483 # differences in whitespace do not lead to failure.
2484 ac_old_val_w=`echo x $ac_old_val`
2485 ac_new_val_w=`echo x $ac_new_val`
2486 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2487 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2488 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2489 ac_cache_corrupted=:
2490 else
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2492 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2493 eval $ac_var=\$ac_old_val
2494 fi
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2496 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2498 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2499 fi;;
2500 esac
2501 # Pass precious variables to config.status.
2502 if test "$ac_new_set" = set; then
2503 case $ac_new_val in
2504 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2505 *) ac_arg=$ac_var=$ac_new_val ;;
2506 esac
2507 case " $ac_configure_args " in
2508 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2509 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2510 esac
2511 fi
2512 done
2513 if $ac_cache_corrupted; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2517 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2518 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2519 fi
2520 ## -------------------- ##
2521 ## Main body of script. ##
2522 ## -------------------- ##
2523
2524 ac_ext=c
2525 ac_cpp='$CPP $CPPFLAGS'
2526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2529
2530
2531
2532 ac_config_headers="$ac_config_headers config.h include/X11/fonts/fontconf.h"
2533
2534
2535 # Initialize Automake
2536 am__api_version='1.14'
2537
2538 ac_aux_dir=
2539 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2540 if test -f "$ac_dir/install-sh"; then
2541 ac_aux_dir=$ac_dir
2542 ac_install_sh="$ac_aux_dir/install-sh -c"
2543 break
2544 elif test -f "$ac_dir/install.sh"; then
2545 ac_aux_dir=$ac_dir
2546 ac_install_sh="$ac_aux_dir/install.sh -c"
2547 break
2548 elif test -f "$ac_dir/shtool"; then
2549 ac_aux_dir=$ac_dir
2550 ac_install_sh="$ac_aux_dir/shtool install -c"
2551 break
2552 fi
2553 done
2554 if test -z "$ac_aux_dir"; then
2555 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2556 fi
2557
2558 # These three variables are undocumented and unsupported,
2559 # and are intended to be withdrawn in a future Autoconf release.
2560 # They can cause serious problems if a builder's source tree is in a directory
2561 # whose full name contains unusual characters.
2562 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2563 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2564 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2565
2566
2567 # Find a good install program. We prefer a C program (faster),
2568 # so one script is as good as another. But avoid the broken or
2569 # incompatible versions:
2570 # SysV /etc/install, /usr/sbin/install
2571 # SunOS /usr/etc/install
2572 # IRIX /sbin/install
2573 # AIX /bin/install
2574 # AmigaOS /C/install, which installs bootblocks on floppy discs
2575 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2576 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2577 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2578 # OS/2's system install, which has a completely different semantic
2579 # ./install, which can be erroneously created by make from ./install.sh.
2580 # Reject install programs that cannot install multiple files.
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2582 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2583 if test -z "$INSTALL"; then
2584 if ${ac_cv_path_install+:} false; then :
2585 $as_echo_n "(cached) " >&6
2586 else
2587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2588 for as_dir in $PATH
2589 do
2590 IFS=$as_save_IFS
2591 test -z "$as_dir" && as_dir=.
2592 # Account for people who put trailing slashes in PATH elements.
2593 case $as_dir/ in #((
2594 ./ | .// | /[cC]/* | \
2595 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2596 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2597 /usr/ucb/* ) ;;
2598 *)
2599 # OSF1 and SCO ODT 3.0 have their own names for install.
2600 # Don't use installbsd from OSF since it installs stuff as root
2601 # by default.
2602 for ac_prog in ginstall scoinst install; do
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2605 if test $ac_prog = install &&
2606 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2607 # AIX install. It has an incompatible calling convention.
2608 :
2609 elif test $ac_prog = install &&
2610 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2611 # program-specific install script used by HP pwplus--don't use.
2612 :
2613 else
2614 rm -rf conftest.one conftest.two conftest.dir
2615 echo one > conftest.one
2616 echo two > conftest.two
2617 mkdir conftest.dir
2618 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2619 test -s conftest.one && test -s conftest.two &&
2620 test -s conftest.dir/conftest.one &&
2621 test -s conftest.dir/conftest.two
2622 then
2623 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2624 break 3
2625 fi
2626 fi
2627 fi
2628 done
2629 done
2630 ;;
2631 esac
2632
2633 done
2634 IFS=$as_save_IFS
2635
2636 rm -rf conftest.one conftest.two conftest.dir
2637
2638 fi
2639 if test "${ac_cv_path_install+set}" = set; then
2640 INSTALL=$ac_cv_path_install
2641 else
2642 # As a last resort, use the slow shell script. Don't cache a
2643 # value for INSTALL within a source directory, because that will
2644 # break other packages using the cache if that directory is
2645 # removed, or if the value is a relative name.
2646 INSTALL=$ac_install_sh
2647 fi
2648 fi
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2650 $as_echo "$INSTALL" >&6; }
2651
2652 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2653 # It thinks the first close brace ends the variable substitution.
2654 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2655
2656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2657
2658 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2659
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2661 $as_echo_n "checking whether build environment is sane... " >&6; }
2662 # Reject unsafe characters in $srcdir or the absolute working directory
2663 # name. Accept space and tab only in the latter.
2664 am_lf='
2665 '
2666 case `pwd` in
2667 *[\\\"\#\$\&\'\`$am_lf]*)
2668 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2669 esac
2670 case $srcdir in
2671 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2672 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2673 esac
2674
2675 # Do 'set' in a subshell so we don't clobber the current shell's
2676 # arguments. Must try -L first in case configure is actually a
2677 # symlink; some systems play weird games with the mod time of symlinks
2678 # (eg FreeBSD returns the mod time of the symlink's containing
2679 # directory).
2680 if (
2681 am_has_slept=no
2682 for am_try in 1 2; do
2683 echo "timestamp, slept: $am_has_slept" > conftest.file
2684 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2685 if test "$*" = "X"; then
2686 # -L didn't work.
2687 set X `ls -t "$srcdir/configure" conftest.file`
2688 fi
2689 if test "$*" != "X $srcdir/configure conftest.file" \
2690 && test "$*" != "X conftest.file $srcdir/configure"; then
2691
2692 # If neither matched, then we have a broken ls. This can happen
2693 # if, for instance, CONFIG_SHELL is bash and it inherits a
2694 # broken ls alias from the environment. This has actually
2695 # happened. Such a system could not be considered "sane".
2696 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2697 alias in your environment" "$LINENO" 5
2698 fi
2699 if test "$2" = conftest.file || test $am_try -eq 2; then
2700 break
2701 fi
2702 # Just in case.
2703 sleep 1
2704 am_has_slept=yes
2705 done
2706 test "$2" = conftest.file
2707 )
2708 then
2709 # Ok.
2710 :
2711 else
2712 as_fn_error $? "newly created file is older than distributed files!
2713 Check your system clock" "$LINENO" 5
2714 fi
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2716 $as_echo "yes" >&6; }
2717 # If we didn't sleep, we still need to ensure time stamps of config.status and
2718 # generated files are strictly newer.
2719 am_sleep_pid=
2720 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2721 ( sleep 1 ) &
2722 am_sleep_pid=$!
2723 fi
2724
2725 rm -f conftest.file
2726
2727 test "$program_prefix" != NONE &&
2728 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2729 # Use a double $ so make ignores it.
2730 test "$program_suffix" != NONE &&
2731 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2732 # Double any \ or $.
2733 # By default was `s,x,x', remove it if useless.
2734 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2735 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2736
2737 # expand $ac_aux_dir to an absolute path
2738 am_aux_dir=`cd $ac_aux_dir && pwd`
2739
2740 if test x"${MISSING+set}" != xset; then
2741 case $am_aux_dir in
2742 *\ * | *\ *)
2743 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2744 *)
2745 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2746 esac
2747 fi
2748 # Use eval to expand $SHELL
2749 if eval "$MISSING --is-lightweight"; then
2750 am_missing_run="$MISSING "
2751 else
2752 am_missing_run=
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2754 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2755 fi
2756
2757 if test x"${install_sh}" != xset; then
2758 case $am_aux_dir in
2759 *\ * | *\ *)
2760 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2761 *)
2762 install_sh="\${SHELL} $am_aux_dir/install-sh"
2763 esac
2764 fi
2765
2766 # Installed binaries are usually stripped using 'strip' when the user
2767 # run "make install-strip". However 'strip' might not be the right
2768 # tool to use in cross-compilation environments, therefore Automake
2769 # will honor the 'STRIP' environment variable to overrule this program.
2770 if test "$cross_compiling" != no; then
2771 if test -n "$ac_tool_prefix"; then
2772 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2773 set dummy ${ac_tool_prefix}strip; ac_word=$2
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2775 $as_echo_n "checking for $ac_word... " >&6; }
2776 if ${ac_cv_prog_STRIP+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 if test -n "$STRIP"; then
2780 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2781 else
2782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2783 for as_dir in $PATH
2784 do
2785 IFS=$as_save_IFS
2786 test -z "$as_dir" && as_dir=.
2787 for ac_exec_ext in '' $ac_executable_extensions; do
2788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2789 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2791 break 2
2792 fi
2793 done
2794 done
2795 IFS=$as_save_IFS
2796
2797 fi
2798 fi
2799 STRIP=$ac_cv_prog_STRIP
2800 if test -n "$STRIP"; then
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2802 $as_echo "$STRIP" >&6; }
2803 else
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2805 $as_echo "no" >&6; }
2806 fi
2807
2808
2809 fi
2810 if test -z "$ac_cv_prog_STRIP"; then
2811 ac_ct_STRIP=$STRIP
2812 # Extract the first word of "strip", so it can be a program name with args.
2813 set dummy strip; ac_word=$2
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2815 $as_echo_n "checking for $ac_word... " >&6; }
2816 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$ac_ct_STRIP"; then
2820 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2821 else
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2823 for as_dir in $PATH
2824 do
2825 IFS=$as_save_IFS
2826 test -z "$as_dir" && as_dir=.
2827 for ac_exec_ext in '' $ac_executable_extensions; do
2828 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2829 ac_cv_prog_ac_ct_STRIP="strip"
2830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2831 break 2
2832 fi
2833 done
2834 done
2835 IFS=$as_save_IFS
2836
2837 fi
2838 fi
2839 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2840 if test -n "$ac_ct_STRIP"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2842 $as_echo "$ac_ct_STRIP" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848 if test "x$ac_ct_STRIP" = x; then
2849 STRIP=":"
2850 else
2851 case $cross_compiling:$ac_tool_warned in
2852 yes:)
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2854 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2855 ac_tool_warned=yes ;;
2856 esac
2857 STRIP=$ac_ct_STRIP
2858 fi
2859 else
2860 STRIP="$ac_cv_prog_STRIP"
2861 fi
2862
2863 fi
2864 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2865
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2867 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2868 if test -z "$MKDIR_P"; then
2869 if ${ac_cv_path_mkdir+:} false; then :
2870 $as_echo_n "(cached) " >&6
2871 else
2872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2873 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2874 do
2875 IFS=$as_save_IFS
2876 test -z "$as_dir" && as_dir=.
2877 for ac_prog in mkdir gmkdir; do
2878 for ac_exec_ext in '' $ac_executable_extensions; do
2879 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2880 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2881 'mkdir (GNU coreutils) '* | \
2882 'mkdir (coreutils) '* | \
2883 'mkdir (fileutils) '4.1*)
2884 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2885 break 3;;
2886 esac
2887 done
2888 done
2889 done
2890 IFS=$as_save_IFS
2891
2892 fi
2893
2894 test -d ./--version && rmdir ./--version
2895 if test "${ac_cv_path_mkdir+set}" = set; then
2896 MKDIR_P="$ac_cv_path_mkdir -p"
2897 else
2898 # As a last resort, use the slow shell script. Don't cache a
2899 # value for MKDIR_P within a source directory, because that will
2900 # break other packages using the cache if that directory is
2901 # removed, or if the value is a relative name.
2902 MKDIR_P="$ac_install_sh -d"
2903 fi
2904 fi
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2906 $as_echo "$MKDIR_P" >&6; }
2907
2908 for ac_prog in gawk mawk nawk awk
2909 do
2910 # Extract the first word of "$ac_prog", so it can be a program name with args.
2911 set dummy $ac_prog; ac_word=$2
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2913 $as_echo_n "checking for $ac_word... " >&6; }
2914 if ${ac_cv_prog_AWK+:} false; then :
2915 $as_echo_n "(cached) " >&6
2916 else
2917 if test -n "$AWK"; then
2918 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2919 else
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921 for as_dir in $PATH
2922 do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
2925 for ac_exec_ext in '' $ac_executable_extensions; do
2926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2927 ac_cv_prog_AWK="$ac_prog"
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2929 break 2
2930 fi
2931 done
2932 done
2933 IFS=$as_save_IFS
2934
2935 fi
2936 fi
2937 AWK=$ac_cv_prog_AWK
2938 if test -n "$AWK"; then
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2940 $as_echo "$AWK" >&6; }
2941 else
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2943 $as_echo "no" >&6; }
2944 fi
2945
2946
2947 test -n "$AWK" && break
2948 done
2949
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2951 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2952 set x ${MAKE-make}
2953 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2954 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 cat >conftest.make <<\_ACEOF
2958 SHELL = /bin/sh
2959 all:
2960 @echo '@@@%%%=$(MAKE)=@@@%%%'
2961 _ACEOF
2962 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2963 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2964 *@@@%%%=?*=@@@%%%*)
2965 eval ac_cv_prog_make_${ac_make}_set=yes;;
2966 *)
2967 eval ac_cv_prog_make_${ac_make}_set=no;;
2968 esac
2969 rm -f conftest.make
2970 fi
2971 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2974 SET_MAKE=
2975 else
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2977 $as_echo "no" >&6; }
2978 SET_MAKE="MAKE=${MAKE-make}"
2979 fi
2980
2981 rm -rf .tst 2>/dev/null
2982 mkdir .tst 2>/dev/null
2983 if test -d .tst; then
2984 am__leading_dot=.
2985 else
2986 am__leading_dot=_
2987 fi
2988 rmdir .tst 2>/dev/null
2989
2990 # Check whether --enable-silent-rules was given.
2991 if test "${enable_silent_rules+set}" = set; then :
2992 enableval=$enable_silent_rules;
2993 fi
2994
2995 case $enable_silent_rules in # (((
2996 yes) AM_DEFAULT_VERBOSITY=0;;
2997 no) AM_DEFAULT_VERBOSITY=1;;
2998 *) AM_DEFAULT_VERBOSITY=1;;
2999 esac
3000 am_make=${MAKE-make}
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3002 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3003 if ${am_cv_make_support_nested_variables+:} false; then :
3004 $as_echo_n "(cached) " >&6
3005 else
3006 if $as_echo 'TRUE=$(BAR$(V))
3007 BAR0=false
3008 BAR1=true
3009 V=1
3010 am__doit:
3011 @$(TRUE)
3012 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3013 am_cv_make_support_nested_variables=yes
3014 else
3015 am_cv_make_support_nested_variables=no
3016 fi
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3019 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3020 if test $am_cv_make_support_nested_variables = yes; then
3021 AM_V='$(V)'
3022 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3023 else
3024 AM_V=$AM_DEFAULT_VERBOSITY
3025 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3026 fi
3027 AM_BACKSLASH='\'
3028
3029 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3030 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3031 # is not polluted with repeated "-I."
3032 am__isrc=' -I$(srcdir)'
3033 # test to see if srcdir already configured
3034 if test -f $srcdir/config.status; then
3035 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3036 fi
3037 fi
3038
3039 # test whether we have cygpath
3040 if test -z "$CYGPATH_W"; then
3041 if (cygpath --version) >/dev/null 2>/dev/null; then
3042 CYGPATH_W='cygpath -w'
3043 else
3044 CYGPATH_W=echo
3045 fi
3046 fi
3047
3048
3049 # Define the identity of the package.
3050 PACKAGE='libXfont'
3051 VERSION='1.5.0'
3052
3053
3054 cat >>confdefs.h <<_ACEOF
3055 #define PACKAGE "$PACKAGE"
3056 _ACEOF
3057
3058
3059 cat >>confdefs.h <<_ACEOF
3060 #define VERSION "$VERSION"
3061 _ACEOF
3062
3063 # Some tools Automake needs.
3064
3065 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3066
3067
3068 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3069
3070
3071 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3072
3073
3074 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3075
3076
3077 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3078
3079 # For better backward compatibility. To be removed once Automake 1.9.x
3080 # dies out for good. For more background, see:
3081 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3082 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3083 mkdir_p='$(MKDIR_P)'
3084
3085 # We need awk for the "check" target. The system "awk" is bad on
3086 # some platforms.
3087 # Always define AMTAR for backward compatibility. Yes, it's still used
3088 # in the wild :-( We should find a proper way to deprecate it ...
3089 AMTAR='$${TAR-tar}'
3090
3091
3092 # We'll loop over all known methods to create a tar archive until one works.
3093 _am_tools='gnutar pax cpio none'
3094
3095 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3096
3097
3098
3099
3100
3101
3102 # POSIX will say in a future version that running "rm -f" with no argument
3103 # is OK; and we want to be able to make that assumption in our Makefile
3104 # recipes. So use an aggressive probe to check that the usage we want is
3105 # actually supported "in the wild" to an acceptable degree.
3106 # See automake bug#10828.
3107 # To make any issue more visible, cause the running configure to be aborted
3108 # by default if the 'rm' program in use doesn't match our expectations; the
3109 # user can still override this though.
3110 if rm -f && rm -fr && rm -rf; then : OK; else
3111 cat >&2 <<'END'
3112 Oops!
3113
3114 Your 'rm' program seems unable to run without file operands specified
3115 on the command line, even when the '-f' option is present. This is contrary
3116 to the behaviour of most rm programs out there, and not conforming with
3117 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3118
3119 Please tell bug-automake@gnu.org about your system, including the value
3120 of your $PATH and any error possibly output before this message. This
3121 can help us improve future automake versions.
3122
3123 END
3124 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3125 echo 'Configuration will proceed anyway, since you have set the' >&2
3126 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3127 echo >&2
3128 else
3129 cat >&2 <<'END'
3130 Aborting the configuration process, to ensure you take notice of the issue.
3131
3132 You can download and install GNU coreutils to get an 'rm' implementation
3133 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3134
3135 If you want to complete the configuration process using your problematic
3136 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3137 to "yes", and re-run configure.
3138
3139 END
3140 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3141 fi
3142 fi
3143
3144 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3145 # Must be called before any macros that run the compiler (like
3146 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3147 DEPDIR="${am__leading_dot}deps"
3148
3149 ac_config_commands="$ac_config_commands depfiles"
3150
3151
3152 am_make=${MAKE-make}
3153 cat > confinc << 'END'
3154 am__doit:
3155 @echo this is the am__doit target
3156 .PHONY: am__doit
3157 END
3158 # If we don't find an include directive, just comment out the code.
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3160 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3161 am__include="#"
3162 am__quote=
3163 _am_result=none
3164 # First try GNU make style include.
3165 echo "include confinc" > confmf
3166 # Ignore all kinds of additional output from 'make'.
3167 case `$am_make -s -f confmf 2> /dev/null` in #(
3168 *the\ am__doit\ target*)
3169 am__include=include
3170 am__quote=
3171 _am_result=GNU
3172 ;;
3173 esac
3174 # Now try BSD make style include.
3175 if test "$am__include" = "#"; then
3176 echo '.include "confinc"' > confmf
3177 case `$am_make -s -f confmf 2> /dev/null` in #(
3178 *the\ am__doit\ target*)
3179 am__include=.include
3180 am__quote="\""
3181 _am_result=BSD
3182 ;;
3183 esac
3184 fi
3185
3186
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3188 $as_echo "$_am_result" >&6; }
3189 rm -f confinc confmf
3190
3191 # Check whether --enable-dependency-tracking was given.
3192 if test "${enable_dependency_tracking+set}" = set; then :
3193 enableval=$enable_dependency_tracking;
3194 fi
3195
3196 if test "x$enable_dependency_tracking" != xno; then
3197 am_depcomp="$ac_aux_dir/depcomp"
3198 AMDEPBACKSLASH='\'
3199 am__nodep='_no'
3200 fi
3201 if test "x$enable_dependency_tracking" != xno; then
3202 AMDEP_TRUE=
3203 AMDEP_FALSE='#'
3204 else
3205 AMDEP_TRUE='#'
3206 AMDEP_FALSE=
3207 fi
3208
3209
3210 ac_ext=c
3211 ac_cpp='$CPP $CPPFLAGS'
3212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3215 if test -n "$ac_tool_prefix"; then
3216 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3217 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3219 $as_echo_n "checking for $ac_word... " >&6; }
3220 if ${ac_cv_prog_CC+:} false; then :
3221 $as_echo_n "(cached) " >&6
3222 else
3223 if test -n "$CC"; then
3224 ac_cv_prog_CC="$CC" # Let the user override the test.
3225 else
3226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3227 for as_dir in $PATH
3228 do
3229 IFS=$as_save_IFS
3230 test -z "$as_dir" && as_dir=.
3231 for ac_exec_ext in '' $ac_executable_extensions; do
3232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3233 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 break 2
3236 fi
3237 done
3238 done
3239 IFS=$as_save_IFS
3240
3241 fi
3242 fi
3243 CC=$ac_cv_prog_CC
3244 if test -n "$CC"; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3246 $as_echo "$CC" >&6; }
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 fi
3251
3252
3253 fi
3254 if test -z "$ac_cv_prog_CC"; then
3255 ac_ct_CC=$CC
3256 # Extract the first word of "gcc", so it can be a program name with args.
3257 set dummy gcc; ac_word=$2
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3259 $as_echo_n "checking for $ac_word... " >&6; }
3260 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3261 $as_echo_n "(cached) " >&6
3262 else
3263 if test -n "$ac_ct_CC"; then
3264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3265 else
3266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3267 for as_dir in $PATH
3268 do
3269 IFS=$as_save_IFS
3270 test -z "$as_dir" && as_dir=.
3271 for ac_exec_ext in '' $ac_executable_extensions; do
3272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3273 ac_cv_prog_ac_ct_CC="gcc"
3274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3275 break 2
3276 fi
3277 done
3278 done
3279 IFS=$as_save_IFS
3280
3281 fi
3282 fi
3283 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3284 if test -n "$ac_ct_CC"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3286 $as_echo "$ac_ct_CC" >&6; }
3287 else
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3289 $as_echo "no" >&6; }
3290 fi
3291
3292 if test "x$ac_ct_CC" = x; then
3293 CC=""
3294 else
3295 case $cross_compiling:$ac_tool_warned in
3296 yes:)
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3298 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3299 ac_tool_warned=yes ;;
3300 esac
3301 CC=$ac_ct_CC
3302 fi
3303 else
3304 CC="$ac_cv_prog_CC"
3305 fi
3306
3307 if test -z "$CC"; then
3308 if test -n "$ac_tool_prefix"; then
3309 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3310 set dummy ${ac_tool_prefix}cc; ac_word=$2
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3312 $as_echo_n "checking for $ac_word... " >&6; }
3313 if ${ac_cv_prog_CC+:} false; then :
3314 $as_echo_n "(cached) " >&6
3315 else
3316 if test -n "$CC"; then
3317 ac_cv_prog_CC="$CC" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3326 ac_cv_prog_CC="${ac_tool_prefix}cc"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332 IFS=$as_save_IFS
3333
3334 fi
3335 fi
3336 CC=$ac_cv_prog_CC
3337 if test -n "$CC"; then
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3339 $as_echo "$CC" >&6; }
3340 else
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 fi
3344
3345
3346 fi
3347 fi
3348 if test -z "$CC"; then
3349 # Extract the first word of "cc", so it can be a program name with args.
3350 set dummy cc; ac_word=$2
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3352 $as_echo_n "checking for $ac_word... " >&6; }
3353 if ${ac_cv_prog_CC+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 if test -n "$CC"; then
3357 ac_cv_prog_CC="$CC" # Let the user override the test.
3358 else
3359 ac_prog_rejected=no
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3368 ac_prog_rejected=yes
3369 continue
3370 fi
3371 ac_cv_prog_CC="cc"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3374 fi
3375 done
3376 done
3377 IFS=$as_save_IFS
3378
3379 if test $ac_prog_rejected = yes; then
3380 # We found a bogon in the path, so make sure we never use it.
3381 set dummy $ac_cv_prog_CC
3382 shift
3383 if test $# != 0; then
3384 # We chose a different compiler from the bogus one.
3385 # However, it has the same basename, so the bogon will be chosen
3386 # first if we set CC to just the basename; use the full file name.
3387 shift
3388 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3389 fi
3390 fi
3391 fi
3392 fi
3393 CC=$ac_cv_prog_CC
3394 if test -n "$CC"; then
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3396 $as_echo "$CC" >&6; }
3397 else
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 fi
3401
3402
3403 fi
3404 if test -z "$CC"; then
3405 if test -n "$ac_tool_prefix"; then
3406 for ac_prog in cl.exe
3407 do
3408 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3409 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_CC+:} false; then :
3413 $as_echo_n "(cached) " >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421 IFS=$as_save_IFS
3422 test -z "$as_dir" && as_dir=.
3423 for ac_exec_ext in '' $ac_executable_extensions; do
3424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3425 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 CC=$ac_cv_prog_CC
3436 if test -n "$CC"; then
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3438 $as_echo "$CC" >&6; }
3439 else
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444
3445 test -n "$CC" && break
3446 done
3447 fi
3448 if test -z "$CC"; then
3449 ac_ct_CC=$CC
3450 for ac_prog in cl.exe
3451 do
3452 # Extract the first word of "$ac_prog", so it can be a program name with args.
3453 set dummy $ac_prog; ac_word=$2
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3455 $as_echo_n "checking for $ac_word... " >&6; }
3456 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3457 $as_echo_n "(cached) " >&6
3458 else
3459 if test -n "$ac_ct_CC"; then
3460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3461 else
3462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3463 for as_dir in $PATH
3464 do
3465 IFS=$as_save_IFS
3466 test -z "$as_dir" && as_dir=.
3467 for ac_exec_ext in '' $ac_executable_extensions; do
3468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3469 ac_cv_prog_ac_ct_CC="$ac_prog"
3470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3471 break 2
3472 fi
3473 done
3474 done
3475 IFS=$as_save_IFS
3476
3477 fi
3478 fi
3479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3480 if test -n "$ac_ct_CC"; then
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3482 $as_echo "$ac_ct_CC" >&6; }
3483 else
3484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3485 $as_echo "no" >&6; }
3486 fi
3487
3488
3489 test -n "$ac_ct_CC" && break
3490 done
3491
3492 if test "x$ac_ct_CC" = x; then
3493 CC=""
3494 else
3495 case $cross_compiling:$ac_tool_warned in
3496 yes:)
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3499 ac_tool_warned=yes ;;
3500 esac
3501 CC=$ac_ct_CC
3502 fi
3503 fi
3504
3505 fi
3506
3507
3508 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3510 as_fn_error $? "no acceptable C compiler found in \$PATH
3511 See \`config.log' for more details" "$LINENO" 5; }
3512
3513 # Provide some information about the compiler.
3514 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3515 set X $ac_compile
3516 ac_compiler=$2
3517 for ac_option in --version -v -V -qversion; do
3518 { { ac_try="$ac_compiler $ac_option >&5"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3524 $as_echo "$ac_try_echo"; } >&5
3525 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3526 ac_status=$?
3527 if test -s conftest.err; then
3528 sed '10a\
3529 ... rest of stderr output deleted ...
3530 10q' conftest.err >conftest.er1
3531 cat conftest.er1 >&5
3532 fi
3533 rm -f conftest.er1 conftest.err
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }
3536 done
3537
3538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539 /* end confdefs.h. */
3540
3541 int
3542 main ()
3543 {
3544
3545 ;
3546 return 0;
3547 }
3548 _ACEOF
3549 ac_clean_files_save=$ac_clean_files
3550 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3551 # Try to create an executable without -o first, disregard a.out.
3552 # It will help us diagnose broken compilers, and finding out an intuition
3553 # of exeext.
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3555 $as_echo_n "checking whether the C compiler works... " >&6; }
3556 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3557
3558 # The possible output files:
3559 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3560
3561 ac_rmfiles=
3562 for ac_file in $ac_files
3563 do
3564 case $ac_file in
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3567 esac
3568 done
3569 rm -f $ac_rmfiles
3570
3571 if { { ac_try="$ac_link_default"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_link_default") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3583 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3584 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3585 # so that the user can short-circuit this test for compilers unknown to
3586 # Autoconf.
3587 for ac_file in $ac_files ''
3588 do
3589 test -f "$ac_file" || continue
3590 case $ac_file in
3591 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3592 ;;
3593 [ab].out )
3594 # We found the default executable, but exeext='' is most
3595 # certainly right.
3596 break;;
3597 *.* )
3598 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3599 then :; else
3600 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3601 fi
3602 # We set ac_cv_exeext here because the later test for it is not
3603 # safe: cross compilers may not add the suffix if given an `-o'
3604 # argument, so we may need to know it at that point already.
3605 # Even if this section looks crufty: it has the advantage of
3606 # actually working.
3607 break;;
3608 * )
3609 break;;
3610 esac
3611 done
3612 test "$ac_cv_exeext" = no && ac_cv_exeext=
3613
3614 else
3615 ac_file=''
3616 fi
3617 if test -z "$ac_file"; then :
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3619 $as_echo "no" >&6; }
3620 $as_echo "$as_me: failed program was:" >&5
3621 sed 's/^/| /' conftest.$ac_ext >&5
3622
3623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625 as_fn_error 77 "C compiler cannot create executables
3626 See \`config.log' for more details" "$LINENO" 5; }
3627 else
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3630 fi
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3632 $as_echo_n "checking for C compiler default output file name... " >&6; }
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3634 $as_echo "$ac_file" >&6; }
3635 ac_exeext=$ac_cv_exeext
3636
3637 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3638 ac_clean_files=$ac_clean_files_save
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3640 $as_echo_n "checking for suffix of executables... " >&6; }
3641 if { { ac_try="$ac_link"
3642 case "(($ac_try" in
3643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3644 *) ac_try_echo=$ac_try;;
3645 esac
3646 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3647 $as_echo "$ac_try_echo"; } >&5
3648 (eval "$ac_link") 2>&5
3649 ac_status=$?
3650 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3651 test $ac_status = 0; }; then :
3652 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3653 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3654 # work properly (i.e., refer to `conftest.exe'), while it won't with
3655 # `rm'.
3656 for ac_file in conftest.exe conftest conftest.*; do
3657 test -f "$ac_file" || continue
3658 case $ac_file in
3659 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3660 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 break;;
3662 * ) break;;
3663 esac
3664 done
3665 else
3666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3668 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3669 See \`config.log' for more details" "$LINENO" 5; }
3670 fi
3671 rm -f conftest conftest$ac_cv_exeext
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3673 $as_echo "$ac_cv_exeext" >&6; }
3674
3675 rm -f conftest.$ac_ext
3676 EXEEXT=$ac_cv_exeext
3677 ac_exeext=$EXEEXT
3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3679 /* end confdefs.h. */
3680 #include <stdio.h>
3681 int
3682 main ()
3683 {
3684 FILE *f = fopen ("conftest.out", "w");
3685 return ferror (f) || fclose (f) != 0;
3686
3687 ;
3688 return 0;
3689 }
3690 _ACEOF
3691 ac_clean_files="$ac_clean_files conftest.out"
3692 # Check that the compiler produces executables we can run. If not, either
3693 # the compiler is broken, or we cross compile.
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3695 $as_echo_n "checking whether we are cross compiling... " >&6; }
3696 if test "$cross_compiling" != yes; then
3697 { { ac_try="$ac_link"
3698 case "(($ac_try" in
3699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3700 *) ac_try_echo=$ac_try;;
3701 esac
3702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3703 $as_echo "$ac_try_echo"; } >&5
3704 (eval "$ac_link") 2>&5
3705 ac_status=$?
3706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3707 test $ac_status = 0; }
3708 if { ac_try='./conftest$ac_cv_exeext'
3709 { { case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3714 $as_echo "$ac_try_echo"; } >&5
3715 (eval "$ac_try") 2>&5
3716 ac_status=$?
3717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3718 test $ac_status = 0; }; }; then
3719 cross_compiling=no
3720 else
3721 if test "$cross_compiling" = maybe; then
3722 cross_compiling=yes
3723 else
3724 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3725 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3726 as_fn_error $? "cannot run C compiled programs.
3727 If you meant to cross compile, use \`--host'.
3728 See \`config.log' for more details" "$LINENO" 5; }
3729 fi
3730 fi
3731 fi
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3733 $as_echo "$cross_compiling" >&6; }
3734
3735 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3736 ac_clean_files=$ac_clean_files_save
3737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if ${ac_cv_objext+:} false; then :
3740 $as_echo_n "(cached) " >&6
3741 else
3742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3743 /* end confdefs.h. */
3744
3745 int
3746 main ()
3747 {
3748
3749 ;
3750 return 0;
3751 }
3752 _ACEOF
3753 rm -f conftest.o conftest.obj
3754 if { { ac_try="$ac_compile"
3755 case "(($ac_try" in
3756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3757 *) ac_try_echo=$ac_try;;
3758 esac
3759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3760 $as_echo "$ac_try_echo"; } >&5
3761 (eval "$ac_compile") 2>&5
3762 ac_status=$?
3763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3764 test $ac_status = 0; }; then :
3765 for ac_file in conftest.o conftest.obj conftest.*; do
3766 test -f "$ac_file" || continue;
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3770 break;;
3771 esac
3772 done
3773 else
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error $? "cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 fi
3782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3783 fi
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3785 $as_echo "$ac_cv_objext" >&6; }
3786 OBJEXT=$ac_cv_objext
3787 ac_objext=$OBJEXT
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3789 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3790 if ${ac_cv_c_compiler_gnu+:} false; then :
3791 $as_echo_n "(cached) " >&6
3792 else
3793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794 /* end confdefs.h. */
3795
3796 int
3797 main ()
3798 {
3799 #ifndef __GNUC__
3800 choke me
3801 #endif
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 if ac_fn_c_try_compile "$LINENO"; then :
3808 ac_compiler_gnu=yes
3809 else
3810 ac_compiler_gnu=no
3811 fi
3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3813 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3814
3815 fi
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3817 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3818 if test $ac_compiler_gnu = yes; then
3819 GCC=yes
3820 else
3821 GCC=
3822 fi
3823 ac_test_CFLAGS=${CFLAGS+set}
3824 ac_save_CFLAGS=$CFLAGS
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3826 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3827 if ${ac_cv_prog_cc_g+:} false; then :
3828 $as_echo_n "(cached) " >&6
3829 else
3830 ac_save_c_werror_flag=$ac_c_werror_flag
3831 ac_c_werror_flag=yes
3832 ac_cv_prog_cc_g=no
3833 CFLAGS="-g"
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 if ac_fn_c_try_compile "$LINENO"; then :
3846 ac_cv_prog_cc_g=yes
3847 else
3848 CFLAGS=""
3849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3850 /* end confdefs.h. */
3851
3852 int
3853 main ()
3854 {
3855
3856 ;
3857 return 0;
3858 }
3859 _ACEOF
3860 if ac_fn_c_try_compile "$LINENO"; then :
3861
3862 else
3863 ac_c_werror_flag=$ac_save_c_werror_flag
3864 CFLAGS="-g"
3865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867
3868 int
3869 main ()
3870 {
3871
3872 ;
3873 return 0;
3874 }
3875 _ACEOF
3876 if ac_fn_c_try_compile "$LINENO"; then :
3877 ac_cv_prog_cc_g=yes
3878 fi
3879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 fi
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 fi
3883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3884 ac_c_werror_flag=$ac_save_c_werror_flag
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3887 $as_echo "$ac_cv_prog_cc_g" >&6; }
3888 if test "$ac_test_CFLAGS" = set; then
3889 CFLAGS=$ac_save_CFLAGS
3890 elif test $ac_cv_prog_cc_g = yes; then
3891 if test "$GCC" = yes; then
3892 CFLAGS="-g -O2"
3893 else
3894 CFLAGS="-g"
3895 fi
3896 else
3897 if test "$GCC" = yes; then
3898 CFLAGS="-O2"
3899 else
3900 CFLAGS=
3901 fi
3902 fi
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3904 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3905 if ${ac_cv_prog_cc_c89+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 ac_cv_prog_cc_c89=no
3909 ac_save_CC=$CC
3910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3911 /* end confdefs.h. */
3912 #include <stdarg.h>
3913 #include <stdio.h>
3914 #include <sys/types.h>
3915 #include <sys/stat.h>
3916 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3917 struct buf { int x; };
3918 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3919 static char *e (p, i)
3920 char **p;
3921 int i;
3922 {
3923 return p[i];
3924 }
3925 static char *f (char * (*g) (char **, int), char **p, ...)
3926 {
3927 char *s;
3928 va_list v;
3929 va_start (v,p);
3930 s = g (p, va_arg (v,int));
3931 va_end (v);
3932 return s;
3933 }
3934
3935 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3936 function prototypes and stuff, but not '\xHH' hex character constants.
3937 These don't provoke an error unfortunately, instead are silently treated
3938 as 'x'. The following induces an error, until -std is added to get
3939 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3940 array size at least. It's necessary to write '\x00'==0 to get something
3941 that's true only with -std. */
3942 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3943
3944 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3945 inside strings and character constants. */
3946 #define FOO(x) 'x'
3947 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3948
3949 int test (int i, double x);
3950 struct s1 {int (*f) (int a);};
3951 struct s2 {int (*f) (double a);};
3952 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3953 int argc;
3954 char **argv;
3955 int
3956 main ()
3957 {
3958 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3959 ;
3960 return 0;
3961 }
3962 _ACEOF
3963 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3964 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3965 do
3966 CC="$ac_save_CC $ac_arg"
3967 if ac_fn_c_try_compile "$LINENO"; then :
3968 ac_cv_prog_cc_c89=$ac_arg
3969 fi
3970 rm -f core conftest.err conftest.$ac_objext
3971 test "x$ac_cv_prog_cc_c89" != "xno" && break
3972 done
3973 rm -f conftest.$ac_ext
3974 CC=$ac_save_CC
3975
3976 fi
3977 # AC_CACHE_VAL
3978 case "x$ac_cv_prog_cc_c89" in
3979 x)
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3981 $as_echo "none needed" >&6; } ;;
3982 xno)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3984 $as_echo "unsupported" >&6; } ;;
3985 *)
3986 CC="$CC $ac_cv_prog_cc_c89"
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3988 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3989 esac
3990 if test "x$ac_cv_prog_cc_c89" != xno; then :
3991
3992 fi
3993
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000 ac_ext=c
4001 ac_cpp='$CPP $CPPFLAGS'
4002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4006 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4007 if ${am_cv_prog_cc_c_o+:} false; then :
4008 $as_echo_n "(cached) " >&6
4009 else
4010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4011 /* end confdefs.h. */
4012
4013 int
4014 main ()
4015 {
4016
4017 ;
4018 return 0;
4019 }
4020 _ACEOF
4021 # Make sure it works both with $CC and with simple cc.
4022 # Following AC_PROG_CC_C_O, we do the test twice because some
4023 # compilers refuse to overwrite an existing .o file with -o,
4024 # though they will create one.
4025 am_cv_prog_cc_c_o=yes
4026 for am_i in 1 2; do
4027 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4028 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4029 ac_status=$?
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } \
4032 && test -f conftest2.$ac_objext; then
4033 : OK
4034 else
4035 am_cv_prog_cc_c_o=no
4036 break
4037 fi
4038 done
4039 rm -f core conftest*
4040 unset am_i
4041 fi
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4043 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4044 if test "$am_cv_prog_cc_c_o" != yes; then
4045 # Losing compiler, so override with the script.
4046 # FIXME: It is wrong to rewrite CC.
4047 # But if we don't then we get into trouble of one sort or another.
4048 # A longer-term fix would be to have automake use am__CC in this case,
4049 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4050 CC="$am_aux_dir/compile $CC"
4051 fi
4052 ac_ext=c
4053 ac_cpp='$CPP $CPPFLAGS'
4054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4057
4058
4059 depcc="$CC" am_compiler_list=
4060
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4062 $as_echo_n "checking dependency style of $depcc... " >&6; }
4063 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4067 # We make a subdir and do the tests there. Otherwise we can end up
4068 # making bogus files that we don't know about and never remove. For
4069 # instance it was reported that on HP-UX the gcc test will end up
4070 # making a dummy file named 'D' -- because '-MD' means "put the output
4071 # in D".
4072 rm -rf conftest.dir
4073 mkdir conftest.dir
4074 # Copy depcomp to subdir because otherwise we won't find it if we're
4075 # using a relative directory.
4076 cp "$am_depcomp" conftest.dir
4077 cd conftest.dir
4078 # We will build objects and dependencies in a subdirectory because
4079 # it helps to detect inapplicable dependency modes. For instance
4080 # both Tru64's cc and ICC support -MD to output dependencies as a
4081 # side effect of compilation, but ICC will put the dependencies in
4082 # the current directory while Tru64 will put them in the object
4083 # directory.
4084 mkdir sub
4085
4086 am_cv_CC_dependencies_compiler_type=none
4087 if test "$am_compiler_list" = ""; then
4088 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4089 fi
4090 am__universal=false
4091 case " $depcc " in #(
4092 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4093 esac
4094
4095 for depmode in $am_compiler_list; do
4096 # Setup a source with many dependencies, because some compilers
4097 # like to wrap large dependency lists on column 80 (with \), and
4098 # we should not choose a depcomp mode which is confused by this.
4099 #
4100 # We need to recreate these files for each test, as the compiler may
4101 # overwrite some of them when testing with obscure command lines.
4102 # This happens at least with the AIX C compiler.
4103 : > sub/conftest.c
4104 for i in 1 2 3 4 5 6; do
4105 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4106 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4107 # Solaris 10 /bin/sh.
4108 echo '/* dummy */' > sub/conftst$i.h
4109 done
4110 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4111
4112 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4113 # mode. It turns out that the SunPro C++ compiler does not properly
4114 # handle '-M -o', and we need to detect this. Also, some Intel
4115 # versions had trouble with output in subdirs.
4116 am__obj=sub/conftest.${OBJEXT-o}
4117 am__minus_obj="-o $am__obj"
4118 case $depmode in
4119 gcc)
4120 # This depmode causes a compiler race in universal mode.
4121 test "$am__universal" = false || continue
4122 ;;
4123 nosideeffect)
4124 # After this tag, mechanisms are not by side-effect, so they'll
4125 # only be used when explicitly requested.
4126 if test "x$enable_dependency_tracking" = xyes; then
4127 continue
4128 else
4129 break
4130 fi
4131 ;;
4132 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4133 # This compiler won't grok '-c -o', but also, the minuso test has
4134 # not run yet. These depmodes are late enough in the game, and
4135 # so weak that their functioning should not be impacted.
4136 am__obj=conftest.${OBJEXT-o}
4137 am__minus_obj=
4138 ;;
4139 none) break ;;
4140 esac
4141 if depmode=$depmode \
4142 source=sub/conftest.c object=$am__obj \
4143 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4144 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4145 >/dev/null 2>conftest.err &&
4146 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4147 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4148 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4149 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4150 # icc doesn't choke on unknown options, it will just issue warnings
4151 # or remarks (even with -Werror). So we grep stderr for any message
4152 # that says an option was ignored or not supported.
4153 # When given -MP, icc 7.0 and 7.1 complain thusly:
4154 # icc: Command line warning: ignoring option '-M'; no argument required
4155 # The diagnosis changed in icc 8.0:
4156 # icc: Command line remark: option '-MP' not supported
4157 if (grep 'ignoring option' conftest.err ||
4158 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4159 am_cv_CC_dependencies_compiler_type=$depmode
4160 break
4161 fi
4162 fi
4163 done
4164
4165 cd ..
4166 rm -rf conftest.dir
4167 else
4168 am_cv_CC_dependencies_compiler_type=none
4169 fi
4170
4171 fi
4172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4173 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4175
4176 if
4177 test "x$enable_dependency_tracking" != xno \
4178 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4179 am__fastdepCC_TRUE=
4180 am__fastdepCC_FALSE='#'
4181 else
4182 am__fastdepCC_TRUE='#'
4183 am__fastdepCC_FALSE=
4184 fi
4185
4186
4187
4188 ac_ext=c
4189 ac_cpp='$CPP $CPPFLAGS'
4190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4194 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4195 # On Suns, sometimes $CPP names a directory.
4196 if test -n "$CPP" && test -d "$CPP"; then
4197 CPP=
4198 fi
4199 if test -z "$CPP"; then
4200 if ${ac_cv_prog_CPP+:} false; then :
4201 $as_echo_n "(cached) " >&6
4202 else
4203 # Double quotes because CPP needs to be expanded
4204 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4205 do
4206 ac_preproc_ok=false
4207 for ac_c_preproc_warn_flag in '' yes
4208 do
4209 # Use a header file that comes with gcc, so configuring glibc
4210 # with a fresh cross-compiler works.
4211 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4212 # <limits.h> exists even on freestanding compilers.
4213 # On the NeXT, cc -E runs the code through the compiler's parser,
4214 # not just through cpp. "Syntax error" is here to catch this case.
4215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4216 /* end confdefs.h. */
4217 #ifdef __STDC__
4218 # include <limits.h>
4219 #else
4220 # include <assert.h>
4221 #endif
4222 Syntax error
4223 _ACEOF
4224 if ac_fn_c_try_cpp "$LINENO"; then :
4225
4226 else
4227 # Broken: fails on valid input.
4228 continue
4229 fi
4230 rm -f conftest.err conftest.i conftest.$ac_ext
4231
4232 # OK, works on sane cases. Now check whether nonexistent headers
4233 # can be detected and how.
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <ac_nonexistent.h>
4237 _ACEOF
4238 if ac_fn_c_try_cpp "$LINENO"; then :
4239 # Broken: success on invalid input.
4240 continue
4241 else
4242 # Passes both tests.
4243 ac_preproc_ok=:
4244 break
4245 fi
4246 rm -f conftest.err conftest.i conftest.$ac_ext
4247
4248 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.i conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then :
4252 break
4253 fi
4254
4255 done
4256 ac_cv_prog_CPP=$CPP
4257
4258 fi
4259 CPP=$ac_cv_prog_CPP
4260 else
4261 ac_cv_prog_CPP=$CPP
4262 fi
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4264 $as_echo "$CPP" >&6; }
4265 ac_preproc_ok=false
4266 for ac_c_preproc_warn_flag in '' yes
4267 do
4268 # Use a header file that comes with gcc, so configuring glibc
4269 # with a fresh cross-compiler works.
4270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4271 # <limits.h> exists even on freestanding compilers.
4272 # On the NeXT, cc -E runs the code through the compiler's parser,
4273 # not just through cpp. "Syntax error" is here to catch this case.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #ifdef __STDC__
4277 # include <limits.h>
4278 #else
4279 # include <assert.h>
4280 #endif
4281 Syntax error
4282 _ACEOF
4283 if ac_fn_c_try_cpp "$LINENO"; then :
4284
4285 else
4286 # Broken: fails on valid input.
4287 continue
4288 fi
4289 rm -f conftest.err conftest.i conftest.$ac_ext
4290
4291 # OK, works on sane cases. Now check whether nonexistent headers
4292 # can be detected and how.
4293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4294 /* end confdefs.h. */
4295 #include <ac_nonexistent.h>
4296 _ACEOF
4297 if ac_fn_c_try_cpp "$LINENO"; then :
4298 # Broken: success on invalid input.
4299 continue
4300 else
4301 # Passes both tests.
4302 ac_preproc_ok=:
4303 break
4304 fi
4305 rm -f conftest.err conftest.i conftest.$ac_ext
4306
4307 done
4308 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4309 rm -f conftest.i conftest.err conftest.$ac_ext
4310 if $ac_preproc_ok; then :
4311
4312 else
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4316 See \`config.log' for more details" "$LINENO" 5; }
4317 fi
4318
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4324
4325
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4327 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4328 if ${ac_cv_path_GREP+:} false; then :
4329 $as_echo_n "(cached) " >&6
4330 else
4331 if test -z "$GREP"; then
4332 ac_path_GREP_found=false
4333 # Loop through the user's path and test for each of PROGNAME-LIST
4334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4335 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4336 do
4337 IFS=$as_save_IFS
4338 test -z "$as_dir" && as_dir=.
4339 for ac_prog in grep ggrep; do
4340 for ac_exec_ext in '' $ac_executable_extensions; do
4341 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4342 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4343 # Check for GNU ac_path_GREP and select it if it is found.
4344 # Check for GNU $ac_path_GREP
4345 case `"$ac_path_GREP" --version 2>&1` in
4346 *GNU*)
4347 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4348 *)
4349 ac_count=0
4350 $as_echo_n 0123456789 >"conftest.in"
4351 while :
4352 do
4353 cat "conftest.in" "conftest.in" >"conftest.tmp"
4354 mv "conftest.tmp" "conftest.in"
4355 cp "conftest.in" "conftest.nl"
4356 $as_echo 'GREP' >> "conftest.nl"
4357 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4358 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4359 as_fn_arith $ac_count + 1 && ac_count=$as_val
4360 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4361 # Best one so far, save it but keep looking for a better one
4362 ac_cv_path_GREP="$ac_path_GREP"
4363 ac_path_GREP_max=$ac_count
4364 fi
4365 # 10*(2^10) chars as input seems more than enough
4366 test $ac_count -gt 10 && break
4367 done
4368 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4369 esac
4370
4371 $ac_path_GREP_found && break 3
4372 done
4373 done
4374 done
4375 IFS=$as_save_IFS
4376 if test -z "$ac_cv_path_GREP"; then
4377 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4378 fi
4379 else
4380 ac_cv_path_GREP=$GREP
4381 fi
4382
4383 fi
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4385 $as_echo "$ac_cv_path_GREP" >&6; }
4386 GREP="$ac_cv_path_GREP"
4387
4388
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4390 $as_echo_n "checking for egrep... " >&6; }
4391 if ${ac_cv_path_EGREP+:} false; then :
4392 $as_echo_n "(cached) " >&6
4393 else
4394 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4395 then ac_cv_path_EGREP="$GREP -E"
4396 else
4397 if test -z "$EGREP"; then
4398 ac_path_EGREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in egrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4409 # Check for GNU ac_path_EGREP and select it if it is found.
4410 # Check for GNU $ac_path_EGREP
4411 case `"$ac_path_EGREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4414 *)
4415 ac_count=0
4416 $as_echo_n 0123456789 >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 $as_echo 'EGREP' >> "conftest.nl"
4423 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 as_fn_arith $ac_count + 1 && ac_count=$as_val
4426 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_EGREP="$ac_path_EGREP"
4429 ac_path_EGREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437 $ac_path_EGREP_found && break 3
4438 done
4439 done
4440 done
4441 IFS=$as_save_IFS
4442 if test -z "$ac_cv_path_EGREP"; then
4443 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4444 fi
4445 else
4446 ac_cv_path_EGREP=$EGREP
4447 fi
4448
4449 fi
4450 fi
4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4452 $as_echo "$ac_cv_path_EGREP" >&6; }
4453 EGREP="$ac_cv_path_EGREP"
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4457 $as_echo_n "checking for ANSI C header files... " >&6; }
4458 if ${ac_cv_header_stdc+:} false; then :
4459 $as_echo_n "(cached) " >&6
4460 else
4461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4462 /* end confdefs.h. */
4463 #include <stdlib.h>
4464 #include <stdarg.h>
4465 #include <string.h>
4466 #include <float.h>
4467
4468 int
4469 main ()
4470 {
4471
4472 ;
4473 return 0;
4474 }
4475 _ACEOF
4476 if ac_fn_c_try_compile "$LINENO"; then :
4477 ac_cv_header_stdc=yes
4478 else
4479 ac_cv_header_stdc=no
4480 fi
4481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4482
4483 if test $ac_cv_header_stdc = yes; then
4484 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #include <string.h>
4488
4489 _ACEOF
4490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4491 $EGREP "memchr" >/dev/null 2>&1; then :
4492
4493 else
4494 ac_cv_header_stdc=no
4495 fi
4496 rm -f conftest*
4497
4498 fi
4499
4500 if test $ac_cv_header_stdc = yes; then
4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503 /* end confdefs.h. */
4504 #include <stdlib.h>
4505
4506 _ACEOF
4507 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4508 $EGREP "free" >/dev/null 2>&1; then :
4509
4510 else
4511 ac_cv_header_stdc=no
4512 fi
4513 rm -f conftest*
4514
4515 fi
4516
4517 if test $ac_cv_header_stdc = yes; then
4518 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4519 if test "$cross_compiling" = yes; then :
4520 :
4521 else
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4524 #include <ctype.h>
4525 #include <stdlib.h>
4526 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4528 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4529 #else
4530 # define ISLOWER(c) \
4531 (('a' <= (c) && (c) <= 'i') \
4532 || ('j' <= (c) && (c) <= 'r') \
4533 || ('s' <= (c) && (c) <= 'z'))
4534 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4535 #endif
4536
4537 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4538 int
4539 main ()
4540 {
4541 int i;
4542 for (i = 0; i < 256; i++)
4543 if (XOR (islower (i), ISLOWER (i))
4544 || toupper (i) != TOUPPER (i))
4545 return 2;
4546 return 0;
4547 }
4548 _ACEOF
4549 if ac_fn_c_try_run "$LINENO"; then :
4550
4551 else
4552 ac_cv_header_stdc=no
4553 fi
4554 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 conftest.$ac_objext conftest.beam conftest.$ac_ext
4556 fi
4557
4558 fi
4559 fi
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 $as_echo "$ac_cv_header_stdc" >&6; }
4562 if test $ac_cv_header_stdc = yes; then
4563
4564 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4565
4566 fi
4567
4568 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4569 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4570 inttypes.h stdint.h unistd.h
4571 do :
4572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4573 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4574 "
4575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4576 cat >>confdefs.h <<_ACEOF
4577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4578 _ACEOF
4579
4580 fi
4581
4582 done
4583
4584
4585
4586 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4587 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4588 MINIX=yes
4589 else
4590 MINIX=
4591 fi
4592
4593
4594 if test "$MINIX" = yes; then
4595
4596 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4597
4598
4599 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4600
4601
4602 $as_echo "#define _MINIX 1" >>confdefs.h
4603
4604 fi
4605
4606
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4608 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4609 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h. */
4614
4615 # define __EXTENSIONS__ 1
4616 $ac_includes_default
4617 int
4618 main ()
4619 {
4620
4621 ;
4622 return 0;
4623 }
4624 _ACEOF
4625 if ac_fn_c_try_compile "$LINENO"; then :
4626 ac_cv_safe_to_define___extensions__=yes
4627 else
4628 ac_cv_safe_to_define___extensions__=no
4629 fi
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 fi
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4633 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4634 test $ac_cv_safe_to_define___extensions__ = yes &&
4635 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4636
4637 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4638
4639 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4640
4641 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4642
4643 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4644
4645
4646
4647 # Initialize libtool
4648 case `pwd` in
4649 *\ * | *\ *)
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4651 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4652 esac
4653
4654
4655
4656 macro_version='2.4.2'
4657 macro_revision='1.3337'
4658
4659
4660
4661
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671 ltmain="$ac_aux_dir/ltmain.sh"
4672
4673 # Make sure we can run config.sub.
4674 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4675 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4678 $as_echo_n "checking build system type... " >&6; }
4679 if ${ac_cv_build+:} false; then :
4680 $as_echo_n "(cached) " >&6
4681 else
4682 ac_build_alias=$build_alias
4683 test "x$ac_build_alias" = x &&
4684 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4685 test "x$ac_build_alias" = x &&
4686 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4688 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4689
4690 fi
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692 $as_echo "$ac_cv_build" >&6; }
4693 case $ac_cv_build in
4694 *-*-*) ;;
4695 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4696 esac
4697 build=$ac_cv_build
4698 ac_save_IFS=$IFS; IFS='-'
4699 set x $ac_cv_build
4700 shift
4701 build_cpu=$1
4702 build_vendor=$2
4703 shift; shift
4704 # Remember, the first character of IFS is used to create $*,
4705 # except with old shells:
4706 build_os=$*
4707 IFS=$ac_save_IFS
4708 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4709
4710
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712 $as_echo_n "checking host system type... " >&6; }
4713 if ${ac_cv_host+:} false; then :
4714 $as_echo_n "(cached) " >&6
4715 else
4716 if test "x$host_alias" = x; then
4717 ac_cv_host=$ac_cv_build
4718 else
4719 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4720 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4721 fi
4722
4723 fi
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4725 $as_echo "$ac_cv_host" >&6; }
4726 case $ac_cv_host in
4727 *-*-*) ;;
4728 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4729 esac
4730 host=$ac_cv_host
4731 ac_save_IFS=$IFS; IFS='-'
4732 set x $ac_cv_host
4733 shift
4734 host_cpu=$1
4735 host_vendor=$2
4736 shift; shift
4737 # Remember, the first character of IFS is used to create $*,
4738 # except with old shells:
4739 host_os=$*
4740 IFS=$ac_save_IFS
4741 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4742
4743
4744 # Backslashify metacharacters that are still active within
4745 # double-quoted strings.
4746 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4747
4748 # Same as above, but do not quote variable references.
4749 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4750
4751 # Sed substitution to delay expansion of an escaped shell variable in a
4752 # double_quote_subst'ed string.
4753 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4754
4755 # Sed substitution to delay expansion of an escaped single quote.
4756 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4757
4758 # Sed substitution to avoid accidental globbing in evaled expressions
4759 no_glob_subst='s/\*/\\\*/g'
4760
4761 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4762 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4763 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4764
4765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4766 $as_echo_n "checking how to print strings... " >&6; }
4767 # Test print first, because it will be a builtin if present.
4768 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4769 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4770 ECHO='print -r --'
4771 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4772 ECHO='printf %s\n'
4773 else
4774 # Use this function as a fallback that always works.
4775 func_fallback_echo ()
4776 {
4777 eval 'cat <<_LTECHO_EOF
4778 $1
4779 _LTECHO_EOF'
4780 }
4781 ECHO='func_fallback_echo'
4782 fi
4783
4784 # func_echo_all arg...
4785 # Invoke $ECHO with all args, space-separated.
4786 func_echo_all ()
4787 {
4788 $ECHO ""
4789 }
4790
4791 case "$ECHO" in
4792 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4793 $as_echo "printf" >&6; } ;;
4794 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4795 $as_echo "print -r" >&6; } ;;
4796 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4797 $as_echo "cat" >&6; } ;;
4798 esac
4799
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809
4810
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4814 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4815 if ${ac_cv_path_SED+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4819 for ac_i in 1 2 3 4 5 6 7; do
4820 ac_script="$ac_script$as_nl$ac_script"
4821 done
4822 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4823 { ac_script=; unset ac_script;}
4824 if test -z "$SED"; then
4825 ac_path_SED_found=false
4826 # Loop through the user's path and test for each of PROGNAME-LIST
4827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4828 for as_dir in $PATH
4829 do
4830 IFS=$as_save_IFS
4831 test -z "$as_dir" && as_dir=.
4832 for ac_prog in sed gsed; do
4833 for ac_exec_ext in '' $ac_executable_extensions; do
4834 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4835 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4836 # Check for GNU ac_path_SED and select it if it is found.
4837 # Check for GNU $ac_path_SED
4838 case `"$ac_path_SED" --version 2>&1` in
4839 *GNU*)
4840 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4841 *)
4842 ac_count=0
4843 $as_echo_n 0123456789 >"conftest.in"
4844 while :
4845 do
4846 cat "conftest.in" "conftest.in" >"conftest.tmp"
4847 mv "conftest.tmp" "conftest.in"
4848 cp "conftest.in" "conftest.nl"
4849 $as_echo '' >> "conftest.nl"
4850 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4851 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4852 as_fn_arith $ac_count + 1 && ac_count=$as_val
4853 if test $ac_count -gt ${ac_path_SED_max-0}; then
4854 # Best one so far, save it but keep looking for a better one
4855 ac_cv_path_SED="$ac_path_SED"
4856 ac_path_SED_max=$ac_count
4857 fi
4858 # 10*(2^10) chars as input seems more than enough
4859 test $ac_count -gt 10 && break
4860 done
4861 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4862 esac
4863
4864 $ac_path_SED_found && break 3
4865 done
4866 done
4867 done
4868 IFS=$as_save_IFS
4869 if test -z "$ac_cv_path_SED"; then
4870 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4871 fi
4872 else
4873 ac_cv_path_SED=$SED
4874 fi
4875
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4878 $as_echo "$ac_cv_path_SED" >&6; }
4879 SED="$ac_cv_path_SED"
4880 rm -f conftest.sed
4881
4882 test -z "$SED" && SED=sed
4883 Xsed="$SED -e 1s/^X//"
4884
4885
4886
4887
4888
4889
4890
4891
4892
4893
4894
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4896 $as_echo_n "checking for fgrep... " >&6; }
4897 if ${ac_cv_path_FGREP+:} false; then :
4898 $as_echo_n "(cached) " >&6
4899 else
4900 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4901 then ac_cv_path_FGREP="$GREP -F"
4902 else
4903 if test -z "$FGREP"; then
4904 ac_path_FGREP_found=false
4905 # Loop through the user's path and test for each of PROGNAME-LIST
4906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4907 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4908 do
4909 IFS=$as_save_IFS
4910 test -z "$as_dir" && as_dir=.
4911 for ac_prog in fgrep; do
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4914 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4915 # Check for GNU ac_path_FGREP and select it if it is found.
4916 # Check for GNU $ac_path_FGREP
4917 case `"$ac_path_FGREP" --version 2>&1` in
4918 *GNU*)
4919 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4920 *)
4921 ac_count=0
4922 $as_echo_n 0123456789 >"conftest.in"
4923 while :
4924 do
4925 cat "conftest.in" "conftest.in" >"conftest.tmp"
4926 mv "conftest.tmp" "conftest.in"
4927 cp "conftest.in" "conftest.nl"
4928 $as_echo 'FGREP' >> "conftest.nl"
4929 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4930 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4931 as_fn_arith $ac_count + 1 && ac_count=$as_val
4932 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4933 # Best one so far, save it but keep looking for a better one
4934 ac_cv_path_FGREP="$ac_path_FGREP"
4935 ac_path_FGREP_max=$ac_count
4936 fi
4937 # 10*(2^10) chars as input seems more than enough
4938 test $ac_count -gt 10 && break
4939 done
4940 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4941 esac
4942
4943 $ac_path_FGREP_found && break 3
4944 done
4945 done
4946 done
4947 IFS=$as_save_IFS
4948 if test -z "$ac_cv_path_FGREP"; then
4949 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4950 fi
4951 else
4952 ac_cv_path_FGREP=$FGREP
4953 fi
4954
4955 fi
4956 fi
4957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4958 $as_echo "$ac_cv_path_FGREP" >&6; }
4959 FGREP="$ac_cv_path_FGREP"
4960
4961
4962 test -z "$GREP" && GREP=grep
4963
4964
4965
4966
4967
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 # Check whether --with-gnu-ld was given.
4983 if test "${with_gnu_ld+set}" = set; then :
4984 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4985 else
4986 with_gnu_ld=no
4987 fi
4988
4989 ac_prog=ld
4990 if test "$GCC" = yes; then
4991 # Check if gcc -print-prog-name=ld gives a path.
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4993 $as_echo_n "checking for ld used by $CC... " >&6; }
4994 case $host in
4995 *-*-mingw*)
4996 # gcc leaves a trailing carriage return which upsets mingw
4997 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4998 *)
4999 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5000 esac
5001 case $ac_prog in
5002 # Accept absolute paths.
5003 [\\/]* | ?:[\\/]*)
5004 re_direlt='/[^/][^/]*/\.\./'
5005 # Canonicalize the pathname of ld
5006 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5007 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5008 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5009 done
5010 test -z "$LD" && LD="$ac_prog"
5011 ;;
5012 "")
5013 # If it fails, then pretend we aren't using GCC.
5014 ac_prog=ld
5015 ;;
5016 *)
5017 # If it is relative, then search for the first ld in PATH.
5018 with_gnu_ld=unknown
5019 ;;
5020 esac
5021 elif test "$with_gnu_ld" = yes; then
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5023 $as_echo_n "checking for GNU ld... " >&6; }
5024 else
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5026 $as_echo_n "checking for non-GNU ld... " >&6; }
5027 fi
5028 if ${lt_cv_path_LD+:} false; then :
5029 $as_echo_n "(cached) " >&6
5030 else
5031 if test -z "$LD"; then
5032 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5033 for ac_dir in $PATH; do
5034 IFS="$lt_save_ifs"
5035 test -z "$ac_dir" && ac_dir=.
5036 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5037 lt_cv_path_LD="$ac_dir/$ac_prog"
5038 # Check to see if the program is GNU ld. I'd rather use --version,
5039 # but apparently some variants of GNU ld only accept -v.
5040 # Break only if it was the GNU/non-GNU ld that we prefer.
5041 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5042 *GNU* | *'with BFD'*)
5043 test "$with_gnu_ld" != no && break
5044 ;;
5045 *)
5046 test "$with_gnu_ld" != yes && break
5047 ;;
5048 esac
5049 fi
5050 done
5051 IFS="$lt_save_ifs"
5052 else
5053 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5054 fi
5055 fi
5056
5057 LD="$lt_cv_path_LD"
5058 if test -n "$LD"; then
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5060 $as_echo "$LD" >&6; }
5061 else
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5063 $as_echo "no" >&6; }
5064 fi
5065 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5067 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5068 if ${lt_cv_prog_gnu_ld+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5072 case `$LD -v 2>&1 </dev/null` in
5073 *GNU* | *'with BFD'*)
5074 lt_cv_prog_gnu_ld=yes
5075 ;;
5076 *)
5077 lt_cv_prog_gnu_ld=no
5078 ;;
5079 esac
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5082 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5083 with_gnu_ld=$lt_cv_prog_gnu_ld
5084
5085
5086
5087
5088
5089
5090
5091
5092
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5094 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5095 if ${lt_cv_path_NM+:} false; then :
5096 $as_echo_n "(cached) " >&6
5097 else
5098 if test -n "$NM"; then
5099 # Let the user override the test.
5100 lt_cv_path_NM="$NM"
5101 else
5102 lt_nm_to_check="${ac_tool_prefix}nm"
5103 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5104 lt_nm_to_check="$lt_nm_to_check nm"
5105 fi
5106 for lt_tmp_nm in $lt_nm_to_check; do
5107 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5108 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5109 IFS="$lt_save_ifs"
5110 test -z "$ac_dir" && ac_dir=.
5111 tmp_nm="$ac_dir/$lt_tmp_nm"
5112 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5113 # Check to see if the nm accepts a BSD-compat flag.
5114 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5115 # nm: unknown option "B" ignored
5116 # Tru64's nm complains that /dev/null is an invalid object file
5117 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5118 */dev/null* | *'Invalid file or object type'*)
5119 lt_cv_path_NM="$tmp_nm -B"
5120 break
5121 ;;
5122 *)
5123 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5124 */dev/null*)
5125 lt_cv_path_NM="$tmp_nm -p"
5126 break
5127 ;;
5128 *)
5129 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5130 continue # so that we can try to find one that supports BSD flags
5131 ;;
5132 esac
5133 ;;
5134 esac
5135 fi
5136 done
5137 IFS="$lt_save_ifs"
5138 done
5139 : ${lt_cv_path_NM=no}
5140 fi
5141 fi
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5143 $as_echo "$lt_cv_path_NM" >&6; }
5144 if test "$lt_cv_path_NM" != "no"; then
5145 NM="$lt_cv_path_NM"
5146 else
5147 # Didn't find any BSD compatible name lister, look for dumpbin.
5148 if test -n "$DUMPBIN"; then :
5149 # Let the user override the test.
5150 else
5151 if test -n "$ac_tool_prefix"; then
5152 for ac_prog in dumpbin "link -dump"
5153 do
5154 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5155 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5157 $as_echo_n "checking for $ac_word... " >&6; }
5158 if ${ac_cv_prog_DUMPBIN+:} false; then :
5159 $as_echo_n "(cached) " >&6
5160 else
5161 if test -n "$DUMPBIN"; then
5162 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5163 else
5164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5165 for as_dir in $PATH
5166 do
5167 IFS=$as_save_IFS
5168 test -z "$as_dir" && as_dir=.
5169 for ac_exec_ext in '' $ac_executable_extensions; do
5170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5171 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5173 break 2
5174 fi
5175 done
5176 done
5177 IFS=$as_save_IFS
5178
5179 fi
5180 fi
5181 DUMPBIN=$ac_cv_prog_DUMPBIN
5182 if test -n "$DUMPBIN"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5184 $as_echo "$DUMPBIN" >&6; }
5185 else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5187 $as_echo "no" >&6; }
5188 fi
5189
5190
5191 test -n "$DUMPBIN" && break
5192 done
5193 fi
5194 if test -z "$DUMPBIN"; then
5195 ac_ct_DUMPBIN=$DUMPBIN
5196 for ac_prog in dumpbin "link -dump"
5197 do
5198 # Extract the first word of "$ac_prog", so it can be a program name with args.
5199 set dummy $ac_prog; ac_word=$2
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5201 $as_echo_n "checking for $ac_word... " >&6; }
5202 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5203 $as_echo_n "(cached) " >&6
5204 else
5205 if test -n "$ac_ct_DUMPBIN"; then
5206 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5207 else
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_exec_ext in '' $ac_executable_extensions; do
5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5215 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5217 break 2
5218 fi
5219 done
5220 done
5221 IFS=$as_save_IFS
5222
5223 fi
5224 fi
5225 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5226 if test -n "$ac_ct_DUMPBIN"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5228 $as_echo "$ac_ct_DUMPBIN" >&6; }
5229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5231 $as_echo "no" >&6; }
5232 fi
5233
5234
5235 test -n "$ac_ct_DUMPBIN" && break
5236 done
5237
5238 if test "x$ac_ct_DUMPBIN" = x; then
5239 DUMPBIN=":"
5240 else
5241 case $cross_compiling:$ac_tool_warned in
5242 yes:)
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5244 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5245 ac_tool_warned=yes ;;
5246 esac
5247 DUMPBIN=$ac_ct_DUMPBIN
5248 fi
5249 fi
5250
5251 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5252 *COFF*)
5253 DUMPBIN="$DUMPBIN -symbols"
5254 ;;
5255 *)
5256 DUMPBIN=:
5257 ;;
5258 esac
5259 fi
5260
5261 if test "$DUMPBIN" != ":"; then
5262 NM="$DUMPBIN"
5263 fi
5264 fi
5265 test -z "$NM" && NM=nm
5266
5267
5268
5269
5270
5271
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5273 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5274 if ${lt_cv_nm_interface+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 lt_cv_nm_interface="BSD nm"
5278 echo "int some_variable = 0;" > conftest.$ac_ext
5279 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5280 (eval "$ac_compile" 2>conftest.err)
5281 cat conftest.err >&5
5282 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5283 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5284 cat conftest.err >&5
5285 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5286 cat conftest.out >&5
5287 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5288 lt_cv_nm_interface="MS dumpbin"
5289 fi
5290 rm -f conftest*
5291 fi
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5293 $as_echo "$lt_cv_nm_interface" >&6; }
5294
5295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5296 $as_echo_n "checking whether ln -s works... " >&6; }
5297 LN_S=$as_ln_s
5298 if test "$LN_S" = "ln -s"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5300 $as_echo "yes" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5303 $as_echo "no, using $LN_S" >&6; }
5304 fi
5305
5306 # find the maximum length of command line arguments
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5308 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5309 if ${lt_cv_sys_max_cmd_len+:} false; then :
5310 $as_echo_n "(cached) " >&6
5311 else
5312 i=0
5313 teststring="ABCD"
5314
5315 case $build_os in
5316 msdosdjgpp*)
5317 # On DJGPP, this test can blow up pretty badly due to problems in libc
5318 # (any single argument exceeding 2000 bytes causes a buffer overrun
5319 # during glob expansion). Even if it were fixed, the result of this
5320 # check would be larger than it should be.
5321 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5322 ;;
5323
5324 gnu*)
5325 # Under GNU Hurd, this test is not required because there is
5326 # no limit to the length of command line arguments.
5327 # Libtool will interpret -1 as no limit whatsoever
5328 lt_cv_sys_max_cmd_len=-1;
5329 ;;
5330
5331 cygwin* | mingw* | cegcc*)
5332 # On Win9x/ME, this test blows up -- it succeeds, but takes
5333 # about 5 minutes as the teststring grows exponentially.
5334 # Worse, since 9x/ME are not pre-emptively multitasking,
5335 # you end up with a "frozen" computer, even though with patience
5336 # the test eventually succeeds (with a max line length of 256k).
5337 # Instead, let's just punt: use the minimum linelength reported by
5338 # all of the supported platforms: 8192 (on NT/2K/XP).
5339 lt_cv_sys_max_cmd_len=8192;
5340 ;;
5341
5342 mint*)
5343 # On MiNT this can take a long time and run out of memory.
5344 lt_cv_sys_max_cmd_len=8192;
5345 ;;
5346
5347 amigaos*)
5348 # On AmigaOS with pdksh, this test takes hours, literally.
5349 # So we just punt and use a minimum line length of 8192.
5350 lt_cv_sys_max_cmd_len=8192;
5351 ;;
5352
5353 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5354 # This has been around since 386BSD, at least. Likely further.
5355 if test -x /sbin/sysctl; then
5356 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5357 elif test -x /usr/sbin/sysctl; then
5358 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5359 else
5360 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5361 fi
5362 # And add a safety zone
5363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5364 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5365 ;;
5366
5367 interix*)
5368 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5369 lt_cv_sys_max_cmd_len=196608
5370 ;;
5371
5372 os2*)
5373 # The test takes a long time on OS/2.
5374 lt_cv_sys_max_cmd_len=8192
5375 ;;
5376
5377 osf*)
5378 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5379 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5380 # nice to cause kernel panics so lets avoid the loop below.
5381 # First set a reasonable default.
5382 lt_cv_sys_max_cmd_len=16384
5383 #
5384 if test -x /sbin/sysconfig; then
5385 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5386 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5387 esac
5388 fi
5389 ;;
5390 sco3.2v5*)
5391 lt_cv_sys_max_cmd_len=102400
5392 ;;
5393 sysv5* | sco5v6* | sysv4.2uw2*)
5394 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5395 if test -n "$kargmax"; then
5396 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5397 else
5398 lt_cv_sys_max_cmd_len=32768
5399 fi
5400 ;;
5401 *)
5402 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5403 if test -n "$lt_cv_sys_max_cmd_len"; then
5404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5405 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5406 else
5407 # Make teststring a little bigger before we do anything with it.
5408 # a 1K string should be a reasonable start.
5409 for i in 1 2 3 4 5 6 7 8 ; do
5410 teststring=$teststring$teststring
5411 done
5412 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5413 # If test is not a shell built-in, we'll probably end up computing a
5414 # maximum length that is only half of the actual maximum length, but
5415 # we can't tell.
5416 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5417 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5418 test $i != 17 # 1/2 MB should be enough
5419 do
5420 i=`expr $i + 1`
5421 teststring=$teststring$teststring
5422 done
5423 # Only check the string length outside the loop.
5424 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5425 teststring=
5426 # Add a significant safety factor because C++ compilers can tack on
5427 # massive amounts of additional arguments before passing them to the
5428 # linker. It appears as though 1/2 is a usable value.
5429 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5430 fi
5431 ;;
5432 esac
5433
5434 fi
5435
5436 if test -n $lt_cv_sys_max_cmd_len ; then
5437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5438 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5439 else
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5441 $as_echo "none" >&6; }
5442 fi
5443 max_cmd_len=$lt_cv_sys_max_cmd_len
5444
5445
5446
5447
5448
5449
5450 : ${CP="cp -f"}
5451 : ${MV="mv -f"}
5452 : ${RM="rm -f"}
5453
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5455 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5456 # Try some XSI features
5457 xsi_shell=no
5458 ( _lt_dummy="a/b/c"
5459 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5460 = c,a/b,b/c, \
5461 && eval 'test $(( 1 + 1 )) -eq 2 \
5462 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5463 && xsi_shell=yes
5464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5465 $as_echo "$xsi_shell" >&6; }
5466
5467
5468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5469 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5470 lt_shell_append=no
5471 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5472 >/dev/null 2>&1 \
5473 && lt_shell_append=yes
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5475 $as_echo "$lt_shell_append" >&6; }
5476
5477
5478 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5479 lt_unset=unset
5480 else
5481 lt_unset=false
5482 fi
5483
5484
5485
5486
5487
5488 # test EBCDIC or ASCII
5489 case `echo X|tr X '\101'` in
5490 A) # ASCII based system
5491 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5492 lt_SP2NL='tr \040 \012'
5493 lt_NL2SP='tr \015\012 \040\040'
5494 ;;
5495 *) # EBCDIC based system
5496 lt_SP2NL='tr \100 \n'
5497 lt_NL2SP='tr \r\n \100\100'
5498 ;;
5499 esac
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5510 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5511 if ${lt_cv_to_host_file_cmd+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 case $host in
5515 *-*-mingw* )
5516 case $build in
5517 *-*-mingw* ) # actually msys
5518 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5519 ;;
5520 *-*-cygwin* )
5521 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5522 ;;
5523 * ) # otherwise, assume *nix
5524 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5525 ;;
5526 esac
5527 ;;
5528 *-*-cygwin* )
5529 case $build in
5530 *-*-mingw* ) # actually msys
5531 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5532 ;;
5533 *-*-cygwin* )
5534 lt_cv_to_host_file_cmd=func_convert_file_noop
5535 ;;
5536 * ) # otherwise, assume *nix
5537 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5538 ;;
5539 esac
5540 ;;
5541 * ) # unhandled hosts (and "normal" native builds)
5542 lt_cv_to_host_file_cmd=func_convert_file_noop
5543 ;;
5544 esac
5545
5546 fi
5547
5548 to_host_file_cmd=$lt_cv_to_host_file_cmd
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5550 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5551
5552
5553
5554
5555
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5557 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5558 if ${lt_cv_to_tool_file_cmd+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560 else
5561 #assume ordinary cross tools, or native build.
5562 lt_cv_to_tool_file_cmd=func_convert_file_noop
5563 case $host in
5564 *-*-mingw* )
5565 case $build in
5566 *-*-mingw* ) # actually msys
5567 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5568 ;;
5569 esac
5570 ;;
5571 esac
5572
5573 fi
5574
5575 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5577 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5578
5579
5580
5581
5582
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5584 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5585 if ${lt_cv_ld_reload_flag+:} false; then :
5586 $as_echo_n "(cached) " >&6
5587 else
5588 lt_cv_ld_reload_flag='-r'
5589 fi
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5591 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5592 reload_flag=$lt_cv_ld_reload_flag
5593 case $reload_flag in
5594 "" | " "*) ;;
5595 *) reload_flag=" $reload_flag" ;;
5596 esac
5597 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5598 case $host_os in
5599 cygwin* | mingw* | pw32* | cegcc*)
5600 if test "$GCC" != yes; then
5601 reload_cmds=false
5602 fi
5603 ;;
5604 darwin*)
5605 if test "$GCC" = yes; then
5606 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5607 else
5608 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5609 fi
5610 ;;
5611 esac
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 if test -n "$ac_tool_prefix"; then
5622 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5623 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5625 $as_echo_n "checking for $ac_word... " >&6; }
5626 if ${ac_cv_prog_OBJDUMP+:} false; then :
5627 $as_echo_n "(cached) " >&6
5628 else
5629 if test -n "$OBJDUMP"; then
5630 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5631 else
5632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5633 for as_dir in $PATH
5634 do
5635 IFS=$as_save_IFS
5636 test -z "$as_dir" && as_dir=.
5637 for ac_exec_ext in '' $ac_executable_extensions; do
5638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5639 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5641 break 2
5642 fi
5643 done
5644 done
5645 IFS=$as_save_IFS
5646
5647 fi
5648 fi
5649 OBJDUMP=$ac_cv_prog_OBJDUMP
5650 if test -n "$OBJDUMP"; then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5652 $as_echo "$OBJDUMP" >&6; }
5653 else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5655 $as_echo "no" >&6; }
5656 fi
5657
5658
5659 fi
5660 if test -z "$ac_cv_prog_OBJDUMP"; then
5661 ac_ct_OBJDUMP=$OBJDUMP
5662 # Extract the first word of "objdump", so it can be a program name with args.
5663 set dummy objdump; ac_word=$2
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5665 $as_echo_n "checking for $ac_word... " >&6; }
5666 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$ac_ct_OBJDUMP"; then
5670 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5671 else
5672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5673 for as_dir in $PATH
5674 do
5675 IFS=$as_save_IFS
5676 test -z "$as_dir" && as_dir=.
5677 for ac_exec_ext in '' $ac_executable_extensions; do
5678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5679 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 break 2
5682 fi
5683 done
5684 done
5685 IFS=$as_save_IFS
5686
5687 fi
5688 fi
5689 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5690 if test -n "$ac_ct_OBJDUMP"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5692 $as_echo "$ac_ct_OBJDUMP" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698 if test "x$ac_ct_OBJDUMP" = x; then
5699 OBJDUMP="false"
5700 else
5701 case $cross_compiling:$ac_tool_warned in
5702 yes:)
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5704 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5705 ac_tool_warned=yes ;;
5706 esac
5707 OBJDUMP=$ac_ct_OBJDUMP
5708 fi
5709 else
5710 OBJDUMP="$ac_cv_prog_OBJDUMP"
5711 fi
5712
5713 test -z "$OBJDUMP" && OBJDUMP=objdump
5714
5715
5716
5717
5718
5719
5720
5721
5722
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5724 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5725 if ${lt_cv_deplibs_check_method+:} false; then :
5726 $as_echo_n "(cached) " >&6
5727 else
5728 lt_cv_file_magic_cmd='$MAGIC_CMD'
5729 lt_cv_file_magic_test_file=
5730 lt_cv_deplibs_check_method='unknown'
5731 # Need to set the preceding variable on all platforms that support
5732 # interlibrary dependencies.
5733 # 'none' -- dependencies not supported.
5734 # `unknown' -- same as none, but documents that we really don't know.
5735 # 'pass_all' -- all dependencies passed with no checks.
5736 # 'test_compile' -- check by making test program.
5737 # 'file_magic [[regex]]' -- check by looking for files in library path
5738 # which responds to the $file_magic_cmd with a given extended regex.
5739 # If you have `file' or equivalent on your system and you're not sure
5740 # whether `pass_all' will *always* work, you probably want this one.
5741
5742 case $host_os in
5743 aix[4-9]*)
5744 lt_cv_deplibs_check_method=pass_all
5745 ;;
5746
5747 beos*)
5748 lt_cv_deplibs_check_method=pass_all
5749 ;;
5750
5751 bsdi[45]*)
5752 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5753 lt_cv_file_magic_cmd='/usr/bin/file -L'
5754 lt_cv_file_magic_test_file=/shlib/libc.so
5755 ;;
5756
5757 cygwin*)
5758 # func_win32_libid is a shell function defined in ltmain.sh
5759 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5760 lt_cv_file_magic_cmd='func_win32_libid'
5761 ;;
5762
5763 mingw* | pw32*)
5764 # Base MSYS/MinGW do not provide the 'file' command needed by
5765 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5766 # unless we find 'file', for example because we are cross-compiling.
5767 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5768 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5769 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5770 lt_cv_file_magic_cmd='func_win32_libid'
5771 else
5772 # Keep this pattern in sync with the one in func_win32_libid.
5773 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5774 lt_cv_file_magic_cmd='$OBJDUMP -f'
5775 fi
5776 ;;
5777
5778 cegcc*)
5779 # use the weaker test based on 'objdump'. See mingw*.
5780 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5781 lt_cv_file_magic_cmd='$OBJDUMP -f'
5782 ;;
5783
5784 darwin* | rhapsody*)
5785 lt_cv_deplibs_check_method=pass_all
5786 ;;
5787
5788 freebsd* | dragonfly*)
5789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5790 case $host_cpu in
5791 i*86 )
5792 # Not sure whether the presence of OpenBSD here was a mistake.
5793 # Let's accept both of them until this is cleared up.
5794 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5795 lt_cv_file_magic_cmd=/usr/bin/file
5796 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5797 ;;
5798 esac
5799 else
5800 lt_cv_deplibs_check_method=pass_all
5801 fi
5802 ;;
5803
5804 gnu*)
5805 lt_cv_deplibs_check_method=pass_all
5806 ;;
5807
5808 haiku*)
5809 lt_cv_deplibs_check_method=pass_all
5810 ;;
5811
5812 hpux10.20* | hpux11*)
5813 lt_cv_file_magic_cmd=/usr/bin/file
5814 case $host_cpu in
5815 ia64*)
5816 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5817 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5818 ;;
5819 hppa*64*)
5820 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]'
5821 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5822 ;;
5823 *)
5824 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5825 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5826 ;;
5827 esac
5828 ;;
5829
5830 interix[3-9]*)
5831 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5832 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5833 ;;
5834
5835 irix5* | irix6* | nonstopux*)
5836 case $LD in
5837 *-32|*"-32 ") libmagic=32-bit;;
5838 *-n32|*"-n32 ") libmagic=N32;;
5839 *-64|*"-64 ") libmagic=64-bit;;
5840 *) libmagic=never-match;;
5841 esac
5842 lt_cv_deplibs_check_method=pass_all
5843 ;;
5844
5845 # This must be glibc/ELF.
5846 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5847 lt_cv_deplibs_check_method=pass_all
5848 ;;
5849
5850 netbsd*)
5851 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5852 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5853 else
5854 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5855 fi
5856 ;;
5857
5858 newos6*)
5859 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5860 lt_cv_file_magic_cmd=/usr/bin/file
5861 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5862 ;;
5863
5864 *nto* | *qnx*)
5865 lt_cv_deplibs_check_method=pass_all
5866 ;;
5867
5868 openbsd*)
5869 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5870 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5871 else
5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5873 fi
5874 ;;
5875
5876 osf3* | osf4* | osf5*)
5877 lt_cv_deplibs_check_method=pass_all
5878 ;;
5879
5880 rdos*)
5881 lt_cv_deplibs_check_method=pass_all
5882 ;;
5883
5884 solaris*)
5885 lt_cv_deplibs_check_method=pass_all
5886 ;;
5887
5888 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5889 lt_cv_deplibs_check_method=pass_all
5890 ;;
5891
5892 sysv4 | sysv4.3*)
5893 case $host_vendor in
5894 motorola)
5895 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]'
5896 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5897 ;;
5898 ncr)
5899 lt_cv_deplibs_check_method=pass_all
5900 ;;
5901 sequent)
5902 lt_cv_file_magic_cmd='/bin/file'
5903 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5904 ;;
5905 sni)
5906 lt_cv_file_magic_cmd='/bin/file'
5907 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5908 lt_cv_file_magic_test_file=/lib/libc.so
5909 ;;
5910 siemens)
5911 lt_cv_deplibs_check_method=pass_all
5912 ;;
5913 pc)
5914 lt_cv_deplibs_check_method=pass_all
5915 ;;
5916 esac
5917 ;;
5918
5919 tpf*)
5920 lt_cv_deplibs_check_method=pass_all
5921 ;;
5922 esac
5923
5924 fi
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5926 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5927
5928 file_magic_glob=
5929 want_nocaseglob=no
5930 if test "$build" = "$host"; then
5931 case $host_os in
5932 mingw* | pw32*)
5933 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5934 want_nocaseglob=yes
5935 else
5936 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5937 fi
5938 ;;
5939 esac
5940 fi
5941
5942 file_magic_cmd=$lt_cv_file_magic_cmd
5943 deplibs_check_method=$lt_cv_deplibs_check_method
5944 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5945
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967 if test -n "$ac_tool_prefix"; then
5968 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5969 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5971 $as_echo_n "checking for $ac_word... " >&6; }
5972 if ${ac_cv_prog_DLLTOOL+:} false; then :
5973 $as_echo_n "(cached) " >&6
5974 else
5975 if test -n "$DLLTOOL"; then
5976 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5977 else
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979 for as_dir in $PATH
5980 do
5981 IFS=$as_save_IFS
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5987 break 2
5988 fi
5989 done
5990 done
5991 IFS=$as_save_IFS
5992
5993 fi
5994 fi
5995 DLLTOOL=$ac_cv_prog_DLLTOOL
5996 if test -n "$DLLTOOL"; then
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5998 $as_echo "$DLLTOOL" >&6; }
5999 else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6001 $as_echo "no" >&6; }
6002 fi
6003
6004
6005 fi
6006 if test -z "$ac_cv_prog_DLLTOOL"; then
6007 ac_ct_DLLTOOL=$DLLTOOL
6008 # Extract the first word of "dlltool", so it can be a program name with args.
6009 set dummy dlltool; ac_word=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$ac_ct_DLLTOOL"; then
6016 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6017 else
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6019 for as_dir in $PATH
6020 do
6021 IFS=$as_save_IFS
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027 break 2
6028 fi
6029 done
6030 done
6031 IFS=$as_save_IFS
6032
6033 fi
6034 fi
6035 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6036 if test -n "$ac_ct_DLLTOOL"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6038 $as_echo "$ac_ct_DLLTOOL" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044 if test "x$ac_ct_DLLTOOL" = x; then
6045 DLLTOOL="false"
6046 else
6047 case $cross_compiling:$ac_tool_warned in
6048 yes:)
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6051 ac_tool_warned=yes ;;
6052 esac
6053 DLLTOOL=$ac_ct_DLLTOOL
6054 fi
6055 else
6056 DLLTOOL="$ac_cv_prog_DLLTOOL"
6057 fi
6058
6059 test -z "$DLLTOOL" && DLLTOOL=dlltool
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6071 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6072 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 lt_cv_sharedlib_from_linklib_cmd='unknown'
6076
6077 case $host_os in
6078 cygwin* | mingw* | pw32* | cegcc*)
6079 # two different shell functions defined in ltmain.sh
6080 # decide which to use based on capabilities of $DLLTOOL
6081 case `$DLLTOOL --help 2>&1` in
6082 *--identify-strict*)
6083 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6084 ;;
6085 *)
6086 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6087 ;;
6088 esac
6089 ;;
6090 *)
6091 # fallback: assume linklib IS sharedlib
6092 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6093 ;;
6094 esac
6095
6096 fi
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6098 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6099 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6100 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6101
6102
6103
6104
6105
6106
6107
6108 if test -n "$ac_tool_prefix"; then
6109 for ac_prog in ar
6110 do
6111 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6112 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6114 $as_echo_n "checking for $ac_word... " >&6; }
6115 if ${ac_cv_prog_AR+:} false; then :
6116 $as_echo_n "(cached) " >&6
6117 else
6118 if test -n "$AR"; then
6119 ac_cv_prog_AR="$AR" # Let the user override the test.
6120 else
6121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6122 for as_dir in $PATH
6123 do
6124 IFS=$as_save_IFS
6125 test -z "$as_dir" && as_dir=.
6126 for ac_exec_ext in '' $ac_executable_extensions; do
6127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6128 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6130 break 2
6131 fi
6132 done
6133 done
6134 IFS=$as_save_IFS
6135
6136 fi
6137 fi
6138 AR=$ac_cv_prog_AR
6139 if test -n "$AR"; then
6140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6141 $as_echo "$AR" >&6; }
6142 else
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6144 $as_echo "no" >&6; }
6145 fi
6146
6147
6148 test -n "$AR" && break
6149 done
6150 fi
6151 if test -z "$AR"; then
6152 ac_ct_AR=$AR
6153 for ac_prog in ar
6154 do
6155 # Extract the first word of "$ac_prog", so it can be a program name with args.
6156 set dummy $ac_prog; ac_word=$2
6157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6158 $as_echo_n "checking for $ac_word... " >&6; }
6159 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6160 $as_echo_n "(cached) " >&6
6161 else
6162 if test -n "$ac_ct_AR"; then
6163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6164 else
6165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166 for as_dir in $PATH
6167 do
6168 IFS=$as_save_IFS
6169 test -z "$as_dir" && as_dir=.
6170 for ac_exec_ext in '' $ac_executable_extensions; do
6171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172 ac_cv_prog_ac_ct_AR="$ac_prog"
6173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174 break 2
6175 fi
6176 done
6177 done
6178 IFS=$as_save_IFS
6179
6180 fi
6181 fi
6182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6183 if test -n "$ac_ct_AR"; then
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6185 $as_echo "$ac_ct_AR" >&6; }
6186 else
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6188 $as_echo "no" >&6; }
6189 fi
6190
6191
6192 test -n "$ac_ct_AR" && break
6193 done
6194
6195 if test "x$ac_ct_AR" = x; then
6196 AR="false"
6197 else
6198 case $cross_compiling:$ac_tool_warned in
6199 yes:)
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6201 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6202 ac_tool_warned=yes ;;
6203 esac
6204 AR=$ac_ct_AR
6205 fi
6206 fi
6207
6208 : ${AR=ar}
6209 : ${AR_FLAGS=cru}
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6222 $as_echo_n "checking for archiver @FILE support... " >&6; }
6223 if ${lt_cv_ar_at_file+:} false; then :
6224 $as_echo_n "(cached) " >&6
6225 else
6226 lt_cv_ar_at_file=no
6227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6228 /* end confdefs.h. */
6229
6230 int
6231 main ()
6232 {
6233
6234 ;
6235 return 0;
6236 }
6237 _ACEOF
6238 if ac_fn_c_try_compile "$LINENO"; then :
6239 echo conftest.$ac_objext > conftest.lst
6240 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6241 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6242 (eval $lt_ar_try) 2>&5
6243 ac_status=$?
6244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6245 test $ac_status = 0; }
6246 if test "$ac_status" -eq 0; then
6247 # Ensure the archiver fails upon bogus file names.
6248 rm -f conftest.$ac_objext libconftest.a
6249 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6250 (eval $lt_ar_try) 2>&5
6251 ac_status=$?
6252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6253 test $ac_status = 0; }
6254 if test "$ac_status" -ne 0; then
6255 lt_cv_ar_at_file=@
6256 fi
6257 fi
6258 rm -f conftest.* libconftest.a
6259
6260 fi
6261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6262
6263 fi
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6265 $as_echo "$lt_cv_ar_at_file" >&6; }
6266
6267 if test "x$lt_cv_ar_at_file" = xno; then
6268 archiver_list_spec=
6269 else
6270 archiver_list_spec=$lt_cv_ar_at_file
6271 fi
6272
6273
6274
6275
6276
6277
6278
6279 if test -n "$ac_tool_prefix"; then
6280 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6281 set dummy ${ac_tool_prefix}strip; ac_word=$2
6282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6283 $as_echo_n "checking for $ac_word... " >&6; }
6284 if ${ac_cv_prog_STRIP+:} false; then :
6285 $as_echo_n "(cached) " >&6
6286 else
6287 if test -n "$STRIP"; then
6288 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6289 else
6290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6291 for as_dir in $PATH
6292 do
6293 IFS=$as_save_IFS
6294 test -z "$as_dir" && as_dir=.
6295 for ac_exec_ext in '' $ac_executable_extensions; do
6296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6297 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6299 break 2
6300 fi
6301 done
6302 done
6303 IFS=$as_save_IFS
6304
6305 fi
6306 fi
6307 STRIP=$ac_cv_prog_STRIP
6308 if test -n "$STRIP"; then
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6310 $as_echo "$STRIP" >&6; }
6311 else
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6313 $as_echo "no" >&6; }
6314 fi
6315
6316
6317 fi
6318 if test -z "$ac_cv_prog_STRIP"; then
6319 ac_ct_STRIP=$STRIP
6320 # Extract the first word of "strip", so it can be a program name with args.
6321 set dummy strip; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$ac_ct_STRIP"; then
6328 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6332 do
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6337 ac_cv_prog_ac_ct_STRIP="strip"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6340 fi
6341 done
6342 done
6343 IFS=$as_save_IFS
6344
6345 fi
6346 fi
6347 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6348 if test -n "$ac_ct_STRIP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6350 $as_echo "$ac_ct_STRIP" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356 if test "x$ac_ct_STRIP" = x; then
6357 STRIP=":"
6358 else
6359 case $cross_compiling:$ac_tool_warned in
6360 yes:)
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6363 ac_tool_warned=yes ;;
6364 esac
6365 STRIP=$ac_ct_STRIP
6366 fi
6367 else
6368 STRIP="$ac_cv_prog_STRIP"
6369 fi
6370
6371 test -z "$STRIP" && STRIP=:
6372
6373
6374
6375
6376
6377
6378 if test -n "$ac_tool_prefix"; then
6379 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6380 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6382 $as_echo_n "checking for $ac_word... " >&6; }
6383 if ${ac_cv_prog_RANLIB+:} false; then :
6384 $as_echo_n "(cached) " >&6
6385 else
6386 if test -n "$RANLIB"; then
6387 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6388 else
6389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6390 for as_dir in $PATH
6391 do
6392 IFS=$as_save_IFS
6393 test -z "$as_dir" && as_dir=.
6394 for ac_exec_ext in '' $ac_executable_extensions; do
6395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6396 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6398 break 2
6399 fi
6400 done
6401 done
6402 IFS=$as_save_IFS
6403
6404 fi
6405 fi
6406 RANLIB=$ac_cv_prog_RANLIB
6407 if test -n "$RANLIB"; then
6408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6409 $as_echo "$RANLIB" >&6; }
6410 else
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 fi
6414
6415
6416 fi
6417 if test -z "$ac_cv_prog_RANLIB"; then
6418 ac_ct_RANLIB=$RANLIB
6419 # Extract the first word of "ranlib", so it can be a program name with args.
6420 set dummy ranlib; ac_word=$2
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6422 $as_echo_n "checking for $ac_word... " >&6; }
6423 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$ac_ct_RANLIB"; then
6427 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6428 else
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH
6431 do
6432 IFS=$as_save_IFS
6433 test -z "$as_dir" && as_dir=.
6434 for ac_exec_ext in '' $ac_executable_extensions; do
6435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6436 ac_cv_prog_ac_ct_RANLIB="ranlib"
6437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6438 break 2
6439 fi
6440 done
6441 done
6442 IFS=$as_save_IFS
6443
6444 fi
6445 fi
6446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6447 if test -n "$ac_ct_RANLIB"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6449 $as_echo "$ac_ct_RANLIB" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455 if test "x$ac_ct_RANLIB" = x; then
6456 RANLIB=":"
6457 else
6458 case $cross_compiling:$ac_tool_warned in
6459 yes:)
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6462 ac_tool_warned=yes ;;
6463 esac
6464 RANLIB=$ac_ct_RANLIB
6465 fi
6466 else
6467 RANLIB="$ac_cv_prog_RANLIB"
6468 fi
6469
6470 test -z "$RANLIB" && RANLIB=:
6471
6472
6473
6474
6475
6476
6477 # Determine commands to create old-style static archives.
6478 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6479 old_postinstall_cmds='chmod 644 $oldlib'
6480 old_postuninstall_cmds=
6481
6482 if test -n "$RANLIB"; then
6483 case $host_os in
6484 openbsd*)
6485 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6486 ;;
6487 *)
6488 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6489 ;;
6490 esac
6491 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6492 fi
6493
6494 case $host_os in
6495 darwin*)
6496 lock_old_archive_extraction=yes ;;
6497 *)
6498 lock_old_archive_extraction=no ;;
6499 esac
6500
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539 # If no C compiler was specified, use CC.
6540 LTCC=${LTCC-"$CC"}
6541
6542 # If no C compiler flags were specified, use CFLAGS.
6543 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6544
6545 # Allow CC to be a program name with arguments.
6546 compiler=$CC
6547
6548
6549 # Check for command to grab the raw symbol name followed by C symbol from nm.
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6551 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6552 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6553 $as_echo_n "(cached) " >&6
6554 else
6555
6556 # These are sane defaults that work on at least a few old systems.
6557 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6558
6559 # Character class describing NM global symbol codes.
6560 symcode='[BCDEGRST]'
6561
6562 # Regexp to match symbols that can be accessed directly from C.
6563 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6564
6565 # Define system-specific variables.
6566 case $host_os in
6567 aix*)
6568 symcode='[BCDT]'
6569 ;;
6570 cygwin* | mingw* | pw32* | cegcc*)
6571 symcode='[ABCDGISTW]'
6572 ;;
6573 hpux*)
6574 if test "$host_cpu" = ia64; then
6575 symcode='[ABCDEGRST]'
6576 fi
6577 ;;
6578 irix* | nonstopux*)
6579 symcode='[BCDEGRST]'
6580 ;;
6581 osf*)
6582 symcode='[BCDEGQRST]'
6583 ;;
6584 solaris*)
6585 symcode='[BDRT]'
6586 ;;
6587 sco3.2v5*)
6588 symcode='[DT]'
6589 ;;
6590 sysv4.2uw2*)
6591 symcode='[DT]'
6592 ;;
6593 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6594 symcode='[ABDT]'
6595 ;;
6596 sysv4)
6597 symcode='[DFNSTU]'
6598 ;;
6599 esac
6600
6601 # If we're using GNU nm, then use its standard symbol codes.
6602 case `$NM -V 2>&1` in
6603 *GNU* | *'with BFD'*)
6604 symcode='[ABCDGIRSTW]' ;;
6605 esac
6606
6607 # Transform an extracted symbol line into a proper C declaration.
6608 # Some systems (esp. on ia64) link data and code symbols differently,
6609 # so use this general approach.
6610 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6611
6612 # Transform an extracted symbol line into symbol name and symbol address
6613 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6614 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6615
6616 # Handle CRLF in mingw tool chain
6617 opt_cr=
6618 case $build_os in
6619 mingw*)
6620 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6621 ;;
6622 esac
6623
6624 # Try without a prefix underscore, then with it.
6625 for ac_symprfx in "" "_"; do
6626
6627 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6628 symxfrm="\\1 $ac_symprfx\\2 \\2"
6629
6630 # Write the raw and C identifiers.
6631 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6632 # Fake it for dumpbin and say T for any non-static function
6633 # and D for any global variable.
6634 # Also find C++ and __fastcall symbols from MSVC++,
6635 # which start with @ or ?.
6636 lt_cv_sys_global_symbol_pipe="$AWK '"\
6637 " {last_section=section; section=\$ 3};"\
6638 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6639 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6640 " \$ 0!~/External *\|/{next};"\
6641 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6642 " {if(hide[section]) next};"\
6643 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6644 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6645 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6646 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6647 " ' prfx=^$ac_symprfx"
6648 else
6649 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6650 fi
6651 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6652
6653 # Check to see that the pipe works correctly.
6654 pipe_works=no
6655
6656 rm -f conftest*
6657 cat > conftest.$ac_ext <<_LT_EOF
6658 #ifdef __cplusplus
6659 extern "C" {
6660 #endif
6661 char nm_test_var;
6662 void nm_test_func(void);
6663 void nm_test_func(void){}
6664 #ifdef __cplusplus
6665 }
6666 #endif
6667 int main(){nm_test_var='a';nm_test_func();return(0);}
6668 _LT_EOF
6669
6670 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6671 (eval $ac_compile) 2>&5
6672 ac_status=$?
6673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6674 test $ac_status = 0; }; then
6675 # Now try to grab the symbols.
6676 nlist=conftest.nm
6677 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6678 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6679 ac_status=$?
6680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6681 test $ac_status = 0; } && test -s "$nlist"; then
6682 # Try sorting and uniquifying the output.
6683 if sort "$nlist" | uniq > "$nlist"T; then
6684 mv -f "$nlist"T "$nlist"
6685 else
6686 rm -f "$nlist"T
6687 fi
6688
6689 # Make sure that we snagged all the symbols we need.
6690 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6691 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6692 cat <<_LT_EOF > conftest.$ac_ext
6693 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6694 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6695 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6696 relocations are performed -- see ld's documentation on pseudo-relocs. */
6697 # define LT_DLSYM_CONST
6698 #elif defined(__osf__)
6699 /* This system does not cope well with relocations in const data. */
6700 # define LT_DLSYM_CONST
6701 #else
6702 # define LT_DLSYM_CONST const
6703 #endif
6704
6705 #ifdef __cplusplus
6706 extern "C" {
6707 #endif
6708
6709 _LT_EOF
6710 # Now generate the symbol file.
6711 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6712
6713 cat <<_LT_EOF >> conftest.$ac_ext
6714
6715 /* The mapping between symbol names and symbols. */
6716 LT_DLSYM_CONST struct {
6717 const char *name;
6718 void *address;
6719 }
6720 lt__PROGRAM__LTX_preloaded_symbols[] =
6721 {
6722 { "@PROGRAM@", (void *) 0 },
6723 _LT_EOF
6724 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6725 cat <<\_LT_EOF >> conftest.$ac_ext
6726 {0, (void *) 0}
6727 };
6728
6729 /* This works around a problem in FreeBSD linker */
6730 #ifdef FREEBSD_WORKAROUND
6731 static const void *lt_preloaded_setup() {
6732 return lt__PROGRAM__LTX_preloaded_symbols;
6733 }
6734 #endif
6735
6736 #ifdef __cplusplus
6737 }
6738 #endif
6739 _LT_EOF
6740 # Now try linking the two files.
6741 mv conftest.$ac_objext conftstm.$ac_objext
6742 lt_globsym_save_LIBS=$LIBS
6743 lt_globsym_save_CFLAGS=$CFLAGS
6744 LIBS="conftstm.$ac_objext"
6745 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6746 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6747 (eval $ac_link) 2>&5
6748 ac_status=$?
6749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6750 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6751 pipe_works=yes
6752 fi
6753 LIBS=$lt_globsym_save_LIBS
6754 CFLAGS=$lt_globsym_save_CFLAGS
6755 else
6756 echo "cannot find nm_test_func in $nlist" >&5
6757 fi
6758 else
6759 echo "cannot find nm_test_var in $nlist" >&5
6760 fi
6761 else
6762 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6763 fi
6764 else
6765 echo "$progname: failed program was:" >&5
6766 cat conftest.$ac_ext >&5
6767 fi
6768 rm -rf conftest* conftst*
6769
6770 # Do not use the global_symbol_pipe unless it works.
6771 if test "$pipe_works" = yes; then
6772 break
6773 else
6774 lt_cv_sys_global_symbol_pipe=
6775 fi
6776 done
6777
6778 fi
6779
6780 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6781 lt_cv_sys_global_symbol_to_cdecl=
6782 fi
6783 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6785 $as_echo "failed" >&6; }
6786 else
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6788 $as_echo "ok" >&6; }
6789 fi
6790
6791 # Response file support.
6792 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6793 nm_file_list_spec='@'
6794 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6795 nm_file_list_spec='@'
6796 fi
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6825 $as_echo_n "checking for sysroot... " >&6; }
6826
6827 # Check whether --with-sysroot was given.
6828 if test "${with_sysroot+set}" = set; then :
6829 withval=$with_sysroot;
6830 else
6831 with_sysroot=no
6832 fi
6833
6834
6835 lt_sysroot=
6836 case ${with_sysroot} in #(
6837 yes)
6838 if test "$GCC" = yes; then
6839 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6840 fi
6841 ;; #(
6842 /*)
6843 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6844 ;; #(
6845 no|'')
6846 ;; #(
6847 *)
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6849 $as_echo "${with_sysroot}" >&6; }
6850 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6851 ;;
6852 esac
6853
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6855 $as_echo "${lt_sysroot:-no}" >&6; }
6856
6857
6858
6859
6860
6861 # Check whether --enable-libtool-lock was given.
6862 if test "${enable_libtool_lock+set}" = set; then :
6863 enableval=$enable_libtool_lock;
6864 fi
6865
6866 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6867
6868 # Some flags need to be propagated to the compiler or linker for good
6869 # libtool support.
6870 case $host in
6871 ia64-*-hpux*)
6872 # Find out which ABI we are using.
6873 echo 'int i;' > conftest.$ac_ext
6874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6875 (eval $ac_compile) 2>&5
6876 ac_status=$?
6877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6878 test $ac_status = 0; }; then
6879 case `/usr/bin/file conftest.$ac_objext` in
6880 *ELF-32*)
6881 HPUX_IA64_MODE="32"
6882 ;;
6883 *ELF-64*)
6884 HPUX_IA64_MODE="64"
6885 ;;
6886 esac
6887 fi
6888 rm -rf conftest*
6889 ;;
6890 *-*-irix6*)
6891 # Find out which ABI we are using.
6892 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6893 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894 (eval $ac_compile) 2>&5
6895 ac_status=$?
6896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897 test $ac_status = 0; }; then
6898 if test "$lt_cv_prog_gnu_ld" = yes; then
6899 case `/usr/bin/file conftest.$ac_objext` in
6900 *32-bit*)
6901 LD="${LD-ld} -melf32bsmip"
6902 ;;
6903 *N32*)
6904 LD="${LD-ld} -melf32bmipn32"
6905 ;;
6906 *64-bit*)
6907 LD="${LD-ld} -melf64bmip"
6908 ;;
6909 esac
6910 else
6911 case `/usr/bin/file conftest.$ac_objext` in
6912 *32-bit*)
6913 LD="${LD-ld} -32"
6914 ;;
6915 *N32*)
6916 LD="${LD-ld} -n32"
6917 ;;
6918 *64-bit*)
6919 LD="${LD-ld} -64"
6920 ;;
6921 esac
6922 fi
6923 fi
6924 rm -rf conftest*
6925 ;;
6926
6927 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6928 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6929 # Find out which ABI we are using.
6930 echo 'int i;' > conftest.$ac_ext
6931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6932 (eval $ac_compile) 2>&5
6933 ac_status=$?
6934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6935 test $ac_status = 0; }; then
6936 case `/usr/bin/file conftest.o` in
6937 *32-bit*)
6938 case $host in
6939 x86_64-*kfreebsd*-gnu)
6940 LD="${LD-ld} -m elf_i386_fbsd"
6941 ;;
6942 x86_64-*linux*)
6943 LD="${LD-ld} -m elf_i386"
6944 ;;
6945 ppc64-*linux*|powerpc64-*linux*)
6946 LD="${LD-ld} -m elf32ppclinux"
6947 ;;
6948 s390x-*linux*)
6949 LD="${LD-ld} -m elf_s390"
6950 ;;
6951 sparc64-*linux*)
6952 LD="${LD-ld} -m elf32_sparc"
6953 ;;
6954 esac
6955 ;;
6956 *64-bit*)
6957 case $host in
6958 x86_64-*kfreebsd*-gnu)
6959 LD="${LD-ld} -m elf_x86_64_fbsd"
6960 ;;
6961 x86_64-*linux*)
6962 LD="${LD-ld} -m elf_x86_64"
6963 ;;
6964 ppc*-*linux*|powerpc*-*linux*)
6965 LD="${LD-ld} -m elf64ppc"
6966 ;;
6967 s390*-*linux*|s390*-*tpf*)
6968 LD="${LD-ld} -m elf64_s390"
6969 ;;
6970 sparc*-*linux*)
6971 LD="${LD-ld} -m elf64_sparc"
6972 ;;
6973 esac
6974 ;;
6975 esac
6976 fi
6977 rm -rf conftest*
6978 ;;
6979
6980 *-*-sco3.2v5*)
6981 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6982 SAVE_CFLAGS="$CFLAGS"
6983 CFLAGS="$CFLAGS -belf"
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6985 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6986 if ${lt_cv_cc_needs_belf+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 ac_ext=c
6990 ac_cpp='$CPP $CPPFLAGS'
6991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6994
6995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997
6998 int
6999 main ()
7000 {
7001
7002 ;
7003 return 0;
7004 }
7005 _ACEOF
7006 if ac_fn_c_try_link "$LINENO"; then :
7007 lt_cv_cc_needs_belf=yes
7008 else
7009 lt_cv_cc_needs_belf=no
7010 fi
7011 rm -f core conftest.err conftest.$ac_objext \
7012 conftest$ac_exeext conftest.$ac_ext
7013 ac_ext=c
7014 ac_cpp='$CPP $CPPFLAGS'
7015 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7016 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7017 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7018
7019 fi
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7021 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7022 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7023 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7024 CFLAGS="$SAVE_CFLAGS"
7025 fi
7026 ;;
7027 *-*solaris*)
7028 # Find out which ABI we are using.
7029 echo 'int i;' > conftest.$ac_ext
7030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7031 (eval $ac_compile) 2>&5
7032 ac_status=$?
7033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7034 test $ac_status = 0; }; then
7035 case `/usr/bin/file conftest.o` in
7036 *64-bit*)
7037 case $lt_cv_prog_gnu_ld in
7038 yes*)
7039 case $host in
7040 i?86-*-solaris*)
7041 LD="${LD-ld} -m elf_x86_64"
7042 ;;
7043 sparc*-*-solaris*)
7044 LD="${LD-ld} -m elf64_sparc"
7045 ;;
7046 esac
7047 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7048 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7049 LD="${LD-ld}_sol2"
7050 fi
7051 ;;
7052 *)
7053 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7054 LD="${LD-ld} -64"
7055 fi
7056 ;;
7057 esac
7058 ;;
7059 esac
7060 fi
7061 rm -rf conftest*
7062 ;;
7063 esac
7064
7065 need_locks="$enable_libtool_lock"
7066
7067 if test -n "$ac_tool_prefix"; then
7068 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7069 set dummy ${ac_tool_prefix}mt; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$MANIFEST_TOOL"; then
7076 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7085 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7096 if test -n "$MANIFEST_TOOL"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7098 $as_echo "$MANIFEST_TOOL" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104
7105 fi
7106 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7107 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7108 # Extract the first word of "mt", so it can be a program name with args.
7109 set dummy mt; ac_word=$2
7110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7111 $as_echo_n "checking for $ac_word... " >&6; }
7112 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$ac_ct_MANIFEST_TOOL"; then
7116 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7117 else
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7119 for as_dir in $PATH
7120 do
7121 IFS=$as_save_IFS
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7127 break 2
7128 fi
7129 done
7130 done
7131 IFS=$as_save_IFS
7132
7133 fi
7134 fi
7135 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7136 if test -n "$ac_ct_MANIFEST_TOOL"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7138 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7139 else
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141 $as_echo "no" >&6; }
7142 fi
7143
7144 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7145 MANIFEST_TOOL=":"
7146 else
7147 case $cross_compiling:$ac_tool_warned in
7148 yes:)
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7151 ac_tool_warned=yes ;;
7152 esac
7153 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7154 fi
7155 else
7156 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7157 fi
7158
7159 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7161 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7162 if ${lt_cv_path_mainfest_tool+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 lt_cv_path_mainfest_tool=no
7166 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7167 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7168 cat conftest.err >&5
7169 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7170 lt_cv_path_mainfest_tool=yes
7171 fi
7172 rm -f conftest*
7173 fi
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7175 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7176 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7177 MANIFEST_TOOL=:
7178 fi
7179
7180
7181
7182
7183
7184
7185 case $host_os in
7186 rhapsody* | darwin*)
7187 if test -n "$ac_tool_prefix"; then
7188 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7189 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191 $as_echo_n "checking for $ac_word... " >&6; }
7192 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194 else
7195 if test -n "$DSYMUTIL"; then
7196 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7197 else
7198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7199 for as_dir in $PATH
7200 do
7201 IFS=$as_save_IFS
7202 test -z "$as_dir" && as_dir=.
7203 for ac_exec_ext in '' $ac_executable_extensions; do
7204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7205 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7207 break 2
7208 fi
7209 done
7210 done
7211 IFS=$as_save_IFS
7212
7213 fi
7214 fi
7215 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7216 if test -n "$DSYMUTIL"; then
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7218 $as_echo "$DSYMUTIL" >&6; }
7219 else
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7221 $as_echo "no" >&6; }
7222 fi
7223
7224
7225 fi
7226 if test -z "$ac_cv_prog_DSYMUTIL"; then
7227 ac_ct_DSYMUTIL=$DSYMUTIL
7228 # Extract the first word of "dsymutil", so it can be a program name with args.
7229 set dummy dsymutil; ac_word=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$ac_ct_DSYMUTIL"; then
7236 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7237 else
7238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7239 for as_dir in $PATH
7240 do
7241 IFS=$as_save_IFS
7242 test -z "$as_dir" && as_dir=.
7243 for ac_exec_ext in '' $ac_executable_extensions; do
7244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7245 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 break 2
7248 fi
7249 done
7250 done
7251 IFS=$as_save_IFS
7252
7253 fi
7254 fi
7255 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7256 if test -n "$ac_ct_DSYMUTIL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7258 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264 if test "x$ac_ct_DSYMUTIL" = x; then
7265 DSYMUTIL=":"
7266 else
7267 case $cross_compiling:$ac_tool_warned in
7268 yes:)
7269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7271 ac_tool_warned=yes ;;
7272 esac
7273 DSYMUTIL=$ac_ct_DSYMUTIL
7274 fi
7275 else
7276 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7277 fi
7278
7279 if test -n "$ac_tool_prefix"; then
7280 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7281 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_NMEDIT+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$NMEDIT"; then
7288 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7292 do
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7300 fi
7301 done
7302 done
7303 IFS=$as_save_IFS
7304
7305 fi
7306 fi
7307 NMEDIT=$ac_cv_prog_NMEDIT
7308 if test -n "$NMEDIT"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7310 $as_echo "$NMEDIT" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7314 fi
7315
7316
7317 fi
7318 if test -z "$ac_cv_prog_NMEDIT"; then
7319 ac_ct_NMEDIT=$NMEDIT
7320 # Extract the first word of "nmedit", so it can be a program name with args.
7321 set dummy nmedit; ac_word=$2
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7323 $as_echo_n "checking for $ac_word... " >&6; }
7324 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$ac_ct_NMEDIT"; then
7328 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7329 else
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333 IFS=$as_save_IFS
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339 break 2
7340 fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345 fi
7346 fi
7347 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7348 if test -n "$ac_ct_NMEDIT"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7350 $as_echo "$ac_ct_NMEDIT" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356 if test "x$ac_ct_NMEDIT" = x; then
7357 NMEDIT=":"
7358 else
7359 case $cross_compiling:$ac_tool_warned in
7360 yes:)
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7362 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7363 ac_tool_warned=yes ;;
7364 esac
7365 NMEDIT=$ac_ct_NMEDIT
7366 fi
7367 else
7368 NMEDIT="$ac_cv_prog_NMEDIT"
7369 fi
7370
7371 if test -n "$ac_tool_prefix"; then
7372 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7373 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7375 $as_echo_n "checking for $ac_word... " >&6; }
7376 if ${ac_cv_prog_LIPO+:} false; then :
7377 $as_echo_n "(cached) " >&6
7378 else
7379 if test -n "$LIPO"; then
7380 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi
7398 fi
7399 LIPO=$ac_cv_prog_LIPO
7400 if test -n "$LIPO"; then
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7402 $as_echo "$LIPO" >&6; }
7403 else
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7405 $as_echo "no" >&6; }
7406 fi
7407
7408
7409 fi
7410 if test -z "$ac_cv_prog_LIPO"; then
7411 ac_ct_LIPO=$LIPO
7412 # Extract the first word of "lipo", so it can be a program name with args.
7413 set dummy lipo; ac_word=$2
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7415 $as_echo_n "checking for $ac_word... " >&6; }
7416 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$ac_ct_LIPO"; then
7420 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7421 else
7422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7423 for as_dir in $PATH
7424 do
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7429 ac_cv_prog_ac_ct_LIPO="lipo"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7432 fi
7433 done
7434 done
7435 IFS=$as_save_IFS
7436
7437 fi
7438 fi
7439 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7440 if test -n "$ac_ct_LIPO"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7442 $as_echo "$ac_ct_LIPO" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448 if test "x$ac_ct_LIPO" = x; then
7449 LIPO=":"
7450 else
7451 case $cross_compiling:$ac_tool_warned in
7452 yes:)
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7454 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7455 ac_tool_warned=yes ;;
7456 esac
7457 LIPO=$ac_ct_LIPO
7458 fi
7459 else
7460 LIPO="$ac_cv_prog_LIPO"
7461 fi
7462
7463 if test -n "$ac_tool_prefix"; then
7464 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7465 set dummy ${ac_tool_prefix}otool; ac_word=$2
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7467 $as_echo_n "checking for $ac_word... " >&6; }
7468 if ${ac_cv_prog_OTOOL+:} false; then :
7469 $as_echo_n "(cached) " >&6
7470 else
7471 if test -n "$OTOOL"; then
7472 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7473 else
7474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7475 for as_dir in $PATH
7476 do
7477 IFS=$as_save_IFS
7478 test -z "$as_dir" && as_dir=.
7479 for ac_exec_ext in '' $ac_executable_extensions; do
7480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7481 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7483 break 2
7484 fi
7485 done
7486 done
7487 IFS=$as_save_IFS
7488
7489 fi
7490 fi
7491 OTOOL=$ac_cv_prog_OTOOL
7492 if test -n "$OTOOL"; then
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7494 $as_echo "$OTOOL" >&6; }
7495 else
7496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7497 $as_echo "no" >&6; }
7498 fi
7499
7500
7501 fi
7502 if test -z "$ac_cv_prog_OTOOL"; then
7503 ac_ct_OTOOL=$OTOOL
7504 # Extract the first word of "otool", so it can be a program name with args.
7505 set dummy otool; ac_word=$2
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7507 $as_echo_n "checking for $ac_word... " >&6; }
7508 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$ac_ct_OTOOL"; then
7512 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7513 else
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7515 for as_dir in $PATH
7516 do
7517 IFS=$as_save_IFS
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_prog_ac_ct_OTOOL="otool"
7522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523 break 2
7524 fi
7525 done
7526 done
7527 IFS=$as_save_IFS
7528
7529 fi
7530 fi
7531 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7532 if test -n "$ac_ct_OTOOL"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7534 $as_echo "$ac_ct_OTOOL" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540 if test "x$ac_ct_OTOOL" = x; then
7541 OTOOL=":"
7542 else
7543 case $cross_compiling:$ac_tool_warned in
7544 yes:)
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7546 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7547 ac_tool_warned=yes ;;
7548 esac
7549 OTOOL=$ac_ct_OTOOL
7550 fi
7551 else
7552 OTOOL="$ac_cv_prog_OTOOL"
7553 fi
7554
7555 if test -n "$ac_tool_prefix"; then
7556 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7557 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7559 $as_echo_n "checking for $ac_word... " >&6; }
7560 if ${ac_cv_prog_OTOOL64+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 if test -n "$OTOOL64"; then
7564 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7565 else
7566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7567 for as_dir in $PATH
7568 do
7569 IFS=$as_save_IFS
7570 test -z "$as_dir" && as_dir=.
7571 for ac_exec_ext in '' $ac_executable_extensions; do
7572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7573 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7575 break 2
7576 fi
7577 done
7578 done
7579 IFS=$as_save_IFS
7580
7581 fi
7582 fi
7583 OTOOL64=$ac_cv_prog_OTOOL64
7584 if test -n "$OTOOL64"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7586 $as_echo "$OTOOL64" >&6; }
7587 else
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7590 fi
7591
7592
7593 fi
7594 if test -z "$ac_cv_prog_OTOOL64"; then
7595 ac_ct_OTOOL64=$OTOOL64
7596 # Extract the first word of "otool64", so it can be a program name with args.
7597 set dummy otool64; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$ac_ct_OTOOL64"; then
7604 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7608 do
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_ac_ct_OTOOL64="otool64"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7616 fi
7617 done
7618 done
7619 IFS=$as_save_IFS
7620
7621 fi
7622 fi
7623 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7624 if test -n "$ac_ct_OTOOL64"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7626 $as_echo "$ac_ct_OTOOL64" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632 if test "x$ac_ct_OTOOL64" = x; then
7633 OTOOL64=":"
7634 else
7635 case $cross_compiling:$ac_tool_warned in
7636 yes:)
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7638 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7639 ac_tool_warned=yes ;;
7640 esac
7641 OTOOL64=$ac_ct_OTOOL64
7642 fi
7643 else
7644 OTOOL64="$ac_cv_prog_OTOOL64"
7645 fi
7646
7647
7648
7649
7650
7651
7652
7653
7654
7655
7656
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7674 $as_echo_n "checking for -single_module linker flag... " >&6; }
7675 if ${lt_cv_apple_cc_single_mod+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 lt_cv_apple_cc_single_mod=no
7679 if test -z "${LT_MULTI_MODULE}"; then
7680 # By default we will add the -single_module flag. You can override
7681 # by either setting the environment variable LT_MULTI_MODULE
7682 # non-empty at configure time, or by adding -multi_module to the
7683 # link flags.
7684 rm -rf libconftest.dylib*
7685 echo "int foo(void){return 1;}" > conftest.c
7686 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7687 -dynamiclib -Wl,-single_module conftest.c" >&5
7688 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7689 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7690 _lt_result=$?
7691 # If there is a non-empty error log, and "single_module"
7692 # appears in it, assume the flag caused a linker warning
7693 if test -s conftest.err && $GREP single_module conftest.err; then
7694 cat conftest.err >&5
7695 # Otherwise, if the output was created with a 0 exit code from
7696 # the compiler, it worked.
7697 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7698 lt_cv_apple_cc_single_mod=yes
7699 else
7700 cat conftest.err >&5
7701 fi
7702 rm -rf libconftest.dylib*
7703 rm -f conftest.*
7704 fi
7705 fi
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7707 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7708
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7710 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7711 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7712 $as_echo_n "(cached) " >&6
7713 else
7714 lt_cv_ld_exported_symbols_list=no
7715 save_LDFLAGS=$LDFLAGS
7716 echo "_main" > conftest.sym
7717 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720
7721 int
7722 main ()
7723 {
7724
7725 ;
7726 return 0;
7727 }
7728 _ACEOF
7729 if ac_fn_c_try_link "$LINENO"; then :
7730 lt_cv_ld_exported_symbols_list=yes
7731 else
7732 lt_cv_ld_exported_symbols_list=no
7733 fi
7734 rm -f core conftest.err conftest.$ac_objext \
7735 conftest$ac_exeext conftest.$ac_ext
7736 LDFLAGS="$save_LDFLAGS"
7737
7738 fi
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7740 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7741
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7743 $as_echo_n "checking for -force_load linker flag... " >&6; }
7744 if ${lt_cv_ld_force_load+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 lt_cv_ld_force_load=no
7748 cat > conftest.c << _LT_EOF
7749 int forced_loaded() { return 2;}
7750 _LT_EOF
7751 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7752 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7753 echo "$AR cru libconftest.a conftest.o" >&5
7754 $AR cru libconftest.a conftest.o 2>&5
7755 echo "$RANLIB libconftest.a" >&5
7756 $RANLIB libconftest.a 2>&5
7757 cat > conftest.c << _LT_EOF
7758 int main() { return 0;}
7759 _LT_EOF
7760 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7761 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7762 _lt_result=$?
7763 if test -s conftest.err && $GREP force_load conftest.err; then
7764 cat conftest.err >&5
7765 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7766 lt_cv_ld_force_load=yes
7767 else
7768 cat conftest.err >&5
7769 fi
7770 rm -f conftest.err libconftest.a conftest conftest.c
7771 rm -rf conftest.dSYM
7772
7773 fi
7774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7775 $as_echo "$lt_cv_ld_force_load" >&6; }
7776 case $host_os in
7777 rhapsody* | darwin1.[012])
7778 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7779 darwin1.*)
7780 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7781 darwin*) # darwin 5.x on
7782 # if running on 10.5 or later, the deployment target defaults
7783 # to the OS version, if on x86, and 10.4, the deployment
7784 # target defaults to 10.4. Don't you love it?
7785 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7786 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7787 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7788 10.[012]*)
7789 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7790 10.*)
7791 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7792 esac
7793 ;;
7794 esac
7795 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7796 _lt_dar_single_mod='$single_module'
7797 fi
7798 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7799 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7800 else
7801 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7802 fi
7803 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7804 _lt_dsymutil='~$DSYMUTIL $lib || :'
7805 else
7806 _lt_dsymutil=
7807 fi
7808 ;;
7809 esac
7810
7811 for ac_header in dlfcn.h
7812 do :
7813 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7814 "
7815 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7816 cat >>confdefs.h <<_ACEOF
7817 #define HAVE_DLFCN_H 1
7818 _ACEOF
7819
7820 fi
7821
7822 done
7823
7824
7825
7826
7827
7828 # Set options
7829
7830
7831
7832 enable_dlopen=no
7833
7834
7835 enable_win32_dll=no
7836
7837
7838 # Check whether --enable-shared was given.
7839 if test "${enable_shared+set}" = set; then :
7840 enableval=$enable_shared; p=${PACKAGE-default}
7841 case $enableval in
7842 yes) enable_shared=yes ;;
7843 no) enable_shared=no ;;
7844 *)
7845 enable_shared=no
7846 # Look at the argument we got. We use all the common list separators.
7847 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7848 for pkg in $enableval; do
7849 IFS="$lt_save_ifs"
7850 if test "X$pkg" = "X$p"; then
7851 enable_shared=yes
7852 fi
7853 done
7854 IFS="$lt_save_ifs"
7855 ;;
7856 esac
7857 else
7858 enable_shared=yes
7859 fi
7860
7861
7862
7863
7864
7865
7866
7867
7868
7869 # Check whether --enable-static was given.
7870 if test "${enable_static+set}" = set; then :
7871 enableval=$enable_static; p=${PACKAGE-default}
7872 case $enableval in
7873 yes) enable_static=yes ;;
7874 no) enable_static=no ;;
7875 *)
7876 enable_static=no
7877 # Look at the argument we got. We use all the common list separators.
7878 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7879 for pkg in $enableval; do
7880 IFS="$lt_save_ifs"
7881 if test "X$pkg" = "X$p"; then
7882 enable_static=yes
7883 fi
7884 done
7885 IFS="$lt_save_ifs"
7886 ;;
7887 esac
7888 else
7889 enable_static=yes
7890 fi
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900
7901 # Check whether --with-pic was given.
7902 if test "${with_pic+set}" = set; then :
7903 withval=$with_pic; lt_p=${PACKAGE-default}
7904 case $withval in
7905 yes|no) pic_mode=$withval ;;
7906 *)
7907 pic_mode=default
7908 # Look at the argument we got. We use all the common list separators.
7909 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7910 for lt_pkg in $withval; do
7911 IFS="$lt_save_ifs"
7912 if test "X$lt_pkg" = "X$lt_p"; then
7913 pic_mode=yes
7914 fi
7915 done
7916 IFS="$lt_save_ifs"
7917 ;;
7918 esac
7919 else
7920 pic_mode=default
7921 fi
7922
7923
7924 test -z "$pic_mode" && pic_mode=default
7925
7926
7927
7928
7929
7930
7931
7932 # Check whether --enable-fast-install was given.
7933 if test "${enable_fast_install+set}" = set; then :
7934 enableval=$enable_fast_install; p=${PACKAGE-default}
7935 case $enableval in
7936 yes) enable_fast_install=yes ;;
7937 no) enable_fast_install=no ;;
7938 *)
7939 enable_fast_install=no
7940 # Look at the argument we got. We use all the common list separators.
7941 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7942 for pkg in $enableval; do
7943 IFS="$lt_save_ifs"
7944 if test "X$pkg" = "X$p"; then
7945 enable_fast_install=yes
7946 fi
7947 done
7948 IFS="$lt_save_ifs"
7949 ;;
7950 esac
7951 else
7952 enable_fast_install=yes
7953 fi
7954
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965 # This can be used to rebuild libtool when needed
7966 LIBTOOL_DEPS="$ltmain"
7967
7968 # Always use our own libtool.
7969 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 test -z "$LN_S" && LN_S="ln -s"
8001
8002
8003
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013
8014
8015 if test -n "${ZSH_VERSION+set}" ; then
8016 setopt NO_GLOB_SUBST
8017 fi
8018
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8020 $as_echo_n "checking for objdir... " >&6; }
8021 if ${lt_cv_objdir+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 rm -f .libs 2>/dev/null
8025 mkdir .libs 2>/dev/null
8026 if test -d .libs; then
8027 lt_cv_objdir=.libs
8028 else
8029 # MS-DOS does not allow filenames that begin with a dot.
8030 lt_cv_objdir=_libs
8031 fi
8032 rmdir .libs 2>/dev/null
8033 fi
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8035 $as_echo "$lt_cv_objdir" >&6; }
8036 objdir=$lt_cv_objdir
8037
8038
8039
8040
8041
8042 cat >>confdefs.h <<_ACEOF
8043 #define LT_OBJDIR "$lt_cv_objdir/"
8044 _ACEOF
8045
8046
8047
8048
8049 case $host_os in
8050 aix3*)
8051 # AIX sometimes has problems with the GCC collect2 program. For some
8052 # reason, if we set the COLLECT_NAMES environment variable, the problems
8053 # vanish in a puff of smoke.
8054 if test "X${COLLECT_NAMES+set}" != Xset; then
8055 COLLECT_NAMES=
8056 export COLLECT_NAMES
8057 fi
8058 ;;
8059 esac
8060
8061 # Global variables:
8062 ofile=libtool
8063 can_build_shared=yes
8064
8065 # All known linkers require a `.a' archive for static linking (except MSVC,
8066 # which needs '.lib').
8067 libext=a
8068
8069 with_gnu_ld="$lt_cv_prog_gnu_ld"
8070
8071 old_CC="$CC"
8072 old_CFLAGS="$CFLAGS"
8073
8074 # Set sane defaults for various variables
8075 test -z "$CC" && CC=cc
8076 test -z "$LTCC" && LTCC=$CC
8077 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8078 test -z "$LD" && LD=ld
8079 test -z "$ac_objext" && ac_objext=o
8080
8081 for cc_temp in $compiler""; do
8082 case $cc_temp in
8083 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8084 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8085 \-*) ;;
8086 *) break;;
8087 esac
8088 done
8089 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8090
8091
8092 # Only perform the check for file, if the check method requires it
8093 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8094 case $deplibs_check_method in
8095 file_magic*)
8096 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8098 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8099 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8102 case $MAGIC_CMD in
8103 [\\/*] | ?:[\\/]*)
8104 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8105 ;;
8106 *)
8107 lt_save_MAGIC_CMD="$MAGIC_CMD"
8108 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8109 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8110 for ac_dir in $ac_dummy; do
8111 IFS="$lt_save_ifs"
8112 test -z "$ac_dir" && ac_dir=.
8113 if test -f $ac_dir/${ac_tool_prefix}file; then
8114 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8115 if test -n "$file_magic_test_file"; then
8116 case $deplibs_check_method in
8117 "file_magic "*)
8118 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8119 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8120 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8121 $EGREP "$file_magic_regex" > /dev/null; then
8122 :
8123 else
8124 cat <<_LT_EOF 1>&2
8125
8126 *** Warning: the command libtool uses to detect shared libraries,
8127 *** $file_magic_cmd, produces output that libtool cannot recognize.
8128 *** The result is that libtool may fail to recognize shared libraries
8129 *** as such. This will affect the creation of libtool libraries that
8130 *** depend on shared libraries, but programs linked with such libtool
8131 *** libraries will work regardless of this problem. Nevertheless, you
8132 *** may want to report the problem to your system manager and/or to
8133 *** bug-libtool@gnu.org
8134
8135 _LT_EOF
8136 fi ;;
8137 esac
8138 fi
8139 break
8140 fi
8141 done
8142 IFS="$lt_save_ifs"
8143 MAGIC_CMD="$lt_save_MAGIC_CMD"
8144 ;;
8145 esac
8146 fi
8147
8148 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8149 if test -n "$MAGIC_CMD"; then
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8151 $as_echo "$MAGIC_CMD" >&6; }
8152 else
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8154 $as_echo "no" >&6; }
8155 fi
8156
8157
8158
8159
8160
8161 if test -z "$lt_cv_path_MAGIC_CMD"; then
8162 if test -n "$ac_tool_prefix"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8164 $as_echo_n "checking for file... " >&6; }
8165 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8166 $as_echo_n "(cached) " >&6
8167 else
8168 case $MAGIC_CMD in
8169 [\\/*] | ?:[\\/]*)
8170 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8171 ;;
8172 *)
8173 lt_save_MAGIC_CMD="$MAGIC_CMD"
8174 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8175 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8176 for ac_dir in $ac_dummy; do
8177 IFS="$lt_save_ifs"
8178 test -z "$ac_dir" && ac_dir=.
8179 if test -f $ac_dir/file; then
8180 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8181 if test -n "$file_magic_test_file"; then
8182 case $deplibs_check_method in
8183 "file_magic "*)
8184 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8185 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8186 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8187 $EGREP "$file_magic_regex" > /dev/null; then
8188 :
8189 else
8190 cat <<_LT_EOF 1>&2
8191
8192 *** Warning: the command libtool uses to detect shared libraries,
8193 *** $file_magic_cmd, produces output that libtool cannot recognize.
8194 *** The result is that libtool may fail to recognize shared libraries
8195 *** as such. This will affect the creation of libtool libraries that
8196 *** depend on shared libraries, but programs linked with such libtool
8197 *** libraries will work regardless of this problem. Nevertheless, you
8198 *** may want to report the problem to your system manager and/or to
8199 *** bug-libtool@gnu.org
8200
8201 _LT_EOF
8202 fi ;;
8203 esac
8204 fi
8205 break
8206 fi
8207 done
8208 IFS="$lt_save_ifs"
8209 MAGIC_CMD="$lt_save_MAGIC_CMD"
8210 ;;
8211 esac
8212 fi
8213
8214 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8215 if test -n "$MAGIC_CMD"; then
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8217 $as_echo "$MAGIC_CMD" >&6; }
8218 else
8219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8220 $as_echo "no" >&6; }
8221 fi
8222
8223
8224 else
8225 MAGIC_CMD=:
8226 fi
8227 fi
8228
8229 fi
8230 ;;
8231 esac
8232
8233 # Use C for the default configuration in the libtool script
8234
8235 lt_save_CC="$CC"
8236 ac_ext=c
8237 ac_cpp='$CPP $CPPFLAGS'
8238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8241
8242
8243 # Source file extension for C test sources.
8244 ac_ext=c
8245
8246 # Object file extension for compiled C test sources.
8247 objext=o
8248 objext=$objext
8249
8250 # Code to be used in simple compile tests
8251 lt_simple_compile_test_code="int some_variable = 0;"
8252
8253 # Code to be used in simple link tests
8254 lt_simple_link_test_code='int main(){return(0);}'
8255
8256
8257
8258
8259
8260
8261
8262 # If no C compiler was specified, use CC.
8263 LTCC=${LTCC-"$CC"}
8264
8265 # If no C compiler flags were specified, use CFLAGS.
8266 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8267
8268 # Allow CC to be a program name with arguments.
8269 compiler=$CC
8270
8271 # Save the default compiler, since it gets overwritten when the other
8272 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8273 compiler_DEFAULT=$CC
8274
8275 # save warnings/boilerplate of simple test code
8276 ac_outfile=conftest.$ac_objext
8277 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8278 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8279 _lt_compiler_boilerplate=`cat conftest.err`
8280 $RM conftest*
8281
8282 ac_outfile=conftest.$ac_objext
8283 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8284 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8285 _lt_linker_boilerplate=`cat conftest.err`
8286 $RM -r conftest*
8287
8288
8289 if test -n "$compiler"; then
8290
8291 lt_prog_compiler_no_builtin_flag=
8292
8293 if test "$GCC" = yes; then
8294 case $cc_basename in
8295 nvcc*)
8296 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8297 *)
8298 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8299 esac
8300
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8302 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8303 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8304 $as_echo_n "(cached) " >&6
8305 else
8306 lt_cv_prog_compiler_rtti_exceptions=no
8307 ac_outfile=conftest.$ac_objext
8308 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8309 lt_compiler_flag="-fno-rtti -fno-exceptions"
8310 # Insert the option either (1) after the last *FLAGS variable, or
8311 # (2) before a word containing "conftest.", or (3) at the end.
8312 # Note that $ac_compile itself does not contain backslashes and begins
8313 # with a dollar sign (not a hyphen), so the echo should work correctly.
8314 # The option is referenced via a variable to avoid confusing sed.
8315 lt_compile=`echo "$ac_compile" | $SED \
8316 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8317 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8318 -e 's:$: $lt_compiler_flag:'`
8319 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8320 (eval "$lt_compile" 2>conftest.err)
8321 ac_status=$?
8322 cat conftest.err >&5
8323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8324 if (exit $ac_status) && test -s "$ac_outfile"; then
8325 # The compiler can only warn and ignore the option if not recognized
8326 # So say no if there are warnings other than the usual output.
8327 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8328 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8329 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8330 lt_cv_prog_compiler_rtti_exceptions=yes
8331 fi
8332 fi
8333 $RM conftest*
8334
8335 fi
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8337 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8338
8339 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8340 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8341 else
8342 :
8343 fi
8344
8345 fi
8346
8347
8348
8349
8350
8351
8352 lt_prog_compiler_wl=
8353 lt_prog_compiler_pic=
8354 lt_prog_compiler_static=
8355
8356
8357 if test "$GCC" = yes; then
8358 lt_prog_compiler_wl='-Wl,'
8359 lt_prog_compiler_static='-static'
8360
8361 case $host_os in
8362 aix*)
8363 # All AIX code is PIC.
8364 if test "$host_cpu" = ia64; then
8365 # AIX 5 now supports IA64 processor
8366 lt_prog_compiler_static='-Bstatic'
8367 fi
8368 ;;
8369
8370 amigaos*)
8371 case $host_cpu in
8372 powerpc)
8373 # see comment about AmigaOS4 .so support
8374 lt_prog_compiler_pic='-fPIC'
8375 ;;
8376 m68k)
8377 # FIXME: we need at least 68020 code to build shared libraries, but
8378 # adding the `-m68020' flag to GCC prevents building anything better,
8379 # like `-m68040'.
8380 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8381 ;;
8382 esac
8383 ;;
8384
8385 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8386 # PIC is the default for these OSes.
8387 ;;
8388
8389 mingw* | cygwin* | pw32* | os2* | cegcc*)
8390 # This hack is so that the source file can tell whether it is being
8391 # built for inclusion in a dll (and should export symbols for example).
8392 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8393 # (--disable-auto-import) libraries
8394 lt_prog_compiler_pic='-DDLL_EXPORT'
8395 ;;
8396
8397 darwin* | rhapsody*)
8398 # PIC is the default on this platform
8399 # Common symbols not allowed in MH_DYLIB files
8400 lt_prog_compiler_pic='-fno-common'
8401 ;;
8402
8403 haiku*)
8404 # PIC is the default for Haiku.
8405 # The "-static" flag exists, but is broken.
8406 lt_prog_compiler_static=
8407 ;;
8408
8409 hpux*)
8410 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8411 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8412 # sets the default TLS model and affects inlining.
8413 case $host_cpu in
8414 hppa*64*)
8415 # +Z the default
8416 ;;
8417 *)
8418 lt_prog_compiler_pic='-fPIC'
8419 ;;
8420 esac
8421 ;;
8422
8423 interix[3-9]*)
8424 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8425 # Instead, we relocate shared libraries at runtime.
8426 ;;
8427
8428 msdosdjgpp*)
8429 # Just because we use GCC doesn't mean we suddenly get shared libraries
8430 # on systems that don't support them.
8431 lt_prog_compiler_can_build_shared=no
8432 enable_shared=no
8433 ;;
8434
8435 *nto* | *qnx*)
8436 # QNX uses GNU C++, but need to define -shared option too, otherwise
8437 # it will coredump.
8438 lt_prog_compiler_pic='-fPIC -shared'
8439 ;;
8440
8441 sysv4*MP*)
8442 if test -d /usr/nec; then
8443 lt_prog_compiler_pic=-Kconform_pic
8444 fi
8445 ;;
8446
8447 *)
8448 lt_prog_compiler_pic='-fPIC'
8449 ;;
8450 esac
8451
8452 case $cc_basename in
8453 nvcc*) # Cuda Compiler Driver 2.2
8454 lt_prog_compiler_wl='-Xlinker '
8455 if test -n "$lt_prog_compiler_pic"; then
8456 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8457 fi
8458 ;;
8459 esac
8460 else
8461 # PORTME Check for flag to pass linker flags through the system compiler.
8462 case $host_os in
8463 aix*)
8464 lt_prog_compiler_wl='-Wl,'
8465 if test "$host_cpu" = ia64; then
8466 # AIX 5 now supports IA64 processor
8467 lt_prog_compiler_static='-Bstatic'
8468 else
8469 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8470 fi
8471 ;;
8472
8473 mingw* | cygwin* | pw32* | os2* | cegcc*)
8474 # This hack is so that the source file can tell whether it is being
8475 # built for inclusion in a dll (and should export symbols for example).
8476 lt_prog_compiler_pic='-DDLL_EXPORT'
8477 ;;
8478
8479 hpux9* | hpux10* | hpux11*)
8480 lt_prog_compiler_wl='-Wl,'
8481 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8482 # not for PA HP-UX.
8483 case $host_cpu in
8484 hppa*64*|ia64*)
8485 # +Z the default
8486 ;;
8487 *)
8488 lt_prog_compiler_pic='+Z'
8489 ;;
8490 esac
8491 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8492 lt_prog_compiler_static='${wl}-a ${wl}archive'
8493 ;;
8494
8495 irix5* | irix6* | nonstopux*)
8496 lt_prog_compiler_wl='-Wl,'
8497 # PIC (with -KPIC) is the default.
8498 lt_prog_compiler_static='-non_shared'
8499 ;;
8500
8501 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8502 case $cc_basename in
8503 # old Intel for x86_64 which still supported -KPIC.
8504 ecc*)
8505 lt_prog_compiler_wl='-Wl,'
8506 lt_prog_compiler_pic='-KPIC'
8507 lt_prog_compiler_static='-static'
8508 ;;
8509 # icc used to be incompatible with GCC.
8510 # ICC 10 doesn't accept -KPIC any more.
8511 icc* | ifort*)
8512 lt_prog_compiler_wl='-Wl,'
8513 lt_prog_compiler_pic='-fPIC'
8514 lt_prog_compiler_static='-static'
8515 ;;
8516 # Lahey Fortran 8.1.
8517 lf95*)
8518 lt_prog_compiler_wl='-Wl,'
8519 lt_prog_compiler_pic='--shared'
8520 lt_prog_compiler_static='--static'
8521 ;;
8522 nagfor*)
8523 # NAG Fortran compiler
8524 lt_prog_compiler_wl='-Wl,-Wl,,'
8525 lt_prog_compiler_pic='-PIC'
8526 lt_prog_compiler_static='-Bstatic'
8527 ;;
8528 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8529 # Portland Group compilers (*not* the Pentium gcc compiler,
8530 # which looks to be a dead project)
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-fpic'
8533 lt_prog_compiler_static='-Bstatic'
8534 ;;
8535 ccc*)
8536 lt_prog_compiler_wl='-Wl,'
8537 # All Alpha code is PIC.
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
8540 xl* | bgxl* | bgf* | mpixl*)
8541 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8542 lt_prog_compiler_wl='-Wl,'
8543 lt_prog_compiler_pic='-qpic'
8544 lt_prog_compiler_static='-qstaticlink'
8545 ;;
8546 *)
8547 case `$CC -V 2>&1 | sed 5q` in
8548 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8549 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8550 lt_prog_compiler_pic='-KPIC'
8551 lt_prog_compiler_static='-Bstatic'
8552 lt_prog_compiler_wl=''
8553 ;;
8554 *Sun\ F* | *Sun*Fortran*)
8555 lt_prog_compiler_pic='-KPIC'
8556 lt_prog_compiler_static='-Bstatic'
8557 lt_prog_compiler_wl='-Qoption ld '
8558 ;;
8559 *Sun\ C*)
8560 # Sun C 5.9
8561 lt_prog_compiler_pic='-KPIC'
8562 lt_prog_compiler_static='-Bstatic'
8563 lt_prog_compiler_wl='-Wl,'
8564 ;;
8565 *Intel*\ [CF]*Compiler*)
8566 lt_prog_compiler_wl='-Wl,'
8567 lt_prog_compiler_pic='-fPIC'
8568 lt_prog_compiler_static='-static'
8569 ;;
8570 *Portland\ Group*)
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_pic='-fpic'
8573 lt_prog_compiler_static='-Bstatic'
8574 ;;
8575 esac
8576 ;;
8577 esac
8578 ;;
8579
8580 newsos6)
8581 lt_prog_compiler_pic='-KPIC'
8582 lt_prog_compiler_static='-Bstatic'
8583 ;;
8584
8585 *nto* | *qnx*)
8586 # QNX uses GNU C++, but need to define -shared option too, otherwise
8587 # it will coredump.
8588 lt_prog_compiler_pic='-fPIC -shared'
8589 ;;
8590
8591 osf3* | osf4* | osf5*)
8592 lt_prog_compiler_wl='-Wl,'
8593 # All OSF/1 code is PIC.
8594 lt_prog_compiler_static='-non_shared'
8595 ;;
8596
8597 rdos*)
8598 lt_prog_compiler_static='-non_shared'
8599 ;;
8600
8601 solaris*)
8602 lt_prog_compiler_pic='-KPIC'
8603 lt_prog_compiler_static='-Bstatic'
8604 case $cc_basename in
8605 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8606 lt_prog_compiler_wl='-Qoption ld ';;
8607 *)
8608 lt_prog_compiler_wl='-Wl,';;
8609 esac
8610 ;;
8611
8612 sunos4*)
8613 lt_prog_compiler_wl='-Qoption ld '
8614 lt_prog_compiler_pic='-PIC'
8615 lt_prog_compiler_static='-Bstatic'
8616 ;;
8617
8618 sysv4 | sysv4.2uw2* | sysv4.3*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-Bstatic'
8622 ;;
8623
8624 sysv4*MP*)
8625 if test -d /usr/nec ;then
8626 lt_prog_compiler_pic='-Kconform_pic'
8627 lt_prog_compiler_static='-Bstatic'
8628 fi
8629 ;;
8630
8631 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='-KPIC'
8634 lt_prog_compiler_static='-Bstatic'
8635 ;;
8636
8637 unicos*)
8638 lt_prog_compiler_wl='-Wl,'
8639 lt_prog_compiler_can_build_shared=no
8640 ;;
8641
8642 uts4*)
8643 lt_prog_compiler_pic='-pic'
8644 lt_prog_compiler_static='-Bstatic'
8645 ;;
8646
8647 *)
8648 lt_prog_compiler_can_build_shared=no
8649 ;;
8650 esac
8651 fi
8652
8653 case $host_os in
8654 # For platforms which do not support PIC, -DPIC is meaningless:
8655 *djgpp*)
8656 lt_prog_compiler_pic=
8657 ;;
8658 *)
8659 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8660 ;;
8661 esac
8662
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8664 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8665 if ${lt_cv_prog_compiler_pic+:} false; then :
8666 $as_echo_n "(cached) " >&6
8667 else
8668 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8669 fi
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8671 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8672 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8673
8674 #
8675 # Check to make sure the PIC flag actually works.
8676 #
8677 if test -n "$lt_prog_compiler_pic"; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8679 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8680 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8681 $as_echo_n "(cached) " >&6
8682 else
8683 lt_cv_prog_compiler_pic_works=no
8684 ac_outfile=conftest.$ac_objext
8685 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8686 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8687 # Insert the option either (1) after the last *FLAGS variable, or
8688 # (2) before a word containing "conftest.", or (3) at the end.
8689 # Note that $ac_compile itself does not contain backslashes and begins
8690 # with a dollar sign (not a hyphen), so the echo should work correctly.
8691 # The option is referenced via a variable to avoid confusing sed.
8692 lt_compile=`echo "$ac_compile" | $SED \
8693 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8694 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8695 -e 's:$: $lt_compiler_flag:'`
8696 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8697 (eval "$lt_compile" 2>conftest.err)
8698 ac_status=$?
8699 cat conftest.err >&5
8700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701 if (exit $ac_status) && test -s "$ac_outfile"; then
8702 # The compiler can only warn and ignore the option if not recognized
8703 # So say no if there are warnings other than the usual output.
8704 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8705 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8706 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8707 lt_cv_prog_compiler_pic_works=yes
8708 fi
8709 fi
8710 $RM conftest*
8711
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8714 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8715
8716 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8717 case $lt_prog_compiler_pic in
8718 "" | " "*) ;;
8719 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8720 esac
8721 else
8722 lt_prog_compiler_pic=
8723 lt_prog_compiler_can_build_shared=no
8724 fi
8725
8726 fi
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738 #
8739 # Check to make sure the static flag actually works.
8740 #
8741 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8743 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8744 if ${lt_cv_prog_compiler_static_works+:} false; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 lt_cv_prog_compiler_static_works=no
8748 save_LDFLAGS="$LDFLAGS"
8749 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8750 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8751 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8752 # The linker can only warn and ignore the option if not recognized
8753 # So say no if there are warnings
8754 if test -s conftest.err; then
8755 # Append any errors to the config.log.
8756 cat conftest.err 1>&5
8757 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8758 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8759 if diff conftest.exp conftest.er2 >/dev/null; then
8760 lt_cv_prog_compiler_static_works=yes
8761 fi
8762 else
8763 lt_cv_prog_compiler_static_works=yes
8764 fi
8765 fi
8766 $RM -r conftest*
8767 LDFLAGS="$save_LDFLAGS"
8768
8769 fi
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8771 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8772
8773 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8774 :
8775 else
8776 lt_prog_compiler_static=
8777 fi
8778
8779
8780
8781
8782
8783
8784
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8786 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8787 if ${lt_cv_prog_compiler_c_o+:} false; then :
8788 $as_echo_n "(cached) " >&6
8789 else
8790 lt_cv_prog_compiler_c_o=no
8791 $RM -r conftest 2>/dev/null
8792 mkdir conftest
8793 cd conftest
8794 mkdir out
8795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8796
8797 lt_compiler_flag="-o out/conftest2.$ac_objext"
8798 # Insert the option either (1) after the last *FLAGS variable, or
8799 # (2) before a word containing "conftest.", or (3) at the end.
8800 # Note that $ac_compile itself does not contain backslashes and begins
8801 # with a dollar sign (not a hyphen), so the echo should work correctly.
8802 lt_compile=`echo "$ac_compile" | $SED \
8803 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8804 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8805 -e 's:$: $lt_compiler_flag:'`
8806 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8807 (eval "$lt_compile" 2>out/conftest.err)
8808 ac_status=$?
8809 cat out/conftest.err >&5
8810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8812 then
8813 # The compiler can only warn and ignore the option if not recognized
8814 # So say no if there are warnings
8815 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8816 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8817 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8818 lt_cv_prog_compiler_c_o=yes
8819 fi
8820 fi
8821 chmod u+w . 2>&5
8822 $RM conftest*
8823 # SGI C++ compiler will create directory out/ii_files/ for
8824 # template instantiation
8825 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8826 $RM out/* && rmdir out
8827 cd ..
8828 $RM -r conftest
8829 $RM conftest*
8830
8831 fi
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8833 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8834
8835
8836
8837
8838
8839
8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8841 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8842 if ${lt_cv_prog_compiler_c_o+:} false; then :
8843 $as_echo_n "(cached) " >&6
8844 else
8845 lt_cv_prog_compiler_c_o=no
8846 $RM -r conftest 2>/dev/null
8847 mkdir conftest
8848 cd conftest
8849 mkdir out
8850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8851
8852 lt_compiler_flag="-o out/conftest2.$ac_objext"
8853 # Insert the option either (1) after the last *FLAGS variable, or
8854 # (2) before a word containing "conftest.", or (3) at the end.
8855 # Note that $ac_compile itself does not contain backslashes and begins
8856 # with a dollar sign (not a hyphen), so the echo should work correctly.
8857 lt_compile=`echo "$ac_compile" | $SED \
8858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8860 -e 's:$: $lt_compiler_flag:'`
8861 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8862 (eval "$lt_compile" 2>out/conftest.err)
8863 ac_status=$?
8864 cat out/conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8867 then
8868 # The compiler can only warn and ignore the option if not recognized
8869 # So say no if there are warnings
8870 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8871 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8872 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8873 lt_cv_prog_compiler_c_o=yes
8874 fi
8875 fi
8876 chmod u+w . 2>&5
8877 $RM conftest*
8878 # SGI C++ compiler will create directory out/ii_files/ for
8879 # template instantiation
8880 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8881 $RM out/* && rmdir out
8882 cd ..
8883 $RM -r conftest
8884 $RM conftest*
8885
8886 fi
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8888 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8889
8890
8891
8892
8893 hard_links="nottested"
8894 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8895 # do not overwrite the value of need_locks provided by the user
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8897 $as_echo_n "checking if we can lock with hard links... " >&6; }
8898 hard_links=yes
8899 $RM conftest*
8900 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8901 touch conftest.a
8902 ln conftest.a conftest.b 2>&5 || hard_links=no
8903 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8905 $as_echo "$hard_links" >&6; }
8906 if test "$hard_links" = no; then
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8908 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8909 need_locks=warn
8910 fi
8911 else
8912 need_locks=no
8913 fi
8914
8915
8916
8917
8918
8919
8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8921 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8922
8923 runpath_var=
8924 allow_undefined_flag=
8925 always_export_symbols=no
8926 archive_cmds=
8927 archive_expsym_cmds=
8928 compiler_needs_object=no
8929 enable_shared_with_static_runtimes=no
8930 export_dynamic_flag_spec=
8931 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8932 hardcode_automatic=no
8933 hardcode_direct=no
8934 hardcode_direct_absolute=no
8935 hardcode_libdir_flag_spec=
8936 hardcode_libdir_separator=
8937 hardcode_minus_L=no
8938 hardcode_shlibpath_var=unsupported
8939 inherit_rpath=no
8940 link_all_deplibs=unknown
8941 module_cmds=
8942 module_expsym_cmds=
8943 old_archive_from_new_cmds=
8944 old_archive_from_expsyms_cmds=
8945 thread_safe_flag_spec=
8946 whole_archive_flag_spec=
8947 # include_expsyms should be a list of space-separated symbols to be *always*
8948 # included in the symbol list
8949 include_expsyms=
8950 # exclude_expsyms can be an extended regexp of symbols to exclude
8951 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8952 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8953 # as well as any symbol that contains `d'.
8954 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8955 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8956 # platforms (ab)use it in PIC code, but their linkers get confused if
8957 # the symbol is explicitly referenced. Since portable code cannot
8958 # rely on this symbol name, it's probably fine to never include it in
8959 # preloaded symbol tables.
8960 # Exclude shared library initialization/finalization symbols.
8961 extract_expsyms_cmds=
8962
8963 case $host_os in
8964 cygwin* | mingw* | pw32* | cegcc*)
8965 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8966 # When not using gcc, we currently assume that we are using
8967 # Microsoft Visual C++.
8968 if test "$GCC" != yes; then
8969 with_gnu_ld=no
8970 fi
8971 ;;
8972 interix*)
8973 # we just hope/assume this is gcc and not c89 (= MSVC++)
8974 with_gnu_ld=yes
8975 ;;
8976 openbsd*)
8977 with_gnu_ld=no
8978 ;;
8979 esac
8980
8981 ld_shlibs=yes
8982
8983 # On some targets, GNU ld is compatible enough with the native linker
8984 # that we're better off using the native interface for both.
8985 lt_use_gnu_ld_interface=no
8986 if test "$with_gnu_ld" = yes; then
8987 case $host_os in
8988 aix*)
8989 # The AIX port of GNU ld has always aspired to compatibility
8990 # with the native linker. However, as the warning in the GNU ld
8991 # block says, versions before 2.19.5* couldn't really create working
8992 # shared libraries, regardless of the interface used.
8993 case `$LD -v 2>&1` in
8994 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8995 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8996 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8997 *)
8998 lt_use_gnu_ld_interface=yes
8999 ;;
9000 esac
9001 ;;
9002 *)
9003 lt_use_gnu_ld_interface=yes
9004 ;;
9005 esac
9006 fi
9007
9008 if test "$lt_use_gnu_ld_interface" = yes; then
9009 # If archive_cmds runs LD, not CC, wlarc should be empty
9010 wlarc='${wl}'
9011
9012 # Set some defaults for GNU ld with shared library support. These
9013 # are reset later if shared libraries are not supported. Putting them
9014 # here allows them to be overridden if necessary.
9015 runpath_var=LD_RUN_PATH
9016 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9017 export_dynamic_flag_spec='${wl}--export-dynamic'
9018 # ancient GNU ld didn't support --whole-archive et. al.
9019 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9020 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9021 else
9022 whole_archive_flag_spec=
9023 fi
9024 supports_anon_versioning=no
9025 case `$LD -v 2>&1` in
9026 *GNU\ gold*) supports_anon_versioning=yes ;;
9027 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9028 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9029 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9030 *\ 2.11.*) ;; # other 2.11 versions
9031 *) supports_anon_versioning=yes ;;
9032 esac
9033
9034 # See if GNU ld supports shared libraries.
9035 case $host_os in
9036 aix[3-9]*)
9037 # On AIX/PPC, the GNU linker is very broken
9038 if test "$host_cpu" != ia64; then
9039 ld_shlibs=no
9040 cat <<_LT_EOF 1>&2
9041
9042 *** Warning: the GNU linker, at least up to release 2.19, is reported
9043 *** to be unable to reliably create shared libraries on AIX.
9044 *** Therefore, libtool is disabling shared libraries support. If you
9045 *** really care for shared libraries, you may want to install binutils
9046 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9047 *** You will then need to restart the configuration process.
9048
9049 _LT_EOF
9050 fi
9051 ;;
9052
9053 amigaos*)
9054 case $host_cpu in
9055 powerpc)
9056 # see comment about AmigaOS4 .so support
9057 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9058 archive_expsym_cmds=''
9059 ;;
9060 m68k)
9061 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)'
9062 hardcode_libdir_flag_spec='-L$libdir'
9063 hardcode_minus_L=yes
9064 ;;
9065 esac
9066 ;;
9067
9068 beos*)
9069 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9070 allow_undefined_flag=unsupported
9071 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9072 # support --undefined. This deserves some investigation. FIXME
9073 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9074 else
9075 ld_shlibs=no
9076 fi
9077 ;;
9078
9079 cygwin* | mingw* | pw32* | cegcc*)
9080 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9081 # as there is no search path for DLLs.
9082 hardcode_libdir_flag_spec='-L$libdir'
9083 export_dynamic_flag_spec='${wl}--export-all-symbols'
9084 allow_undefined_flag=unsupported
9085 always_export_symbols=no
9086 enable_shared_with_static_runtimes=yes
9087 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'
9088 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9089
9090 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9091 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9092 # If the export-symbols file already is a .def file (1st line
9093 # is EXPORTS), use it as is; otherwise, prepend...
9094 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9095 cp $export_symbols $output_objdir/$soname.def;
9096 else
9097 echo EXPORTS > $output_objdir/$soname.def;
9098 cat $export_symbols >> $output_objdir/$soname.def;
9099 fi~
9100 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9101 else
9102 ld_shlibs=no
9103 fi
9104 ;;
9105
9106 haiku*)
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 link_all_deplibs=yes
9109 ;;
9110
9111 interix[3-9]*)
9112 hardcode_direct=no
9113 hardcode_shlibpath_var=no
9114 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9115 export_dynamic_flag_spec='${wl}-E'
9116 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9117 # Instead, shared libraries are loaded at an image base (0x10000000 by
9118 # default) and relocated if they conflict, which is a slow very memory
9119 # consuming and fragmenting process. To avoid this, we pick a random,
9120 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9121 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9122 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9123 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'
9124 ;;
9125
9126 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9127 tmp_diet=no
9128 if test "$host_os" = linux-dietlibc; then
9129 case $cc_basename in
9130 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9131 esac
9132 fi
9133 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9134 && test "$tmp_diet" = no
9135 then
9136 tmp_addflag=' $pic_flag'
9137 tmp_sharedflag='-shared'
9138 case $cc_basename,$host_cpu in
9139 pgcc*) # Portland Group C compiler
9140 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'
9141 tmp_addflag=' $pic_flag'
9142 ;;
9143 pgf77* | pgf90* | pgf95* | pgfortran*)
9144 # Portland Group f77 and f90 compilers
9145 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'
9146 tmp_addflag=' $pic_flag -Mnomain' ;;
9147 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9148 tmp_addflag=' -i_dynamic' ;;
9149 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9150 tmp_addflag=' -i_dynamic -nofor_main' ;;
9151 ifc* | ifort*) # Intel Fortran compiler
9152 tmp_addflag=' -nofor_main' ;;
9153 lf95*) # Lahey Fortran 8.1
9154 whole_archive_flag_spec=
9155 tmp_sharedflag='--shared' ;;
9156 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9157 tmp_sharedflag='-qmkshrobj'
9158 tmp_addflag= ;;
9159 nvcc*) # Cuda Compiler Driver 2.2
9160 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'
9161 compiler_needs_object=yes
9162 ;;
9163 esac
9164 case `$CC -V 2>&1 | sed 5q` in
9165 *Sun\ C*) # Sun C 5.9
9166 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'
9167 compiler_needs_object=yes
9168 tmp_sharedflag='-G' ;;
9169 *Sun\ F*) # Sun Fortran 8.3
9170 tmp_sharedflag='-G' ;;
9171 esac
9172 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9173
9174 if test "x$supports_anon_versioning" = xyes; then
9175 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9176 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9177 echo "local: *; };" >> $output_objdir/$libname.ver~
9178 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9179 fi
9180
9181 case $cc_basename in
9182 xlf* | bgf* | bgxlf* | mpixlf*)
9183 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9184 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9186 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9187 if test "x$supports_anon_versioning" = xyes; then
9188 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9189 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9190 echo "local: *; };" >> $output_objdir/$libname.ver~
9191 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9192 fi
9193 ;;
9194 esac
9195 else
9196 ld_shlibs=no
9197 fi
9198 ;;
9199
9200 netbsd*)
9201 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9202 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9203 wlarc=
9204 else
9205 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9206 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9207 fi
9208 ;;
9209
9210 solaris*)
9211 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9212 ld_shlibs=no
9213 cat <<_LT_EOF 1>&2
9214
9215 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9216 *** create shared libraries on Solaris systems. Therefore, libtool
9217 *** is disabling shared libraries support. We urge you to upgrade GNU
9218 *** binutils to release 2.9.1 or newer. Another option is to modify
9219 *** your PATH or compiler configuration so that the native linker is
9220 *** used, and then restart.
9221
9222 _LT_EOF
9223 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9224 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9225 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9226 else
9227 ld_shlibs=no
9228 fi
9229 ;;
9230
9231 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9232 case `$LD -v 2>&1` in
9233 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9234 ld_shlibs=no
9235 cat <<_LT_EOF 1>&2
9236
9237 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9238 *** reliably create shared libraries on SCO systems. Therefore, libtool
9239 *** is disabling shared libraries support. We urge you to upgrade GNU
9240 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9241 *** your PATH or compiler configuration so that the native linker is
9242 *** used, and then restart.
9243
9244 _LT_EOF
9245 ;;
9246 *)
9247 # For security reasons, it is highly recommended that you always
9248 # use absolute paths for naming shared libraries, and exclude the
9249 # DT_RUNPATH tag from executables and libraries. But doing so
9250 # requires that you compile everything twice, which is a pain.
9251 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9252 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9254 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9255 else
9256 ld_shlibs=no
9257 fi
9258 ;;
9259 esac
9260 ;;
9261
9262 sunos4*)
9263 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9264 wlarc=
9265 hardcode_direct=yes
9266 hardcode_shlibpath_var=no
9267 ;;
9268
9269 *)
9270 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9271 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9273 else
9274 ld_shlibs=no
9275 fi
9276 ;;
9277 esac
9278
9279 if test "$ld_shlibs" = no; then
9280 runpath_var=
9281 hardcode_libdir_flag_spec=
9282 export_dynamic_flag_spec=
9283 whole_archive_flag_spec=
9284 fi
9285 else
9286 # PORTME fill in a description of your system's linker (not GNU ld)
9287 case $host_os in
9288 aix3*)
9289 allow_undefined_flag=unsupported
9290 always_export_symbols=yes
9291 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'
9292 # Note: this linker hardcodes the directories in LIBPATH if there
9293 # are no directories specified by -L.
9294 hardcode_minus_L=yes
9295 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9296 # Neither direct hardcoding nor static linking is supported with a
9297 # broken collect2.
9298 hardcode_direct=unsupported
9299 fi
9300 ;;
9301
9302 aix[4-9]*)
9303 if test "$host_cpu" = ia64; then
9304 # On IA64, the linker does run time linking by default, so we don't
9305 # have to do anything special.
9306 aix_use_runtimelinking=no
9307 exp_sym_flag='-Bexport'
9308 no_entry_flag=""
9309 else
9310 # If we're using GNU nm, then we don't want the "-C" option.
9311 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9312 # Also, AIX nm treats weak defined symbols like other global
9313 # defined symbols, whereas GNU nm marks them as "W".
9314 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9315 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9316 else
9317 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9318 fi
9319 aix_use_runtimelinking=no
9320
9321 # Test if we are trying to use run time linking or normal
9322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9323 # need to do runtime linking.
9324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9325 for ld_flag in $LDFLAGS; do
9326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9327 aix_use_runtimelinking=yes
9328 break
9329 fi
9330 done
9331 ;;
9332 esac
9333
9334 exp_sym_flag='-bexport'
9335 no_entry_flag='-bnoentry'
9336 fi
9337
9338 # When large executables or shared objects are built, AIX ld can
9339 # have problems creating the table of contents. If linking a library
9340 # or program results in "error TOC overflow" add -mminimal-toc to
9341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9343
9344 archive_cmds=''
9345 hardcode_direct=yes
9346 hardcode_direct_absolute=yes
9347 hardcode_libdir_separator=':'
9348 link_all_deplibs=yes
9349 file_list_spec='${wl}-f,'
9350
9351 if test "$GCC" = yes; then
9352 case $host_os in aix4.[012]|aix4.[012].*)
9353 # We only want to do this on AIX 4.2 and lower, the check
9354 # below for broken collect2 doesn't work under 4.3+
9355 collect2name=`${CC} -print-prog-name=collect2`
9356 if test -f "$collect2name" &&
9357 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9358 then
9359 # We have reworked collect2
9360 :
9361 else
9362 # We have old collect2
9363 hardcode_direct=unsupported
9364 # It fails to find uninstalled libraries when the uninstalled
9365 # path is not listed in the libpath. Setting hardcode_minus_L
9366 # to unsupported forces relinking
9367 hardcode_minus_L=yes
9368 hardcode_libdir_flag_spec='-L$libdir'
9369 hardcode_libdir_separator=
9370 fi
9371 ;;
9372 esac
9373 shared_flag='-shared'
9374 if test "$aix_use_runtimelinking" = yes; then
9375 shared_flag="$shared_flag "'${wl}-G'
9376 fi
9377 else
9378 # not using gcc
9379 if test "$host_cpu" = ia64; then
9380 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9381 # chokes on -Wl,-G. The following line is correct:
9382 shared_flag='-G'
9383 else
9384 if test "$aix_use_runtimelinking" = yes; then
9385 shared_flag='${wl}-G'
9386 else
9387 shared_flag='${wl}-bM:SRE'
9388 fi
9389 fi
9390 fi
9391
9392 export_dynamic_flag_spec='${wl}-bexpall'
9393 # It seems that -bexpall does not export symbols beginning with
9394 # underscore (_), so it is better to generate a list of symbols to export.
9395 always_export_symbols=yes
9396 if test "$aix_use_runtimelinking" = yes; then
9397 # Warning - without using the other runtime loading flags (-brtl),
9398 # -berok will link without error, but may produce a broken library.
9399 allow_undefined_flag='-berok'
9400 # Determine the default libpath from the value encoded in an
9401 # empty executable.
9402 if test "${lt_cv_aix_libpath+set}" = set; then
9403 aix_libpath=$lt_cv_aix_libpath
9404 else
9405 if ${lt_cv_aix_libpath_+:} false; then :
9406 $as_echo_n "(cached) " >&6
9407 else
9408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9409 /* end confdefs.h. */
9410
9411 int
9412 main ()
9413 {
9414
9415 ;
9416 return 0;
9417 }
9418 _ACEOF
9419 if ac_fn_c_try_link "$LINENO"; then :
9420
9421 lt_aix_libpath_sed='
9422 /Import File Strings/,/^$/ {
9423 /^0/ {
9424 s/^0 *\([^ ]*\) *$/\1/
9425 p
9426 }
9427 }'
9428 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9429 # Check for a 64-bit object if we didn't find anything.
9430 if test -z "$lt_cv_aix_libpath_"; then
9431 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9432 fi
9433 fi
9434 rm -f core conftest.err conftest.$ac_objext \
9435 conftest$ac_exeext conftest.$ac_ext
9436 if test -z "$lt_cv_aix_libpath_"; then
9437 lt_cv_aix_libpath_="/usr/lib:/lib"
9438 fi
9439
9440 fi
9441
9442 aix_libpath=$lt_cv_aix_libpath_
9443 fi
9444
9445 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9446 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9447 else
9448 if test "$host_cpu" = ia64; then
9449 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9450 allow_undefined_flag="-z nodefs"
9451 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"
9452 else
9453 # Determine the default libpath from the value encoded in an
9454 # empty executable.
9455 if test "${lt_cv_aix_libpath+set}" = set; then
9456 aix_libpath=$lt_cv_aix_libpath
9457 else
9458 if ${lt_cv_aix_libpath_+:} false; then :
9459 $as_echo_n "(cached) " >&6
9460 else
9461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9462 /* end confdefs.h. */
9463
9464 int
9465 main ()
9466 {
9467
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 if ac_fn_c_try_link "$LINENO"; then :
9473
9474 lt_aix_libpath_sed='
9475 /Import File Strings/,/^$/ {
9476 /^0/ {
9477 s/^0 *\([^ ]*\) *$/\1/
9478 p
9479 }
9480 }'
9481 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9482 # Check for a 64-bit object if we didn't find anything.
9483 if test -z "$lt_cv_aix_libpath_"; then
9484 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9485 fi
9486 fi
9487 rm -f core conftest.err conftest.$ac_objext \
9488 conftest$ac_exeext conftest.$ac_ext
9489 if test -z "$lt_cv_aix_libpath_"; then
9490 lt_cv_aix_libpath_="/usr/lib:/lib"
9491 fi
9492
9493 fi
9494
9495 aix_libpath=$lt_cv_aix_libpath_
9496 fi
9497
9498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9499 # Warning - without using the other run time loading flags,
9500 # -berok will link without error, but may produce a broken library.
9501 no_undefined_flag=' ${wl}-bernotok'
9502 allow_undefined_flag=' ${wl}-berok'
9503 if test "$with_gnu_ld" = yes; then
9504 # We only use this code for GNU lds that support --whole-archive.
9505 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9506 else
9507 # Exported symbols can be pulled into shared objects from archives
9508 whole_archive_flag_spec='$convenience'
9509 fi
9510 archive_cmds_need_lc=yes
9511 # This is similar to how AIX traditionally builds its shared libraries.
9512 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9513 fi
9514 fi
9515 ;;
9516
9517 amigaos*)
9518 case $host_cpu in
9519 powerpc)
9520 # see comment about AmigaOS4 .so support
9521 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9522 archive_expsym_cmds=''
9523 ;;
9524 m68k)
9525 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)'
9526 hardcode_libdir_flag_spec='-L$libdir'
9527 hardcode_minus_L=yes
9528 ;;
9529 esac
9530 ;;
9531
9532 bsdi[45]*)
9533 export_dynamic_flag_spec=-rdynamic
9534 ;;
9535
9536 cygwin* | mingw* | pw32* | cegcc*)
9537 # When not using gcc, we currently assume that we are using
9538 # Microsoft Visual C++.
9539 # hardcode_libdir_flag_spec is actually meaningless, as there is
9540 # no search path for DLLs.
9541 case $cc_basename in
9542 cl*)
9543 # Native MSVC
9544 hardcode_libdir_flag_spec=' '
9545 allow_undefined_flag=unsupported
9546 always_export_symbols=yes
9547 file_list_spec='@'
9548 # Tell ltmain to make .lib files, not .a files.
9549 libext=lib
9550 # Tell ltmain to make .dll files, not .so files.
9551 shrext_cmds=".dll"
9552 # FIXME: Setting linknames here is a bad hack.
9553 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9554 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9555 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9556 else
9557 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9558 fi~
9559 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9560 linknames='
9561 # The linker will not automatically build a static lib if we build a DLL.
9562 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9563 enable_shared_with_static_runtimes=yes
9564 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9565 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9566 # Don't use ranlib
9567 old_postinstall_cmds='chmod 644 $oldlib'
9568 postlink_cmds='lt_outputfile="@OUTPUT@"~
9569 lt_tool_outputfile="@TOOL_OUTPUT@"~
9570 case $lt_outputfile in
9571 *.exe|*.EXE) ;;
9572 *)
9573 lt_outputfile="$lt_outputfile.exe"
9574 lt_tool_outputfile="$lt_tool_outputfile.exe"
9575 ;;
9576 esac~
9577 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9578 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9579 $RM "$lt_outputfile.manifest";
9580 fi'
9581 ;;
9582 *)
9583 # Assume MSVC wrapper
9584 hardcode_libdir_flag_spec=' '
9585 allow_undefined_flag=unsupported
9586 # Tell ltmain to make .lib files, not .a files.
9587 libext=lib
9588 # Tell ltmain to make .dll files, not .so files.
9589 shrext_cmds=".dll"
9590 # FIXME: Setting linknames here is a bad hack.
9591 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9592 # The linker will automatically build a .lib file if we build a DLL.
9593 old_archive_from_new_cmds='true'
9594 # FIXME: Should let the user specify the lib program.
9595 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9596 enable_shared_with_static_runtimes=yes
9597 ;;
9598 esac
9599 ;;
9600
9601 darwin* | rhapsody*)
9602
9603
9604 archive_cmds_need_lc=no
9605 hardcode_direct=no
9606 hardcode_automatic=yes
9607 hardcode_shlibpath_var=unsupported
9608 if test "$lt_cv_ld_force_load" = "yes"; then
9609 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\"`'
9610
9611 else
9612 whole_archive_flag_spec=''
9613 fi
9614 link_all_deplibs=yes
9615 allow_undefined_flag="$_lt_dar_allow_undefined"
9616 case $cc_basename in
9617 ifort*) _lt_dar_can_shared=yes ;;
9618 *) _lt_dar_can_shared=$GCC ;;
9619 esac
9620 if test "$_lt_dar_can_shared" = "yes"; then
9621 output_verbose_link_cmd=func_echo_all
9622 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9623 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9624 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}"
9625 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}"
9626
9627 else
9628 ld_shlibs=no
9629 fi
9630
9631 ;;
9632
9633 dgux*)
9634 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9640 # support. Future versions do this automatically, but an explicit c++rt0.o
9641 # does not break anything, and helps significantly (at the cost of a little
9642 # extra space).
9643 freebsd2.2*)
9644 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9645 hardcode_libdir_flag_spec='-R$libdir'
9646 hardcode_direct=yes
9647 hardcode_shlibpath_var=no
9648 ;;
9649
9650 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9651 freebsd2.*)
9652 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9653 hardcode_direct=yes
9654 hardcode_minus_L=yes
9655 hardcode_shlibpath_var=no
9656 ;;
9657
9658 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9659 freebsd* | dragonfly*)
9660 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9661 hardcode_libdir_flag_spec='-R$libdir'
9662 hardcode_direct=yes
9663 hardcode_shlibpath_var=no
9664 ;;
9665
9666 hpux9*)
9667 if test "$GCC" = yes; then
9668 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9669 else
9670 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9671 fi
9672 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9673 hardcode_libdir_separator=:
9674 hardcode_direct=yes
9675
9676 # hardcode_minus_L: Not really in the search PATH,
9677 # but as the default location of the library.
9678 hardcode_minus_L=yes
9679 export_dynamic_flag_spec='${wl}-E'
9680 ;;
9681
9682 hpux10*)
9683 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9684 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9685 else
9686 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9687 fi
9688 if test "$with_gnu_ld" = no; then
9689 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9690 hardcode_libdir_separator=:
9691 hardcode_direct=yes
9692 hardcode_direct_absolute=yes
9693 export_dynamic_flag_spec='${wl}-E'
9694 # hardcode_minus_L: Not really in the search PATH,
9695 # but as the default location of the library.
9696 hardcode_minus_L=yes
9697 fi
9698 ;;
9699
9700 hpux11*)
9701 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9702 case $host_cpu in
9703 hppa*64*)
9704 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9705 ;;
9706 ia64*)
9707 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9708 ;;
9709 *)
9710 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9711 ;;
9712 esac
9713 else
9714 case $host_cpu in
9715 hppa*64*)
9716 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9717 ;;
9718 ia64*)
9719 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9720 ;;
9721 *)
9722
9723 # Older versions of the 11.00 compiler do not understand -b yet
9724 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9726 $as_echo_n "checking if $CC understands -b... " >&6; }
9727 if ${lt_cv_prog_compiler__b+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729 else
9730 lt_cv_prog_compiler__b=no
9731 save_LDFLAGS="$LDFLAGS"
9732 LDFLAGS="$LDFLAGS -b"
9733 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9734 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9735 # The linker can only warn and ignore the option if not recognized
9736 # So say no if there are warnings
9737 if test -s conftest.err; then
9738 # Append any errors to the config.log.
9739 cat conftest.err 1>&5
9740 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9741 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9742 if diff conftest.exp conftest.er2 >/dev/null; then
9743 lt_cv_prog_compiler__b=yes
9744 fi
9745 else
9746 lt_cv_prog_compiler__b=yes
9747 fi
9748 fi
9749 $RM -r conftest*
9750 LDFLAGS="$save_LDFLAGS"
9751
9752 fi
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9754 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9755
9756 if test x"$lt_cv_prog_compiler__b" = xyes; then
9757 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758 else
9759 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760 fi
9761
9762 ;;
9763 esac
9764 fi
9765 if test "$with_gnu_ld" = no; then
9766 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9767 hardcode_libdir_separator=:
9768
9769 case $host_cpu in
9770 hppa*64*|ia64*)
9771 hardcode_direct=no
9772 hardcode_shlibpath_var=no
9773 ;;
9774 *)
9775 hardcode_direct=yes
9776 hardcode_direct_absolute=yes
9777 export_dynamic_flag_spec='${wl}-E'
9778
9779 # hardcode_minus_L: Not really in the search PATH,
9780 # but as the default location of the library.
9781 hardcode_minus_L=yes
9782 ;;
9783 esac
9784 fi
9785 ;;
9786
9787 irix5* | irix6* | nonstopux*)
9788 if test "$GCC" = yes; then
9789 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'
9790 # Try to use the -exported_symbol ld option, if it does not
9791 # work, assume that -exports_file does not work either and
9792 # implicitly export all symbols.
9793 # This should be the same for all languages, so no per-tag cache variable.
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9795 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9796 if ${lt_cv_irix_exported_symbol+:} false; then :
9797 $as_echo_n "(cached) " >&6
9798 else
9799 save_LDFLAGS="$LDFLAGS"
9800 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9802 /* end confdefs.h. */
9803 int foo (void) { return 0; }
9804 _ACEOF
9805 if ac_fn_c_try_link "$LINENO"; then :
9806 lt_cv_irix_exported_symbol=yes
9807 else
9808 lt_cv_irix_exported_symbol=no
9809 fi
9810 rm -f core conftest.err conftest.$ac_objext \
9811 conftest$ac_exeext conftest.$ac_ext
9812 LDFLAGS="$save_LDFLAGS"
9813 fi
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9815 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9816 if test "$lt_cv_irix_exported_symbol" = yes; then
9817 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'
9818 fi
9819 else
9820 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'
9821 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'
9822 fi
9823 archive_cmds_need_lc='no'
9824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9825 hardcode_libdir_separator=:
9826 inherit_rpath=yes
9827 link_all_deplibs=yes
9828 ;;
9829
9830 netbsd*)
9831 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9833 else
9834 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9835 fi
9836 hardcode_libdir_flag_spec='-R$libdir'
9837 hardcode_direct=yes
9838 hardcode_shlibpath_var=no
9839 ;;
9840
9841 newsos6)
9842 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9843 hardcode_direct=yes
9844 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9845 hardcode_libdir_separator=:
9846 hardcode_shlibpath_var=no
9847 ;;
9848
9849 *nto* | *qnx*)
9850 ;;
9851
9852 openbsd*)
9853 if test -f /usr/libexec/ld.so; then
9854 hardcode_direct=yes
9855 hardcode_shlibpath_var=no
9856 hardcode_direct_absolute=yes
9857 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9859 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9860 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9861 export_dynamic_flag_spec='${wl}-E'
9862 else
9863 case $host_os in
9864 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9865 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9866 hardcode_libdir_flag_spec='-R$libdir'
9867 ;;
9868 *)
9869 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9870 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9871 ;;
9872 esac
9873 fi
9874 else
9875 ld_shlibs=no
9876 fi
9877 ;;
9878
9879 os2*)
9880 hardcode_libdir_flag_spec='-L$libdir'
9881 hardcode_minus_L=yes
9882 allow_undefined_flag=unsupported
9883 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9884 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9885 ;;
9886
9887 osf3*)
9888 if test "$GCC" = yes; then
9889 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9890 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'
9891 else
9892 allow_undefined_flag=' -expect_unresolved \*'
9893 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'
9894 fi
9895 archive_cmds_need_lc='no'
9896 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9897 hardcode_libdir_separator=:
9898 ;;
9899
9900 osf4* | osf5*) # as osf3* with the addition of -msym flag
9901 if test "$GCC" = yes; then
9902 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9903 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'
9904 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9905 else
9906 allow_undefined_flag=' -expect_unresolved \*'
9907 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'
9908 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~
9909 $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'
9910
9911 # Both c and cxx compiler support -rpath directly
9912 hardcode_libdir_flag_spec='-rpath $libdir'
9913 fi
9914 archive_cmds_need_lc='no'
9915 hardcode_libdir_separator=:
9916 ;;
9917
9918 solaris*)
9919 no_undefined_flag=' -z defs'
9920 if test "$GCC" = yes; then
9921 wlarc='${wl}'
9922 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9923 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9924 $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'
9925 else
9926 case `$CC -V 2>&1` in
9927 *"Compilers 5.0"*)
9928 wlarc=''
9929 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9930 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9931 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9932 ;;
9933 *)
9934 wlarc='${wl}'
9935 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9936 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9937 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9938 ;;
9939 esac
9940 fi
9941 hardcode_libdir_flag_spec='-R$libdir'
9942 hardcode_shlibpath_var=no
9943 case $host_os in
9944 solaris2.[0-5] | solaris2.[0-5].*) ;;
9945 *)
9946 # The compiler driver will combine and reorder linker options,
9947 # but understands `-z linker_flag'. GCC discards it without `$wl',
9948 # but is careful enough not to reorder.
9949 # Supported since Solaris 2.6 (maybe 2.5.1?)
9950 if test "$GCC" = yes; then
9951 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9952 else
9953 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9954 fi
9955 ;;
9956 esac
9957 link_all_deplibs=yes
9958 ;;
9959
9960 sunos4*)
9961 if test "x$host_vendor" = xsequent; then
9962 # Use $CC to link under sequent, because it throws in some extra .o
9963 # files that make .init and .fini sections work.
9964 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9965 else
9966 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9967 fi
9968 hardcode_libdir_flag_spec='-L$libdir'
9969 hardcode_direct=yes
9970 hardcode_minus_L=yes
9971 hardcode_shlibpath_var=no
9972 ;;
9973
9974 sysv4)
9975 case $host_vendor in
9976 sni)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_direct=yes # is this really true???
9979 ;;
9980 siemens)
9981 ## LD is ld it makes a PLAMLIB
9982 ## CC just makes a GrossModule.
9983 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9984 reload_cmds='$CC -r -o $output$reload_objs'
9985 hardcode_direct=no
9986 ;;
9987 motorola)
9988 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9989 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9990 ;;
9991 esac
9992 runpath_var='LD_RUN_PATH'
9993 hardcode_shlibpath_var=no
9994 ;;
9995
9996 sysv4.3*)
9997 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9998 hardcode_shlibpath_var=no
9999 export_dynamic_flag_spec='-Bexport'
10000 ;;
10001
10002 sysv4*MP*)
10003 if test -d /usr/nec; then
10004 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10005 hardcode_shlibpath_var=no
10006 runpath_var=LD_RUN_PATH
10007 hardcode_runpath_var=yes
10008 ld_shlibs=yes
10009 fi
10010 ;;
10011
10012 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10013 no_undefined_flag='${wl}-z,text'
10014 archive_cmds_need_lc=no
10015 hardcode_shlibpath_var=no
10016 runpath_var='LD_RUN_PATH'
10017
10018 if test "$GCC" = yes; then
10019 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10020 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10021 else
10022 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10024 fi
10025 ;;
10026
10027 sysv5* | sco3.2v5* | sco5v6*)
10028 # Note: We can NOT use -z defs as we might desire, because we do not
10029 # link with -lc, and that would cause any symbols used from libc to
10030 # always be unresolved, which means just about no library would
10031 # ever link correctly. If we're not using GNU ld we use -z text
10032 # though, which does catch some bad symbols but isn't as heavy-handed
10033 # as -z defs.
10034 no_undefined_flag='${wl}-z,text'
10035 allow_undefined_flag='${wl}-z,nodefs'
10036 archive_cmds_need_lc=no
10037 hardcode_shlibpath_var=no
10038 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10039 hardcode_libdir_separator=':'
10040 link_all_deplibs=yes
10041 export_dynamic_flag_spec='${wl}-Bexport'
10042 runpath_var='LD_RUN_PATH'
10043
10044 if test "$GCC" = yes; then
10045 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10046 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10047 else
10048 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10050 fi
10051 ;;
10052
10053 uts4*)
10054 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10055 hardcode_libdir_flag_spec='-L$libdir'
10056 hardcode_shlibpath_var=no
10057 ;;
10058
10059 *)
10060 ld_shlibs=no
10061 ;;
10062 esac
10063
10064 if test x$host_vendor = xsni; then
10065 case $host in
10066 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10067 export_dynamic_flag_spec='${wl}-Blargedynsym'
10068 ;;
10069 esac
10070 fi
10071 fi
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10074 $as_echo "$ld_shlibs" >&6; }
10075 test "$ld_shlibs" = no && can_build_shared=no
10076
10077 with_gnu_ld=$with_gnu_ld
10078
10079
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093 #
10094 # Do we need to explicitly link libc?
10095 #
10096 case "x$archive_cmds_need_lc" in
10097 x|xyes)
10098 # Assume -lc should be added
10099 archive_cmds_need_lc=yes
10100
10101 if test "$enable_shared" = yes && test "$GCC" = yes; then
10102 case $archive_cmds in
10103 *'~'*)
10104 # FIXME: we may have to deal with multi-command sequences.
10105 ;;
10106 '$CC '*)
10107 # Test whether the compiler implicitly links with -lc since on some
10108 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10109 # to ld, don't add -lc before -lgcc.
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10111 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10112 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10113 $as_echo_n "(cached) " >&6
10114 else
10115 $RM conftest*
10116 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10117
10118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10119 (eval $ac_compile) 2>&5
10120 ac_status=$?
10121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10122 test $ac_status = 0; } 2>conftest.err; then
10123 soname=conftest
10124 lib=conftest
10125 libobjs=conftest.$ac_objext
10126 deplibs=
10127 wl=$lt_prog_compiler_wl
10128 pic_flag=$lt_prog_compiler_pic
10129 compiler_flags=-v
10130 linker_flags=-v
10131 verstring=
10132 output_objdir=.
10133 libname=conftest
10134 lt_save_allow_undefined_flag=$allow_undefined_flag
10135 allow_undefined_flag=
10136 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10137 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10138 ac_status=$?
10139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140 test $ac_status = 0; }
10141 then
10142 lt_cv_archive_cmds_need_lc=no
10143 else
10144 lt_cv_archive_cmds_need_lc=yes
10145 fi
10146 allow_undefined_flag=$lt_save_allow_undefined_flag
10147 else
10148 cat conftest.err 1>&5
10149 fi
10150 $RM conftest*
10151
10152 fi
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10154 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10155 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10156 ;;
10157 esac
10158 fi
10159 ;;
10160 esac
10161
10162
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10314 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10315
10316 if test "$GCC" = yes; then
10317 case $host_os in
10318 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10319 *) lt_awk_arg="/^libraries:/" ;;
10320 esac
10321 case $host_os in
10322 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10323 *) lt_sed_strip_eq="s,=/,/,g" ;;
10324 esac
10325 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10326 case $lt_search_path_spec in
10327 *\;*)
10328 # if the path contains ";" then we assume it to be the separator
10329 # otherwise default to the standard path separator (i.e. ":") - it is
10330 # assumed that no part of a normal pathname contains ";" but that should
10331 # okay in the real world where ";" in dirpaths is itself problematic.
10332 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10333 ;;
10334 *)
10335 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10336 ;;
10337 esac
10338 # Ok, now we have the path, separated by spaces, we can step through it
10339 # and add multilib dir if necessary.
10340 lt_tmp_lt_search_path_spec=
10341 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10342 for lt_sys_path in $lt_search_path_spec; do
10343 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10344 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10345 else
10346 test -d "$lt_sys_path" && \
10347 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10348 fi
10349 done
10350 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10351 BEGIN {RS=" "; FS="/|\n";} {
10352 lt_foo="";
10353 lt_count=0;
10354 for (lt_i = NF; lt_i > 0; lt_i--) {
10355 if ($lt_i != "" && $lt_i != ".") {
10356 if ($lt_i == "..") {
10357 lt_count++;
10358 } else {
10359 if (lt_count == 0) {
10360 lt_foo="/" $lt_i lt_foo;
10361 } else {
10362 lt_count--;
10363 }
10364 }
10365 }
10366 }
10367 if (lt_foo != "") { lt_freq[lt_foo]++; }
10368 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10369 }'`
10370 # AWK program above erroneously prepends '/' to C:/dos/paths
10371 # for these hosts.
10372 case $host_os in
10373 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10374 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10375 esac
10376 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10377 else
10378 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10379 fi
10380 library_names_spec=
10381 libname_spec='lib$name'
10382 soname_spec=
10383 shrext_cmds=".so"
10384 postinstall_cmds=
10385 postuninstall_cmds=
10386 finish_cmds=
10387 finish_eval=
10388 shlibpath_var=
10389 shlibpath_overrides_runpath=unknown
10390 version_type=none
10391 dynamic_linker="$host_os ld.so"
10392 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10393 need_lib_prefix=unknown
10394 hardcode_into_libs=no
10395
10396 # when you set need_version to no, make sure it does not cause -set_version
10397 # flags to be left without arguments
10398 need_version=unknown
10399
10400 case $host_os in
10401 aix3*)
10402 version_type=linux # correct to gnu/linux during the next big refactor
10403 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10404 shlibpath_var=LIBPATH
10405
10406 # AIX 3 has no versioning support, so we append a major version to the name.
10407 soname_spec='${libname}${release}${shared_ext}$major'
10408 ;;
10409
10410 aix[4-9]*)
10411 version_type=linux # correct to gnu/linux during the next big refactor
10412 need_lib_prefix=no
10413 need_version=no
10414 hardcode_into_libs=yes
10415 if test "$host_cpu" = ia64; then
10416 # AIX 5 supports IA64
10417 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10418 shlibpath_var=LD_LIBRARY_PATH
10419 else
10420 # With GCC up to 2.95.x, collect2 would create an import file
10421 # for dependence libraries. The import file would start with
10422 # the line `#! .'. This would cause the generated library to
10423 # depend on `.', always an invalid library. This was fixed in
10424 # development snapshots of GCC prior to 3.0.
10425 case $host_os in
10426 aix4 | aix4.[01] | aix4.[01].*)
10427 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10428 echo ' yes '
10429 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10430 :
10431 else
10432 can_build_shared=no
10433 fi
10434 ;;
10435 esac
10436 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10437 # soname into executable. Probably we can add versioning support to
10438 # collect2, so additional links can be useful in future.
10439 if test "$aix_use_runtimelinking" = yes; then
10440 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10441 # instead of lib<name>.a to let people know that these are not
10442 # typical AIX shared libraries.
10443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10444 else
10445 # We preserve .a as extension for shared libraries through AIX4.2
10446 # and later when we are not doing run time linking.
10447 library_names_spec='${libname}${release}.a $libname.a'
10448 soname_spec='${libname}${release}${shared_ext}$major'
10449 fi
10450 shlibpath_var=LIBPATH
10451 fi
10452 ;;
10453
10454 amigaos*)
10455 case $host_cpu in
10456 powerpc)
10457 # Since July 2007 AmigaOS4 officially supports .so libraries.
10458 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10460 ;;
10461 m68k)
10462 library_names_spec='$libname.ixlibrary $libname.a'
10463 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10464 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
10465 ;;
10466 esac
10467 ;;
10468
10469 beos*)
10470 library_names_spec='${libname}${shared_ext}'
10471 dynamic_linker="$host_os ld.so"
10472 shlibpath_var=LIBRARY_PATH
10473 ;;
10474
10475 bsdi[45]*)
10476 version_type=linux # correct to gnu/linux during the next big refactor
10477 need_version=no
10478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10479 soname_spec='${libname}${release}${shared_ext}$major'
10480 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10483 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10484 # the default ld.so.conf also contains /usr/contrib/lib and
10485 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10486 # libtool to hard-code these into programs
10487 ;;
10488
10489 cygwin* | mingw* | pw32* | cegcc*)
10490 version_type=windows
10491 shrext_cmds=".dll"
10492 need_version=no
10493 need_lib_prefix=no
10494
10495 case $GCC,$cc_basename in
10496 yes,*)
10497 # gcc
10498 library_names_spec='$libname.dll.a'
10499 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10500 postinstall_cmds='base_file=`basename \${file}`~
10501 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10502 dldir=$destdir/`dirname \$dlpath`~
10503 test -d \$dldir || mkdir -p \$dldir~
10504 $install_prog $dir/$dlname \$dldir/$dlname~
10505 chmod a+x \$dldir/$dlname~
10506 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10507 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10508 fi'
10509 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10510 dlpath=$dir/\$dldll~
10511 $RM \$dlpath'
10512 shlibpath_overrides_runpath=yes
10513
10514 case $host_os in
10515 cygwin*)
10516 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10517 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10518
10519 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10520 ;;
10521 mingw* | cegcc*)
10522 # MinGW DLLs use traditional 'lib' prefix
10523 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524 ;;
10525 pw32*)
10526 # pw32 DLLs use 'pw' prefix rather than 'lib'
10527 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10528 ;;
10529 esac
10530 dynamic_linker='Win32 ld.exe'
10531 ;;
10532
10533 *,cl*)
10534 # Native MSVC
10535 libname_spec='$name'
10536 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10537 library_names_spec='${libname}.dll.lib'
10538
10539 case $build_os in
10540 mingw*)
10541 sys_lib_search_path_spec=
10542 lt_save_ifs=$IFS
10543 IFS=';'
10544 for lt_path in $LIB
10545 do
10546 IFS=$lt_save_ifs
10547 # Let DOS variable expansion print the short 8.3 style file name.
10548 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10549 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10550 done
10551 IFS=$lt_save_ifs
10552 # Convert to MSYS style.
10553 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10554 ;;
10555 cygwin*)
10556 # Convert to unix form, then to dos form, then back to unix form
10557 # but this time dos style (no spaces!) so that the unix form looks
10558 # like /cygdrive/c/PROGRA~1:/cygdr...
10559 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10560 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10561 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10562 ;;
10563 *)
10564 sys_lib_search_path_spec="$LIB"
10565 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10566 # It is most probably a Windows format PATH.
10567 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10568 else
10569 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10570 fi
10571 # FIXME: find the short name or the path components, as spaces are
10572 # common. (e.g. "Program Files" -> "PROGRA~1")
10573 ;;
10574 esac
10575
10576 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10577 postinstall_cmds='base_file=`basename \${file}`~
10578 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10579 dldir=$destdir/`dirname \$dlpath`~
10580 test -d \$dldir || mkdir -p \$dldir~
10581 $install_prog $dir/$dlname \$dldir/$dlname'
10582 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10583 dlpath=$dir/\$dldll~
10584 $RM \$dlpath'
10585 shlibpath_overrides_runpath=yes
10586 dynamic_linker='Win32 link.exe'
10587 ;;
10588
10589 *)
10590 # Assume MSVC wrapper
10591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10592 dynamic_linker='Win32 ld.exe'
10593 ;;
10594 esac
10595 # FIXME: first we should search . and the directory the executable is in
10596 shlibpath_var=PATH
10597 ;;
10598
10599 darwin* | rhapsody*)
10600 dynamic_linker="$host_os dyld"
10601 version_type=darwin
10602 need_lib_prefix=no
10603 need_version=no
10604 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10605 soname_spec='${libname}${release}${major}$shared_ext'
10606 shlibpath_overrides_runpath=yes
10607 shlibpath_var=DYLD_LIBRARY_PATH
10608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10609
10610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10612 ;;
10613
10614 dgux*)
10615 version_type=linux # correct to gnu/linux during the next big refactor
10616 need_lib_prefix=no
10617 need_version=no
10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10619 soname_spec='${libname}${release}${shared_ext}$major'
10620 shlibpath_var=LD_LIBRARY_PATH
10621 ;;
10622
10623 freebsd* | dragonfly*)
10624 # DragonFly does not have aout. When/if they implement a new
10625 # versioning mechanism, adjust this.
10626 if test -x /usr/bin/objformat; then
10627 objformat=`/usr/bin/objformat`
10628 else
10629 case $host_os in
10630 freebsd[23].*) objformat=aout ;;
10631 *) objformat=elf ;;
10632 esac
10633 fi
10634 version_type=freebsd-$objformat
10635 case $version_type in
10636 freebsd-elf*)
10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10638 need_version=no
10639 need_lib_prefix=no
10640 ;;
10641 freebsd-*)
10642 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10643 need_version=yes
10644 ;;
10645 esac
10646 shlibpath_var=LD_LIBRARY_PATH
10647 case $host_os in
10648 freebsd2.*)
10649 shlibpath_overrides_runpath=yes
10650 ;;
10651 freebsd3.[01]* | freebsdelf3.[01]*)
10652 shlibpath_overrides_runpath=yes
10653 hardcode_into_libs=yes
10654 ;;
10655 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10656 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10657 shlibpath_overrides_runpath=no
10658 hardcode_into_libs=yes
10659 ;;
10660 *) # from 4.6 on, and DragonFly
10661 shlibpath_overrides_runpath=yes
10662 hardcode_into_libs=yes
10663 ;;
10664 esac
10665 ;;
10666
10667 gnu*)
10668 version_type=linux # correct to gnu/linux during the next big refactor
10669 need_lib_prefix=no
10670 need_version=no
10671 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10672 soname_spec='${libname}${release}${shared_ext}$major'
10673 shlibpath_var=LD_LIBRARY_PATH
10674 shlibpath_overrides_runpath=no
10675 hardcode_into_libs=yes
10676 ;;
10677
10678 haiku*)
10679 version_type=linux # correct to gnu/linux during the next big refactor
10680 need_lib_prefix=no
10681 need_version=no
10682 dynamic_linker="$host_os runtime_loader"
10683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10684 soname_spec='${libname}${release}${shared_ext}$major'
10685 shlibpath_var=LIBRARY_PATH
10686 shlibpath_overrides_runpath=yes
10687 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10688 hardcode_into_libs=yes
10689 ;;
10690
10691 hpux9* | hpux10* | hpux11*)
10692 # Give a soname corresponding to the major version so that dld.sl refuses to
10693 # link against other versions.
10694 version_type=sunos
10695 need_lib_prefix=no
10696 need_version=no
10697 case $host_cpu in
10698 ia64*)
10699 shrext_cmds='.so'
10700 hardcode_into_libs=yes
10701 dynamic_linker="$host_os dld.so"
10702 shlibpath_var=LD_LIBRARY_PATH
10703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10705 soname_spec='${libname}${release}${shared_ext}$major'
10706 if test "X$HPUX_IA64_MODE" = X32; then
10707 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10708 else
10709 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10710 fi
10711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10712 ;;
10713 hppa*64*)
10714 shrext_cmds='.sl'
10715 hardcode_into_libs=yes
10716 dynamic_linker="$host_os dld.sl"
10717 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10718 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10720 soname_spec='${libname}${release}${shared_ext}$major'
10721 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10722 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10723 ;;
10724 *)
10725 shrext_cmds='.sl'
10726 dynamic_linker="$host_os dld.sl"
10727 shlibpath_var=SHLIB_PATH
10728 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10730 soname_spec='${libname}${release}${shared_ext}$major'
10731 ;;
10732 esac
10733 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10734 postinstall_cmds='chmod 555 $lib'
10735 # or fails outright, so override atomically:
10736 install_override_mode=555
10737 ;;
10738
10739 interix[3-9]*)
10740 version_type=linux # correct to gnu/linux during the next big refactor
10741 need_lib_prefix=no
10742 need_version=no
10743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10744 soname_spec='${libname}${release}${shared_ext}$major'
10745 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=no
10748 hardcode_into_libs=yes
10749 ;;
10750
10751 irix5* | irix6* | nonstopux*)
10752 case $host_os in
10753 nonstopux*) version_type=nonstopux ;;
10754 *)
10755 if test "$lt_cv_prog_gnu_ld" = yes; then
10756 version_type=linux # correct to gnu/linux during the next big refactor
10757 else
10758 version_type=irix
10759 fi ;;
10760 esac
10761 need_lib_prefix=no
10762 need_version=no
10763 soname_spec='${libname}${release}${shared_ext}$major'
10764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10765 case $host_os in
10766 irix5* | nonstopux*)
10767 libsuff= shlibsuff=
10768 ;;
10769 *)
10770 case $LD in # libtool.m4 will add one of these switches to LD
10771 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10772 libsuff= shlibsuff= libmagic=32-bit;;
10773 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10774 libsuff=32 shlibsuff=N32 libmagic=N32;;
10775 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10776 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10777 *) libsuff= shlibsuff= libmagic=never-match;;
10778 esac
10779 ;;
10780 esac
10781 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10782 shlibpath_overrides_runpath=no
10783 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10784 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10785 hardcode_into_libs=yes
10786 ;;
10787
10788 # No shared lib support for Linux oldld, aout, or coff.
10789 linux*oldld* | linux*aout* | linux*coff*)
10790 dynamic_linker=no
10791 ;;
10792
10793 # This must be glibc/ELF.
10794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10795 version_type=linux # correct to gnu/linux during the next big refactor
10796 need_lib_prefix=no
10797 need_version=no
10798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10799 soname_spec='${libname}${release}${shared_ext}$major'
10800 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803
10804 # Some binutils ld are patched to set DT_RUNPATH
10805 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10806 $as_echo_n "(cached) " >&6
10807 else
10808 lt_cv_shlibpath_overrides_runpath=no
10809 save_LDFLAGS=$LDFLAGS
10810 save_libdir=$libdir
10811 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10812 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815
10816 int
10817 main ()
10818 {
10819
10820 ;
10821 return 0;
10822 }
10823 _ACEOF
10824 if ac_fn_c_try_link "$LINENO"; then :
10825 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10826 lt_cv_shlibpath_overrides_runpath=yes
10827 fi
10828 fi
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 LDFLAGS=$save_LDFLAGS
10832 libdir=$save_libdir
10833
10834 fi
10835
10836 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10837
10838 # This implies no fast_install, which is unacceptable.
10839 # Some rework will be needed to allow for fast_install
10840 # before this can be enabled.
10841 hardcode_into_libs=yes
10842
10843 # Append ld.so.conf contents to the search path
10844 if test -f /etc/ld.so.conf; then
10845 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' ' '`
10846 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10847 fi
10848
10849 # We used to test for /lib/ld.so.1 and disable shared libraries on
10850 # powerpc, because MkLinux only supported shared libraries with the
10851 # GNU dynamic linker. Since this was broken with cross compilers,
10852 # most powerpc-linux boxes support dynamic linking these days and
10853 # people can always --disable-shared, the test was removed, and we
10854 # assume the GNU/Linux dynamic linker is in use.
10855 dynamic_linker='GNU/Linux ld.so'
10856 ;;
10857
10858 netbsd*)
10859 version_type=sunos
10860 need_lib_prefix=no
10861 need_version=no
10862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10864 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10865 dynamic_linker='NetBSD (a.out) ld.so'
10866 else
10867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10868 soname_spec='${libname}${release}${shared_ext}$major'
10869 dynamic_linker='NetBSD ld.elf_so'
10870 fi
10871 shlibpath_var=LD_LIBRARY_PATH
10872 shlibpath_overrides_runpath=yes
10873 hardcode_into_libs=yes
10874 ;;
10875
10876 newsos6)
10877 version_type=linux # correct to gnu/linux during the next big refactor
10878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10879 shlibpath_var=LD_LIBRARY_PATH
10880 shlibpath_overrides_runpath=yes
10881 ;;
10882
10883 *nto* | *qnx*)
10884 version_type=qnx
10885 need_lib_prefix=no
10886 need_version=no
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 soname_spec='${libname}${release}${shared_ext}$major'
10889 shlibpath_var=LD_LIBRARY_PATH
10890 shlibpath_overrides_runpath=no
10891 hardcode_into_libs=yes
10892 dynamic_linker='ldqnx.so'
10893 ;;
10894
10895 openbsd*)
10896 version_type=sunos
10897 sys_lib_dlsearch_path_spec="/usr/lib"
10898 need_lib_prefix=no
10899 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10900 case $host_os in
10901 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10902 *) need_version=no ;;
10903 esac
10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10905 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10906 shlibpath_var=LD_LIBRARY_PATH
10907 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10908 case $host_os in
10909 openbsd2.[89] | openbsd2.[89].*)
10910 shlibpath_overrides_runpath=no
10911 ;;
10912 *)
10913 shlibpath_overrides_runpath=yes
10914 ;;
10915 esac
10916 else
10917 shlibpath_overrides_runpath=yes
10918 fi
10919 ;;
10920
10921 os2*)
10922 libname_spec='$name'
10923 shrext_cmds=".dll"
10924 need_lib_prefix=no
10925 library_names_spec='$libname${shared_ext} $libname.a'
10926 dynamic_linker='OS/2 ld.exe'
10927 shlibpath_var=LIBPATH
10928 ;;
10929
10930 osf3* | osf4* | osf5*)
10931 version_type=osf
10932 need_lib_prefix=no
10933 need_version=no
10934 soname_spec='${libname}${release}${shared_ext}$major'
10935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10936 shlibpath_var=LD_LIBRARY_PATH
10937 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10938 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10939 ;;
10940
10941 rdos*)
10942 dynamic_linker=no
10943 ;;
10944
10945 solaris*)
10946 version_type=linux # correct to gnu/linux during the next big refactor
10947 need_lib_prefix=no
10948 need_version=no
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 shlibpath_overrides_runpath=yes
10953 hardcode_into_libs=yes
10954 # ldd complains unless libraries are executable
10955 postinstall_cmds='chmod +x $lib'
10956 ;;
10957
10958 sunos4*)
10959 version_type=sunos
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 shlibpath_overrides_runpath=yes
10964 if test "$with_gnu_ld" = yes; then
10965 need_lib_prefix=no
10966 fi
10967 need_version=yes
10968 ;;
10969
10970 sysv4 | sysv4.3*)
10971 version_type=linux # correct to gnu/linux during the next big refactor
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10973 soname_spec='${libname}${release}${shared_ext}$major'
10974 shlibpath_var=LD_LIBRARY_PATH
10975 case $host_vendor in
10976 sni)
10977 shlibpath_overrides_runpath=no
10978 need_lib_prefix=no
10979 runpath_var=LD_RUN_PATH
10980 ;;
10981 siemens)
10982 need_lib_prefix=no
10983 ;;
10984 motorola)
10985 need_lib_prefix=no
10986 need_version=no
10987 shlibpath_overrides_runpath=no
10988 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10989 ;;
10990 esac
10991 ;;
10992
10993 sysv4*MP*)
10994 if test -d /usr/nec ;then
10995 version_type=linux # correct to gnu/linux during the next big refactor
10996 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10997 soname_spec='$libname${shared_ext}.$major'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 fi
11000 ;;
11001
11002 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11003 version_type=freebsd-elf
11004 need_lib_prefix=no
11005 need_version=no
11006 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11007 soname_spec='${libname}${release}${shared_ext}$major'
11008 shlibpath_var=LD_LIBRARY_PATH
11009 shlibpath_overrides_runpath=yes
11010 hardcode_into_libs=yes
11011 if test "$with_gnu_ld" = yes; then
11012 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11013 else
11014 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11015 case $host_os in
11016 sco3.2v5*)
11017 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11018 ;;
11019 esac
11020 fi
11021 sys_lib_dlsearch_path_spec='/usr/lib'
11022 ;;
11023
11024 tpf*)
11025 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11026 version_type=linux # correct to gnu/linux during the next big refactor
11027 need_lib_prefix=no
11028 need_version=no
11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 shlibpath_overrides_runpath=no
11032 hardcode_into_libs=yes
11033 ;;
11034
11035 uts4*)
11036 version_type=linux # correct to gnu/linux during the next big refactor
11037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11038 soname_spec='${libname}${release}${shared_ext}$major'
11039 shlibpath_var=LD_LIBRARY_PATH
11040 ;;
11041
11042 *)
11043 dynamic_linker=no
11044 ;;
11045 esac
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11047 $as_echo "$dynamic_linker" >&6; }
11048 test "$dynamic_linker" = no && can_build_shared=no
11049
11050 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11051 if test "$GCC" = yes; then
11052 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11053 fi
11054
11055 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11056 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11057 fi
11058 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11059 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11060 fi
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11154 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11155 hardcode_action=
11156 if test -n "$hardcode_libdir_flag_spec" ||
11157 test -n "$runpath_var" ||
11158 test "X$hardcode_automatic" = "Xyes" ; then
11159
11160 # We can hardcode non-existent directories.
11161 if test "$hardcode_direct" != no &&
11162 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11163 # have to relink, otherwise we might link with an installed library
11164 # when we should be linking with a yet-to-be-installed one
11165 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11166 test "$hardcode_minus_L" != no; then
11167 # Linking always hardcodes the temporary library directory.
11168 hardcode_action=relink
11169 else
11170 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11171 hardcode_action=immediate
11172 fi
11173 else
11174 # We cannot hardcode anything, or else we can only hardcode existing
11175 # directories.
11176 hardcode_action=unsupported
11177 fi
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11179 $as_echo "$hardcode_action" >&6; }
11180
11181 if test "$hardcode_action" = relink ||
11182 test "$inherit_rpath" = yes; then
11183 # Fast installation is not supported
11184 enable_fast_install=no
11185 elif test "$shlibpath_overrides_runpath" = yes ||
11186 test "$enable_shared" = no; then
11187 # Fast installation is not necessary
11188 enable_fast_install=needless
11189 fi
11190
11191
11192
11193
11194
11195
11196 if test "x$enable_dlopen" != xyes; then
11197 enable_dlopen=unknown
11198 enable_dlopen_self=unknown
11199 enable_dlopen_self_static=unknown
11200 else
11201 lt_cv_dlopen=no
11202 lt_cv_dlopen_libs=
11203
11204 case $host_os in
11205 beos*)
11206 lt_cv_dlopen="load_add_on"
11207 lt_cv_dlopen_libs=
11208 lt_cv_dlopen_self=yes
11209 ;;
11210
11211 mingw* | pw32* | cegcc*)
11212 lt_cv_dlopen="LoadLibrary"
11213 lt_cv_dlopen_libs=
11214 ;;
11215
11216 cygwin*)
11217 lt_cv_dlopen="dlopen"
11218 lt_cv_dlopen_libs=
11219 ;;
11220
11221 darwin*)
11222 # if libdl is installed we need to link against it
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11224 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11225 if ${ac_cv_lib_dl_dlopen+:} false; then :
11226 $as_echo_n "(cached) " >&6
11227 else
11228 ac_check_lib_save_LIBS=$LIBS
11229 LIBS="-ldl $LIBS"
11230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11231 /* end confdefs.h. */
11232
11233 /* Override any GCC internal prototype to avoid an error.
11234 Use char because int might match the return type of a GCC
11235 builtin and then its argument prototype would still apply. */
11236 #ifdef __cplusplus
11237 extern "C"
11238 #endif
11239 char dlopen ();
11240 int
11241 main ()
11242 {
11243 return dlopen ();
11244 ;
11245 return 0;
11246 }
11247 _ACEOF
11248 if ac_fn_c_try_link "$LINENO"; then :
11249 ac_cv_lib_dl_dlopen=yes
11250 else
11251 ac_cv_lib_dl_dlopen=no
11252 fi
11253 rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
11255 LIBS=$ac_check_lib_save_LIBS
11256 fi
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11258 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11259 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11260 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11261 else
11262
11263 lt_cv_dlopen="dyld"
11264 lt_cv_dlopen_libs=
11265 lt_cv_dlopen_self=yes
11266
11267 fi
11268
11269 ;;
11270
11271 *)
11272 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11273 if test "x$ac_cv_func_shl_load" = xyes; then :
11274 lt_cv_dlopen="shl_load"
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11277 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11278 if ${ac_cv_lib_dld_shl_load+:} false; then :
11279 $as_echo_n "(cached) " >&6
11280 else
11281 ac_check_lib_save_LIBS=$LIBS
11282 LIBS="-ldld $LIBS"
11283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11284 /* end confdefs.h. */
11285
11286 /* Override any GCC internal prototype to avoid an error.
11287 Use char because int might match the return type of a GCC
11288 builtin and then its argument prototype would still apply. */
11289 #ifdef __cplusplus
11290 extern "C"
11291 #endif
11292 char shl_load ();
11293 int
11294 main ()
11295 {
11296 return shl_load ();
11297 ;
11298 return 0;
11299 }
11300 _ACEOF
11301 if ac_fn_c_try_link "$LINENO"; then :
11302 ac_cv_lib_dld_shl_load=yes
11303 else
11304 ac_cv_lib_dld_shl_load=no
11305 fi
11306 rm -f core conftest.err conftest.$ac_objext \
11307 conftest$ac_exeext conftest.$ac_ext
11308 LIBS=$ac_check_lib_save_LIBS
11309 fi
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11311 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11312 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11313 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11314 else
11315 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11316 if test "x$ac_cv_func_dlopen" = xyes; then :
11317 lt_cv_dlopen="dlopen"
11318 else
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11320 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11321 if ${ac_cv_lib_dl_dlopen+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323 else
11324 ac_check_lib_save_LIBS=$LIBS
11325 LIBS="-ldl $LIBS"
11326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11327 /* end confdefs.h. */
11328
11329 /* Override any GCC internal prototype to avoid an error.
11330 Use char because int might match the return type of a GCC
11331 builtin and then its argument prototype would still apply. */
11332 #ifdef __cplusplus
11333 extern "C"
11334 #endif
11335 char dlopen ();
11336 int
11337 main ()
11338 {
11339 return dlopen ();
11340 ;
11341 return 0;
11342 }
11343 _ACEOF
11344 if ac_fn_c_try_link "$LINENO"; then :
11345 ac_cv_lib_dl_dlopen=yes
11346 else
11347 ac_cv_lib_dl_dlopen=no
11348 fi
11349 rm -f core conftest.err conftest.$ac_objext \
11350 conftest$ac_exeext conftest.$ac_ext
11351 LIBS=$ac_check_lib_save_LIBS
11352 fi
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11354 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11355 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11356 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11357 else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11359 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11360 if ${ac_cv_lib_svld_dlopen+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 ac_check_lib_save_LIBS=$LIBS
11364 LIBS="-lsvld $LIBS"
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11367
11368 /* Override any GCC internal prototype to avoid an error.
11369 Use char because int might match the return type of a GCC
11370 builtin and then its argument prototype would still apply. */
11371 #ifdef __cplusplus
11372 extern "C"
11373 #endif
11374 char dlopen ();
11375 int
11376 main ()
11377 {
11378 return dlopen ();
11379 ;
11380 return 0;
11381 }
11382 _ACEOF
11383 if ac_fn_c_try_link "$LINENO"; then :
11384 ac_cv_lib_svld_dlopen=yes
11385 else
11386 ac_cv_lib_svld_dlopen=no
11387 fi
11388 rm -f core conftest.err conftest.$ac_objext \
11389 conftest$ac_exeext conftest.$ac_ext
11390 LIBS=$ac_check_lib_save_LIBS
11391 fi
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11393 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11394 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11395 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11396 else
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11398 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11399 if ${ac_cv_lib_dld_dld_link+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 ac_check_lib_save_LIBS=$LIBS
11403 LIBS="-ldld $LIBS"
11404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11405 /* end confdefs.h. */
11406
11407 /* Override any GCC internal prototype to avoid an error.
11408 Use char because int might match the return type of a GCC
11409 builtin and then its argument prototype would still apply. */
11410 #ifdef __cplusplus
11411 extern "C"
11412 #endif
11413 char dld_link ();
11414 int
11415 main ()
11416 {
11417 return dld_link ();
11418 ;
11419 return 0;
11420 }
11421 _ACEOF
11422 if ac_fn_c_try_link "$LINENO"; then :
11423 ac_cv_lib_dld_dld_link=yes
11424 else
11425 ac_cv_lib_dld_dld_link=no
11426 fi
11427 rm -f core conftest.err conftest.$ac_objext \
11428 conftest$ac_exeext conftest.$ac_ext
11429 LIBS=$ac_check_lib_save_LIBS
11430 fi
11431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11432 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11433 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11434 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11435 fi
11436
11437
11438 fi
11439
11440
11441 fi
11442
11443
11444 fi
11445
11446
11447 fi
11448
11449
11450 fi
11451
11452 ;;
11453 esac
11454
11455 if test "x$lt_cv_dlopen" != xno; then
11456 enable_dlopen=yes
11457 else
11458 enable_dlopen=no
11459 fi
11460
11461 case $lt_cv_dlopen in
11462 dlopen)
11463 save_CPPFLAGS="$CPPFLAGS"
11464 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11465
11466 save_LDFLAGS="$LDFLAGS"
11467 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11468
11469 save_LIBS="$LIBS"
11470 LIBS="$lt_cv_dlopen_libs $LIBS"
11471
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11473 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11474 if ${lt_cv_dlopen_self+:} false; then :
11475 $as_echo_n "(cached) " >&6
11476 else
11477 if test "$cross_compiling" = yes; then :
11478 lt_cv_dlopen_self=cross
11479 else
11480 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11481 lt_status=$lt_dlunknown
11482 cat > conftest.$ac_ext <<_LT_EOF
11483 #line $LINENO "configure"
11484 #include "confdefs.h"
11485
11486 #if HAVE_DLFCN_H
11487 #include <dlfcn.h>
11488 #endif
11489
11490 #include <stdio.h>
11491
11492 #ifdef RTLD_GLOBAL
11493 # define LT_DLGLOBAL RTLD_GLOBAL
11494 #else
11495 # ifdef DL_GLOBAL
11496 # define LT_DLGLOBAL DL_GLOBAL
11497 # else
11498 # define LT_DLGLOBAL 0
11499 # endif
11500 #endif
11501
11502 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11503 find out it does not work in some platform. */
11504 #ifndef LT_DLLAZY_OR_NOW
11505 # ifdef RTLD_LAZY
11506 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11507 # else
11508 # ifdef DL_LAZY
11509 # define LT_DLLAZY_OR_NOW DL_LAZY
11510 # else
11511 # ifdef RTLD_NOW
11512 # define LT_DLLAZY_OR_NOW RTLD_NOW
11513 # else
11514 # ifdef DL_NOW
11515 # define LT_DLLAZY_OR_NOW DL_NOW
11516 # else
11517 # define LT_DLLAZY_OR_NOW 0
11518 # endif
11519 # endif
11520 # endif
11521 # endif
11522 #endif
11523
11524 /* When -fvisbility=hidden is used, assume the code has been annotated
11525 correspondingly for the symbols needed. */
11526 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11527 int fnord () __attribute__((visibility("default")));
11528 #endif
11529
11530 int fnord () { return 42; }
11531 int main ()
11532 {
11533 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11534 int status = $lt_dlunknown;
11535
11536 if (self)
11537 {
11538 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11539 else
11540 {
11541 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11542 else puts (dlerror ());
11543 }
11544 /* dlclose (self); */
11545 }
11546 else
11547 puts (dlerror ());
11548
11549 return status;
11550 }
11551 _LT_EOF
11552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11553 (eval $ac_link) 2>&5
11554 ac_status=$?
11555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11556 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11557 (./conftest; exit; ) >&5 2>/dev/null
11558 lt_status=$?
11559 case x$lt_status in
11560 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11561 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11562 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11563 esac
11564 else :
11565 # compilation failed
11566 lt_cv_dlopen_self=no
11567 fi
11568 fi
11569 rm -fr conftest*
11570
11571
11572 fi
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11574 $as_echo "$lt_cv_dlopen_self" >&6; }
11575
11576 if test "x$lt_cv_dlopen_self" = xyes; then
11577 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11579 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11580 if ${lt_cv_dlopen_self_static+:} false; then :
11581 $as_echo_n "(cached) " >&6
11582 else
11583 if test "$cross_compiling" = yes; then :
11584 lt_cv_dlopen_self_static=cross
11585 else
11586 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11587 lt_status=$lt_dlunknown
11588 cat > conftest.$ac_ext <<_LT_EOF
11589 #line $LINENO "configure"
11590 #include "confdefs.h"
11591
11592 #if HAVE_DLFCN_H
11593 #include <dlfcn.h>
11594 #endif
11595
11596 #include <stdio.h>
11597
11598 #ifdef RTLD_GLOBAL
11599 # define LT_DLGLOBAL RTLD_GLOBAL
11600 #else
11601 # ifdef DL_GLOBAL
11602 # define LT_DLGLOBAL DL_GLOBAL
11603 # else
11604 # define LT_DLGLOBAL 0
11605 # endif
11606 #endif
11607
11608 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11609 find out it does not work in some platform. */
11610 #ifndef LT_DLLAZY_OR_NOW
11611 # ifdef RTLD_LAZY
11612 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11613 # else
11614 # ifdef DL_LAZY
11615 # define LT_DLLAZY_OR_NOW DL_LAZY
11616 # else
11617 # ifdef RTLD_NOW
11618 # define LT_DLLAZY_OR_NOW RTLD_NOW
11619 # else
11620 # ifdef DL_NOW
11621 # define LT_DLLAZY_OR_NOW DL_NOW
11622 # else
11623 # define LT_DLLAZY_OR_NOW 0
11624 # endif
11625 # endif
11626 # endif
11627 # endif
11628 #endif
11629
11630 /* When -fvisbility=hidden is used, assume the code has been annotated
11631 correspondingly for the symbols needed. */
11632 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11633 int fnord () __attribute__((visibility("default")));
11634 #endif
11635
11636 int fnord () { return 42; }
11637 int main ()
11638 {
11639 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11640 int status = $lt_dlunknown;
11641
11642 if (self)
11643 {
11644 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11645 else
11646 {
11647 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11648 else puts (dlerror ());
11649 }
11650 /* dlclose (self); */
11651 }
11652 else
11653 puts (dlerror ());
11654
11655 return status;
11656 }
11657 _LT_EOF
11658 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11659 (eval $ac_link) 2>&5
11660 ac_status=$?
11661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11662 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11663 (./conftest; exit; ) >&5 2>/dev/null
11664 lt_status=$?
11665 case x$lt_status in
11666 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11667 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11668 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11669 esac
11670 else :
11671 # compilation failed
11672 lt_cv_dlopen_self_static=no
11673 fi
11674 fi
11675 rm -fr conftest*
11676
11677
11678 fi
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11680 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11681 fi
11682
11683 CPPFLAGS="$save_CPPFLAGS"
11684 LDFLAGS="$save_LDFLAGS"
11685 LIBS="$save_LIBS"
11686 ;;
11687 esac
11688
11689 case $lt_cv_dlopen_self in
11690 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11691 *) enable_dlopen_self=unknown ;;
11692 esac
11693
11694 case $lt_cv_dlopen_self_static in
11695 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11696 *) enable_dlopen_self_static=unknown ;;
11697 esac
11698 fi
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716 striplib=
11717 old_striplib=
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11719 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11720 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11721 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11722 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11724 $as_echo "yes" >&6; }
11725 else
11726 # FIXME - insert some real tests, host_os isn't really good enough
11727 case $host_os in
11728 darwin*)
11729 if test -n "$STRIP" ; then
11730 striplib="$STRIP -x"
11731 old_striplib="$STRIP -S"
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733 $as_echo "yes" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11737 fi
11738 ;;
11739 *)
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11741 $as_echo "no" >&6; }
11742 ;;
11743 esac
11744 fi
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757 # Report which library types will actually be built
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11759 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11761 $as_echo "$can_build_shared" >&6; }
11762
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11764 $as_echo_n "checking whether to build shared libraries... " >&6; }
11765 test "$can_build_shared" = "no" && enable_shared=no
11766
11767 # On AIX, shared libraries and static libraries use the same namespace, and
11768 # are all built from PIC.
11769 case $host_os in
11770 aix3*)
11771 test "$enable_shared" = yes && enable_static=no
11772 if test -n "$RANLIB"; then
11773 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11774 postinstall_cmds='$RANLIB $lib'
11775 fi
11776 ;;
11777
11778 aix[4-9]*)
11779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11780 test "$enable_shared" = yes && enable_static=no
11781 fi
11782 ;;
11783 esac
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11785 $as_echo "$enable_shared" >&6; }
11786
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11788 $as_echo_n "checking whether to build static libraries... " >&6; }
11789 # Make sure either enable_shared or enable_static is yes.
11790 test "$enable_shared" = yes || enable_static=yes
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11792 $as_echo "$enable_static" >&6; }
11793
11794
11795
11796
11797 fi
11798 ac_ext=c
11799 ac_cpp='$CPP $CPPFLAGS'
11800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11803
11804 CC="$lt_save_CC"
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820 ac_config_commands="$ac_config_commands libtool"
11821
11822
11823
11824
11825 # Only expand once:
11826
11827
11828
11829 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11842 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11843 if ${ac_cv_prog_cc_c99+:} false; then :
11844 $as_echo_n "(cached) " >&6
11845 else
11846 ac_cv_prog_cc_c99=no
11847 ac_save_CC=$CC
11848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11849 /* end confdefs.h. */
11850 #include <stdarg.h>
11851 #include <stdbool.h>
11852 #include <stdlib.h>
11853 #include <wchar.h>
11854 #include <stdio.h>
11855
11856 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11857 #define debug(...) fprintf (stderr, __VA_ARGS__)
11858 #define showlist(...) puts (#__VA_ARGS__)
11859 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11860 static void
11861 test_varargs_macros (void)
11862 {
11863 int x = 1234;
11864 int y = 5678;
11865 debug ("Flag");
11866 debug ("X = %d\n", x);
11867 showlist (The first, second, and third items.);
11868 report (x>y, "x is %d but y is %d", x, y);
11869 }
11870
11871 // Check long long types.
11872 #define BIG64 18446744073709551615ull
11873 #define BIG32 4294967295ul
11874 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11875 #if !BIG_OK
11876 your preprocessor is broken;
11877 #endif
11878 #if BIG_OK
11879 #else
11880 your preprocessor is broken;
11881 #endif
11882 static long long int bignum = -9223372036854775807LL;
11883 static unsigned long long int ubignum = BIG64;
11884
11885 struct incomplete_array
11886 {
11887 int datasize;
11888 double data[];
11889 };
11890
11891 struct named_init {
11892 int number;
11893 const wchar_t *name;
11894 double average;
11895 };
11896
11897 typedef const char *ccp;
11898
11899 static inline int
11900 test_restrict (ccp restrict text)
11901 {
11902 // See if C++-style comments work.
11903 // Iterate through items via the restricted pointer.
11904 // Also check for declarations in for loops.
11905 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11906 continue;
11907 return 0;
11908 }
11909
11910 // Check varargs and va_copy.
11911 static void
11912 test_varargs (const char *format, ...)
11913 {
11914 va_list args;
11915 va_start (args, format);
11916 va_list args_copy;
11917 va_copy (args_copy, args);
11918
11919 const char *str;
11920 int number;
11921 float fnumber;
11922
11923 while (*format)
11924 {
11925 switch (*format++)
11926 {
11927 case 's': // string
11928 str = va_arg (args_copy, const char *);
11929 break;
11930 case 'd': // int
11931 number = va_arg (args_copy, int);
11932 break;
11933 case 'f': // float
11934 fnumber = va_arg (args_copy, double);
11935 break;
11936 default:
11937 break;
11938 }
11939 }
11940 va_end (args_copy);
11941 va_end (args);
11942 }
11943
11944 int
11945 main ()
11946 {
11947
11948 // Check bool.
11949 _Bool success = false;
11950
11951 // Check restrict.
11952 if (test_restrict ("String literal") == 0)
11953 success = true;
11954 char *restrict newvar = "Another string";
11955
11956 // Check varargs.
11957 test_varargs ("s, d' f .", "string", 65, 34.234);
11958 test_varargs_macros ();
11959
11960 // Check flexible array members.
11961 struct incomplete_array *ia =
11962 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11963 ia->datasize = 10;
11964 for (int i = 0; i < ia->datasize; ++i)
11965 ia->data[i] = i * 1.234;
11966
11967 // Check named initializers.
11968 struct named_init ni = {
11969 .number = 34,
11970 .name = L"Test wide string",
11971 .average = 543.34343,
11972 };
11973
11974 ni.number = 58;
11975
11976 int dynamic_array[ni.number];
11977 dynamic_array[ni.number - 1] = 543;
11978
11979 // work around unused variable warnings
11980 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11981 || dynamic_array[ni.number - 1] != 543);
11982
11983 ;
11984 return 0;
11985 }
11986 _ACEOF
11987 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11988 do
11989 CC="$ac_save_CC $ac_arg"
11990 if ac_fn_c_try_compile "$LINENO"; then :
11991 ac_cv_prog_cc_c99=$ac_arg
11992 fi
11993 rm -f core conftest.err conftest.$ac_objext
11994 test "x$ac_cv_prog_cc_c99" != "xno" && break
11995 done
11996 rm -f conftest.$ac_ext
11997 CC=$ac_save_CC
11998
11999 fi
12000 # AC_CACHE_VAL
12001 case "x$ac_cv_prog_cc_c99" in
12002 x)
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12004 $as_echo "none needed" >&6; } ;;
12005 xno)
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12007 $as_echo "unsupported" >&6; } ;;
12008 *)
12009 CC="$CC $ac_cv_prog_cc_c99"
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12011 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12012 esac
12013 if test "x$ac_cv_prog_cc_c99" != xno; then :
12014
12015 fi
12016
12017
12018
12019
12020
12021
12022 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12023 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12024 CLANGCC="yes"
12025 else
12026 CLANGCC="no"
12027 fi
12028
12029 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12030 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12031 INTELCC="yes"
12032 else
12033 INTELCC="no"
12034 fi
12035
12036 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12037 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12038 SUNCC="yes"
12039 else
12040 SUNCC="no"
12041 fi
12042
12043
12044
12045
12046 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12047 if test -n "$ac_tool_prefix"; then
12048 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12049 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12053 $as_echo_n "(cached) " >&6
12054 else
12055 case $PKG_CONFIG in
12056 [\\/]* | ?:[\\/]*)
12057 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12058 ;;
12059 *)
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12062 do
12063 IFS=$as_save_IFS
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12067 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12069 break 2
12070 fi
12071 done
12072 done
12073 IFS=$as_save_IFS
12074
12075 ;;
12076 esac
12077 fi
12078 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12079 if test -n "$PKG_CONFIG"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12081 $as_echo "$PKG_CONFIG" >&6; }
12082 else
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12084 $as_echo "no" >&6; }
12085 fi
12086
12087
12088 fi
12089 if test -z "$ac_cv_path_PKG_CONFIG"; then
12090 ac_pt_PKG_CONFIG=$PKG_CONFIG
12091 # Extract the first word of "pkg-config", so it can be a program name with args.
12092 set dummy pkg-config; ac_word=$2
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12094 $as_echo_n "checking for $ac_word... " >&6; }
12095 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12096 $as_echo_n "(cached) " >&6
12097 else
12098 case $ac_pt_PKG_CONFIG in
12099 [\\/]* | ?:[\\/]*)
12100 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12101 ;;
12102 *)
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12105 do
12106 IFS=$as_save_IFS
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12110 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12112 break 2
12113 fi
12114 done
12115 done
12116 IFS=$as_save_IFS
12117
12118 ;;
12119 esac
12120 fi
12121 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12122 if test -n "$ac_pt_PKG_CONFIG"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12124 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130 if test "x$ac_pt_PKG_CONFIG" = x; then
12131 PKG_CONFIG=""
12132 else
12133 case $cross_compiling:$ac_tool_warned in
12134 yes:)
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12137 ac_tool_warned=yes ;;
12138 esac
12139 PKG_CONFIG=$ac_pt_PKG_CONFIG
12140 fi
12141 else
12142 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12143 fi
12144
12145 fi
12146 if test -n "$PKG_CONFIG"; then
12147 _pkg_min_version=0.9.0
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12149 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12150 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12152 $as_echo "yes" >&6; }
12153 else
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12155 $as_echo "no" >&6; }
12156 PKG_CONFIG=""
12157 fi
12158
12159 fi
12160
12161
12162
12163
12164
12165 # Check whether --enable-selective-werror was given.
12166 if test "${enable_selective_werror+set}" = set; then :
12167 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12168 else
12169 SELECTIVE_WERROR=yes
12170 fi
12171
12172
12173
12174
12175
12176 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12177 if test "x$SUNCC" = "xyes"; then
12178 BASE_CFLAGS="-v"
12179 else
12180 BASE_CFLAGS=""
12181 fi
12182
12183 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194
12195
12196
12197 xorg_testset_save_CFLAGS="$CFLAGS"
12198
12199 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12200 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12202 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12203 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12204 $as_echo_n "(cached) " >&6
12205 else
12206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12207 /* end confdefs.h. */
12208 int i;
12209 _ACEOF
12210 if ac_fn_c_try_compile "$LINENO"; then :
12211 xorg_cv_cc_flag_unknown_warning_option=yes
12212 else
12213 xorg_cv_cc_flag_unknown_warning_option=no
12214 fi
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12216 fi
12217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12218 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12219 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12220 CFLAGS="$xorg_testset_save_CFLAGS"
12221 fi
12222
12223 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12224 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12225 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12226 fi
12227 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12229 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12230 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12231 $as_echo_n "(cached) " >&6
12232 else
12233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12234 /* end confdefs.h. */
12235 int i;
12236 _ACEOF
12237 if ac_fn_c_try_compile "$LINENO"; then :
12238 xorg_cv_cc_flag_unused_command_line_argument=yes
12239 else
12240 xorg_cv_cc_flag_unused_command_line_argument=no
12241 fi
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 fi
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12245 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12246 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12247 CFLAGS="$xorg_testset_save_CFLAGS"
12248 fi
12249
12250 found="no"
12251
12252 if test $found = "no" ; then
12253 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12254 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12255 fi
12256
12257 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12258 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12259 fi
12260
12261 CFLAGS="$CFLAGS -Wall"
12262
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12264 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12265 cacheid=xorg_cv_cc_flag__Wall
12266 if eval \${$cacheid+:} false; then :
12267 $as_echo_n "(cached) " >&6
12268 else
12269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270 /* end confdefs.h. */
12271 int i;
12272 int
12273 main ()
12274 {
12275
12276 ;
12277 return 0;
12278 }
12279 _ACEOF
12280 if ac_fn_c_try_link "$LINENO"; then :
12281 eval $cacheid=yes
12282 else
12283 eval $cacheid=no
12284 fi
12285 rm -f core conftest.err conftest.$ac_objext \
12286 conftest$ac_exeext conftest.$ac_ext
12287 fi
12288
12289
12290 CFLAGS="$xorg_testset_save_CFLAGS"
12291
12292 eval supported=\$$cacheid
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12294 $as_echo "$supported" >&6; }
12295 if test "$supported" = "yes" ; then
12296 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12297 found="yes"
12298 fi
12299 fi
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315 xorg_testset_save_CFLAGS="$CFLAGS"
12316
12317 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12318 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12320 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12321 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12322 $as_echo_n "(cached) " >&6
12323 else
12324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12325 /* end confdefs.h. */
12326 int i;
12327 _ACEOF
12328 if ac_fn_c_try_compile "$LINENO"; then :
12329 xorg_cv_cc_flag_unknown_warning_option=yes
12330 else
12331 xorg_cv_cc_flag_unknown_warning_option=no
12332 fi
12333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12334 fi
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12336 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12337 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12338 CFLAGS="$xorg_testset_save_CFLAGS"
12339 fi
12340
12341 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12342 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12343 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12344 fi
12345 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12347 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12348 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12349 $as_echo_n "(cached) " >&6
12350 else
12351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12352 /* end confdefs.h. */
12353 int i;
12354 _ACEOF
12355 if ac_fn_c_try_compile "$LINENO"; then :
12356 xorg_cv_cc_flag_unused_command_line_argument=yes
12357 else
12358 xorg_cv_cc_flag_unused_command_line_argument=no
12359 fi
12360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12361 fi
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12363 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12364 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12365 CFLAGS="$xorg_testset_save_CFLAGS"
12366 fi
12367
12368 found="no"
12369
12370 if test $found = "no" ; then
12371 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12372 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12373 fi
12374
12375 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12376 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12377 fi
12378
12379 CFLAGS="$CFLAGS -Wpointer-arith"
12380
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12382 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12383 cacheid=xorg_cv_cc_flag__Wpointer_arith
12384 if eval \${$cacheid+:} false; then :
12385 $as_echo_n "(cached) " >&6
12386 else
12387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12388 /* end confdefs.h. */
12389 int i;
12390 int
12391 main ()
12392 {
12393
12394 ;
12395 return 0;
12396 }
12397 _ACEOF
12398 if ac_fn_c_try_link "$LINENO"; then :
12399 eval $cacheid=yes
12400 else
12401 eval $cacheid=no
12402 fi
12403 rm -f core conftest.err conftest.$ac_objext \
12404 conftest$ac_exeext conftest.$ac_ext
12405 fi
12406
12407
12408 CFLAGS="$xorg_testset_save_CFLAGS"
12409
12410 eval supported=\$$cacheid
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12412 $as_echo "$supported" >&6; }
12413 if test "$supported" = "yes" ; then
12414 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12415 found="yes"
12416 fi
12417 fi
12418
12419
12420
12421
12422
12423
12424
12425
12426
12427
12428
12429
12430
12431
12432
12433 xorg_testset_save_CFLAGS="$CFLAGS"
12434
12435 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12438 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12439 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12440 $as_echo_n "(cached) " >&6
12441 else
12442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12443 /* end confdefs.h. */
12444 int i;
12445 _ACEOF
12446 if ac_fn_c_try_compile "$LINENO"; then :
12447 xorg_cv_cc_flag_unknown_warning_option=yes
12448 else
12449 xorg_cv_cc_flag_unknown_warning_option=no
12450 fi
12451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12452 fi
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12454 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12455 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12456 CFLAGS="$xorg_testset_save_CFLAGS"
12457 fi
12458
12459 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12460 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12461 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12462 fi
12463 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12465 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12466 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12467 $as_echo_n "(cached) " >&6
12468 else
12469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12470 /* end confdefs.h. */
12471 int i;
12472 _ACEOF
12473 if ac_fn_c_try_compile "$LINENO"; then :
12474 xorg_cv_cc_flag_unused_command_line_argument=yes
12475 else
12476 xorg_cv_cc_flag_unused_command_line_argument=no
12477 fi
12478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 fi
12480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12481 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12482 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12483 CFLAGS="$xorg_testset_save_CFLAGS"
12484 fi
12485
12486 found="no"
12487
12488 if test $found = "no" ; then
12489 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12490 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12491 fi
12492
12493 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12494 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12495 fi
12496
12497 CFLAGS="$CFLAGS -Wmissing-declarations"
12498
12499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12500 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12501 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12502 if eval \${$cacheid+:} false; then :
12503 $as_echo_n "(cached) " >&6
12504 else
12505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12506 /* end confdefs.h. */
12507 int i;
12508 int
12509 main ()
12510 {
12511
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 eval $cacheid=yes
12518 else
12519 eval $cacheid=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 fi
12524
12525
12526 CFLAGS="$xorg_testset_save_CFLAGS"
12527
12528 eval supported=\$$cacheid
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12530 $as_echo "$supported" >&6; }
12531 if test "$supported" = "yes" ; then
12532 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12533 found="yes"
12534 fi
12535 fi
12536
12537
12538
12539
12540
12541
12542
12543
12544
12545
12546
12547
12548
12549
12550
12551 xorg_testset_save_CFLAGS="$CFLAGS"
12552
12553 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12554 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12556 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12557 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12561 /* end confdefs.h. */
12562 int i;
12563 _ACEOF
12564 if ac_fn_c_try_compile "$LINENO"; then :
12565 xorg_cv_cc_flag_unknown_warning_option=yes
12566 else
12567 xorg_cv_cc_flag_unknown_warning_option=no
12568 fi
12569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12572 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12573 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12574 CFLAGS="$xorg_testset_save_CFLAGS"
12575 fi
12576
12577 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12578 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12579 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12580 fi
12581 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12583 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12584 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12585 $as_echo_n "(cached) " >&6
12586 else
12587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12588 /* end confdefs.h. */
12589 int i;
12590 _ACEOF
12591 if ac_fn_c_try_compile "$LINENO"; then :
12592 xorg_cv_cc_flag_unused_command_line_argument=yes
12593 else
12594 xorg_cv_cc_flag_unused_command_line_argument=no
12595 fi
12596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12599 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12600 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12601 CFLAGS="$xorg_testset_save_CFLAGS"
12602 fi
12603
12604 found="no"
12605
12606 if test $found = "no" ; then
12607 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12608 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12609 fi
12610
12611 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12612 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12613 fi
12614
12615 CFLAGS="$CFLAGS -Wformat=2"
12616
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12618 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12619 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12620 if eval \${$cacheid+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12624 /* end confdefs.h. */
12625 int i;
12626 int
12627 main ()
12628 {
12629
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 if ac_fn_c_try_link "$LINENO"; then :
12635 eval $cacheid=yes
12636 else
12637 eval $cacheid=no
12638 fi
12639 rm -f core conftest.err conftest.$ac_objext \
12640 conftest$ac_exeext conftest.$ac_ext
12641 fi
12642
12643
12644 CFLAGS="$xorg_testset_save_CFLAGS"
12645
12646 eval supported=\$$cacheid
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12648 $as_echo "$supported" >&6; }
12649 if test "$supported" = "yes" ; then
12650 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12651 found="yes"
12652 fi
12653 fi
12654
12655 if test $found = "no" ; then
12656 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12657 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12658 fi
12659
12660 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12661 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12662 fi
12663
12664 CFLAGS="$CFLAGS -Wformat"
12665
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12667 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12668 cacheid=xorg_cv_cc_flag__Wformat
12669 if eval \${$cacheid+:} false; then :
12670 $as_echo_n "(cached) " >&6
12671 else
12672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12673 /* end confdefs.h. */
12674 int i;
12675 int
12676 main ()
12677 {
12678
12679 ;
12680 return 0;
12681 }
12682 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then :
12684 eval $cacheid=yes
12685 else
12686 eval $cacheid=no
12687 fi
12688 rm -f core conftest.err conftest.$ac_objext \
12689 conftest$ac_exeext conftest.$ac_ext
12690 fi
12691
12692
12693 CFLAGS="$xorg_testset_save_CFLAGS"
12694
12695 eval supported=\$$cacheid
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12697 $as_echo "$supported" >&6; }
12698 if test "$supported" = "yes" ; then
12699 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12700 found="yes"
12701 fi
12702 fi
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720 xorg_testset_save_CFLAGS="$CFLAGS"
12721
12722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12726 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12727 $as_echo_n "(cached) " >&6
12728 else
12729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12730 /* end confdefs.h. */
12731 int i;
12732 _ACEOF
12733 if ac_fn_c_try_compile "$LINENO"; then :
12734 xorg_cv_cc_flag_unknown_warning_option=yes
12735 else
12736 xorg_cv_cc_flag_unknown_warning_option=no
12737 fi
12738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12739 fi
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12743 CFLAGS="$xorg_testset_save_CFLAGS"
12744 fi
12745
12746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12749 fi
12750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12754 $as_echo_n "(cached) " >&6
12755 else
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758 int i;
12759 _ACEOF
12760 if ac_fn_c_try_compile "$LINENO"; then :
12761 xorg_cv_cc_flag_unused_command_line_argument=yes
12762 else
12763 xorg_cv_cc_flag_unused_command_line_argument=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 fi
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12770 CFLAGS="$xorg_testset_save_CFLAGS"
12771 fi
12772
12773 found="no"
12774
12775 if test $found = "no" ; then
12776 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12778 fi
12779
12780 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12782 fi
12783
12784 CFLAGS="$CFLAGS -Wstrict-prototypes"
12785
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12787 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12788 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12789 if eval \${$cacheid+:} false; then :
12790 $as_echo_n "(cached) " >&6
12791 else
12792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12793 /* end confdefs.h. */
12794 int i;
12795 int
12796 main ()
12797 {
12798
12799 ;
12800 return 0;
12801 }
12802 _ACEOF
12803 if ac_fn_c_try_link "$LINENO"; then :
12804 eval $cacheid=yes
12805 else
12806 eval $cacheid=no
12807 fi
12808 rm -f core conftest.err conftest.$ac_objext \
12809 conftest$ac_exeext conftest.$ac_ext
12810 fi
12811
12812
12813 CFLAGS="$xorg_testset_save_CFLAGS"
12814
12815 eval supported=\$$cacheid
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12817 $as_echo "$supported" >&6; }
12818 if test "$supported" = "yes" ; then
12819 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12820 found="yes"
12821 fi
12822 fi
12823
12824
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838 xorg_testset_save_CFLAGS="$CFLAGS"
12839
12840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12844 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12845 $as_echo_n "(cached) " >&6
12846 else
12847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12848 /* end confdefs.h. */
12849 int i;
12850 _ACEOF
12851 if ac_fn_c_try_compile "$LINENO"; then :
12852 xorg_cv_cc_flag_unknown_warning_option=yes
12853 else
12854 xorg_cv_cc_flag_unknown_warning_option=no
12855 fi
12856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12857 fi
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12861 CFLAGS="$xorg_testset_save_CFLAGS"
12862 fi
12863
12864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12867 fi
12868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12875 /* end confdefs.h. */
12876 int i;
12877 _ACEOF
12878 if ac_fn_c_try_compile "$LINENO"; then :
12879 xorg_cv_cc_flag_unused_command_line_argument=yes
12880 else
12881 xorg_cv_cc_flag_unused_command_line_argument=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 fi
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12888 CFLAGS="$xorg_testset_save_CFLAGS"
12889 fi
12890
12891 found="no"
12892
12893 if test $found = "no" ; then
12894 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12896 fi
12897
12898 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12900 fi
12901
12902 CFLAGS="$CFLAGS -Wmissing-prototypes"
12903
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12905 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12906 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12907 if eval \${$cacheid+:} false; then :
12908 $as_echo_n "(cached) " >&6
12909 else
12910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12911 /* end confdefs.h. */
12912 int i;
12913 int
12914 main ()
12915 {
12916
12917 ;
12918 return 0;
12919 }
12920 _ACEOF
12921 if ac_fn_c_try_link "$LINENO"; then :
12922 eval $cacheid=yes
12923 else
12924 eval $cacheid=no
12925 fi
12926 rm -f core conftest.err conftest.$ac_objext \
12927 conftest$ac_exeext conftest.$ac_ext
12928 fi
12929
12930
12931 CFLAGS="$xorg_testset_save_CFLAGS"
12932
12933 eval supported=\$$cacheid
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12935 $as_echo "$supported" >&6; }
12936 if test "$supported" = "yes" ; then
12937 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12938 found="yes"
12939 fi
12940 fi
12941
12942
12943
12944
12945
12946
12947
12948
12949
12950
12951
12952
12953
12954
12955
12956 xorg_testset_save_CFLAGS="$CFLAGS"
12957
12958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12963 $as_echo_n "(cached) " >&6
12964 else
12965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 int i;
12968 _ACEOF
12969 if ac_fn_c_try_compile "$LINENO"; then :
12970 xorg_cv_cc_flag_unknown_warning_option=yes
12971 else
12972 xorg_cv_cc_flag_unknown_warning_option=no
12973 fi
12974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12975 fi
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12979 CFLAGS="$xorg_testset_save_CFLAGS"
12980 fi
12981
12982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12985 fi
12986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12990 $as_echo_n "(cached) " >&6
12991 else
12992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12993 /* end confdefs.h. */
12994 int i;
12995 _ACEOF
12996 if ac_fn_c_try_compile "$LINENO"; then :
12997 xorg_cv_cc_flag_unused_command_line_argument=yes
12998 else
12999 xorg_cv_cc_flag_unused_command_line_argument=no
13000 fi
13001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13002 fi
13003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13006 CFLAGS="$xorg_testset_save_CFLAGS"
13007 fi
13008
13009 found="no"
13010
13011 if test $found = "no" ; then
13012 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13014 fi
13015
13016 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13018 fi
13019
13020 CFLAGS="$CFLAGS -Wnested-externs"
13021
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13023 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13024 cacheid=xorg_cv_cc_flag__Wnested_externs
13025 if eval \${$cacheid+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h. */
13030 int i;
13031 int
13032 main ()
13033 {
13034
13035 ;
13036 return 0;
13037 }
13038 _ACEOF
13039 if ac_fn_c_try_link "$LINENO"; then :
13040 eval $cacheid=yes
13041 else
13042 eval $cacheid=no
13043 fi
13044 rm -f core conftest.err conftest.$ac_objext \
13045 conftest$ac_exeext conftest.$ac_ext
13046 fi
13047
13048
13049 CFLAGS="$xorg_testset_save_CFLAGS"
13050
13051 eval supported=\$$cacheid
13052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13053 $as_echo "$supported" >&6; }
13054 if test "$supported" = "yes" ; then
13055 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13056 found="yes"
13057 fi
13058 fi
13059
13060
13061
13062
13063
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074 xorg_testset_save_CFLAGS="$CFLAGS"
13075
13076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13081 $as_echo_n "(cached) " >&6
13082 else
13083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13084 /* end confdefs.h. */
13085 int i;
13086 _ACEOF
13087 if ac_fn_c_try_compile "$LINENO"; then :
13088 xorg_cv_cc_flag_unknown_warning_option=yes
13089 else
13090 xorg_cv_cc_flag_unknown_warning_option=no
13091 fi
13092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13093 fi
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13097 CFLAGS="$xorg_testset_save_CFLAGS"
13098 fi
13099
13100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13103 fi
13104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13108 $as_echo_n "(cached) " >&6
13109 else
13110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 int i;
13113 _ACEOF
13114 if ac_fn_c_try_compile "$LINENO"; then :
13115 xorg_cv_cc_flag_unused_command_line_argument=yes
13116 else
13117 xorg_cv_cc_flag_unused_command_line_argument=no
13118 fi
13119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13120 fi
13121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13124 CFLAGS="$xorg_testset_save_CFLAGS"
13125 fi
13126
13127 found="no"
13128
13129 if test $found = "no" ; then
13130 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13132 fi
13133
13134 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13136 fi
13137
13138 CFLAGS="$CFLAGS -Wbad-function-cast"
13139
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13141 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13142 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13143 if eval \${$cacheid+:} false; then :
13144 $as_echo_n "(cached) " >&6
13145 else
13146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13147 /* end confdefs.h. */
13148 int i;
13149 int
13150 main ()
13151 {
13152
13153 ;
13154 return 0;
13155 }
13156 _ACEOF
13157 if ac_fn_c_try_link "$LINENO"; then :
13158 eval $cacheid=yes
13159 else
13160 eval $cacheid=no
13161 fi
13162 rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164 fi
13165
13166
13167 CFLAGS="$xorg_testset_save_CFLAGS"
13168
13169 eval supported=\$$cacheid
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13171 $as_echo "$supported" >&6; }
13172 if test "$supported" = "yes" ; then
13173 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13174 found="yes"
13175 fi
13176 fi
13177
13178
13179
13180
13181
13182
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192 xorg_testset_save_CFLAGS="$CFLAGS"
13193
13194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13199 $as_echo_n "(cached) " >&6
13200 else
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 int i;
13204 _ACEOF
13205 if ac_fn_c_try_compile "$LINENO"; then :
13206 xorg_cv_cc_flag_unknown_warning_option=yes
13207 else
13208 xorg_cv_cc_flag_unknown_warning_option=no
13209 fi
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 fi
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13215 CFLAGS="$xorg_testset_save_CFLAGS"
13216 fi
13217
13218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13221 fi
13222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13226 $as_echo_n "(cached) " >&6
13227 else
13228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13229 /* end confdefs.h. */
13230 int i;
13231 _ACEOF
13232 if ac_fn_c_try_compile "$LINENO"; then :
13233 xorg_cv_cc_flag_unused_command_line_argument=yes
13234 else
13235 xorg_cv_cc_flag_unused_command_line_argument=no
13236 fi
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 fi
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13242 CFLAGS="$xorg_testset_save_CFLAGS"
13243 fi
13244
13245 found="no"
13246
13247 if test $found = "no" ; then
13248 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13250 fi
13251
13252 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13254 fi
13255
13256 CFLAGS="$CFLAGS -Wold-style-definition"
13257
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13259 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13260 cacheid=xorg_cv_cc_flag__Wold_style_definition
13261 if eval \${$cacheid+:} false; then :
13262 $as_echo_n "(cached) " >&6
13263 else
13264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13265 /* end confdefs.h. */
13266 int i;
13267 int
13268 main ()
13269 {
13270
13271 ;
13272 return 0;
13273 }
13274 _ACEOF
13275 if ac_fn_c_try_link "$LINENO"; then :
13276 eval $cacheid=yes
13277 else
13278 eval $cacheid=no
13279 fi
13280 rm -f core conftest.err conftest.$ac_objext \
13281 conftest$ac_exeext conftest.$ac_ext
13282 fi
13283
13284
13285 CFLAGS="$xorg_testset_save_CFLAGS"
13286
13287 eval supported=\$$cacheid
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13289 $as_echo "$supported" >&6; }
13290 if test "$supported" = "yes" ; then
13291 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13292 found="yes"
13293 fi
13294 fi
13295
13296 if test $found = "no" ; then
13297 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13298 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13299 fi
13300
13301 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13302 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13303 fi
13304
13305 CFLAGS="$CFLAGS -fd"
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13308 $as_echo_n "checking if $CC supports -fd... " >&6; }
13309 cacheid=xorg_cv_cc_flag__fd
13310 if eval \${$cacheid+:} false; then :
13311 $as_echo_n "(cached) " >&6
13312 else
13313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13314 /* end confdefs.h. */
13315 int i;
13316 int
13317 main ()
13318 {
13319
13320 ;
13321 return 0;
13322 }
13323 _ACEOF
13324 if ac_fn_c_try_link "$LINENO"; then :
13325 eval $cacheid=yes
13326 else
13327 eval $cacheid=no
13328 fi
13329 rm -f core conftest.err conftest.$ac_objext \
13330 conftest$ac_exeext conftest.$ac_ext
13331 fi
13332
13333
13334 CFLAGS="$xorg_testset_save_CFLAGS"
13335
13336 eval supported=\$$cacheid
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13338 $as_echo "$supported" >&6; }
13339 if test "$supported" = "yes" ; then
13340 BASE_CFLAGS="$BASE_CFLAGS -fd"
13341 found="yes"
13342 fi
13343 fi
13344
13345
13346
13347
13348
13349
13350
13351
13352
13353
13354
13355
13356
13357
13358
13359 xorg_testset_save_CFLAGS="$CFLAGS"
13360
13361 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13362 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13364 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13365 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13366 $as_echo_n "(cached) " >&6
13367 else
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 int i;
13371 _ACEOF
13372 if ac_fn_c_try_compile "$LINENO"; then :
13373 xorg_cv_cc_flag_unknown_warning_option=yes
13374 else
13375 xorg_cv_cc_flag_unknown_warning_option=no
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13378 fi
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13380 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13381 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13382 CFLAGS="$xorg_testset_save_CFLAGS"
13383 fi
13384
13385 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13386 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13387 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13388 fi
13389 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13391 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13392 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13393 $as_echo_n "(cached) " >&6
13394 else
13395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13396 /* end confdefs.h. */
13397 int i;
13398 _ACEOF
13399 if ac_fn_c_try_compile "$LINENO"; then :
13400 xorg_cv_cc_flag_unused_command_line_argument=yes
13401 else
13402 xorg_cv_cc_flag_unused_command_line_argument=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13405 fi
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13407 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13408 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13409 CFLAGS="$xorg_testset_save_CFLAGS"
13410 fi
13411
13412 found="no"
13413
13414 if test $found = "no" ; then
13415 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13416 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13417 fi
13418
13419 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13420 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13421 fi
13422
13423 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13426 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13427 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13428 if eval \${$cacheid+:} false; then :
13429 $as_echo_n "(cached) " >&6
13430 else
13431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432 /* end confdefs.h. */
13433 int i;
13434 int
13435 main ()
13436 {
13437
13438 ;
13439 return 0;
13440 }
13441 _ACEOF
13442 if ac_fn_c_try_link "$LINENO"; then :
13443 eval $cacheid=yes
13444 else
13445 eval $cacheid=no
13446 fi
13447 rm -f core conftest.err conftest.$ac_objext \
13448 conftest$ac_exeext conftest.$ac_ext
13449 fi
13450
13451
13452 CFLAGS="$xorg_testset_save_CFLAGS"
13453
13454 eval supported=\$$cacheid
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13456 $as_echo "$supported" >&6; }
13457 if test "$supported" = "yes" ; then
13458 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13459 found="yes"
13460 fi
13461 fi
13462
13463
13464
13465
13466
13467 # This chunk adds additional warnings that could catch undesired effects.
13468
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481 xorg_testset_save_CFLAGS="$CFLAGS"
13482
13483 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13484 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13486 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13487 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13488 $as_echo_n "(cached) " >&6
13489 else
13490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13491 /* end confdefs.h. */
13492 int i;
13493 _ACEOF
13494 if ac_fn_c_try_compile "$LINENO"; then :
13495 xorg_cv_cc_flag_unknown_warning_option=yes
13496 else
13497 xorg_cv_cc_flag_unknown_warning_option=no
13498 fi
13499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13500 fi
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13502 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13503 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13504 CFLAGS="$xorg_testset_save_CFLAGS"
13505 fi
13506
13507 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13508 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13509 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13510 fi
13511 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13513 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13514 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13515 $as_echo_n "(cached) " >&6
13516 else
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13519 int i;
13520 _ACEOF
13521 if ac_fn_c_try_compile "$LINENO"; then :
13522 xorg_cv_cc_flag_unused_command_line_argument=yes
13523 else
13524 xorg_cv_cc_flag_unused_command_line_argument=no
13525 fi
13526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13527 fi
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13529 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13530 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13531 CFLAGS="$xorg_testset_save_CFLAGS"
13532 fi
13533
13534 found="no"
13535
13536 if test $found = "no" ; then
13537 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13539 fi
13540
13541 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13542 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13543 fi
13544
13545 CFLAGS="$CFLAGS -Wunused"
13546
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13548 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13549 cacheid=xorg_cv_cc_flag__Wunused
13550 if eval \${$cacheid+:} false; then :
13551 $as_echo_n "(cached) " >&6
13552 else
13553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13554 /* end confdefs.h. */
13555 int i;
13556 int
13557 main ()
13558 {
13559
13560 ;
13561 return 0;
13562 }
13563 _ACEOF
13564 if ac_fn_c_try_link "$LINENO"; then :
13565 eval $cacheid=yes
13566 else
13567 eval $cacheid=no
13568 fi
13569 rm -f core conftest.err conftest.$ac_objext \
13570 conftest$ac_exeext conftest.$ac_ext
13571 fi
13572
13573
13574 CFLAGS="$xorg_testset_save_CFLAGS"
13575
13576 eval supported=\$$cacheid
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13578 $as_echo "$supported" >&6; }
13579 if test "$supported" = "yes" ; then
13580 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13581 found="yes"
13582 fi
13583 fi
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599 xorg_testset_save_CFLAGS="$CFLAGS"
13600
13601 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13602 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13604 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13605 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13606 $as_echo_n "(cached) " >&6
13607 else
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 int i;
13611 _ACEOF
13612 if ac_fn_c_try_compile "$LINENO"; then :
13613 xorg_cv_cc_flag_unknown_warning_option=yes
13614 else
13615 xorg_cv_cc_flag_unknown_warning_option=no
13616 fi
13617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13618 fi
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13620 $as_echo "$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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13631 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13632 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13633 $as_echo_n "(cached) " >&6
13634 else
13635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13636 /* end confdefs.h. */
13637 int i;
13638 _ACEOF
13639 if ac_fn_c_try_compile "$LINENO"; then :
13640 xorg_cv_cc_flag_unused_command_line_argument=yes
13641 else
13642 xorg_cv_cc_flag_unused_command_line_argument=no
13643 fi
13644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13645 fi
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13647 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13648 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13649 CFLAGS="$xorg_testset_save_CFLAGS"
13650 fi
13651
13652 found="no"
13653
13654 if test $found = "no" ; then
13655 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13657 fi
13658
13659 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13661 fi
13662
13663 CFLAGS="$CFLAGS -Wuninitialized"
13664
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13666 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13667 cacheid=xorg_cv_cc_flag__Wuninitialized
13668 if eval \${$cacheid+:} false; then :
13669 $as_echo_n "(cached) " >&6
13670 else
13671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13672 /* end confdefs.h. */
13673 int i;
13674 int
13675 main ()
13676 {
13677
13678 ;
13679 return 0;
13680 }
13681 _ACEOF
13682 if ac_fn_c_try_link "$LINENO"; then :
13683 eval $cacheid=yes
13684 else
13685 eval $cacheid=no
13686 fi
13687 rm -f core conftest.err conftest.$ac_objext \
13688 conftest$ac_exeext conftest.$ac_ext
13689 fi
13690
13691
13692 CFLAGS="$xorg_testset_save_CFLAGS"
13693
13694 eval supported=\$$cacheid
13695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13696 $as_echo "$supported" >&6; }
13697 if test "$supported" = "yes" ; then
13698 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13699 found="yes"
13700 fi
13701 fi
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717 xorg_testset_save_CFLAGS="$CFLAGS"
13718
13719 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13720 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13722 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13723 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13724 $as_echo_n "(cached) " >&6
13725 else
13726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13727 /* end confdefs.h. */
13728 int i;
13729 _ACEOF
13730 if ac_fn_c_try_compile "$LINENO"; then :
13731 xorg_cv_cc_flag_unknown_warning_option=yes
13732 else
13733 xorg_cv_cc_flag_unknown_warning_option=no
13734 fi
13735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736 fi
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13738 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13739 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13740 CFLAGS="$xorg_testset_save_CFLAGS"
13741 fi
13742
13743 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13746 fi
13747 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13749 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13750 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13751 $as_echo_n "(cached) " >&6
13752 else
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 int i;
13756 _ACEOF
13757 if ac_fn_c_try_compile "$LINENO"; then :
13758 xorg_cv_cc_flag_unused_command_line_argument=yes
13759 else
13760 xorg_cv_cc_flag_unused_command_line_argument=no
13761 fi
13762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13763 fi
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13765 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13766 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13767 CFLAGS="$xorg_testset_save_CFLAGS"
13768 fi
13769
13770 found="no"
13771
13772 if test $found = "no" ; then
13773 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13775 fi
13776
13777 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13779 fi
13780
13781 CFLAGS="$CFLAGS -Wshadow"
13782
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13784 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13785 cacheid=xorg_cv_cc_flag__Wshadow
13786 if eval \${$cacheid+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13790 /* end confdefs.h. */
13791 int i;
13792 int
13793 main ()
13794 {
13795
13796 ;
13797 return 0;
13798 }
13799 _ACEOF
13800 if ac_fn_c_try_link "$LINENO"; then :
13801 eval $cacheid=yes
13802 else
13803 eval $cacheid=no
13804 fi
13805 rm -f core conftest.err conftest.$ac_objext \
13806 conftest$ac_exeext conftest.$ac_ext
13807 fi
13808
13809
13810 CFLAGS="$xorg_testset_save_CFLAGS"
13811
13812 eval supported=\$$cacheid
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13814 $as_echo "$supported" >&6; }
13815 if test "$supported" = "yes" ; then
13816 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13817 found="yes"
13818 fi
13819 fi
13820
13821
13822
13823
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833
13834
13835 xorg_testset_save_CFLAGS="$CFLAGS"
13836
13837 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13838 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13840 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13841 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13842 $as_echo_n "(cached) " >&6
13843 else
13844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* end confdefs.h. */
13846 int i;
13847 _ACEOF
13848 if ac_fn_c_try_compile "$LINENO"; then :
13849 xorg_cv_cc_flag_unknown_warning_option=yes
13850 else
13851 xorg_cv_cc_flag_unknown_warning_option=no
13852 fi
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 fi
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13856 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13857 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13858 CFLAGS="$xorg_testset_save_CFLAGS"
13859 fi
13860
13861 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13862 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13863 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13864 fi
13865 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13867 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13868 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13869 $as_echo_n "(cached) " >&6
13870 else
13871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13872 /* end confdefs.h. */
13873 int i;
13874 _ACEOF
13875 if ac_fn_c_try_compile "$LINENO"; then :
13876 xorg_cv_cc_flag_unused_command_line_argument=yes
13877 else
13878 xorg_cv_cc_flag_unused_command_line_argument=no
13879 fi
13880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881 fi
13882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13883 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13884 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13885 CFLAGS="$xorg_testset_save_CFLAGS"
13886 fi
13887
13888 found="no"
13889
13890 if test $found = "no" ; then
13891 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13893 fi
13894
13895 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13896 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13897 fi
13898
13899 CFLAGS="$CFLAGS -Wmissing-noreturn"
13900
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13902 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13903 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13904 if eval \${$cacheid+:} false; then :
13905 $as_echo_n "(cached) " >&6
13906 else
13907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13908 /* end confdefs.h. */
13909 int i;
13910 int
13911 main ()
13912 {
13913
13914 ;
13915 return 0;
13916 }
13917 _ACEOF
13918 if ac_fn_c_try_link "$LINENO"; then :
13919 eval $cacheid=yes
13920 else
13921 eval $cacheid=no
13922 fi
13923 rm -f core conftest.err conftest.$ac_objext \
13924 conftest$ac_exeext conftest.$ac_ext
13925 fi
13926
13927
13928 CFLAGS="$xorg_testset_save_CFLAGS"
13929
13930 eval supported=\$$cacheid
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13932 $as_echo "$supported" >&6; }
13933 if test "$supported" = "yes" ; then
13934 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13935 found="yes"
13936 fi
13937 fi
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953 xorg_testset_save_CFLAGS="$CFLAGS"
13954
13955 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13956 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13958 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13959 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13960 $as_echo_n "(cached) " >&6
13961 else
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13964 int i;
13965 _ACEOF
13966 if ac_fn_c_try_compile "$LINENO"; then :
13967 xorg_cv_cc_flag_unknown_warning_option=yes
13968 else
13969 xorg_cv_cc_flag_unknown_warning_option=no
13970 fi
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 fi
13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13974 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13975 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13976 CFLAGS="$xorg_testset_save_CFLAGS"
13977 fi
13978
13979 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13980 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13981 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13982 fi
13983 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13985 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13986 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13987 $as_echo_n "(cached) " >&6
13988 else
13989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13990 /* end confdefs.h. */
13991 int i;
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994 xorg_cv_cc_flag_unused_command_line_argument=yes
13995 else
13996 xorg_cv_cc_flag_unused_command_line_argument=no
13997 fi
13998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13999 fi
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14001 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14002 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14003 CFLAGS="$xorg_testset_save_CFLAGS"
14004 fi
14005
14006 found="no"
14007
14008 if test $found = "no" ; then
14009 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14011 fi
14012
14013 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14014 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14015 fi
14016
14017 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14018
14019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14020 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14021 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14022 if eval \${$cacheid+:} false; then :
14023 $as_echo_n "(cached) " >&6
14024 else
14025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14026 /* end confdefs.h. */
14027 int i;
14028 int
14029 main ()
14030 {
14031
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 if ac_fn_c_try_link "$LINENO"; then :
14037 eval $cacheid=yes
14038 else
14039 eval $cacheid=no
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext \
14042 conftest$ac_exeext conftest.$ac_ext
14043 fi
14044
14045
14046 CFLAGS="$xorg_testset_save_CFLAGS"
14047
14048 eval supported=\$$cacheid
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14050 $as_echo "$supported" >&6; }
14051 if test "$supported" = "yes" ; then
14052 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14053 found="yes"
14054 fi
14055 fi
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071 xorg_testset_save_CFLAGS="$CFLAGS"
14072
14073 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14074 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14076 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14077 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14078 $as_echo_n "(cached) " >&6
14079 else
14080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14081 /* end confdefs.h. */
14082 int i;
14083 _ACEOF
14084 if ac_fn_c_try_compile "$LINENO"; then :
14085 xorg_cv_cc_flag_unknown_warning_option=yes
14086 else
14087 xorg_cv_cc_flag_unknown_warning_option=no
14088 fi
14089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14090 fi
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14092 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14093 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14094 CFLAGS="$xorg_testset_save_CFLAGS"
14095 fi
14096
14097 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14098 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14099 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14100 fi
14101 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14103 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14104 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14105 $as_echo_n "(cached) " >&6
14106 else
14107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14108 /* end confdefs.h. */
14109 int i;
14110 _ACEOF
14111 if ac_fn_c_try_compile "$LINENO"; then :
14112 xorg_cv_cc_flag_unused_command_line_argument=yes
14113 else
14114 xorg_cv_cc_flag_unused_command_line_argument=no
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14117 fi
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14119 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14120 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14121 CFLAGS="$xorg_testset_save_CFLAGS"
14122 fi
14123
14124 found="no"
14125
14126 if test $found = "no" ; then
14127 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14129 fi
14130
14131 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14132 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14133 fi
14134
14135 CFLAGS="$CFLAGS -Wredundant-decls"
14136
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14138 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14139 cacheid=xorg_cv_cc_flag__Wredundant_decls
14140 if eval \${$cacheid+:} false; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14144 /* end confdefs.h. */
14145 int i;
14146 int
14147 main ()
14148 {
14149
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 if ac_fn_c_try_link "$LINENO"; then :
14155 eval $cacheid=yes
14156 else
14157 eval $cacheid=no
14158 fi
14159 rm -f core conftest.err conftest.$ac_objext \
14160 conftest$ac_exeext conftest.$ac_ext
14161 fi
14162
14163
14164 CFLAGS="$xorg_testset_save_CFLAGS"
14165
14166 eval supported=\$$cacheid
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14168 $as_echo "$supported" >&6; }
14169 if test "$supported" = "yes" ; then
14170 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14171 found="yes"
14172 fi
14173 fi
14174
14175
14176
14177
14178
14179
14180
14181
14182
14183
14184
14185
14186
14187
14188
14189 xorg_testset_save_CFLAGS="$CFLAGS"
14190
14191 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14192 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14194 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14195 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14196 $as_echo_n "(cached) " >&6
14197 else
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 int i;
14201 _ACEOF
14202 if ac_fn_c_try_compile "$LINENO"; then :
14203 xorg_cv_cc_flag_unknown_warning_option=yes
14204 else
14205 xorg_cv_cc_flag_unknown_warning_option=no
14206 fi
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 fi
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14210 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14211 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14212 CFLAGS="$xorg_testset_save_CFLAGS"
14213 fi
14214
14215 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14216 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14217 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14218 fi
14219 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14221 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14222 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14226 /* end confdefs.h. */
14227 int i;
14228 _ACEOF
14229 if ac_fn_c_try_compile "$LINENO"; then :
14230 xorg_cv_cc_flag_unused_command_line_argument=yes
14231 else
14232 xorg_cv_cc_flag_unused_command_line_argument=no
14233 fi
14234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14235 fi
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14237 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14238 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14239 CFLAGS="$xorg_testset_save_CFLAGS"
14240 fi
14241
14242 found="no"
14243
14244 if test $found = "no" ; then
14245 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14247 fi
14248
14249 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14250 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14251 fi
14252
14253 CFLAGS="$CFLAGS -Wlogical-op"
14254
14255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14256 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14257 cacheid=xorg_cv_cc_flag__Wlogical_op
14258 if eval \${$cacheid+:} false; then :
14259 $as_echo_n "(cached) " >&6
14260 else
14261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14262 /* end confdefs.h. */
14263 int i;
14264 int
14265 main ()
14266 {
14267
14268 ;
14269 return 0;
14270 }
14271 _ACEOF
14272 if ac_fn_c_try_link "$LINENO"; then :
14273 eval $cacheid=yes
14274 else
14275 eval $cacheid=no
14276 fi
14277 rm -f core conftest.err conftest.$ac_objext \
14278 conftest$ac_exeext conftest.$ac_ext
14279 fi
14280
14281
14282 CFLAGS="$xorg_testset_save_CFLAGS"
14283
14284 eval supported=\$$cacheid
14285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14286 $as_echo "$supported" >&6; }
14287 if test "$supported" = "yes" ; then
14288 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14289 found="yes"
14290 fi
14291 fi
14292
14293
14294
14295 # These are currently disabled because they are noisy. They will be enabled
14296 # in the future once the codebase is sufficiently modernized to silence
14297 # them. For now, I don't want them to drown out the other warnings.
14298 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14299 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14300 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14301
14302 # Turn some warnings into errors, so we don't accidently get successful builds
14303 # when there are problems that should be fixed.
14304
14305 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319 xorg_testset_save_CFLAGS="$CFLAGS"
14320
14321 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14322 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14324 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14325 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14326 $as_echo_n "(cached) " >&6
14327 else
14328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14329 /* end confdefs.h. */
14330 int i;
14331 _ACEOF
14332 if ac_fn_c_try_compile "$LINENO"; then :
14333 xorg_cv_cc_flag_unknown_warning_option=yes
14334 else
14335 xorg_cv_cc_flag_unknown_warning_option=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 fi
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14340 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14341 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14342 CFLAGS="$xorg_testset_save_CFLAGS"
14343 fi
14344
14345 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14346 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14347 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14348 fi
14349 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14351 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14352 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14353 $as_echo_n "(cached) " >&6
14354 else
14355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14356 /* end confdefs.h. */
14357 int i;
14358 _ACEOF
14359 if ac_fn_c_try_compile "$LINENO"; then :
14360 xorg_cv_cc_flag_unused_command_line_argument=yes
14361 else
14362 xorg_cv_cc_flag_unused_command_line_argument=no
14363 fi
14364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14365 fi
14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14367 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14368 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14369 CFLAGS="$xorg_testset_save_CFLAGS"
14370 fi
14371
14372 found="no"
14373
14374 if test $found = "no" ; then
14375 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14376 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14377 fi
14378
14379 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14380 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14381 fi
14382
14383 CFLAGS="$CFLAGS -Werror=implicit"
14384
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14386 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14387 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
14388 if eval \${$cacheid+:} false; then :
14389 $as_echo_n "(cached) " >&6
14390 else
14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h. */
14393 int i;
14394 int
14395 main ()
14396 {
14397
14398 ;
14399 return 0;
14400 }
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"; then :
14403 eval $cacheid=yes
14404 else
14405 eval $cacheid=no
14406 fi
14407 rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 fi
14410
14411
14412 CFLAGS="$xorg_testset_save_CFLAGS"
14413
14414 eval supported=\$$cacheid
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14416 $as_echo "$supported" >&6; }
14417 if test "$supported" = "yes" ; then
14418 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14419 found="yes"
14420 fi
14421 fi
14422
14423 if test $found = "no" ; then
14424 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14426 fi
14427
14428 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14430 fi
14431
14432 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14435 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14436 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
14437 if eval \${$cacheid+:} false; then :
14438 $as_echo_n "(cached) " >&6
14439 else
14440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 int i;
14443 int
14444 main ()
14445 {
14446
14447 ;
14448 return 0;
14449 }
14450 _ACEOF
14451 if ac_fn_c_try_link "$LINENO"; then :
14452 eval $cacheid=yes
14453 else
14454 eval $cacheid=no
14455 fi
14456 rm -f core conftest.err conftest.$ac_objext \
14457 conftest$ac_exeext conftest.$ac_ext
14458 fi
14459
14460
14461 CFLAGS="$xorg_testset_save_CFLAGS"
14462
14463 eval supported=\$$cacheid
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14465 $as_echo "$supported" >&6; }
14466 if test "$supported" = "yes" ; then
14467 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14468 found="yes"
14469 fi
14470 fi
14471
14472
14473
14474
14475
14476
14477
14478
14479
14480
14481
14482
14483
14484
14485
14486 xorg_testset_save_CFLAGS="$CFLAGS"
14487
14488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14497 int i;
14498 _ACEOF
14499 if ac_fn_c_try_compile "$LINENO"; then :
14500 xorg_cv_cc_flag_unknown_warning_option=yes
14501 else
14502 xorg_cv_cc_flag_unknown_warning_option=no
14503 fi
14504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14509 CFLAGS="$xorg_testset_save_CFLAGS"
14510 fi
14511
14512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14515 fi
14516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14520 $as_echo_n "(cached) " >&6
14521 else
14522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14523 /* end confdefs.h. */
14524 int i;
14525 _ACEOF
14526 if ac_fn_c_try_compile "$LINENO"; then :
14527 xorg_cv_cc_flag_unused_command_line_argument=yes
14528 else
14529 xorg_cv_cc_flag_unused_command_line_argument=no
14530 fi
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14536 CFLAGS="$xorg_testset_save_CFLAGS"
14537 fi
14538
14539 found="no"
14540
14541 if test $found = "no" ; then
14542 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14544 fi
14545
14546 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14548 fi
14549
14550 CFLAGS="$CFLAGS -Werror=nonnull"
14551
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14553 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14554 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14555 if eval \${$cacheid+:} false; then :
14556 $as_echo_n "(cached) " >&6
14557 else
14558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14559 /* end confdefs.h. */
14560 int i;
14561 int
14562 main ()
14563 {
14564
14565 ;
14566 return 0;
14567 }
14568 _ACEOF
14569 if ac_fn_c_try_link "$LINENO"; then :
14570 eval $cacheid=yes
14571 else
14572 eval $cacheid=no
14573 fi
14574 rm -f core conftest.err conftest.$ac_objext \
14575 conftest$ac_exeext conftest.$ac_ext
14576 fi
14577
14578
14579 CFLAGS="$xorg_testset_save_CFLAGS"
14580
14581 eval supported=\$$cacheid
14582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14583 $as_echo "$supported" >&6; }
14584 if test "$supported" = "yes" ; then
14585 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14586 found="yes"
14587 fi
14588 fi
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604 xorg_testset_save_CFLAGS="$CFLAGS"
14605
14606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14611 $as_echo_n "(cached) " >&6
14612 else
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 int i;
14616 _ACEOF
14617 if ac_fn_c_try_compile "$LINENO"; then :
14618 xorg_cv_cc_flag_unknown_warning_option=yes
14619 else
14620 xorg_cv_cc_flag_unknown_warning_option=no
14621 fi
14622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14623 fi
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14627 CFLAGS="$xorg_testset_save_CFLAGS"
14628 fi
14629
14630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14633 fi
14634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14638 $as_echo_n "(cached) " >&6
14639 else
14640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14641 /* end confdefs.h. */
14642 int i;
14643 _ACEOF
14644 if ac_fn_c_try_compile "$LINENO"; then :
14645 xorg_cv_cc_flag_unused_command_line_argument=yes
14646 else
14647 xorg_cv_cc_flag_unused_command_line_argument=no
14648 fi
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 fi
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14654 CFLAGS="$xorg_testset_save_CFLAGS"
14655 fi
14656
14657 found="no"
14658
14659 if test $found = "no" ; then
14660 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14662 fi
14663
14664 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14666 fi
14667
14668 CFLAGS="$CFLAGS -Werror=init-self"
14669
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14671 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14672 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14673 if eval \${$cacheid+:} false; then :
14674 $as_echo_n "(cached) " >&6
14675 else
14676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14677 /* end confdefs.h. */
14678 int i;
14679 int
14680 main ()
14681 {
14682
14683 ;
14684 return 0;
14685 }
14686 _ACEOF
14687 if ac_fn_c_try_link "$LINENO"; then :
14688 eval $cacheid=yes
14689 else
14690 eval $cacheid=no
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext \
14693 conftest$ac_exeext conftest.$ac_ext
14694 fi
14695
14696
14697 CFLAGS="$xorg_testset_save_CFLAGS"
14698
14699 eval supported=\$$cacheid
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14701 $as_echo "$supported" >&6; }
14702 if test "$supported" = "yes" ; then
14703 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14704 found="yes"
14705 fi
14706 fi
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722 xorg_testset_save_CFLAGS="$CFLAGS"
14723
14724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14729 $as_echo_n "(cached) " >&6
14730 else
14731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14732 /* end confdefs.h. */
14733 int i;
14734 _ACEOF
14735 if ac_fn_c_try_compile "$LINENO"; then :
14736 xorg_cv_cc_flag_unknown_warning_option=yes
14737 else
14738 xorg_cv_cc_flag_unknown_warning_option=no
14739 fi
14740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14741 fi
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14745 CFLAGS="$xorg_testset_save_CFLAGS"
14746 fi
14747
14748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14751 fi
14752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14756 $as_echo_n "(cached) " >&6
14757 else
14758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14760 int i;
14761 _ACEOF
14762 if ac_fn_c_try_compile "$LINENO"; then :
14763 xorg_cv_cc_flag_unused_command_line_argument=yes
14764 else
14765 xorg_cv_cc_flag_unused_command_line_argument=no
14766 fi
14767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14768 fi
14769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14772 CFLAGS="$xorg_testset_save_CFLAGS"
14773 fi
14774
14775 found="no"
14776
14777 if test $found = "no" ; then
14778 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14780 fi
14781
14782 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14784 fi
14785
14786 CFLAGS="$CFLAGS -Werror=main"
14787
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14789 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14790 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14791 if eval \${$cacheid+:} false; then :
14792 $as_echo_n "(cached) " >&6
14793 else
14794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14795 /* end confdefs.h. */
14796 int i;
14797 int
14798 main ()
14799 {
14800
14801 ;
14802 return 0;
14803 }
14804 _ACEOF
14805 if ac_fn_c_try_link "$LINENO"; then :
14806 eval $cacheid=yes
14807 else
14808 eval $cacheid=no
14809 fi
14810 rm -f core conftest.err conftest.$ac_objext \
14811 conftest$ac_exeext conftest.$ac_ext
14812 fi
14813
14814
14815 CFLAGS="$xorg_testset_save_CFLAGS"
14816
14817 eval supported=\$$cacheid
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14819 $as_echo "$supported" >&6; }
14820 if test "$supported" = "yes" ; then
14821 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14822 found="yes"
14823 fi
14824 fi
14825
14826
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840 xorg_testset_save_CFLAGS="$CFLAGS"
14841
14842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14847 $as_echo_n "(cached) " >&6
14848 else
14849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14850 /* end confdefs.h. */
14851 int i;
14852 _ACEOF
14853 if ac_fn_c_try_compile "$LINENO"; then :
14854 xorg_cv_cc_flag_unknown_warning_option=yes
14855 else
14856 xorg_cv_cc_flag_unknown_warning_option=no
14857 fi
14858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14859 fi
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14863 CFLAGS="$xorg_testset_save_CFLAGS"
14864 fi
14865
14866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14869 fi
14870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14878 int i;
14879 _ACEOF
14880 if ac_fn_c_try_compile "$LINENO"; then :
14881 xorg_cv_cc_flag_unused_command_line_argument=yes
14882 else
14883 xorg_cv_cc_flag_unused_command_line_argument=no
14884 fi
14885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14886 fi
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14890 CFLAGS="$xorg_testset_save_CFLAGS"
14891 fi
14892
14893 found="no"
14894
14895 if test $found = "no" ; then
14896 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14898 fi
14899
14900 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14902 fi
14903
14904 CFLAGS="$CFLAGS -Werror=missing-braces"
14905
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14907 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14908 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14909 if eval \${$cacheid+:} false; then :
14910 $as_echo_n "(cached) " >&6
14911 else
14912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14913 /* end confdefs.h. */
14914 int i;
14915 int
14916 main ()
14917 {
14918
14919 ;
14920 return 0;
14921 }
14922 _ACEOF
14923 if ac_fn_c_try_link "$LINENO"; then :
14924 eval $cacheid=yes
14925 else
14926 eval $cacheid=no
14927 fi
14928 rm -f core conftest.err conftest.$ac_objext \
14929 conftest$ac_exeext conftest.$ac_ext
14930 fi
14931
14932
14933 CFLAGS="$xorg_testset_save_CFLAGS"
14934
14935 eval supported=\$$cacheid
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14937 $as_echo "$supported" >&6; }
14938 if test "$supported" = "yes" ; then
14939 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14940 found="yes"
14941 fi
14942 fi
14943
14944
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958 xorg_testset_save_CFLAGS="$CFLAGS"
14959
14960 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14961 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14963 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14964 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14965 $as_echo_n "(cached) " >&6
14966 else
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 int i;
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972 xorg_cv_cc_flag_unknown_warning_option=yes
14973 else
14974 xorg_cv_cc_flag_unknown_warning_option=no
14975 fi
14976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14977 fi
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14979 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14980 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14981 CFLAGS="$xorg_testset_save_CFLAGS"
14982 fi
14983
14984 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14985 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14986 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14987 fi
14988 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14990 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14991 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14992 $as_echo_n "(cached) " >&6
14993 else
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14996 int i;
14997 _ACEOF
14998 if ac_fn_c_try_compile "$LINENO"; then :
14999 xorg_cv_cc_flag_unused_command_line_argument=yes
15000 else
15001 xorg_cv_cc_flag_unused_command_line_argument=no
15002 fi
15003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15004 fi
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15006 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15007 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15008 CFLAGS="$xorg_testset_save_CFLAGS"
15009 fi
15010
15011 found="no"
15012
15013 if test $found = "no" ; then
15014 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15015 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15016 fi
15017
15018 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15019 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15020 fi
15021
15022 CFLAGS="$CFLAGS -Werror=sequence-point"
15023
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15025 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15026 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
15027 if eval \${$cacheid+:} false; then :
15028 $as_echo_n "(cached) " >&6
15029 else
15030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15031 /* end confdefs.h. */
15032 int i;
15033 int
15034 main ()
15035 {
15036
15037 ;
15038 return 0;
15039 }
15040 _ACEOF
15041 if ac_fn_c_try_link "$LINENO"; then :
15042 eval $cacheid=yes
15043 else
15044 eval $cacheid=no
15045 fi
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 fi
15049
15050
15051 CFLAGS="$xorg_testset_save_CFLAGS"
15052
15053 eval supported=\$$cacheid
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15055 $as_echo "$supported" >&6; }
15056 if test "$supported" = "yes" ; then
15057 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15058 found="yes"
15059 fi
15060 fi
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076 xorg_testset_save_CFLAGS="$CFLAGS"
15077
15078 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15081 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15082 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15086 /* end confdefs.h. */
15087 int i;
15088 _ACEOF
15089 if ac_fn_c_try_compile "$LINENO"; then :
15090 xorg_cv_cc_flag_unknown_warning_option=yes
15091 else
15092 xorg_cv_cc_flag_unknown_warning_option=no
15093 fi
15094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 fi
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15097 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15098 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15099 CFLAGS="$xorg_testset_save_CFLAGS"
15100 fi
15101
15102 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15103 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15104 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15105 fi
15106 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15108 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15109 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15110 $as_echo_n "(cached) " >&6
15111 else
15112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* end confdefs.h. */
15114 int i;
15115 _ACEOF
15116 if ac_fn_c_try_compile "$LINENO"; then :
15117 xorg_cv_cc_flag_unused_command_line_argument=yes
15118 else
15119 xorg_cv_cc_flag_unused_command_line_argument=no
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15122 fi
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15124 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15125 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15126 CFLAGS="$xorg_testset_save_CFLAGS"
15127 fi
15128
15129 found="no"
15130
15131 if test $found = "no" ; then
15132 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15133 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15134 fi
15135
15136 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15137 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15138 fi
15139
15140 CFLAGS="$CFLAGS -Werror=return-type"
15141
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15143 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15144 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
15145 if eval \${$cacheid+:} false; then :
15146 $as_echo_n "(cached) " >&6
15147 else
15148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15149 /* end confdefs.h. */
15150 int i;
15151 int
15152 main ()
15153 {
15154
15155 ;
15156 return 0;
15157 }
15158 _ACEOF
15159 if ac_fn_c_try_link "$LINENO"; then :
15160 eval $cacheid=yes
15161 else
15162 eval $cacheid=no
15163 fi
15164 rm -f core conftest.err conftest.$ac_objext \
15165 conftest$ac_exeext conftest.$ac_ext
15166 fi
15167
15168
15169 CFLAGS="$xorg_testset_save_CFLAGS"
15170
15171 eval supported=\$$cacheid
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15173 $as_echo "$supported" >&6; }
15174 if test "$supported" = "yes" ; then
15175 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15176 found="yes"
15177 fi
15178 fi
15179
15180 if test $found = "no" ; then
15181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15183 fi
15184
15185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15187 fi
15188
15189 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15190
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15192 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15193 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
15194 if eval \${$cacheid+:} false; then :
15195 $as_echo_n "(cached) " >&6
15196 else
15197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15198 /* end confdefs.h. */
15199 int i;
15200 int
15201 main ()
15202 {
15203
15204 ;
15205 return 0;
15206 }
15207 _ACEOF
15208 if ac_fn_c_try_link "$LINENO"; then :
15209 eval $cacheid=yes
15210 else
15211 eval $cacheid=no
15212 fi
15213 rm -f core conftest.err conftest.$ac_objext \
15214 conftest$ac_exeext conftest.$ac_ext
15215 fi
15216
15217
15218 CFLAGS="$xorg_testset_save_CFLAGS"
15219
15220 eval supported=\$$cacheid
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15222 $as_echo "$supported" >&6; }
15223 if test "$supported" = "yes" ; then
15224 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15225 found="yes"
15226 fi
15227 fi
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243 xorg_testset_save_CFLAGS="$CFLAGS"
15244
15245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15250 $as_echo_n "(cached) " >&6
15251 else
15252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15253 /* end confdefs.h. */
15254 int i;
15255 _ACEOF
15256 if ac_fn_c_try_compile "$LINENO"; then :
15257 xorg_cv_cc_flag_unknown_warning_option=yes
15258 else
15259 xorg_cv_cc_flag_unknown_warning_option=no
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15262 fi
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15266 CFLAGS="$xorg_testset_save_CFLAGS"
15267 fi
15268
15269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15272 fi
15273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15277 $as_echo_n "(cached) " >&6
15278 else
15279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15280 /* end confdefs.h. */
15281 int i;
15282 _ACEOF
15283 if ac_fn_c_try_compile "$LINENO"; then :
15284 xorg_cv_cc_flag_unused_command_line_argument=yes
15285 else
15286 xorg_cv_cc_flag_unused_command_line_argument=no
15287 fi
15288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15289 fi
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15293 CFLAGS="$xorg_testset_save_CFLAGS"
15294 fi
15295
15296 found="no"
15297
15298 if test $found = "no" ; then
15299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15301 fi
15302
15303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15305 fi
15306
15307 CFLAGS="$CFLAGS -Werror=trigraphs"
15308
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15310 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15311 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
15312 if eval \${$cacheid+:} false; then :
15313 $as_echo_n "(cached) " >&6
15314 else
15315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15316 /* end confdefs.h. */
15317 int i;
15318 int
15319 main ()
15320 {
15321
15322 ;
15323 return 0;
15324 }
15325 _ACEOF
15326 if ac_fn_c_try_link "$LINENO"; then :
15327 eval $cacheid=yes
15328 else
15329 eval $cacheid=no
15330 fi
15331 rm -f core conftest.err conftest.$ac_objext \
15332 conftest$ac_exeext conftest.$ac_ext
15333 fi
15334
15335
15336 CFLAGS="$xorg_testset_save_CFLAGS"
15337
15338 eval supported=\$$cacheid
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15340 $as_echo "$supported" >&6; }
15341 if test "$supported" = "yes" ; then
15342 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15343 found="yes"
15344 fi
15345 fi
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361 xorg_testset_save_CFLAGS="$CFLAGS"
15362
15363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15368 $as_echo_n "(cached) " >&6
15369 else
15370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15371 /* end confdefs.h. */
15372 int i;
15373 _ACEOF
15374 if ac_fn_c_try_compile "$LINENO"; then :
15375 xorg_cv_cc_flag_unknown_warning_option=yes
15376 else
15377 xorg_cv_cc_flag_unknown_warning_option=no
15378 fi
15379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15380 fi
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15384 CFLAGS="$xorg_testset_save_CFLAGS"
15385 fi
15386
15387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15390 fi
15391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15395 $as_echo_n "(cached) " >&6
15396 else
15397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15398 /* end confdefs.h. */
15399 int i;
15400 _ACEOF
15401 if ac_fn_c_try_compile "$LINENO"; then :
15402 xorg_cv_cc_flag_unused_command_line_argument=yes
15403 else
15404 xorg_cv_cc_flag_unused_command_line_argument=no
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 fi
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15411 CFLAGS="$xorg_testset_save_CFLAGS"
15412 fi
15413
15414 found="no"
15415
15416 if test $found = "no" ; then
15417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15419 fi
15420
15421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15423 fi
15424
15425 CFLAGS="$CFLAGS -Werror=array-bounds"
15426
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15428 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15429 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
15430 if eval \${$cacheid+:} false; then :
15431 $as_echo_n "(cached) " >&6
15432 else
15433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15434 /* end confdefs.h. */
15435 int i;
15436 int
15437 main ()
15438 {
15439
15440 ;
15441 return 0;
15442 }
15443 _ACEOF
15444 if ac_fn_c_try_link "$LINENO"; then :
15445 eval $cacheid=yes
15446 else
15447 eval $cacheid=no
15448 fi
15449 rm -f core conftest.err conftest.$ac_objext \
15450 conftest$ac_exeext conftest.$ac_ext
15451 fi
15452
15453
15454 CFLAGS="$xorg_testset_save_CFLAGS"
15455
15456 eval supported=\$$cacheid
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15458 $as_echo "$supported" >&6; }
15459 if test "$supported" = "yes" ; then
15460 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15461 found="yes"
15462 fi
15463 fi
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479 xorg_testset_save_CFLAGS="$CFLAGS"
15480
15481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15486 $as_echo_n "(cached) " >&6
15487 else
15488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 int i;
15491 _ACEOF
15492 if ac_fn_c_try_compile "$LINENO"; then :
15493 xorg_cv_cc_flag_unknown_warning_option=yes
15494 else
15495 xorg_cv_cc_flag_unknown_warning_option=no
15496 fi
15497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15498 fi
15499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15502 CFLAGS="$xorg_testset_save_CFLAGS"
15503 fi
15504
15505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15508 fi
15509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15513 $as_echo_n "(cached) " >&6
15514 else
15515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15516 /* end confdefs.h. */
15517 int i;
15518 _ACEOF
15519 if ac_fn_c_try_compile "$LINENO"; then :
15520 xorg_cv_cc_flag_unused_command_line_argument=yes
15521 else
15522 xorg_cv_cc_flag_unused_command_line_argument=no
15523 fi
15524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15525 fi
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15529 CFLAGS="$xorg_testset_save_CFLAGS"
15530 fi
15531
15532 found="no"
15533
15534 if test $found = "no" ; then
15535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15537 fi
15538
15539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15541 fi
15542
15543 CFLAGS="$CFLAGS -Werror=write-strings"
15544
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15546 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15547 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15548 if eval \${$cacheid+:} false; then :
15549 $as_echo_n "(cached) " >&6
15550 else
15551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15552 /* end confdefs.h. */
15553 int i;
15554 int
15555 main ()
15556 {
15557
15558 ;
15559 return 0;
15560 }
15561 _ACEOF
15562 if ac_fn_c_try_link "$LINENO"; then :
15563 eval $cacheid=yes
15564 else
15565 eval $cacheid=no
15566 fi
15567 rm -f core conftest.err conftest.$ac_objext \
15568 conftest$ac_exeext conftest.$ac_ext
15569 fi
15570
15571
15572 CFLAGS="$xorg_testset_save_CFLAGS"
15573
15574 eval supported=\$$cacheid
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15576 $as_echo "$supported" >&6; }
15577 if test "$supported" = "yes" ; then
15578 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15579 found="yes"
15580 fi
15581 fi
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597 xorg_testset_save_CFLAGS="$CFLAGS"
15598
15599 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15600 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15602 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15603 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15604 $as_echo_n "(cached) " >&6
15605 else
15606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15607 /* end confdefs.h. */
15608 int i;
15609 _ACEOF
15610 if ac_fn_c_try_compile "$LINENO"; then :
15611 xorg_cv_cc_flag_unknown_warning_option=yes
15612 else
15613 xorg_cv_cc_flag_unknown_warning_option=no
15614 fi
15615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15616 fi
15617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15618 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15619 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15620 CFLAGS="$xorg_testset_save_CFLAGS"
15621 fi
15622
15623 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15624 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15625 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15626 fi
15627 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15629 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15630 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15631 $as_echo_n "(cached) " >&6
15632 else
15633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15634 /* end confdefs.h. */
15635 int i;
15636 _ACEOF
15637 if ac_fn_c_try_compile "$LINENO"; then :
15638 xorg_cv_cc_flag_unused_command_line_argument=yes
15639 else
15640 xorg_cv_cc_flag_unused_command_line_argument=no
15641 fi
15642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15643 fi
15644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15645 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15646 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15647 CFLAGS="$xorg_testset_save_CFLAGS"
15648 fi
15649
15650 found="no"
15651
15652 if test $found = "no" ; then
15653 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15654 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15655 fi
15656
15657 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15658 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15659 fi
15660
15661 CFLAGS="$CFLAGS -Werror=address"
15662
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15664 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15665 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15666 if eval \${$cacheid+:} false; then :
15667 $as_echo_n "(cached) " >&6
15668 else
15669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15670 /* end confdefs.h. */
15671 int i;
15672 int
15673 main ()
15674 {
15675
15676 ;
15677 return 0;
15678 }
15679 _ACEOF
15680 if ac_fn_c_try_link "$LINENO"; then :
15681 eval $cacheid=yes
15682 else
15683 eval $cacheid=no
15684 fi
15685 rm -f core conftest.err conftest.$ac_objext \
15686 conftest$ac_exeext conftest.$ac_ext
15687 fi
15688
15689
15690 CFLAGS="$xorg_testset_save_CFLAGS"
15691
15692 eval supported=\$$cacheid
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15694 $as_echo "$supported" >&6; }
15695 if test "$supported" = "yes" ; then
15696 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15697 found="yes"
15698 fi
15699 fi
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715 xorg_testset_save_CFLAGS="$CFLAGS"
15716
15717 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15718 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15720 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15721 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15722 $as_echo_n "(cached) " >&6
15723 else
15724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15725 /* end confdefs.h. */
15726 int i;
15727 _ACEOF
15728 if ac_fn_c_try_compile "$LINENO"; then :
15729 xorg_cv_cc_flag_unknown_warning_option=yes
15730 else
15731 xorg_cv_cc_flag_unknown_warning_option=no
15732 fi
15733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15734 fi
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15736 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15737 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15738 CFLAGS="$xorg_testset_save_CFLAGS"
15739 fi
15740
15741 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15742 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15743 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15744 fi
15745 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15747 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15748 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15749 $as_echo_n "(cached) " >&6
15750 else
15751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15752 /* end confdefs.h. */
15753 int i;
15754 _ACEOF
15755 if ac_fn_c_try_compile "$LINENO"; then :
15756 xorg_cv_cc_flag_unused_command_line_argument=yes
15757 else
15758 xorg_cv_cc_flag_unused_command_line_argument=no
15759 fi
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761 fi
15762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15763 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15764 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15765 CFLAGS="$xorg_testset_save_CFLAGS"
15766 fi
15767
15768 found="no"
15769
15770 if test $found = "no" ; then
15771 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15772 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15773 fi
15774
15775 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15776 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15777 fi
15778
15779 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15780
15781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15782 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15783 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15784 if eval \${$cacheid+:} false; then :
15785 $as_echo_n "(cached) " >&6
15786 else
15787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15788 /* end confdefs.h. */
15789 int i;
15790 int
15791 main ()
15792 {
15793
15794 ;
15795 return 0;
15796 }
15797 _ACEOF
15798 if ac_fn_c_try_link "$LINENO"; then :
15799 eval $cacheid=yes
15800 else
15801 eval $cacheid=no
15802 fi
15803 rm -f core conftest.err conftest.$ac_objext \
15804 conftest$ac_exeext conftest.$ac_ext
15805 fi
15806
15807
15808 CFLAGS="$xorg_testset_save_CFLAGS"
15809
15810 eval supported=\$$cacheid
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15812 $as_echo "$supported" >&6; }
15813 if test "$supported" = "yes" ; then
15814 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15815 found="yes"
15816 fi
15817 fi
15818
15819 if test $found = "no" ; then
15820 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15821 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15822 fi
15823
15824 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15825 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15826 fi
15827
15828 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15829
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15831 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15832 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15833 if eval \${$cacheid+:} false; then :
15834 $as_echo_n "(cached) " >&6
15835 else
15836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15837 /* end confdefs.h. */
15838 int i;
15839 int
15840 main ()
15841 {
15842
15843 ;
15844 return 0;
15845 }
15846 _ACEOF
15847 if ac_fn_c_try_link "$LINENO"; then :
15848 eval $cacheid=yes
15849 else
15850 eval $cacheid=no
15851 fi
15852 rm -f core conftest.err conftest.$ac_objext \
15853 conftest$ac_exeext conftest.$ac_ext
15854 fi
15855
15856
15857 CFLAGS="$xorg_testset_save_CFLAGS"
15858
15859 eval supported=\$$cacheid
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15861 $as_echo "$supported" >&6; }
15862 if test "$supported" = "yes" ; then
15863 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15864 found="yes"
15865 fi
15866 fi
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882 xorg_testset_save_CFLAGS="$CFLAGS"
15883
15884 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15885 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15887 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15888 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15889 $as_echo_n "(cached) " >&6
15890 else
15891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15892 /* end confdefs.h. */
15893 int i;
15894 _ACEOF
15895 if ac_fn_c_try_compile "$LINENO"; then :
15896 xorg_cv_cc_flag_unknown_warning_option=yes
15897 else
15898 xorg_cv_cc_flag_unknown_warning_option=no
15899 fi
15900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15901 fi
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15903 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15904 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15905 CFLAGS="$xorg_testset_save_CFLAGS"
15906 fi
15907
15908 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15909 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15910 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15911 fi
15912 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15914 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15915 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15916 $as_echo_n "(cached) " >&6
15917 else
15918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15919 /* end confdefs.h. */
15920 int i;
15921 _ACEOF
15922 if ac_fn_c_try_compile "$LINENO"; then :
15923 xorg_cv_cc_flag_unused_command_line_argument=yes
15924 else
15925 xorg_cv_cc_flag_unused_command_line_argument=no
15926 fi
15927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15930 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15931 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15932 CFLAGS="$xorg_testset_save_CFLAGS"
15933 fi
15934
15935 found="no"
15936
15937 if test $found = "no" ; then
15938 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15939 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15940 fi
15941
15942 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15943 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15944 fi
15945
15946 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15947
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15949 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15950 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15951 if eval \${$cacheid+:} false; then :
15952 $as_echo_n "(cached) " >&6
15953 else
15954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15955 /* end confdefs.h. */
15956 int i;
15957 int
15958 main ()
15959 {
15960
15961 ;
15962 return 0;
15963 }
15964 _ACEOF
15965 if ac_fn_c_try_link "$LINENO"; then :
15966 eval $cacheid=yes
15967 else
15968 eval $cacheid=no
15969 fi
15970 rm -f core conftest.err conftest.$ac_objext \
15971 conftest$ac_exeext conftest.$ac_ext
15972 fi
15973
15974
15975 CFLAGS="$xorg_testset_save_CFLAGS"
15976
15977 eval supported=\$$cacheid
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15979 $as_echo "$supported" >&6; }
15980 if test "$supported" = "yes" ; then
15981 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15982 found="yes"
15983 fi
15984 fi
15985
15986 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15987 else
15988 { $as_echo "$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
15989 $as_echo "$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;}
15990
15991
15992
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003 xorg_testset_save_CFLAGS="$CFLAGS"
16004
16005 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16006 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16008 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16009 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16010 $as_echo_n "(cached) " >&6
16011 else
16012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16013 /* end confdefs.h. */
16014 int i;
16015 _ACEOF
16016 if ac_fn_c_try_compile "$LINENO"; then :
16017 xorg_cv_cc_flag_unknown_warning_option=yes
16018 else
16019 xorg_cv_cc_flag_unknown_warning_option=no
16020 fi
16021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16022 fi
16023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16024 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16025 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16026 CFLAGS="$xorg_testset_save_CFLAGS"
16027 fi
16028
16029 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16030 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16031 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16032 fi
16033 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16035 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16036 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16037 $as_echo_n "(cached) " >&6
16038 else
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"; then :
16044 xorg_cv_cc_flag_unused_command_line_argument=yes
16045 else
16046 xorg_cv_cc_flag_unused_command_line_argument=no
16047 fi
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 fi
16050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16051 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16052 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16053 CFLAGS="$xorg_testset_save_CFLAGS"
16054 fi
16055
16056 found="no"
16057
16058 if test $found = "no" ; then
16059 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16060 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16061 fi
16062
16063 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16064 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16065 fi
16066
16067 CFLAGS="$CFLAGS -Wimplicit"
16068
16069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16070 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16071 cacheid=xorg_cv_cc_flag__Wimplicit
16072 if eval \${$cacheid+:} false; then :
16073 $as_echo_n "(cached) " >&6
16074 else
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 int i;
16078 int
16079 main ()
16080 {
16081
16082 ;
16083 return 0;
16084 }
16085 _ACEOF
16086 if ac_fn_c_try_link "$LINENO"; then :
16087 eval $cacheid=yes
16088 else
16089 eval $cacheid=no
16090 fi
16091 rm -f core conftest.err conftest.$ac_objext \
16092 conftest$ac_exeext conftest.$ac_ext
16093 fi
16094
16095
16096 CFLAGS="$xorg_testset_save_CFLAGS"
16097
16098 eval supported=\$$cacheid
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16100 $as_echo "$supported" >&6; }
16101 if test "$supported" = "yes" ; then
16102 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16103 found="yes"
16104 fi
16105 fi
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121 xorg_testset_save_CFLAGS="$CFLAGS"
16122
16123 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16124 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16126 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16127 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16128 $as_echo_n "(cached) " >&6
16129 else
16130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16131 /* end confdefs.h. */
16132 int i;
16133 _ACEOF
16134 if ac_fn_c_try_compile "$LINENO"; then :
16135 xorg_cv_cc_flag_unknown_warning_option=yes
16136 else
16137 xorg_cv_cc_flag_unknown_warning_option=no
16138 fi
16139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16140 fi
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16142 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16143 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16144 CFLAGS="$xorg_testset_save_CFLAGS"
16145 fi
16146
16147 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16148 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16149 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16150 fi
16151 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16153 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16154 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16155 $as_echo_n "(cached) " >&6
16156 else
16157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16158 /* end confdefs.h. */
16159 int i;
16160 _ACEOF
16161 if ac_fn_c_try_compile "$LINENO"; then :
16162 xorg_cv_cc_flag_unused_command_line_argument=yes
16163 else
16164 xorg_cv_cc_flag_unused_command_line_argument=no
16165 fi
16166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16167 fi
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16169 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16170 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16171 CFLAGS="$xorg_testset_save_CFLAGS"
16172 fi
16173
16174 found="no"
16175
16176 if test $found = "no" ; then
16177 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16178 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16179 fi
16180
16181 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16182 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16183 fi
16184
16185 CFLAGS="$CFLAGS -Wnonnull"
16186
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16188 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16189 cacheid=xorg_cv_cc_flag__Wnonnull
16190 if eval \${$cacheid+:} false; then :
16191 $as_echo_n "(cached) " >&6
16192 else
16193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16194 /* end confdefs.h. */
16195 int i;
16196 int
16197 main ()
16198 {
16199
16200 ;
16201 return 0;
16202 }
16203 _ACEOF
16204 if ac_fn_c_try_link "$LINENO"; then :
16205 eval $cacheid=yes
16206 else
16207 eval $cacheid=no
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext \
16210 conftest$ac_exeext conftest.$ac_ext
16211 fi
16212
16213
16214 CFLAGS="$xorg_testset_save_CFLAGS"
16215
16216 eval supported=\$$cacheid
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16218 $as_echo "$supported" >&6; }
16219 if test "$supported" = "yes" ; then
16220 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16221 found="yes"
16222 fi
16223 fi
16224
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234
16235
16236
16237
16238
16239 xorg_testset_save_CFLAGS="$CFLAGS"
16240
16241 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16244 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16245 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16246 $as_echo_n "(cached) " >&6
16247 else
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 int i;
16251 _ACEOF
16252 if ac_fn_c_try_compile "$LINENO"; then :
16253 xorg_cv_cc_flag_unknown_warning_option=yes
16254 else
16255 xorg_cv_cc_flag_unknown_warning_option=no
16256 fi
16257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16258 fi
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16260 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16261 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16262 CFLAGS="$xorg_testset_save_CFLAGS"
16263 fi
16264
16265 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16266 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16267 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16268 fi
16269 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16271 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16272 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16273 $as_echo_n "(cached) " >&6
16274 else
16275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16276 /* end confdefs.h. */
16277 int i;
16278 _ACEOF
16279 if ac_fn_c_try_compile "$LINENO"; then :
16280 xorg_cv_cc_flag_unused_command_line_argument=yes
16281 else
16282 xorg_cv_cc_flag_unused_command_line_argument=no
16283 fi
16284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16285 fi
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16287 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16288 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16289 CFLAGS="$xorg_testset_save_CFLAGS"
16290 fi
16291
16292 found="no"
16293
16294 if test $found = "no" ; then
16295 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16296 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16297 fi
16298
16299 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16300 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16301 fi
16302
16303 CFLAGS="$CFLAGS -Winit-self"
16304
16305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16306 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16307 cacheid=xorg_cv_cc_flag__Winit_self
16308 if eval \${$cacheid+:} false; then :
16309 $as_echo_n "(cached) " >&6
16310 else
16311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16312 /* end confdefs.h. */
16313 int i;
16314 int
16315 main ()
16316 {
16317
16318 ;
16319 return 0;
16320 }
16321 _ACEOF
16322 if ac_fn_c_try_link "$LINENO"; then :
16323 eval $cacheid=yes
16324 else
16325 eval $cacheid=no
16326 fi
16327 rm -f core conftest.err conftest.$ac_objext \
16328 conftest$ac_exeext conftest.$ac_ext
16329 fi
16330
16331
16332 CFLAGS="$xorg_testset_save_CFLAGS"
16333
16334 eval supported=\$$cacheid
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16336 $as_echo "$supported" >&6; }
16337 if test "$supported" = "yes" ; then
16338 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16339 found="yes"
16340 fi
16341 fi
16342
16343
16344
16345
16346
16347
16348
16349
16350
16351
16352
16353
16354
16355
16356
16357 xorg_testset_save_CFLAGS="$CFLAGS"
16358
16359 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16362 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16363 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16364 $as_echo_n "(cached) " >&6
16365 else
16366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16367 /* end confdefs.h. */
16368 int i;
16369 _ACEOF
16370 if ac_fn_c_try_compile "$LINENO"; then :
16371 xorg_cv_cc_flag_unknown_warning_option=yes
16372 else
16373 xorg_cv_cc_flag_unknown_warning_option=no
16374 fi
16375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16376 fi
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16378 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16379 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16380 CFLAGS="$xorg_testset_save_CFLAGS"
16381 fi
16382
16383 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16384 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16385 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16386 fi
16387 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16389 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16390 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16391 $as_echo_n "(cached) " >&6
16392 else
16393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16394 /* end confdefs.h. */
16395 int i;
16396 _ACEOF
16397 if ac_fn_c_try_compile "$LINENO"; then :
16398 xorg_cv_cc_flag_unused_command_line_argument=yes
16399 else
16400 xorg_cv_cc_flag_unused_command_line_argument=no
16401 fi
16402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16403 fi
16404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16405 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16406 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16407 CFLAGS="$xorg_testset_save_CFLAGS"
16408 fi
16409
16410 found="no"
16411
16412 if test $found = "no" ; then
16413 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16414 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16415 fi
16416
16417 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16418 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16419 fi
16420
16421 CFLAGS="$CFLAGS -Wmain"
16422
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16424 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16425 cacheid=xorg_cv_cc_flag__Wmain
16426 if eval \${$cacheid+:} false; then :
16427 $as_echo_n "(cached) " >&6
16428 else
16429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16430 /* end confdefs.h. */
16431 int i;
16432 int
16433 main ()
16434 {
16435
16436 ;
16437 return 0;
16438 }
16439 _ACEOF
16440 if ac_fn_c_try_link "$LINENO"; then :
16441 eval $cacheid=yes
16442 else
16443 eval $cacheid=no
16444 fi
16445 rm -f core conftest.err conftest.$ac_objext \
16446 conftest$ac_exeext conftest.$ac_ext
16447 fi
16448
16449
16450 CFLAGS="$xorg_testset_save_CFLAGS"
16451
16452 eval supported=\$$cacheid
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16454 $as_echo "$supported" >&6; }
16455 if test "$supported" = "yes" ; then
16456 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16457 found="yes"
16458 fi
16459 fi
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475 xorg_testset_save_CFLAGS="$CFLAGS"
16476
16477 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16480 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16481 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16482 $as_echo_n "(cached) " >&6
16483 else
16484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16485 /* end confdefs.h. */
16486 int i;
16487 _ACEOF
16488 if ac_fn_c_try_compile "$LINENO"; then :
16489 xorg_cv_cc_flag_unknown_warning_option=yes
16490 else
16491 xorg_cv_cc_flag_unknown_warning_option=no
16492 fi
16493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16494 fi
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16496 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16497 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16498 CFLAGS="$xorg_testset_save_CFLAGS"
16499 fi
16500
16501 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16502 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16503 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16504 fi
16505 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16507 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16508 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16509 $as_echo_n "(cached) " >&6
16510 else
16511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16512 /* end confdefs.h. */
16513 int i;
16514 _ACEOF
16515 if ac_fn_c_try_compile "$LINENO"; then :
16516 xorg_cv_cc_flag_unused_command_line_argument=yes
16517 else
16518 xorg_cv_cc_flag_unused_command_line_argument=no
16519 fi
16520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521 fi
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16523 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16524 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16525 CFLAGS="$xorg_testset_save_CFLAGS"
16526 fi
16527
16528 found="no"
16529
16530 if test $found = "no" ; then
16531 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16532 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16533 fi
16534
16535 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16536 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16537 fi
16538
16539 CFLAGS="$CFLAGS -Wmissing-braces"
16540
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16542 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16543 cacheid=xorg_cv_cc_flag__Wmissing_braces
16544 if eval \${$cacheid+:} false; then :
16545 $as_echo_n "(cached) " >&6
16546 else
16547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16548 /* end confdefs.h. */
16549 int i;
16550 int
16551 main ()
16552 {
16553
16554 ;
16555 return 0;
16556 }
16557 _ACEOF
16558 if ac_fn_c_try_link "$LINENO"; then :
16559 eval $cacheid=yes
16560 else
16561 eval $cacheid=no
16562 fi
16563 rm -f core conftest.err conftest.$ac_objext \
16564 conftest$ac_exeext conftest.$ac_ext
16565 fi
16566
16567
16568 CFLAGS="$xorg_testset_save_CFLAGS"
16569
16570 eval supported=\$$cacheid
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16572 $as_echo "$supported" >&6; }
16573 if test "$supported" = "yes" ; then
16574 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16575 found="yes"
16576 fi
16577 fi
16578
16579
16580
16581
16582
16583
16584
16585
16586
16587
16588
16589
16590
16591
16592
16593 xorg_testset_save_CFLAGS="$CFLAGS"
16594
16595 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16598 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16599 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16600 $as_echo_n "(cached) " >&6
16601 else
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16604 int i;
16605 _ACEOF
16606 if ac_fn_c_try_compile "$LINENO"; then :
16607 xorg_cv_cc_flag_unknown_warning_option=yes
16608 else
16609 xorg_cv_cc_flag_unknown_warning_option=no
16610 fi
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 fi
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16614 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16615 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16616 CFLAGS="$xorg_testset_save_CFLAGS"
16617 fi
16618
16619 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16620 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16621 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16622 fi
16623 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16625 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16626 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16627 $as_echo_n "(cached) " >&6
16628 else
16629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16630 /* end confdefs.h. */
16631 int i;
16632 _ACEOF
16633 if ac_fn_c_try_compile "$LINENO"; then :
16634 xorg_cv_cc_flag_unused_command_line_argument=yes
16635 else
16636 xorg_cv_cc_flag_unused_command_line_argument=no
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639 fi
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16641 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16642 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16643 CFLAGS="$xorg_testset_save_CFLAGS"
16644 fi
16645
16646 found="no"
16647
16648 if test $found = "no" ; then
16649 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16650 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16651 fi
16652
16653 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16654 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16655 fi
16656
16657 CFLAGS="$CFLAGS -Wsequence-point"
16658
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16660 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16661 cacheid=xorg_cv_cc_flag__Wsequence_point
16662 if eval \${$cacheid+:} false; then :
16663 $as_echo_n "(cached) " >&6
16664 else
16665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16666 /* end confdefs.h. */
16667 int i;
16668 int
16669 main ()
16670 {
16671
16672 ;
16673 return 0;
16674 }
16675 _ACEOF
16676 if ac_fn_c_try_link "$LINENO"; then :
16677 eval $cacheid=yes
16678 else
16679 eval $cacheid=no
16680 fi
16681 rm -f core conftest.err conftest.$ac_objext \
16682 conftest$ac_exeext conftest.$ac_ext
16683 fi
16684
16685
16686 CFLAGS="$xorg_testset_save_CFLAGS"
16687
16688 eval supported=\$$cacheid
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16690 $as_echo "$supported" >&6; }
16691 if test "$supported" = "yes" ; then
16692 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16693 found="yes"
16694 fi
16695 fi
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711 xorg_testset_save_CFLAGS="$CFLAGS"
16712
16713 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16716 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16717 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16718 $as_echo_n "(cached) " >&6
16719 else
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 int i;
16723 _ACEOF
16724 if ac_fn_c_try_compile "$LINENO"; then :
16725 xorg_cv_cc_flag_unknown_warning_option=yes
16726 else
16727 xorg_cv_cc_flag_unknown_warning_option=no
16728 fi
16729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16730 fi
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16732 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16733 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16734 CFLAGS="$xorg_testset_save_CFLAGS"
16735 fi
16736
16737 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16738 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16739 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16740 fi
16741 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16743 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16744 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16745 $as_echo_n "(cached) " >&6
16746 else
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749 int i;
16750 _ACEOF
16751 if ac_fn_c_try_compile "$LINENO"; then :
16752 xorg_cv_cc_flag_unused_command_line_argument=yes
16753 else
16754 xorg_cv_cc_flag_unused_command_line_argument=no
16755 fi
16756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16757 fi
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16759 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16760 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16761 CFLAGS="$xorg_testset_save_CFLAGS"
16762 fi
16763
16764 found="no"
16765
16766 if test $found = "no" ; then
16767 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16768 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16769 fi
16770
16771 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16772 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16773 fi
16774
16775 CFLAGS="$CFLAGS -Wreturn-type"
16776
16777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16778 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16779 cacheid=xorg_cv_cc_flag__Wreturn_type
16780 if eval \${$cacheid+:} false; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16784 /* end confdefs.h. */
16785 int i;
16786 int
16787 main ()
16788 {
16789
16790 ;
16791 return 0;
16792 }
16793 _ACEOF
16794 if ac_fn_c_try_link "$LINENO"; then :
16795 eval $cacheid=yes
16796 else
16797 eval $cacheid=no
16798 fi
16799 rm -f core conftest.err conftest.$ac_objext \
16800 conftest$ac_exeext conftest.$ac_ext
16801 fi
16802
16803
16804 CFLAGS="$xorg_testset_save_CFLAGS"
16805
16806 eval supported=\$$cacheid
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16808 $as_echo "$supported" >&6; }
16809 if test "$supported" = "yes" ; then
16810 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16811 found="yes"
16812 fi
16813 fi
16814
16815
16816
16817
16818
16819
16820
16821
16822
16823
16824
16825
16826
16827
16828
16829 xorg_testset_save_CFLAGS="$CFLAGS"
16830
16831 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16834 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16835 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16836 $as_echo_n "(cached) " >&6
16837 else
16838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16839 /* end confdefs.h. */
16840 int i;
16841 _ACEOF
16842 if ac_fn_c_try_compile "$LINENO"; then :
16843 xorg_cv_cc_flag_unknown_warning_option=yes
16844 else
16845 xorg_cv_cc_flag_unknown_warning_option=no
16846 fi
16847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16848 fi
16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16850 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16851 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16852 CFLAGS="$xorg_testset_save_CFLAGS"
16853 fi
16854
16855 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16856 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16858 fi
16859 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16861 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16862 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16863 $as_echo_n "(cached) " >&6
16864 else
16865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16866 /* end confdefs.h. */
16867 int i;
16868 _ACEOF
16869 if ac_fn_c_try_compile "$LINENO"; then :
16870 xorg_cv_cc_flag_unused_command_line_argument=yes
16871 else
16872 xorg_cv_cc_flag_unused_command_line_argument=no
16873 fi
16874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16875 fi
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16877 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16878 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16879 CFLAGS="$xorg_testset_save_CFLAGS"
16880 fi
16881
16882 found="no"
16883
16884 if test $found = "no" ; then
16885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16887 fi
16888
16889 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16890 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16891 fi
16892
16893 CFLAGS="$CFLAGS -Wtrigraphs"
16894
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16896 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16897 cacheid=xorg_cv_cc_flag__Wtrigraphs
16898 if eval \${$cacheid+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16903 int i;
16904 int
16905 main ()
16906 {
16907
16908 ;
16909 return 0;
16910 }
16911 _ACEOF
16912 if ac_fn_c_try_link "$LINENO"; then :
16913 eval $cacheid=yes
16914 else
16915 eval $cacheid=no
16916 fi
16917 rm -f core conftest.err conftest.$ac_objext \
16918 conftest$ac_exeext conftest.$ac_ext
16919 fi
16920
16921
16922 CFLAGS="$xorg_testset_save_CFLAGS"
16923
16924 eval supported=\$$cacheid
16925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16926 $as_echo "$supported" >&6; }
16927 if test "$supported" = "yes" ; then
16928 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16929 found="yes"
16930 fi
16931 fi
16932
16933
16934
16935
16936
16937
16938
16939
16940
16941
16942
16943
16944
16945
16946
16947 xorg_testset_save_CFLAGS="$CFLAGS"
16948
16949 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16950 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16952 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16953 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16954 $as_echo_n "(cached) " >&6
16955 else
16956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16957 /* end confdefs.h. */
16958 int i;
16959 _ACEOF
16960 if ac_fn_c_try_compile "$LINENO"; then :
16961 xorg_cv_cc_flag_unknown_warning_option=yes
16962 else
16963 xorg_cv_cc_flag_unknown_warning_option=no
16964 fi
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 fi
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16968 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16969 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16970 CFLAGS="$xorg_testset_save_CFLAGS"
16971 fi
16972
16973 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16976 fi
16977 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16979 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16980 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16981 $as_echo_n "(cached) " >&6
16982 else
16983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16984 /* end confdefs.h. */
16985 int i;
16986 _ACEOF
16987 if ac_fn_c_try_compile "$LINENO"; then :
16988 xorg_cv_cc_flag_unused_command_line_argument=yes
16989 else
16990 xorg_cv_cc_flag_unused_command_line_argument=no
16991 fi
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16995 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16996 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16997 CFLAGS="$xorg_testset_save_CFLAGS"
16998 fi
16999
17000 found="no"
17001
17002 if test $found = "no" ; then
17003 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17004 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17005 fi
17006
17007 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17008 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17009 fi
17010
17011 CFLAGS="$CFLAGS -Warray-bounds"
17012
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17014 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17015 cacheid=xorg_cv_cc_flag__Warray_bounds
17016 if eval \${$cacheid+:} false; then :
17017 $as_echo_n "(cached) " >&6
17018 else
17019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h. */
17021 int i;
17022 int
17023 main ()
17024 {
17025
17026 ;
17027 return 0;
17028 }
17029 _ACEOF
17030 if ac_fn_c_try_link "$LINENO"; then :
17031 eval $cacheid=yes
17032 else
17033 eval $cacheid=no
17034 fi
17035 rm -f core conftest.err conftest.$ac_objext \
17036 conftest$ac_exeext conftest.$ac_ext
17037 fi
17038
17039
17040 CFLAGS="$xorg_testset_save_CFLAGS"
17041
17042 eval supported=\$$cacheid
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17044 $as_echo "$supported" >&6; }
17045 if test "$supported" = "yes" ; then
17046 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17047 found="yes"
17048 fi
17049 fi
17050
17051
17052
17053
17054
17055
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065 xorg_testset_save_CFLAGS="$CFLAGS"
17066
17067 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17068 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17070 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17071 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17072 $as_echo_n "(cached) " >&6
17073 else
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17076 int i;
17077 _ACEOF
17078 if ac_fn_c_try_compile "$LINENO"; then :
17079 xorg_cv_cc_flag_unknown_warning_option=yes
17080 else
17081 xorg_cv_cc_flag_unknown_warning_option=no
17082 fi
17083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17084 fi
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17086 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17087 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17088 CFLAGS="$xorg_testset_save_CFLAGS"
17089 fi
17090
17091 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17092 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17093 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17094 fi
17095 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17097 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17098 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17099 $as_echo_n "(cached) " >&6
17100 else
17101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17102 /* end confdefs.h. */
17103 int i;
17104 _ACEOF
17105 if ac_fn_c_try_compile "$LINENO"; then :
17106 xorg_cv_cc_flag_unused_command_line_argument=yes
17107 else
17108 xorg_cv_cc_flag_unused_command_line_argument=no
17109 fi
17110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17111 fi
17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17113 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17114 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17115 CFLAGS="$xorg_testset_save_CFLAGS"
17116 fi
17117
17118 found="no"
17119
17120 if test $found = "no" ; then
17121 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17122 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17123 fi
17124
17125 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17126 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17127 fi
17128
17129 CFLAGS="$CFLAGS -Wwrite-strings"
17130
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17132 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17133 cacheid=xorg_cv_cc_flag__Wwrite_strings
17134 if eval \${$cacheid+:} false; then :
17135 $as_echo_n "(cached) " >&6
17136 else
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h. */
17139 int i;
17140 int
17141 main ()
17142 {
17143
17144 ;
17145 return 0;
17146 }
17147 _ACEOF
17148 if ac_fn_c_try_link "$LINENO"; then :
17149 eval $cacheid=yes
17150 else
17151 eval $cacheid=no
17152 fi
17153 rm -f core conftest.err conftest.$ac_objext \
17154 conftest$ac_exeext conftest.$ac_ext
17155 fi
17156
17157
17158 CFLAGS="$xorg_testset_save_CFLAGS"
17159
17160 eval supported=\$$cacheid
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17162 $as_echo "$supported" >&6; }
17163 if test "$supported" = "yes" ; then
17164 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17165 found="yes"
17166 fi
17167 fi
17168
17169
17170
17171
17172
17173
17174
17175
17176
17177
17178
17179
17180
17181
17182
17183 xorg_testset_save_CFLAGS="$CFLAGS"
17184
17185 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17186 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17188 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17189 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17190 $as_echo_n "(cached) " >&6
17191 else
17192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17193 /* end confdefs.h. */
17194 int i;
17195 _ACEOF
17196 if ac_fn_c_try_compile "$LINENO"; then :
17197 xorg_cv_cc_flag_unknown_warning_option=yes
17198 else
17199 xorg_cv_cc_flag_unknown_warning_option=no
17200 fi
17201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 fi
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17204 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17205 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17206 CFLAGS="$xorg_testset_save_CFLAGS"
17207 fi
17208
17209 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17210 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17211 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17212 fi
17213 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17215 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17216 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17217 $as_echo_n "(cached) " >&6
17218 else
17219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17220 /* end confdefs.h. */
17221 int i;
17222 _ACEOF
17223 if ac_fn_c_try_compile "$LINENO"; then :
17224 xorg_cv_cc_flag_unused_command_line_argument=yes
17225 else
17226 xorg_cv_cc_flag_unused_command_line_argument=no
17227 fi
17228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17229 fi
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17231 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17232 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17233 CFLAGS="$xorg_testset_save_CFLAGS"
17234 fi
17235
17236 found="no"
17237
17238 if test $found = "no" ; then
17239 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17240 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17241 fi
17242
17243 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17244 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17245 fi
17246
17247 CFLAGS="$CFLAGS -Waddress"
17248
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17250 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17251 cacheid=xorg_cv_cc_flag__Waddress
17252 if eval \${$cacheid+:} false; then :
17253 $as_echo_n "(cached) " >&6
17254 else
17255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17256 /* end confdefs.h. */
17257 int i;
17258 int
17259 main ()
17260 {
17261
17262 ;
17263 return 0;
17264 }
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 eval $cacheid=yes
17268 else
17269 eval $cacheid=no
17270 fi
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 fi
17274
17275
17276 CFLAGS="$xorg_testset_save_CFLAGS"
17277
17278 eval supported=\$$cacheid
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17280 $as_echo "$supported" >&6; }
17281 if test "$supported" = "yes" ; then
17282 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17283 found="yes"
17284 fi
17285 fi
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301 xorg_testset_save_CFLAGS="$CFLAGS"
17302
17303 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17304 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17306 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17307 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17308 $as_echo_n "(cached) " >&6
17309 else
17310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17311 /* end confdefs.h. */
17312 int i;
17313 _ACEOF
17314 if ac_fn_c_try_compile "$LINENO"; then :
17315 xorg_cv_cc_flag_unknown_warning_option=yes
17316 else
17317 xorg_cv_cc_flag_unknown_warning_option=no
17318 fi
17319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17320 fi
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17322 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17323 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17324 CFLAGS="$xorg_testset_save_CFLAGS"
17325 fi
17326
17327 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17328 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17329 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17330 fi
17331 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17333 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17334 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17335 $as_echo_n "(cached) " >&6
17336 else
17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17338 /* end confdefs.h. */
17339 int i;
17340 _ACEOF
17341 if ac_fn_c_try_compile "$LINENO"; then :
17342 xorg_cv_cc_flag_unused_command_line_argument=yes
17343 else
17344 xorg_cv_cc_flag_unused_command_line_argument=no
17345 fi
17346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17347 fi
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17349 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17350 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17351 CFLAGS="$xorg_testset_save_CFLAGS"
17352 fi
17353
17354 found="no"
17355
17356 if test $found = "no" ; then
17357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17359 fi
17360
17361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17363 fi
17364
17365 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17366
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17368 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17369 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17370 if eval \${$cacheid+:} false; then :
17371 $as_echo_n "(cached) " >&6
17372 else
17373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17374 /* end confdefs.h. */
17375 int i;
17376 int
17377 main ()
17378 {
17379
17380 ;
17381 return 0;
17382 }
17383 _ACEOF
17384 if ac_fn_c_try_link "$LINENO"; then :
17385 eval $cacheid=yes
17386 else
17387 eval $cacheid=no
17388 fi
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17391 fi
17392
17393
17394 CFLAGS="$xorg_testset_save_CFLAGS"
17395
17396 eval supported=\$$cacheid
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17398 $as_echo "$supported" >&6; }
17399 if test "$supported" = "yes" ; then
17400 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17401 found="yes"
17402 fi
17403 fi
17404
17405
17406
17407
17408
17409
17410
17411
17412
17413
17414
17415
17416
17417
17418
17419 xorg_testset_save_CFLAGS="$CFLAGS"
17420
17421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17429 /* end confdefs.h. */
17430 int i;
17431 _ACEOF
17432 if ac_fn_c_try_compile "$LINENO"; then :
17433 xorg_cv_cc_flag_unknown_warning_option=yes
17434 else
17435 xorg_cv_cc_flag_unknown_warning_option=no
17436 fi
17437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 fi
17439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17442 CFLAGS="$xorg_testset_save_CFLAGS"
17443 fi
17444
17445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17448 fi
17449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17457 int i;
17458 _ACEOF
17459 if ac_fn_c_try_compile "$LINENO"; then :
17460 xorg_cv_cc_flag_unused_command_line_argument=yes
17461 else
17462 xorg_cv_cc_flag_unused_command_line_argument=no
17463 fi
17464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17465 fi
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17469 CFLAGS="$xorg_testset_save_CFLAGS"
17470 fi
17471
17472 found="no"
17473
17474 if test $found = "no" ; then
17475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17477 fi
17478
17479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17481 fi
17482
17483 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17484
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17486 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17487 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17488 if eval \${$cacheid+:} false; then :
17489 $as_echo_n "(cached) " >&6
17490 else
17491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h. */
17493 int i;
17494 int
17495 main ()
17496 {
17497
17498 ;
17499 return 0;
17500 }
17501 _ACEOF
17502 if ac_fn_c_try_link "$LINENO"; then :
17503 eval $cacheid=yes
17504 else
17505 eval $cacheid=no
17506 fi
17507 rm -f core conftest.err conftest.$ac_objext \
17508 conftest$ac_exeext conftest.$ac_ext
17509 fi
17510
17511
17512 CFLAGS="$xorg_testset_save_CFLAGS"
17513
17514 eval supported=\$$cacheid
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17516 $as_echo "$supported" >&6; }
17517 if test "$supported" = "yes" ; then
17518 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17519 found="yes"
17520 fi
17521 fi
17522
17523
17524 fi
17525
17526
17527
17528
17529
17530
17531
17532 CWARNFLAGS="$BASE_CFLAGS"
17533 if test "x$GCC" = xyes ; then
17534 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17535 fi
17536
17537
17538
17539
17540
17541
17542
17543
17544 # Check whether --enable-strict-compilation was given.
17545 if test "${enable_strict_compilation+set}" = set; then :
17546 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17547 else
17548 STRICT_COMPILE=no
17549 fi
17550
17551
17552
17553
17554
17555
17556 STRICT_CFLAGS=""
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568
17569
17570 xorg_testset_save_CFLAGS="$CFLAGS"
17571
17572 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17573 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17575 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17576 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17577 $as_echo_n "(cached) " >&6
17578 else
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17581 int i;
17582 _ACEOF
17583 if ac_fn_c_try_compile "$LINENO"; then :
17584 xorg_cv_cc_flag_unknown_warning_option=yes
17585 else
17586 xorg_cv_cc_flag_unknown_warning_option=no
17587 fi
17588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17589 fi
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17591 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17592 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17593 CFLAGS="$xorg_testset_save_CFLAGS"
17594 fi
17595
17596 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17599 fi
17600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17602 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17603 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17604 $as_echo_n "(cached) " >&6
17605 else
17606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17607 /* end confdefs.h. */
17608 int i;
17609 _ACEOF
17610 if ac_fn_c_try_compile "$LINENO"; then :
17611 xorg_cv_cc_flag_unused_command_line_argument=yes
17612 else
17613 xorg_cv_cc_flag_unused_command_line_argument=no
17614 fi
17615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17616 fi
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17618 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17619 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17620 CFLAGS="$xorg_testset_save_CFLAGS"
17621 fi
17622
17623 found="no"
17624
17625 if test $found = "no" ; then
17626 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17627 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17628 fi
17629
17630 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17631 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17632 fi
17633
17634 CFLAGS="$CFLAGS -pedantic"
17635
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17637 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17638 cacheid=xorg_cv_cc_flag__pedantic
17639 if eval \${$cacheid+:} false; then :
17640 $as_echo_n "(cached) " >&6
17641 else
17642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17643 /* end confdefs.h. */
17644 int i;
17645 int
17646 main ()
17647 {
17648
17649 ;
17650 return 0;
17651 }
17652 _ACEOF
17653 if ac_fn_c_try_link "$LINENO"; then :
17654 eval $cacheid=yes
17655 else
17656 eval $cacheid=no
17657 fi
17658 rm -f core conftest.err conftest.$ac_objext \
17659 conftest$ac_exeext conftest.$ac_ext
17660 fi
17661
17662
17663 CFLAGS="$xorg_testset_save_CFLAGS"
17664
17665 eval supported=\$$cacheid
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17667 $as_echo "$supported" >&6; }
17668 if test "$supported" = "yes" ; then
17669 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17670 found="yes"
17671 fi
17672 fi
17673
17674
17675
17676
17677
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687
17688 xorg_testset_save_CFLAGS="$CFLAGS"
17689
17690 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17691 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17693 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17694 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17695 $as_echo_n "(cached) " >&6
17696 else
17697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17698 /* end confdefs.h. */
17699 int i;
17700 _ACEOF
17701 if ac_fn_c_try_compile "$LINENO"; then :
17702 xorg_cv_cc_flag_unknown_warning_option=yes
17703 else
17704 xorg_cv_cc_flag_unknown_warning_option=no
17705 fi
17706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17707 fi
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17709 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17710 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17711 CFLAGS="$xorg_testset_save_CFLAGS"
17712 fi
17713
17714 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17717 fi
17718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17720 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17721 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17722 $as_echo_n "(cached) " >&6
17723 else
17724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17725 /* end confdefs.h. */
17726 int i;
17727 _ACEOF
17728 if ac_fn_c_try_compile "$LINENO"; then :
17729 xorg_cv_cc_flag_unused_command_line_argument=yes
17730 else
17731 xorg_cv_cc_flag_unused_command_line_argument=no
17732 fi
17733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17734 fi
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17736 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17737 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17738 CFLAGS="$xorg_testset_save_CFLAGS"
17739 fi
17740
17741 found="no"
17742
17743 if test $found = "no" ; then
17744 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17745 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17746 fi
17747
17748 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17749 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17750 fi
17751
17752 CFLAGS="$CFLAGS -Werror"
17753
17754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17755 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17756 cacheid=xorg_cv_cc_flag__Werror
17757 if eval \${$cacheid+:} false; then :
17758 $as_echo_n "(cached) " >&6
17759 else
17760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17761 /* end confdefs.h. */
17762 int i;
17763 int
17764 main ()
17765 {
17766
17767 ;
17768 return 0;
17769 }
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 eval $cacheid=yes
17773 else
17774 eval $cacheid=no
17775 fi
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 fi
17779
17780
17781 CFLAGS="$xorg_testset_save_CFLAGS"
17782
17783 eval supported=\$$cacheid
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17785 $as_echo "$supported" >&6; }
17786 if test "$supported" = "yes" ; then
17787 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17788 found="yes"
17789 fi
17790 fi
17791
17792 if test $found = "no" ; then
17793 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17794 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17795 fi
17796
17797 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17798 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17799 fi
17800
17801 CFLAGS="$CFLAGS -errwarn"
17802
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17804 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17805 cacheid=xorg_cv_cc_flag__errwarn
17806 if eval \${$cacheid+:} false; then :
17807 $as_echo_n "(cached) " >&6
17808 else
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811 int i;
17812 int
17813 main ()
17814 {
17815
17816 ;
17817 return 0;
17818 }
17819 _ACEOF
17820 if ac_fn_c_try_link "$LINENO"; then :
17821 eval $cacheid=yes
17822 else
17823 eval $cacheid=no
17824 fi
17825 rm -f core conftest.err conftest.$ac_objext \
17826 conftest$ac_exeext conftest.$ac_ext
17827 fi
17828
17829
17830 CFLAGS="$xorg_testset_save_CFLAGS"
17831
17832 eval supported=\$$cacheid
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17834 $as_echo "$supported" >&6; }
17835 if test "$supported" = "yes" ; then
17836 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17837 found="yes"
17838 fi
17839 fi
17840
17841
17842
17843 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17844 # activate it with -Werror, so we add it here explicitly.
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858 xorg_testset_save_CFLAGS="$CFLAGS"
17859
17860 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17861 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17863 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17864 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17865 $as_echo_n "(cached) " >&6
17866 else
17867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17868 /* end confdefs.h. */
17869 int i;
17870 _ACEOF
17871 if ac_fn_c_try_compile "$LINENO"; then :
17872 xorg_cv_cc_flag_unknown_warning_option=yes
17873 else
17874 xorg_cv_cc_flag_unknown_warning_option=no
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17877 fi
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17879 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17880 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17881 CFLAGS="$xorg_testset_save_CFLAGS"
17882 fi
17883
17884 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17885 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17886 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17887 fi
17888 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17890 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17891 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17892 $as_echo_n "(cached) " >&6
17893 else
17894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* end confdefs.h. */
17896 int i;
17897 _ACEOF
17898 if ac_fn_c_try_compile "$LINENO"; then :
17899 xorg_cv_cc_flag_unused_command_line_argument=yes
17900 else
17901 xorg_cv_cc_flag_unused_command_line_argument=no
17902 fi
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17904 fi
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17906 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17907 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17908 CFLAGS="$xorg_testset_save_CFLAGS"
17909 fi
17910
17911 found="no"
17912
17913 if test $found = "no" ; then
17914 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17915 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17916 fi
17917
17918 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17920 fi
17921
17922 CFLAGS="$CFLAGS -Werror=attributes"
17923
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17925 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17926 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17927 if eval \${$cacheid+:} false; then :
17928 $as_echo_n "(cached) " >&6
17929 else
17930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17931 /* end confdefs.h. */
17932 int i;
17933 int
17934 main ()
17935 {
17936
17937 ;
17938 return 0;
17939 }
17940 _ACEOF
17941 if ac_fn_c_try_link "$LINENO"; then :
17942 eval $cacheid=yes
17943 else
17944 eval $cacheid=no
17945 fi
17946 rm -f core conftest.err conftest.$ac_objext \
17947 conftest$ac_exeext conftest.$ac_ext
17948 fi
17949
17950
17951 CFLAGS="$xorg_testset_save_CFLAGS"
17952
17953 eval supported=\$$cacheid
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17955 $as_echo "$supported" >&6; }
17956 if test "$supported" = "yes" ; then
17957 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17958 found="yes"
17959 fi
17960 fi
17961
17962
17963
17964 if test "x$STRICT_COMPILE" = "xyes"; then
17965 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17966 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17967 fi
17968
17969
17970
17971
17972
17973
17974 cat >>confdefs.h <<_ACEOF
17975 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17976 _ACEOF
17977
17978 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17979 if test "x$PVM" = "x"; then
17980 PVM="0"
17981 fi
17982
17983 cat >>confdefs.h <<_ACEOF
17984 #define PACKAGE_VERSION_MINOR $PVM
17985 _ACEOF
17986
17987 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17988 if test "x$PVP" = "x"; then
17989 PVP="0"
17990 fi
17991
17992 cat >>confdefs.h <<_ACEOF
17993 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17994 _ACEOF
17995
17996
17997
17998 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17999 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18000 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18001 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18002
18003
18004
18005
18006 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18007 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18008 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18009 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18010 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18011
18012
18013
18014
18015
18016
18017 if test x$APP_MAN_SUFFIX = x ; then
18018 APP_MAN_SUFFIX=1
18019 fi
18020 if test x$APP_MAN_DIR = x ; then
18021 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18022 fi
18023
18024 if test x$LIB_MAN_SUFFIX = x ; then
18025 LIB_MAN_SUFFIX=3
18026 fi
18027 if test x$LIB_MAN_DIR = x ; then
18028 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18029 fi
18030
18031 if test x$FILE_MAN_SUFFIX = x ; then
18032 case $host_os in
18033 solaris*) FILE_MAN_SUFFIX=4 ;;
18034 *) FILE_MAN_SUFFIX=5 ;;
18035 esac
18036 fi
18037 if test x$FILE_MAN_DIR = x ; then
18038 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18039 fi
18040
18041 if test x$MISC_MAN_SUFFIX = x ; then
18042 case $host_os in
18043 solaris*) MISC_MAN_SUFFIX=5 ;;
18044 *) MISC_MAN_SUFFIX=7 ;;
18045 esac
18046 fi
18047 if test x$MISC_MAN_DIR = x ; then
18048 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18049 fi
18050
18051 if test x$DRIVER_MAN_SUFFIX = x ; then
18052 case $host_os in
18053 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18054 *) DRIVER_MAN_SUFFIX=4 ;;
18055 esac
18056 fi
18057 if test x$DRIVER_MAN_DIR = x ; then
18058 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18059 fi
18060
18061 if test x$ADMIN_MAN_SUFFIX = x ; then
18062 case $host_os in
18063 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18064 *) ADMIN_MAN_SUFFIX=8 ;;
18065 esac
18066 fi
18067 if test x$ADMIN_MAN_DIR = x ; then
18068 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18069 fi
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085 XORG_MAN_PAGE="X Version 11"
18086
18087 MAN_SUBSTS="\
18088 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18089 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18090 -e 's|__xservername__|Xorg|g' \
18091 -e 's|__xconfigfile__|xorg.conf|g' \
18092 -e 's|__projectroot__|\$(prefix)|g' \
18093 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18094 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18095 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18096 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18097 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18098 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18099 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18100
18101
18102
18103 # Check whether --enable-silent-rules was given.
18104 if test "${enable_silent_rules+set}" = set; then :
18105 enableval=$enable_silent_rules;
18106 fi
18107
18108 case $enable_silent_rules in # (((
18109 yes) AM_DEFAULT_VERBOSITY=0;;
18110 no) AM_DEFAULT_VERBOSITY=1;;
18111 *) AM_DEFAULT_VERBOSITY=0;;
18112 esac
18113 am_make=${MAKE-make}
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18115 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18116 if ${am_cv_make_support_nested_variables+:} false; then :
18117 $as_echo_n "(cached) " >&6
18118 else
18119 if $as_echo 'TRUE=$(BAR$(V))
18120 BAR0=false
18121 BAR1=true
18122 V=1
18123 am__doit:
18124 @$(TRUE)
18125 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18126 am_cv_make_support_nested_variables=yes
18127 else
18128 am_cv_make_support_nested_variables=no
18129 fi
18130 fi
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18132 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18133 if test $am_cv_make_support_nested_variables = yes; then
18134 AM_V='$(V)'
18135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18136 else
18137 AM_V=$AM_DEFAULT_VERBOSITY
18138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18139 fi
18140 AM_BACKSLASH='\'
18141
18142
18143
18144
18145 # Check whether --enable-devel-docs was given.
18146 if test "${enable_devel_docs+set}" = set; then :
18147 enableval=$enable_devel_docs; build_devel_docs=$enableval
18148 else
18149 build_devel_docs=yes
18150 fi
18151
18152
18153 if test x$build_devel_docs = xyes; then
18154 ENABLE_DEVEL_DOCS_TRUE=
18155 ENABLE_DEVEL_DOCS_FALSE='#'
18156 else
18157 ENABLE_DEVEL_DOCS_TRUE='#'
18158 ENABLE_DEVEL_DOCS_FALSE=
18159 fi
18160
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18162 $as_echo_n "checking whether to build developer documentation... " >&6; }
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18164 $as_echo "$build_devel_docs" >&6; }
18165
18166
18167
18168
18169
18170 # Check whether --with-xmlto was given.
18171 if test "${with_xmlto+set}" = set; then :
18172 withval=$with_xmlto; use_xmlto=$withval
18173 else
18174 use_xmlto=auto
18175 fi
18176
18177
18178
18179 if test "x$use_xmlto" = x"auto"; then
18180 # Extract the first word of "xmlto", so it can be a program name with args.
18181 set dummy xmlto; ac_word=$2
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18183 $as_echo_n "checking for $ac_word... " >&6; }
18184 if ${ac_cv_path_XMLTO+:} false; then :
18185 $as_echo_n "(cached) " >&6
18186 else
18187 case $XMLTO in
18188 [\\/]* | ?:[\\/]*)
18189 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18190 ;;
18191 *)
18192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18193 for as_dir in $PATH
18194 do
18195 IFS=$as_save_IFS
18196 test -z "$as_dir" && as_dir=.
18197 for ac_exec_ext in '' $ac_executable_extensions; do
18198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18199 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18201 break 2
18202 fi
18203 done
18204 done
18205 IFS=$as_save_IFS
18206
18207 ;;
18208 esac
18209 fi
18210 XMLTO=$ac_cv_path_XMLTO
18211 if test -n "$XMLTO"; then
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18213 $as_echo "$XMLTO" >&6; }
18214 else
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18216 $as_echo "no" >&6; }
18217 fi
18218
18219
18220 if test "x$XMLTO" = "x"; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18222 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18223 have_xmlto=no
18224 else
18225 have_xmlto=yes
18226 fi
18227 elif test "x$use_xmlto" = x"yes" ; then
18228 # Extract the first word of "xmlto", so it can be a program name with args.
18229 set dummy xmlto; ac_word=$2
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18231 $as_echo_n "checking for $ac_word... " >&6; }
18232 if ${ac_cv_path_XMLTO+:} false; then :
18233 $as_echo_n "(cached) " >&6
18234 else
18235 case $XMLTO in
18236 [\\/]* | ?:[\\/]*)
18237 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18238 ;;
18239 *)
18240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18241 for as_dir in $PATH
18242 do
18243 IFS=$as_save_IFS
18244 test -z "$as_dir" && as_dir=.
18245 for ac_exec_ext in '' $ac_executable_extensions; do
18246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18247 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18249 break 2
18250 fi
18251 done
18252 done
18253 IFS=$as_save_IFS
18254
18255 ;;
18256 esac
18257 fi
18258 XMLTO=$ac_cv_path_XMLTO
18259 if test -n "$XMLTO"; then
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18261 $as_echo "$XMLTO" >&6; }
18262 else
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18264 $as_echo "no" >&6; }
18265 fi
18266
18267
18268 if test "x$XMLTO" = "x"; then
18269 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18270 fi
18271 have_xmlto=yes
18272 elif test "x$use_xmlto" = x"no" ; then
18273 if test "x$XMLTO" != "x"; then
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18275 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18276 fi
18277 have_xmlto=no
18278 else
18279 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18280 fi
18281
18282 # Test for a minimum version of xmlto, if provided.
18283 if test "$have_xmlto" = yes; then
18284 # scrape the xmlto version
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18286 $as_echo_n "checking the xmlto version... " >&6; }
18287 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18289 $as_echo "$xmlto_version" >&6; }
18290 as_arg_v1=$xmlto_version
18291 as_arg_v2=0.0.22
18292 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18293 case $? in #(
18294 1) :
18295 if test "x$use_xmlto" = xauto; then
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18297 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18298 have_xmlto=no
18299 else
18300 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18301 fi ;; #(
18302 0) :
18303 ;; #(
18304 2) :
18305 ;; #(
18306 *) :
18307 ;;
18308 esac
18309 fi
18310
18311 # Test for the ability of xmlto to generate a text target
18312 have_xmlto_text=no
18313 cat > conftest.xml << "EOF"
18314 EOF
18315 if test "$have_xmlto" = yes; then :
18316 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18317 have_xmlto_text=yes
18318 else
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18320 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18321 fi
18322 fi
18323 rm -f conftest.xml
18324 if test $have_xmlto_text = yes; then
18325 HAVE_XMLTO_TEXT_TRUE=
18326 HAVE_XMLTO_TEXT_FALSE='#'
18327 else
18328 HAVE_XMLTO_TEXT_TRUE='#'
18329 HAVE_XMLTO_TEXT_FALSE=
18330 fi
18331
18332 if test "$have_xmlto" = yes; then
18333 HAVE_XMLTO_TRUE=
18334 HAVE_XMLTO_FALSE='#'
18335 else
18336 HAVE_XMLTO_TRUE='#'
18337 HAVE_XMLTO_FALSE=
18338 fi
18339
18340
18341
18342
18343
18344
18345 # Check whether --with-fop was given.
18346 if test "${with_fop+set}" = set; then :
18347 withval=$with_fop; use_fop=$withval
18348 else
18349 use_fop=auto
18350 fi
18351
18352
18353
18354 if test "x$use_fop" = x"auto"; then
18355 # Extract the first word of "fop", so it can be a program name with args.
18356 set dummy fop; ac_word=$2
18357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18358 $as_echo_n "checking for $ac_word... " >&6; }
18359 if ${ac_cv_path_FOP+:} false; then :
18360 $as_echo_n "(cached) " >&6
18361 else
18362 case $FOP in
18363 [\\/]* | ?:[\\/]*)
18364 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18365 ;;
18366 *)
18367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18368 for as_dir in $PATH
18369 do
18370 IFS=$as_save_IFS
18371 test -z "$as_dir" && as_dir=.
18372 for ac_exec_ext in '' $ac_executable_extensions; do
18373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18374 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18376 break 2
18377 fi
18378 done
18379 done
18380 IFS=$as_save_IFS
18381
18382 ;;
18383 esac
18384 fi
18385 FOP=$ac_cv_path_FOP
18386 if test -n "$FOP"; then
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18388 $as_echo "$FOP" >&6; }
18389 else
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18391 $as_echo "no" >&6; }
18392 fi
18393
18394
18395 if test "x$FOP" = "x"; then
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18397 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18398 have_fop=no
18399 else
18400 have_fop=yes
18401 fi
18402 elif test "x$use_fop" = x"yes" ; then
18403 # Extract the first word of "fop", so it can be a program name with args.
18404 set dummy fop; ac_word=$2
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18406 $as_echo_n "checking for $ac_word... " >&6; }
18407 if ${ac_cv_path_FOP+:} false; then :
18408 $as_echo_n "(cached) " >&6
18409 else
18410 case $FOP in
18411 [\\/]* | ?:[\\/]*)
18412 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18413 ;;
18414 *)
18415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18416 for as_dir in $PATH
18417 do
18418 IFS=$as_save_IFS
18419 test -z "$as_dir" && as_dir=.
18420 for ac_exec_ext in '' $ac_executable_extensions; do
18421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18422 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18424 break 2
18425 fi
18426 done
18427 done
18428 IFS=$as_save_IFS
18429
18430 ;;
18431 esac
18432 fi
18433 FOP=$ac_cv_path_FOP
18434 if test -n "$FOP"; then
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18436 $as_echo "$FOP" >&6; }
18437 else
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18439 $as_echo "no" >&6; }
18440 fi
18441
18442
18443 if test "x$FOP" = "x"; then
18444 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18445 fi
18446 have_fop=yes
18447 elif test "x$use_fop" = x"no" ; then
18448 if test "x$FOP" != "x"; then
18449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18450 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18451 fi
18452 have_fop=no
18453 else
18454 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18455 fi
18456
18457 # Test for a minimum version of fop, if provided.
18458
18459 if test "$have_fop" = yes; then
18460 HAVE_FOP_TRUE=
18461 HAVE_FOP_FALSE='#'
18462 else
18463 HAVE_FOP_TRUE='#'
18464 HAVE_FOP_FALSE=
18465 fi
18466
18467
18468
18469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
18470 $as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
18471 XORG_SGML_PATH=
18472 if test -n "$PKG_CONFIG" && \
18473 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
18474 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
18475 ac_status=$?
18476 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18477 test $ac_status = 0; }; then
18478 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18479 else
18480 :
18481
18482 fi
18483
18484 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18485 # the path and the name of the doc stylesheet
18486 if test "x$XORG_SGML_PATH" != "x" ; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18488 $as_echo "$XORG_SGML_PATH" >&6; }
18489 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18490 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18491 else
18492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18493 $as_echo "no" >&6; }
18494 fi
18495
18496
18497
18498
18499 if test "x$XSL_STYLESHEET" != "x"; then
18500 HAVE_STYLESHEETS_TRUE=
18501 HAVE_STYLESHEETS_FALSE='#'
18502 else
18503 HAVE_STYLESHEETS_TRUE='#'
18504 HAVE_STYLESHEETS_FALSE=
18505 fi
18506
18507
18508
18509 # Checks for header files.
18510 for ac_header in endian.h poll.h sys/poll.h
18511 do :
18512 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18513 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18514 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18515 cat >>confdefs.h <<_ACEOF
18516 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18517 _ACEOF
18518
18519 fi
18520
18521 done
18522
18523
18524 # Checks for library functions.
18525 for ac_func in poll readlink
18526 do :
18527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18528 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18529 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18530 cat >>confdefs.h <<_ACEOF
18531 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18532 _ACEOF
18533
18534 fi
18535 done
18536
18537
18538 # If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
18539 # must first be located explicitly.
18540
18541
18542 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18543 if test -n "$ac_tool_prefix"; then
18544 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18545 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18547 $as_echo_n "checking for $ac_word... " >&6; }
18548 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18549 $as_echo_n "(cached) " >&6
18550 else
18551 case $PKG_CONFIG in
18552 [\\/]* | ?:[\\/]*)
18553 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18554 ;;
18555 *)
18556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18557 for as_dir in $PATH
18558 do
18559 IFS=$as_save_IFS
18560 test -z "$as_dir" && as_dir=.
18561 for ac_exec_ext in '' $ac_executable_extensions; do
18562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18563 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18565 break 2
18566 fi
18567 done
18568 done
18569 IFS=$as_save_IFS
18570
18571 ;;
18572 esac
18573 fi
18574 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18575 if test -n "$PKG_CONFIG"; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18577 $as_echo "$PKG_CONFIG" >&6; }
18578 else
18579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18580 $as_echo "no" >&6; }
18581 fi
18582
18583
18584 fi
18585 if test -z "$ac_cv_path_PKG_CONFIG"; then
18586 ac_pt_PKG_CONFIG=$PKG_CONFIG
18587 # Extract the first word of "pkg-config", so it can be a program name with args.
18588 set dummy pkg-config; ac_word=$2
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18590 $as_echo_n "checking for $ac_word... " >&6; }
18591 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18592 $as_echo_n "(cached) " >&6
18593 else
18594 case $ac_pt_PKG_CONFIG in
18595 [\\/]* | ?:[\\/]*)
18596 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18597 ;;
18598 *)
18599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18600 for as_dir in $PATH
18601 do
18602 IFS=$as_save_IFS
18603 test -z "$as_dir" && as_dir=.
18604 for ac_exec_ext in '' $ac_executable_extensions; do
18605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18606 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18608 break 2
18609 fi
18610 done
18611 done
18612 IFS=$as_save_IFS
18613
18614 ;;
18615 esac
18616 fi
18617 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18618 if test -n "$ac_pt_PKG_CONFIG"; then
18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18620 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18621 else
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18623 $as_echo "no" >&6; }
18624 fi
18625
18626 if test "x$ac_pt_PKG_CONFIG" = x; then
18627 PKG_CONFIG=""
18628 else
18629 case $cross_compiling:$ac_tool_warned in
18630 yes:)
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18633 ac_tool_warned=yes ;;
18634 esac
18635 PKG_CONFIG=$ac_pt_PKG_CONFIG
18636 fi
18637 else
18638 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18639 fi
18640
18641 fi
18642 if test -n "$PKG_CONFIG"; then
18643 _pkg_min_version=0.9.0
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18645 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18646 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18648 $as_echo "yes" >&6; }
18649 else
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18651 $as_echo "no" >&6; }
18652 PKG_CONFIG=""
18653 fi
18654
18655 fi
18656
18657 #
18658 # select libraries to include
18659 #
18660
18661 XFONT_FONTFILE=no
18662
18663 #
18664 # FreeType for all scalable (OpenType, TrueType, PostScript) and
18665 # some bitmap formats (BDF & PCF)
18666 #
18667 # Check whether --enable-freetype was given.
18668 if test "${enable_freetype+set}" = set; then :
18669 enableval=$enable_freetype; XFONT_FREETYPE=$enableval
18670 else
18671 XFONT_FREETYPE=yes
18672 fi
18673
18674 if test x$XFONT_FREETYPE = xyes; then
18675 XFONT_FREETYPE_TRUE=
18676 XFONT_FREETYPE_FALSE='#'
18677 else
18678 XFONT_FREETYPE_TRUE='#'
18679 XFONT_FREETYPE_FALSE=
18680 fi
18681
18682 if test x$XFONT_FREETYPE = xyes; then
18683
18684 $as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
18685
18686
18687 # Check whether --with-freetype-config was given.
18688 if test "${with_freetype_config+set}" = set; then :
18689 withval=$with_freetype_config; freetype_config=$withval
18690 else
18691 freetype_config=auto
18692 fi
18693
18694
18695 if test "$freetype_config" = "auto" ; then
18696
18697 pkg_failed=no
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18699 $as_echo_n "checking for FREETYPE... " >&6; }
18700
18701 if test -n "$FREETYPE_CFLAGS"; then
18702 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18703 elif test -n "$PKG_CONFIG"; then
18704 if test -n "$PKG_CONFIG" && \
18705 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18706 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18707 ac_status=$?
18708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18709 test $ac_status = 0; }; then
18710 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18711 else
18712 pkg_failed=yes
18713 fi
18714 else
18715 pkg_failed=untried
18716 fi
18717 if test -n "$FREETYPE_LIBS"; then
18718 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18719 elif test -n "$PKG_CONFIG"; then
18720 if test -n "$PKG_CONFIG" && \
18721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18722 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18723 ac_status=$?
18724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18725 test $ac_status = 0; }; then
18726 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18727 else
18728 pkg_failed=yes
18729 fi
18730 else
18731 pkg_failed=untried
18732 fi
18733
18734
18735
18736 if test $pkg_failed = yes; then
18737
18738 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18739 _pkg_short_errors_supported=yes
18740 else
18741 _pkg_short_errors_supported=no
18742 fi
18743 if test $_pkg_short_errors_supported = yes; then
18744 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
18745 else
18746 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
18747 fi
18748 # Put the nasty error message in config.log where it belongs
18749 echo "$FREETYPE_PKG_ERRORS" >&5
18750
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18752 $as_echo "no" >&6; }
18753 freetype_config=yes
18754 elif test $pkg_failed = untried; then
18755 freetype_config=yes
18756 else
18757 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18758 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18760 $as_echo "yes" >&6; }
18761 freetype_config=no
18762 fi
18763 fi
18764
18765 if test "$freetype_config" = "yes"; then
18766 # Extract the first word of "freetype-config", so it can be a program name with args.
18767 set dummy freetype-config; ac_word=$2
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18769 $as_echo_n "checking for $ac_word... " >&6; }
18770 if ${ac_cv_path_ft_config+:} false; then :
18771 $as_echo_n "(cached) " >&6
18772 else
18773 case $ft_config in
18774 [\\/]* | ?:[\\/]*)
18775 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
18776 ;;
18777 *)
18778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18779 for as_dir in $PATH
18780 do
18781 IFS=$as_save_IFS
18782 test -z "$as_dir" && as_dir=.
18783 for ac_exec_ext in '' $ac_executable_extensions; do
18784 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18785 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
18786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18787 break 2
18788 fi
18789 done
18790 done
18791 IFS=$as_save_IFS
18792
18793 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
18794 ;;
18795 esac
18796 fi
18797 ft_config=$ac_cv_path_ft_config
18798 if test -n "$ft_config"; then
18799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
18800 $as_echo "$ft_config" >&6; }
18801 else
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18803 $as_echo "no" >&6; }
18804 fi
18805
18806
18807 if test "$ft_config" = "no"; then
18808 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
18809 fi
18810 else
18811 ft_config="$freetype_config"
18812 fi
18813
18814 if test "$freetype_config" != "no"; then
18815 FREETYPE_CFLAGS="`$ft_config --cflags`"
18816 FREETYPE_LIBS="`$ft_config --libs`"
18817 fi
18818 FREETYPE_REQUIRES="freetype2"
18819 XFONT_FONTFILE=yes
18820 else
18821 FREETYPE_CFLAGS=""
18822 FREETYPE_LIBS=""
18823 FREETYPE_REQUIRES=""
18824 fi
18825
18826
18827
18828
18829 #
18830 # Bitmap fonts in files:
18831 # Builtins (gzipped pcf format in .text segment)
18832 # PCF
18833 # BDF
18834 # SNF
18835 #
18836
18837
18838 $as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
18839
18840 X_GZIP_FONT_COMPRESSION=1
18841
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18843 $as_echo_n "checking for gzopen in -lz... " >&6; }
18844 if ${ac_cv_lib_z_gzopen+:} false; then :
18845 $as_echo_n "(cached) " >&6
18846 else
18847 ac_check_lib_save_LIBS=$LIBS
18848 LIBS="-lz $LIBS"
18849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18850 /* end confdefs.h. */
18851
18852 /* Override any GCC internal prototype to avoid an error.
18853 Use char because int might match the return type of a GCC
18854 builtin and then its argument prototype would still apply. */
18855 #ifdef __cplusplus
18856 extern "C"
18857 #endif
18858 char gzopen ();
18859 int
18860 main ()
18861 {
18862 return gzopen ();
18863 ;
18864 return 0;
18865 }
18866 _ACEOF
18867 if ac_fn_c_try_link "$LINENO"; then :
18868 ac_cv_lib_z_gzopen=yes
18869 else
18870 ac_cv_lib_z_gzopen=no
18871 fi
18872 rm -f core conftest.err conftest.$ac_objext \
18873 conftest$ac_exeext conftest.$ac_ext
18874 LIBS=$ac_check_lib_save_LIBS
18875 fi
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18877 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
18878 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
18879 Z_LIBS=-lz
18880 else
18881 as_fn_error $? "*** zlib is required" "$LINENO" 5
18882 fi
18883
18884
18885
18886 # Check whether --with-bzip2 was given.
18887 if test "${with_bzip2+set}" = set; then :
18888 withval=$with_bzip2;
18889 else
18890 with_bzip2=no
18891 fi
18892
18893 if test "x$with_bzip2" = xyes; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
18895 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
18896 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lbz2 $LIBS"
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903
18904 /* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18907 #ifdef __cplusplus
18908 extern "C"
18909 #endif
18910 char BZ2_bzopen ();
18911 int
18912 main ()
18913 {
18914 return BZ2_bzopen ();
18915 ;
18916 return 0;
18917 }
18918 _ACEOF
18919 if ac_fn_c_try_link "$LINENO"; then :
18920 ac_cv_lib_bz2_BZ2_bzopen=yes
18921 else
18922 ac_cv_lib_bz2_BZ2_bzopen=no
18923 fi
18924 rm -f core conftest.err conftest.$ac_objext \
18925 conftest$ac_exeext conftest.$ac_ext
18926 LIBS=$ac_check_lib_save_LIBS
18927 fi
18928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
18929 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
18930 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
18931 Z_LIBS="$Z_LIBS -lbz2"
18932 else
18933 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
18934 fi
18935
18936
18937 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
18938
18939 fi
18940 if test "x$with_bzip2" = xyes ; then
18941 X_BZIP2_FONT_COMPRESSION_TRUE=
18942 X_BZIP2_FONT_COMPRESSION_FALSE='#'
18943 else
18944 X_BZIP2_FONT_COMPRESSION_TRUE='#'
18945 X_BZIP2_FONT_COMPRESSION_FALSE=
18946 fi
18947
18948
18949
18950 # Check whether --enable-builtins was given.
18951 if test "${enable_builtins+set}" = set; then :
18952 enableval=$enable_builtins; XFONT_BUILTINS=$enableval
18953 else
18954 XFONT_BUILTINS=yes
18955 fi
18956
18957 if test "x$XFONT_BUILTINS" = xyes ; then
18958 XFONT_BUILTINS_TRUE=
18959 XFONT_BUILTINS_FALSE='#'
18960 else
18961 XFONT_BUILTINS_TRUE='#'
18962 XFONT_BUILTINS_FALSE=
18963 fi
18964
18965 if test "x$XFONT_BUILTINS" = xyes; then
18966
18967 $as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
18968
18969 XFONT_BITMAP=yes
18970 fi
18971
18972 # Check whether --enable-pcfformat was given.
18973 if test "${enable_pcfformat+set}" = set; then :
18974 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
18975 else
18976 XFONT_PCFFORMAT=yes
18977 fi
18978
18979 if test "x$XFONT_PCFFORMAT" = xyes; then
18980 XFONT_PCFFORMAT_TRUE=
18981 XFONT_PCFFORMAT_FALSE='#'
18982 else
18983 XFONT_PCFFORMAT_TRUE='#'
18984 XFONT_PCFFORMAT_FALSE=
18985 fi
18986
18987 if test "x$XFONT_PCFFORMAT" = xyes; then
18988
18989 $as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
18990
18991 XFONT_BITMAP=yes
18992 fi
18993
18994 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
18995 XFONT_PCF_OR_BUILTIN_TRUE=
18996 XFONT_PCF_OR_BUILTIN_FALSE='#'
18997 else
18998 XFONT_PCF_OR_BUILTIN_TRUE='#'
18999 XFONT_PCF_OR_BUILTIN_FALSE=
19000 fi
19001
19002
19003 # Check whether --enable-bdfformat was given.
19004 if test "${enable_bdfformat+set}" = set; then :
19005 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
19006 else
19007 XFONT_BDFFORMAT=yes
19008 fi
19009
19010 if test "x$XFONT_BDFFORMAT" = xyes; then
19011 XFONT_BDFFORMAT_TRUE=
19012 XFONT_BDFFORMAT_FALSE='#'
19013 else
19014 XFONT_BDFFORMAT_TRUE='#'
19015 XFONT_BDFFORMAT_FALSE=
19016 fi
19017
19018 if test "x$XFONT_BDFFORMAT" = xyes; then
19019
19020 $as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
19021
19022 XFONT_BITMAP=yes
19023 fi
19024
19025 # Check whether --enable-snfformat was given.
19026 if test "${enable_snfformat+set}" = set; then :
19027 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
19028 else
19029 XFONT_SNFFORMAT=no
19030 fi
19031
19032 if test "x$XFONT_SNFFORMAT" = xyes; then
19033 XFONT_SNFFORMAT_TRUE=
19034 XFONT_SNFFORMAT_FALSE='#'
19035 else
19036 XFONT_SNFFORMAT_TRUE='#'
19037 XFONT_SNFFORMAT_FALSE=
19038 fi
19039
19040 if test "x$XFONT_SNFFORMAT" = xyes; then
19041
19042 $as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
19043
19044 XFONT_BITMAP=yes
19045 fi
19046
19047 if test "x$XFONT_BITMAP" = xyes ; then
19048 XFONT_BITMAP_TRUE=
19049 XFONT_BITMAP_FALSE='#'
19050 else
19051 XFONT_BITMAP_TRUE='#'
19052 XFONT_BITMAP_FALSE=
19053 fi
19054
19055 if test "x$XFONT_BITMAP" = xyes; then
19056
19057 $as_echo "#define XFONT_BITMAP 1" >>confdefs.h
19058
19059 XFONT_FONTFILE=yes
19060 fi
19061
19062 if test "x$XFONT_FONTFILE" = xyes; then
19063 XFONT_FONTFILE_TRUE=
19064 XFONT_FONTFILE_FALSE='#'
19065 else
19066 XFONT_FONTFILE_TRUE='#'
19067 XFONT_FONTFILE_FALSE=
19068 fi
19069
19070 if test "x$XFONT_FONTFILE" = xyes; then
19071
19072 $as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
19073
19074 fi
19075
19076 #
19077 # Support connection to font servers?
19078 #
19079
19080 # Check whether --enable-fc was given.
19081 if test "${enable_fc+set}" = set; then :
19082 enableval=$enable_fc; XFONT_FC=$enableval
19083 else
19084 XFONT_FC=yes
19085 fi
19086
19087 if test "x$XFONT_FC" = xyes; then
19088 XFONT_FC_TRUE=
19089 XFONT_FC_FALSE='#'
19090 else
19091 XFONT_FC_TRUE='#'
19092 XFONT_FC_FALSE=
19093 fi
19094
19095 if test "x$XFONT_FC" = xyes; then
19096
19097 $as_echo "#define XFONT_FC 1" >>confdefs.h
19098
19099 fi
19100
19101
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19103 $as_echo_n "checking for hypot in -lm... " >&6; }
19104 if ${ac_cv_lib_m_hypot+:} false; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 ac_check_lib_save_LIBS=$LIBS
19108 LIBS="-lm $LIBS"
19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19110 /* end confdefs.h. */
19111
19112 /* Override any GCC internal prototype to avoid an error.
19113 Use char because int might match the return type of a GCC
19114 builtin and then its argument prototype would still apply. */
19115 #ifdef __cplusplus
19116 extern "C"
19117 #endif
19118 char hypot ();
19119 int
19120 main ()
19121 {
19122 return hypot ();
19123 ;
19124 return 0;
19125 }
19126 _ACEOF
19127 if ac_fn_c_try_link "$LINENO"; then :
19128 ac_cv_lib_m_hypot=yes
19129 else
19130 ac_cv_lib_m_hypot=no
19131 fi
19132 rm -f core conftest.err conftest.$ac_objext \
19133 conftest$ac_exeext conftest.$ac_ext
19134 LIBS=$ac_check_lib_save_LIBS
19135 fi
19136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19137 $as_echo "$ac_cv_lib_m_hypot" >&6; }
19138 if test "x$ac_cv_lib_m_hypot" = xyes; then :
19139 MATH_LIBS=-lm
19140
19141 else
19142 as_fn_error $? "*** libm is required" "$LINENO" 5
19143 fi
19144
19145
19146
19147 pkg_failed=no
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
19149 $as_echo_n "checking for XFONT... " >&6; }
19150
19151 if test -n "$XFONT_CFLAGS"; then
19152 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
19153 elif test -n "$PKG_CONFIG"; then
19154 if test -n "$PKG_CONFIG" && \
19155 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19156 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19157 ac_status=$?
19158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19159 test $ac_status = 0; }; then
19160 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19161 else
19162 pkg_failed=yes
19163 fi
19164 else
19165 pkg_failed=untried
19166 fi
19167 if test -n "$XFONT_LIBS"; then
19168 pkg_cv_XFONT_LIBS="$XFONT_LIBS"
19169 elif test -n "$PKG_CONFIG"; then
19170 if test -n "$PKG_CONFIG" && \
19171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19172 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19173 ac_status=$?
19174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19175 test $ac_status = 0; }; then
19176 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19177 else
19178 pkg_failed=yes
19179 fi
19180 else
19181 pkg_failed=untried
19182 fi
19183
19184
19185
19186 if test $pkg_failed = yes; then
19187
19188 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19189 _pkg_short_errors_supported=yes
19190 else
19191 _pkg_short_errors_supported=no
19192 fi
19193 if test $_pkg_short_errors_supported = yes; then
19194 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19195 else
19196 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19197 fi
19198 # Put the nasty error message in config.log where it belongs
19199 echo "$XFONT_PKG_ERRORS" >&5
19200
19201 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
19202
19203 $XFONT_PKG_ERRORS
19204
19205 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19206 installed software in a non-standard prefix.
19207
19208 Alternatively, you may set the environment variables XFONT_CFLAGS
19209 and XFONT_LIBS to avoid the need to call pkg-config.
19210 See the pkg-config man page for more details.
19211 " "$LINENO" 5
19212 elif test $pkg_failed = untried; then
19213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19214 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19215 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19216 is in your PATH or set the PKG_CONFIG environment variable to the full
19217 path to pkg-config.
19218
19219 Alternatively, you may set the environment variables XFONT_CFLAGS
19220 and XFONT_LIBS to avoid the need to call pkg-config.
19221 See the pkg-config man page for more details.
19222
19223 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19224 See \`config.log' for more details" "$LINENO" 5; }
19225 else
19226 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
19227 XFONT_LIBS=$pkg_cv_XFONT_LIBS
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19229 $as_echo "yes" >&6; }
19230 :
19231 fi
19232
19233 # Transport selection macro from xtrans.m4
19234
19235
19236 case $host_os in
19237 mingw*) unixdef="no" ;;
19238 *) unixdef="yes" ;;
19239 esac
19240 # Check whether --enable-unix-transport was given.
19241 if test "${enable_unix_transport+set}" = set; then :
19242 enableval=$enable_unix_transport; UNIXCONN=$enableval
19243 else
19244 UNIXCONN=$unixdef
19245 fi
19246
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19248 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19249 if test "$UNIXCONN" = "yes"; then
19250
19251 $as_echo "#define UNIXCONN 1" >>confdefs.h
19252
19253 fi
19254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19255 $as_echo "$UNIXCONN" >&6; }
19256 # Check whether --enable-tcp-transport was given.
19257 if test "${enable_tcp_transport+set}" = set; then :
19258 enableval=$enable_tcp_transport; TCPCONN=$enableval
19259 else
19260 TCPCONN=yes
19261 fi
19262
19263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19264 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19266 $as_echo "$TCPCONN" >&6; }
19267 if test "$TCPCONN" = "yes"; then
19268
19269 $as_echo "#define TCPCONN 1" >>confdefs.h
19270
19271
19272 # SVR4 hides these in libraries other than libc
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19274 $as_echo_n "checking for library containing socket... " >&6; }
19275 if ${ac_cv_search_socket+:} false; then :
19276 $as_echo_n "(cached) " >&6
19277 else
19278 ac_func_search_save_LIBS=$LIBS
19279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19280 /* end confdefs.h. */
19281
19282 /* Override any GCC internal prototype to avoid an error.
19283 Use char because int might match the return type of a GCC
19284 builtin and then its argument prototype would still apply. */
19285 #ifdef __cplusplus
19286 extern "C"
19287 #endif
19288 char socket ();
19289 int
19290 main ()
19291 {
19292 return socket ();
19293 ;
19294 return 0;
19295 }
19296 _ACEOF
19297 for ac_lib in '' socket; do
19298 if test -z "$ac_lib"; then
19299 ac_res="none required"
19300 else
19301 ac_res=-l$ac_lib
19302 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19303 fi
19304 if ac_fn_c_try_link "$LINENO"; then :
19305 ac_cv_search_socket=$ac_res
19306 fi
19307 rm -f core conftest.err conftest.$ac_objext \
19308 conftest$ac_exeext
19309 if ${ac_cv_search_socket+:} false; then :
19310 break
19311 fi
19312 done
19313 if ${ac_cv_search_socket+:} false; then :
19314
19315 else
19316 ac_cv_search_socket=no
19317 fi
19318 rm conftest.$ac_ext
19319 LIBS=$ac_func_search_save_LIBS
19320 fi
19321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19322 $as_echo "$ac_cv_search_socket" >&6; }
19323 ac_res=$ac_cv_search_socket
19324 if test "$ac_res" != no; then :
19325 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19326
19327 fi
19328
19329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19330 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19331 if ${ac_cv_search_gethostbyname+:} false; then :
19332 $as_echo_n "(cached) " >&6
19333 else
19334 ac_func_search_save_LIBS=$LIBS
19335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19336 /* end confdefs.h. */
19337
19338 /* Override any GCC internal prototype to avoid an error.
19339 Use char because int might match the return type of a GCC
19340 builtin and then its argument prototype would still apply. */
19341 #ifdef __cplusplus
19342 extern "C"
19343 #endif
19344 char gethostbyname ();
19345 int
19346 main ()
19347 {
19348 return gethostbyname ();
19349 ;
19350 return 0;
19351 }
19352 _ACEOF
19353 for ac_lib in '' nsl; do
19354 if test -z "$ac_lib"; then
19355 ac_res="none required"
19356 else
19357 ac_res=-l$ac_lib
19358 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19359 fi
19360 if ac_fn_c_try_link "$LINENO"; then :
19361 ac_cv_search_gethostbyname=$ac_res
19362 fi
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext
19365 if ${ac_cv_search_gethostbyname+:} false; then :
19366 break
19367 fi
19368 done
19369 if ${ac_cv_search_gethostbyname+:} false; then :
19370
19371 else
19372 ac_cv_search_gethostbyname=no
19373 fi
19374 rm conftest.$ac_ext
19375 LIBS=$ac_func_search_save_LIBS
19376 fi
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19378 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19379 ac_res=$ac_cv_search_gethostbyname
19380 if test "$ac_res" != no; then :
19381 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19382
19383 fi
19384
19385 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19387 $as_echo_n "checking for main in -lws2_32... " >&6; }
19388 if ${ac_cv_lib_ws2_32_main+:} false; then :
19389 $as_echo_n "(cached) " >&6
19390 else
19391 ac_check_lib_save_LIBS=$LIBS
19392 LIBS="-lws2_32 $LIBS"
19393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19394 /* end confdefs.h. */
19395
19396
19397 int
19398 main ()
19399 {
19400 return main ();
19401 ;
19402 return 0;
19403 }
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"; then :
19406 ac_cv_lib_ws2_32_main=yes
19407 else
19408 ac_cv_lib_ws2_32_main=no
19409 fi
19410 rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
19412 LIBS=$ac_check_lib_save_LIBS
19413 fi
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19415 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19416 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19417 cat >>confdefs.h <<_ACEOF
19418 #define HAVE_LIBWS2_32 1
19419 _ACEOF
19420
19421 LIBS="-lws2_32 $LIBS"
19422
19423 fi
19424
19425 fi
19426
19427 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19428 # Check whether --enable-ipv6 was given.
19429 if test "${enable_ipv6+set}" = set; then :
19430 enableval=$enable_ipv6; IPV6CONN=$enableval
19431 else
19432 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19433 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19434 IPV6CONN=yes
19435 else
19436 IPV6CONN=no
19437 fi
19438
19439 fi
19440
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19442 $as_echo_n "checking if IPv6 support should be built... " >&6; }
19443 if test "$IPV6CONN" = "yes"; then
19444
19445 $as_echo "#define IPv6 1" >>confdefs.h
19446
19447 fi
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19449 $as_echo "$IPV6CONN" >&6; }
19450
19451 # 4.3BSD-Reno added a new member to struct sockaddr_in
19452 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19453 #include <sys/types.h>
19454 #include <sys/socket.h>
19455 #include <netinet/in.h>
19456
19457 "
19458 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19459
19460 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19461
19462 fi
19463
19464
19465 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19466 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19467 $ac_includes_default
19468 #include <sys/socket.h>
19469 "
19470 if test "x$ac_cv_type_socklen_t" = xyes; then :
19471
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_SOCKLEN_T 1
19474 _ACEOF
19475
19476
19477 fi
19478
19479
19480 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19481 # _XOPEN_SOURCE to get it (such as on Solaris)
19482 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19483 $ac_includes_default
19484 #include <sys/socket.h>
19485
19486 "
19487 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19488
19489 fi
19490
19491 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19492 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19493 unset ac_cv_member_struct_msghdr_msg_control
19494 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19495 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19496 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19497 #define _XOPEN_SOURCE 600
19498 $ac_includes_default
19499 #include <sys/socket.h>
19500
19501 "
19502 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19503
19504 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19505
19506
19507 fi
19508
19509 fi
19510 # If that didn't work, fall back to XPG5/UNIX98 with C89
19511 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19512 unset ac_cv_member_struct_msghdr_msg_control
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19514 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19515 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19516 #define _XOPEN_SOURCE 500
19517 $ac_includes_default
19518 #include <sys/socket.h>
19519
19520 "
19521 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19522
19523 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19524
19525
19526 fi
19527
19528 fi
19529
19530
19531
19532 fi
19533 case $host_os in
19534 solaris*|sco*|sysv4*) localdef="yes" ;;
19535 *) localdef="no" ;;
19536 esac
19537 # Check whether --enable-local-transport was given.
19538 if test "${enable_local_transport+set}" = set; then :
19539 enableval=$enable_local_transport; LOCALCONN=$enableval
19540 else
19541 LOCALCONN=$localdef
19542 fi
19543
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19545 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19547 $as_echo "$LOCALCONN" >&6; }
19548 if test "$LOCALCONN" = "yes"; then
19549
19550 $as_echo "#define LOCALCONN 1" >>confdefs.h
19551
19552 fi
19553
19554
19555
19556 case $host_os in
19557 linux*)
19558 OS_CFLAGS="-D_XOPEN_SOURCE"
19559 ;;
19560 darwin*)
19561 OS_CFLAGS="-Wl,-flat_namespace"
19562 ;;
19563 *)
19564 OS_CFLAGS=
19565 ;;
19566 esac
19567
19568
19569 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/fontfile/Makefile src/FreeType/Makefile src/builtins/Makefile src/bitmap/Makefile src/fc/Makefile src/util/Makefile src/stubs/Makefile xfont.pc"
19570
19571 cat >confcache <<\_ACEOF
19572 # This file is a shell script that caches the results of configure
19573 # tests run on this system so they can be shared between configure
19574 # scripts and configure runs, see configure's option --config-cache.
19575 # It is not useful on other systems. If it contains results you don't
19576 # want to keep, you may remove or edit it.
19577 #
19578 # config.status only pays attention to the cache file if you give it
19579 # the --recheck option to rerun configure.
19580 #
19581 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19582 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19583 # following values.
19584
19585 _ACEOF
19586
19587 # The following way of writing the cache mishandles newlines in values,
19588 # but we know of no workaround that is simple, portable, and efficient.
19589 # So, we kill variables containing newlines.
19590 # Ultrix sh set writes to stderr and can't be redirected directly,
19591 # and sets the high bit in the cache file unless we assign to the vars.
19592 (
19593 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19594 eval ac_val=\$$ac_var
19595 case $ac_val in #(
19596 *${as_nl}*)
19597 case $ac_var in #(
19598 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19599 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19600 esac
19601 case $ac_var in #(
19602 _ | IFS | as_nl) ;; #(
19603 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19604 *) { eval $ac_var=; unset $ac_var;} ;;
19605 esac ;;
19606 esac
19607 done
19608
19609 (set) 2>&1 |
19610 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19611 *${as_nl}ac_space=\ *)
19612 # `set' does not quote correctly, so add quotes: double-quote
19613 # substitution turns \\\\ into \\, and sed turns \\ into \.
19614 sed -n \
19615 "s/'/'\\\\''/g;
19616 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19617 ;; #(
19618 *)
19619 # `set' quotes correctly as required by POSIX, so do not add quotes.
19620 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19621 ;;
19622 esac |
19623 sort
19624 ) |
19625 sed '
19626 /^ac_cv_env_/b end
19627 t clear
19628 :clear
19629 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19630 t end
19631 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19632 :end' >>confcache
19633 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19634 if test -w "$cache_file"; then
19635 if test "x$cache_file" != "x/dev/null"; then
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19637 $as_echo "$as_me: updating cache $cache_file" >&6;}
19638 if test ! -f "$cache_file" || test -h "$cache_file"; then
19639 cat confcache >"$cache_file"
19640 else
19641 case $cache_file in #(
19642 */* | ?:*)
19643 mv -f confcache "$cache_file"$$ &&
19644 mv -f "$cache_file"$$ "$cache_file" ;; #(
19645 *)
19646 mv -f confcache "$cache_file" ;;
19647 esac
19648 fi
19649 fi
19650 else
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19652 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19653 fi
19654 fi
19655 rm -f confcache
19656
19657 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19658 # Let make expand exec_prefix.
19659 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19660
19661 DEFS=-DHAVE_CONFIG_H
19662
19663 ac_libobjs=
19664 ac_ltlibobjs=
19665 U=
19666 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19667 # 1. Remove the extension, and $U if already installed.
19668 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19669 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19670 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19671 # will be set to the directory where LIBOBJS objects are built.
19672 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19673 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19674 done
19675 LIBOBJS=$ac_libobjs
19676
19677 LTLIBOBJS=$ac_ltlibobjs
19678
19679
19680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19681 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19682 if test -n "$am_sleep_pid"; then
19683 # Hide warnings about reused PIDs.
19684 wait $am_sleep_pid 2>/dev/null
19685 fi
19686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19687 $as_echo "done" >&6; }
19688 if test -n "$EXEEXT"; then
19689 am__EXEEXT_TRUE=
19690 am__EXEEXT_FALSE='#'
19691 else
19692 am__EXEEXT_TRUE='#'
19693 am__EXEEXT_FALSE=
19694 fi
19695
19696 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19697 as_fn_error $? "conditional \"AMDEP\" was never defined.
19698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19699 fi
19700 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19701 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19703 fi
19704 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19705 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19707 fi
19708 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19709 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19711 fi
19712 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19713 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19715 fi
19716 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19717 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19719 fi
19720 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19721 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19723 fi
19724 if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
19725 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
19726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19727 fi
19728 if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
19729 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
19730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19731 fi
19732 if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
19733 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
19734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19735 fi
19736 if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
19737 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
19738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19739 fi
19740 if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
19741 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
19742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19743 fi
19744 if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
19745 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
19746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19747 fi
19748 if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
19749 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
19750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19751 fi
19752 if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
19753 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
19754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19755 fi
19756 if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
19757 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
19758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19759 fi
19760 if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
19761 as_fn_error $? "conditional \"XFONT_FC\" was never defined.
19762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19763 fi
19764
19765 : "${CONFIG_STATUS=./config.status}"
19766 ac_write_fail=0
19767 ac_clean_files_save=$ac_clean_files
19768 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19770 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19771 as_write_fail=0
19772 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19773 #! $SHELL
19774 # Generated by $as_me.
19775 # Run this file to recreate the current configuration.
19776 # Compiler output produced by configure, useful for debugging
19777 # configure, is in config.log if it exists.
19778
19779 debug=false
19780 ac_cs_recheck=false
19781 ac_cs_silent=false
19782
19783 SHELL=\${CONFIG_SHELL-$SHELL}
19784 export SHELL
19785 _ASEOF
19786 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19787 ## -------------------- ##
19788 ## M4sh Initialization. ##
19789 ## -------------------- ##
19790
19791 # Be more Bourne compatible
19792 DUALCASE=1; export DUALCASE # for MKS sh
19793 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19794 emulate sh
19795 NULLCMD=:
19796 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19797 # is contrary to our usage. Disable this feature.
19798 alias -g '${1+"$@"}'='"$@"'
19799 setopt NO_GLOB_SUBST
19800 else
19801 case `(set -o) 2>/dev/null` in #(
19802 *posix*) :
19803 set -o posix ;; #(
19804 *) :
19805 ;;
19806 esac
19807 fi
19808
19809
19810 as_nl='
19811 '
19812 export as_nl
19813 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19814 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19815 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19816 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19817 # Prefer a ksh shell builtin over an external printf program on Solaris,
19818 # but without wasting forks for bash or zsh.
19819 if test -z "$BASH_VERSION$ZSH_VERSION" \
19820 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19821 as_echo='print -r --'
19822 as_echo_n='print -rn --'
19823 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19824 as_echo='printf %s\n'
19825 as_echo_n='printf %s'
19826 else
19827 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19828 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19829 as_echo_n='/usr/ucb/echo -n'
19830 else
19831 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19832 as_echo_n_body='eval
19833 arg=$1;
19834 case $arg in #(
19835 *"$as_nl"*)
19836 expr "X$arg" : "X\\(.*\\)$as_nl";
19837 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19838 esac;
19839 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19840 '
19841 export as_echo_n_body
19842 as_echo_n='sh -c $as_echo_n_body as_echo'
19843 fi
19844 export as_echo_body
19845 as_echo='sh -c $as_echo_body as_echo'
19846 fi
19847
19848 # The user is always right.
19849 if test "${PATH_SEPARATOR+set}" != set; then
19850 PATH_SEPARATOR=:
19851 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19852 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19853 PATH_SEPARATOR=';'
19854 }
19855 fi
19856
19857
19858 # IFS
19859 # We need space, tab and new line, in precisely that order. Quoting is
19860 # there to prevent editors from complaining about space-tab.
19861 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19862 # splitting by setting IFS to empty value.)
19863 IFS=" "" $as_nl"
19864
19865 # Find who we are. Look in the path if we contain no directory separator.
19866 as_myself=
19867 case $0 in #((
19868 *[\\/]* ) as_myself=$0 ;;
19869 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19870 for as_dir in $PATH
19871 do
19872 IFS=$as_save_IFS
19873 test -z "$as_dir" && as_dir=.
19874 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19875 done
19876 IFS=$as_save_IFS
19877
19878 ;;
19879 esac
19880 # We did not find ourselves, most probably we were run as `sh COMMAND'
19881 # in which case we are not to be found in the path.
19882 if test "x$as_myself" = x; then
19883 as_myself=$0
19884 fi
19885 if test ! -f "$as_myself"; then
19886 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19887 exit 1
19888 fi
19889
19890 # Unset variables that we do not need and which cause bugs (e.g. in
19891 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19892 # suppresses any "Segmentation fault" message there. '((' could
19893 # trigger a bug in pdksh 5.2.14.
19894 for as_var in BASH_ENV ENV MAIL MAILPATH
19895 do eval test x\${$as_var+set} = xset \
19896 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19897 done
19898 PS1='$ '
19899 PS2='> '
19900 PS4='+ '
19901
19902 # NLS nuisances.
19903 LC_ALL=C
19904 export LC_ALL
19905 LANGUAGE=C
19906 export LANGUAGE
19907
19908 # CDPATH.
19909 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19910
19911
19912 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19913 # ----------------------------------------
19914 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19915 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19916 # script with STATUS, using 1 if that was 0.
19917 as_fn_error ()
19918 {
19919 as_status=$1; test $as_status -eq 0 && as_status=1
19920 if test "$4"; then
19921 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19922 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19923 fi
19924 $as_echo "$as_me: error: $2" >&2
19925 as_fn_exit $as_status
19926 } # as_fn_error
19927
19928
19929 # as_fn_set_status STATUS
19930 # -----------------------
19931 # Set $? to STATUS, without forking.
19932 as_fn_set_status ()
19933 {
19934 return $1
19935 } # as_fn_set_status
19936
19937 # as_fn_exit STATUS
19938 # -----------------
19939 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19940 as_fn_exit ()
19941 {
19942 set +e
19943 as_fn_set_status $1
19944 exit $1
19945 } # as_fn_exit
19946
19947 # as_fn_unset VAR
19948 # ---------------
19949 # Portably unset VAR.
19950 as_fn_unset ()
19951 {
19952 { eval $1=; unset $1;}
19953 }
19954 as_unset=as_fn_unset
19955 # as_fn_append VAR VALUE
19956 # ----------------------
19957 # Append the text in VALUE to the end of the definition contained in VAR. Take
19958 # advantage of any shell optimizations that allow amortized linear growth over
19959 # repeated appends, instead of the typical quadratic growth present in naive
19960 # implementations.
19961 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19962 eval 'as_fn_append ()
19963 {
19964 eval $1+=\$2
19965 }'
19966 else
19967 as_fn_append ()
19968 {
19969 eval $1=\$$1\$2
19970 }
19971 fi # as_fn_append
19972
19973 # as_fn_arith ARG...
19974 # ------------------
19975 # Perform arithmetic evaluation on the ARGs, and store the result in the
19976 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19977 # must be portable across $(()) and expr.
19978 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19979 eval 'as_fn_arith ()
19980 {
19981 as_val=$(( $* ))
19982 }'
19983 else
19984 as_fn_arith ()
19985 {
19986 as_val=`expr "$@" || test $? -eq 1`
19987 }
19988 fi # as_fn_arith
19989
19990
19991 if expr a : '\(a\)' >/dev/null 2>&1 &&
19992 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19993 as_expr=expr
19994 else
19995 as_expr=false
19996 fi
19997
19998 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19999 as_basename=basename
20000 else
20001 as_basename=false
20002 fi
20003
20004 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20005 as_dirname=dirname
20006 else
20007 as_dirname=false
20008 fi
20009
20010 as_me=`$as_basename -- "$0" ||
20011 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20012 X"$0" : 'X\(//\)$' \| \
20013 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20014 $as_echo X/"$0" |
20015 sed '/^.*\/\([^/][^/]*\)\/*$/{
20016 s//\1/
20017 q
20018 }
20019 /^X\/\(\/\/\)$/{
20020 s//\1/
20021 q
20022 }
20023 /^X\/\(\/\).*/{
20024 s//\1/
20025 q
20026 }
20027 s/.*/./; q'`
20028
20029 # Avoid depending upon Character Ranges.
20030 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20031 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20032 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20033 as_cr_digits='0123456789'
20034 as_cr_alnum=$as_cr_Letters$as_cr_digits
20035
20036 ECHO_C= ECHO_N= ECHO_T=
20037 case `echo -n x` in #(((((
20038 -n*)
20039 case `echo 'xy\c'` in
20040 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20041 xy) ECHO_C='\c';;
20042 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20043 ECHO_T=' ';;
20044 esac;;
20045 *)
20046 ECHO_N='-n';;
20047 esac
20048
20049 rm -f conf$$ conf$$.exe conf$$.file
20050 if test -d conf$$.dir; then
20051 rm -f conf$$.dir/conf$$.file
20052 else
20053 rm -f conf$$.dir
20054 mkdir conf$$.dir 2>/dev/null
20055 fi
20056 if (echo >conf$$.file) 2>/dev/null; then
20057 if ln -s conf$$.file conf$$ 2>/dev/null; then
20058 as_ln_s='ln -s'
20059 # ... but there are two gotchas:
20060 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20061 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20062 # In both cases, we have to default to `cp -p'.
20063 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20064 as_ln_s='cp -p'
20065 elif ln conf$$.file conf$$ 2>/dev/null; then
20066 as_ln_s=ln
20067 else
20068 as_ln_s='cp -p'
20069 fi
20070 else
20071 as_ln_s='cp -p'
20072 fi
20073 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20074 rmdir conf$$.dir 2>/dev/null
20075
20076
20077 # as_fn_mkdir_p
20078 # -------------
20079 # Create "$as_dir" as a directory, including parents if necessary.
20080 as_fn_mkdir_p ()
20081 {
20082
20083 case $as_dir in #(
20084 -*) as_dir=./$as_dir;;
20085 esac
20086 test -d "$as_dir" || eval $as_mkdir_p || {
20087 as_dirs=
20088 while :; do
20089 case $as_dir in #(
20090 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20091 *) as_qdir=$as_dir;;
20092 esac
20093 as_dirs="'$as_qdir' $as_dirs"
20094 as_dir=`$as_dirname -- "$as_dir" ||
20095 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20096 X"$as_dir" : 'X\(//\)[^/]' \| \
20097 X"$as_dir" : 'X\(//\)$' \| \
20098 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20099 $as_echo X"$as_dir" |
20100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20101 s//\1/
20102 q
20103 }
20104 /^X\(\/\/\)[^/].*/{
20105 s//\1/
20106 q
20107 }
20108 /^X\(\/\/\)$/{
20109 s//\1/
20110 q
20111 }
20112 /^X\(\/\).*/{
20113 s//\1/
20114 q
20115 }
20116 s/.*/./; q'`
20117 test -d "$as_dir" && break
20118 done
20119 test -z "$as_dirs" || eval "mkdir $as_dirs"
20120 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20121
20122
20123 } # as_fn_mkdir_p
20124 if mkdir -p . 2>/dev/null; then
20125 as_mkdir_p='mkdir -p "$as_dir"'
20126 else
20127 test -d ./-p && rmdir ./-p
20128 as_mkdir_p=false
20129 fi
20130
20131 if test -x / >/dev/null 2>&1; then
20132 as_test_x='test -x'
20133 else
20134 if ls -dL / >/dev/null 2>&1; then
20135 as_ls_L_option=L
20136 else
20137 as_ls_L_option=
20138 fi
20139 as_test_x='
20140 eval sh -c '\''
20141 if test -d "$1"; then
20142 test -d "$1/.";
20143 else
20144 case $1 in #(
20145 -*)set "./$1";;
20146 esac;
20147 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
20148 ???[sx]*):;;*)false;;esac;fi
20149 '\'' sh
20150 '
20151 fi
20152 as_executable_p=$as_test_x
20153
20154 # Sed expression to map a string onto a valid CPP name.
20155 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20156
20157 # Sed expression to map a string onto a valid variable name.
20158 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20159
20160
20161 exec 6>&1
20162 ## ----------------------------------- ##
20163 ## Main body of $CONFIG_STATUS script. ##
20164 ## ----------------------------------- ##
20165 _ASEOF
20166 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20167
20168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20169 # Save the log message, to keep $0 and so on meaningful, and to
20170 # report actual input values of CONFIG_FILES etc. instead of their
20171 # values after options handling.
20172 ac_log="
20173 This file was extended by libXfont $as_me 1.5.0, which was
20174 generated by GNU Autoconf 2.68. Invocation command line was
20175
20176 CONFIG_FILES = $CONFIG_FILES
20177 CONFIG_HEADERS = $CONFIG_HEADERS
20178 CONFIG_LINKS = $CONFIG_LINKS
20179 CONFIG_COMMANDS = $CONFIG_COMMANDS
20180 $ $0 $@
20181
20182 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20183 "
20184
20185 _ACEOF
20186
20187 case $ac_config_files in *"
20188 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20189 esac
20190
20191 case $ac_config_headers in *"
20192 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20193 esac
20194
20195
20196 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20197 # Files that config.status was made for.
20198 config_files="$ac_config_files"
20199 config_headers="$ac_config_headers"
20200 config_commands="$ac_config_commands"
20201
20202 _ACEOF
20203
20204 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20205 ac_cs_usage="\
20206 \`$as_me' instantiates files and other configuration actions
20207 from templates according to the current configuration. Unless the files
20208 and actions are specified as TAGs, all are instantiated by default.
20209
20210 Usage: $0 [OPTION]... [TAG]...
20211
20212 -h, --help print this help, then exit
20213 -V, --version print version number and configuration settings, then exit
20214 --config print configuration, then exit
20215 -q, --quiet, --silent
20216 do not print progress messages
20217 -d, --debug don't remove temporary files
20218 --recheck update $as_me by reconfiguring in the same conditions
20219 --file=FILE[:TEMPLATE]
20220 instantiate the configuration file FILE
20221 --header=FILE[:TEMPLATE]
20222 instantiate the configuration header FILE
20223
20224 Configuration files:
20225 $config_files
20226
20227 Configuration headers:
20228 $config_headers
20229
20230 Configuration commands:
20231 $config_commands
20232
20233 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20234
20235 _ACEOF
20236 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20237 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20238 ac_cs_version="\\
20239 libXfont config.status 1.5.0
20240 configured by $0, generated by GNU Autoconf 2.68,
20241 with options \\"\$ac_cs_config\\"
20242
20243 Copyright (C) 2010 Free Software Foundation, Inc.
20244 This config.status script is free software; the Free Software Foundation
20245 gives unlimited permission to copy, distribute and modify it."
20246
20247 ac_pwd='$ac_pwd'
20248 srcdir='$srcdir'
20249 INSTALL='$INSTALL'
20250 MKDIR_P='$MKDIR_P'
20251 AWK='$AWK'
20252 test -n "\$AWK" || AWK=awk
20253 _ACEOF
20254
20255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20256 # The default lists apply if the user does not specify any file.
20257 ac_need_defaults=:
20258 while test $# != 0
20259 do
20260 case $1 in
20261 --*=?*)
20262 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20263 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20264 ac_shift=:
20265 ;;
20266 --*=)
20267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20268 ac_optarg=
20269 ac_shift=:
20270 ;;
20271 *)
20272 ac_option=$1
20273 ac_optarg=$2
20274 ac_shift=shift
20275 ;;
20276 esac
20277
20278 case $ac_option in
20279 # Handling of the options.
20280 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20281 ac_cs_recheck=: ;;
20282 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20283 $as_echo "$ac_cs_version"; exit ;;
20284 --config | --confi | --conf | --con | --co | --c )
20285 $as_echo "$ac_cs_config"; exit ;;
20286 --debug | --debu | --deb | --de | --d | -d )
20287 debug=: ;;
20288 --file | --fil | --fi | --f )
20289 $ac_shift
20290 case $ac_optarg in
20291 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20292 '') as_fn_error $? "missing file argument" ;;
20293 esac
20294 as_fn_append CONFIG_FILES " '$ac_optarg'"
20295 ac_need_defaults=false;;
20296 --header | --heade | --head | --hea )
20297 $ac_shift
20298 case $ac_optarg in
20299 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20300 esac
20301 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20302 ac_need_defaults=false;;
20303 --he | --h)
20304 # Conflict between --help and --header
20305 as_fn_error $? "ambiguous option: \`$1'
20306 Try \`$0 --help' for more information.";;
20307 --help | --hel | -h )
20308 $as_echo "$ac_cs_usage"; exit ;;
20309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20310 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20311 ac_cs_silent=: ;;
20312
20313 # This is an error.
20314 -*) as_fn_error $? "unrecognized option: \`$1'
20315 Try \`$0 --help' for more information." ;;
20316
20317 *) as_fn_append ac_config_targets " $1"
20318 ac_need_defaults=false ;;
20319
20320 esac
20321 shift
20322 done
20323
20324 ac_configure_extra_args=
20325
20326 if $ac_cs_silent; then
20327 exec 6>/dev/null
20328 ac_configure_extra_args="$ac_configure_extra_args --silent"
20329 fi
20330
20331 _ACEOF
20332 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20333 if \$ac_cs_recheck; then
20334 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20335 shift
20336 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20337 CONFIG_SHELL='$SHELL'
20338 export CONFIG_SHELL
20339 exec "\$@"
20340 fi
20341
20342 _ACEOF
20343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20344 exec 5>>config.log
20345 {
20346 echo
20347 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20348 ## Running $as_me. ##
20349 _ASBOX
20350 $as_echo "$ac_log"
20351 } >&5
20352
20353 _ACEOF
20354 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20355 #
20356 # INIT-COMMANDS
20357 #
20358 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20359
20360
20361 # The HP-UX ksh and POSIX shell print the target directory to stdout
20362 # if CDPATH is set.
20363 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20364
20365 sed_quote_subst='$sed_quote_subst'
20366 double_quote_subst='$double_quote_subst'
20367 delay_variable_subst='$delay_variable_subst'
20368 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20369 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20370 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20371 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20372 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20373 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20374 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20375 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20376 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20377 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20378 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20379 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20380 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20381 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20382 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20383 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20384 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20385 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20386 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20387 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20388 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20389 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20390 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20391 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20392 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20393 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20394 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20395 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20396 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20397 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20398 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20399 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20400 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20401 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20402 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20403 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20404 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20405 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20406 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20407 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20408 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20409 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20410 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20411 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20412 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20413 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20414 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20415 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20416 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20417 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20418 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20419 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20420 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20421 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20422 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20423 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20424 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"`'
20425 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20426 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20427 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20428 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20429 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20430 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20431 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20432 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20433 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20434 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20435 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20436 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20437 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20438 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20439 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20440 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20441 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20442 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20443 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20444 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20445 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20446 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20447 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20448 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20449 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20450 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20451 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20452 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20453 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20454 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20455 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20456 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20457 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20458 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20459 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20460 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20461 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20462 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20463 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20464 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20465 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20466 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20467 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20468 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20469 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20470 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20471 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20472 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20473 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20474 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20475 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20476 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20477 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20478 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20479 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20480 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20481 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20482 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20483 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20484 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20485 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20486 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20487 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20488 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20489 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20490 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20491 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20492 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20493 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20494 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20495 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20496 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20497 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20498
20499 LTCC='$LTCC'
20500 LTCFLAGS='$LTCFLAGS'
20501 compiler='$compiler_DEFAULT'
20502
20503 # A function that is used when there is no print builtin or printf.
20504 func_fallback_echo ()
20505 {
20506 eval 'cat <<_LTECHO_EOF
20507 \$1
20508 _LTECHO_EOF'
20509 }
20510
20511 # Quote evaled strings.
20512 for var in SHELL \
20513 ECHO \
20514 PATH_SEPARATOR \
20515 SED \
20516 GREP \
20517 EGREP \
20518 FGREP \
20519 LD \
20520 NM \
20521 LN_S \
20522 lt_SP2NL \
20523 lt_NL2SP \
20524 reload_flag \
20525 OBJDUMP \
20526 deplibs_check_method \
20527 file_magic_cmd \
20528 file_magic_glob \
20529 want_nocaseglob \
20530 DLLTOOL \
20531 sharedlib_from_linklib_cmd \
20532 AR \
20533 AR_FLAGS \
20534 archiver_list_spec \
20535 STRIP \
20536 RANLIB \
20537 CC \
20538 CFLAGS \
20539 compiler \
20540 lt_cv_sys_global_symbol_pipe \
20541 lt_cv_sys_global_symbol_to_cdecl \
20542 lt_cv_sys_global_symbol_to_c_name_address \
20543 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20544 nm_file_list_spec \
20545 lt_prog_compiler_no_builtin_flag \
20546 lt_prog_compiler_pic \
20547 lt_prog_compiler_wl \
20548 lt_prog_compiler_static \
20549 lt_cv_prog_compiler_c_o \
20550 need_locks \
20551 MANIFEST_TOOL \
20552 DSYMUTIL \
20553 NMEDIT \
20554 LIPO \
20555 OTOOL \
20556 OTOOL64 \
20557 shrext_cmds \
20558 export_dynamic_flag_spec \
20559 whole_archive_flag_spec \
20560 compiler_needs_object \
20561 with_gnu_ld \
20562 allow_undefined_flag \
20563 no_undefined_flag \
20564 hardcode_libdir_flag_spec \
20565 hardcode_libdir_separator \
20566 exclude_expsyms \
20567 include_expsyms \
20568 file_list_spec \
20569 variables_saved_for_relink \
20570 libname_spec \
20571 library_names_spec \
20572 soname_spec \
20573 install_override_mode \
20574 finish_eval \
20575 old_striplib \
20576 striplib; do
20577 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20578 *[\\\\\\\`\\"\\\$]*)
20579 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20580 ;;
20581 *)
20582 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20583 ;;
20584 esac
20585 done
20586
20587 # Double-quote double-evaled strings.
20588 for var in reload_cmds \
20589 old_postinstall_cmds \
20590 old_postuninstall_cmds \
20591 old_archive_cmds \
20592 extract_expsyms_cmds \
20593 old_archive_from_new_cmds \
20594 old_archive_from_expsyms_cmds \
20595 archive_cmds \
20596 archive_expsym_cmds \
20597 module_cmds \
20598 module_expsym_cmds \
20599 export_symbols_cmds \
20600 prelink_cmds \
20601 postlink_cmds \
20602 postinstall_cmds \
20603 postuninstall_cmds \
20604 finish_cmds \
20605 sys_lib_search_path_spec \
20606 sys_lib_dlsearch_path_spec; do
20607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20608 *[\\\\\\\`\\"\\\$]*)
20609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20610 ;;
20611 *)
20612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20613 ;;
20614 esac
20615 done
20616
20617 ac_aux_dir='$ac_aux_dir'
20618 xsi_shell='$xsi_shell'
20619 lt_shell_append='$lt_shell_append'
20620
20621 # See if we are running on zsh, and set the options which allow our
20622 # commands through without removal of \ escapes INIT.
20623 if test -n "\${ZSH_VERSION+set}" ; then
20624 setopt NO_GLOB_SUBST
20625 fi
20626
20627
20628 PACKAGE='$PACKAGE'
20629 VERSION='$VERSION'
20630 TIMESTAMP='$TIMESTAMP'
20631 RM='$RM'
20632 ofile='$ofile'
20633
20634
20635
20636
20637 _ACEOF
20638
20639 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20640
20641 # Handling of arguments.
20642 for ac_config_target in $ac_config_targets
20643 do
20644 case $ac_config_target in
20645 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20646 "include/X11/fonts/fontconf.h") CONFIG_HEADERS="$CONFIG_HEADERS include/X11/fonts/fontconf.h" ;;
20647 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20648 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20650 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20651 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20652 "src/fontfile/Makefile") CONFIG_FILES="$CONFIG_FILES src/fontfile/Makefile" ;;
20653 "src/FreeType/Makefile") CONFIG_FILES="$CONFIG_FILES src/FreeType/Makefile" ;;
20654 "src/builtins/Makefile") CONFIG_FILES="$CONFIG_FILES src/builtins/Makefile" ;;
20655 "src/bitmap/Makefile") CONFIG_FILES="$CONFIG_FILES src/bitmap/Makefile" ;;
20656 "src/fc/Makefile") CONFIG_FILES="$CONFIG_FILES src/fc/Makefile" ;;
20657 "src/util/Makefile") CONFIG_FILES="$CONFIG_FILES src/util/Makefile" ;;
20658 "src/stubs/Makefile") CONFIG_FILES="$CONFIG_FILES src/stubs/Makefile" ;;
20659 "xfont.pc") CONFIG_FILES="$CONFIG_FILES xfont.pc" ;;
20660
20661 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20662 esac
20663 done
20664
20665
20666 # If the user did not use the arguments to specify the items to instantiate,
20667 # then the envvar interface is used. Set only those that are not.
20668 # We use the long form for the default assignment because of an extremely
20669 # bizarre bug on SunOS 4.1.3.
20670 if $ac_need_defaults; then
20671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20674 fi
20675
20676 # Have a temporary directory for convenience. Make it in the build tree
20677 # simply because there is no reason against having it here, and in addition,
20678 # creating and moving files from /tmp can sometimes cause problems.
20679 # Hook for its removal unless debugging.
20680 # Note that there is a small window in which the directory will not be cleaned:
20681 # after its creation but before its name has been assigned to `$tmp'.
20682 $debug ||
20683 {
20684 tmp= ac_tmp=
20685 trap 'exit_status=$?
20686 : "${ac_tmp:=$tmp}"
20687 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20688 ' 0
20689 trap 'as_fn_exit 1' 1 2 13 15
20690 }
20691 # Create a (secure) tmp directory for tmp files.
20692
20693 {
20694 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20695 test -d "$tmp"
20696 } ||
20697 {
20698 tmp=./conf$$-$RANDOM
20699 (umask 077 && mkdir "$tmp")
20700 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20701 ac_tmp=$tmp
20702
20703 # Set up the scripts for CONFIG_FILES section.
20704 # No need to generate them if there are no CONFIG_FILES.
20705 # This happens for instance with `./config.status config.h'.
20706 if test -n "$CONFIG_FILES"; then
20707
20708
20709 ac_cr=`echo X | tr X '\015'`
20710 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20711 # But we know of no other shell where ac_cr would be empty at this
20712 # point, so we can use a bashism as a fallback.
20713 if test "x$ac_cr" = x; then
20714 eval ac_cr=\$\'\\r\'
20715 fi
20716 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20717 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20718 ac_cs_awk_cr='\\r'
20719 else
20720 ac_cs_awk_cr=$ac_cr
20721 fi
20722
20723 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20724 _ACEOF
20725
20726
20727 {
20728 echo "cat >conf$$subs.awk <<_ACEOF" &&
20729 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20730 echo "_ACEOF"
20731 } >conf$$subs.sh ||
20732 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20733 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20734 ac_delim='%!_!# '
20735 for ac_last_try in false false false false false :; do
20736 . ./conf$$subs.sh ||
20737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20738
20739 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20740 if test $ac_delim_n = $ac_delim_num; then
20741 break
20742 elif $ac_last_try; then
20743 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20744 else
20745 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20746 fi
20747 done
20748 rm -f conf$$subs.sh
20749
20750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20751 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20752 _ACEOF
20753 sed -n '
20754 h
20755 s/^/S["/; s/!.*/"]=/
20756 p
20757 g
20758 s/^[^!]*!//
20759 :repl
20760 t repl
20761 s/'"$ac_delim"'$//
20762 t delim
20763 :nl
20764 h
20765 s/\(.\{148\}\)..*/\1/
20766 t more1
20767 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20768 p
20769 n
20770 b repl
20771 :more1
20772 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20773 p
20774 g
20775 s/.\{148\}//
20776 t nl
20777 :delim
20778 h
20779 s/\(.\{148\}\)..*/\1/
20780 t more2
20781 s/["\\]/\\&/g; s/^/"/; s/$/"/
20782 p
20783 b
20784 :more2
20785 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20786 p
20787 g
20788 s/.\{148\}//
20789 t delim
20790 ' <conf$$subs.awk | sed '
20791 /^[^""]/{
20792 N
20793 s/\n//
20794 }
20795 ' >>$CONFIG_STATUS || ac_write_fail=1
20796 rm -f conf$$subs.awk
20797 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20798 _ACAWK
20799 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20800 for (key in S) S_is_set[key] = 1
20801 FS = ""
20802
20803 }
20804 {
20805 line = $ 0
20806 nfields = split(line, field, "@")
20807 substed = 0
20808 len = length(field[1])
20809 for (i = 2; i < nfields; i++) {
20810 key = field[i]
20811 keylen = length(key)
20812 if (S_is_set[key]) {
20813 value = S[key]
20814 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20815 len += length(value) + length(field[++i])
20816 substed = 1
20817 } else
20818 len += 1 + keylen
20819 }
20820
20821 print line
20822 }
20823
20824 _ACAWK
20825 _ACEOF
20826 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20827 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20828 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20829 else
20830 cat
20831 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20832 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20833 _ACEOF
20834
20835 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20836 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20837 # trailing colons and then remove the whole line if VPATH becomes empty
20838 # (actually we leave an empty line to preserve line numbers).
20839 if test "x$srcdir" = x.; then
20840 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20841 h
20842 s///
20843 s/^/:/
20844 s/[ ]*$/:/
20845 s/:\$(srcdir):/:/g
20846 s/:\${srcdir}:/:/g
20847 s/:@srcdir@:/:/g
20848 s/^:*//
20849 s/:*$//
20850 x
20851 s/\(=[ ]*\).*/\1/
20852 G
20853 s/\n//
20854 s/^[^=]*=[ ]*$//
20855 }'
20856 fi
20857
20858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20859 fi # test -n "$CONFIG_FILES"
20860
20861 # Set up the scripts for CONFIG_HEADERS section.
20862 # No need to generate them if there are no CONFIG_HEADERS.
20863 # This happens for instance with `./config.status Makefile'.
20864 if test -n "$CONFIG_HEADERS"; then
20865 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20866 BEGIN {
20867 _ACEOF
20868
20869 # Transform confdefs.h into an awk script `defines.awk', embedded as
20870 # here-document in config.status, that substitutes the proper values into
20871 # config.h.in to produce config.h.
20872
20873 # Create a delimiter string that does not exist in confdefs.h, to ease
20874 # handling of long lines.
20875 ac_delim='%!_!# '
20876 for ac_last_try in false false :; do
20877 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20878 if test -z "$ac_tt"; then
20879 break
20880 elif $ac_last_try; then
20881 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20882 else
20883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20884 fi
20885 done
20886
20887 # For the awk script, D is an array of macro values keyed by name,
20888 # likewise P contains macro parameters if any. Preserve backslash
20889 # newline sequences.
20890
20891 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20892 sed -n '
20893 s/.\{148\}/&'"$ac_delim"'/g
20894 t rset
20895 :rset
20896 s/^[ ]*#[ ]*define[ ][ ]*/ /
20897 t def
20898 d
20899 :def
20900 s/\\$//
20901 t bsnl
20902 s/["\\]/\\&/g
20903 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20904 D["\1"]=" \3"/p
20905 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20906 d
20907 :bsnl
20908 s/["\\]/\\&/g
20909 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20910 D["\1"]=" \3\\\\\\n"\\/p
20911 t cont
20912 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20913 t cont
20914 d
20915 :cont
20916 n
20917 s/.\{148\}/&'"$ac_delim"'/g
20918 t clear
20919 :clear
20920 s/\\$//
20921 t bsnlc
20922 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20923 d
20924 :bsnlc
20925 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20926 b cont
20927 ' <confdefs.h | sed '
20928 s/'"$ac_delim"'/"\\\
20929 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20930
20931 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20932 for (key in D) D_is_set[key] = 1
20933 FS = ""
20934 }
20935 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20936 line = \$ 0
20937 split(line, arg, " ")
20938 if (arg[1] == "#") {
20939 defundef = arg[2]
20940 mac1 = arg[3]
20941 } else {
20942 defundef = substr(arg[1], 2)
20943 mac1 = arg[2]
20944 }
20945 split(mac1, mac2, "(") #)
20946 macro = mac2[1]
20947 prefix = substr(line, 1, index(line, defundef) - 1)
20948 if (D_is_set[macro]) {
20949 # Preserve the white space surrounding the "#".
20950 print prefix "define", macro P[macro] D[macro]
20951 next
20952 } else {
20953 # Replace #undef with comments. This is necessary, for example,
20954 # in the case of _POSIX_SOURCE, which is predefined and required
20955 # on some systems where configure will not decide to define it.
20956 if (defundef == "undef") {
20957 print "/*", prefix defundef, macro, "*/"
20958 next
20959 }
20960 }
20961 }
20962 { print }
20963 _ACAWK
20964 _ACEOF
20965 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20966 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20967 fi # test -n "$CONFIG_HEADERS"
20968
20969
20970 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20971 shift
20972 for ac_tag
20973 do
20974 case $ac_tag in
20975 :[FHLC]) ac_mode=$ac_tag; continue;;
20976 esac
20977 case $ac_mode$ac_tag in
20978 :[FHL]*:*);;
20979 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
20980 :[FH]-) ac_tag=-:-;;
20981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20982 esac
20983 ac_save_IFS=$IFS
20984 IFS=:
20985 set x $ac_tag
20986 IFS=$ac_save_IFS
20987 shift
20988 ac_file=$1
20989 shift
20990
20991 case $ac_mode in
20992 :L) ac_source=$1;;
20993 :[FH])
20994 ac_file_inputs=
20995 for ac_f
20996 do
20997 case $ac_f in
20998 -) ac_f="$ac_tmp/stdin";;
20999 *) # Look for the file first in the build tree, then in the source tree
21000 # (if the path is not absolute). The absolute path cannot be DOS-style,
21001 # because $ac_f cannot contain `:'.
21002 test -f "$ac_f" ||
21003 case $ac_f in
21004 [\\/$]*) false;;
21005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21006 esac ||
21007 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21008 esac
21009 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21010 as_fn_append ac_file_inputs " '$ac_f'"
21011 done
21012
21013 # Let's still pretend it is `configure' which instantiates (i.e., don't
21014 # use $as_me), people would be surprised to read:
21015 # /* config.h. Generated by config.status. */
21016 configure_input='Generated from '`
21017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21018 `' by configure.'
21019 if test x"$ac_file" != x-; then
21020 configure_input="$ac_file. $configure_input"
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21022 $as_echo "$as_me: creating $ac_file" >&6;}
21023 fi
21024 # Neutralize special characters interpreted by sed in replacement strings.
21025 case $configure_input in #(
21026 *\&* | *\|* | *\\* )
21027 ac_sed_conf_input=`$as_echo "$configure_input" |
21028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21029 *) ac_sed_conf_input=$configure_input;;
21030 esac
21031
21032 case $ac_tag in
21033 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21035 esac
21036 ;;
21037 esac
21038
21039 ac_dir=`$as_dirname -- "$ac_file" ||
21040 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21041 X"$ac_file" : 'X\(//\)[^/]' \| \
21042 X"$ac_file" : 'X\(//\)$' \| \
21043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21044 $as_echo X"$ac_file" |
21045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21046 s//\1/
21047 q
21048 }
21049 /^X\(\/\/\)[^/].*/{
21050 s//\1/
21051 q
21052 }
21053 /^X\(\/\/\)$/{
21054 s//\1/
21055 q
21056 }
21057 /^X\(\/\).*/{
21058 s//\1/
21059 q
21060 }
21061 s/.*/./; q'`
21062 as_dir="$ac_dir"; as_fn_mkdir_p
21063 ac_builddir=.
21064
21065 case "$ac_dir" in
21066 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21067 *)
21068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21069 # A ".." for each directory in $ac_dir_suffix.
21070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21071 case $ac_top_builddir_sub in
21072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21074 esac ;;
21075 esac
21076 ac_abs_top_builddir=$ac_pwd
21077 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21078 # for backward compatibility:
21079 ac_top_builddir=$ac_top_build_prefix
21080
21081 case $srcdir in
21082 .) # We are building in place.
21083 ac_srcdir=.
21084 ac_top_srcdir=$ac_top_builddir_sub
21085 ac_abs_top_srcdir=$ac_pwd ;;
21086 [\\/]* | ?:[\\/]* ) # Absolute name.
21087 ac_srcdir=$srcdir$ac_dir_suffix;
21088 ac_top_srcdir=$srcdir
21089 ac_abs_top_srcdir=$srcdir ;;
21090 *) # Relative name.
21091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21092 ac_top_srcdir=$ac_top_build_prefix$srcdir
21093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21094 esac
21095 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21096
21097
21098 case $ac_mode in
21099 :F)
21100 #
21101 # CONFIG_FILE
21102 #
21103
21104 case $INSTALL in
21105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21106 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21107 esac
21108 ac_MKDIR_P=$MKDIR_P
21109 case $MKDIR_P in
21110 [\\/$]* | ?:[\\/]* ) ;;
21111 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21112 esac
21113 _ACEOF
21114
21115 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21116 # If the template does not know about datarootdir, expand it.
21117 # FIXME: This hack should be removed a few years after 2.60.
21118 ac_datarootdir_hack=; ac_datarootdir_seen=
21119 ac_sed_dataroot='
21120 /datarootdir/ {
21121 p
21122 q
21123 }
21124 /@datadir@/p
21125 /@docdir@/p
21126 /@infodir@/p
21127 /@localedir@/p
21128 /@mandir@/p'
21129 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21130 *datarootdir*) ac_datarootdir_seen=yes;;
21131 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21133 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21134 _ACEOF
21135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21136 ac_datarootdir_hack='
21137 s&@datadir@&$datadir&g
21138 s&@docdir@&$docdir&g
21139 s&@infodir@&$infodir&g
21140 s&@localedir@&$localedir&g
21141 s&@mandir@&$mandir&g
21142 s&\\\${datarootdir}&$datarootdir&g' ;;
21143 esac
21144 _ACEOF
21145
21146 # Neutralize VPATH when `$srcdir' = `.'.
21147 # Shell code in configure.ac might set extrasub.
21148 # FIXME: do we really want to maintain this feature?
21149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21150 ac_sed_extra="$ac_vpsub
21151 $extrasub
21152 _ACEOF
21153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21154 :t
21155 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21156 s|@configure_input@|$ac_sed_conf_input|;t t
21157 s&@top_builddir@&$ac_top_builddir_sub&;t t
21158 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21159 s&@srcdir@&$ac_srcdir&;t t
21160 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21161 s&@top_srcdir@&$ac_top_srcdir&;t t
21162 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21163 s&@builddir@&$ac_builddir&;t t
21164 s&@abs_builddir@&$ac_abs_builddir&;t t
21165 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21166 s&@INSTALL@&$ac_INSTALL&;t t
21167 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21168 $ac_datarootdir_hack
21169 "
21170 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21171 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21172
21173 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21174 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21175 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21176 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21178 which seems to be undefined. Please make sure it is defined" >&5
21179 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21180 which seems to be undefined. Please make sure it is defined" >&2;}
21181
21182 rm -f "$ac_tmp/stdin"
21183 case $ac_file in
21184 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21185 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21186 esac \
21187 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21188 ;;
21189 :H)
21190 #
21191 # CONFIG_HEADER
21192 #
21193 if test x"$ac_file" != x-; then
21194 {
21195 $as_echo "/* $configure_input */" \
21196 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21197 } >"$ac_tmp/config.h" \
21198 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21199 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21200 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21201 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21202 else
21203 rm -f "$ac_file"
21204 mv "$ac_tmp/config.h" "$ac_file" \
21205 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21206 fi
21207 else
21208 $as_echo "/* $configure_input */" \
21209 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21210 || as_fn_error $? "could not create -" "$LINENO" 5
21211 fi
21212 # Compute "$ac_file"'s index in $config_headers.
21213 _am_arg="$ac_file"
21214 _am_stamp_count=1
21215 for _am_header in $config_headers :; do
21216 case $_am_header in
21217 $_am_arg | $_am_arg:* )
21218 break ;;
21219 * )
21220 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21221 esac
21222 done
21223 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21224 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21225 X"$_am_arg" : 'X\(//\)[^/]' \| \
21226 X"$_am_arg" : 'X\(//\)$' \| \
21227 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21228 $as_echo X"$_am_arg" |
21229 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21230 s//\1/
21231 q
21232 }
21233 /^X\(\/\/\)[^/].*/{
21234 s//\1/
21235 q
21236 }
21237 /^X\(\/\/\)$/{
21238 s//\1/
21239 q
21240 }
21241 /^X\(\/\).*/{
21242 s//\1/
21243 q
21244 }
21245 s/.*/./; q'`/stamp-h$_am_stamp_count
21246 ;;
21247
21248 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21249 $as_echo "$as_me: executing $ac_file commands" >&6;}
21250 ;;
21251 esac
21252
21253
21254 case $ac_file$ac_mode in
21255 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21256 # Older Autoconf quotes --file arguments for eval, but not when files
21257 # are listed without --file. Let's play safe and only enable the eval
21258 # if we detect the quoting.
21259 case $CONFIG_FILES in
21260 *\'*) eval set x "$CONFIG_FILES" ;;
21261 *) set x $CONFIG_FILES ;;
21262 esac
21263 shift
21264 for mf
21265 do
21266 # Strip MF so we end up with the name of the file.
21267 mf=`echo "$mf" | sed -e 's/:.*$//'`
21268 # Check whether this is an Automake generated Makefile or not.
21269 # We used to match only the files named 'Makefile.in', but
21270 # some people rename them; so instead we look at the file content.
21271 # Grep'ing the first line is not enough: some people post-process
21272 # each Makefile.in and add a new line on top of each file to say so.
21273 # Grep'ing the whole file is not good either: AIX grep has a line
21274 # limit of 2048, but all sed's we know have understand at least 4000.
21275 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21276 dirpart=`$as_dirname -- "$mf" ||
21277 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21278 X"$mf" : 'X\(//\)[^/]' \| \
21279 X"$mf" : 'X\(//\)$' \| \
21280 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21281 $as_echo X"$mf" |
21282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21283 s//\1/
21284 q
21285 }
21286 /^X\(\/\/\)[^/].*/{
21287 s//\1/
21288 q
21289 }
21290 /^X\(\/\/\)$/{
21291 s//\1/
21292 q
21293 }
21294 /^X\(\/\).*/{
21295 s//\1/
21296 q
21297 }
21298 s/.*/./; q'`
21299 else
21300 continue
21301 fi
21302 # Extract the definition of DEPDIR, am__include, and am__quote
21303 # from the Makefile without running 'make'.
21304 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21305 test -z "$DEPDIR" && continue
21306 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21307 test -z "$am__include" && continue
21308 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21309 # Find all dependency output files, they are included files with
21310 # $(DEPDIR) in their names. We invoke sed twice because it is the
21311 # simplest approach to changing $(DEPDIR) to its actual value in the
21312 # expansion.
21313 for file in `sed -n "
21314 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21315 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21316 # Make sure the directory exists.
21317 test -f "$dirpart/$file" && continue
21318 fdir=`$as_dirname -- "$file" ||
21319 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21320 X"$file" : 'X\(//\)[^/]' \| \
21321 X"$file" : 'X\(//\)$' \| \
21322 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21323 $as_echo X"$file" |
21324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21325 s//\1/
21326 q
21327 }
21328 /^X\(\/\/\)[^/].*/{
21329 s//\1/
21330 q
21331 }
21332 /^X\(\/\/\)$/{
21333 s//\1/
21334 q
21335 }
21336 /^X\(\/\).*/{
21337 s//\1/
21338 q
21339 }
21340 s/.*/./; q'`
21341 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21342 # echo "creating $dirpart/$file"
21343 echo '# dummy' > "$dirpart/$file"
21344 done
21345 done
21346 }
21347 ;;
21348 "libtool":C)
21349
21350 # See if we are running on zsh, and set the options which allow our
21351 # commands through without removal of \ escapes.
21352 if test -n "${ZSH_VERSION+set}" ; then
21353 setopt NO_GLOB_SUBST
21354 fi
21355
21356 cfgfile="${ofile}T"
21357 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21358 $RM "$cfgfile"
21359
21360 cat <<_LT_EOF >> "$cfgfile"
21361 #! $SHELL
21362
21363 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21364 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21365 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21366 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21367 #
21368 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21369 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21370 # Foundation, Inc.
21371 # Written by Gordon Matzigkeit, 1996
21372 #
21373 # This file is part of GNU Libtool.
21374 #
21375 # GNU Libtool is free software; you can redistribute it and/or
21376 # modify it under the terms of the GNU General Public License as
21377 # published by the Free Software Foundation; either version 2 of
21378 # the License, or (at your option) any later version.
21379 #
21380 # As a special exception to the GNU General Public License,
21381 # if you distribute this file as part of a program or library that
21382 # is built using GNU Libtool, you may include this file under the
21383 # same distribution terms that you use for the rest of that program.
21384 #
21385 # GNU Libtool is distributed in the hope that it will be useful,
21386 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21387 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21388 # GNU General Public License for more details.
21389 #
21390 # You should have received a copy of the GNU General Public License
21391 # along with GNU Libtool; see the file COPYING. If not, a copy
21392 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21393 # obtained by writing to the Free Software Foundation, Inc.,
21394 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21395
21396
21397 # The names of the tagged configurations supported by this script.
21398 available_tags=""
21399
21400 # ### BEGIN LIBTOOL CONFIG
21401
21402 # Which release of libtool.m4 was used?
21403 macro_version=$macro_version
21404 macro_revision=$macro_revision
21405
21406 # Whether or not to build shared libraries.
21407 build_libtool_libs=$enable_shared
21408
21409 # Whether or not to build static libraries.
21410 build_old_libs=$enable_static
21411
21412 # What type of objects to build.
21413 pic_mode=$pic_mode
21414
21415 # Whether or not to optimize for fast installation.
21416 fast_install=$enable_fast_install
21417
21418 # Shell to use when invoking shell scripts.
21419 SHELL=$lt_SHELL
21420
21421 # An echo program that protects backslashes.
21422 ECHO=$lt_ECHO
21423
21424 # The PATH separator for the build system.
21425 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21426
21427 # The host system.
21428 host_alias=$host_alias
21429 host=$host
21430 host_os=$host_os
21431
21432 # The build system.
21433 build_alias=$build_alias
21434 build=$build
21435 build_os=$build_os
21436
21437 # A sed program that does not truncate output.
21438 SED=$lt_SED
21439
21440 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21441 Xsed="\$SED -e 1s/^X//"
21442
21443 # A grep program that handles long lines.
21444 GREP=$lt_GREP
21445
21446 # An ERE matcher.
21447 EGREP=$lt_EGREP
21448
21449 # A literal string matcher.
21450 FGREP=$lt_FGREP
21451
21452 # A BSD- or MS-compatible name lister.
21453 NM=$lt_NM
21454
21455 # Whether we need soft or hard links.
21456 LN_S=$lt_LN_S
21457
21458 # What is the maximum length of a command?
21459 max_cmd_len=$max_cmd_len
21460
21461 # Object file suffix (normally "o").
21462 objext=$ac_objext
21463
21464 # Executable file suffix (normally "").
21465 exeext=$exeext
21466
21467 # whether the shell understands "unset".
21468 lt_unset=$lt_unset
21469
21470 # turn spaces into newlines.
21471 SP2NL=$lt_lt_SP2NL
21472
21473 # turn newlines into spaces.
21474 NL2SP=$lt_lt_NL2SP
21475
21476 # convert \$build file names to \$host format.
21477 to_host_file_cmd=$lt_cv_to_host_file_cmd
21478
21479 # convert \$build files to toolchain format.
21480 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21481
21482 # An object symbol dumper.
21483 OBJDUMP=$lt_OBJDUMP
21484
21485 # Method to check whether dependent libraries are shared objects.
21486 deplibs_check_method=$lt_deplibs_check_method
21487
21488 # Command to use when deplibs_check_method = "file_magic".
21489 file_magic_cmd=$lt_file_magic_cmd
21490
21491 # How to find potential files when deplibs_check_method = "file_magic".
21492 file_magic_glob=$lt_file_magic_glob
21493
21494 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21495 want_nocaseglob=$lt_want_nocaseglob
21496
21497 # DLL creation program.
21498 DLLTOOL=$lt_DLLTOOL
21499
21500 # Command to associate shared and link libraries.
21501 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21502
21503 # The archiver.
21504 AR=$lt_AR
21505
21506 # Flags to create an archive.
21507 AR_FLAGS=$lt_AR_FLAGS
21508
21509 # How to feed a file listing to the archiver.
21510 archiver_list_spec=$lt_archiver_list_spec
21511
21512 # A symbol stripping program.
21513 STRIP=$lt_STRIP
21514
21515 # Commands used to install an old-style archive.
21516 RANLIB=$lt_RANLIB
21517 old_postinstall_cmds=$lt_old_postinstall_cmds
21518 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21519
21520 # Whether to use a lock for old archive extraction.
21521 lock_old_archive_extraction=$lock_old_archive_extraction
21522
21523 # A C compiler.
21524 LTCC=$lt_CC
21525
21526 # LTCC compiler flags.
21527 LTCFLAGS=$lt_CFLAGS
21528
21529 # Take the output of nm and produce a listing of raw symbols and C names.
21530 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21531
21532 # Transform the output of nm in a proper C declaration.
21533 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21534
21535 # Transform the output of nm in a C name address pair.
21536 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21537
21538 # Transform the output of nm in a C name address pair when lib prefix is needed.
21539 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21540
21541 # Specify filename containing input files for \$NM.
21542 nm_file_list_spec=$lt_nm_file_list_spec
21543
21544 # The root where to search for dependent libraries,and in which our libraries should be installed.
21545 lt_sysroot=$lt_sysroot
21546
21547 # The name of the directory that contains temporary libtool files.
21548 objdir=$objdir
21549
21550 # Used to examine libraries when file_magic_cmd begins with "file".
21551 MAGIC_CMD=$MAGIC_CMD
21552
21553 # Must we lock files when doing compilation?
21554 need_locks=$lt_need_locks
21555
21556 # Manifest tool.
21557 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21558
21559 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21560 DSYMUTIL=$lt_DSYMUTIL
21561
21562 # Tool to change global to local symbols on Mac OS X.
21563 NMEDIT=$lt_NMEDIT
21564
21565 # Tool to manipulate fat objects and archives on Mac OS X.
21566 LIPO=$lt_LIPO
21567
21568 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21569 OTOOL=$lt_OTOOL
21570
21571 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21572 OTOOL64=$lt_OTOOL64
21573
21574 # Old archive suffix (normally "a").
21575 libext=$libext
21576
21577 # Shared library suffix (normally ".so").
21578 shrext_cmds=$lt_shrext_cmds
21579
21580 # The commands to extract the exported symbol list from a shared archive.
21581 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21582
21583 # Variables whose values should be saved in libtool wrapper scripts and
21584 # restored at link time.
21585 variables_saved_for_relink=$lt_variables_saved_for_relink
21586
21587 # Do we need the "lib" prefix for modules?
21588 need_lib_prefix=$need_lib_prefix
21589
21590 # Do we need a version for libraries?
21591 need_version=$need_version
21592
21593 # Library versioning type.
21594 version_type=$version_type
21595
21596 # Shared library runtime path variable.
21597 runpath_var=$runpath_var
21598
21599 # Shared library path variable.
21600 shlibpath_var=$shlibpath_var
21601
21602 # Is shlibpath searched before the hard-coded library search path?
21603 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21604
21605 # Format of library name prefix.
21606 libname_spec=$lt_libname_spec
21607
21608 # List of archive names. First name is the real one, the rest are links.
21609 # The last name is the one that the linker finds with -lNAME
21610 library_names_spec=$lt_library_names_spec
21611
21612 # The coded name of the library, if different from the real name.
21613 soname_spec=$lt_soname_spec
21614
21615 # Permission mode override for installation of shared libraries.
21616 install_override_mode=$lt_install_override_mode
21617
21618 # Command to use after installation of a shared archive.
21619 postinstall_cmds=$lt_postinstall_cmds
21620
21621 # Command to use after uninstallation of a shared archive.
21622 postuninstall_cmds=$lt_postuninstall_cmds
21623
21624 # Commands used to finish a libtool library installation in a directory.
21625 finish_cmds=$lt_finish_cmds
21626
21627 # As "finish_cmds", except a single script fragment to be evaled but
21628 # not shown.
21629 finish_eval=$lt_finish_eval
21630
21631 # Whether we should hardcode library paths into libraries.
21632 hardcode_into_libs=$hardcode_into_libs
21633
21634 # Compile-time system search path for libraries.
21635 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21636
21637 # Run-time system search path for libraries.
21638 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21639
21640 # Whether dlopen is supported.
21641 dlopen_support=$enable_dlopen
21642
21643 # Whether dlopen of programs is supported.
21644 dlopen_self=$enable_dlopen_self
21645
21646 # Whether dlopen of statically linked programs is supported.
21647 dlopen_self_static=$enable_dlopen_self_static
21648
21649 # Commands to strip libraries.
21650 old_striplib=$lt_old_striplib
21651 striplib=$lt_striplib
21652
21653
21654 # The linker used to build libraries.
21655 LD=$lt_LD
21656
21657 # How to create reloadable object files.
21658 reload_flag=$lt_reload_flag
21659 reload_cmds=$lt_reload_cmds
21660
21661 # Commands used to build an old-style archive.
21662 old_archive_cmds=$lt_old_archive_cmds
21663
21664 # A language specific compiler.
21665 CC=$lt_compiler
21666
21667 # Is the compiler the GNU compiler?
21668 with_gcc=$GCC
21669
21670 # Compiler flag to turn off builtin functions.
21671 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21672
21673 # Additional compiler flags for building library objects.
21674 pic_flag=$lt_lt_prog_compiler_pic
21675
21676 # How to pass a linker flag through the compiler.
21677 wl=$lt_lt_prog_compiler_wl
21678
21679 # Compiler flag to prevent dynamic linking.
21680 link_static_flag=$lt_lt_prog_compiler_static
21681
21682 # Does compiler simultaneously support -c and -o options?
21683 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21684
21685 # Whether or not to add -lc for building shared libraries.
21686 build_libtool_need_lc=$archive_cmds_need_lc
21687
21688 # Whether or not to disallow shared libs when runtime libs are static.
21689 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21690
21691 # Compiler flag to allow reflexive dlopens.
21692 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21693
21694 # Compiler flag to generate shared objects directly from archives.
21695 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21696
21697 # Whether the compiler copes with passing no objects directly.
21698 compiler_needs_object=$lt_compiler_needs_object
21699
21700 # Create an old-style archive from a shared archive.
21701 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21702
21703 # Create a temporary old-style archive to link instead of a shared archive.
21704 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21705
21706 # Commands used to build a shared archive.
21707 archive_cmds=$lt_archive_cmds
21708 archive_expsym_cmds=$lt_archive_expsym_cmds
21709
21710 # Commands used to build a loadable module if different from building
21711 # a shared archive.
21712 module_cmds=$lt_module_cmds
21713 module_expsym_cmds=$lt_module_expsym_cmds
21714
21715 # Whether we are building with GNU ld or not.
21716 with_gnu_ld=$lt_with_gnu_ld
21717
21718 # Flag that allows shared libraries with undefined symbols to be built.
21719 allow_undefined_flag=$lt_allow_undefined_flag
21720
21721 # Flag that enforces no undefined symbols.
21722 no_undefined_flag=$lt_no_undefined_flag
21723
21724 # Flag to hardcode \$libdir into a binary during linking.
21725 # This must work even if \$libdir does not exist
21726 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21727
21728 # Whether we need a single "-rpath" flag with a separated argument.
21729 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21730
21731 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21732 # DIR into the resulting binary.
21733 hardcode_direct=$hardcode_direct
21734
21735 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21736 # DIR into the resulting binary and the resulting library dependency is
21737 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21738 # library is relocated.
21739 hardcode_direct_absolute=$hardcode_direct_absolute
21740
21741 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21742 # into the resulting binary.
21743 hardcode_minus_L=$hardcode_minus_L
21744
21745 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21746 # into the resulting binary.
21747 hardcode_shlibpath_var=$hardcode_shlibpath_var
21748
21749 # Set to "yes" if building a shared library automatically hardcodes DIR
21750 # into the library and all subsequent libraries and executables linked
21751 # against it.
21752 hardcode_automatic=$hardcode_automatic
21753
21754 # Set to yes if linker adds runtime paths of dependent libraries
21755 # to runtime path list.
21756 inherit_rpath=$inherit_rpath
21757
21758 # Whether libtool must link a program against all its dependency libraries.
21759 link_all_deplibs=$link_all_deplibs
21760
21761 # Set to "yes" if exported symbols are required.
21762 always_export_symbols=$always_export_symbols
21763
21764 # The commands to list exported symbols.
21765 export_symbols_cmds=$lt_export_symbols_cmds
21766
21767 # Symbols that should not be listed in the preloaded symbols.
21768 exclude_expsyms=$lt_exclude_expsyms
21769
21770 # Symbols that must always be exported.
21771 include_expsyms=$lt_include_expsyms
21772
21773 # Commands necessary for linking programs (against libraries) with templates.
21774 prelink_cmds=$lt_prelink_cmds
21775
21776 # Commands necessary for finishing linking programs.
21777 postlink_cmds=$lt_postlink_cmds
21778
21779 # Specify filename containing input files.
21780 file_list_spec=$lt_file_list_spec
21781
21782 # How to hardcode a shared library path into an executable.
21783 hardcode_action=$hardcode_action
21784
21785 # ### END LIBTOOL CONFIG
21786
21787 _LT_EOF
21788
21789 case $host_os in
21790 aix3*)
21791 cat <<\_LT_EOF >> "$cfgfile"
21792 # AIX sometimes has problems with the GCC collect2 program. For some
21793 # reason, if we set the COLLECT_NAMES environment variable, the problems
21794 # vanish in a puff of smoke.
21795 if test "X${COLLECT_NAMES+set}" != Xset; then
21796 COLLECT_NAMES=
21797 export COLLECT_NAMES
21798 fi
21799 _LT_EOF
21800 ;;
21801 esac
21802
21803
21804 ltmain="$ac_aux_dir/ltmain.sh"
21805
21806
21807 # We use sed instead of cat because bash on DJGPP gets confused if
21808 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21809 # text mode, it properly converts lines to CR/LF. This bash problem
21810 # is reportedly fixed, but why not run on old versions too?
21811 sed '$q' "$ltmain" >> "$cfgfile" \
21812 || (rm -f "$cfgfile"; exit 1)
21813
21814 if test x"$xsi_shell" = xyes; then
21815 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21816 func_dirname ()\
21817 {\
21818 \ case ${1} in\
21819 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21820 \ * ) func_dirname_result="${3}" ;;\
21821 \ esac\
21822 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21823 && mv -f "$cfgfile.tmp" "$cfgfile" \
21824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21825 test 0 -eq $? || _lt_function_replace_fail=:
21826
21827
21828 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21829 func_basename ()\
21830 {\
21831 \ func_basename_result="${1##*/}"\
21832 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21833 && mv -f "$cfgfile.tmp" "$cfgfile" \
21834 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21835 test 0 -eq $? || _lt_function_replace_fail=:
21836
21837
21838 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21839 func_dirname_and_basename ()\
21840 {\
21841 \ case ${1} in\
21842 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21843 \ * ) func_dirname_result="${3}" ;;\
21844 \ esac\
21845 \ func_basename_result="${1##*/}"\
21846 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21847 && mv -f "$cfgfile.tmp" "$cfgfile" \
21848 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21849 test 0 -eq $? || _lt_function_replace_fail=:
21850
21851
21852 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21853 func_stripname ()\
21854 {\
21855 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21856 \ # positional parameters, so assign one to ordinary parameter first.\
21857 \ func_stripname_result=${3}\
21858 \ func_stripname_result=${func_stripname_result#"${1}"}\
21859 \ func_stripname_result=${func_stripname_result%"${2}"}\
21860 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21861 && mv -f "$cfgfile.tmp" "$cfgfile" \
21862 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21863 test 0 -eq $? || _lt_function_replace_fail=:
21864
21865
21866 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21867 func_split_long_opt ()\
21868 {\
21869 \ func_split_long_opt_name=${1%%=*}\
21870 \ func_split_long_opt_arg=${1#*=}\
21871 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21872 && mv -f "$cfgfile.tmp" "$cfgfile" \
21873 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21874 test 0 -eq $? || _lt_function_replace_fail=:
21875
21876
21877 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21878 func_split_short_opt ()\
21879 {\
21880 \ func_split_short_opt_arg=${1#??}\
21881 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21882 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21883 && mv -f "$cfgfile.tmp" "$cfgfile" \
21884 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21885 test 0 -eq $? || _lt_function_replace_fail=:
21886
21887
21888 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21889 func_lo2o ()\
21890 {\
21891 \ case ${1} in\
21892 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21893 \ *) func_lo2o_result=${1} ;;\
21894 \ esac\
21895 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21896 && mv -f "$cfgfile.tmp" "$cfgfile" \
21897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21898 test 0 -eq $? || _lt_function_replace_fail=:
21899
21900
21901 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21902 func_xform ()\
21903 {\
21904 func_xform_result=${1%.*}.lo\
21905 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21906 && mv -f "$cfgfile.tmp" "$cfgfile" \
21907 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21908 test 0 -eq $? || _lt_function_replace_fail=:
21909
21910
21911 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21912 func_arith ()\
21913 {\
21914 func_arith_result=$(( $* ))\
21915 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21916 && mv -f "$cfgfile.tmp" "$cfgfile" \
21917 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21918 test 0 -eq $? || _lt_function_replace_fail=:
21919
21920
21921 sed -e '/^func_len ()$/,/^} # func_len /c\
21922 func_len ()\
21923 {\
21924 func_len_result=${#1}\
21925 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
21926 && mv -f "$cfgfile.tmp" "$cfgfile" \
21927 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21928 test 0 -eq $? || _lt_function_replace_fail=:
21929
21930 fi
21931
21932 if test x"$lt_shell_append" = xyes; then
21933 sed -e '/^func_append ()$/,/^} # func_append /c\
21934 func_append ()\
21935 {\
21936 eval "${1}+=\\${2}"\
21937 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
21938 && mv -f "$cfgfile.tmp" "$cfgfile" \
21939 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21940 test 0 -eq $? || _lt_function_replace_fail=:
21941
21942
21943 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
21944 func_append_quoted ()\
21945 {\
21946 \ func_quote_for_eval "${2}"\
21947 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
21948 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
21949 && mv -f "$cfgfile.tmp" "$cfgfile" \
21950 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21951 test 0 -eq $? || _lt_function_replace_fail=:
21952
21953
21954 # Save a `func_append' function call where possible by direct use of '+='
21955 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
21956 && mv -f "$cfgfile.tmp" "$cfgfile" \
21957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21958 test 0 -eq $? || _lt_function_replace_fail=:
21959 else
21960 # Save a `func_append' function call even when '+=' is not available
21961 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
21962 && mv -f "$cfgfile.tmp" "$cfgfile" \
21963 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21964 test 0 -eq $? || _lt_function_replace_fail=:
21965 fi
21966
21967 if test x"$_lt_function_replace_fail" = x":"; then
21968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
21969 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
21970 fi
21971
21972
21973 mv -f "$cfgfile" "$ofile" ||
21974 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
21975 chmod +x "$ofile"
21976
21977 ;;
21978
21979 esac
21980 done # for ac_tag
21981
21982
21983 as_fn_exit 0
21984 _ACEOF
21985 ac_clean_files=$ac_clean_files_save
21986
21987 test $ac_write_fail = 0 ||
21988 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21989
21990
21991 # configure is writing to config.log, and then calls config.status.
21992 # config.status does its own redirection, appending to config.log.
21993 # Unfortunately, on DOS this fails, as config.log is still kept open
21994 # by configure, so config.status won't be able to write to it; its
21995 # output is simply discarded. So we exec the FD to /dev/null,
21996 # effectively closing config.log, so it can be properly (re)opened and
21997 # appended to by config.status. When coming back to configure, we
21998 # need to make the FD available again.
21999 if test "$no_create" != yes; then
22000 ac_cs_success=:
22001 ac_config_status_args=
22002 test "$silent" = yes &&
22003 ac_config_status_args="$ac_config_status_args --quiet"
22004 exec 5>/dev/null
22005 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22006 exec 5>>config.log
22007 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22008 # would make configure fail if this is the last instruction.
22009 $ac_cs_success || as_fn_exit 1
22010 fi
22011 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22013 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22014 fi
22015
22016