configure revision 1.1 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libXfont2 2.0.1.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570 as_awk_strverscmp='
571 # Use only awk features that work with 7th edition Unix awk (1978).
572 # My, what an old awk you have, Mr. Solaris!
573 END {
574 while (length(v1) && length(v2)) {
575 # Set d1 to be the next thing to compare from v1, and likewise for d2.
576 # Normally this is a single character, but if v1 and v2 contain digits,
577 # compare them as integers and fractions as strverscmp does.
578 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) {
579 # Split v1 and v2 into their leading digit string components d1 and d2,
580 # and advance v1 and v2 past the leading digit strings.
581 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue
582 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue
583 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1)
584 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1)
585 if (d1 ~ /^0/) {
586 if (d2 ~ /^0/) {
587 # Compare two fractions.
588 while (d1 ~ /^0/ && d2 ~ /^0/) {
589 d1 = substr(d1, 2); len1--
590 d2 = substr(d2, 2); len2--
591 }
592 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) {
593 # The two components differ in length, and the common prefix
594 # contains only leading zeros. Consider the longer to be less.
595 d1 = -len1
596 d2 = -len2
597 } else {
598 # Otherwise, compare as strings.
599 d1 = "x" d1
600 d2 = "x" d2
601 }
602 } else {
603 # A fraction is less than an integer.
604 exit 1
605 }
606 } else {
607 if (d2 ~ /^0/) {
608 # An integer is greater than a fraction.
609 exit 2
610 } else {
611 # Compare two integers.
612 d1 += 0
613 d2 += 0
614 }
615 }
616 } else {
617 # The normal case, without worrying about digits.
618 d1 = substr(v1, 1, 1); v1 = substr(v1, 2)
619 d2 = substr(v2, 1, 1); v2 = substr(v2, 2)
620 }
621 if (d1 < d2) exit 1
622 if (d1 > d2) exit 2
623 }
624 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10),
625 # which mishandles some comparisons of empty strings to integers.
626 if (length(v2)) exit 1
627 if (length(v1)) exit 2
628 }
629 '
630
631 test -n "$DJDIR" || exec 7<&0 </dev/null
632 exec 6>&1
633
634 # Name of the host.
635 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
636 # so uname gets run too.
637 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
638
639 #
640 # Initializations.
641 #
642 ac_default_prefix=/usr/local
643 ac_clean_files=
644 ac_config_libobj_dir=.
645 LIBOBJS=
646 cross_compiling=no
647 subdirs=
648 MFLAGS=
649 MAKEFLAGS=
650
651 # Identity of this package.
652 PACKAGE_NAME='libXfont2'
653 PACKAGE_TARNAME='libXfont2'
654 PACKAGE_VERSION='2.0.1'
655 PACKAGE_STRING='libXfont2 2.0.1'
656 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
657 PACKAGE_URL=''
658
659 ac_unique_file="Makefile.am"
660 # Factoring default headers for most tests.
661 ac_includes_default="\
662 #include <stdio.h>
663 #ifdef HAVE_SYS_TYPES_H
664 # include <sys/types.h>
665 #endif
666 #ifdef HAVE_SYS_STAT_H
667 # include <sys/stat.h>
668 #endif
669 #ifdef STDC_HEADERS
670 # include <stdlib.h>
671 # include <stddef.h>
672 #else
673 # ifdef HAVE_STDLIB_H
674 # include <stdlib.h>
675 # endif
676 #endif
677 #ifdef HAVE_STRING_H
678 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
679 # include <memory.h>
680 # endif
681 # include <string.h>
682 #endif
683 #ifdef HAVE_STRINGS_H
684 # include <strings.h>
685 #endif
686 #ifdef HAVE_INTTYPES_H
687 # include <inttypes.h>
688 #endif
689 #ifdef HAVE_STDINT_H
690 # include <stdint.h>
691 #endif
692 #ifdef HAVE_UNISTD_H
693 # include <unistd.h>
694 #endif"
695
696 ac_subst_vars='am__EXEEXT_FALSE
697 am__EXEEXT_TRUE
698 LTLIBOBJS
699 LIBOBJS
700 OS_CFLAGS
701 XFONT_LIBS
702 XFONT_CFLAGS
703 MATH_LIBS
704 XFONT_FC_FALSE
705 XFONT_FC_TRUE
706 XFONT_FONTFILE_FALSE
707 XFONT_FONTFILE_TRUE
708 XFONT_BITMAP_FALSE
709 XFONT_BITMAP_TRUE
710 XFONT_SNFFORMAT_FALSE
711 XFONT_SNFFORMAT_TRUE
712 XFONT_BDFFORMAT_FALSE
713 XFONT_BDFFORMAT_TRUE
714 XFONT_PCF_OR_BUILTIN_FALSE
715 XFONT_PCF_OR_BUILTIN_TRUE
716 XFONT_PCFFORMAT_FALSE
717 XFONT_PCFFORMAT_TRUE
718 XFONT_BUILTINS_FALSE
719 XFONT_BUILTINS_TRUE
720 Z_LIBS
721 X_BZIP2_FONT_COMPRESSION_FALSE
722 X_BZIP2_FONT_COMPRESSION_TRUE
723 X_GZIP_FONT_COMPRESSION
724 FREETYPE_REQUIRES
725 ft_config
726 FREETYPE_LIBS
727 FREETYPE_CFLAGS
728 XFONT_FREETYPE_FALSE
729 XFONT_FREETYPE_TRUE
730 GCC_CFLAGS
731 HAVE_STYLESHEETS_FALSE
732 HAVE_STYLESHEETS_TRUE
733 XSL_STYLESHEET
734 STYLESHEET_SRCDIR
735 XORG_SGML_PATH
736 HAVE_FOP_FALSE
737 HAVE_FOP_TRUE
738 FOP
739 HAVE_XMLTO_FALSE
740 HAVE_XMLTO_TRUE
741 HAVE_XMLTO_TEXT_FALSE
742 HAVE_XMLTO_TEXT_TRUE
743 XMLTO
744 ENABLE_DEVEL_DOCS_FALSE
745 ENABLE_DEVEL_DOCS_TRUE
746 MAN_SUBSTS
747 XORG_MAN_PAGE
748 ADMIN_MAN_DIR
749 DRIVER_MAN_DIR
750 MISC_MAN_DIR
751 FILE_MAN_DIR
752 LIB_MAN_DIR
753 APP_MAN_DIR
754 ADMIN_MAN_SUFFIX
755 DRIVER_MAN_SUFFIX
756 MISC_MAN_SUFFIX
757 FILE_MAN_SUFFIX
758 LIB_MAN_SUFFIX
759 APP_MAN_SUFFIX
760 INSTALL_CMD
761 PKG_CONFIG_LIBDIR
762 PKG_CONFIG_PATH
763 PKG_CONFIG
764 CHANGELOG_CMD
765 STRICT_CFLAGS
766 CWARNFLAGS
767 BASE_CFLAGS
768 OTOOL64
769 OTOOL
770 LIPO
771 NMEDIT
772 DSYMUTIL
773 MANIFEST_TOOL
774 RANLIB
775 ac_ct_AR
776 AR
777 DLLTOOL
778 OBJDUMP
779 LN_S
780 NM
781 ac_ct_DUMPBIN
782 DUMPBIN
783 LD
784 FGREP
785 SED
786 host_os
787 host_vendor
788 host_cpu
789 host
790 build_os
791 build_vendor
792 build_cpu
793 build
794 LIBTOOL
795 EGREP
796 GREP
797 CPP
798 am__fastdepCC_FALSE
799 am__fastdepCC_TRUE
800 CCDEPMODE
801 am__nodep
802 AMDEPBACKSLASH
803 AMDEP_FALSE
804 AMDEP_TRUE
805 am__quote
806 am__include
807 DEPDIR
808 OBJEXT
809 EXEEXT
810 ac_ct_CC
811 CPPFLAGS
812 LDFLAGS
813 CFLAGS
814 CC
815 AM_BACKSLASH
816 AM_DEFAULT_VERBOSITY
817 AM_DEFAULT_V
818 AM_V
819 am__untar
820 am__tar
821 AMTAR
822 am__leading_dot
823 SET_MAKE
824 AWK
825 mkdir_p
826 MKDIR_P
827 INSTALL_STRIP_PROGRAM
828 STRIP
829 install_sh
830 MAKEINFO
831 AUTOHEADER
832 AUTOMAKE
833 AUTOCONF
834 ACLOCAL
835 VERSION
836 PACKAGE
837 CYGPATH_W
838 am__isrc
839 INSTALL_DATA
840 INSTALL_SCRIPT
841 INSTALL_PROGRAM
842 target_alias
843 host_alias
844 build_alias
845 LIBS
846 ECHO_T
847 ECHO_N
848 ECHO_C
849 DEFS
850 mandir
851 localedir
852 libdir
853 psdir
854 pdfdir
855 dvidir
856 htmldir
857 infodir
858 docdir
859 oldincludedir
860 includedir
861 runstatedir
862 localstatedir
863 sharedstatedir
864 sysconfdir
865 datadir
866 datarootdir
867 libexecdir
868 sbindir
869 bindir
870 program_transform_name
871 prefix
872 exec_prefix
873 PACKAGE_URL
874 PACKAGE_BUGREPORT
875 PACKAGE_STRING
876 PACKAGE_VERSION
877 PACKAGE_TARNAME
878 PACKAGE_NAME
879 PATH_SEPARATOR
880 SHELL'
881 ac_subst_files=''
882 ac_user_opts='
883 enable_option_checking
884 enable_silent_rules
885 enable_dependency_tracking
886 enable_shared
887 enable_static
888 with_pic
889 enable_fast_install
890 with_gnu_ld
891 with_sysroot
892 enable_libtool_lock
893 enable_selective_werror
894 enable_strict_compilation
895 enable_devel_docs
896 with_xmlto
897 with_fop
898 enable_freetype
899 with_freetype_config
900 with_bzip2
901 enable_builtins
902 enable_pcfformat
903 enable_bdfformat
904 enable_snfformat
905 enable_fc
906 enable_unix_transport
907 enable_tcp_transport
908 enable_ipv6
909 enable_local_transport
910 '
911 ac_precious_vars='build_alias
912 host_alias
913 target_alias
914 CC
915 CFLAGS
916 LDFLAGS
917 LIBS
918 CPPFLAGS
919 CPP
920 PKG_CONFIG
921 PKG_CONFIG_PATH
922 PKG_CONFIG_LIBDIR
923 XMLTO
924 FOP
925 FREETYPE_CFLAGS
926 FREETYPE_LIBS
927 XFONT_CFLAGS
928 XFONT_LIBS'
929
930
931 # Initialize some variables set by options.
932 ac_init_help=
933 ac_init_version=false
934 ac_unrecognized_opts=
935 ac_unrecognized_sep=
936 # The variables have the same names as the options, with
937 # dashes changed to underlines.
938 cache_file=/dev/null
939 exec_prefix=NONE
940 no_create=
941 no_recursion=
942 prefix=NONE
943 program_prefix=NONE
944 program_suffix=NONE
945 program_transform_name=s,x,x,
946 silent=
947 site=
948 srcdir=
949 verbose=
950 x_includes=NONE
951 x_libraries=NONE
952
953 # Installation directory options.
954 # These are left unexpanded so users can "make install exec_prefix=/foo"
955 # and all the variables that are supposed to be based on exec_prefix
956 # by default will actually change.
957 # Use braces instead of parens because sh, perl, etc. also accept them.
958 # (The list follows the same order as the GNU Coding Standards.)
959 bindir='${exec_prefix}/bin'
960 sbindir='${exec_prefix}/sbin'
961 libexecdir='${exec_prefix}/libexec'
962 datarootdir='${prefix}/share'
963 datadir='${datarootdir}'
964 sysconfdir='${prefix}/etc'
965 sharedstatedir='${prefix}/com'
966 localstatedir='${prefix}/var'
967 runstatedir='${localstatedir}/run'
968 includedir='${prefix}/include'
969 oldincludedir='/usr/include'
970 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
971 infodir='${datarootdir}/info'
972 htmldir='${docdir}'
973 dvidir='${docdir}'
974 pdfdir='${docdir}'
975 psdir='${docdir}'
976 libdir='${exec_prefix}/lib'
977 localedir='${datarootdir}/locale'
978 mandir='${datarootdir}/man'
979
980 ac_prev=
981 ac_dashdash=
982 for ac_option
983 do
984 # If the previous option needs an argument, assign it.
985 if test -n "$ac_prev"; then
986 eval $ac_prev=\$ac_option
987 ac_prev=
988 continue
989 fi
990
991 case $ac_option in
992 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 *=) ac_optarg= ;;
994 *) ac_optarg=yes ;;
995 esac
996
997 # Accept the important Cygnus configure options, so we can diagnose typos.
998
999 case $ac_dashdash$ac_option in
1000 --)
1001 ac_dashdash=yes ;;
1002
1003 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1004 ac_prev=bindir ;;
1005 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1006 bindir=$ac_optarg ;;
1007
1008 -build | --build | --buil | --bui | --bu)
1009 ac_prev=build_alias ;;
1010 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1011 build_alias=$ac_optarg ;;
1012
1013 -cache-file | --cache-file | --cache-fil | --cache-fi \
1014 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1015 ac_prev=cache_file ;;
1016 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1017 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1018 cache_file=$ac_optarg ;;
1019
1020 --config-cache | -C)
1021 cache_file=config.cache ;;
1022
1023 -datadir | --datadir | --datadi | --datad)
1024 ac_prev=datadir ;;
1025 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1026 datadir=$ac_optarg ;;
1027
1028 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1029 | --dataroo | --dataro | --datar)
1030 ac_prev=datarootdir ;;
1031 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1032 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1033 datarootdir=$ac_optarg ;;
1034
1035 -disable-* | --disable-*)
1036 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1039 as_fn_error $? "invalid feature name: $ac_useropt"
1040 ac_useropt_orig=$ac_useropt
1041 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1043 *"
1044 "enable_$ac_useropt"
1045 "*) ;;
1046 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1047 ac_unrecognized_sep=', ';;
1048 esac
1049 eval enable_$ac_useropt=no ;;
1050
1051 -docdir | --docdir | --docdi | --doc | --do)
1052 ac_prev=docdir ;;
1053 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1054 docdir=$ac_optarg ;;
1055
1056 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1057 ac_prev=dvidir ;;
1058 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1059 dvidir=$ac_optarg ;;
1060
1061 -enable-* | --enable-*)
1062 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1065 as_fn_error $? "invalid feature name: $ac_useropt"
1066 ac_useropt_orig=$ac_useropt
1067 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1068 case $ac_user_opts in
1069 *"
1070 "enable_$ac_useropt"
1071 "*) ;;
1072 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1073 ac_unrecognized_sep=', ';;
1074 esac
1075 eval enable_$ac_useropt=\$ac_optarg ;;
1076
1077 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1078 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1079 | --exec | --exe | --ex)
1080 ac_prev=exec_prefix ;;
1081 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1082 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1083 | --exec=* | --exe=* | --ex=*)
1084 exec_prefix=$ac_optarg ;;
1085
1086 -gas | --gas | --ga | --g)
1087 # Obsolete; use --with-gas.
1088 with_gas=yes ;;
1089
1090 -help | --help | --hel | --he | -h)
1091 ac_init_help=long ;;
1092 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1093 ac_init_help=recursive ;;
1094 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1095 ac_init_help=short ;;
1096
1097 -host | --host | --hos | --ho)
1098 ac_prev=host_alias ;;
1099 -host=* | --host=* | --hos=* | --ho=*)
1100 host_alias=$ac_optarg ;;
1101
1102 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1103 ac_prev=htmldir ;;
1104 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1105 | --ht=*)
1106 htmldir=$ac_optarg ;;
1107
1108 -includedir | --includedir | --includedi | --included | --include \
1109 | --includ | --inclu | --incl | --inc)
1110 ac_prev=includedir ;;
1111 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1112 | --includ=* | --inclu=* | --incl=* | --inc=*)
1113 includedir=$ac_optarg ;;
1114
1115 -infodir | --infodir | --infodi | --infod | --info | --inf)
1116 ac_prev=infodir ;;
1117 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1118 infodir=$ac_optarg ;;
1119
1120 -libdir | --libdir | --libdi | --libd)
1121 ac_prev=libdir ;;
1122 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1123 libdir=$ac_optarg ;;
1124
1125 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1126 | --libexe | --libex | --libe)
1127 ac_prev=libexecdir ;;
1128 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1129 | --libexe=* | --libex=* | --libe=*)
1130 libexecdir=$ac_optarg ;;
1131
1132 -localedir | --localedir | --localedi | --localed | --locale)
1133 ac_prev=localedir ;;
1134 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1135 localedir=$ac_optarg ;;
1136
1137 -localstatedir | --localstatedir | --localstatedi | --localstated \
1138 | --localstate | --localstat | --localsta | --localst | --locals)
1139 ac_prev=localstatedir ;;
1140 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1141 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1142 localstatedir=$ac_optarg ;;
1143
1144 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1145 ac_prev=mandir ;;
1146 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1147 mandir=$ac_optarg ;;
1148
1149 -nfp | --nfp | --nf)
1150 # Obsolete; use --without-fp.
1151 with_fp=no ;;
1152
1153 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1154 | --no-cr | --no-c | -n)
1155 no_create=yes ;;
1156
1157 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1158 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1159 no_recursion=yes ;;
1160
1161 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1162 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1163 | --oldin | --oldi | --old | --ol | --o)
1164 ac_prev=oldincludedir ;;
1165 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1166 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1167 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1168 oldincludedir=$ac_optarg ;;
1169
1170 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1171 ac_prev=prefix ;;
1172 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1173 prefix=$ac_optarg ;;
1174
1175 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1176 | --program-pre | --program-pr | --program-p)
1177 ac_prev=program_prefix ;;
1178 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1179 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1180 program_prefix=$ac_optarg ;;
1181
1182 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1183 | --program-suf | --program-su | --program-s)
1184 ac_prev=program_suffix ;;
1185 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1186 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1187 program_suffix=$ac_optarg ;;
1188
1189 -program-transform-name | --program-transform-name \
1190 | --program-transform-nam | --program-transform-na \
1191 | --program-transform-n | --program-transform- \
1192 | --program-transform | --program-transfor \
1193 | --program-transfo | --program-transf \
1194 | --program-trans | --program-tran \
1195 | --progr-tra | --program-tr | --program-t)
1196 ac_prev=program_transform_name ;;
1197 -program-transform-name=* | --program-transform-name=* \
1198 | --program-transform-nam=* | --program-transform-na=* \
1199 | --program-transform-n=* | --program-transform-=* \
1200 | --program-transform=* | --program-transfor=* \
1201 | --program-transfo=* | --program-transf=* \
1202 | --program-trans=* | --program-tran=* \
1203 | --progr-tra=* | --program-tr=* | --program-t=*)
1204 program_transform_name=$ac_optarg ;;
1205
1206 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1207 ac_prev=pdfdir ;;
1208 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1209 pdfdir=$ac_optarg ;;
1210
1211 -psdir | --psdir | --psdi | --psd | --ps)
1212 ac_prev=psdir ;;
1213 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1214 psdir=$ac_optarg ;;
1215
1216 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1217 | -silent | --silent | --silen | --sile | --sil)
1218 silent=yes ;;
1219
1220 -runstatedir | --runstatedir | --runstatedi | --runstated \
1221 | --runstate | --runstat | --runsta | --runst | --runs \
1222 | --run | --ru | --r)
1223 ac_prev=runstatedir ;;
1224 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1225 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1226 | --run=* | --ru=* | --r=*)
1227 runstatedir=$ac_optarg ;;
1228
1229 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1230 ac_prev=sbindir ;;
1231 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1232 | --sbi=* | --sb=*)
1233 sbindir=$ac_optarg ;;
1234
1235 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1236 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1237 | --sharedst | --shareds | --shared | --share | --shar \
1238 | --sha | --sh)
1239 ac_prev=sharedstatedir ;;
1240 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1241 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1242 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1243 | --sha=* | --sh=*)
1244 sharedstatedir=$ac_optarg ;;
1245
1246 -site | --site | --sit)
1247 ac_prev=site ;;
1248 -site=* | --site=* | --sit=*)
1249 site=$ac_optarg ;;
1250
1251 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1252 ac_prev=srcdir ;;
1253 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1254 srcdir=$ac_optarg ;;
1255
1256 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1257 | --syscon | --sysco | --sysc | --sys | --sy)
1258 ac_prev=sysconfdir ;;
1259 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1260 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1261 sysconfdir=$ac_optarg ;;
1262
1263 -target | --target | --targe | --targ | --tar | --ta | --t)
1264 ac_prev=target_alias ;;
1265 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1266 target_alias=$ac_optarg ;;
1267
1268 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1269 verbose=yes ;;
1270
1271 -version | --version | --versio | --versi | --vers | -V)
1272 ac_init_version=: ;;
1273
1274 -with-* | --with-*)
1275 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1276 # Reject names that are not valid shell variable names.
1277 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1278 as_fn_error $? "invalid package name: $ac_useropt"
1279 ac_useropt_orig=$ac_useropt
1280 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1281 case $ac_user_opts in
1282 *"
1283 "with_$ac_useropt"
1284 "*) ;;
1285 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1286 ac_unrecognized_sep=', ';;
1287 esac
1288 eval with_$ac_useropt=\$ac_optarg ;;
1289
1290 -without-* | --without-*)
1291 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1292 # Reject names that are not valid shell variable names.
1293 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1294 as_fn_error $? "invalid package name: $ac_useropt"
1295 ac_useropt_orig=$ac_useropt
1296 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1297 case $ac_user_opts in
1298 *"
1299 "with_$ac_useropt"
1300 "*) ;;
1301 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1302 ac_unrecognized_sep=', ';;
1303 esac
1304 eval with_$ac_useropt=no ;;
1305
1306 --x)
1307 # Obsolete; use --with-x.
1308 with_x=yes ;;
1309
1310 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1311 | --x-incl | --x-inc | --x-in | --x-i)
1312 ac_prev=x_includes ;;
1313 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1314 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1315 x_includes=$ac_optarg ;;
1316
1317 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1318 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1319 ac_prev=x_libraries ;;
1320 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1321 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1322 x_libraries=$ac_optarg ;;
1323
1324 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1325 Try \`$0 --help' for more information"
1326 ;;
1327
1328 *=*)
1329 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1330 # Reject names that are not valid shell variable names.
1331 case $ac_envvar in #(
1332 '' | [0-9]* | *[!_$as_cr_alnum]* )
1333 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1334 esac
1335 eval $ac_envvar=\$ac_optarg
1336 export $ac_envvar ;;
1337
1338 *)
1339 # FIXME: should be removed in autoconf 3.0.
1340 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1341 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1342 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1343 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1344 ;;
1345
1346 esac
1347 done
1348
1349 if test -n "$ac_prev"; then
1350 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1351 as_fn_error $? "missing argument to $ac_option"
1352 fi
1353
1354 if test -n "$ac_unrecognized_opts"; then
1355 case $enable_option_checking in
1356 no) ;;
1357 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir runstatedir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1381 done
1382
1383 # There might be people who depend on the old broken behavior: `$host'
1384 # used to hold the argument of --host etc.
1385 # FIXME: To remove some day.
1386 build=$build_alias
1387 host=$host_alias
1388 target=$target_alias
1389
1390 # FIXME: To remove some day.
1391 if test "x$host_alias" != x; then
1392 if test "x$build_alias" = x; then
1393 cross_compiling=maybe
1394 elif test "x$build_alias" != "x$host_alias"; then
1395 cross_compiling=yes
1396 fi
1397 fi
1398
1399 ac_tool_prefix=
1400 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1401
1402 test "$silent" = yes && exec 6>/dev/null
1403
1404
1405 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1406 ac_ls_di=`ls -di .` &&
1407 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1408 as_fn_error $? "working directory cannot be determined"
1409 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1410 as_fn_error $? "pwd does not report name of working directory"
1411
1412
1413 # Find the source files, if location was not specified.
1414 if test -z "$srcdir"; then
1415 ac_srcdir_defaulted=yes
1416 # Try the directory containing this script, then the parent directory.
1417 ac_confdir=`$as_dirname -- "$as_myself" ||
1418 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1419 X"$as_myself" : 'X\(//\)[^/]' \| \
1420 X"$as_myself" : 'X\(//\)$' \| \
1421 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1422 $as_echo X"$as_myself" |
1423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1424 s//\1/
1425 q
1426 }
1427 /^X\(\/\/\)[^/].*/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)$/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\).*/{
1436 s//\1/
1437 q
1438 }
1439 s/.*/./; q'`
1440 srcdir=$ac_confdir
1441 if test ! -r "$srcdir/$ac_unique_file"; then
1442 srcdir=..
1443 fi
1444 else
1445 ac_srcdir_defaulted=no
1446 fi
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1449 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1450 fi
1451 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1452 ac_abs_confdir=`(
1453 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1454 pwd)`
1455 # When building in place, set srcdir=.
1456 if test "$ac_abs_confdir" = "$ac_pwd"; then
1457 srcdir=.
1458 fi
1459 # Remove unnecessary trailing slashes from srcdir.
1460 # Double slashes in file names in object file debugging info
1461 # mess up M-x gdb in Emacs.
1462 case $srcdir in
1463 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1464 esac
1465 for ac_var in $ac_precious_vars; do
1466 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1467 eval ac_env_${ac_var}_value=\$${ac_var}
1468 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1469 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1470 done
1471
1472 #
1473 # Report the --help message.
1474 #
1475 if test "$ac_init_help" = "long"; then
1476 # Omit some internal or obsolete options to make the list less imposing.
1477 # This message is too long to be a string in the A/UX 3.1 sh.
1478 cat <<_ACEOF
1479 \`configure' configures libXfont2 2.0.1 to adapt to many kinds of systems.
1480
1481 Usage: $0 [OPTION]... [VAR=VALUE]...
1482
1483 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1484 VAR=VALUE. See below for descriptions of some of the useful variables.
1485
1486 Defaults for the options are specified in brackets.
1487
1488 Configuration:
1489 -h, --help display this help and exit
1490 --help=short display options specific to this package
1491 --help=recursive display the short help of all the included packages
1492 -V, --version display version information and exit
1493 -q, --quiet, --silent do not print \`checking ...' messages
1494 --cache-file=FILE cache test results in FILE [disabled]
1495 -C, --config-cache alias for \`--cache-file=config.cache'
1496 -n, --no-create do not create output files
1497 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1498
1499 Installation directories:
1500 --prefix=PREFIX install architecture-independent files in PREFIX
1501 [$ac_default_prefix]
1502 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1503 [PREFIX]
1504
1505 By default, \`make install' will install all the files in
1506 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1507 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1508 for instance \`--prefix=\$HOME'.
1509
1510 For better control, use the options below.
1511
1512 Fine tuning of the installation directories:
1513 --bindir=DIR user executables [EPREFIX/bin]
1514 --sbindir=DIR system admin executables [EPREFIX/sbin]
1515 --libexecdir=DIR program executables [EPREFIX/libexec]
1516 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1517 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1518 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1519 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1520 --libdir=DIR object code libraries [EPREFIX/lib]
1521 --includedir=DIR C header files [PREFIX/include]
1522 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1523 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1524 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1525 --infodir=DIR info documentation [DATAROOTDIR/info]
1526 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1527 --mandir=DIR man documentation [DATAROOTDIR/man]
1528 --docdir=DIR documentation root [DATAROOTDIR/doc/libXfont2]
1529 --htmldir=DIR html documentation [DOCDIR]
1530 --dvidir=DIR dvi documentation [DOCDIR]
1531 --pdfdir=DIR pdf documentation [DOCDIR]
1532 --psdir=DIR ps documentation [DOCDIR]
1533 _ACEOF
1534
1535 cat <<\_ACEOF
1536
1537 Program names:
1538 --program-prefix=PREFIX prepend PREFIX to installed program names
1539 --program-suffix=SUFFIX append SUFFIX to installed program names
1540 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1541
1542 System types:
1543 --build=BUILD configure for building on BUILD [guessed]
1544 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1545 _ACEOF
1546 fi
1547
1548 if test -n "$ac_init_help"; then
1549 case $ac_init_help in
1550 short | recursive ) echo "Configuration of libXfont2 2.0.1:";;
1551 esac
1552 cat <<\_ACEOF
1553
1554 Optional Features:
1555 --disable-option-checking ignore unrecognized --enable/--with options
1556 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1557 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1558 --enable-silent-rules less verbose build output (undo: "make V=1")
1559 --disable-silent-rules verbose build output (undo: "make V=0")
1560 --enable-dependency-tracking
1561 do not reject slow dependency extractors
1562 --disable-dependency-tracking
1563 speeds up one-time build
1564 --enable-shared[=PKGS] build shared libraries [default=yes]
1565 --enable-static[=PKGS] build static libraries [default=yes]
1566 --enable-fast-install[=PKGS]
1567 optimize for fast installation [default=yes]
1568 --disable-libtool-lock avoid locking (might break parallel builds)
1569 --disable-selective-werror
1570 Turn off selective compiler errors. (default:
1571 enabled)
1572 --enable-strict-compilation
1573 Enable all warnings from compiler and make them
1574 errors (default: disabled)
1575 --enable-devel-docs Enable building the developer documentation
1576 (default: yes)
1577 --disable-freetype Build freetype backend (default: enabled)
1578 --disable-builtins Support builtin fonts (default: enabled)
1579 --disable-pcfformat Support PCF format bitmap fonts (default: enabled)
1580 --disable-bdfformat Support BDF format bitmap fonts (default: enabled)
1581 --enable-snfformat Support SNF format bitmap fonts (default: disabled)
1582 --disable-fc Support connections to xfs servers (default:
1583 enabled)
1584 --enable-unix-transport Enable UNIX domain socket transport
1585 --enable-tcp-transport Enable TCP socket transport
1586 --enable-ipv6 Enable IPv6 support
1587 --enable-local-transport
1588 Enable os-specific local transport
1589
1590 Optional Packages:
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1594 both]
1595 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1596 --with-sysroot=DIR Search for dependent libraries within DIR
1597 (or the compiler's sysroot if not specified).
1598 --with-xmlto Use xmlto to regenerate documentation (default:
1599 auto)
1600 --with-fop Use fop to regenerate documentation (default: auto)
1601 --with-freetype-config=PROG
1602 Use FreeType configuration program PROG
1603 --with-bzip2 Use libbz2 to support bzip2 compressed bitmap fonts
1604 (default: no)
1605
1606 Some influential environment variables:
1607 CC C compiler command
1608 CFLAGS C compiler flags
1609 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1610 nonstandard directory <lib dir>
1611 LIBS libraries to pass to the linker, e.g. -l<library>
1612 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1613 you have headers in a nonstandard directory <include dir>
1614 CPP C preprocessor
1615 PKG_CONFIG path to pkg-config utility
1616 PKG_CONFIG_PATH
1617 directories to add to pkg-config's search path
1618 PKG_CONFIG_LIBDIR
1619 path overriding pkg-config's built-in search path
1620 XMLTO Path to xmlto command
1621 FOP Path to fop command
1622 FREETYPE_CFLAGS
1623 C compiler flags for FREETYPE, overriding pkg-config
1624 FREETYPE_LIBS
1625 linker flags for FREETYPE, overriding pkg-config
1626 XFONT_CFLAGS
1627 C compiler flags for XFONT, overriding pkg-config
1628 XFONT_LIBS linker flags for XFONT, overriding pkg-config
1629
1630 Use these variables to override the choices made by `configure' or to help
1631 it to find libraries and programs with nonstandard names/locations.
1632
1633 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1634 _ACEOF
1635 ac_status=$?
1636 fi
1637
1638 if test "$ac_init_help" = "recursive"; then
1639 # If there are subdirs, report their specific --help.
1640 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1641 test -d "$ac_dir" ||
1642 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1643 continue
1644 ac_builddir=.
1645
1646 case "$ac_dir" in
1647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1648 *)
1649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1650 # A ".." for each directory in $ac_dir_suffix.
1651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1652 case $ac_top_builddir_sub in
1653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1655 esac ;;
1656 esac
1657 ac_abs_top_builddir=$ac_pwd
1658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1659 # for backward compatibility:
1660 ac_top_builddir=$ac_top_build_prefix
1661
1662 case $srcdir in
1663 .) # We are building in place.
1664 ac_srcdir=.
1665 ac_top_srcdir=$ac_top_builddir_sub
1666 ac_abs_top_srcdir=$ac_pwd ;;
1667 [\\/]* | ?:[\\/]* ) # Absolute name.
1668 ac_srcdir=$srcdir$ac_dir_suffix;
1669 ac_top_srcdir=$srcdir
1670 ac_abs_top_srcdir=$srcdir ;;
1671 *) # Relative name.
1672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1673 ac_top_srcdir=$ac_top_build_prefix$srcdir
1674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1675 esac
1676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1677
1678 cd "$ac_dir" || { ac_status=$?; continue; }
1679 # Check for guested configure.
1680 if test -f "$ac_srcdir/configure.gnu"; then
1681 echo &&
1682 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1683 elif test -f "$ac_srcdir/configure"; then
1684 echo &&
1685 $SHELL "$ac_srcdir/configure" --help=recursive
1686 else
1687 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1688 fi || ac_status=$?
1689 cd "$ac_pwd" || { ac_status=$?; break; }
1690 done
1691 fi
1692
1693 test -n "$ac_init_help" && exit $ac_status
1694 if $ac_init_version; then
1695 cat <<\_ACEOF
1696 libXfont2 configure 2.0.1
1697 generated by GNU Autoconf 2.69
1698
1699 Copyright (C) 2012 Free Software Foundation, Inc.
1700 This configure script is free software; the Free Software Foundation
1701 gives unlimited permission to copy, distribute and modify it.
1702 _ACEOF
1703 exit
1704 fi
1705
1706 ## ------------------------ ##
1707 ## Autoconf initialization. ##
1708 ## ------------------------ ##
1709
1710 # ac_fn_c_try_compile LINENO
1711 # --------------------------
1712 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1713 ac_fn_c_try_compile ()
1714 {
1715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1716 rm -f conftest.$ac_objext
1717 if { { ac_try="$ac_compile"
1718 case "(($ac_try" in
1719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1720 *) ac_try_echo=$ac_try;;
1721 esac
1722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1723 $as_echo "$ac_try_echo"; } >&5
1724 (eval "$ac_compile") 2>conftest.err
1725 ac_status=$?
1726 if test -s conftest.err; then
1727 grep -v '^ *+' conftest.err >conftest.er1
1728 cat conftest.er1 >&5
1729 mv -f conftest.er1 conftest.err
1730 fi
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && {
1733 test -z "$ac_c_werror_flag" ||
1734 test ! -s conftest.err
1735 } && test -s conftest.$ac_objext; then :
1736 ac_retval=0
1737 else
1738 $as_echo "$as_me: failed program was:" >&5
1739 sed 's/^/| /' conftest.$ac_ext >&5
1740
1741 ac_retval=1
1742 fi
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1745
1746 } # ac_fn_c_try_compile
1747
1748 # ac_fn_c_try_cpp LINENO
1749 # ----------------------
1750 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1751 ac_fn_c_try_cpp ()
1752 {
1753 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1754 if { { ac_try="$ac_cpp conftest.$ac_ext"
1755 case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758 esac
1759 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760 $as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } > conftest.i && {
1770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 }; then :
1773 ac_retval=0
1774 else
1775 $as_echo "$as_me: failed program was:" >&5
1776 sed 's/^/| /' conftest.$ac_ext >&5
1777
1778 ac_retval=1
1779 fi
1780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1781 as_fn_set_status $ac_retval
1782
1783 } # ac_fn_c_try_cpp
1784
1785 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1786 # -------------------------------------------------------
1787 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1788 # the include files in INCLUDES and setting the cache variable VAR
1789 # accordingly.
1790 ac_fn_c_check_header_mongrel ()
1791 {
1792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1793 if eval \${$3+:} false; then :
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1798 fi
1799 eval ac_res=\$$3
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1801 $as_echo "$ac_res" >&6; }
1802 else
1803 # Is the header compilable?
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1805 $as_echo_n "checking $2 usability... " >&6; }
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1808 $4
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 ac_header_compiler=yes
1813 else
1814 ac_header_compiler=no
1815 fi
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1818 $as_echo "$ac_header_compiler" >&6; }
1819
1820 # Is the header present?
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1822 $as_echo_n "checking $2 presence... " >&6; }
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 #include <$2>
1826 _ACEOF
1827 if ac_fn_c_try_cpp "$LINENO"; then :
1828 ac_header_preproc=yes
1829 else
1830 ac_header_preproc=no
1831 fi
1832 rm -f conftest.err conftest.i conftest.$ac_ext
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1834 $as_echo "$ac_header_preproc" >&6; }
1835
1836 # So? What about this header?
1837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1838 yes:no: )
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1840 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1842 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1843 ;;
1844 no:yes:* )
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1846 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1848 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1850 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1852 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1854 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1855 ( $as_echo "## ---------------------------------------------------------------------- ##
1856 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1857 ## ---------------------------------------------------------------------- ##"
1858 ) | sed "s/^/$as_me: WARNING: /" >&2
1859 ;;
1860 esac
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1862 $as_echo_n "checking for $2... " >&6; }
1863 if eval \${$3+:} false; then :
1864 $as_echo_n "(cached) " >&6
1865 else
1866 eval "$3=\$ac_header_compiler"
1867 fi
1868 eval ac_res=\$$3
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1870 $as_echo "$ac_res" >&6; }
1871 fi
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_header_mongrel
1875
1876 # ac_fn_c_try_run LINENO
1877 # ----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1879 # that executables *can* be run.
1880 ac_fn_c_try_run ()
1881 {
1882 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1883 if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>&5
1891 ac_status=$?
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1894 { { case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897 esac
1898 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899 $as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_try") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; }; }; then :
1904 ac_retval=0
1905 else
1906 $as_echo "$as_me: program exited with status $ac_status" >&5
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=$ac_status
1911 fi
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916 } # ac_fn_c_try_run
1917
1918 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1919 # -------------------------------------------------------
1920 # Tests whether HEADER exists and can be compiled using the include files in
1921 # INCLUDES, setting the cache variable VAR accordingly.
1922 ac_fn_c_check_header_compile ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1926 $as_echo_n "checking for $2... " >&6; }
1927 if eval \${$3+:} false; then :
1928 $as_echo_n "(cached) " >&6
1929 else
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931 /* end confdefs.h. */
1932 $4
1933 #include <$2>
1934 _ACEOF
1935 if ac_fn_c_try_compile "$LINENO"; then :
1936 eval "$3=yes"
1937 else
1938 eval "$3=no"
1939 fi
1940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941 fi
1942 eval ac_res=\$$3
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1944 $as_echo "$ac_res" >&6; }
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946
1947 } # ac_fn_c_check_header_compile
1948
1949 # ac_fn_c_try_link LINENO
1950 # -----------------------
1951 # Try to link conftest.$ac_ext, and return whether this succeeded.
1952 ac_fn_c_try_link ()
1953 {
1954 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1955 rm -f conftest.$ac_objext conftest$ac_exeext
1956 if { { ac_try="$ac_link"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_link") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1969 fi
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } && {
1972 test -z "$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 } && test -s conftest$ac_exeext && {
1975 test "$cross_compiling" = yes ||
1976 test -x conftest$ac_exeext
1977 }; then :
1978 ac_retval=0
1979 else
1980 $as_echo "$as_me: failed program was:" >&5
1981 sed 's/^/| /' conftest.$ac_ext >&5
1982
1983 ac_retval=1
1984 fi
1985 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1986 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1987 # interfere with the next link command; also delete a directory that is
1988 # left behind by Apple's compiler. We do this before executing the actions.
1989 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1990 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1991 as_fn_set_status $ac_retval
1992
1993 } # ac_fn_c_try_link
1994
1995 # ac_fn_c_check_func LINENO FUNC VAR
1996 # ----------------------------------
1997 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1998 ac_fn_c_check_func ()
1999 {
2000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2005 else
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2010 #define $2 innocuous_$2
2011
2012 /* System header to define __stub macros and hopefully few prototypes,
2013 which can conflict with char $2 (); below.
2014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2015 <limits.h> exists even on freestanding compilers. */
2016
2017 #ifdef __STDC__
2018 # include <limits.h>
2019 #else
2020 # include <assert.h>
2021 #endif
2022
2023 #undef $2
2024
2025 /* Override any GCC internal prototype to avoid an error.
2026 Use char because int might match the return type of a GCC
2027 builtin and then its argument prototype would still apply. */
2028 #ifdef __cplusplus
2029 extern "C"
2030 #endif
2031 char $2 ();
2032 /* The GNU C library defines this for functions which it implements
2033 to always fail with ENOSYS. Some functions are actually named
2034 something starting with __ and the normal name is an alias. */
2035 #if defined __stub_$2 || defined __stub___$2
2036 choke me
2037 #endif
2038
2039 int
2040 main ()
2041 {
2042 return $2 ();
2043 ;
2044 return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_link "$LINENO"; then :
2048 eval "$3=yes"
2049 else
2050 eval "$3=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext \
2053 conftest$ac_exeext conftest.$ac_ext
2054 fi
2055 eval ac_res=\$$3
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2057 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2059
2060 } # ac_fn_c_check_func
2061
2062 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2063 # ---------------------------------------------
2064 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2065 # accordingly.
2066 ac_fn_c_check_decl ()
2067 {
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 as_decl_name=`echo $2|sed 's/ *(.*//'`
2070 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2072 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 #ifndef $as_decl_name
2083 #ifdef __cplusplus
2084 (void) $as_decl_use;
2085 #else
2086 (void) $as_decl_name;
2087 #endif
2088 #endif
2089
2090 ;
2091 return 0;
2092 }
2093 _ACEOF
2094 if ac_fn_c_try_compile "$LINENO"; then :
2095 eval "$3=yes"
2096 else
2097 eval "$3=no"
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2105
2106 } # ac_fn_c_check_decl
2107
2108 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2109 # ----------------------------------------------------
2110 # Tries to find if the field MEMBER exists in type AGGR, after including
2111 # INCLUDES, setting cache variable VAR accordingly.
2112 ac_fn_c_check_member ()
2113 {
2114 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2116 $as_echo_n "checking for $2.$3... " >&6; }
2117 if eval \${$4+:} false; then :
2118 $as_echo_n "(cached) " >&6
2119 else
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121 /* end confdefs.h. */
2122 $5
2123 int
2124 main ()
2125 {
2126 static $2 ac_aggr;
2127 if (ac_aggr.$3)
2128 return 0;
2129 ;
2130 return 0;
2131 }
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 eval "$4=yes"
2135 else
2136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137 /* end confdefs.h. */
2138 $5
2139 int
2140 main ()
2141 {
2142 static $2 ac_aggr;
2143 if (sizeof ac_aggr.$3)
2144 return 0;
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 if ac_fn_c_try_compile "$LINENO"; then :
2150 eval "$4=yes"
2151 else
2152 eval "$4=no"
2153 fi
2154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2155 fi
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 fi
2158 eval ac_res=\$$4
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162
2163 } # ac_fn_c_check_member
2164
2165 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2166 # -------------------------------------------
2167 # Tests whether TYPE exists after having included INCLUDES, setting cache
2168 # variable VAR accordingly.
2169 ac_fn_c_check_type ()
2170 {
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2173 $as_echo_n "checking for $2... " >&6; }
2174 if eval \${$3+:} false; then :
2175 $as_echo_n "(cached) " >&6
2176 else
2177 eval "$3=no"
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2180 $4
2181 int
2182 main ()
2183 {
2184 if (sizeof ($2))
2185 return 0;
2186 ;
2187 return 0;
2188 }
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192 /* end confdefs.h. */
2193 $4
2194 int
2195 main ()
2196 {
2197 if (sizeof (($2)))
2198 return 0;
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204
2205 else
2206 eval "$3=yes"
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211 fi
2212 eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2216
2217 } # ac_fn_c_check_type
2218 cat >config.log <<_ACEOF
2219 This file contains any messages produced by compilers while
2220 running configure, to aid debugging if configure makes a mistake.
2221
2222 It was created by libXfont2 $as_me 2.0.1, which was
2223 generated by GNU Autoconf 2.69. Invocation command line was
2224
2225 $ $0 $@
2226
2227 _ACEOF
2228 exec 5>>config.log
2229 {
2230 cat <<_ASUNAME
2231 ## --------- ##
2232 ## Platform. ##
2233 ## --------- ##
2234
2235 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2236 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2237 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2238 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2239 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2240
2241 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2242 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2243
2244 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2245 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2246 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2247 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2248 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2249 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2250 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2251
2252 _ASUNAME
2253
2254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2255 for as_dir in $PATH
2256 do
2257 IFS=$as_save_IFS
2258 test -z "$as_dir" && as_dir=.
2259 $as_echo "PATH: $as_dir"
2260 done
2261 IFS=$as_save_IFS
2262
2263 } >&5
2264
2265 cat >&5 <<_ACEOF
2266
2267
2268 ## ----------- ##
2269 ## Core tests. ##
2270 ## ----------- ##
2271
2272 _ACEOF
2273
2274
2275 # Keep a trace of the command line.
2276 # Strip out --no-create and --no-recursion so they do not pile up.
2277 # Strip out --silent because we don't want to record it for future runs.
2278 # Also quote any args containing shell meta-characters.
2279 # Make two passes to allow for proper duplicate-argument suppression.
2280 ac_configure_args=
2281 ac_configure_args0=
2282 ac_configure_args1=
2283 ac_must_keep_next=false
2284 for ac_pass in 1 2
2285 do
2286 for ac_arg
2287 do
2288 case $ac_arg in
2289 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2291 | -silent | --silent | --silen | --sile | --sil)
2292 continue ;;
2293 *\'*)
2294 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2295 esac
2296 case $ac_pass in
2297 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2298 2)
2299 as_fn_append ac_configure_args1 " '$ac_arg'"
2300 if test $ac_must_keep_next = true; then
2301 ac_must_keep_next=false # Got value, back to normal.
2302 else
2303 case $ac_arg in
2304 *=* | --config-cache | -C | -disable-* | --disable-* \
2305 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2306 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2307 | -with-* | --with-* | -without-* | --without-* | --x)
2308 case "$ac_configure_args0 " in
2309 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2310 esac
2311 ;;
2312 -* ) ac_must_keep_next=true ;;
2313 esac
2314 fi
2315 as_fn_append ac_configure_args " '$ac_arg'"
2316 ;;
2317 esac
2318 done
2319 done
2320 { ac_configure_args0=; unset ac_configure_args0;}
2321 { ac_configure_args1=; unset ac_configure_args1;}
2322
2323 # When interrupted or exit'd, cleanup temporary files, and complete
2324 # config.log. We remove comments because anyway the quotes in there
2325 # would cause problems or look ugly.
2326 # WARNING: Use '\'' to represent an apostrophe within the trap.
2327 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2328 trap 'exit_status=$?
2329 # Save into config.log some information that might help in debugging.
2330 {
2331 echo
2332
2333 $as_echo "## ---------------- ##
2334 ## Cache variables. ##
2335 ## ---------------- ##"
2336 echo
2337 # The following way of writing the cache mishandles newlines in values,
2338 (
2339 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2340 eval ac_val=\$$ac_var
2341 case $ac_val in #(
2342 *${as_nl}*)
2343 case $ac_var in #(
2344 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2345 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2346 esac
2347 case $ac_var in #(
2348 _ | IFS | as_nl) ;; #(
2349 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2350 *) { eval $ac_var=; unset $ac_var;} ;;
2351 esac ;;
2352 esac
2353 done
2354 (set) 2>&1 |
2355 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2356 *${as_nl}ac_space=\ *)
2357 sed -n \
2358 "s/'\''/'\''\\\\'\'''\''/g;
2359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2360 ;; #(
2361 *)
2362 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2363 ;;
2364 esac |
2365 sort
2366 )
2367 echo
2368
2369 $as_echo "## ----------------- ##
2370 ## Output variables. ##
2371 ## ----------------- ##"
2372 echo
2373 for ac_var in $ac_subst_vars
2374 do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in
2377 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2378 esac
2379 $as_echo "$ac_var='\''$ac_val'\''"
2380 done | sort
2381 echo
2382
2383 if test -n "$ac_subst_files"; then
2384 $as_echo "## ------------------- ##
2385 ## File substitutions. ##
2386 ## ------------------- ##"
2387 echo
2388 for ac_var in $ac_subst_files
2389 do
2390 eval ac_val=\$$ac_var
2391 case $ac_val in
2392 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2393 esac
2394 $as_echo "$ac_var='\''$ac_val'\''"
2395 done | sort
2396 echo
2397 fi
2398
2399 if test -s confdefs.h; then
2400 $as_echo "## ----------- ##
2401 ## confdefs.h. ##
2402 ## ----------- ##"
2403 echo
2404 cat confdefs.h
2405 echo
2406 fi
2407 test "$ac_signal" != 0 &&
2408 $as_echo "$as_me: caught signal $ac_signal"
2409 $as_echo "$as_me: exit $exit_status"
2410 } >&5
2411 rm -f core *.core core.conftest.* &&
2412 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2413 exit $exit_status
2414 ' 0
2415 for ac_signal in 1 2 13 15; do
2416 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2417 done
2418 ac_signal=0
2419
2420 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2421 rm -f -r conftest* confdefs.h
2422
2423 $as_echo "/* confdefs.h */" > confdefs.h
2424
2425 # Predefined preprocessor variables.
2426
2427 cat >>confdefs.h <<_ACEOF
2428 #define PACKAGE_NAME "$PACKAGE_NAME"
2429 _ACEOF
2430
2431 cat >>confdefs.h <<_ACEOF
2432 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2433 _ACEOF
2434
2435 cat >>confdefs.h <<_ACEOF
2436 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2437 _ACEOF
2438
2439 cat >>confdefs.h <<_ACEOF
2440 #define PACKAGE_STRING "$PACKAGE_STRING"
2441 _ACEOF
2442
2443 cat >>confdefs.h <<_ACEOF
2444 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2445 _ACEOF
2446
2447 cat >>confdefs.h <<_ACEOF
2448 #define PACKAGE_URL "$PACKAGE_URL"
2449 _ACEOF
2450
2451
2452 # Let the site file select an alternate cache file if it wants to.
2453 # Prefer an explicitly selected file to automatically selected ones.
2454 ac_site_file1=NONE
2455 ac_site_file2=NONE
2456 if test -n "$CONFIG_SITE"; then
2457 # We do not want a PATH search for config.site.
2458 case $CONFIG_SITE in #((
2459 -*) ac_site_file1=./$CONFIG_SITE;;
2460 */*) ac_site_file1=$CONFIG_SITE;;
2461 *) ac_site_file1=./$CONFIG_SITE;;
2462 esac
2463 elif test "x$prefix" != xNONE; then
2464 ac_site_file1=$prefix/share/config.site
2465 ac_site_file2=$prefix/etc/config.site
2466 else
2467 ac_site_file1=$ac_default_prefix/share/config.site
2468 ac_site_file2=$ac_default_prefix/etc/config.site
2469 fi
2470 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2471 do
2472 test "x$ac_site_file" = xNONE && continue
2473 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2475 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2476 sed 's/^/| /' "$ac_site_file" >&5
2477 . "$ac_site_file" \
2478 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2480 as_fn_error $? "failed to load site script $ac_site_file
2481 See \`config.log' for more details" "$LINENO" 5; }
2482 fi
2483 done
2484
2485 if test -r "$cache_file"; then
2486 # Some versions of bash will fail to source /dev/null (special files
2487 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2488 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2489 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2491 case $cache_file in
2492 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493 *) . "./$cache_file";;
2494 esac
2495 fi
2496 else
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499 >$cache_file
2500 fi
2501
2502 # Check that the precious variables saved in the cache have kept the same
2503 # value.
2504 ac_cache_corrupted=false
2505 for ac_var in $ac_precious_vars; do
2506 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2507 eval ac_new_set=\$ac_env_${ac_var}_set
2508 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2509 eval ac_new_val=\$ac_env_${ac_var}_value
2510 case $ac_old_set,$ac_new_set in
2511 set,)
2512 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2513 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2514 ac_cache_corrupted=: ;;
2515 ,set)
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2517 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2518 ac_cache_corrupted=: ;;
2519 ,);;
2520 *)
2521 if test "x$ac_old_val" != "x$ac_new_val"; then
2522 # differences in whitespace do not lead to failure.
2523 ac_old_val_w=`echo x $ac_old_val`
2524 ac_new_val_w=`echo x $ac_new_val`
2525 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2527 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2528 ac_cache_corrupted=:
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2531 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2532 eval $ac_var=\$ac_old_val
2533 fi
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2535 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2537 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2538 fi;;
2539 esac
2540 # Pass precious variables to config.status.
2541 if test "$ac_new_set" = set; then
2542 case $ac_new_val in
2543 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2544 *) ac_arg=$ac_var=$ac_new_val ;;
2545 esac
2546 case " $ac_configure_args " in
2547 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2548 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2549 esac
2550 fi
2551 done
2552 if $ac_cache_corrupted; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2556 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2557 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2558 fi
2559 ## -------------------- ##
2560 ## Main body of script. ##
2561 ## -------------------- ##
2562
2563 ac_ext=c
2564 ac_cpp='$CPP $CPPFLAGS'
2565 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2566 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2567 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2568
2569
2570
2571 ac_config_headers="$ac_config_headers config.h"
2572
2573
2574
2575 # Initialize Automake
2576 am__api_version='1.15'
2577
2578 ac_aux_dir=
2579 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2580 if test -f "$ac_dir/install-sh"; then
2581 ac_aux_dir=$ac_dir
2582 ac_install_sh="$ac_aux_dir/install-sh -c"
2583 break
2584 elif test -f "$ac_dir/install.sh"; then
2585 ac_aux_dir=$ac_dir
2586 ac_install_sh="$ac_aux_dir/install.sh -c"
2587 break
2588 elif test -f "$ac_dir/shtool"; then
2589 ac_aux_dir=$ac_dir
2590 ac_install_sh="$ac_aux_dir/shtool install -c"
2591 break
2592 fi
2593 done
2594 if test -z "$ac_aux_dir"; then
2595 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2596 fi
2597
2598 # These three variables are undocumented and unsupported,
2599 # and are intended to be withdrawn in a future Autoconf release.
2600 # They can cause serious problems if a builder's source tree is in a directory
2601 # whose full name contains unusual characters.
2602 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2603 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2604 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2605
2606
2607 # Find a good install program. We prefer a C program (faster),
2608 # so one script is as good as another. But avoid the broken or
2609 # incompatible versions:
2610 # SysV /etc/install, /usr/sbin/install
2611 # SunOS /usr/etc/install
2612 # IRIX /sbin/install
2613 # AIX /bin/install
2614 # AmigaOS /C/install, which installs bootblocks on floppy discs
2615 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2616 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2617 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2618 # OS/2's system install, which has a completely different semantic
2619 # ./install, which can be erroneously created by make from ./install.sh.
2620 # Reject install programs that cannot install multiple files.
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2622 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2623 if test -z "$INSTALL"; then
2624 if ${ac_cv_path_install+:} false; then :
2625 $as_echo_n "(cached) " >&6
2626 else
2627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2628 for as_dir in $PATH
2629 do
2630 IFS=$as_save_IFS
2631 test -z "$as_dir" && as_dir=.
2632 # Account for people who put trailing slashes in PATH elements.
2633 case $as_dir/ in #((
2634 ./ | .// | /[cC]/* | \
2635 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2636 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2637 /usr/ucb/* ) ;;
2638 *)
2639 # OSF1 and SCO ODT 3.0 have their own names for install.
2640 # Don't use installbsd from OSF since it installs stuff as root
2641 # by default.
2642 for ac_prog in ginstall scoinst install; do
2643 for ac_exec_ext in '' $ac_executable_extensions; do
2644 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2645 if test $ac_prog = install &&
2646 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2647 # AIX install. It has an incompatible calling convention.
2648 :
2649 elif test $ac_prog = install &&
2650 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2651 # program-specific install script used by HP pwplus--don't use.
2652 :
2653 else
2654 rm -rf conftest.one conftest.two conftest.dir
2655 echo one > conftest.one
2656 echo two > conftest.two
2657 mkdir conftest.dir
2658 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2659 test -s conftest.one && test -s conftest.two &&
2660 test -s conftest.dir/conftest.one &&
2661 test -s conftest.dir/conftest.two
2662 then
2663 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2664 break 3
2665 fi
2666 fi
2667 fi
2668 done
2669 done
2670 ;;
2671 esac
2672
2673 done
2674 IFS=$as_save_IFS
2675
2676 rm -rf conftest.one conftest.two conftest.dir
2677
2678 fi
2679 if test "${ac_cv_path_install+set}" = set; then
2680 INSTALL=$ac_cv_path_install
2681 else
2682 # As a last resort, use the slow shell script. Don't cache a
2683 # value for INSTALL within a source directory, because that will
2684 # break other packages using the cache if that directory is
2685 # removed, or if the value is a relative name.
2686 INSTALL=$ac_install_sh
2687 fi
2688 fi
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2690 $as_echo "$INSTALL" >&6; }
2691
2692 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2693 # It thinks the first close brace ends the variable substitution.
2694 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2695
2696 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2697
2698 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2699
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2701 $as_echo_n "checking whether build environment is sane... " >&6; }
2702 # Reject unsafe characters in $srcdir or the absolute working directory
2703 # name. Accept space and tab only in the latter.
2704 am_lf='
2705 '
2706 case `pwd` in
2707 *[\\\"\#\$\&\'\`$am_lf]*)
2708 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2709 esac
2710 case $srcdir in
2711 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2712 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2713 esac
2714
2715 # Do 'set' in a subshell so we don't clobber the current shell's
2716 # arguments. Must try -L first in case configure is actually a
2717 # symlink; some systems play weird games with the mod time of symlinks
2718 # (eg FreeBSD returns the mod time of the symlink's containing
2719 # directory).
2720 if (
2721 am_has_slept=no
2722 for am_try in 1 2; do
2723 echo "timestamp, slept: $am_has_slept" > conftest.file
2724 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2725 if test "$*" = "X"; then
2726 # -L didn't work.
2727 set X `ls -t "$srcdir/configure" conftest.file`
2728 fi
2729 if test "$*" != "X $srcdir/configure conftest.file" \
2730 && test "$*" != "X conftest.file $srcdir/configure"; then
2731
2732 # If neither matched, then we have a broken ls. This can happen
2733 # if, for instance, CONFIG_SHELL is bash and it inherits a
2734 # broken ls alias from the environment. This has actually
2735 # happened. Such a system could not be considered "sane".
2736 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2737 alias in your environment" "$LINENO" 5
2738 fi
2739 if test "$2" = conftest.file || test $am_try -eq 2; then
2740 break
2741 fi
2742 # Just in case.
2743 sleep 1
2744 am_has_slept=yes
2745 done
2746 test "$2" = conftest.file
2747 )
2748 then
2749 # Ok.
2750 :
2751 else
2752 as_fn_error $? "newly created file is older than distributed files!
2753 Check your system clock" "$LINENO" 5
2754 fi
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2756 $as_echo "yes" >&6; }
2757 # If we didn't sleep, we still need to ensure time stamps of config.status and
2758 # generated files are strictly newer.
2759 am_sleep_pid=
2760 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2761 ( sleep 1 ) &
2762 am_sleep_pid=$!
2763 fi
2764
2765 rm -f conftest.file
2766
2767 test "$program_prefix" != NONE &&
2768 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2769 # Use a double $ so make ignores it.
2770 test "$program_suffix" != NONE &&
2771 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2772 # Double any \ or $.
2773 # By default was `s,x,x', remove it if useless.
2774 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2775 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2776
2777 # Expand $ac_aux_dir to an absolute path.
2778 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2779
2780 if test x"${MISSING+set}" != xset; then
2781 case $am_aux_dir in
2782 *\ * | *\ *)
2783 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2784 *)
2785 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2786 esac
2787 fi
2788 # Use eval to expand $SHELL
2789 if eval "$MISSING --is-lightweight"; then
2790 am_missing_run="$MISSING "
2791 else
2792 am_missing_run=
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2794 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2795 fi
2796
2797 if test x"${install_sh+set}" != xset; then
2798 case $am_aux_dir in
2799 *\ * | *\ *)
2800 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2801 *)
2802 install_sh="\${SHELL} $am_aux_dir/install-sh"
2803 esac
2804 fi
2805
2806 # Installed binaries are usually stripped using 'strip' when the user
2807 # run "make install-strip". However 'strip' might not be the right
2808 # tool to use in cross-compilation environments, therefore Automake
2809 # will honor the 'STRIP' environment variable to overrule this program.
2810 if test "$cross_compiling" != no; then
2811 if test -n "$ac_tool_prefix"; then
2812 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2813 set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
2817 $as_echo_n "(cached) " >&6
2818 else
2819 if test -n "$STRIP"; then
2820 ac_cv_prog_STRIP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2829 ac_cv_prog_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
2840 if test -n "$STRIP"; then
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2842 $as_echo "$STRIP" >&6; }
2843 else
2844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2845 $as_echo "no" >&6; }
2846 fi
2847
2848
2849 fi
2850 if test -z "$ac_cv_prog_STRIP"; then
2851 ac_ct_STRIP=$STRIP
2852 # Extract the first word of "strip", so it can be a program name with args.
2853 set dummy strip; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$ac_ct_STRIP"; then
2860 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2864 do
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_ac_ct_STRIP="strip"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2872 fi
2873 done
2874 done
2875 IFS=$as_save_IFS
2876
2877 fi
2878 fi
2879 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2880 if test -n "$ac_ct_STRIP"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2882 $as_echo "$ac_ct_STRIP" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2886 fi
2887
2888 if test "x$ac_ct_STRIP" = x; then
2889 STRIP=":"
2890 else
2891 case $cross_compiling:$ac_tool_warned in
2892 yes:)
2893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2894 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2895 ac_tool_warned=yes ;;
2896 esac
2897 STRIP=$ac_ct_STRIP
2898 fi
2899 else
2900 STRIP="$ac_cv_prog_STRIP"
2901 fi
2902
2903 fi
2904 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2905
2906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2907 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2908 if test -z "$MKDIR_P"; then
2909 if ${ac_cv_path_mkdir+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2913 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2914 do
2915 IFS=$as_save_IFS
2916 test -z "$as_dir" && as_dir=.
2917 for ac_prog in mkdir gmkdir; do
2918 for ac_exec_ext in '' $ac_executable_extensions; do
2919 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2920 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2921 'mkdir (GNU coreutils) '* | \
2922 'mkdir (coreutils) '* | \
2923 'mkdir (fileutils) '4.1*)
2924 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2925 break 3;;
2926 esac
2927 done
2928 done
2929 done
2930 IFS=$as_save_IFS
2931
2932 fi
2933
2934 test -d ./--version && rmdir ./--version
2935 if test "${ac_cv_path_mkdir+set}" = set; then
2936 MKDIR_P="$ac_cv_path_mkdir -p"
2937 else
2938 # As a last resort, use the slow shell script. Don't cache a
2939 # value for MKDIR_P within a source directory, because that will
2940 # break other packages using the cache if that directory is
2941 # removed, or if the value is a relative name.
2942 MKDIR_P="$ac_install_sh -d"
2943 fi
2944 fi
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2946 $as_echo "$MKDIR_P" >&6; }
2947
2948 for ac_prog in gawk mawk nawk awk
2949 do
2950 # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if ${ac_cv_prog_AWK+:} false; then :
2955 $as_echo_n "(cached) " >&6
2956 else
2957 if test -n "$AWK"; then
2958 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 for ac_exec_ext in '' $ac_executable_extensions; do
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2967 ac_cv_prog_AWK="$ac_prog"
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2969 break 2
2970 fi
2971 done
2972 done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 AWK=$ac_cv_prog_AWK
2978 if test -n "$AWK"; then
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2980 $as_echo "$AWK" >&6; }
2981 else
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986
2987 test -n "$AWK" && break
2988 done
2989
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2991 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 set x ${MAKE-make}
2993 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2994 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2995 $as_echo_n "(cached) " >&6
2996 else
2997 cat >conftest.make <<\_ACEOF
2998 SHELL = /bin/sh
2999 all:
3000 @echo '@@@%%%=$(MAKE)=@@@%%%'
3001 _ACEOF
3002 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004 *@@@%%%=?*=@@@%%%*)
3005 eval ac_cv_prog_make_${ac_make}_set=yes;;
3006 *)
3007 eval ac_cv_prog_make_${ac_make}_set=no;;
3008 esac
3009 rm -f conftest.make
3010 fi
3011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014 SET_MAKE=
3015 else
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3017 $as_echo "no" >&6; }
3018 SET_MAKE="MAKE=${MAKE-make}"
3019 fi
3020
3021 rm -rf .tst 2>/dev/null
3022 mkdir .tst 2>/dev/null
3023 if test -d .tst; then
3024 am__leading_dot=.
3025 else
3026 am__leading_dot=_
3027 fi
3028 rmdir .tst 2>/dev/null
3029
3030 # Check whether --enable-silent-rules was given.
3031 if test "${enable_silent_rules+set}" = set; then :
3032 enableval=$enable_silent_rules;
3033 fi
3034
3035 case $enable_silent_rules in # (((
3036 yes) AM_DEFAULT_VERBOSITY=0;;
3037 no) AM_DEFAULT_VERBOSITY=1;;
3038 *) AM_DEFAULT_VERBOSITY=1;;
3039 esac
3040 am_make=${MAKE-make}
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3042 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3043 if ${am_cv_make_support_nested_variables+:} false; then :
3044 $as_echo_n "(cached) " >&6
3045 else
3046 if $as_echo 'TRUE=$(BAR$(V))
3047 BAR0=false
3048 BAR1=true
3049 V=1
3050 am__doit:
3051 @$(TRUE)
3052 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3053 am_cv_make_support_nested_variables=yes
3054 else
3055 am_cv_make_support_nested_variables=no
3056 fi
3057 fi
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3059 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3060 if test $am_cv_make_support_nested_variables = yes; then
3061 AM_V='$(V)'
3062 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3063 else
3064 AM_V=$AM_DEFAULT_VERBOSITY
3065 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3066 fi
3067 AM_BACKSLASH='\'
3068
3069 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3070 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3071 # is not polluted with repeated "-I."
3072 am__isrc=' -I$(srcdir)'
3073 # test to see if srcdir already configured
3074 if test -f $srcdir/config.status; then
3075 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3076 fi
3077 fi
3078
3079 # test whether we have cygpath
3080 if test -z "$CYGPATH_W"; then
3081 if (cygpath --version) >/dev/null 2>/dev/null; then
3082 CYGPATH_W='cygpath -w'
3083 else
3084 CYGPATH_W=echo
3085 fi
3086 fi
3087
3088
3089 # Define the identity of the package.
3090 PACKAGE='libXfont2'
3091 VERSION='2.0.1'
3092
3093
3094 cat >>confdefs.h <<_ACEOF
3095 #define PACKAGE "$PACKAGE"
3096 _ACEOF
3097
3098
3099 cat >>confdefs.h <<_ACEOF
3100 #define VERSION "$VERSION"
3101 _ACEOF
3102
3103 # Some tools Automake needs.
3104
3105 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3106
3107
3108 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3109
3110
3111 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3112
3113
3114 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3115
3116
3117 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3118
3119 # For better backward compatibility. To be removed once Automake 1.9.x
3120 # dies out for good. For more background, see:
3121 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3122 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3123 mkdir_p='$(MKDIR_P)'
3124
3125 # We need awk for the "check" target (and possibly the TAP driver). The
3126 # system "awk" is bad on some platforms.
3127 # Always define AMTAR for backward compatibility. Yes, it's still used
3128 # in the wild :-( We should find a proper way to deprecate it ...
3129 AMTAR='$${TAR-tar}'
3130
3131
3132 # We'll loop over all known methods to create a tar archive until one works.
3133 _am_tools='gnutar pax cpio none'
3134
3135 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3136
3137
3138
3139
3140
3141
3142 # POSIX will say in a future version that running "rm -f" with no argument
3143 # is OK; and we want to be able to make that assumption in our Makefile
3144 # recipes. So use an aggressive probe to check that the usage we want is
3145 # actually supported "in the wild" to an acceptable degree.
3146 # See automake bug#10828.
3147 # To make any issue more visible, cause the running configure to be aborted
3148 # by default if the 'rm' program in use doesn't match our expectations; the
3149 # user can still override this though.
3150 if rm -f && rm -fr && rm -rf; then : OK; else
3151 cat >&2 <<'END'
3152 Oops!
3153
3154 Your 'rm' program seems unable to run without file operands specified
3155 on the command line, even when the '-f' option is present. This is contrary
3156 to the behaviour of most rm programs out there, and not conforming with
3157 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3158
3159 Please tell bug-automake@gnu.org about your system, including the value
3160 of your $PATH and any error possibly output before this message. This
3161 can help us improve future automake versions.
3162
3163 END
3164 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3165 echo 'Configuration will proceed anyway, since you have set the' >&2
3166 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3167 echo >&2
3168 else
3169 cat >&2 <<'END'
3170 Aborting the configuration process, to ensure you take notice of the issue.
3171
3172 You can download and install GNU coreutils to get an 'rm' implementation
3173 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3174
3175 If you want to complete the configuration process using your problematic
3176 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3177 to "yes", and re-run configure.
3178
3179 END
3180 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3181 fi
3182 fi
3183
3184
3185 # Set common system defines for POSIX extensions, such as _GNU_SOURCE
3186 # Must be called before any macros that run the compiler (like
3187 # AC_PROG_LIBTOOL) to avoid autoconf errors.
3188 DEPDIR="${am__leading_dot}deps"
3189
3190 ac_config_commands="$ac_config_commands depfiles"
3191
3192
3193 am_make=${MAKE-make}
3194 cat > confinc << 'END'
3195 am__doit:
3196 @echo this is the am__doit target
3197 .PHONY: am__doit
3198 END
3199 # If we don't find an include directive, just comment out the code.
3200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3201 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3202 am__include="#"
3203 am__quote=
3204 _am_result=none
3205 # First try GNU make style include.
3206 echo "include confinc" > confmf
3207 # Ignore all kinds of additional output from 'make'.
3208 case `$am_make -s -f confmf 2> /dev/null` in #(
3209 *the\ am__doit\ target*)
3210 am__include=include
3211 am__quote=
3212 _am_result=GNU
3213 ;;
3214 esac
3215 # Now try BSD make style include.
3216 if test "$am__include" = "#"; then
3217 echo '.include "confinc"' > confmf
3218 case `$am_make -s -f confmf 2> /dev/null` in #(
3219 *the\ am__doit\ target*)
3220 am__include=.include
3221 am__quote="\""
3222 _am_result=BSD
3223 ;;
3224 esac
3225 fi
3226
3227
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3229 $as_echo "$_am_result" >&6; }
3230 rm -f confinc confmf
3231
3232 # Check whether --enable-dependency-tracking was given.
3233 if test "${enable_dependency_tracking+set}" = set; then :
3234 enableval=$enable_dependency_tracking;
3235 fi
3236
3237 if test "x$enable_dependency_tracking" != xno; then
3238 am_depcomp="$ac_aux_dir/depcomp"
3239 AMDEPBACKSLASH='\'
3240 am__nodep='_no'
3241 fi
3242 if test "x$enable_dependency_tracking" != xno; then
3243 AMDEP_TRUE=
3244 AMDEP_FALSE='#'
3245 else
3246 AMDEP_TRUE='#'
3247 AMDEP_FALSE=
3248 fi
3249
3250
3251 ac_ext=c
3252 ac_cpp='$CPP $CPPFLAGS'
3253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3260 $as_echo_n "checking for $ac_word... " >&6; }
3261 if ${ac_cv_prog_CC+:} false; then :
3262 $as_echo_n "(cached) " >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3274 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3287 $as_echo "$CC" >&6; }
3288 else
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 fi
3292
3293
3294 fi
3295 if test -z "$ac_cv_prog_CC"; then
3296 ac_ct_CC=$CC
3297 # Extract the first word of "gcc", so it can be a program name with args.
3298 set dummy gcc; ac_word=$2
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3300 $as_echo_n "checking for $ac_word... " >&6; }
3301 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3302 $as_echo_n "(cached) " >&6
3303 else
3304 if test -n "$ac_ct_CC"; then
3305 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3306 else
3307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3308 for as_dir in $PATH
3309 do
3310 IFS=$as_save_IFS
3311 test -z "$as_dir" && as_dir=.
3312 for ac_exec_ext in '' $ac_executable_extensions; do
3313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3314 ac_cv_prog_ac_ct_CC="gcc"
3315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 break 2
3317 fi
3318 done
3319 done
3320 IFS=$as_save_IFS
3321
3322 fi
3323 fi
3324 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3325 if test -n "$ac_ct_CC"; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3327 $as_echo "$ac_ct_CC" >&6; }
3328 else
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3330 $as_echo "no" >&6; }
3331 fi
3332
3333 if test "x$ac_ct_CC" = x; then
3334 CC=""
3335 else
3336 case $cross_compiling:$ac_tool_warned in
3337 yes:)
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3339 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3340 ac_tool_warned=yes ;;
3341 esac
3342 CC=$ac_ct_CC
3343 fi
3344 else
3345 CC="$ac_cv_prog_CC"
3346 fi
3347
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3353 $as_echo_n "checking for $ac_word... " >&6; }
3354 if ${ac_cv_prog_CC+:} false; then :
3355 $as_echo_n "(cached) " >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3380 $as_echo "$CC" >&6; }
3381 else
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3383 $as_echo "no" >&6; }
3384 fi
3385
3386
3387 fi
3388 fi
3389 if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3393 $as_echo_n "checking for $ac_word... " >&6; }
3394 if ${ac_cv_prog_CC+:} false; then :
3395 $as_echo_n "(cached) " >&6
3396 else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 ac_prog_rejected=no
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3410 continue
3411 fi
3412 ac_cv_prog_CC="cc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy $ac_cv_prog_CC
3423 shift
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3428 shift
3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3430 fi
3431 fi
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3437 $as_echo "$CC" >&6; }
3438 else
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3440 $as_echo "no" >&6; }
3441 fi
3442
3443
3444 fi
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in cl.exe
3448 do
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3452 $as_echo_n "checking for $ac_word... " >&6; }
3453 if ${ac_cv_prog_CC+:} false; then :
3454 $as_echo_n "(cached) " >&6
3455 else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3479 $as_echo "$CC" >&6; }
3480 else
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3482 $as_echo "no" >&6; }
3483 fi
3484
3485
3486 test -n "$CC" && break
3487 done
3488 fi
3489 if test -z "$CC"; then
3490 ac_ct_CC=$CC
3491 for ac_prog in cl.exe
3492 do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3496 $as_echo_n "checking for $ac_word... " >&6; }
3497 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3498 $as_echo_n "(cached) " >&6
3499 else
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3510 ac_cv_prog_ac_ct_CC="$ac_prog"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3523 $as_echo "$ac_ct_CC" >&6; }
3524 else
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 fi
3528
3529
3530 test -n "$ac_ct_CC" && break
3531 done
3532
3533 if test "x$ac_ct_CC" = x; then
3534 CC=""
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3540 ac_tool_warned=yes ;;
3541 esac
3542 CC=$ac_ct_CC
3543 fi
3544 fi
3545
3546 fi
3547
3548
3549 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3551 as_fn_error $? "no acceptable C compiler found in \$PATH
3552 See \`config.log' for more details" "$LINENO" 5; }
3553
3554 # Provide some information about the compiler.
3555 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3556 set X $ac_compile
3557 ac_compiler=$2
3558 for ac_option in --version -v -V -qversion; do
3559 { { ac_try="$ac_compiler $ac_option >&5"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3565 $as_echo "$ac_try_echo"; } >&5
3566 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3567 ac_status=$?
3568 if test -s conftest.err; then
3569 sed '10a\
3570 ... rest of stderr output deleted ...
3571 10q' conftest.err >conftest.er1
3572 cat conftest.er1 >&5
3573 fi
3574 rm -f conftest.er1 conftest.err
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }
3577 done
3578
3579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3580 /* end confdefs.h. */
3581
3582 int
3583 main ()
3584 {
3585
3586 ;
3587 return 0;
3588 }
3589 _ACEOF
3590 ac_clean_files_save=$ac_clean_files
3591 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3592 # Try to create an executable without -o first, disregard a.out.
3593 # It will help us diagnose broken compilers, and finding out an intuition
3594 # of exeext.
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3596 $as_echo_n "checking whether the C compiler works... " >&6; }
3597 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3598
3599 # The possible output files:
3600 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3601
3602 ac_rmfiles=
3603 for ac_file in $ac_files
3604 do
3605 case $ac_file in
3606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3607 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3608 esac
3609 done
3610 rm -f $ac_rmfiles
3611
3612 if { { ac_try="$ac_link_default"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_link_default") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3624 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3625 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3626 # so that the user can short-circuit this test for compilers unknown to
3627 # Autoconf.
3628 for ac_file in $ac_files ''
3629 do
3630 test -f "$ac_file" || continue
3631 case $ac_file in
3632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3633 ;;
3634 [ab].out )
3635 # We found the default executable, but exeext='' is most
3636 # certainly right.
3637 break;;
3638 *.* )
3639 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3640 then :; else
3641 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3642 fi
3643 # We set ac_cv_exeext here because the later test for it is not
3644 # safe: cross compilers may not add the suffix if given an `-o'
3645 # argument, so we may need to know it at that point already.
3646 # Even if this section looks crufty: it has the advantage of
3647 # actually working.
3648 break;;
3649 * )
3650 break;;
3651 esac
3652 done
3653 test "$ac_cv_exeext" = no && ac_cv_exeext=
3654
3655 else
3656 ac_file=''
3657 fi
3658 if test -z "$ac_file"; then :
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3660 $as_echo "no" >&6; }
3661 $as_echo "$as_me: failed program was:" >&5
3662 sed 's/^/| /' conftest.$ac_ext >&5
3663
3664 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3665 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3666 as_fn_error 77 "C compiler cannot create executables
3667 See \`config.log' for more details" "$LINENO" 5; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3671 fi
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3673 $as_echo_n "checking for C compiler default output file name... " >&6; }
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3675 $as_echo "$ac_file" >&6; }
3676 ac_exeext=$ac_cv_exeext
3677
3678 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3679 ac_clean_files=$ac_clean_files_save
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3681 $as_echo_n "checking for suffix of executables... " >&6; }
3682 if { { ac_try="$ac_link"
3683 case "(($ac_try" in
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3686 esac
3687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3688 $as_echo "$ac_try_echo"; } >&5
3689 (eval "$ac_link") 2>&5
3690 ac_status=$?
3691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3692 test $ac_status = 0; }; then :
3693 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3694 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3695 # work properly (i.e., refer to `conftest.exe'), while it won't with
3696 # `rm'.
3697 for ac_file in conftest.exe conftest conftest.*; do
3698 test -f "$ac_file" || continue
3699 case $ac_file in
3700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3701 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3702 break;;
3703 * ) break;;
3704 esac
3705 done
3706 else
3707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3709 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3710 See \`config.log' for more details" "$LINENO" 5; }
3711 fi
3712 rm -f conftest conftest$ac_cv_exeext
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3714 $as_echo "$ac_cv_exeext" >&6; }
3715
3716 rm -f conftest.$ac_ext
3717 EXEEXT=$ac_cv_exeext
3718 ac_exeext=$EXEEXT
3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3720 /* end confdefs.h. */
3721 #include <stdio.h>
3722 int
3723 main ()
3724 {
3725 FILE *f = fopen ("conftest.out", "w");
3726 return ferror (f) || fclose (f) != 0;
3727
3728 ;
3729 return 0;
3730 }
3731 _ACEOF
3732 ac_clean_files="$ac_clean_files conftest.out"
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3736 $as_echo_n "checking whether we are cross compiling... " >&6; }
3737 if test "$cross_compiling" != yes; then
3738 { { ac_try="$ac_link"
3739 case "(($ac_try" in
3740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3741 *) ac_try_echo=$ac_try;;
3742 esac
3743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3744 $as_echo "$ac_try_echo"; } >&5
3745 (eval "$ac_link") 2>&5
3746 ac_status=$?
3747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3748 test $ac_status = 0; }
3749 if { ac_try='./conftest$ac_cv_exeext'
3750 { { case "(($ac_try" in
3751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3752 *) ac_try_echo=$ac_try;;
3753 esac
3754 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3755 $as_echo "$ac_try_echo"; } >&5
3756 (eval "$ac_try") 2>&5
3757 ac_status=$?
3758 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3759 test $ac_status = 0; }; }; then
3760 cross_compiling=no
3761 else
3762 if test "$cross_compiling" = maybe; then
3763 cross_compiling=yes
3764 else
3765 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3766 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3767 as_fn_error $? "cannot run C compiled programs.
3768 If you meant to cross compile, use \`--host'.
3769 See \`config.log' for more details" "$LINENO" 5; }
3770 fi
3771 fi
3772 fi
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3774 $as_echo "$cross_compiling" >&6; }
3775
3776 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3777 ac_clean_files=$ac_clean_files_save
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3779 $as_echo_n "checking for suffix of object files... " >&6; }
3780 if ${ac_cv_objext+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3784 /* end confdefs.h. */
3785
3786 int
3787 main ()
3788 {
3789
3790 ;
3791 return 0;
3792 }
3793 _ACEOF
3794 rm -f conftest.o conftest.obj
3795 if { { ac_try="$ac_compile"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_compile") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 for ac_file in conftest.o conftest.obj conftest.*; do
3807 test -f "$ac_file" || continue;
3808 case $ac_file in
3809 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3810 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3811 break;;
3812 esac
3813 done
3814 else
3815 $as_echo "$as_me: failed program was:" >&5
3816 sed 's/^/| /' conftest.$ac_ext >&5
3817
3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3824 fi
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3826 $as_echo "$ac_cv_objext" >&6; }
3827 OBJEXT=$ac_cv_objext
3828 ac_objext=$OBJEXT
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3830 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3831 if ${ac_cv_c_compiler_gnu+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3836
3837 int
3838 main ()
3839 {
3840 #ifndef __GNUC__
3841 choke me
3842 #endif
3843
3844 ;
3845 return 0;
3846 }
3847 _ACEOF
3848 if ac_fn_c_try_compile "$LINENO"; then :
3849 ac_compiler_gnu=yes
3850 else
3851 ac_compiler_gnu=no
3852 fi
3853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3855
3856 fi
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3858 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3859 if test $ac_compiler_gnu = yes; then
3860 GCC=yes
3861 else
3862 GCC=
3863 fi
3864 ac_test_CFLAGS=${CFLAGS+set}
3865 ac_save_CFLAGS=$CFLAGS
3866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3867 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3868 if ${ac_cv_prog_cc_g+:} false; then :
3869 $as_echo_n "(cached) " >&6
3870 else
3871 ac_save_c_werror_flag=$ac_c_werror_flag
3872 ac_c_werror_flag=yes
3873 ac_cv_prog_cc_g=no
3874 CFLAGS="-g"
3875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3876 /* end confdefs.h. */
3877
3878 int
3879 main ()
3880 {
3881
3882 ;
3883 return 0;
3884 }
3885 _ACEOF
3886 if ac_fn_c_try_compile "$LINENO"; then :
3887 ac_cv_prog_cc_g=yes
3888 else
3889 CFLAGS=""
3890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891 /* end confdefs.h. */
3892
3893 int
3894 main ()
3895 {
3896
3897 ;
3898 return 0;
3899 }
3900 _ACEOF
3901 if ac_fn_c_try_compile "$LINENO"; then :
3902
3903 else
3904 ac_c_werror_flag=$ac_save_c_werror_flag
3905 CFLAGS="-g"
3906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3907 /* end confdefs.h. */
3908
3909 int
3910 main ()
3911 {
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 if ac_fn_c_try_compile "$LINENO"; then :
3918 ac_cv_prog_cc_g=yes
3919 fi
3920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3921 fi
3922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3923 fi
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3925 ac_c_werror_flag=$ac_save_c_werror_flag
3926 fi
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3928 $as_echo "$ac_cv_prog_cc_g" >&6; }
3929 if test "$ac_test_CFLAGS" = set; then
3930 CFLAGS=$ac_save_CFLAGS
3931 elif test $ac_cv_prog_cc_g = yes; then
3932 if test "$GCC" = yes; then
3933 CFLAGS="-g -O2"
3934 else
3935 CFLAGS="-g"
3936 fi
3937 else
3938 if test "$GCC" = yes; then
3939 CFLAGS="-O2"
3940 else
3941 CFLAGS=
3942 fi
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3945 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3946 if ${ac_cv_prog_cc_c89+:} false; then :
3947 $as_echo_n "(cached) " >&6
3948 else
3949 ac_cv_prog_cc_c89=no
3950 ac_save_CC=$CC
3951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3952 /* end confdefs.h. */
3953 #include <stdarg.h>
3954 #include <stdio.h>
3955 struct stat;
3956 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3957 struct buf { int x; };
3958 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3959 static char *e (p, i)
3960 char **p;
3961 int i;
3962 {
3963 return p[i];
3964 }
3965 static char *f (char * (*g) (char **, int), char **p, ...)
3966 {
3967 char *s;
3968 va_list v;
3969 va_start (v,p);
3970 s = g (p, va_arg (v,int));
3971 va_end (v);
3972 return s;
3973 }
3974
3975 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3976 function prototypes and stuff, but not '\xHH' hex character constants.
3977 These don't provoke an error unfortunately, instead are silently treated
3978 as 'x'. The following induces an error, until -std is added to get
3979 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3980 array size at least. It's necessary to write '\x00'==0 to get something
3981 that's true only with -std. */
3982 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3983
3984 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3985 inside strings and character constants. */
3986 #define FOO(x) 'x'
3987 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3988
3989 int test (int i, double x);
3990 struct s1 {int (*f) (int a);};
3991 struct s2 {int (*f) (double a);};
3992 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3993 int argc;
3994 char **argv;
3995 int
3996 main ()
3997 {
3998 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3999 ;
4000 return 0;
4001 }
4002 _ACEOF
4003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4004 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4005 do
4006 CC="$ac_save_CC $ac_arg"
4007 if ac_fn_c_try_compile "$LINENO"; then :
4008 ac_cv_prog_cc_c89=$ac_arg
4009 fi
4010 rm -f core conftest.err conftest.$ac_objext
4011 test "x$ac_cv_prog_cc_c89" != "xno" && break
4012 done
4013 rm -f conftest.$ac_ext
4014 CC=$ac_save_CC
4015
4016 fi
4017 # AC_CACHE_VAL
4018 case "x$ac_cv_prog_cc_c89" in
4019 x)
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4021 $as_echo "none needed" >&6; } ;;
4022 xno)
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4024 $as_echo "unsupported" >&6; } ;;
4025 *)
4026 CC="$CC $ac_cv_prog_cc_c89"
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4028 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4029 esac
4030 if test "x$ac_cv_prog_cc_c89" != xno; then :
4031
4032 fi
4033
4034 ac_ext=c
4035 ac_cpp='$CPP $CPPFLAGS'
4036 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4037 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4038 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4039
4040 ac_ext=c
4041 ac_cpp='$CPP $CPPFLAGS'
4042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4046 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4047 if ${am_cv_prog_cc_c_o+:} false; then :
4048 $as_echo_n "(cached) " >&6
4049 else
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4052
4053 int
4054 main ()
4055 {
4056
4057 ;
4058 return 0;
4059 }
4060 _ACEOF
4061 # Make sure it works both with $CC and with simple cc.
4062 # Following AC_PROG_CC_C_O, we do the test twice because some
4063 # compilers refuse to overwrite an existing .o file with -o,
4064 # though they will create one.
4065 am_cv_prog_cc_c_o=yes
4066 for am_i in 1 2; do
4067 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4068 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4069 ac_status=$?
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); } \
4072 && test -f conftest2.$ac_objext; then
4073 : OK
4074 else
4075 am_cv_prog_cc_c_o=no
4076 break
4077 fi
4078 done
4079 rm -f core conftest*
4080 unset am_i
4081 fi
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4083 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4084 if test "$am_cv_prog_cc_c_o" != yes; then
4085 # Losing compiler, so override with the script.
4086 # FIXME: It is wrong to rewrite CC.
4087 # But if we don't then we get into trouble of one sort or another.
4088 # A longer-term fix would be to have automake use am__CC in this case,
4089 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4090 CC="$am_aux_dir/compile $CC"
4091 fi
4092 ac_ext=c
4093 ac_cpp='$CPP $CPPFLAGS'
4094 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4095 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4096 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4097
4098
4099 depcc="$CC" am_compiler_list=
4100
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4102 $as_echo_n "checking dependency style of $depcc... " >&6; }
4103 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4107 # We make a subdir and do the tests there. Otherwise we can end up
4108 # making bogus files that we don't know about and never remove. For
4109 # instance it was reported that on HP-UX the gcc test will end up
4110 # making a dummy file named 'D' -- because '-MD' means "put the output
4111 # in D".
4112 rm -rf conftest.dir
4113 mkdir conftest.dir
4114 # Copy depcomp to subdir because otherwise we won't find it if we're
4115 # using a relative directory.
4116 cp "$am_depcomp" conftest.dir
4117 cd conftest.dir
4118 # We will build objects and dependencies in a subdirectory because
4119 # it helps to detect inapplicable dependency modes. For instance
4120 # both Tru64's cc and ICC support -MD to output dependencies as a
4121 # side effect of compilation, but ICC will put the dependencies in
4122 # the current directory while Tru64 will put them in the object
4123 # directory.
4124 mkdir sub
4125
4126 am_cv_CC_dependencies_compiler_type=none
4127 if test "$am_compiler_list" = ""; then
4128 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4129 fi
4130 am__universal=false
4131 case " $depcc " in #(
4132 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4133 esac
4134
4135 for depmode in $am_compiler_list; do
4136 # Setup a source with many dependencies, because some compilers
4137 # like to wrap large dependency lists on column 80 (with \), and
4138 # we should not choose a depcomp mode which is confused by this.
4139 #
4140 # We need to recreate these files for each test, as the compiler may
4141 # overwrite some of them when testing with obscure command lines.
4142 # This happens at least with the AIX C compiler.
4143 : > sub/conftest.c
4144 for i in 1 2 3 4 5 6; do
4145 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4146 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4147 # Solaris 10 /bin/sh.
4148 echo '/* dummy */' > sub/conftst$i.h
4149 done
4150 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4151
4152 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4153 # mode. It turns out that the SunPro C++ compiler does not properly
4154 # handle '-M -o', and we need to detect this. Also, some Intel
4155 # versions had trouble with output in subdirs.
4156 am__obj=sub/conftest.${OBJEXT-o}
4157 am__minus_obj="-o $am__obj"
4158 case $depmode in
4159 gcc)
4160 # This depmode causes a compiler race in universal mode.
4161 test "$am__universal" = false || continue
4162 ;;
4163 nosideeffect)
4164 # After this tag, mechanisms are not by side-effect, so they'll
4165 # only be used when explicitly requested.
4166 if test "x$enable_dependency_tracking" = xyes; then
4167 continue
4168 else
4169 break
4170 fi
4171 ;;
4172 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4173 # This compiler won't grok '-c -o', but also, the minuso test has
4174 # not run yet. These depmodes are late enough in the game, and
4175 # so weak that their functioning should not be impacted.
4176 am__obj=conftest.${OBJEXT-o}
4177 am__minus_obj=
4178 ;;
4179 none) break ;;
4180 esac
4181 if depmode=$depmode \
4182 source=sub/conftest.c object=$am__obj \
4183 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4184 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4185 >/dev/null 2>conftest.err &&
4186 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4187 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4188 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4189 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4190 # icc doesn't choke on unknown options, it will just issue warnings
4191 # or remarks (even with -Werror). So we grep stderr for any message
4192 # that says an option was ignored or not supported.
4193 # When given -MP, icc 7.0 and 7.1 complain thusly:
4194 # icc: Command line warning: ignoring option '-M'; no argument required
4195 # The diagnosis changed in icc 8.0:
4196 # icc: Command line remark: option '-MP' not supported
4197 if (grep 'ignoring option' conftest.err ||
4198 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4199 am_cv_CC_dependencies_compiler_type=$depmode
4200 break
4201 fi
4202 fi
4203 done
4204
4205 cd ..
4206 rm -rf conftest.dir
4207 else
4208 am_cv_CC_dependencies_compiler_type=none
4209 fi
4210
4211 fi
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4213 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4214 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4215
4216 if
4217 test "x$enable_dependency_tracking" != xno \
4218 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4219 am__fastdepCC_TRUE=
4220 am__fastdepCC_FALSE='#'
4221 else
4222 am__fastdepCC_TRUE='#'
4223 am__fastdepCC_FALSE=
4224 fi
4225
4226
4227
4228 ac_ext=c
4229 ac_cpp='$CPP $CPPFLAGS'
4230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4234 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4235 # On Suns, sometimes $CPP names a directory.
4236 if test -n "$CPP" && test -d "$CPP"; then
4237 CPP=
4238 fi
4239 if test -z "$CPP"; then
4240 if ${ac_cv_prog_CPP+:} false; then :
4241 $as_echo_n "(cached) " >&6
4242 else
4243 # Double quotes because CPP needs to be expanded
4244 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4245 do
4246 ac_preproc_ok=false
4247 for ac_c_preproc_warn_flag in '' yes
4248 do
4249 # Use a header file that comes with gcc, so configuring glibc
4250 # with a fresh cross-compiler works.
4251 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4252 # <limits.h> exists even on freestanding compilers.
4253 # On the NeXT, cc -E runs the code through the compiler's parser,
4254 # not just through cpp. "Syntax error" is here to catch this case.
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #ifdef __STDC__
4258 # include <limits.h>
4259 #else
4260 # include <assert.h>
4261 #endif
4262 Syntax error
4263 _ACEOF
4264 if ac_fn_c_try_cpp "$LINENO"; then :
4265
4266 else
4267 # Broken: fails on valid input.
4268 continue
4269 fi
4270 rm -f conftest.err conftest.i conftest.$ac_ext
4271
4272 # OK, works on sane cases. Now check whether nonexistent headers
4273 # can be detected and how.
4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4275 /* end confdefs.h. */
4276 #include <ac_nonexistent.h>
4277 _ACEOF
4278 if ac_fn_c_try_cpp "$LINENO"; then :
4279 # Broken: success on invalid input.
4280 continue
4281 else
4282 # Passes both tests.
4283 ac_preproc_ok=:
4284 break
4285 fi
4286 rm -f conftest.err conftest.i conftest.$ac_ext
4287
4288 done
4289 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4290 rm -f conftest.i conftest.err conftest.$ac_ext
4291 if $ac_preproc_ok; then :
4292 break
4293 fi
4294
4295 done
4296 ac_cv_prog_CPP=$CPP
4297
4298 fi
4299 CPP=$ac_cv_prog_CPP
4300 else
4301 ac_cv_prog_CPP=$CPP
4302 fi
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4304 $as_echo "$CPP" >&6; }
4305 ac_preproc_ok=false
4306 for ac_c_preproc_warn_flag in '' yes
4307 do
4308 # Use a header file that comes with gcc, so configuring glibc
4309 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4316 #ifdef __STDC__
4317 # include <limits.h>
4318 #else
4319 # include <assert.h>
4320 #endif
4321 Syntax error
4322 _ACEOF
4323 if ac_fn_c_try_cpp "$LINENO"; then :
4324
4325 else
4326 # Broken: fails on valid input.
4327 continue
4328 fi
4329 rm -f conftest.err conftest.i conftest.$ac_ext
4330
4331 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how.
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335 #include <ac_nonexistent.h>
4336 _ACEOF
4337 if ac_fn_c_try_cpp "$LINENO"; then :
4338 # Broken: success on invalid input.
4339 continue
4340 else
4341 # Passes both tests.
4342 ac_preproc_ok=:
4343 break
4344 fi
4345 rm -f conftest.err conftest.i conftest.$ac_ext
4346
4347 done
4348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4349 rm -f conftest.i conftest.err conftest.$ac_ext
4350 if $ac_preproc_ok; then :
4351
4352 else
4353 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4354 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4355 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4356 See \`config.log' for more details" "$LINENO" 5; }
4357 fi
4358
4359 ac_ext=c
4360 ac_cpp='$CPP $CPPFLAGS'
4361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4364
4365
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4367 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4368 if ${ac_cv_path_GREP+:} false; then :
4369 $as_echo_n "(cached) " >&6
4370 else
4371 if test -z "$GREP"; then
4372 ac_path_GREP_found=false
4373 # Loop through the user's path and test for each of PROGNAME-LIST
4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4376 do
4377 IFS=$as_save_IFS
4378 test -z "$as_dir" && as_dir=.
4379 for ac_prog in grep ggrep; do
4380 for ac_exec_ext in '' $ac_executable_extensions; do
4381 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4382 as_fn_executable_p "$ac_path_GREP" || continue
4383 # Check for GNU ac_path_GREP and select it if it is found.
4384 # Check for GNU $ac_path_GREP
4385 case `"$ac_path_GREP" --version 2>&1` in
4386 *GNU*)
4387 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4388 *)
4389 ac_count=0
4390 $as_echo_n 0123456789 >"conftest.in"
4391 while :
4392 do
4393 cat "conftest.in" "conftest.in" >"conftest.tmp"
4394 mv "conftest.tmp" "conftest.in"
4395 cp "conftest.in" "conftest.nl"
4396 $as_echo 'GREP' >> "conftest.nl"
4397 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4399 as_fn_arith $ac_count + 1 && ac_count=$as_val
4400 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4401 # Best one so far, save it but keep looking for a better one
4402 ac_cv_path_GREP="$ac_path_GREP"
4403 ac_path_GREP_max=$ac_count
4404 fi
4405 # 10*(2^10) chars as input seems more than enough
4406 test $ac_count -gt 10 && break
4407 done
4408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4409 esac
4410
4411 $ac_path_GREP_found && break 3
4412 done
4413 done
4414 done
4415 IFS=$as_save_IFS
4416 if test -z "$ac_cv_path_GREP"; then
4417 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4418 fi
4419 else
4420 ac_cv_path_GREP=$GREP
4421 fi
4422
4423 fi
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4425 $as_echo "$ac_cv_path_GREP" >&6; }
4426 GREP="$ac_cv_path_GREP"
4427
4428
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4430 $as_echo_n "checking for egrep... " >&6; }
4431 if ${ac_cv_path_EGREP+:} false; then :
4432 $as_echo_n "(cached) " >&6
4433 else
4434 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4435 then ac_cv_path_EGREP="$GREP -E"
4436 else
4437 if test -z "$EGREP"; then
4438 ac_path_EGREP_found=false
4439 # Loop through the user's path and test for each of PROGNAME-LIST
4440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4442 do
4443 IFS=$as_save_IFS
4444 test -z "$as_dir" && as_dir=.
4445 for ac_prog in egrep; do
4446 for ac_exec_ext in '' $ac_executable_extensions; do
4447 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4448 as_fn_executable_p "$ac_path_EGREP" || continue
4449 # Check for GNU ac_path_EGREP and select it if it is found.
4450 # Check for GNU $ac_path_EGREP
4451 case `"$ac_path_EGREP" --version 2>&1` in
4452 *GNU*)
4453 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4454 *)
4455 ac_count=0
4456 $as_echo_n 0123456789 >"conftest.in"
4457 while :
4458 do
4459 cat "conftest.in" "conftest.in" >"conftest.tmp"
4460 mv "conftest.tmp" "conftest.in"
4461 cp "conftest.in" "conftest.nl"
4462 $as_echo 'EGREP' >> "conftest.nl"
4463 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4465 as_fn_arith $ac_count + 1 && ac_count=$as_val
4466 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4467 # Best one so far, save it but keep looking for a better one
4468 ac_cv_path_EGREP="$ac_path_EGREP"
4469 ac_path_EGREP_max=$ac_count
4470 fi
4471 # 10*(2^10) chars as input seems more than enough
4472 test $ac_count -gt 10 && break
4473 done
4474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4475 esac
4476
4477 $ac_path_EGREP_found && break 3
4478 done
4479 done
4480 done
4481 IFS=$as_save_IFS
4482 if test -z "$ac_cv_path_EGREP"; then
4483 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4484 fi
4485 else
4486 ac_cv_path_EGREP=$EGREP
4487 fi
4488
4489 fi
4490 fi
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4492 $as_echo "$ac_cv_path_EGREP" >&6; }
4493 EGREP="$ac_cv_path_EGREP"
4494
4495
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4497 $as_echo_n "checking for ANSI C header files... " >&6; }
4498 if ${ac_cv_header_stdc+:} false; then :
4499 $as_echo_n "(cached) " >&6
4500 else
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #include <stdlib.h>
4504 #include <stdarg.h>
4505 #include <string.h>
4506 #include <float.h>
4507
4508 int
4509 main ()
4510 {
4511
4512 ;
4513 return 0;
4514 }
4515 _ACEOF
4516 if ac_fn_c_try_compile "$LINENO"; then :
4517 ac_cv_header_stdc=yes
4518 else
4519 ac_cv_header_stdc=no
4520 fi
4521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4522
4523 if test $ac_cv_header_stdc = yes; then
4524 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4526 /* end confdefs.h. */
4527 #include <string.h>
4528
4529 _ACEOF
4530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4531 $EGREP "memchr" >/dev/null 2>&1; then :
4532
4533 else
4534 ac_cv_header_stdc=no
4535 fi
4536 rm -f conftest*
4537
4538 fi
4539
4540 if test $ac_cv_header_stdc = yes; then
4541 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <stdlib.h>
4545
4546 _ACEOF
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "free" >/dev/null 2>&1; then :
4549
4550 else
4551 ac_cv_header_stdc=no
4552 fi
4553 rm -f conftest*
4554
4555 fi
4556
4557 if test $ac_cv_header_stdc = yes; then
4558 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4559 if test "$cross_compiling" = yes; then :
4560 :
4561 else
4562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4563 /* end confdefs.h. */
4564 #include <ctype.h>
4565 #include <stdlib.h>
4566 #if ((' ' & 0x0FF) == 0x020)
4567 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4568 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4569 #else
4570 # define ISLOWER(c) \
4571 (('a' <= (c) && (c) <= 'i') \
4572 || ('j' <= (c) && (c) <= 'r') \
4573 || ('s' <= (c) && (c) <= 'z'))
4574 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4575 #endif
4576
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 int
4579 main ()
4580 {
4581 int i;
4582 for (i = 0; i < 256; i++)
4583 if (XOR (islower (i), ISLOWER (i))
4584 || toupper (i) != TOUPPER (i))
4585 return 2;
4586 return 0;
4587 }
4588 _ACEOF
4589 if ac_fn_c_try_run "$LINENO"; then :
4590
4591 else
4592 ac_cv_header_stdc=no
4593 fi
4594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4595 conftest.$ac_objext conftest.beam conftest.$ac_ext
4596 fi
4597
4598 fi
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4601 $as_echo "$ac_cv_header_stdc" >&6; }
4602 if test $ac_cv_header_stdc = yes; then
4603
4604 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4605
4606 fi
4607
4608 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4609 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4610 inttypes.h stdint.h unistd.h
4611 do :
4612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4614 "
4615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4616 cat >>confdefs.h <<_ACEOF
4617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4618 _ACEOF
4619
4620 fi
4621
4622 done
4623
4624
4625
4626 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4627 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4628 MINIX=yes
4629 else
4630 MINIX=
4631 fi
4632
4633
4634 if test "$MINIX" = yes; then
4635
4636 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4637
4638
4639 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4640
4641
4642 $as_echo "#define _MINIX 1" >>confdefs.h
4643
4644 fi
4645
4646
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4648 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4649 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4650 $as_echo_n "(cached) " >&6
4651 else
4652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4653 /* end confdefs.h. */
4654
4655 # define __EXTENSIONS__ 1
4656 $ac_includes_default
4657 int
4658 main ()
4659 {
4660
4661 ;
4662 return 0;
4663 }
4664 _ACEOF
4665 if ac_fn_c_try_compile "$LINENO"; then :
4666 ac_cv_safe_to_define___extensions__=yes
4667 else
4668 ac_cv_safe_to_define___extensions__=no
4669 fi
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 fi
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4673 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4674 test $ac_cv_safe_to_define___extensions__ = yes &&
4675 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4676
4677 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4678
4679 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4680
4681 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4682
4683 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4684
4685
4686
4687 # Initialize libtool
4688 case `pwd` in
4689 *\ * | *\ *)
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4691 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4692 esac
4693
4694
4695
4696 macro_version='2.4.2'
4697 macro_revision='1.3337'
4698
4699
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709
4710
4711 ltmain="$ac_aux_dir/ltmain.sh"
4712
4713 # Make sure we can run config.sub.
4714 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4715 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4716
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4718 $as_echo_n "checking build system type... " >&6; }
4719 if ${ac_cv_build+:} false; then :
4720 $as_echo_n "(cached) " >&6
4721 else
4722 ac_build_alias=$build_alias
4723 test "x$ac_build_alias" = x &&
4724 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4725 test "x$ac_build_alias" = x &&
4726 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4727 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4728 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4729
4730 fi
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4732 $as_echo "$ac_cv_build" >&6; }
4733 case $ac_cv_build in
4734 *-*-*) ;;
4735 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4736 esac
4737 build=$ac_cv_build
4738 ac_save_IFS=$IFS; IFS='-'
4739 set x $ac_cv_build
4740 shift
4741 build_cpu=$1
4742 build_vendor=$2
4743 shift; shift
4744 # Remember, the first character of IFS is used to create $*,
4745 # except with old shells:
4746 build_os=$*
4747 IFS=$ac_save_IFS
4748 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4749
4750
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4752 $as_echo_n "checking host system type... " >&6; }
4753 if ${ac_cv_host+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4756 if test "x$host_alias" = x; then
4757 ac_cv_host=$ac_cv_build
4758 else
4759 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4760 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4761 fi
4762
4763 fi
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4765 $as_echo "$ac_cv_host" >&6; }
4766 case $ac_cv_host in
4767 *-*-*) ;;
4768 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4769 esac
4770 host=$ac_cv_host
4771 ac_save_IFS=$IFS; IFS='-'
4772 set x $ac_cv_host
4773 shift
4774 host_cpu=$1
4775 host_vendor=$2
4776 shift; shift
4777 # Remember, the first character of IFS is used to create $*,
4778 # except with old shells:
4779 host_os=$*
4780 IFS=$ac_save_IFS
4781 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4782
4783
4784 # Backslashify metacharacters that are still active within
4785 # double-quoted strings.
4786 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4787
4788 # Same as above, but do not quote variable references.
4789 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4790
4791 # Sed substitution to delay expansion of an escaped shell variable in a
4792 # double_quote_subst'ed string.
4793 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4794
4795 # Sed substitution to delay expansion of an escaped single quote.
4796 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4797
4798 # Sed substitution to avoid accidental globbing in evaled expressions
4799 no_glob_subst='s/\*/\\\*/g'
4800
4801 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4802 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4803 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4804
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4806 $as_echo_n "checking how to print strings... " >&6; }
4807 # Test print first, because it will be a builtin if present.
4808 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4809 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4810 ECHO='print -r --'
4811 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4812 ECHO='printf %s\n'
4813 else
4814 # Use this function as a fallback that always works.
4815 func_fallback_echo ()
4816 {
4817 eval 'cat <<_LTECHO_EOF
4818 $1
4819 _LTECHO_EOF'
4820 }
4821 ECHO='func_fallback_echo'
4822 fi
4823
4824 # func_echo_all arg...
4825 # Invoke $ECHO with all args, space-separated.
4826 func_echo_all ()
4827 {
4828 $ECHO ""
4829 }
4830
4831 case "$ECHO" in
4832 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4833 $as_echo "printf" >&6; } ;;
4834 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4835 $as_echo "print -r" >&6; } ;;
4836 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4837 $as_echo "cat" >&6; } ;;
4838 esac
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
4849
4850
4851
4852
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4854 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4855 if ${ac_cv_path_SED+:} false; then :
4856 $as_echo_n "(cached) " >&6
4857 else
4858 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4859 for ac_i in 1 2 3 4 5 6 7; do
4860 ac_script="$ac_script$as_nl$ac_script"
4861 done
4862 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4863 { ac_script=; unset ac_script;}
4864 if test -z "$SED"; then
4865 ac_path_SED_found=false
4866 # Loop through the user's path and test for each of PROGNAME-LIST
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4868 for as_dir in $PATH
4869 do
4870 IFS=$as_save_IFS
4871 test -z "$as_dir" && as_dir=.
4872 for ac_prog in sed gsed; do
4873 for ac_exec_ext in '' $ac_executable_extensions; do
4874 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4875 as_fn_executable_p "$ac_path_SED" || continue
4876 # Check for GNU ac_path_SED and select it if it is found.
4877 # Check for GNU $ac_path_SED
4878 case `"$ac_path_SED" --version 2>&1` in
4879 *GNU*)
4880 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4881 *)
4882 ac_count=0
4883 $as_echo_n 0123456789 >"conftest.in"
4884 while :
4885 do
4886 cat "conftest.in" "conftest.in" >"conftest.tmp"
4887 mv "conftest.tmp" "conftest.in"
4888 cp "conftest.in" "conftest.nl"
4889 $as_echo '' >> "conftest.nl"
4890 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4892 as_fn_arith $ac_count + 1 && ac_count=$as_val
4893 if test $ac_count -gt ${ac_path_SED_max-0}; then
4894 # Best one so far, save it but keep looking for a better one
4895 ac_cv_path_SED="$ac_path_SED"
4896 ac_path_SED_max=$ac_count
4897 fi
4898 # 10*(2^10) chars as input seems more than enough
4899 test $ac_count -gt 10 && break
4900 done
4901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4902 esac
4903
4904 $ac_path_SED_found && break 3
4905 done
4906 done
4907 done
4908 IFS=$as_save_IFS
4909 if test -z "$ac_cv_path_SED"; then
4910 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4911 fi
4912 else
4913 ac_cv_path_SED=$SED
4914 fi
4915
4916 fi
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4918 $as_echo "$ac_cv_path_SED" >&6; }
4919 SED="$ac_cv_path_SED"
4920 rm -f conftest.sed
4921
4922 test -z "$SED" && SED=sed
4923 Xsed="$SED -e 1s/^X//"
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933
4934
4935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4936 $as_echo_n "checking for fgrep... " >&6; }
4937 if ${ac_cv_path_FGREP+:} false; then :
4938 $as_echo_n "(cached) " >&6
4939 else
4940 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4941 then ac_cv_path_FGREP="$GREP -F"
4942 else
4943 if test -z "$FGREP"; then
4944 ac_path_FGREP_found=false
4945 # Loop through the user's path and test for each of PROGNAME-LIST
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4948 do
4949 IFS=$as_save_IFS
4950 test -z "$as_dir" && as_dir=.
4951 for ac_prog in fgrep; do
4952 for ac_exec_ext in '' $ac_executable_extensions; do
4953 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4954 as_fn_executable_p "$ac_path_FGREP" || continue
4955 # Check for GNU ac_path_FGREP and select it if it is found.
4956 # Check for GNU $ac_path_FGREP
4957 case `"$ac_path_FGREP" --version 2>&1` in
4958 *GNU*)
4959 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4960 *)
4961 ac_count=0
4962 $as_echo_n 0123456789 >"conftest.in"
4963 while :
4964 do
4965 cat "conftest.in" "conftest.in" >"conftest.tmp"
4966 mv "conftest.tmp" "conftest.in"
4967 cp "conftest.in" "conftest.nl"
4968 $as_echo 'FGREP' >> "conftest.nl"
4969 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4971 as_fn_arith $ac_count + 1 && ac_count=$as_val
4972 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4973 # Best one so far, save it but keep looking for a better one
4974 ac_cv_path_FGREP="$ac_path_FGREP"
4975 ac_path_FGREP_max=$ac_count
4976 fi
4977 # 10*(2^10) chars as input seems more than enough
4978 test $ac_count -gt 10 && break
4979 done
4980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4981 esac
4982
4983 $ac_path_FGREP_found && break 3
4984 done
4985 done
4986 done
4987 IFS=$as_save_IFS
4988 if test -z "$ac_cv_path_FGREP"; then
4989 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4990 fi
4991 else
4992 ac_cv_path_FGREP=$FGREP
4993 fi
4994
4995 fi
4996 fi
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4998 $as_echo "$ac_cv_path_FGREP" >&6; }
4999 FGREP="$ac_cv_path_FGREP"
5000
5001
5002 test -z "$GREP" && GREP=grep
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017
5018
5019
5020
5021
5022 # Check whether --with-gnu-ld was given.
5023 if test "${with_gnu_ld+set}" = set; then :
5024 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5025 else
5026 with_gnu_ld=no
5027 fi
5028
5029 ac_prog=ld
5030 if test "$GCC" = yes; then
5031 # Check if gcc -print-prog-name=ld gives a path.
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5033 $as_echo_n "checking for ld used by $CC... " >&6; }
5034 case $host in
5035 *-*-mingw*)
5036 # gcc leaves a trailing carriage return which upsets mingw
5037 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5038 *)
5039 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5040 esac
5041 case $ac_prog in
5042 # Accept absolute paths.
5043 [\\/]* | ?:[\\/]*)
5044 re_direlt='/[^/][^/]*/\.\./'
5045 # Canonicalize the pathname of ld
5046 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5047 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5048 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5049 done
5050 test -z "$LD" && LD="$ac_prog"
5051 ;;
5052 "")
5053 # If it fails, then pretend we aren't using GCC.
5054 ac_prog=ld
5055 ;;
5056 *)
5057 # If it is relative, then search for the first ld in PATH.
5058 with_gnu_ld=unknown
5059 ;;
5060 esac
5061 elif test "$with_gnu_ld" = yes; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5063 $as_echo_n "checking for GNU ld... " >&6; }
5064 else
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5066 $as_echo_n "checking for non-GNU ld... " >&6; }
5067 fi
5068 if ${lt_cv_path_LD+:} false; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -z "$LD"; then
5072 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5073 for ac_dir in $PATH; do
5074 IFS="$lt_save_ifs"
5075 test -z "$ac_dir" && ac_dir=.
5076 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5077 lt_cv_path_LD="$ac_dir/$ac_prog"
5078 # Check to see if the program is GNU ld. I'd rather use --version,
5079 # but apparently some variants of GNU ld only accept -v.
5080 # Break only if it was the GNU/non-GNU ld that we prefer.
5081 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5082 *GNU* | *'with BFD'*)
5083 test "$with_gnu_ld" != no && break
5084 ;;
5085 *)
5086 test "$with_gnu_ld" != yes && break
5087 ;;
5088 esac
5089 fi
5090 done
5091 IFS="$lt_save_ifs"
5092 else
5093 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5094 fi
5095 fi
5096
5097 LD="$lt_cv_path_LD"
5098 if test -n "$LD"; then
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5100 $as_echo "$LD" >&6; }
5101 else
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5103 $as_echo "no" >&6; }
5104 fi
5105 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5107 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5108 if ${lt_cv_prog_gnu_ld+:} false; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5112 case `$LD -v 2>&1 </dev/null` in
5113 *GNU* | *'with BFD'*)
5114 lt_cv_prog_gnu_ld=yes
5115 ;;
5116 *)
5117 lt_cv_prog_gnu_ld=no
5118 ;;
5119 esac
5120 fi
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5122 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5123 with_gnu_ld=$lt_cv_prog_gnu_ld
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5134 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5135 if ${lt_cv_path_NM+:} false; then :
5136 $as_echo_n "(cached) " >&6
5137 else
5138 if test -n "$NM"; then
5139 # Let the user override the test.
5140 lt_cv_path_NM="$NM"
5141 else
5142 lt_nm_to_check="${ac_tool_prefix}nm"
5143 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5144 lt_nm_to_check="$lt_nm_to_check nm"
5145 fi
5146 for lt_tmp_nm in $lt_nm_to_check; do
5147 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5148 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5149 IFS="$lt_save_ifs"
5150 test -z "$ac_dir" && ac_dir=.
5151 tmp_nm="$ac_dir/$lt_tmp_nm"
5152 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5153 # Check to see if the nm accepts a BSD-compat flag.
5154 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5155 # nm: unknown option "B" ignored
5156 # Tru64's nm complains that /dev/null is an invalid object file
5157 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5158 */dev/null* | *'Invalid file or object type'*)
5159 lt_cv_path_NM="$tmp_nm -B"
5160 break
5161 ;;
5162 *)
5163 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5164 */dev/null*)
5165 lt_cv_path_NM="$tmp_nm -p"
5166 break
5167 ;;
5168 *)
5169 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5170 continue # so that we can try to find one that supports BSD flags
5171 ;;
5172 esac
5173 ;;
5174 esac
5175 fi
5176 done
5177 IFS="$lt_save_ifs"
5178 done
5179 : ${lt_cv_path_NM=no}
5180 fi
5181 fi
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5183 $as_echo "$lt_cv_path_NM" >&6; }
5184 if test "$lt_cv_path_NM" != "no"; then
5185 NM="$lt_cv_path_NM"
5186 else
5187 # Didn't find any BSD compatible name lister, look for dumpbin.
5188 if test -n "$DUMPBIN"; then :
5189 # Let the user override the test.
5190 else
5191 if test -n "$ac_tool_prefix"; then
5192 for ac_prog in dumpbin "link -dump"
5193 do
5194 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5195 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197 $as_echo_n "checking for $ac_word... " >&6; }
5198 if ${ac_cv_prog_DUMPBIN+:} false; then :
5199 $as_echo_n "(cached) " >&6
5200 else
5201 if test -n "$DUMPBIN"; then
5202 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5203 else
5204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5205 for as_dir in $PATH
5206 do
5207 IFS=$as_save_IFS
5208 test -z "$as_dir" && as_dir=.
5209 for ac_exec_ext in '' $ac_executable_extensions; do
5210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5211 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5213 break 2
5214 fi
5215 done
5216 done
5217 IFS=$as_save_IFS
5218
5219 fi
5220 fi
5221 DUMPBIN=$ac_cv_prog_DUMPBIN
5222 if test -n "$DUMPBIN"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5224 $as_echo "$DUMPBIN" >&6; }
5225 else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5227 $as_echo "no" >&6; }
5228 fi
5229
5230
5231 test -n "$DUMPBIN" && break
5232 done
5233 fi
5234 if test -z "$DUMPBIN"; then
5235 ac_ct_DUMPBIN=$DUMPBIN
5236 for ac_prog in dumpbin "link -dump"
5237 do
5238 # Extract the first word of "$ac_prog", so it can be a program name with args.
5239 set dummy $ac_prog; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$ac_ct_DUMPBIN"; then
5246 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5266 if test -n "$ac_ct_DUMPBIN"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5268 $as_echo "$ac_ct_DUMPBIN" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 test -n "$ac_ct_DUMPBIN" && break
5276 done
5277
5278 if test "x$ac_ct_DUMPBIN" = x; then
5279 DUMPBIN=":"
5280 else
5281 case $cross_compiling:$ac_tool_warned in
5282 yes:)
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5285 ac_tool_warned=yes ;;
5286 esac
5287 DUMPBIN=$ac_ct_DUMPBIN
5288 fi
5289 fi
5290
5291 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5292 *COFF*)
5293 DUMPBIN="$DUMPBIN -symbols"
5294 ;;
5295 *)
5296 DUMPBIN=:
5297 ;;
5298 esac
5299 fi
5300
5301 if test "$DUMPBIN" != ":"; then
5302 NM="$DUMPBIN"
5303 fi
5304 fi
5305 test -z "$NM" && NM=nm
5306
5307
5308
5309
5310
5311
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5313 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5314 if ${lt_cv_nm_interface+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316 else
5317 lt_cv_nm_interface="BSD nm"
5318 echo "int some_variable = 0;" > conftest.$ac_ext
5319 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5320 (eval "$ac_compile" 2>conftest.err)
5321 cat conftest.err >&5
5322 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5323 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5324 cat conftest.err >&5
5325 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5326 cat conftest.out >&5
5327 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5328 lt_cv_nm_interface="MS dumpbin"
5329 fi
5330 rm -f conftest*
5331 fi
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5333 $as_echo "$lt_cv_nm_interface" >&6; }
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5336 $as_echo_n "checking whether ln -s works... " >&6; }
5337 LN_S=$as_ln_s
5338 if test "$LN_S" = "ln -s"; then
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5340 $as_echo "yes" >&6; }
5341 else
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5343 $as_echo "no, using $LN_S" >&6; }
5344 fi
5345
5346 # find the maximum length of command line arguments
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5348 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5349 if ${lt_cv_sys_max_cmd_len+:} false; then :
5350 $as_echo_n "(cached) " >&6
5351 else
5352 i=0
5353 teststring="ABCD"
5354
5355 case $build_os in
5356 msdosdjgpp*)
5357 # On DJGPP, this test can blow up pretty badly due to problems in libc
5358 # (any single argument exceeding 2000 bytes causes a buffer overrun
5359 # during glob expansion). Even if it were fixed, the result of this
5360 # check would be larger than it should be.
5361 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5362 ;;
5363
5364 gnu*)
5365 # Under GNU Hurd, this test is not required because there is
5366 # no limit to the length of command line arguments.
5367 # Libtool will interpret -1 as no limit whatsoever
5368 lt_cv_sys_max_cmd_len=-1;
5369 ;;
5370
5371 cygwin* | mingw* | cegcc*)
5372 # On Win9x/ME, this test blows up -- it succeeds, but takes
5373 # about 5 minutes as the teststring grows exponentially.
5374 # Worse, since 9x/ME are not pre-emptively multitasking,
5375 # you end up with a "frozen" computer, even though with patience
5376 # the test eventually succeeds (with a max line length of 256k).
5377 # Instead, let's just punt: use the minimum linelength reported by
5378 # all of the supported platforms: 8192 (on NT/2K/XP).
5379 lt_cv_sys_max_cmd_len=8192;
5380 ;;
5381
5382 mint*)
5383 # On MiNT this can take a long time and run out of memory.
5384 lt_cv_sys_max_cmd_len=8192;
5385 ;;
5386
5387 amigaos*)
5388 # On AmigaOS with pdksh, this test takes hours, literally.
5389 # So we just punt and use a minimum line length of 8192.
5390 lt_cv_sys_max_cmd_len=8192;
5391 ;;
5392
5393 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5394 # This has been around since 386BSD, at least. Likely further.
5395 if test -x /sbin/sysctl; then
5396 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5397 elif test -x /usr/sbin/sysctl; then
5398 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5399 else
5400 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5401 fi
5402 # And add a safety zone
5403 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5404 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5405 ;;
5406
5407 interix*)
5408 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5409 lt_cv_sys_max_cmd_len=196608
5410 ;;
5411
5412 os2*)
5413 # The test takes a long time on OS/2.
5414 lt_cv_sys_max_cmd_len=8192
5415 ;;
5416
5417 osf*)
5418 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5419 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5420 # nice to cause kernel panics so lets avoid the loop below.
5421 # First set a reasonable default.
5422 lt_cv_sys_max_cmd_len=16384
5423 #
5424 if test -x /sbin/sysconfig; then
5425 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5426 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5427 esac
5428 fi
5429 ;;
5430 sco3.2v5*)
5431 lt_cv_sys_max_cmd_len=102400
5432 ;;
5433 sysv5* | sco5v6* | sysv4.2uw2*)
5434 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5435 if test -n "$kargmax"; then
5436 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5437 else
5438 lt_cv_sys_max_cmd_len=32768
5439 fi
5440 ;;
5441 *)
5442 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5443 if test -n "$lt_cv_sys_max_cmd_len"; then
5444 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5445 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5446 else
5447 # Make teststring a little bigger before we do anything with it.
5448 # a 1K string should be a reasonable start.
5449 for i in 1 2 3 4 5 6 7 8 ; do
5450 teststring=$teststring$teststring
5451 done
5452 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5453 # If test is not a shell built-in, we'll probably end up computing a
5454 # maximum length that is only half of the actual maximum length, but
5455 # we can't tell.
5456 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5457 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5458 test $i != 17 # 1/2 MB should be enough
5459 do
5460 i=`expr $i + 1`
5461 teststring=$teststring$teststring
5462 done
5463 # Only check the string length outside the loop.
5464 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5465 teststring=
5466 # Add a significant safety factor because C++ compilers can tack on
5467 # massive amounts of additional arguments before passing them to the
5468 # linker. It appears as though 1/2 is a usable value.
5469 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5470 fi
5471 ;;
5472 esac
5473
5474 fi
5475
5476 if test -n $lt_cv_sys_max_cmd_len ; then
5477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5478 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5479 else
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5481 $as_echo "none" >&6; }
5482 fi
5483 max_cmd_len=$lt_cv_sys_max_cmd_len
5484
5485
5486
5487
5488
5489
5490 : ${CP="cp -f"}
5491 : ${MV="mv -f"}
5492 : ${RM="rm -f"}
5493
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5495 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5496 # Try some XSI features
5497 xsi_shell=no
5498 ( _lt_dummy="a/b/c"
5499 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5500 = c,a/b,b/c, \
5501 && eval 'test $(( 1 + 1 )) -eq 2 \
5502 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5503 && xsi_shell=yes
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5505 $as_echo "$xsi_shell" >&6; }
5506
5507
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5509 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5510 lt_shell_append=no
5511 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5512 >/dev/null 2>&1 \
5513 && lt_shell_append=yes
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5515 $as_echo "$lt_shell_append" >&6; }
5516
5517
5518 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5519 lt_unset=unset
5520 else
5521 lt_unset=false
5522 fi
5523
5524
5525
5526
5527
5528 # test EBCDIC or ASCII
5529 case `echo X|tr X '\101'` in
5530 A) # ASCII based system
5531 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5532 lt_SP2NL='tr \040 \012'
5533 lt_NL2SP='tr \015\012 \040\040'
5534 ;;
5535 *) # EBCDIC based system
5536 lt_SP2NL='tr \100 \n'
5537 lt_NL2SP='tr \r\n \100\100'
5538 ;;
5539 esac
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5550 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5551 if ${lt_cv_to_host_file_cmd+:} false; then :
5552 $as_echo_n "(cached) " >&6
5553 else
5554 case $host in
5555 *-*-mingw* )
5556 case $build in
5557 *-*-mingw* ) # actually msys
5558 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5559 ;;
5560 *-*-cygwin* )
5561 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5562 ;;
5563 * ) # otherwise, assume *nix
5564 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5565 ;;
5566 esac
5567 ;;
5568 *-*-cygwin* )
5569 case $build in
5570 *-*-mingw* ) # actually msys
5571 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5572 ;;
5573 *-*-cygwin* )
5574 lt_cv_to_host_file_cmd=func_convert_file_noop
5575 ;;
5576 * ) # otherwise, assume *nix
5577 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5578 ;;
5579 esac
5580 ;;
5581 * ) # unhandled hosts (and "normal" native builds)
5582 lt_cv_to_host_file_cmd=func_convert_file_noop
5583 ;;
5584 esac
5585
5586 fi
5587
5588 to_host_file_cmd=$lt_cv_to_host_file_cmd
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5590 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5591
5592
5593
5594
5595
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5597 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5598 if ${lt_cv_to_tool_file_cmd+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 #assume ordinary cross tools, or native build.
5602 lt_cv_to_tool_file_cmd=func_convert_file_noop
5603 case $host in
5604 *-*-mingw* )
5605 case $build in
5606 *-*-mingw* ) # actually msys
5607 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5608 ;;
5609 esac
5610 ;;
5611 esac
5612
5613 fi
5614
5615 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5617 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5618
5619
5620
5621
5622
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5624 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5625 if ${lt_cv_ld_reload_flag+:} false; then :
5626 $as_echo_n "(cached) " >&6
5627 else
5628 lt_cv_ld_reload_flag='-r'
5629 fi
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5631 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5632 reload_flag=$lt_cv_ld_reload_flag
5633 case $reload_flag in
5634 "" | " "*) ;;
5635 *) reload_flag=" $reload_flag" ;;
5636 esac
5637 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5638 case $host_os in
5639 cygwin* | mingw* | pw32* | cegcc*)
5640 if test "$GCC" != yes; then
5641 reload_cmds=false
5642 fi
5643 ;;
5644 darwin*)
5645 if test "$GCC" = yes; then
5646 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5647 else
5648 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5649 fi
5650 ;;
5651 esac
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 if test -n "$ac_tool_prefix"; then
5662 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5663 set dummy ${ac_tool_prefix}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_OBJDUMP+:} false; then :
5667 $as_echo_n "(cached) " >&6
5668 else
5669 if test -n "$OBJDUMP"; then
5670 ac_cv_prog_OBJDUMP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5679 ac_cv_prog_OBJDUMP="${ac_tool_prefix}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 OBJDUMP=$ac_cv_prog_OBJDUMP
5690 if test -n "$OBJDUMP"; then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5692 $as_echo "$OBJDUMP" >&6; }
5693 else
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5695 $as_echo "no" >&6; }
5696 fi
5697
5698
5699 fi
5700 if test -z "$ac_cv_prog_OBJDUMP"; then
5701 ac_ct_OBJDUMP=$OBJDUMP
5702 # Extract the first word of "objdump", so it can be a program name with args.
5703 set dummy objdump; ac_word=$2
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5705 $as_echo_n "checking for $ac_word... " >&6; }
5706 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5707 $as_echo_n "(cached) " >&6
5708 else
5709 if test -n "$ac_ct_OBJDUMP"; then
5710 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715 IFS=$as_save_IFS
5716 test -z "$as_dir" && as_dir=.
5717 for ac_exec_ext in '' $ac_executable_extensions; do
5718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5719 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5721 break 2
5722 fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5730 if test -n "$ac_ct_OBJDUMP"; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5732 $as_echo "$ac_ct_OBJDUMP" >&6; }
5733 else
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5735 $as_echo "no" >&6; }
5736 fi
5737
5738 if test "x$ac_ct_OBJDUMP" = x; then
5739 OBJDUMP="false"
5740 else
5741 case $cross_compiling:$ac_tool_warned in
5742 yes:)
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5744 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5745 ac_tool_warned=yes ;;
5746 esac
5747 OBJDUMP=$ac_ct_OBJDUMP
5748 fi
5749 else
5750 OBJDUMP="$ac_cv_prog_OBJDUMP"
5751 fi
5752
5753 test -z "$OBJDUMP" && OBJDUMP=objdump
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5764 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5765 if ${lt_cv_deplibs_check_method+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 lt_cv_file_magic_cmd='$MAGIC_CMD'
5769 lt_cv_file_magic_test_file=
5770 lt_cv_deplibs_check_method='unknown'
5771 # Need to set the preceding variable on all platforms that support
5772 # interlibrary dependencies.
5773 # 'none' -- dependencies not supported.
5774 # `unknown' -- same as none, but documents that we really don't know.
5775 # 'pass_all' -- all dependencies passed with no checks.
5776 # 'test_compile' -- check by making test program.
5777 # 'file_magic [[regex]]' -- check by looking for files in library path
5778 # which responds to the $file_magic_cmd with a given extended regex.
5779 # If you have `file' or equivalent on your system and you're not sure
5780 # whether `pass_all' will *always* work, you probably want this one.
5781
5782 case $host_os in
5783 aix[4-9]*)
5784 lt_cv_deplibs_check_method=pass_all
5785 ;;
5786
5787 beos*)
5788 lt_cv_deplibs_check_method=pass_all
5789 ;;
5790
5791 bsdi[45]*)
5792 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5793 lt_cv_file_magic_cmd='/usr/bin/file -L'
5794 lt_cv_file_magic_test_file=/shlib/libc.so
5795 ;;
5796
5797 cygwin*)
5798 # func_win32_libid is a shell function defined in ltmain.sh
5799 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5800 lt_cv_file_magic_cmd='func_win32_libid'
5801 ;;
5802
5803 mingw* | pw32*)
5804 # Base MSYS/MinGW do not provide the 'file' command needed by
5805 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5806 # unless we find 'file', for example because we are cross-compiling.
5807 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5808 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5809 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5810 lt_cv_file_magic_cmd='func_win32_libid'
5811 else
5812 # Keep this pattern in sync with the one in func_win32_libid.
5813 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5814 lt_cv_file_magic_cmd='$OBJDUMP -f'
5815 fi
5816 ;;
5817
5818 cegcc*)
5819 # use the weaker test based on 'objdump'. See mingw*.
5820 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5821 lt_cv_file_magic_cmd='$OBJDUMP -f'
5822 ;;
5823
5824 darwin* | rhapsody*)
5825 lt_cv_deplibs_check_method=pass_all
5826 ;;
5827
5828 freebsd* | dragonfly*)
5829 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5830 case $host_cpu in
5831 i*86 )
5832 # Not sure whether the presence of OpenBSD here was a mistake.
5833 # Let's accept both of them until this is cleared up.
5834 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5835 lt_cv_file_magic_cmd=/usr/bin/file
5836 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5837 ;;
5838 esac
5839 else
5840 lt_cv_deplibs_check_method=pass_all
5841 fi
5842 ;;
5843
5844 gnu*)
5845 lt_cv_deplibs_check_method=pass_all
5846 ;;
5847
5848 haiku*)
5849 lt_cv_deplibs_check_method=pass_all
5850 ;;
5851
5852 hpux10.20* | hpux11*)
5853 lt_cv_file_magic_cmd=/usr/bin/file
5854 case $host_cpu in
5855 ia64*)
5856 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5857 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5858 ;;
5859 hppa*64*)
5860 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]'
5861 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5862 ;;
5863 *)
5864 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5865 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5866 ;;
5867 esac
5868 ;;
5869
5870 interix[3-9]*)
5871 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5872 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5873 ;;
5874
5875 irix5* | irix6* | nonstopux*)
5876 case $LD in
5877 *-32|*"-32 ") libmagic=32-bit;;
5878 *-n32|*"-n32 ") libmagic=N32;;
5879 *-64|*"-64 ") libmagic=64-bit;;
5880 *) libmagic=never-match;;
5881 esac
5882 lt_cv_deplibs_check_method=pass_all
5883 ;;
5884
5885 # This must be glibc/ELF.
5886 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5887 lt_cv_deplibs_check_method=pass_all
5888 ;;
5889
5890 netbsd* | netbsdelf*-gnu)
5891 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5892 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5893 else
5894 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5895 fi
5896 ;;
5897
5898 newos6*)
5899 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5900 lt_cv_file_magic_cmd=/usr/bin/file
5901 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5902 ;;
5903
5904 *nto* | *qnx*)
5905 lt_cv_deplibs_check_method=pass_all
5906 ;;
5907
5908 openbsd*)
5909 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5910 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5911 else
5912 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5913 fi
5914 ;;
5915
5916 osf3* | osf4* | osf5*)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
5920 rdos*)
5921 lt_cv_deplibs_check_method=pass_all
5922 ;;
5923
5924 solaris*)
5925 lt_cv_deplibs_check_method=pass_all
5926 ;;
5927
5928 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5929 lt_cv_deplibs_check_method=pass_all
5930 ;;
5931
5932 sysv4 | sysv4.3*)
5933 case $host_vendor in
5934 motorola)
5935 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]'
5936 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5937 ;;
5938 ncr)
5939 lt_cv_deplibs_check_method=pass_all
5940 ;;
5941 sequent)
5942 lt_cv_file_magic_cmd='/bin/file'
5943 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5944 ;;
5945 sni)
5946 lt_cv_file_magic_cmd='/bin/file'
5947 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5948 lt_cv_file_magic_test_file=/lib/libc.so
5949 ;;
5950 siemens)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953 pc)
5954 lt_cv_deplibs_check_method=pass_all
5955 ;;
5956 esac
5957 ;;
5958
5959 tpf*)
5960 lt_cv_deplibs_check_method=pass_all
5961 ;;
5962 esac
5963
5964 fi
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5966 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5967
5968 file_magic_glob=
5969 want_nocaseglob=no
5970 if test "$build" = "$host"; then
5971 case $host_os in
5972 mingw* | pw32*)
5973 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5974 want_nocaseglob=yes
5975 else
5976 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5977 fi
5978 ;;
5979 esac
5980 fi
5981
5982 file_magic_cmd=$lt_cv_file_magic_cmd
5983 deplibs_check_method=$lt_cv_deplibs_check_method
5984 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5985
5986
5987
5988
5989
5990
5991
5992
5993
5994
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004
6005
6006
6007 if test -n "$ac_tool_prefix"; then
6008 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6009 set dummy ${ac_tool_prefix}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_DLLTOOL+:} false; then :
6013 $as_echo_n "(cached) " >&6
6014 else
6015 if test -n "$DLLTOOL"; then
6016 ac_cv_prog_DLLTOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6025 ac_cv_prog_DLLTOOL="${ac_tool_prefix}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 DLLTOOL=$ac_cv_prog_DLLTOOL
6036 if test -n "$DLLTOOL"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6038 $as_echo "$DLLTOOL" >&6; }
6039 else
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6042 fi
6043
6044
6045 fi
6046 if test -z "$ac_cv_prog_DLLTOOL"; then
6047 ac_ct_DLLTOOL=$DLLTOOL
6048 # Extract the first word of "dlltool", so it can be a program name with args.
6049 set dummy dlltool; ac_word=$2
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6051 $as_echo_n "checking for $ac_word... " >&6; }
6052 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6053 $as_echo_n "(cached) " >&6
6054 else
6055 if test -n "$ac_ct_DLLTOOL"; then
6056 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6057 else
6058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6059 for as_dir in $PATH
6060 do
6061 IFS=$as_save_IFS
6062 test -z "$as_dir" && as_dir=.
6063 for ac_exec_ext in '' $ac_executable_extensions; do
6064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6065 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6067 break 2
6068 fi
6069 done
6070 done
6071 IFS=$as_save_IFS
6072
6073 fi
6074 fi
6075 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6076 if test -n "$ac_ct_DLLTOOL"; then
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6078 $as_echo "$ac_ct_DLLTOOL" >&6; }
6079 else
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6081 $as_echo "no" >&6; }
6082 fi
6083
6084 if test "x$ac_ct_DLLTOOL" = x; then
6085 DLLTOOL="false"
6086 else
6087 case $cross_compiling:$ac_tool_warned in
6088 yes:)
6089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6090 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6091 ac_tool_warned=yes ;;
6092 esac
6093 DLLTOOL=$ac_ct_DLLTOOL
6094 fi
6095 else
6096 DLLTOOL="$ac_cv_prog_DLLTOOL"
6097 fi
6098
6099 test -z "$DLLTOOL" && DLLTOOL=dlltool
6100
6101
6102
6103
6104
6105
6106
6107
6108
6109
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6111 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6112 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6113 $as_echo_n "(cached) " >&6
6114 else
6115 lt_cv_sharedlib_from_linklib_cmd='unknown'
6116
6117 case $host_os in
6118 cygwin* | mingw* | pw32* | cegcc*)
6119 # two different shell functions defined in ltmain.sh
6120 # decide which to use based on capabilities of $DLLTOOL
6121 case `$DLLTOOL --help 2>&1` in
6122 *--identify-strict*)
6123 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6124 ;;
6125 *)
6126 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6127 ;;
6128 esac
6129 ;;
6130 *)
6131 # fallback: assume linklib IS sharedlib
6132 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6133 ;;
6134 esac
6135
6136 fi
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6138 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6139 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6140 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6141
6142
6143
6144
6145
6146
6147
6148 if test -n "$ac_tool_prefix"; then
6149 for ac_prog in ar
6150 do
6151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6154 $as_echo_n "checking for $ac_word... " >&6; }
6155 if ${ac_cv_prog_AR+:} false; then :
6156 $as_echo_n "(cached) " >&6
6157 else
6158 if test -n "$AR"; then
6159 ac_cv_prog_AR="$AR" # Let the user override the test.
6160 else
6161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6162 for as_dir in $PATH
6163 do
6164 IFS=$as_save_IFS
6165 test -z "$as_dir" && as_dir=.
6166 for ac_exec_ext in '' $ac_executable_extensions; do
6167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6168 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6170 break 2
6171 fi
6172 done
6173 done
6174 IFS=$as_save_IFS
6175
6176 fi
6177 fi
6178 AR=$ac_cv_prog_AR
6179 if test -n "$AR"; then
6180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6181 $as_echo "$AR" >&6; }
6182 else
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6184 $as_echo "no" >&6; }
6185 fi
6186
6187
6188 test -n "$AR" && break
6189 done
6190 fi
6191 if test -z "$AR"; then
6192 ac_ct_AR=$AR
6193 for ac_prog in ar
6194 do
6195 # Extract the first word of "$ac_prog", so it can be a program name with args.
6196 set dummy $ac_prog; ac_word=$2
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6198 $as_echo_n "checking for $ac_word... " >&6; }
6199 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6200 $as_echo_n "(cached) " >&6
6201 else
6202 if test -n "$ac_ct_AR"; then
6203 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6204 else
6205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6206 for as_dir in $PATH
6207 do
6208 IFS=$as_save_IFS
6209 test -z "$as_dir" && as_dir=.
6210 for ac_exec_ext in '' $ac_executable_extensions; do
6211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6212 ac_cv_prog_ac_ct_AR="$ac_prog"
6213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6214 break 2
6215 fi
6216 done
6217 done
6218 IFS=$as_save_IFS
6219
6220 fi
6221 fi
6222 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6223 if test -n "$ac_ct_AR"; then
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6225 $as_echo "$ac_ct_AR" >&6; }
6226 else
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6228 $as_echo "no" >&6; }
6229 fi
6230
6231
6232 test -n "$ac_ct_AR" && break
6233 done
6234
6235 if test "x$ac_ct_AR" = x; then
6236 AR="false"
6237 else
6238 case $cross_compiling:$ac_tool_warned in
6239 yes:)
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242 ac_tool_warned=yes ;;
6243 esac
6244 AR=$ac_ct_AR
6245 fi
6246 fi
6247
6248 : ${AR=ar}
6249 : ${AR_FLAGS=cru}
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6262 $as_echo_n "checking for archiver @FILE support... " >&6; }
6263 if ${lt_cv_ar_at_file+:} false; then :
6264 $as_echo_n "(cached) " >&6
6265 else
6266 lt_cv_ar_at_file=no
6267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6268 /* end confdefs.h. */
6269
6270 int
6271 main ()
6272 {
6273
6274 ;
6275 return 0;
6276 }
6277 _ACEOF
6278 if ac_fn_c_try_compile "$LINENO"; then :
6279 echo conftest.$ac_objext > conftest.lst
6280 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6281 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6282 (eval $lt_ar_try) 2>&5
6283 ac_status=$?
6284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6285 test $ac_status = 0; }
6286 if test "$ac_status" -eq 0; then
6287 # Ensure the archiver fails upon bogus file names.
6288 rm -f conftest.$ac_objext libconftest.a
6289 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6290 (eval $lt_ar_try) 2>&5
6291 ac_status=$?
6292 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6293 test $ac_status = 0; }
6294 if test "$ac_status" -ne 0; then
6295 lt_cv_ar_at_file=@
6296 fi
6297 fi
6298 rm -f conftest.* libconftest.a
6299
6300 fi
6301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6302
6303 fi
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6305 $as_echo "$lt_cv_ar_at_file" >&6; }
6306
6307 if test "x$lt_cv_ar_at_file" = xno; then
6308 archiver_list_spec=
6309 else
6310 archiver_list_spec=$lt_cv_ar_at_file
6311 fi
6312
6313
6314
6315
6316
6317
6318
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}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_STRIP+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$STRIP"; then
6328 ac_cv_prog_STRIP="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_STRIP="${ac_tool_prefix}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 STRIP=$ac_cv_prog_STRIP
6348 if test -n "$STRIP"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6350 $as_echo "$STRIP" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6354 fi
6355
6356
6357 fi
6358 if test -z "$ac_cv_prog_STRIP"; then
6359 ac_ct_STRIP=$STRIP
6360 # Extract the first word of "strip", so it can be a program name with args.
6361 set dummy strip; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 if test -n "$ac_ct_STRIP"; then
6368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6372 do
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_STRIP="strip"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6380 fi
6381 done
6382 done
6383 IFS=$as_save_IFS
6384
6385 fi
6386 fi
6387 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6388 if test -n "$ac_ct_STRIP"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6390 $as_echo "$ac_ct_STRIP" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6394 fi
6395
6396 if test "x$ac_ct_STRIP" = x; then
6397 STRIP=":"
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405 STRIP=$ac_ct_STRIP
6406 fi
6407 else
6408 STRIP="$ac_cv_prog_STRIP"
6409 fi
6410
6411 test -z "$STRIP" && STRIP=:
6412
6413
6414
6415
6416
6417
6418 if test -n "$ac_tool_prefix"; then
6419 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6420 set dummy ${ac_tool_prefix}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_RANLIB+:} false; then :
6424 $as_echo_n "(cached) " >&6
6425 else
6426 if test -n "$RANLIB"; then
6427 ac_cv_prog_RANLIB="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6436 ac_cv_prog_RANLIB="${ac_tool_prefix}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 RANLIB=$ac_cv_prog_RANLIB
6447 if test -n "$RANLIB"; then
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6449 $as_echo "$RANLIB" >&6; }
6450 else
6451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6452 $as_echo "no" >&6; }
6453 fi
6454
6455
6456 fi
6457 if test -z "$ac_cv_prog_RANLIB"; then
6458 ac_ct_RANLIB=$RANLIB
6459 # Extract the first word of "ranlib", so it can be a program name with args.
6460 set dummy ranlib; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$ac_ct_RANLIB"; then
6467 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6471 do
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6476 ac_cv_prog_ac_ct_RANLIB="ranlib"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6479 fi
6480 done
6481 done
6482 IFS=$as_save_IFS
6483
6484 fi
6485 fi
6486 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6487 if test -n "$ac_ct_RANLIB"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6489 $as_echo "$ac_ct_RANLIB" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6493 fi
6494
6495 if test "x$ac_ct_RANLIB" = x; then
6496 RANLIB=":"
6497 else
6498 case $cross_compiling:$ac_tool_warned in
6499 yes:)
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6502 ac_tool_warned=yes ;;
6503 esac
6504 RANLIB=$ac_ct_RANLIB
6505 fi
6506 else
6507 RANLIB="$ac_cv_prog_RANLIB"
6508 fi
6509
6510 test -z "$RANLIB" && RANLIB=:
6511
6512
6513
6514
6515
6516
6517 # Determine commands to create old-style static archives.
6518 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6519 old_postinstall_cmds='chmod 644 $oldlib'
6520 old_postuninstall_cmds=
6521
6522 if test -n "$RANLIB"; then
6523 case $host_os in
6524 openbsd*)
6525 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6526 ;;
6527 *)
6528 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6529 ;;
6530 esac
6531 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6532 fi
6533
6534 case $host_os in
6535 darwin*)
6536 lock_old_archive_extraction=yes ;;
6537 *)
6538 lock_old_archive_extraction=no ;;
6539 esac
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579 # If no C compiler was specified, use CC.
6580 LTCC=${LTCC-"$CC"}
6581
6582 # If no C compiler flags were specified, use CFLAGS.
6583 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6584
6585 # Allow CC to be a program name with arguments.
6586 compiler=$CC
6587
6588
6589 # Check for command to grab the raw symbol name followed by C symbol from nm.
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6591 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6592 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6593 $as_echo_n "(cached) " >&6
6594 else
6595
6596 # These are sane defaults that work on at least a few old systems.
6597 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6598
6599 # Character class describing NM global symbol codes.
6600 symcode='[BCDEGRST]'
6601
6602 # Regexp to match symbols that can be accessed directly from C.
6603 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6604
6605 # Define system-specific variables.
6606 case $host_os in
6607 aix*)
6608 symcode='[BCDT]'
6609 ;;
6610 cygwin* | mingw* | pw32* | cegcc*)
6611 symcode='[ABCDGISTW]'
6612 ;;
6613 hpux*)
6614 if test "$host_cpu" = ia64; then
6615 symcode='[ABCDEGRST]'
6616 fi
6617 ;;
6618 irix* | nonstopux*)
6619 symcode='[BCDEGRST]'
6620 ;;
6621 osf*)
6622 symcode='[BCDEGQRST]'
6623 ;;
6624 solaris*)
6625 symcode='[BDRT]'
6626 ;;
6627 sco3.2v5*)
6628 symcode='[DT]'
6629 ;;
6630 sysv4.2uw2*)
6631 symcode='[DT]'
6632 ;;
6633 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6634 symcode='[ABDT]'
6635 ;;
6636 sysv4)
6637 symcode='[DFNSTU]'
6638 ;;
6639 esac
6640
6641 # If we're using GNU nm, then use its standard symbol codes.
6642 case `$NM -V 2>&1` in
6643 *GNU* | *'with BFD'*)
6644 symcode='[ABCDGIRSTW]' ;;
6645 esac
6646
6647 # Transform an extracted symbol line into a proper C declaration.
6648 # Some systems (esp. on ia64) link data and code symbols differently,
6649 # so use this general approach.
6650 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6651
6652 # Transform an extracted symbol line into symbol name and symbol address
6653 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6654 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'"
6655
6656 # Handle CRLF in mingw tool chain
6657 opt_cr=
6658 case $build_os in
6659 mingw*)
6660 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6661 ;;
6662 esac
6663
6664 # Try without a prefix underscore, then with it.
6665 for ac_symprfx in "" "_"; do
6666
6667 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6668 symxfrm="\\1 $ac_symprfx\\2 \\2"
6669
6670 # Write the raw and C identifiers.
6671 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6672 # Fake it for dumpbin and say T for any non-static function
6673 # and D for any global variable.
6674 # Also find C++ and __fastcall symbols from MSVC++,
6675 # which start with @ or ?.
6676 lt_cv_sys_global_symbol_pipe="$AWK '"\
6677 " {last_section=section; section=\$ 3};"\
6678 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6679 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6680 " \$ 0!~/External *\|/{next};"\
6681 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6682 " {if(hide[section]) next};"\
6683 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6684 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6685 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6686 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6687 " ' prfx=^$ac_symprfx"
6688 else
6689 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6690 fi
6691 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6692
6693 # Check to see that the pipe works correctly.
6694 pipe_works=no
6695
6696 rm -f conftest*
6697 cat > conftest.$ac_ext <<_LT_EOF
6698 #ifdef __cplusplus
6699 extern "C" {
6700 #endif
6701 char nm_test_var;
6702 void nm_test_func(void);
6703 void nm_test_func(void){}
6704 #ifdef __cplusplus
6705 }
6706 #endif
6707 int main(){nm_test_var='a';nm_test_func();return(0);}
6708 _LT_EOF
6709
6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; then
6715 # Now try to grab the symbols.
6716 nlist=conftest.nm
6717 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6718 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6719 ac_status=$?
6720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6721 test $ac_status = 0; } && test -s "$nlist"; then
6722 # Try sorting and uniquifying the output.
6723 if sort "$nlist" | uniq > "$nlist"T; then
6724 mv -f "$nlist"T "$nlist"
6725 else
6726 rm -f "$nlist"T
6727 fi
6728
6729 # Make sure that we snagged all the symbols we need.
6730 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6731 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6732 cat <<_LT_EOF > conftest.$ac_ext
6733 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6734 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6735 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6736 relocations are performed -- see ld's documentation on pseudo-relocs. */
6737 # define LT_DLSYM_CONST
6738 #elif defined(__osf__)
6739 /* This system does not cope well with relocations in const data. */
6740 # define LT_DLSYM_CONST
6741 #else
6742 # define LT_DLSYM_CONST const
6743 #endif
6744
6745 #ifdef __cplusplus
6746 extern "C" {
6747 #endif
6748
6749 _LT_EOF
6750 # Now generate the symbol file.
6751 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6752
6753 cat <<_LT_EOF >> conftest.$ac_ext
6754
6755 /* The mapping between symbol names and symbols. */
6756 LT_DLSYM_CONST struct {
6757 const char *name;
6758 void *address;
6759 }
6760 lt__PROGRAM__LTX_preloaded_symbols[] =
6761 {
6762 { "@PROGRAM@", (void *) 0 },
6763 _LT_EOF
6764 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6765 cat <<\_LT_EOF >> conftest.$ac_ext
6766 {0, (void *) 0}
6767 };
6768
6769 /* This works around a problem in FreeBSD linker */
6770 #ifdef FREEBSD_WORKAROUND
6771 static const void *lt_preloaded_setup() {
6772 return lt__PROGRAM__LTX_preloaded_symbols;
6773 }
6774 #endif
6775
6776 #ifdef __cplusplus
6777 }
6778 #endif
6779 _LT_EOF
6780 # Now try linking the two files.
6781 mv conftest.$ac_objext conftstm.$ac_objext
6782 lt_globsym_save_LIBS=$LIBS
6783 lt_globsym_save_CFLAGS=$CFLAGS
6784 LIBS="conftstm.$ac_objext"
6785 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6787 (eval $ac_link) 2>&5
6788 ac_status=$?
6789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6790 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6791 pipe_works=yes
6792 fi
6793 LIBS=$lt_globsym_save_LIBS
6794 CFLAGS=$lt_globsym_save_CFLAGS
6795 else
6796 echo "cannot find nm_test_func in $nlist" >&5
6797 fi
6798 else
6799 echo "cannot find nm_test_var in $nlist" >&5
6800 fi
6801 else
6802 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6803 fi
6804 else
6805 echo "$progname: failed program was:" >&5
6806 cat conftest.$ac_ext >&5
6807 fi
6808 rm -rf conftest* conftst*
6809
6810 # Do not use the global_symbol_pipe unless it works.
6811 if test "$pipe_works" = yes; then
6812 break
6813 else
6814 lt_cv_sys_global_symbol_pipe=
6815 fi
6816 done
6817
6818 fi
6819
6820 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6821 lt_cv_sys_global_symbol_to_cdecl=
6822 fi
6823 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6825 $as_echo "failed" >&6; }
6826 else
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6828 $as_echo "ok" >&6; }
6829 fi
6830
6831 # Response file support.
6832 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6833 nm_file_list_spec='@'
6834 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6835 nm_file_list_spec='@'
6836 fi
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851
6852
6853
6854
6855
6856
6857
6858
6859
6860
6861
6862
6863
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6865 $as_echo_n "checking for sysroot... " >&6; }
6866
6867 # Check whether --with-sysroot was given.
6868 if test "${with_sysroot+set}" = set; then :
6869 withval=$with_sysroot;
6870 else
6871 with_sysroot=no
6872 fi
6873
6874
6875 lt_sysroot=
6876 case ${with_sysroot} in #(
6877 yes)
6878 if test "$GCC" = yes; then
6879 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6880 fi
6881 ;; #(
6882 /*)
6883 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6884 ;; #(
6885 no|'')
6886 ;; #(
6887 *)
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6889 $as_echo "${with_sysroot}" >&6; }
6890 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6891 ;;
6892 esac
6893
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6895 $as_echo "${lt_sysroot:-no}" >&6; }
6896
6897
6898
6899
6900
6901 # Check whether --enable-libtool-lock was given.
6902 if test "${enable_libtool_lock+set}" = set; then :
6903 enableval=$enable_libtool_lock;
6904 fi
6905
6906 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6907
6908 # Some flags need to be propagated to the compiler or linker for good
6909 # libtool support.
6910 case $host in
6911 ia64-*-hpux*)
6912 # Find out which ABI we are using.
6913 echo 'int i;' > conftest.$ac_ext
6914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6915 (eval $ac_compile) 2>&5
6916 ac_status=$?
6917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6918 test $ac_status = 0; }; then
6919 case `/usr/bin/file conftest.$ac_objext` in
6920 *ELF-32*)
6921 HPUX_IA64_MODE="32"
6922 ;;
6923 *ELF-64*)
6924 HPUX_IA64_MODE="64"
6925 ;;
6926 esac
6927 fi
6928 rm -rf conftest*
6929 ;;
6930 *-*-irix6*)
6931 # Find out which ABI we are using.
6932 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6934 (eval $ac_compile) 2>&5
6935 ac_status=$?
6936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6937 test $ac_status = 0; }; then
6938 if test "$lt_cv_prog_gnu_ld" = yes; then
6939 case `/usr/bin/file conftest.$ac_objext` in
6940 *32-bit*)
6941 LD="${LD-ld} -melf32bsmip"
6942 ;;
6943 *N32*)
6944 LD="${LD-ld} -melf32bmipn32"
6945 ;;
6946 *64-bit*)
6947 LD="${LD-ld} -melf64bmip"
6948 ;;
6949 esac
6950 else
6951 case `/usr/bin/file conftest.$ac_objext` in
6952 *32-bit*)
6953 LD="${LD-ld} -32"
6954 ;;
6955 *N32*)
6956 LD="${LD-ld} -n32"
6957 ;;
6958 *64-bit*)
6959 LD="${LD-ld} -64"
6960 ;;
6961 esac
6962 fi
6963 fi
6964 rm -rf conftest*
6965 ;;
6966
6967 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6968 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6969 # Find out which ABI we are using.
6970 echo 'int i;' > conftest.$ac_ext
6971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6972 (eval $ac_compile) 2>&5
6973 ac_status=$?
6974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6975 test $ac_status = 0; }; then
6976 case `/usr/bin/file conftest.o` in
6977 *32-bit*)
6978 case $host in
6979 x86_64-*kfreebsd*-gnu)
6980 LD="${LD-ld} -m elf_i386_fbsd"
6981 ;;
6982 x86_64-*linux*)
6983 LD="${LD-ld} -m elf_i386"
6984 ;;
6985 ppc64-*linux*|powerpc64-*linux*)
6986 LD="${LD-ld} -m elf32ppclinux"
6987 ;;
6988 s390x-*linux*)
6989 LD="${LD-ld} -m elf_s390"
6990 ;;
6991 sparc64-*linux*)
6992 LD="${LD-ld} -m elf32_sparc"
6993 ;;
6994 esac
6995 ;;
6996 *64-bit*)
6997 case $host in
6998 x86_64-*kfreebsd*-gnu)
6999 LD="${LD-ld} -m elf_x86_64_fbsd"
7000 ;;
7001 x86_64-*linux*)
7002 LD="${LD-ld} -m elf_x86_64"
7003 ;;
7004 ppc*-*linux*|powerpc*-*linux*)
7005 LD="${LD-ld} -m elf64ppc"
7006 ;;
7007 s390*-*linux*|s390*-*tpf*)
7008 LD="${LD-ld} -m elf64_s390"
7009 ;;
7010 sparc*-*linux*)
7011 LD="${LD-ld} -m elf64_sparc"
7012 ;;
7013 esac
7014 ;;
7015 esac
7016 fi
7017 rm -rf conftest*
7018 ;;
7019
7020 *-*-sco3.2v5*)
7021 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7022 SAVE_CFLAGS="$CFLAGS"
7023 CFLAGS="$CFLAGS -belf"
7024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7025 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7026 if ${lt_cv_cc_needs_belf+:} false; then :
7027 $as_echo_n "(cached) " >&6
7028 else
7029 ac_ext=c
7030 ac_cpp='$CPP $CPPFLAGS'
7031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7034
7035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7036 /* end confdefs.h. */
7037
7038 int
7039 main ()
7040 {
7041
7042 ;
7043 return 0;
7044 }
7045 _ACEOF
7046 if ac_fn_c_try_link "$LINENO"; then :
7047 lt_cv_cc_needs_belf=yes
7048 else
7049 lt_cv_cc_needs_belf=no
7050 fi
7051 rm -f core conftest.err conftest.$ac_objext \
7052 conftest$ac_exeext conftest.$ac_ext
7053 ac_ext=c
7054 ac_cpp='$CPP $CPPFLAGS'
7055 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7056 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7057 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7058
7059 fi
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7061 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7062 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7063 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7064 CFLAGS="$SAVE_CFLAGS"
7065 fi
7066 ;;
7067 *-*solaris*)
7068 # Find out which ABI we are using.
7069 echo 'int i;' > conftest.$ac_ext
7070 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7071 (eval $ac_compile) 2>&5
7072 ac_status=$?
7073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7074 test $ac_status = 0; }; then
7075 case `/usr/bin/file conftest.o` in
7076 *64-bit*)
7077 case $lt_cv_prog_gnu_ld in
7078 yes*)
7079 case $host in
7080 i?86-*-solaris*)
7081 LD="${LD-ld} -m elf_x86_64"
7082 ;;
7083 sparc*-*-solaris*)
7084 LD="${LD-ld} -m elf64_sparc"
7085 ;;
7086 esac
7087 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7088 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7089 LD="${LD-ld}_sol2"
7090 fi
7091 ;;
7092 *)
7093 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7094 LD="${LD-ld} -64"
7095 fi
7096 ;;
7097 esac
7098 ;;
7099 esac
7100 fi
7101 rm -rf conftest*
7102 ;;
7103 esac
7104
7105 need_locks="$enable_libtool_lock"
7106
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}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_MANIFEST_TOOL+:} false; then :
7113 $as_echo_n "(cached) " >&6
7114 else
7115 if test -n "$MANIFEST_TOOL"; then
7116 ac_cv_prog_MANIFEST_TOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7125 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}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 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7136 if test -n "$MANIFEST_TOOL"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7138 $as_echo "$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
7145 fi
7146 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7147 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7148 # Extract the first word of "mt", so it can be a program name with args.
7149 set dummy mt; ac_word=$2
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7151 $as_echo_n "checking for $ac_word... " >&6; }
7152 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7153 $as_echo_n "(cached) " >&6
7154 else
7155 if test -n "$ac_ct_MANIFEST_TOOL"; then
7156 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7157 else
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7159 for as_dir in $PATH
7160 do
7161 IFS=$as_save_IFS
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7165 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7167 break 2
7168 fi
7169 done
7170 done
7171 IFS=$as_save_IFS
7172
7173 fi
7174 fi
7175 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7176 if test -n "$ac_ct_MANIFEST_TOOL"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7178 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7182 fi
7183
7184 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7185 MANIFEST_TOOL=":"
7186 else
7187 case $cross_compiling:$ac_tool_warned in
7188 yes:)
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7191 ac_tool_warned=yes ;;
7192 esac
7193 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7194 fi
7195 else
7196 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7197 fi
7198
7199 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7201 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7202 if ${lt_cv_path_mainfest_tool+:} false; then :
7203 $as_echo_n "(cached) " >&6
7204 else
7205 lt_cv_path_mainfest_tool=no
7206 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7207 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7208 cat conftest.err >&5
7209 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7210 lt_cv_path_mainfest_tool=yes
7211 fi
7212 rm -f conftest*
7213 fi
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7215 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7216 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7217 MANIFEST_TOOL=:
7218 fi
7219
7220
7221
7222
7223
7224
7225 case $host_os in
7226 rhapsody* | darwin*)
7227 if test -n "$ac_tool_prefix"; then
7228 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7229 set dummy ${ac_tool_prefix}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_DSYMUTIL+:} false; then :
7233 $as_echo_n "(cached) " >&6
7234 else
7235 if test -n "$DSYMUTIL"; then
7236 ac_cv_prog_DSYMUTIL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7245 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}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 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7256 if test -n "$DSYMUTIL"; then
7257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7258 $as_echo "$DSYMUTIL" >&6; }
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 fi
7263
7264
7265 fi
7266 if test -z "$ac_cv_prog_DSYMUTIL"; then
7267 ac_ct_DSYMUTIL=$DSYMUTIL
7268 # Extract the first word of "dsymutil", so it can be a program name with args.
7269 set dummy dsymutil; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$ac_ct_DSYMUTIL"; then
7276 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7280 do
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7285 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7288 fi
7289 done
7290 done
7291 IFS=$as_save_IFS
7292
7293 fi
7294 fi
7295 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7296 if test -n "$ac_ct_DSYMUTIL"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7298 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7302 fi
7303
7304 if test "x$ac_ct_DSYMUTIL" = x; then
7305 DSYMUTIL=":"
7306 else
7307 case $cross_compiling:$ac_tool_warned in
7308 yes:)
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7311 ac_tool_warned=yes ;;
7312 esac
7313 DSYMUTIL=$ac_ct_DSYMUTIL
7314 fi
7315 else
7316 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7317 fi
7318
7319 if test -n "$ac_tool_prefix"; then
7320 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7321 set dummy ${ac_tool_prefix}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_NMEDIT+:} false; then :
7325 $as_echo_n "(cached) " >&6
7326 else
7327 if test -n "$NMEDIT"; then
7328 ac_cv_prog_NMEDIT="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7337 ac_cv_prog_NMEDIT="${ac_tool_prefix}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 NMEDIT=$ac_cv_prog_NMEDIT
7348 if test -n "$NMEDIT"; then
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7350 $as_echo "$NMEDIT" >&6; }
7351 else
7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7353 $as_echo "no" >&6; }
7354 fi
7355
7356
7357 fi
7358 if test -z "$ac_cv_prog_NMEDIT"; then
7359 ac_ct_NMEDIT=$NMEDIT
7360 # Extract the first word of "nmedit", so it can be a program name with args.
7361 set dummy nmedit; ac_word=$2
7362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7363 $as_echo_n "checking for $ac_word... " >&6; }
7364 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 if test -n "$ac_ct_NMEDIT"; then
7368 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7369 else
7370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7371 for as_dir in $PATH
7372 do
7373 IFS=$as_save_IFS
7374 test -z "$as_dir" && as_dir=.
7375 for ac_exec_ext in '' $ac_executable_extensions; do
7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7377 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379 break 2
7380 fi
7381 done
7382 done
7383 IFS=$as_save_IFS
7384
7385 fi
7386 fi
7387 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7388 if test -n "$ac_ct_NMEDIT"; then
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7390 $as_echo "$ac_ct_NMEDIT" >&6; }
7391 else
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7393 $as_echo "no" >&6; }
7394 fi
7395
7396 if test "x$ac_ct_NMEDIT" = x; then
7397 NMEDIT=":"
7398 else
7399 case $cross_compiling:$ac_tool_warned in
7400 yes:)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7403 ac_tool_warned=yes ;;
7404 esac
7405 NMEDIT=$ac_ct_NMEDIT
7406 fi
7407 else
7408 NMEDIT="$ac_cv_prog_NMEDIT"
7409 fi
7410
7411 if test -n "$ac_tool_prefix"; then
7412 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7413 set dummy ${ac_tool_prefix}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_LIPO+:} false; then :
7417 $as_echo_n "(cached) " >&6
7418 else
7419 if test -n "$LIPO"; then
7420 ac_cv_prog_LIPO="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_prog_LIPO="${ac_tool_prefix}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 LIPO=$ac_cv_prog_LIPO
7440 if test -n "$LIPO"; then
7441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7442 $as_echo "$LIPO" >&6; }
7443 else
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }
7446 fi
7447
7448
7449 fi
7450 if test -z "$ac_cv_prog_LIPO"; then
7451 ac_ct_LIPO=$LIPO
7452 # Extract the first word of "lipo", so it can be a program name with args.
7453 set dummy lipo; ac_word=$2
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7455 $as_echo_n "checking for $ac_word... " >&6; }
7456 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7457 $as_echo_n "(cached) " >&6
7458 else
7459 if test -n "$ac_ct_LIPO"; then
7460 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7461 else
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463 for as_dir in $PATH
7464 do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7469 ac_cv_prog_ac_ct_LIPO="lipo"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473 done
7474 done
7475 IFS=$as_save_IFS
7476
7477 fi
7478 fi
7479 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7480 if test -n "$ac_ct_LIPO"; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7482 $as_echo "$ac_ct_LIPO" >&6; }
7483 else
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7485 $as_echo "no" >&6; }
7486 fi
7487
7488 if test "x$ac_ct_LIPO" = x; then
7489 LIPO=":"
7490 else
7491 case $cross_compiling:$ac_tool_warned in
7492 yes:)
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7495 ac_tool_warned=yes ;;
7496 esac
7497 LIPO=$ac_ct_LIPO
7498 fi
7499 else
7500 LIPO="$ac_cv_prog_LIPO"
7501 fi
7502
7503 if test -n "$ac_tool_prefix"; then
7504 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7505 set dummy ${ac_tool_prefix}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_OTOOL+:} false; then :
7509 $as_echo_n "(cached) " >&6
7510 else
7511 if test -n "$OTOOL"; then
7512 ac_cv_prog_OTOOL="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7521 ac_cv_prog_OTOOL="${ac_tool_prefix}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 OTOOL=$ac_cv_prog_OTOOL
7532 if test -n "$OTOOL"; then
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7534 $as_echo "$OTOOL" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 fi
7539
7540
7541 fi
7542 if test -z "$ac_cv_prog_OTOOL"; then
7543 ac_ct_OTOOL=$OTOOL
7544 # Extract the first word of "otool", so it can be a program name with args.
7545 set dummy otool; ac_word=$2
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7547 $as_echo_n "checking for $ac_word... " >&6; }
7548 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 if test -n "$ac_ct_OTOOL"; then
7552 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7553 else
7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555 for as_dir in $PATH
7556 do
7557 IFS=$as_save_IFS
7558 test -z "$as_dir" && as_dir=.
7559 for ac_exec_ext in '' $ac_executable_extensions; do
7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7561 ac_cv_prog_ac_ct_OTOOL="otool"
7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 break 2
7564 fi
7565 done
7566 done
7567 IFS=$as_save_IFS
7568
7569 fi
7570 fi
7571 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7572 if test -n "$ac_ct_OTOOL"; then
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7574 $as_echo "$ac_ct_OTOOL" >&6; }
7575 else
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }
7578 fi
7579
7580 if test "x$ac_ct_OTOOL" = x; then
7581 OTOOL=":"
7582 else
7583 case $cross_compiling:$ac_tool_warned in
7584 yes:)
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7587 ac_tool_warned=yes ;;
7588 esac
7589 OTOOL=$ac_ct_OTOOL
7590 fi
7591 else
7592 OTOOL="$ac_cv_prog_OTOOL"
7593 fi
7594
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}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_OTOOL64+:} false; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$OTOOL64"; then
7604 ac_cv_prog_OTOOL64="$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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7613 ac_cv_prog_OTOOL64="${ac_tool_prefix}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 OTOOL64=$ac_cv_prog_OTOOL64
7624 if test -n "$OTOOL64"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7626 $as_echo "$OTOOL64" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7630 fi
7631
7632
7633 fi
7634 if test -z "$ac_cv_prog_OTOOL64"; then
7635 ac_ct_OTOOL64=$OTOOL64
7636 # Extract the first word of "otool64", so it can be a program name with args.
7637 set dummy otool64; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$ac_ct_OTOOL64"; then
7644 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7648 do
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7653 ac_cv_prog_ac_ct_OTOOL64="otool64"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7656 fi
7657 done
7658 done
7659 IFS=$as_save_IFS
7660
7661 fi
7662 fi
7663 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7664 if test -n "$ac_ct_OTOOL64"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7666 $as_echo "$ac_ct_OTOOL64" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7670 fi
7671
7672 if test "x$ac_ct_OTOOL64" = x; then
7673 OTOOL64=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 OTOOL64=$ac_ct_OTOOL64
7682 fi
7683 else
7684 OTOOL64="$ac_cv_prog_OTOOL64"
7685 fi
7686
7687
7688
7689
7690
7691
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7714 $as_echo_n "checking for -single_module linker flag... " >&6; }
7715 if ${lt_cv_apple_cc_single_mod+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 lt_cv_apple_cc_single_mod=no
7719 if test -z "${LT_MULTI_MODULE}"; then
7720 # By default we will add the -single_module flag. You can override
7721 # by either setting the environment variable LT_MULTI_MODULE
7722 # non-empty at configure time, or by adding -multi_module to the
7723 # link flags.
7724 rm -rf libconftest.dylib*
7725 echo "int foo(void){return 1;}" > conftest.c
7726 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7727 -dynamiclib -Wl,-single_module conftest.c" >&5
7728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7729 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7730 _lt_result=$?
7731 # If there is a non-empty error log, and "single_module"
7732 # appears in it, assume the flag caused a linker warning
7733 if test -s conftest.err && $GREP single_module conftest.err; then
7734 cat conftest.err >&5
7735 # Otherwise, if the output was created with a 0 exit code from
7736 # the compiler, it worked.
7737 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7738 lt_cv_apple_cc_single_mod=yes
7739 else
7740 cat conftest.err >&5
7741 fi
7742 rm -rf libconftest.dylib*
7743 rm -f conftest.*
7744 fi
7745 fi
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7747 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7748
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7750 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7751 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7754 lt_cv_ld_exported_symbols_list=no
7755 save_LDFLAGS=$LDFLAGS
7756 echo "_main" > conftest.sym
7757 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760
7761 int
7762 main ()
7763 {
7764
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 if ac_fn_c_try_link "$LINENO"; then :
7770 lt_cv_ld_exported_symbols_list=yes
7771 else
7772 lt_cv_ld_exported_symbols_list=no
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext \
7775 conftest$ac_exeext conftest.$ac_ext
7776 LDFLAGS="$save_LDFLAGS"
7777
7778 fi
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7780 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7781
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7783 $as_echo_n "checking for -force_load linker flag... " >&6; }
7784 if ${lt_cv_ld_force_load+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 lt_cv_ld_force_load=no
7788 cat > conftest.c << _LT_EOF
7789 int forced_loaded() { return 2;}
7790 _LT_EOF
7791 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7792 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7793 echo "$AR cru libconftest.a conftest.o" >&5
7794 $AR cru libconftest.a conftest.o 2>&5
7795 echo "$RANLIB libconftest.a" >&5
7796 $RANLIB libconftest.a 2>&5
7797 cat > conftest.c << _LT_EOF
7798 int main() { return 0;}
7799 _LT_EOF
7800 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7801 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7802 _lt_result=$?
7803 if test -s conftest.err && $GREP force_load conftest.err; then
7804 cat conftest.err >&5
7805 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7806 lt_cv_ld_force_load=yes
7807 else
7808 cat conftest.err >&5
7809 fi
7810 rm -f conftest.err libconftest.a conftest conftest.c
7811 rm -rf conftest.dSYM
7812
7813 fi
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7815 $as_echo "$lt_cv_ld_force_load" >&6; }
7816 case $host_os in
7817 rhapsody* | darwin1.[012])
7818 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7819 darwin1.*)
7820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7821 darwin*) # darwin 5.x on
7822 # if running on 10.5 or later, the deployment target defaults
7823 # to the OS version, if on x86, and 10.4, the deployment
7824 # target defaults to 10.4. Don't you love it?
7825 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7826 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7827 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7828 10.[012]*)
7829 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7830 10.*)
7831 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7832 esac
7833 ;;
7834 esac
7835 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7836 _lt_dar_single_mod='$single_module'
7837 fi
7838 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7839 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7840 else
7841 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7842 fi
7843 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7844 _lt_dsymutil='~$DSYMUTIL $lib || :'
7845 else
7846 _lt_dsymutil=
7847 fi
7848 ;;
7849 esac
7850
7851 for ac_header in dlfcn.h
7852 do :
7853 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7854 "
7855 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7856 cat >>confdefs.h <<_ACEOF
7857 #define HAVE_DLFCN_H 1
7858 _ACEOF
7859
7860 fi
7861
7862 done
7863
7864
7865
7866
7867
7868 # Set options
7869
7870
7871
7872 enable_dlopen=no
7873
7874
7875 enable_win32_dll=no
7876
7877
7878 # Check whether --enable-shared was given.
7879 if test "${enable_shared+set}" = set; then :
7880 enableval=$enable_shared; p=${PACKAGE-default}
7881 case $enableval in
7882 yes) enable_shared=yes ;;
7883 no) enable_shared=no ;;
7884 *)
7885 enable_shared=no
7886 # Look at the argument we got. We use all the common list separators.
7887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7888 for pkg in $enableval; do
7889 IFS="$lt_save_ifs"
7890 if test "X$pkg" = "X$p"; then
7891 enable_shared=yes
7892 fi
7893 done
7894 IFS="$lt_save_ifs"
7895 ;;
7896 esac
7897 else
7898 enable_shared=yes
7899 fi
7900
7901
7902
7903
7904
7905
7906
7907
7908
7909 # Check whether --enable-static was given.
7910 if test "${enable_static+set}" = set; then :
7911 enableval=$enable_static; p=${PACKAGE-default}
7912 case $enableval in
7913 yes) enable_static=yes ;;
7914 no) enable_static=no ;;
7915 *)
7916 enable_static=no
7917 # Look at the argument we got. We use all the common list separators.
7918 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7919 for pkg in $enableval; do
7920 IFS="$lt_save_ifs"
7921 if test "X$pkg" = "X$p"; then
7922 enable_static=yes
7923 fi
7924 done
7925 IFS="$lt_save_ifs"
7926 ;;
7927 esac
7928 else
7929 enable_static=yes
7930 fi
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941 # Check whether --with-pic was given.
7942 if test "${with_pic+set}" = set; then :
7943 withval=$with_pic; lt_p=${PACKAGE-default}
7944 case $withval in
7945 yes|no) pic_mode=$withval ;;
7946 *)
7947 pic_mode=default
7948 # Look at the argument we got. We use all the common list separators.
7949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7950 for lt_pkg in $withval; do
7951 IFS="$lt_save_ifs"
7952 if test "X$lt_pkg" = "X$lt_p"; then
7953 pic_mode=yes
7954 fi
7955 done
7956 IFS="$lt_save_ifs"
7957 ;;
7958 esac
7959 else
7960 pic_mode=default
7961 fi
7962
7963
7964 test -z "$pic_mode" && pic_mode=default
7965
7966
7967
7968
7969
7970
7971
7972 # Check whether --enable-fast-install was given.
7973 if test "${enable_fast_install+set}" = set; then :
7974 enableval=$enable_fast_install; p=${PACKAGE-default}
7975 case $enableval in
7976 yes) enable_fast_install=yes ;;
7977 no) enable_fast_install=no ;;
7978 *)
7979 enable_fast_install=no
7980 # Look at the argument we got. We use all the common list separators.
7981 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7982 for pkg in $enableval; do
7983 IFS="$lt_save_ifs"
7984 if test "X$pkg" = "X$p"; then
7985 enable_fast_install=yes
7986 fi
7987 done
7988 IFS="$lt_save_ifs"
7989 ;;
7990 esac
7991 else
7992 enable_fast_install=yes
7993 fi
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005 # This can be used to rebuild libtool when needed
8006 LIBTOOL_DEPS="$ltmain"
8007
8008 # Always use our own libtool.
8009 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8010
8011
8012
8013
8014
8015
8016
8017
8018
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040 test -z "$LN_S" && LN_S="ln -s"
8041
8042
8043
8044
8045
8046
8047
8048
8049
8050
8051
8052
8053
8054
8055 if test -n "${ZSH_VERSION+set}" ; then
8056 setopt NO_GLOB_SUBST
8057 fi
8058
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8060 $as_echo_n "checking for objdir... " >&6; }
8061 if ${lt_cv_objdir+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 rm -f .libs 2>/dev/null
8065 mkdir .libs 2>/dev/null
8066 if test -d .libs; then
8067 lt_cv_objdir=.libs
8068 else
8069 # MS-DOS does not allow filenames that begin with a dot.
8070 lt_cv_objdir=_libs
8071 fi
8072 rmdir .libs 2>/dev/null
8073 fi
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8075 $as_echo "$lt_cv_objdir" >&6; }
8076 objdir=$lt_cv_objdir
8077
8078
8079
8080
8081
8082 cat >>confdefs.h <<_ACEOF
8083 #define LT_OBJDIR "$lt_cv_objdir/"
8084 _ACEOF
8085
8086
8087
8088
8089 case $host_os in
8090 aix3*)
8091 # AIX sometimes has problems with the GCC collect2 program. For some
8092 # reason, if we set the COLLECT_NAMES environment variable, the problems
8093 # vanish in a puff of smoke.
8094 if test "X${COLLECT_NAMES+set}" != Xset; then
8095 COLLECT_NAMES=
8096 export COLLECT_NAMES
8097 fi
8098 ;;
8099 esac
8100
8101 # Global variables:
8102 ofile=libtool
8103 can_build_shared=yes
8104
8105 # All known linkers require a `.a' archive for static linking (except MSVC,
8106 # which needs '.lib').
8107 libext=a
8108
8109 with_gnu_ld="$lt_cv_prog_gnu_ld"
8110
8111 old_CC="$CC"
8112 old_CFLAGS="$CFLAGS"
8113
8114 # Set sane defaults for various variables
8115 test -z "$CC" && CC=cc
8116 test -z "$LTCC" && LTCC=$CC
8117 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8118 test -z "$LD" && LD=ld
8119 test -z "$ac_objext" && ac_objext=o
8120
8121 for cc_temp in $compiler""; do
8122 case $cc_temp in
8123 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8124 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8125 \-*) ;;
8126 *) break;;
8127 esac
8128 done
8129 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8130
8131
8132 # Only perform the check for file, if the check method requires it
8133 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8134 case $deplibs_check_method in
8135 file_magic*)
8136 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8138 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8139 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8140 $as_echo_n "(cached) " >&6
8141 else
8142 case $MAGIC_CMD in
8143 [\\/*] | ?:[\\/]*)
8144 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8145 ;;
8146 *)
8147 lt_save_MAGIC_CMD="$MAGIC_CMD"
8148 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8149 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8150 for ac_dir in $ac_dummy; do
8151 IFS="$lt_save_ifs"
8152 test -z "$ac_dir" && ac_dir=.
8153 if test -f $ac_dir/${ac_tool_prefix}file; then
8154 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8155 if test -n "$file_magic_test_file"; then
8156 case $deplibs_check_method in
8157 "file_magic "*)
8158 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8159 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8160 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8161 $EGREP "$file_magic_regex" > /dev/null; then
8162 :
8163 else
8164 cat <<_LT_EOF 1>&2
8165
8166 *** Warning: the command libtool uses to detect shared libraries,
8167 *** $file_magic_cmd, produces output that libtool cannot recognize.
8168 *** The result is that libtool may fail to recognize shared libraries
8169 *** as such. This will affect the creation of libtool libraries that
8170 *** depend on shared libraries, but programs linked with such libtool
8171 *** libraries will work regardless of this problem. Nevertheless, you
8172 *** may want to report the problem to your system manager and/or to
8173 *** bug-libtool@gnu.org
8174
8175 _LT_EOF
8176 fi ;;
8177 esac
8178 fi
8179 break
8180 fi
8181 done
8182 IFS="$lt_save_ifs"
8183 MAGIC_CMD="$lt_save_MAGIC_CMD"
8184 ;;
8185 esac
8186 fi
8187
8188 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8189 if test -n "$MAGIC_CMD"; then
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8191 $as_echo "$MAGIC_CMD" >&6; }
8192 else
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8195 fi
8196
8197
8198
8199
8200
8201 if test -z "$lt_cv_path_MAGIC_CMD"; then
8202 if test -n "$ac_tool_prefix"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8204 $as_echo_n "checking for file... " >&6; }
8205 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8206 $as_echo_n "(cached) " >&6
8207 else
8208 case $MAGIC_CMD in
8209 [\\/*] | ?:[\\/]*)
8210 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8211 ;;
8212 *)
8213 lt_save_MAGIC_CMD="$MAGIC_CMD"
8214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8215 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8216 for ac_dir in $ac_dummy; do
8217 IFS="$lt_save_ifs"
8218 test -z "$ac_dir" && ac_dir=.
8219 if test -f $ac_dir/file; then
8220 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8221 if test -n "$file_magic_test_file"; then
8222 case $deplibs_check_method in
8223 "file_magic "*)
8224 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8225 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8226 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8227 $EGREP "$file_magic_regex" > /dev/null; then
8228 :
8229 else
8230 cat <<_LT_EOF 1>&2
8231
8232 *** Warning: the command libtool uses to detect shared libraries,
8233 *** $file_magic_cmd, produces output that libtool cannot recognize.
8234 *** The result is that libtool may fail to recognize shared libraries
8235 *** as such. This will affect the creation of libtool libraries that
8236 *** depend on shared libraries, but programs linked with such libtool
8237 *** libraries will work regardless of this problem. Nevertheless, you
8238 *** may want to report the problem to your system manager and/or to
8239 *** bug-libtool@gnu.org
8240
8241 _LT_EOF
8242 fi ;;
8243 esac
8244 fi
8245 break
8246 fi
8247 done
8248 IFS="$lt_save_ifs"
8249 MAGIC_CMD="$lt_save_MAGIC_CMD"
8250 ;;
8251 esac
8252 fi
8253
8254 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8255 if test -n "$MAGIC_CMD"; then
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8257 $as_echo "$MAGIC_CMD" >&6; }
8258 else
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }
8261 fi
8262
8263
8264 else
8265 MAGIC_CMD=:
8266 fi
8267 fi
8268
8269 fi
8270 ;;
8271 esac
8272
8273 # Use C for the default configuration in the libtool script
8274
8275 lt_save_CC="$CC"
8276 ac_ext=c
8277 ac_cpp='$CPP $CPPFLAGS'
8278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8281
8282
8283 # Source file extension for C test sources.
8284 ac_ext=c
8285
8286 # Object file extension for compiled C test sources.
8287 objext=o
8288 objext=$objext
8289
8290 # Code to be used in simple compile tests
8291 lt_simple_compile_test_code="int some_variable = 0;"
8292
8293 # Code to be used in simple link tests
8294 lt_simple_link_test_code='int main(){return(0);}'
8295
8296
8297
8298
8299
8300
8301
8302 # If no C compiler was specified, use CC.
8303 LTCC=${LTCC-"$CC"}
8304
8305 # If no C compiler flags were specified, use CFLAGS.
8306 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8307
8308 # Allow CC to be a program name with arguments.
8309 compiler=$CC
8310
8311 # Save the default compiler, since it gets overwritten when the other
8312 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8313 compiler_DEFAULT=$CC
8314
8315 # save warnings/boilerplate of simple test code
8316 ac_outfile=conftest.$ac_objext
8317 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8318 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8319 _lt_compiler_boilerplate=`cat conftest.err`
8320 $RM conftest*
8321
8322 ac_outfile=conftest.$ac_objext
8323 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8324 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8325 _lt_linker_boilerplate=`cat conftest.err`
8326 $RM -r conftest*
8327
8328
8329 if test -n "$compiler"; then
8330
8331 lt_prog_compiler_no_builtin_flag=
8332
8333 if test "$GCC" = yes; then
8334 case $cc_basename in
8335 nvcc*)
8336 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8337 *)
8338 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8339 esac
8340
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8342 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8343 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8344 $as_echo_n "(cached) " >&6
8345 else
8346 lt_cv_prog_compiler_rtti_exceptions=no
8347 ac_outfile=conftest.$ac_objext
8348 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8349 lt_compiler_flag="-fno-rtti -fno-exceptions"
8350 # Insert the option either (1) after the last *FLAGS variable, or
8351 # (2) before a word containing "conftest.", or (3) at the end.
8352 # Note that $ac_compile itself does not contain backslashes and begins
8353 # with a dollar sign (not a hyphen), so the echo should work correctly.
8354 # The option is referenced via a variable to avoid confusing sed.
8355 lt_compile=`echo "$ac_compile" | $SED \
8356 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8357 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8358 -e 's:$: $lt_compiler_flag:'`
8359 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8360 (eval "$lt_compile" 2>conftest.err)
8361 ac_status=$?
8362 cat conftest.err >&5
8363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8364 if (exit $ac_status) && test -s "$ac_outfile"; then
8365 # The compiler can only warn and ignore the option if not recognized
8366 # So say no if there are warnings other than the usual output.
8367 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8368 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8369 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8370 lt_cv_prog_compiler_rtti_exceptions=yes
8371 fi
8372 fi
8373 $RM conftest*
8374
8375 fi
8376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8377 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8378
8379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8380 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8381 else
8382 :
8383 fi
8384
8385 fi
8386
8387
8388
8389
8390
8391
8392 lt_prog_compiler_wl=
8393 lt_prog_compiler_pic=
8394 lt_prog_compiler_static=
8395
8396
8397 if test "$GCC" = yes; then
8398 lt_prog_compiler_wl='-Wl,'
8399 lt_prog_compiler_static='-static'
8400
8401 case $host_os in
8402 aix*)
8403 # All AIX code is PIC.
8404 if test "$host_cpu" = ia64; then
8405 # AIX 5 now supports IA64 processor
8406 lt_prog_compiler_static='-Bstatic'
8407 fi
8408 ;;
8409
8410 amigaos*)
8411 case $host_cpu in
8412 powerpc)
8413 # see comment about AmigaOS4 .so support
8414 lt_prog_compiler_pic='-fPIC'
8415 ;;
8416 m68k)
8417 # FIXME: we need at least 68020 code to build shared libraries, but
8418 # adding the `-m68020' flag to GCC prevents building anything better,
8419 # like `-m68040'.
8420 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8421 ;;
8422 esac
8423 ;;
8424
8425 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8426 # PIC is the default for these OSes.
8427 ;;
8428
8429 mingw* | cygwin* | pw32* | os2* | cegcc*)
8430 # This hack is so that the source file can tell whether it is being
8431 # built for inclusion in a dll (and should export symbols for example).
8432 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8433 # (--disable-auto-import) libraries
8434 lt_prog_compiler_pic='-DDLL_EXPORT'
8435 ;;
8436
8437 darwin* | rhapsody*)
8438 # PIC is the default on this platform
8439 # Common symbols not allowed in MH_DYLIB files
8440 lt_prog_compiler_pic='-fno-common'
8441 ;;
8442
8443 haiku*)
8444 # PIC is the default for Haiku.
8445 # The "-static" flag exists, but is broken.
8446 lt_prog_compiler_static=
8447 ;;
8448
8449 hpux*)
8450 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8451 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8452 # sets the default TLS model and affects inlining.
8453 case $host_cpu in
8454 hppa*64*)
8455 # +Z the default
8456 ;;
8457 *)
8458 lt_prog_compiler_pic='-fPIC'
8459 ;;
8460 esac
8461 ;;
8462
8463 interix[3-9]*)
8464 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8465 # Instead, we relocate shared libraries at runtime.
8466 ;;
8467
8468 msdosdjgpp*)
8469 # Just because we use GCC doesn't mean we suddenly get shared libraries
8470 # on systems that don't support them.
8471 lt_prog_compiler_can_build_shared=no
8472 enable_shared=no
8473 ;;
8474
8475 *nto* | *qnx*)
8476 # QNX uses GNU C++, but need to define -shared option too, otherwise
8477 # it will coredump.
8478 lt_prog_compiler_pic='-fPIC -shared'
8479 ;;
8480
8481 sysv4*MP*)
8482 if test -d /usr/nec; then
8483 lt_prog_compiler_pic=-Kconform_pic
8484 fi
8485 ;;
8486
8487 *)
8488 lt_prog_compiler_pic='-fPIC'
8489 ;;
8490 esac
8491
8492 case $cc_basename in
8493 nvcc*) # Cuda Compiler Driver 2.2
8494 lt_prog_compiler_wl='-Xlinker '
8495 if test -n "$lt_prog_compiler_pic"; then
8496 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8497 fi
8498 ;;
8499 esac
8500 else
8501 # PORTME Check for flag to pass linker flags through the system compiler.
8502 case $host_os in
8503 aix*)
8504 lt_prog_compiler_wl='-Wl,'
8505 if test "$host_cpu" = ia64; then
8506 # AIX 5 now supports IA64 processor
8507 lt_prog_compiler_static='-Bstatic'
8508 else
8509 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8510 fi
8511 ;;
8512
8513 mingw* | cygwin* | pw32* | os2* | cegcc*)
8514 # This hack is so that the source file can tell whether it is being
8515 # built for inclusion in a dll (and should export symbols for example).
8516 lt_prog_compiler_pic='-DDLL_EXPORT'
8517 ;;
8518
8519 hpux9* | hpux10* | hpux11*)
8520 lt_prog_compiler_wl='-Wl,'
8521 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8522 # not for PA HP-UX.
8523 case $host_cpu in
8524 hppa*64*|ia64*)
8525 # +Z the default
8526 ;;
8527 *)
8528 lt_prog_compiler_pic='+Z'
8529 ;;
8530 esac
8531 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8532 lt_prog_compiler_static='${wl}-a ${wl}archive'
8533 ;;
8534
8535 irix5* | irix6* | nonstopux*)
8536 lt_prog_compiler_wl='-Wl,'
8537 # PIC (with -KPIC) is the default.
8538 lt_prog_compiler_static='-non_shared'
8539 ;;
8540
8541 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8542 case $cc_basename in
8543 # old Intel for x86_64 which still supported -KPIC.
8544 ecc*)
8545 lt_prog_compiler_wl='-Wl,'
8546 lt_prog_compiler_pic='-KPIC'
8547 lt_prog_compiler_static='-static'
8548 ;;
8549 # icc used to be incompatible with GCC.
8550 # ICC 10 doesn't accept -KPIC any more.
8551 icc* | ifort*)
8552 lt_prog_compiler_wl='-Wl,'
8553 lt_prog_compiler_pic='-fPIC'
8554 lt_prog_compiler_static='-static'
8555 ;;
8556 # Lahey Fortran 8.1.
8557 lf95*)
8558 lt_prog_compiler_wl='-Wl,'
8559 lt_prog_compiler_pic='--shared'
8560 lt_prog_compiler_static='--static'
8561 ;;
8562 nagfor*)
8563 # NAG Fortran compiler
8564 lt_prog_compiler_wl='-Wl,-Wl,,'
8565 lt_prog_compiler_pic='-PIC'
8566 lt_prog_compiler_static='-Bstatic'
8567 ;;
8568 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8569 # Portland Group compilers (*not* the Pentium gcc compiler,
8570 # which looks to be a dead project)
8571 lt_prog_compiler_wl='-Wl,'
8572 lt_prog_compiler_pic='-fpic'
8573 lt_prog_compiler_static='-Bstatic'
8574 ;;
8575 ccc*)
8576 lt_prog_compiler_wl='-Wl,'
8577 # All Alpha code is PIC.
8578 lt_prog_compiler_static='-non_shared'
8579 ;;
8580 xl* | bgxl* | bgf* | mpixl*)
8581 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8582 lt_prog_compiler_wl='-Wl,'
8583 lt_prog_compiler_pic='-qpic'
8584 lt_prog_compiler_static='-qstaticlink'
8585 ;;
8586 *)
8587 case `$CC -V 2>&1 | sed 5q` in
8588 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8589 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8590 lt_prog_compiler_pic='-KPIC'
8591 lt_prog_compiler_static='-Bstatic'
8592 lt_prog_compiler_wl=''
8593 ;;
8594 *Sun\ F* | *Sun*Fortran*)
8595 lt_prog_compiler_pic='-KPIC'
8596 lt_prog_compiler_static='-Bstatic'
8597 lt_prog_compiler_wl='-Qoption ld '
8598 ;;
8599 *Sun\ C*)
8600 # Sun C 5.9
8601 lt_prog_compiler_pic='-KPIC'
8602 lt_prog_compiler_static='-Bstatic'
8603 lt_prog_compiler_wl='-Wl,'
8604 ;;
8605 *Intel*\ [CF]*Compiler*)
8606 lt_prog_compiler_wl='-Wl,'
8607 lt_prog_compiler_pic='-fPIC'
8608 lt_prog_compiler_static='-static'
8609 ;;
8610 *Portland\ Group*)
8611 lt_prog_compiler_wl='-Wl,'
8612 lt_prog_compiler_pic='-fpic'
8613 lt_prog_compiler_static='-Bstatic'
8614 ;;
8615 esac
8616 ;;
8617 esac
8618 ;;
8619
8620 newsos6)
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-Bstatic'
8623 ;;
8624
8625 *nto* | *qnx*)
8626 # QNX uses GNU C++, but need to define -shared option too, otherwise
8627 # it will coredump.
8628 lt_prog_compiler_pic='-fPIC -shared'
8629 ;;
8630
8631 osf3* | osf4* | osf5*)
8632 lt_prog_compiler_wl='-Wl,'
8633 # All OSF/1 code is PIC.
8634 lt_prog_compiler_static='-non_shared'
8635 ;;
8636
8637 rdos*)
8638 lt_prog_compiler_static='-non_shared'
8639 ;;
8640
8641 solaris*)
8642 lt_prog_compiler_pic='-KPIC'
8643 lt_prog_compiler_static='-Bstatic'
8644 case $cc_basename in
8645 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8646 lt_prog_compiler_wl='-Qoption ld ';;
8647 *)
8648 lt_prog_compiler_wl='-Wl,';;
8649 esac
8650 ;;
8651
8652 sunos4*)
8653 lt_prog_compiler_wl='-Qoption ld '
8654 lt_prog_compiler_pic='-PIC'
8655 lt_prog_compiler_static='-Bstatic'
8656 ;;
8657
8658 sysv4 | sysv4.2uw2* | sysv4.3*)
8659 lt_prog_compiler_wl='-Wl,'
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 ;;
8663
8664 sysv4*MP*)
8665 if test -d /usr/nec ;then
8666 lt_prog_compiler_pic='-Kconform_pic'
8667 lt_prog_compiler_static='-Bstatic'
8668 fi
8669 ;;
8670
8671 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8672 lt_prog_compiler_wl='-Wl,'
8673 lt_prog_compiler_pic='-KPIC'
8674 lt_prog_compiler_static='-Bstatic'
8675 ;;
8676
8677 unicos*)
8678 lt_prog_compiler_wl='-Wl,'
8679 lt_prog_compiler_can_build_shared=no
8680 ;;
8681
8682 uts4*)
8683 lt_prog_compiler_pic='-pic'
8684 lt_prog_compiler_static='-Bstatic'
8685 ;;
8686
8687 *)
8688 lt_prog_compiler_can_build_shared=no
8689 ;;
8690 esac
8691 fi
8692
8693 case $host_os in
8694 # For platforms which do not support PIC, -DPIC is meaningless:
8695 *djgpp*)
8696 lt_prog_compiler_pic=
8697 ;;
8698 *)
8699 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8700 ;;
8701 esac
8702
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8704 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8705 if ${lt_cv_prog_compiler_pic+:} false; then :
8706 $as_echo_n "(cached) " >&6
8707 else
8708 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8709 fi
8710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8711 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8712 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8713
8714 #
8715 # Check to make sure the PIC flag actually works.
8716 #
8717 if test -n "$lt_prog_compiler_pic"; then
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8719 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8720 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 lt_cv_prog_compiler_pic_works=no
8724 ac_outfile=conftest.$ac_objext
8725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8726 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8727 # Insert the option either (1) after the last *FLAGS variable, or
8728 # (2) before a word containing "conftest.", or (3) at the end.
8729 # Note that $ac_compile itself does not contain backslashes and begins
8730 # with a dollar sign (not a hyphen), so the echo should work correctly.
8731 # The option is referenced via a variable to avoid confusing sed.
8732 lt_compile=`echo "$ac_compile" | $SED \
8733 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8734 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8735 -e 's:$: $lt_compiler_flag:'`
8736 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8737 (eval "$lt_compile" 2>conftest.err)
8738 ac_status=$?
8739 cat conftest.err >&5
8740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 if (exit $ac_status) && test -s "$ac_outfile"; then
8742 # The compiler can only warn and ignore the option if not recognized
8743 # So say no if there are warnings other than the usual output.
8744 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8745 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8746 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8747 lt_cv_prog_compiler_pic_works=yes
8748 fi
8749 fi
8750 $RM conftest*
8751
8752 fi
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8754 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8755
8756 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8757 case $lt_prog_compiler_pic in
8758 "" | " "*) ;;
8759 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8760 esac
8761 else
8762 lt_prog_compiler_pic=
8763 lt_prog_compiler_can_build_shared=no
8764 fi
8765
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774
8775
8776
8777
8778 #
8779 # Check to make sure the static flag actually works.
8780 #
8781 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8783 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8784 if ${lt_cv_prog_compiler_static_works+:} false; then :
8785 $as_echo_n "(cached) " >&6
8786 else
8787 lt_cv_prog_compiler_static_works=no
8788 save_LDFLAGS="$LDFLAGS"
8789 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8790 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8791 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8792 # The linker can only warn and ignore the option if not recognized
8793 # So say no if there are warnings
8794 if test -s conftest.err; then
8795 # Append any errors to the config.log.
8796 cat conftest.err 1>&5
8797 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8798 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8799 if diff conftest.exp conftest.er2 >/dev/null; then
8800 lt_cv_prog_compiler_static_works=yes
8801 fi
8802 else
8803 lt_cv_prog_compiler_static_works=yes
8804 fi
8805 fi
8806 $RM -r conftest*
8807 LDFLAGS="$save_LDFLAGS"
8808
8809 fi
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8811 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8812
8813 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8814 :
8815 else
8816 lt_prog_compiler_static=
8817 fi
8818
8819
8820
8821
8822
8823
8824
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8826 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8827 if ${lt_cv_prog_compiler_c_o+:} false; then :
8828 $as_echo_n "(cached) " >&6
8829 else
8830 lt_cv_prog_compiler_c_o=no
8831 $RM -r conftest 2>/dev/null
8832 mkdir conftest
8833 cd conftest
8834 mkdir out
8835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8836
8837 lt_compiler_flag="-o out/conftest2.$ac_objext"
8838 # Insert the option either (1) after the last *FLAGS variable, or
8839 # (2) before a word containing "conftest.", or (3) at the end.
8840 # Note that $ac_compile itself does not contain backslashes and begins
8841 # with a dollar sign (not a hyphen), so the echo should work correctly.
8842 lt_compile=`echo "$ac_compile" | $SED \
8843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8845 -e 's:$: $lt_compiler_flag:'`
8846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8847 (eval "$lt_compile" 2>out/conftest.err)
8848 ac_status=$?
8849 cat out/conftest.err >&5
8850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8852 then
8853 # The compiler can only warn and ignore the option if not recognized
8854 # So say no if there are warnings
8855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8858 lt_cv_prog_compiler_c_o=yes
8859 fi
8860 fi
8861 chmod u+w . 2>&5
8862 $RM conftest*
8863 # SGI C++ compiler will create directory out/ii_files/ for
8864 # template instantiation
8865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8866 $RM out/* && rmdir out
8867 cd ..
8868 $RM -r conftest
8869 $RM conftest*
8870
8871 fi
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8873 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8874
8875
8876
8877
8878
8879
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8881 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8882 if ${lt_cv_prog_compiler_c_o+:} false; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 lt_cv_prog_compiler_c_o=no
8886 $RM -r conftest 2>/dev/null
8887 mkdir conftest
8888 cd conftest
8889 mkdir out
8890 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8891
8892 lt_compiler_flag="-o out/conftest2.$ac_objext"
8893 # Insert the option either (1) after the last *FLAGS variable, or
8894 # (2) before a word containing "conftest.", or (3) at the end.
8895 # Note that $ac_compile itself does not contain backslashes and begins
8896 # with a dollar sign (not a hyphen), so the echo should work correctly.
8897 lt_compile=`echo "$ac_compile" | $SED \
8898 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8899 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8900 -e 's:$: $lt_compiler_flag:'`
8901 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8902 (eval "$lt_compile" 2>out/conftest.err)
8903 ac_status=$?
8904 cat out/conftest.err >&5
8905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8907 then
8908 # The compiler can only warn and ignore the option if not recognized
8909 # So say no if there are warnings
8910 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8911 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8912 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8913 lt_cv_prog_compiler_c_o=yes
8914 fi
8915 fi
8916 chmod u+w . 2>&5
8917 $RM conftest*
8918 # SGI C++ compiler will create directory out/ii_files/ for
8919 # template instantiation
8920 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8921 $RM out/* && rmdir out
8922 cd ..
8923 $RM -r conftest
8924 $RM conftest*
8925
8926 fi
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8928 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8929
8930
8931
8932
8933 hard_links="nottested"
8934 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8935 # do not overwrite the value of need_locks provided by the user
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8937 $as_echo_n "checking if we can lock with hard links... " >&6; }
8938 hard_links=yes
8939 $RM conftest*
8940 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8941 touch conftest.a
8942 ln conftest.a conftest.b 2>&5 || hard_links=no
8943 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8945 $as_echo "$hard_links" >&6; }
8946 if test "$hard_links" = no; then
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8948 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8949 need_locks=warn
8950 fi
8951 else
8952 need_locks=no
8953 fi
8954
8955
8956
8957
8958
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8961 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8962
8963 runpath_var=
8964 allow_undefined_flag=
8965 always_export_symbols=no
8966 archive_cmds=
8967 archive_expsym_cmds=
8968 compiler_needs_object=no
8969 enable_shared_with_static_runtimes=no
8970 export_dynamic_flag_spec=
8971 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8972 hardcode_automatic=no
8973 hardcode_direct=no
8974 hardcode_direct_absolute=no
8975 hardcode_libdir_flag_spec=
8976 hardcode_libdir_separator=
8977 hardcode_minus_L=no
8978 hardcode_shlibpath_var=unsupported
8979 inherit_rpath=no
8980 link_all_deplibs=unknown
8981 module_cmds=
8982 module_expsym_cmds=
8983 old_archive_from_new_cmds=
8984 old_archive_from_expsyms_cmds=
8985 thread_safe_flag_spec=
8986 whole_archive_flag_spec=
8987 # include_expsyms should be a list of space-separated symbols to be *always*
8988 # included in the symbol list
8989 include_expsyms=
8990 # exclude_expsyms can be an extended regexp of symbols to exclude
8991 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8992 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8993 # as well as any symbol that contains `d'.
8994 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8995 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8996 # platforms (ab)use it in PIC code, but their linkers get confused if
8997 # the symbol is explicitly referenced. Since portable code cannot
8998 # rely on this symbol name, it's probably fine to never include it in
8999 # preloaded symbol tables.
9000 # Exclude shared library initialization/finalization symbols.
9001 extract_expsyms_cmds=
9002
9003 case $host_os in
9004 cygwin* | mingw* | pw32* | cegcc*)
9005 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9006 # When not using gcc, we currently assume that we are using
9007 # Microsoft Visual C++.
9008 if test "$GCC" != yes; then
9009 with_gnu_ld=no
9010 fi
9011 ;;
9012 interix*)
9013 # we just hope/assume this is gcc and not c89 (= MSVC++)
9014 with_gnu_ld=yes
9015 ;;
9016 openbsd*)
9017 with_gnu_ld=no
9018 ;;
9019 linux* | k*bsd*-gnu | gnu*)
9020 link_all_deplibs=no
9021 ;;
9022 esac
9023
9024 ld_shlibs=yes
9025
9026 # On some targets, GNU ld is compatible enough with the native linker
9027 # that we're better off using the native interface for both.
9028 lt_use_gnu_ld_interface=no
9029 if test "$with_gnu_ld" = yes; then
9030 case $host_os in
9031 aix*)
9032 # The AIX port of GNU ld has always aspired to compatibility
9033 # with the native linker. However, as the warning in the GNU ld
9034 # block says, versions before 2.19.5* couldn't really create working
9035 # shared libraries, regardless of the interface used.
9036 case `$LD -v 2>&1` in
9037 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9038 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9039 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9040 *)
9041 lt_use_gnu_ld_interface=yes
9042 ;;
9043 esac
9044 ;;
9045 *)
9046 lt_use_gnu_ld_interface=yes
9047 ;;
9048 esac
9049 fi
9050
9051 if test "$lt_use_gnu_ld_interface" = yes; then
9052 # If archive_cmds runs LD, not CC, wlarc should be empty
9053 wlarc='${wl}'
9054
9055 # Set some defaults for GNU ld with shared library support. These
9056 # are reset later if shared libraries are not supported. Putting them
9057 # here allows them to be overridden if necessary.
9058 runpath_var=LD_RUN_PATH
9059 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9060 export_dynamic_flag_spec='${wl}--export-dynamic'
9061 # ancient GNU ld didn't support --whole-archive et. al.
9062 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9063 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9064 else
9065 whole_archive_flag_spec=
9066 fi
9067 supports_anon_versioning=no
9068 case `$LD -v 2>&1` in
9069 *GNU\ gold*) supports_anon_versioning=yes ;;
9070 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9071 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9072 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9073 *\ 2.11.*) ;; # other 2.11 versions
9074 *) supports_anon_versioning=yes ;;
9075 esac
9076
9077 # See if GNU ld supports shared libraries.
9078 case $host_os in
9079 aix[3-9]*)
9080 # On AIX/PPC, the GNU linker is very broken
9081 if test "$host_cpu" != ia64; then
9082 ld_shlibs=no
9083 cat <<_LT_EOF 1>&2
9084
9085 *** Warning: the GNU linker, at least up to release 2.19, is reported
9086 *** to be unable to reliably create shared libraries on AIX.
9087 *** Therefore, libtool is disabling shared libraries support. If you
9088 *** really care for shared libraries, you may want to install binutils
9089 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9090 *** You will then need to restart the configuration process.
9091
9092 _LT_EOF
9093 fi
9094 ;;
9095
9096 amigaos*)
9097 case $host_cpu in
9098 powerpc)
9099 # see comment about AmigaOS4 .so support
9100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9101 archive_expsym_cmds=''
9102 ;;
9103 m68k)
9104 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)'
9105 hardcode_libdir_flag_spec='-L$libdir'
9106 hardcode_minus_L=yes
9107 ;;
9108 esac
9109 ;;
9110
9111 beos*)
9112 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9113 allow_undefined_flag=unsupported
9114 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9115 # support --undefined. This deserves some investigation. FIXME
9116 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9117 else
9118 ld_shlibs=no
9119 fi
9120 ;;
9121
9122 cygwin* | mingw* | pw32* | cegcc*)
9123 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9124 # as there is no search path for DLLs.
9125 hardcode_libdir_flag_spec='-L$libdir'
9126 export_dynamic_flag_spec='${wl}--export-all-symbols'
9127 allow_undefined_flag=unsupported
9128 always_export_symbols=no
9129 enable_shared_with_static_runtimes=yes
9130 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'
9131 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9132
9133 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9134 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9135 # If the export-symbols file already is a .def file (1st line
9136 # is EXPORTS), use it as is; otherwise, prepend...
9137 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9138 cp $export_symbols $output_objdir/$soname.def;
9139 else
9140 echo EXPORTS > $output_objdir/$soname.def;
9141 cat $export_symbols >> $output_objdir/$soname.def;
9142 fi~
9143 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9144 else
9145 ld_shlibs=no
9146 fi
9147 ;;
9148
9149 haiku*)
9150 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9151 link_all_deplibs=yes
9152 ;;
9153
9154 interix[3-9]*)
9155 hardcode_direct=no
9156 hardcode_shlibpath_var=no
9157 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9158 export_dynamic_flag_spec='${wl}-E'
9159 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9160 # Instead, shared libraries are loaded at an image base (0x10000000 by
9161 # default) and relocated if they conflict, which is a slow very memory
9162 # consuming and fragmenting process. To avoid this, we pick a random,
9163 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9164 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9165 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9166 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'
9167 ;;
9168
9169 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9170 tmp_diet=no
9171 if test "$host_os" = linux-dietlibc; then
9172 case $cc_basename in
9173 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9174 esac
9175 fi
9176 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9177 && test "$tmp_diet" = no
9178 then
9179 tmp_addflag=' $pic_flag'
9180 tmp_sharedflag='-shared'
9181 case $cc_basename,$host_cpu in
9182 pgcc*) # Portland Group C compiler
9183 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'
9184 tmp_addflag=' $pic_flag'
9185 ;;
9186 pgf77* | pgf90* | pgf95* | pgfortran*)
9187 # Portland Group f77 and f90 compilers
9188 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'
9189 tmp_addflag=' $pic_flag -Mnomain' ;;
9190 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9191 tmp_addflag=' -i_dynamic' ;;
9192 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9193 tmp_addflag=' -i_dynamic -nofor_main' ;;
9194 ifc* | ifort*) # Intel Fortran compiler
9195 tmp_addflag=' -nofor_main' ;;
9196 lf95*) # Lahey Fortran 8.1
9197 whole_archive_flag_spec=
9198 tmp_sharedflag='--shared' ;;
9199 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9200 tmp_sharedflag='-qmkshrobj'
9201 tmp_addflag= ;;
9202 nvcc*) # Cuda Compiler Driver 2.2
9203 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'
9204 compiler_needs_object=yes
9205 ;;
9206 esac
9207 case `$CC -V 2>&1 | sed 5q` in
9208 *Sun\ C*) # Sun C 5.9
9209 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'
9210 compiler_needs_object=yes
9211 tmp_sharedflag='-G' ;;
9212 *Sun\ F*) # Sun Fortran 8.3
9213 tmp_sharedflag='-G' ;;
9214 esac
9215 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9216
9217 if test "x$supports_anon_versioning" = xyes; then
9218 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9219 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9220 echo "local: *; };" >> $output_objdir/$libname.ver~
9221 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9222 fi
9223
9224 case $cc_basename in
9225 xlf* | bgf* | bgxlf* | mpixlf*)
9226 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9227 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9228 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9229 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9230 if test "x$supports_anon_versioning" = xyes; then
9231 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9232 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9233 echo "local: *; };" >> $output_objdir/$libname.ver~
9234 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9235 fi
9236 ;;
9237 esac
9238 else
9239 ld_shlibs=no
9240 fi
9241 ;;
9242
9243 netbsd* | netbsdelf*-gnu)
9244 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9245 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9246 wlarc=
9247 else
9248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9249 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9250 fi
9251 ;;
9252
9253 solaris*)
9254 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9255 ld_shlibs=no
9256 cat <<_LT_EOF 1>&2
9257
9258 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9259 *** create shared libraries on Solaris systems. Therefore, libtool
9260 *** is disabling shared libraries support. We urge you to upgrade GNU
9261 *** binutils to release 2.9.1 or newer. Another option is to modify
9262 *** your PATH or compiler configuration so that the native linker is
9263 *** used, and then restart.
9264
9265 _LT_EOF
9266 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9267 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9268 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9269 else
9270 ld_shlibs=no
9271 fi
9272 ;;
9273
9274 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9275 case `$LD -v 2>&1` in
9276 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9277 ld_shlibs=no
9278 cat <<_LT_EOF 1>&2
9279
9280 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9281 *** reliably create shared libraries on SCO systems. Therefore, libtool
9282 *** is disabling shared libraries support. We urge you to upgrade GNU
9283 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9284 *** your PATH or compiler configuration so that the native linker is
9285 *** used, and then restart.
9286
9287 _LT_EOF
9288 ;;
9289 *)
9290 # For security reasons, it is highly recommended that you always
9291 # use absolute paths for naming shared libraries, and exclude the
9292 # DT_RUNPATH tag from executables and libraries. But doing so
9293 # requires that you compile everything twice, which is a pain.
9294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9295 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9296 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9297 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9298 else
9299 ld_shlibs=no
9300 fi
9301 ;;
9302 esac
9303 ;;
9304
9305 sunos4*)
9306 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9307 wlarc=
9308 hardcode_direct=yes
9309 hardcode_shlibpath_var=no
9310 ;;
9311
9312 *)
9313 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9316 else
9317 ld_shlibs=no
9318 fi
9319 ;;
9320 esac
9321
9322 if test "$ld_shlibs" = no; then
9323 runpath_var=
9324 hardcode_libdir_flag_spec=
9325 export_dynamic_flag_spec=
9326 whole_archive_flag_spec=
9327 fi
9328 else
9329 # PORTME fill in a description of your system's linker (not GNU ld)
9330 case $host_os in
9331 aix3*)
9332 allow_undefined_flag=unsupported
9333 always_export_symbols=yes
9334 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'
9335 # Note: this linker hardcodes the directories in LIBPATH if there
9336 # are no directories specified by -L.
9337 hardcode_minus_L=yes
9338 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9339 # Neither direct hardcoding nor static linking is supported with a
9340 # broken collect2.
9341 hardcode_direct=unsupported
9342 fi
9343 ;;
9344
9345 aix[4-9]*)
9346 if test "$host_cpu" = ia64; then
9347 # On IA64, the linker does run time linking by default, so we don't
9348 # have to do anything special.
9349 aix_use_runtimelinking=no
9350 exp_sym_flag='-Bexport'
9351 no_entry_flag=""
9352 else
9353 # If we're using GNU nm, then we don't want the "-C" option.
9354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9355 # Also, AIX nm treats weak defined symbols like other global
9356 # defined symbols, whereas GNU nm marks them as "W".
9357 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9358 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'
9359 else
9360 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'
9361 fi
9362 aix_use_runtimelinking=no
9363
9364 # Test if we are trying to use run time linking or normal
9365 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9366 # need to do runtime linking.
9367 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9368 for ld_flag in $LDFLAGS; do
9369 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9370 aix_use_runtimelinking=yes
9371 break
9372 fi
9373 done
9374 ;;
9375 esac
9376
9377 exp_sym_flag='-bexport'
9378 no_entry_flag='-bnoentry'
9379 fi
9380
9381 # When large executables or shared objects are built, AIX ld can
9382 # have problems creating the table of contents. If linking a library
9383 # or program results in "error TOC overflow" add -mminimal-toc to
9384 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9385 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9386
9387 archive_cmds=''
9388 hardcode_direct=yes
9389 hardcode_direct_absolute=yes
9390 hardcode_libdir_separator=':'
9391 link_all_deplibs=yes
9392 file_list_spec='${wl}-f,'
9393
9394 if test "$GCC" = yes; then
9395 case $host_os in aix4.[012]|aix4.[012].*)
9396 # We only want to do this on AIX 4.2 and lower, the check
9397 # below for broken collect2 doesn't work under 4.3+
9398 collect2name=`${CC} -print-prog-name=collect2`
9399 if test -f "$collect2name" &&
9400 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9401 then
9402 # We have reworked collect2
9403 :
9404 else
9405 # We have old collect2
9406 hardcode_direct=unsupported
9407 # It fails to find uninstalled libraries when the uninstalled
9408 # path is not listed in the libpath. Setting hardcode_minus_L
9409 # to unsupported forces relinking
9410 hardcode_minus_L=yes
9411 hardcode_libdir_flag_spec='-L$libdir'
9412 hardcode_libdir_separator=
9413 fi
9414 ;;
9415 esac
9416 shared_flag='-shared'
9417 if test "$aix_use_runtimelinking" = yes; then
9418 shared_flag="$shared_flag "'${wl}-G'
9419 fi
9420 link_all_deplibs=no
9421 else
9422 # not using gcc
9423 if test "$host_cpu" = ia64; then
9424 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9425 # chokes on -Wl,-G. The following line is correct:
9426 shared_flag='-G'
9427 else
9428 if test "$aix_use_runtimelinking" = yes; then
9429 shared_flag='${wl}-G'
9430 else
9431 shared_flag='${wl}-bM:SRE'
9432 fi
9433 fi
9434 fi
9435
9436 export_dynamic_flag_spec='${wl}-bexpall'
9437 # It seems that -bexpall does not export symbols beginning with
9438 # underscore (_), so it is better to generate a list of symbols to export.
9439 always_export_symbols=yes
9440 if test "$aix_use_runtimelinking" = yes; then
9441 # Warning - without using the other runtime loading flags (-brtl),
9442 # -berok will link without error, but may produce a broken library.
9443 allow_undefined_flag='-berok'
9444 # Determine the default libpath from the value encoded in an
9445 # empty executable.
9446 if test "${lt_cv_aix_libpath+set}" = set; then
9447 aix_libpath=$lt_cv_aix_libpath
9448 else
9449 if ${lt_cv_aix_libpath_+:} false; then :
9450 $as_echo_n "(cached) " >&6
9451 else
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454
9455 int
9456 main ()
9457 {
9458
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 if ac_fn_c_try_link "$LINENO"; then :
9464
9465 lt_aix_libpath_sed='
9466 /Import File Strings/,/^$/ {
9467 /^0/ {
9468 s/^0 *\([^ ]*\) *$/\1/
9469 p
9470 }
9471 }'
9472 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9473 # Check for a 64-bit object if we didn't find anything.
9474 if test -z "$lt_cv_aix_libpath_"; then
9475 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9476 fi
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 if test -z "$lt_cv_aix_libpath_"; then
9481 lt_cv_aix_libpath_="/usr/lib:/lib"
9482 fi
9483
9484 fi
9485
9486 aix_libpath=$lt_cv_aix_libpath_
9487 fi
9488
9489 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9490 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"
9491 else
9492 if test "$host_cpu" = ia64; then
9493 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9494 allow_undefined_flag="-z nodefs"
9495 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"
9496 else
9497 # Determine the default libpath from the value encoded in an
9498 # empty executable.
9499 if test "${lt_cv_aix_libpath+set}" = set; then
9500 aix_libpath=$lt_cv_aix_libpath
9501 else
9502 if ${lt_cv_aix_libpath_+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9506 /* end confdefs.h. */
9507
9508 int
9509 main ()
9510 {
9511
9512 ;
9513 return 0;
9514 }
9515 _ACEOF
9516 if ac_fn_c_try_link "$LINENO"; then :
9517
9518 lt_aix_libpath_sed='
9519 /Import File Strings/,/^$/ {
9520 /^0/ {
9521 s/^0 *\([^ ]*\) *$/\1/
9522 p
9523 }
9524 }'
9525 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526 # Check for a 64-bit object if we didn't find anything.
9527 if test -z "$lt_cv_aix_libpath_"; then
9528 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9529 fi
9530 fi
9531 rm -f core conftest.err conftest.$ac_objext \
9532 conftest$ac_exeext conftest.$ac_ext
9533 if test -z "$lt_cv_aix_libpath_"; then
9534 lt_cv_aix_libpath_="/usr/lib:/lib"
9535 fi
9536
9537 fi
9538
9539 aix_libpath=$lt_cv_aix_libpath_
9540 fi
9541
9542 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9543 # Warning - without using the other run time loading flags,
9544 # -berok will link without error, but may produce a broken library.
9545 no_undefined_flag=' ${wl}-bernotok'
9546 allow_undefined_flag=' ${wl}-berok'
9547 if test "$with_gnu_ld" = yes; then
9548 # We only use this code for GNU lds that support --whole-archive.
9549 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9550 else
9551 # Exported symbols can be pulled into shared objects from archives
9552 whole_archive_flag_spec='$convenience'
9553 fi
9554 archive_cmds_need_lc=yes
9555 # This is similar to how AIX traditionally builds its shared libraries.
9556 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'
9557 fi
9558 fi
9559 ;;
9560
9561 amigaos*)
9562 case $host_cpu in
9563 powerpc)
9564 # see comment about AmigaOS4 .so support
9565 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9566 archive_expsym_cmds=''
9567 ;;
9568 m68k)
9569 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)'
9570 hardcode_libdir_flag_spec='-L$libdir'
9571 hardcode_minus_L=yes
9572 ;;
9573 esac
9574 ;;
9575
9576 bsdi[45]*)
9577 export_dynamic_flag_spec=-rdynamic
9578 ;;
9579
9580 cygwin* | mingw* | pw32* | cegcc*)
9581 # When not using gcc, we currently assume that we are using
9582 # Microsoft Visual C++.
9583 # hardcode_libdir_flag_spec is actually meaningless, as there is
9584 # no search path for DLLs.
9585 case $cc_basename in
9586 cl*)
9587 # Native MSVC
9588 hardcode_libdir_flag_spec=' '
9589 allow_undefined_flag=unsupported
9590 always_export_symbols=yes
9591 file_list_spec='@'
9592 # Tell ltmain to make .lib files, not .a files.
9593 libext=lib
9594 # Tell ltmain to make .dll files, not .so files.
9595 shrext_cmds=".dll"
9596 # FIXME: Setting linknames here is a bad hack.
9597 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9598 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9599 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9600 else
9601 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9602 fi~
9603 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9604 linknames='
9605 # The linker will not automatically build a static lib if we build a DLL.
9606 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9607 enable_shared_with_static_runtimes=yes
9608 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9609 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9610 # Don't use ranlib
9611 old_postinstall_cmds='chmod 644 $oldlib'
9612 postlink_cmds='lt_outputfile="@OUTPUT@"~
9613 lt_tool_outputfile="@TOOL_OUTPUT@"~
9614 case $lt_outputfile in
9615 *.exe|*.EXE) ;;
9616 *)
9617 lt_outputfile="$lt_outputfile.exe"
9618 lt_tool_outputfile="$lt_tool_outputfile.exe"
9619 ;;
9620 esac~
9621 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9622 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9623 $RM "$lt_outputfile.manifest";
9624 fi'
9625 ;;
9626 *)
9627 # Assume MSVC wrapper
9628 hardcode_libdir_flag_spec=' '
9629 allow_undefined_flag=unsupported
9630 # Tell ltmain to make .lib files, not .a files.
9631 libext=lib
9632 # Tell ltmain to make .dll files, not .so files.
9633 shrext_cmds=".dll"
9634 # FIXME: Setting linknames here is a bad hack.
9635 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9636 # The linker will automatically build a .lib file if we build a DLL.
9637 old_archive_from_new_cmds='true'
9638 # FIXME: Should let the user specify the lib program.
9639 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9640 enable_shared_with_static_runtimes=yes
9641 ;;
9642 esac
9643 ;;
9644
9645 darwin* | rhapsody*)
9646
9647
9648 archive_cmds_need_lc=no
9649 hardcode_direct=no
9650 hardcode_automatic=yes
9651 hardcode_shlibpath_var=unsupported
9652 if test "$lt_cv_ld_force_load" = "yes"; then
9653 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\"`'
9654
9655 else
9656 whole_archive_flag_spec=''
9657 fi
9658 link_all_deplibs=yes
9659 allow_undefined_flag="$_lt_dar_allow_undefined"
9660 case $cc_basename in
9661 ifort*) _lt_dar_can_shared=yes ;;
9662 *) _lt_dar_can_shared=$GCC ;;
9663 esac
9664 if test "$_lt_dar_can_shared" = "yes"; then
9665 output_verbose_link_cmd=func_echo_all
9666 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9667 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9668 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}"
9669 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}"
9670
9671 else
9672 ld_shlibs=no
9673 fi
9674
9675 ;;
9676
9677 dgux*)
9678 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9679 hardcode_libdir_flag_spec='-L$libdir'
9680 hardcode_shlibpath_var=no
9681 ;;
9682
9683 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9684 # support. Future versions do this automatically, but an explicit c++rt0.o
9685 # does not break anything, and helps significantly (at the cost of a little
9686 # extra space).
9687 freebsd2.2*)
9688 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9689 hardcode_libdir_flag_spec='-R$libdir'
9690 hardcode_direct=yes
9691 hardcode_shlibpath_var=no
9692 ;;
9693
9694 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9695 freebsd2.*)
9696 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9697 hardcode_direct=yes
9698 hardcode_minus_L=yes
9699 hardcode_shlibpath_var=no
9700 ;;
9701
9702 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9703 freebsd* | dragonfly*)
9704 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9705 hardcode_libdir_flag_spec='-R$libdir'
9706 hardcode_direct=yes
9707 hardcode_shlibpath_var=no
9708 ;;
9709
9710 hpux9*)
9711 if test "$GCC" = yes; then
9712 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'
9713 else
9714 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'
9715 fi
9716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9717 hardcode_libdir_separator=:
9718 hardcode_direct=yes
9719
9720 # hardcode_minus_L: Not really in the search PATH,
9721 # but as the default location of the library.
9722 hardcode_minus_L=yes
9723 export_dynamic_flag_spec='${wl}-E'
9724 ;;
9725
9726 hpux10*)
9727 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9728 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9729 else
9730 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9731 fi
9732 if test "$with_gnu_ld" = no; then
9733 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9734 hardcode_libdir_separator=:
9735 hardcode_direct=yes
9736 hardcode_direct_absolute=yes
9737 export_dynamic_flag_spec='${wl}-E'
9738 # hardcode_minus_L: Not really in the search PATH,
9739 # but as the default location of the library.
9740 hardcode_minus_L=yes
9741 fi
9742 ;;
9743
9744 hpux11*)
9745 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9746 case $host_cpu in
9747 hppa*64*)
9748 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9749 ;;
9750 ia64*)
9751 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9752 ;;
9753 *)
9754 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9755 ;;
9756 esac
9757 else
9758 case $host_cpu in
9759 hppa*64*)
9760 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9761 ;;
9762 ia64*)
9763 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9764 ;;
9765 *)
9766
9767 # Older versions of the 11.00 compiler do not understand -b yet
9768 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9770 $as_echo_n "checking if $CC understands -b... " >&6; }
9771 if ${lt_cv_prog_compiler__b+:} false; then :
9772 $as_echo_n "(cached) " >&6
9773 else
9774 lt_cv_prog_compiler__b=no
9775 save_LDFLAGS="$LDFLAGS"
9776 LDFLAGS="$LDFLAGS -b"
9777 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9778 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9779 # The linker can only warn and ignore the option if not recognized
9780 # So say no if there are warnings
9781 if test -s conftest.err; then
9782 # Append any errors to the config.log.
9783 cat conftest.err 1>&5
9784 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9785 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9786 if diff conftest.exp conftest.er2 >/dev/null; then
9787 lt_cv_prog_compiler__b=yes
9788 fi
9789 else
9790 lt_cv_prog_compiler__b=yes
9791 fi
9792 fi
9793 $RM -r conftest*
9794 LDFLAGS="$save_LDFLAGS"
9795
9796 fi
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9798 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9799
9800 if test x"$lt_cv_prog_compiler__b" = xyes; then
9801 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9802 else
9803 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9804 fi
9805
9806 ;;
9807 esac
9808 fi
9809 if test "$with_gnu_ld" = no; then
9810 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9811 hardcode_libdir_separator=:
9812
9813 case $host_cpu in
9814 hppa*64*|ia64*)
9815 hardcode_direct=no
9816 hardcode_shlibpath_var=no
9817 ;;
9818 *)
9819 hardcode_direct=yes
9820 hardcode_direct_absolute=yes
9821 export_dynamic_flag_spec='${wl}-E'
9822
9823 # hardcode_minus_L: Not really in the search PATH,
9824 # but as the default location of the library.
9825 hardcode_minus_L=yes
9826 ;;
9827 esac
9828 fi
9829 ;;
9830
9831 irix5* | irix6* | nonstopux*)
9832 if test "$GCC" = yes; then
9833 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'
9834 # Try to use the -exported_symbol ld option, if it does not
9835 # work, assume that -exports_file does not work either and
9836 # implicitly export all symbols.
9837 # This should be the same for all languages, so no per-tag cache variable.
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9839 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9840 if ${lt_cv_irix_exported_symbol+:} false; then :
9841 $as_echo_n "(cached) " >&6
9842 else
9843 save_LDFLAGS="$LDFLAGS"
9844 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846 /* end confdefs.h. */
9847 int foo (void) { return 0; }
9848 _ACEOF
9849 if ac_fn_c_try_link "$LINENO"; then :
9850 lt_cv_irix_exported_symbol=yes
9851 else
9852 lt_cv_irix_exported_symbol=no
9853 fi
9854 rm -f core conftest.err conftest.$ac_objext \
9855 conftest$ac_exeext conftest.$ac_ext
9856 LDFLAGS="$save_LDFLAGS"
9857 fi
9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9859 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9860 if test "$lt_cv_irix_exported_symbol" = yes; then
9861 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'
9862 fi
9863 else
9864 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'
9865 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'
9866 fi
9867 archive_cmds_need_lc='no'
9868 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9869 hardcode_libdir_separator=:
9870 inherit_rpath=yes
9871 link_all_deplibs=yes
9872 ;;
9873
9874 netbsd* | netbsdelf*-gnu)
9875 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9876 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9877 else
9878 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9879 fi
9880 hardcode_libdir_flag_spec='-R$libdir'
9881 hardcode_direct=yes
9882 hardcode_shlibpath_var=no
9883 ;;
9884
9885 newsos6)
9886 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9887 hardcode_direct=yes
9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889 hardcode_libdir_separator=:
9890 hardcode_shlibpath_var=no
9891 ;;
9892
9893 *nto* | *qnx*)
9894 ;;
9895
9896 openbsd*)
9897 if test -f /usr/libexec/ld.so; then
9898 hardcode_direct=yes
9899 hardcode_shlibpath_var=no
9900 hardcode_direct_absolute=yes
9901 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9902 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9904 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9905 export_dynamic_flag_spec='${wl}-E'
9906 else
9907 case $host_os in
9908 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9909 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9910 hardcode_libdir_flag_spec='-R$libdir'
9911 ;;
9912 *)
9913 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9914 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9915 ;;
9916 esac
9917 fi
9918 else
9919 ld_shlibs=no
9920 fi
9921 ;;
9922
9923 os2*)
9924 hardcode_libdir_flag_spec='-L$libdir'
9925 hardcode_minus_L=yes
9926 allow_undefined_flag=unsupported
9927 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'
9928 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9929 ;;
9930
9931 osf3*)
9932 if test "$GCC" = yes; then
9933 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9934 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'
9935 else
9936 allow_undefined_flag=' -expect_unresolved \*'
9937 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'
9938 fi
9939 archive_cmds_need_lc='no'
9940 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9941 hardcode_libdir_separator=:
9942 ;;
9943
9944 osf4* | osf5*) # as osf3* with the addition of -msym flag
9945 if test "$GCC" = yes; then
9946 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9947 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'
9948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9949 else
9950 allow_undefined_flag=' -expect_unresolved \*'
9951 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'
9952 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~
9953 $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'
9954
9955 # Both c and cxx compiler support -rpath directly
9956 hardcode_libdir_flag_spec='-rpath $libdir'
9957 fi
9958 archive_cmds_need_lc='no'
9959 hardcode_libdir_separator=:
9960 ;;
9961
9962 solaris*)
9963 no_undefined_flag=' -z defs'
9964 if test "$GCC" = yes; then
9965 wlarc='${wl}'
9966 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9967 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9968 $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'
9969 else
9970 case `$CC -V 2>&1` in
9971 *"Compilers 5.0"*)
9972 wlarc=''
9973 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9974 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9975 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9976 ;;
9977 *)
9978 wlarc='${wl}'
9979 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9980 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9981 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9982 ;;
9983 esac
9984 fi
9985 hardcode_libdir_flag_spec='-R$libdir'
9986 hardcode_shlibpath_var=no
9987 case $host_os in
9988 solaris2.[0-5] | solaris2.[0-5].*) ;;
9989 *)
9990 # The compiler driver will combine and reorder linker options,
9991 # but understands `-z linker_flag'. GCC discards it without `$wl',
9992 # but is careful enough not to reorder.
9993 # Supported since Solaris 2.6 (maybe 2.5.1?)
9994 if test "$GCC" = yes; then
9995 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9996 else
9997 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9998 fi
9999 ;;
10000 esac
10001 link_all_deplibs=yes
10002 ;;
10003
10004 sunos4*)
10005 if test "x$host_vendor" = xsequent; then
10006 # Use $CC to link under sequent, because it throws in some extra .o
10007 # files that make .init and .fini sections work.
10008 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10009 else
10010 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10011 fi
10012 hardcode_libdir_flag_spec='-L$libdir'
10013 hardcode_direct=yes
10014 hardcode_minus_L=yes
10015 hardcode_shlibpath_var=no
10016 ;;
10017
10018 sysv4)
10019 case $host_vendor in
10020 sni)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_direct=yes # is this really true???
10023 ;;
10024 siemens)
10025 ## LD is ld it makes a PLAMLIB
10026 ## CC just makes a GrossModule.
10027 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10028 reload_cmds='$CC -r -o $output$reload_objs'
10029 hardcode_direct=no
10030 ;;
10031 motorola)
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10033 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10034 ;;
10035 esac
10036 runpath_var='LD_RUN_PATH'
10037 hardcode_shlibpath_var=no
10038 ;;
10039
10040 sysv4.3*)
10041 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10042 hardcode_shlibpath_var=no
10043 export_dynamic_flag_spec='-Bexport'
10044 ;;
10045
10046 sysv4*MP*)
10047 if test -d /usr/nec; then
10048 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 hardcode_shlibpath_var=no
10050 runpath_var=LD_RUN_PATH
10051 hardcode_runpath_var=yes
10052 ld_shlibs=yes
10053 fi
10054 ;;
10055
10056 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10057 no_undefined_flag='${wl}-z,text'
10058 archive_cmds_need_lc=no
10059 hardcode_shlibpath_var=no
10060 runpath_var='LD_RUN_PATH'
10061
10062 if test "$GCC" = yes; then
10063 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10064 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10065 else
10066 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068 fi
10069 ;;
10070
10071 sysv5* | sco3.2v5* | sco5v6*)
10072 # Note: We can NOT use -z defs as we might desire, because we do not
10073 # link with -lc, and that would cause any symbols used from libc to
10074 # always be unresolved, which means just about no library would
10075 # ever link correctly. If we're not using GNU ld we use -z text
10076 # though, which does catch some bad symbols but isn't as heavy-handed
10077 # as -z defs.
10078 no_undefined_flag='${wl}-z,text'
10079 allow_undefined_flag='${wl}-z,nodefs'
10080 archive_cmds_need_lc=no
10081 hardcode_shlibpath_var=no
10082 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10083 hardcode_libdir_separator=':'
10084 link_all_deplibs=yes
10085 export_dynamic_flag_spec='${wl}-Bexport'
10086 runpath_var='LD_RUN_PATH'
10087
10088 if test "$GCC" = yes; then
10089 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10090 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10091 else
10092 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10093 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10094 fi
10095 ;;
10096
10097 uts4*)
10098 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10099 hardcode_libdir_flag_spec='-L$libdir'
10100 hardcode_shlibpath_var=no
10101 ;;
10102
10103 *)
10104 ld_shlibs=no
10105 ;;
10106 esac
10107
10108 if test x$host_vendor = xsni; then
10109 case $host in
10110 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10111 export_dynamic_flag_spec='${wl}-Blargedynsym'
10112 ;;
10113 esac
10114 fi
10115 fi
10116
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10118 $as_echo "$ld_shlibs" >&6; }
10119 test "$ld_shlibs" = no && can_build_shared=no
10120
10121 with_gnu_ld=$with_gnu_ld
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137 #
10138 # Do we need to explicitly link libc?
10139 #
10140 case "x$archive_cmds_need_lc" in
10141 x|xyes)
10142 # Assume -lc should be added
10143 archive_cmds_need_lc=yes
10144
10145 if test "$enable_shared" = yes && test "$GCC" = yes; then
10146 case $archive_cmds in
10147 *'~'*)
10148 # FIXME: we may have to deal with multi-command sequences.
10149 ;;
10150 '$CC '*)
10151 # Test whether the compiler implicitly links with -lc since on some
10152 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10153 # to ld, don't add -lc before -lgcc.
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10155 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10156 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10157 $as_echo_n "(cached) " >&6
10158 else
10159 $RM conftest*
10160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10161
10162 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10163 (eval $ac_compile) 2>&5
10164 ac_status=$?
10165 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10166 test $ac_status = 0; } 2>conftest.err; then
10167 soname=conftest
10168 lib=conftest
10169 libobjs=conftest.$ac_objext
10170 deplibs=
10171 wl=$lt_prog_compiler_wl
10172 pic_flag=$lt_prog_compiler_pic
10173 compiler_flags=-v
10174 linker_flags=-v
10175 verstring=
10176 output_objdir=.
10177 libname=conftest
10178 lt_save_allow_undefined_flag=$allow_undefined_flag
10179 allow_undefined_flag=
10180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10181 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10182 ac_status=$?
10183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10184 test $ac_status = 0; }
10185 then
10186 lt_cv_archive_cmds_need_lc=no
10187 else
10188 lt_cv_archive_cmds_need_lc=yes
10189 fi
10190 allow_undefined_flag=$lt_save_allow_undefined_flag
10191 else
10192 cat conftest.err 1>&5
10193 fi
10194 $RM conftest*
10195
10196 fi
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10198 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10199 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10200 ;;
10201 esac
10202 fi
10203 ;;
10204 esac
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
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10358 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10359
10360 if test "$GCC" = yes; then
10361 case $host_os in
10362 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10363 *) lt_awk_arg="/^libraries:/" ;;
10364 esac
10365 case $host_os in
10366 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10367 *) lt_sed_strip_eq="s,=/,/,g" ;;
10368 esac
10369 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10370 case $lt_search_path_spec in
10371 *\;*)
10372 # if the path contains ";" then we assume it to be the separator
10373 # otherwise default to the standard path separator (i.e. ":") - it is
10374 # assumed that no part of a normal pathname contains ";" but that should
10375 # okay in the real world where ";" in dirpaths is itself problematic.
10376 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10377 ;;
10378 *)
10379 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10380 ;;
10381 esac
10382 # Ok, now we have the path, separated by spaces, we can step through it
10383 # and add multilib dir if necessary.
10384 lt_tmp_lt_search_path_spec=
10385 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10386 for lt_sys_path in $lt_search_path_spec; do
10387 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10388 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10389 else
10390 test -d "$lt_sys_path" && \
10391 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10392 fi
10393 done
10394 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10395 BEGIN {RS=" "; FS="/|\n";} {
10396 lt_foo="";
10397 lt_count=0;
10398 for (lt_i = NF; lt_i > 0; lt_i--) {
10399 if ($lt_i != "" && $lt_i != ".") {
10400 if ($lt_i == "..") {
10401 lt_count++;
10402 } else {
10403 if (lt_count == 0) {
10404 lt_foo="/" $lt_i lt_foo;
10405 } else {
10406 lt_count--;
10407 }
10408 }
10409 }
10410 }
10411 if (lt_foo != "") { lt_freq[lt_foo]++; }
10412 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10413 }'`
10414 # AWK program above erroneously prepends '/' to C:/dos/paths
10415 # for these hosts.
10416 case $host_os in
10417 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10418 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10419 esac
10420 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10421 else
10422 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10423 fi
10424 library_names_spec=
10425 libname_spec='lib$name'
10426 soname_spec=
10427 shrext_cmds=".so"
10428 postinstall_cmds=
10429 postuninstall_cmds=
10430 finish_cmds=
10431 finish_eval=
10432 shlibpath_var=
10433 shlibpath_overrides_runpath=unknown
10434 version_type=none
10435 dynamic_linker="$host_os ld.so"
10436 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10437 need_lib_prefix=unknown
10438 hardcode_into_libs=no
10439
10440 # when you set need_version to no, make sure it does not cause -set_version
10441 # flags to be left without arguments
10442 need_version=unknown
10443
10444 case $host_os in
10445 aix3*)
10446 version_type=linux # correct to gnu/linux during the next big refactor
10447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10448 shlibpath_var=LIBPATH
10449
10450 # AIX 3 has no versioning support, so we append a major version to the name.
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 ;;
10453
10454 aix[4-9]*)
10455 version_type=linux # correct to gnu/linux during the next big refactor
10456 need_lib_prefix=no
10457 need_version=no
10458 hardcode_into_libs=yes
10459 if test "$host_cpu" = ia64; then
10460 # AIX 5 supports IA64
10461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10462 shlibpath_var=LD_LIBRARY_PATH
10463 else
10464 # With GCC up to 2.95.x, collect2 would create an import file
10465 # for dependence libraries. The import file would start with
10466 # the line `#! .'. This would cause the generated library to
10467 # depend on `.', always an invalid library. This was fixed in
10468 # development snapshots of GCC prior to 3.0.
10469 case $host_os in
10470 aix4 | aix4.[01] | aix4.[01].*)
10471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10472 echo ' yes '
10473 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10474 :
10475 else
10476 can_build_shared=no
10477 fi
10478 ;;
10479 esac
10480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10481 # soname into executable. Probably we can add versioning support to
10482 # collect2, so additional links can be useful in future.
10483 if test "$aix_use_runtimelinking" = yes; then
10484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10485 # instead of lib<name>.a to let people know that these are not
10486 # typical AIX shared libraries.
10487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10488 else
10489 # We preserve .a as extension for shared libraries through AIX4.2
10490 # and later when we are not doing run time linking.
10491 library_names_spec='${libname}${release}.a $libname.a'
10492 soname_spec='${libname}${release}${shared_ext}$major'
10493 fi
10494 shlibpath_var=LIBPATH
10495 fi
10496 ;;
10497
10498 amigaos*)
10499 case $host_cpu in
10500 powerpc)
10501 # Since July 2007 AmigaOS4 officially supports .so libraries.
10502 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10504 ;;
10505 m68k)
10506 library_names_spec='$libname.ixlibrary $libname.a'
10507 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10508 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'
10509 ;;
10510 esac
10511 ;;
10512
10513 beos*)
10514 library_names_spec='${libname}${shared_ext}'
10515 dynamic_linker="$host_os ld.so"
10516 shlibpath_var=LIBRARY_PATH
10517 ;;
10518
10519 bsdi[45]*)
10520 version_type=linux # correct to gnu/linux during the next big refactor
10521 need_version=no
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10523 soname_spec='${libname}${release}${shared_ext}$major'
10524 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10525 shlibpath_var=LD_LIBRARY_PATH
10526 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10527 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10528 # the default ld.so.conf also contains /usr/contrib/lib and
10529 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10530 # libtool to hard-code these into programs
10531 ;;
10532
10533 cygwin* | mingw* | pw32* | cegcc*)
10534 version_type=windows
10535 shrext_cmds=".dll"
10536 need_version=no
10537 need_lib_prefix=no
10538
10539 case $GCC,$cc_basename in
10540 yes,*)
10541 # gcc
10542 library_names_spec='$libname.dll.a'
10543 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10544 postinstall_cmds='base_file=`basename \${file}`~
10545 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10546 dldir=$destdir/`dirname \$dlpath`~
10547 test -d \$dldir || mkdir -p \$dldir~
10548 $install_prog $dir/$dlname \$dldir/$dlname~
10549 chmod a+x \$dldir/$dlname~
10550 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10551 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10552 fi'
10553 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10554 dlpath=$dir/\$dldll~
10555 $RM \$dlpath'
10556 shlibpath_overrides_runpath=yes
10557
10558 case $host_os in
10559 cygwin*)
10560 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10561 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10562
10563 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10564 ;;
10565 mingw* | cegcc*)
10566 # MinGW DLLs use traditional 'lib' prefix
10567 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10568 ;;
10569 pw32*)
10570 # pw32 DLLs use 'pw' prefix rather than 'lib'
10571 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10572 ;;
10573 esac
10574 dynamic_linker='Win32 ld.exe'
10575 ;;
10576
10577 *,cl*)
10578 # Native MSVC
10579 libname_spec='$name'
10580 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10581 library_names_spec='${libname}.dll.lib'
10582
10583 case $build_os in
10584 mingw*)
10585 sys_lib_search_path_spec=
10586 lt_save_ifs=$IFS
10587 IFS=';'
10588 for lt_path in $LIB
10589 do
10590 IFS=$lt_save_ifs
10591 # Let DOS variable expansion print the short 8.3 style file name.
10592 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10593 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10594 done
10595 IFS=$lt_save_ifs
10596 # Convert to MSYS style.
10597 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10598 ;;
10599 cygwin*)
10600 # Convert to unix form, then to dos form, then back to unix form
10601 # but this time dos style (no spaces!) so that the unix form looks
10602 # like /cygdrive/c/PROGRA~1:/cygdr...
10603 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10604 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10605 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10606 ;;
10607 *)
10608 sys_lib_search_path_spec="$LIB"
10609 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10610 # It is most probably a Windows format PATH.
10611 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10612 else
10613 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10614 fi
10615 # FIXME: find the short name or the path components, as spaces are
10616 # common. (e.g. "Program Files" -> "PROGRA~1")
10617 ;;
10618 esac
10619
10620 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10621 postinstall_cmds='base_file=`basename \${file}`~
10622 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10623 dldir=$destdir/`dirname \$dlpath`~
10624 test -d \$dldir || mkdir -p \$dldir~
10625 $install_prog $dir/$dlname \$dldir/$dlname'
10626 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10627 dlpath=$dir/\$dldll~
10628 $RM \$dlpath'
10629 shlibpath_overrides_runpath=yes
10630 dynamic_linker='Win32 link.exe'
10631 ;;
10632
10633 *)
10634 # Assume MSVC wrapper
10635 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10636 dynamic_linker='Win32 ld.exe'
10637 ;;
10638 esac
10639 # FIXME: first we should search . and the directory the executable is in
10640 shlibpath_var=PATH
10641 ;;
10642
10643 darwin* | rhapsody*)
10644 dynamic_linker="$host_os dyld"
10645 version_type=darwin
10646 need_lib_prefix=no
10647 need_version=no
10648 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10649 soname_spec='${libname}${release}${major}$shared_ext'
10650 shlibpath_overrides_runpath=yes
10651 shlibpath_var=DYLD_LIBRARY_PATH
10652 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10653
10654 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10656 ;;
10657
10658 dgux*)
10659 version_type=linux # correct to gnu/linux during the next big refactor
10660 need_lib_prefix=no
10661 need_version=no
10662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10663 soname_spec='${libname}${release}${shared_ext}$major'
10664 shlibpath_var=LD_LIBRARY_PATH
10665 ;;
10666
10667 freebsd* | dragonfly*)
10668 # DragonFly does not have aout. When/if they implement a new
10669 # versioning mechanism, adjust this.
10670 if test -x /usr/bin/objformat; then
10671 objformat=`/usr/bin/objformat`
10672 else
10673 case $host_os in
10674 freebsd[23].*) objformat=aout ;;
10675 *) objformat=elf ;;
10676 esac
10677 fi
10678 version_type=freebsd-$objformat
10679 case $version_type in
10680 freebsd-elf*)
10681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10682 need_version=no
10683 need_lib_prefix=no
10684 ;;
10685 freebsd-*)
10686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10687 need_version=yes
10688 ;;
10689 esac
10690 shlibpath_var=LD_LIBRARY_PATH
10691 case $host_os in
10692 freebsd2.*)
10693 shlibpath_overrides_runpath=yes
10694 ;;
10695 freebsd3.[01]* | freebsdelf3.[01]*)
10696 shlibpath_overrides_runpath=yes
10697 hardcode_into_libs=yes
10698 ;;
10699 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10700 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10701 shlibpath_overrides_runpath=no
10702 hardcode_into_libs=yes
10703 ;;
10704 *) # from 4.6 on, and DragonFly
10705 shlibpath_overrides_runpath=yes
10706 hardcode_into_libs=yes
10707 ;;
10708 esac
10709 ;;
10710
10711 gnu*)
10712 version_type=linux # correct to gnu/linux during the next big refactor
10713 need_lib_prefix=no
10714 need_version=no
10715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10716 soname_spec='${libname}${release}${shared_ext}$major'
10717 shlibpath_var=LD_LIBRARY_PATH
10718 shlibpath_overrides_runpath=no
10719 hardcode_into_libs=yes
10720 ;;
10721
10722 haiku*)
10723 version_type=linux # correct to gnu/linux during the next big refactor
10724 need_lib_prefix=no
10725 need_version=no
10726 dynamic_linker="$host_os runtime_loader"
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LIBRARY_PATH
10730 shlibpath_overrides_runpath=yes
10731 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10732 hardcode_into_libs=yes
10733 ;;
10734
10735 hpux9* | hpux10* | hpux11*)
10736 # Give a soname corresponding to the major version so that dld.sl refuses to
10737 # link against other versions.
10738 version_type=sunos
10739 need_lib_prefix=no
10740 need_version=no
10741 case $host_cpu in
10742 ia64*)
10743 shrext_cmds='.so'
10744 hardcode_into_libs=yes
10745 dynamic_linker="$host_os dld.so"
10746 shlibpath_var=LD_LIBRARY_PATH
10747 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10749 soname_spec='${libname}${release}${shared_ext}$major'
10750 if test "X$HPUX_IA64_MODE" = X32; then
10751 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10752 else
10753 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10754 fi
10755 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10756 ;;
10757 hppa*64*)
10758 shrext_cmds='.sl'
10759 hardcode_into_libs=yes
10760 dynamic_linker="$host_os dld.sl"
10761 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10762 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764 soname_spec='${libname}${release}${shared_ext}$major'
10765 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10766 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10767 ;;
10768 *)
10769 shrext_cmds='.sl'
10770 dynamic_linker="$host_os dld.sl"
10771 shlibpath_var=SHLIB_PATH
10772 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10773 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10774 soname_spec='${libname}${release}${shared_ext}$major'
10775 ;;
10776 esac
10777 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10778 postinstall_cmds='chmod 555 $lib'
10779 # or fails outright, so override atomically:
10780 install_override_mode=555
10781 ;;
10782
10783 interix[3-9]*)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792 hardcode_into_libs=yes
10793 ;;
10794
10795 irix5* | irix6* | nonstopux*)
10796 case $host_os in
10797 nonstopux*) version_type=nonstopux ;;
10798 *)
10799 if test "$lt_cv_prog_gnu_ld" = yes; then
10800 version_type=linux # correct to gnu/linux during the next big refactor
10801 else
10802 version_type=irix
10803 fi ;;
10804 esac
10805 need_lib_prefix=no
10806 need_version=no
10807 soname_spec='${libname}${release}${shared_ext}$major'
10808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10809 case $host_os in
10810 irix5* | nonstopux*)
10811 libsuff= shlibsuff=
10812 ;;
10813 *)
10814 case $LD in # libtool.m4 will add one of these switches to LD
10815 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10816 libsuff= shlibsuff= libmagic=32-bit;;
10817 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10818 libsuff=32 shlibsuff=N32 libmagic=N32;;
10819 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10820 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10821 *) libsuff= shlibsuff= libmagic=never-match;;
10822 esac
10823 ;;
10824 esac
10825 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10826 shlibpath_overrides_runpath=no
10827 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10828 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10829 hardcode_into_libs=yes
10830 ;;
10831
10832 # No shared lib support for Linux oldld, aout, or coff.
10833 linux*oldld* | linux*aout* | linux*coff*)
10834 dynamic_linker=no
10835 ;;
10836
10837 # This must be glibc/ELF.
10838 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10839 version_type=linux # correct to gnu/linux during the next big refactor
10840 need_lib_prefix=no
10841 need_version=no
10842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10843 soname_spec='${libname}${release}${shared_ext}$major'
10844 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10845 shlibpath_var=LD_LIBRARY_PATH
10846 shlibpath_overrides_runpath=no
10847
10848 # Some binutils ld are patched to set DT_RUNPATH
10849 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10850 $as_echo_n "(cached) " >&6
10851 else
10852 lt_cv_shlibpath_overrides_runpath=no
10853 save_LDFLAGS=$LDFLAGS
10854 save_libdir=$libdir
10855 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10856 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10858 /* end confdefs.h. */
10859
10860 int
10861 main ()
10862 {
10863
10864 ;
10865 return 0;
10866 }
10867 _ACEOF
10868 if ac_fn_c_try_link "$LINENO"; then :
10869 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10870 lt_cv_shlibpath_overrides_runpath=yes
10871 fi
10872 fi
10873 rm -f core conftest.err conftest.$ac_objext \
10874 conftest$ac_exeext conftest.$ac_ext
10875 LDFLAGS=$save_LDFLAGS
10876 libdir=$save_libdir
10877
10878 fi
10879
10880 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10881
10882 # This implies no fast_install, which is unacceptable.
10883 # Some rework will be needed to allow for fast_install
10884 # before this can be enabled.
10885 hardcode_into_libs=yes
10886
10887 # Append ld.so.conf contents to the search path
10888 if test -f /etc/ld.so.conf; then
10889 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' ' '`
10890 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10891 fi
10892
10893 # We used to test for /lib/ld.so.1 and disable shared libraries on
10894 # powerpc, because MkLinux only supported shared libraries with the
10895 # GNU dynamic linker. Since this was broken with cross compilers,
10896 # most powerpc-linux boxes support dynamic linking these days and
10897 # people can always --disable-shared, the test was removed, and we
10898 # assume the GNU/Linux dynamic linker is in use.
10899 dynamic_linker='GNU/Linux ld.so'
10900 ;;
10901
10902 netbsdelf*-gnu)
10903 version_type=linux
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 shlibpath_var=LD_LIBRARY_PATH
10909 shlibpath_overrides_runpath=no
10910 hardcode_into_libs=yes
10911 dynamic_linker='NetBSD ld.elf_so'
10912 ;;
10913
10914 netbsd*)
10915 version_type=sunos
10916 need_lib_prefix=no
10917 need_version=no
10918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10920 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10921 dynamic_linker='NetBSD (a.out) ld.so'
10922 else
10923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10924 soname_spec='${libname}${release}${shared_ext}$major'
10925 dynamic_linker='NetBSD ld.elf_so'
10926 fi
10927 shlibpath_var=LD_LIBRARY_PATH
10928 shlibpath_overrides_runpath=yes
10929 hardcode_into_libs=yes
10930 ;;
10931
10932 newsos6)
10933 version_type=linux # correct to gnu/linux during the next big refactor
10934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10935 shlibpath_var=LD_LIBRARY_PATH
10936 shlibpath_overrides_runpath=yes
10937 ;;
10938
10939 *nto* | *qnx*)
10940 version_type=qnx
10941 need_lib_prefix=no
10942 need_version=no
10943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10944 soname_spec='${libname}${release}${shared_ext}$major'
10945 shlibpath_var=LD_LIBRARY_PATH
10946 shlibpath_overrides_runpath=no
10947 hardcode_into_libs=yes
10948 dynamic_linker='ldqnx.so'
10949 ;;
10950
10951 openbsd*)
10952 version_type=sunos
10953 sys_lib_dlsearch_path_spec="/usr/lib"
10954 need_lib_prefix=no
10955 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10956 case $host_os in
10957 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10958 *) need_version=no ;;
10959 esac
10960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10961 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10962 shlibpath_var=LD_LIBRARY_PATH
10963 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10964 case $host_os in
10965 openbsd2.[89] | openbsd2.[89].*)
10966 shlibpath_overrides_runpath=no
10967 ;;
10968 *)
10969 shlibpath_overrides_runpath=yes
10970 ;;
10971 esac
10972 else
10973 shlibpath_overrides_runpath=yes
10974 fi
10975 ;;
10976
10977 os2*)
10978 libname_spec='$name'
10979 shrext_cmds=".dll"
10980 need_lib_prefix=no
10981 library_names_spec='$libname${shared_ext} $libname.a'
10982 dynamic_linker='OS/2 ld.exe'
10983 shlibpath_var=LIBPATH
10984 ;;
10985
10986 osf3* | osf4* | osf5*)
10987 version_type=osf
10988 need_lib_prefix=no
10989 need_version=no
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10992 shlibpath_var=LD_LIBRARY_PATH
10993 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10994 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10995 ;;
10996
10997 rdos*)
10998 dynamic_linker=no
10999 ;;
11000
11001 solaris*)
11002 version_type=linux # correct to gnu/linux during the next big refactor
11003 need_lib_prefix=no
11004 need_version=no
11005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11006 soname_spec='${libname}${release}${shared_ext}$major'
11007 shlibpath_var=LD_LIBRARY_PATH
11008 shlibpath_overrides_runpath=yes
11009 hardcode_into_libs=yes
11010 # ldd complains unless libraries are executable
11011 postinstall_cmds='chmod +x $lib'
11012 ;;
11013
11014 sunos4*)
11015 version_type=sunos
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11017 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11018 shlibpath_var=LD_LIBRARY_PATH
11019 shlibpath_overrides_runpath=yes
11020 if test "$with_gnu_ld" = yes; then
11021 need_lib_prefix=no
11022 fi
11023 need_version=yes
11024 ;;
11025
11026 sysv4 | sysv4.3*)
11027 version_type=linux # correct to gnu/linux during the next big refactor
11028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11029 soname_spec='${libname}${release}${shared_ext}$major'
11030 shlibpath_var=LD_LIBRARY_PATH
11031 case $host_vendor in
11032 sni)
11033 shlibpath_overrides_runpath=no
11034 need_lib_prefix=no
11035 runpath_var=LD_RUN_PATH
11036 ;;
11037 siemens)
11038 need_lib_prefix=no
11039 ;;
11040 motorola)
11041 need_lib_prefix=no
11042 need_version=no
11043 shlibpath_overrides_runpath=no
11044 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11045 ;;
11046 esac
11047 ;;
11048
11049 sysv4*MP*)
11050 if test -d /usr/nec ;then
11051 version_type=linux # correct to gnu/linux during the next big refactor
11052 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11053 soname_spec='$libname${shared_ext}.$major'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 fi
11056 ;;
11057
11058 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11059 version_type=freebsd-elf
11060 need_lib_prefix=no
11061 need_version=no
11062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11063 soname_spec='${libname}${release}${shared_ext}$major'
11064 shlibpath_var=LD_LIBRARY_PATH
11065 shlibpath_overrides_runpath=yes
11066 hardcode_into_libs=yes
11067 if test "$with_gnu_ld" = yes; then
11068 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11069 else
11070 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11071 case $host_os in
11072 sco3.2v5*)
11073 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11074 ;;
11075 esac
11076 fi
11077 sys_lib_dlsearch_path_spec='/usr/lib'
11078 ;;
11079
11080 tpf*)
11081 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11082 version_type=linux # correct to gnu/linux during the next big refactor
11083 need_lib_prefix=no
11084 need_version=no
11085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11086 shlibpath_var=LD_LIBRARY_PATH
11087 shlibpath_overrides_runpath=no
11088 hardcode_into_libs=yes
11089 ;;
11090
11091 uts4*)
11092 version_type=linux # correct to gnu/linux during the next big refactor
11093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11094 soname_spec='${libname}${release}${shared_ext}$major'
11095 shlibpath_var=LD_LIBRARY_PATH
11096 ;;
11097
11098 *)
11099 dynamic_linker=no
11100 ;;
11101 esac
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11103 $as_echo "$dynamic_linker" >&6; }
11104 test "$dynamic_linker" = no && can_build_shared=no
11105
11106 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11107 if test "$GCC" = yes; then
11108 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11109 fi
11110
11111 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11112 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11113 fi
11114 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11115 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11116 fi
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146
11147
11148
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158
11159
11160
11161
11162
11163
11164
11165
11166
11167
11168
11169
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11210 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11211 hardcode_action=
11212 if test -n "$hardcode_libdir_flag_spec" ||
11213 test -n "$runpath_var" ||
11214 test "X$hardcode_automatic" = "Xyes" ; then
11215
11216 # We can hardcode non-existent directories.
11217 if test "$hardcode_direct" != no &&
11218 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11219 # have to relink, otherwise we might link with an installed library
11220 # when we should be linking with a yet-to-be-installed one
11221 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11222 test "$hardcode_minus_L" != no; then
11223 # Linking always hardcodes the temporary library directory.
11224 hardcode_action=relink
11225 else
11226 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11227 hardcode_action=immediate
11228 fi
11229 else
11230 # We cannot hardcode anything, or else we can only hardcode existing
11231 # directories.
11232 hardcode_action=unsupported
11233 fi
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11235 $as_echo "$hardcode_action" >&6; }
11236
11237 if test "$hardcode_action" = relink ||
11238 test "$inherit_rpath" = yes; then
11239 # Fast installation is not supported
11240 enable_fast_install=no
11241 elif test "$shlibpath_overrides_runpath" = yes ||
11242 test "$enable_shared" = no; then
11243 # Fast installation is not necessary
11244 enable_fast_install=needless
11245 fi
11246
11247
11248
11249
11250
11251
11252 if test "x$enable_dlopen" != xyes; then
11253 enable_dlopen=unknown
11254 enable_dlopen_self=unknown
11255 enable_dlopen_self_static=unknown
11256 else
11257 lt_cv_dlopen=no
11258 lt_cv_dlopen_libs=
11259
11260 case $host_os in
11261 beos*)
11262 lt_cv_dlopen="load_add_on"
11263 lt_cv_dlopen_libs=
11264 lt_cv_dlopen_self=yes
11265 ;;
11266
11267 mingw* | pw32* | cegcc*)
11268 lt_cv_dlopen="LoadLibrary"
11269 lt_cv_dlopen_libs=
11270 ;;
11271
11272 cygwin*)
11273 lt_cv_dlopen="dlopen"
11274 lt_cv_dlopen_libs=
11275 ;;
11276
11277 darwin*)
11278 # if libdl is installed we need to link against it
11279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11280 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11281 if ${ac_cv_lib_dl_dlopen+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283 else
11284 ac_check_lib_save_LIBS=$LIBS
11285 LIBS="-ldl $LIBS"
11286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11287 /* end confdefs.h. */
11288
11289 /* Override any GCC internal prototype to avoid an error.
11290 Use char because int might match the return type of a GCC
11291 builtin and then its argument prototype would still apply. */
11292 #ifdef __cplusplus
11293 extern "C"
11294 #endif
11295 char dlopen ();
11296 int
11297 main ()
11298 {
11299 return dlopen ();
11300 ;
11301 return 0;
11302 }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305 ac_cv_lib_dl_dlopen=yes
11306 else
11307 ac_cv_lib_dl_dlopen=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310 conftest$ac_exeext conftest.$ac_ext
11311 LIBS=$ac_check_lib_save_LIBS
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11314 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11315 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11316 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11317 else
11318
11319 lt_cv_dlopen="dyld"
11320 lt_cv_dlopen_libs=
11321 lt_cv_dlopen_self=yes
11322
11323 fi
11324
11325 ;;
11326
11327 *)
11328 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11329 if test "x$ac_cv_func_shl_load" = xyes; then :
11330 lt_cv_dlopen="shl_load"
11331 else
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11333 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11334 if ${ac_cv_lib_dld_shl_load+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 ac_check_lib_save_LIBS=$LIBS
11338 LIBS="-ldld $LIBS"
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341
11342 /* Override any GCC internal prototype to avoid an error.
11343 Use char because int might match the return type of a GCC
11344 builtin and then its argument prototype would still apply. */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 char shl_load ();
11349 int
11350 main ()
11351 {
11352 return shl_load ();
11353 ;
11354 return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358 ac_cv_lib_dld_shl_load=yes
11359 else
11360 ac_cv_lib_dld_shl_load=no
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11367 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11368 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11369 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11370 else
11371 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11372 if test "x$ac_cv_func_dlopen" = xyes; then :
11373 lt_cv_dlopen="dlopen"
11374 else
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11376 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11377 if ${ac_cv_lib_dl_dlopen+:} false; then :
11378 $as_echo_n "(cached) " >&6
11379 else
11380 ac_check_lib_save_LIBS=$LIBS
11381 LIBS="-ldl $LIBS"
11382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11383 /* end confdefs.h. */
11384
11385 /* Override any GCC internal prototype to avoid an error.
11386 Use char because int might match the return type of a GCC
11387 builtin and then its argument prototype would still apply. */
11388 #ifdef __cplusplus
11389 extern "C"
11390 #endif
11391 char dlopen ();
11392 int
11393 main ()
11394 {
11395 return dlopen ();
11396 ;
11397 return 0;
11398 }
11399 _ACEOF
11400 if ac_fn_c_try_link "$LINENO"; then :
11401 ac_cv_lib_dl_dlopen=yes
11402 else
11403 ac_cv_lib_dl_dlopen=no
11404 fi
11405 rm -f core conftest.err conftest.$ac_objext \
11406 conftest$ac_exeext conftest.$ac_ext
11407 LIBS=$ac_check_lib_save_LIBS
11408 fi
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11410 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11411 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11412 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11413 else
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11415 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11416 if ${ac_cv_lib_svld_dlopen+:} false; then :
11417 $as_echo_n "(cached) " >&6
11418 else
11419 ac_check_lib_save_LIBS=$LIBS
11420 LIBS="-lsvld $LIBS"
11421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11422 /* end confdefs.h. */
11423
11424 /* Override any GCC internal prototype to avoid an error.
11425 Use char because int might match the return type of a GCC
11426 builtin and then its argument prototype would still apply. */
11427 #ifdef __cplusplus
11428 extern "C"
11429 #endif
11430 char dlopen ();
11431 int
11432 main ()
11433 {
11434 return dlopen ();
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 if ac_fn_c_try_link "$LINENO"; then :
11440 ac_cv_lib_svld_dlopen=yes
11441 else
11442 ac_cv_lib_svld_dlopen=no
11443 fi
11444 rm -f core conftest.err conftest.$ac_objext \
11445 conftest$ac_exeext conftest.$ac_ext
11446 LIBS=$ac_check_lib_save_LIBS
11447 fi
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11449 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11450 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11451 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11452 else
11453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11454 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11455 if ${ac_cv_lib_dld_dld_link+:} false; then :
11456 $as_echo_n "(cached) " >&6
11457 else
11458 ac_check_lib_save_LIBS=$LIBS
11459 LIBS="-ldld $LIBS"
11460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11461 /* end confdefs.h. */
11462
11463 /* Override any GCC internal prototype to avoid an error.
11464 Use char because int might match the return type of a GCC
11465 builtin and then its argument prototype would still apply. */
11466 #ifdef __cplusplus
11467 extern "C"
11468 #endif
11469 char dld_link ();
11470 int
11471 main ()
11472 {
11473 return dld_link ();
11474 ;
11475 return 0;
11476 }
11477 _ACEOF
11478 if ac_fn_c_try_link "$LINENO"; then :
11479 ac_cv_lib_dld_dld_link=yes
11480 else
11481 ac_cv_lib_dld_dld_link=no
11482 fi
11483 rm -f core conftest.err conftest.$ac_objext \
11484 conftest$ac_exeext conftest.$ac_ext
11485 LIBS=$ac_check_lib_save_LIBS
11486 fi
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11488 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11489 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11490 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11491 fi
11492
11493
11494 fi
11495
11496
11497 fi
11498
11499
11500 fi
11501
11502
11503 fi
11504
11505
11506 fi
11507
11508 ;;
11509 esac
11510
11511 if test "x$lt_cv_dlopen" != xno; then
11512 enable_dlopen=yes
11513 else
11514 enable_dlopen=no
11515 fi
11516
11517 case $lt_cv_dlopen in
11518 dlopen)
11519 save_CPPFLAGS="$CPPFLAGS"
11520 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11521
11522 save_LDFLAGS="$LDFLAGS"
11523 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11524
11525 save_LIBS="$LIBS"
11526 LIBS="$lt_cv_dlopen_libs $LIBS"
11527
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11529 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11530 if ${lt_cv_dlopen_self+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532 else
11533 if test "$cross_compiling" = yes; then :
11534 lt_cv_dlopen_self=cross
11535 else
11536 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11537 lt_status=$lt_dlunknown
11538 cat > conftest.$ac_ext <<_LT_EOF
11539 #line $LINENO "configure"
11540 #include "confdefs.h"
11541
11542 #if HAVE_DLFCN_H
11543 #include <dlfcn.h>
11544 #endif
11545
11546 #include <stdio.h>
11547
11548 #ifdef RTLD_GLOBAL
11549 # define LT_DLGLOBAL RTLD_GLOBAL
11550 #else
11551 # ifdef DL_GLOBAL
11552 # define LT_DLGLOBAL DL_GLOBAL
11553 # else
11554 # define LT_DLGLOBAL 0
11555 # endif
11556 #endif
11557
11558 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11559 find out it does not work in some platform. */
11560 #ifndef LT_DLLAZY_OR_NOW
11561 # ifdef RTLD_LAZY
11562 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11563 # else
11564 # ifdef DL_LAZY
11565 # define LT_DLLAZY_OR_NOW DL_LAZY
11566 # else
11567 # ifdef RTLD_NOW
11568 # define LT_DLLAZY_OR_NOW RTLD_NOW
11569 # else
11570 # ifdef DL_NOW
11571 # define LT_DLLAZY_OR_NOW DL_NOW
11572 # else
11573 # define LT_DLLAZY_OR_NOW 0
11574 # endif
11575 # endif
11576 # endif
11577 # endif
11578 #endif
11579
11580 /* When -fvisbility=hidden is used, assume the code has been annotated
11581 correspondingly for the symbols needed. */
11582 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11583 int fnord () __attribute__((visibility("default")));
11584 #endif
11585
11586 int fnord () { return 42; }
11587 int main ()
11588 {
11589 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11590 int status = $lt_dlunknown;
11591
11592 if (self)
11593 {
11594 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11595 else
11596 {
11597 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11598 else puts (dlerror ());
11599 }
11600 /* dlclose (self); */
11601 }
11602 else
11603 puts (dlerror ());
11604
11605 return status;
11606 }
11607 _LT_EOF
11608 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11609 (eval $ac_link) 2>&5
11610 ac_status=$?
11611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11612 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11613 (./conftest; exit; ) >&5 2>/dev/null
11614 lt_status=$?
11615 case x$lt_status in
11616 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11617 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11618 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11619 esac
11620 else :
11621 # compilation failed
11622 lt_cv_dlopen_self=no
11623 fi
11624 fi
11625 rm -fr conftest*
11626
11627
11628 fi
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11630 $as_echo "$lt_cv_dlopen_self" >&6; }
11631
11632 if test "x$lt_cv_dlopen_self" = xyes; then
11633 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11635 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11636 if ${lt_cv_dlopen_self_static+:} false; then :
11637 $as_echo_n "(cached) " >&6
11638 else
11639 if test "$cross_compiling" = yes; then :
11640 lt_cv_dlopen_self_static=cross
11641 else
11642 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11643 lt_status=$lt_dlunknown
11644 cat > conftest.$ac_ext <<_LT_EOF
11645 #line $LINENO "configure"
11646 #include "confdefs.h"
11647
11648 #if HAVE_DLFCN_H
11649 #include <dlfcn.h>
11650 #endif
11651
11652 #include <stdio.h>
11653
11654 #ifdef RTLD_GLOBAL
11655 # define LT_DLGLOBAL RTLD_GLOBAL
11656 #else
11657 # ifdef DL_GLOBAL
11658 # define LT_DLGLOBAL DL_GLOBAL
11659 # else
11660 # define LT_DLGLOBAL 0
11661 # endif
11662 #endif
11663
11664 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11665 find out it does not work in some platform. */
11666 #ifndef LT_DLLAZY_OR_NOW
11667 # ifdef RTLD_LAZY
11668 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11669 # else
11670 # ifdef DL_LAZY
11671 # define LT_DLLAZY_OR_NOW DL_LAZY
11672 # else
11673 # ifdef RTLD_NOW
11674 # define LT_DLLAZY_OR_NOW RTLD_NOW
11675 # else
11676 # ifdef DL_NOW
11677 # define LT_DLLAZY_OR_NOW DL_NOW
11678 # else
11679 # define LT_DLLAZY_OR_NOW 0
11680 # endif
11681 # endif
11682 # endif
11683 # endif
11684 #endif
11685
11686 /* When -fvisbility=hidden is used, assume the code has been annotated
11687 correspondingly for the symbols needed. */
11688 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11689 int fnord () __attribute__((visibility("default")));
11690 #endif
11691
11692 int fnord () { return 42; }
11693 int main ()
11694 {
11695 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11696 int status = $lt_dlunknown;
11697
11698 if (self)
11699 {
11700 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11701 else
11702 {
11703 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11704 else puts (dlerror ());
11705 }
11706 /* dlclose (self); */
11707 }
11708 else
11709 puts (dlerror ());
11710
11711 return status;
11712 }
11713 _LT_EOF
11714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11715 (eval $ac_link) 2>&5
11716 ac_status=$?
11717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11718 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11719 (./conftest; exit; ) >&5 2>/dev/null
11720 lt_status=$?
11721 case x$lt_status in
11722 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11723 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11724 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11725 esac
11726 else :
11727 # compilation failed
11728 lt_cv_dlopen_self_static=no
11729 fi
11730 fi
11731 rm -fr conftest*
11732
11733
11734 fi
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11736 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11737 fi
11738
11739 CPPFLAGS="$save_CPPFLAGS"
11740 LDFLAGS="$save_LDFLAGS"
11741 LIBS="$save_LIBS"
11742 ;;
11743 esac
11744
11745 case $lt_cv_dlopen_self in
11746 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11747 *) enable_dlopen_self=unknown ;;
11748 esac
11749
11750 case $lt_cv_dlopen_self_static in
11751 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11752 *) enable_dlopen_self_static=unknown ;;
11753 esac
11754 fi
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772 striplib=
11773 old_striplib=
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11775 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11776 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11777 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11778 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11780 $as_echo "yes" >&6; }
11781 else
11782 # FIXME - insert some real tests, host_os isn't really good enough
11783 case $host_os in
11784 darwin*)
11785 if test -n "$STRIP" ; then
11786 striplib="$STRIP -x"
11787 old_striplib="$STRIP -S"
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11789 $as_echo "yes" >&6; }
11790 else
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11792 $as_echo "no" >&6; }
11793 fi
11794 ;;
11795 *)
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11797 $as_echo "no" >&6; }
11798 ;;
11799 esac
11800 fi
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813 # Report which library types will actually be built
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11815 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11817 $as_echo "$can_build_shared" >&6; }
11818
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11820 $as_echo_n "checking whether to build shared libraries... " >&6; }
11821 test "$can_build_shared" = "no" && enable_shared=no
11822
11823 # On AIX, shared libraries and static libraries use the same namespace, and
11824 # are all built from PIC.
11825 case $host_os in
11826 aix3*)
11827 test "$enable_shared" = yes && enable_static=no
11828 if test -n "$RANLIB"; then
11829 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11830 postinstall_cmds='$RANLIB $lib'
11831 fi
11832 ;;
11833
11834 aix[4-9]*)
11835 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11836 test "$enable_shared" = yes && enable_static=no
11837 fi
11838 ;;
11839 esac
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11841 $as_echo "$enable_shared" >&6; }
11842
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11844 $as_echo_n "checking whether to build static libraries... " >&6; }
11845 # Make sure either enable_shared or enable_static is yes.
11846 test "$enable_shared" = yes || enable_static=yes
11847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11848 $as_echo "$enable_static" >&6; }
11849
11850
11851
11852
11853 fi
11854 ac_ext=c
11855 ac_cpp='$CPP $CPPFLAGS'
11856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11859
11860 CC="$lt_save_CC"
11861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876 ac_config_commands="$ac_config_commands libtool"
11877
11878
11879
11880
11881 # Only expand once:
11882
11883
11884
11885 # Require xorg-macros minimum of 1.10 for DocBook XML documentation
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11898 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11899 if ${ac_cv_prog_cc_c99+:} false; then :
11900 $as_echo_n "(cached) " >&6
11901 else
11902 ac_cv_prog_cc_c99=no
11903 ac_save_CC=$CC
11904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11905 /* end confdefs.h. */
11906 #include <stdarg.h>
11907 #include <stdbool.h>
11908 #include <stdlib.h>
11909 #include <wchar.h>
11910 #include <stdio.h>
11911
11912 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11913 #define debug(...) fprintf (stderr, __VA_ARGS__)
11914 #define showlist(...) puts (#__VA_ARGS__)
11915 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11916 static void
11917 test_varargs_macros (void)
11918 {
11919 int x = 1234;
11920 int y = 5678;
11921 debug ("Flag");
11922 debug ("X = %d\n", x);
11923 showlist (The first, second, and third items.);
11924 report (x>y, "x is %d but y is %d", x, y);
11925 }
11926
11927 // Check long long types.
11928 #define BIG64 18446744073709551615ull
11929 #define BIG32 4294967295ul
11930 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11931 #if !BIG_OK
11932 your preprocessor is broken;
11933 #endif
11934 #if BIG_OK
11935 #else
11936 your preprocessor is broken;
11937 #endif
11938 static long long int bignum = -9223372036854775807LL;
11939 static unsigned long long int ubignum = BIG64;
11940
11941 struct incomplete_array
11942 {
11943 int datasize;
11944 double data[];
11945 };
11946
11947 struct named_init {
11948 int number;
11949 const wchar_t *name;
11950 double average;
11951 };
11952
11953 typedef const char *ccp;
11954
11955 static inline int
11956 test_restrict (ccp restrict text)
11957 {
11958 // See if C++-style comments work.
11959 // Iterate through items via the restricted pointer.
11960 // Also check for declarations in for loops.
11961 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11962 continue;
11963 return 0;
11964 }
11965
11966 // Check varargs and va_copy.
11967 static void
11968 test_varargs (const char *format, ...)
11969 {
11970 va_list args;
11971 va_start (args, format);
11972 va_list args_copy;
11973 va_copy (args_copy, args);
11974
11975 const char *str;
11976 int number;
11977 float fnumber;
11978
11979 while (*format)
11980 {
11981 switch (*format++)
11982 {
11983 case 's': // string
11984 str = va_arg (args_copy, const char *);
11985 break;
11986 case 'd': // int
11987 number = va_arg (args_copy, int);
11988 break;
11989 case 'f': // float
11990 fnumber = va_arg (args_copy, double);
11991 break;
11992 default:
11993 break;
11994 }
11995 }
11996 va_end (args_copy);
11997 va_end (args);
11998 }
11999
12000 int
12001 main ()
12002 {
12003
12004 // Check bool.
12005 _Bool success = false;
12006
12007 // Check restrict.
12008 if (test_restrict ("String literal") == 0)
12009 success = true;
12010 char *restrict newvar = "Another string";
12011
12012 // Check varargs.
12013 test_varargs ("s, d' f .", "string", 65, 34.234);
12014 test_varargs_macros ();
12015
12016 // Check flexible array members.
12017 struct incomplete_array *ia =
12018 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
12019 ia->datasize = 10;
12020 for (int i = 0; i < ia->datasize; ++i)
12021 ia->data[i] = i * 1.234;
12022
12023 // Check named initializers.
12024 struct named_init ni = {
12025 .number = 34,
12026 .name = L"Test wide string",
12027 .average = 543.34343,
12028 };
12029
12030 ni.number = 58;
12031
12032 int dynamic_array[ni.number];
12033 dynamic_array[ni.number - 1] = 543;
12034
12035 // work around unused variable warnings
12036 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
12037 || dynamic_array[ni.number - 1] != 543);
12038
12039 ;
12040 return 0;
12041 }
12042 _ACEOF
12043 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
12044 do
12045 CC="$ac_save_CC $ac_arg"
12046 if ac_fn_c_try_compile "$LINENO"; then :
12047 ac_cv_prog_cc_c99=$ac_arg
12048 fi
12049 rm -f core conftest.err conftest.$ac_objext
12050 test "x$ac_cv_prog_cc_c99" != "xno" && break
12051 done
12052 rm -f conftest.$ac_ext
12053 CC=$ac_save_CC
12054
12055 fi
12056 # AC_CACHE_VAL
12057 case "x$ac_cv_prog_cc_c99" in
12058 x)
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12060 $as_echo "none needed" >&6; } ;;
12061 xno)
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12063 $as_echo "unsupported" >&6; } ;;
12064 *)
12065 CC="$CC $ac_cv_prog_cc_c99"
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
12067 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
12068 esac
12069 if test "x$ac_cv_prog_cc_c99" != xno; then :
12070
12071 fi
12072
12073
12074
12075
12076
12077
12078 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
12079 if test "x$ac_cv_have_decl___clang__" = xyes; then :
12080 CLANGCC="yes"
12081 else
12082 CLANGCC="no"
12083 fi
12084
12085 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
12086 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
12087 INTELCC="yes"
12088 else
12089 INTELCC="no"
12090 fi
12091
12092 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
12093 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
12094 SUNCC="yes"
12095 else
12096 SUNCC="no"
12097 fi
12098
12099
12100
12101
12102
12103
12104
12105
12106
12107 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12108 if test -n "$ac_tool_prefix"; then
12109 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12110 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12112 $as_echo_n "checking for $ac_word... " >&6; }
12113 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12114 $as_echo_n "(cached) " >&6
12115 else
12116 case $PKG_CONFIG in
12117 [\\/]* | ?:[\\/]*)
12118 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12119 ;;
12120 *)
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12123 do
12124 IFS=$as_save_IFS
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12130 break 2
12131 fi
12132 done
12133 done
12134 IFS=$as_save_IFS
12135
12136 ;;
12137 esac
12138 fi
12139 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12140 if test -n "$PKG_CONFIG"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12142 $as_echo "$PKG_CONFIG" >&6; }
12143 else
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12145 $as_echo "no" >&6; }
12146 fi
12147
12148
12149 fi
12150 if test -z "$ac_cv_path_PKG_CONFIG"; then
12151 ac_pt_PKG_CONFIG=$PKG_CONFIG
12152 # Extract the first word of "pkg-config", so it can be a program name with args.
12153 set dummy pkg-config; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12155 $as_echo_n "checking for $ac_word... " >&6; }
12156 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12157 $as_echo_n "(cached) " >&6
12158 else
12159 case $ac_pt_PKG_CONFIG in
12160 [\\/]* | ?:[\\/]*)
12161 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12162 ;;
12163 *)
12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12165 for as_dir in $PATH
12166 do
12167 IFS=$as_save_IFS
12168 test -z "$as_dir" && as_dir=.
12169 for ac_exec_ext in '' $ac_executable_extensions; do
12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12171 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12173 break 2
12174 fi
12175 done
12176 done
12177 IFS=$as_save_IFS
12178
12179 ;;
12180 esac
12181 fi
12182 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12183 if test -n "$ac_pt_PKG_CONFIG"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12185 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12186 else
12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12188 $as_echo "no" >&6; }
12189 fi
12190
12191 if test "x$ac_pt_PKG_CONFIG" = x; then
12192 PKG_CONFIG=""
12193 else
12194 case $cross_compiling:$ac_tool_warned in
12195 yes:)
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12197 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12198 ac_tool_warned=yes ;;
12199 esac
12200 PKG_CONFIG=$ac_pt_PKG_CONFIG
12201 fi
12202 else
12203 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12204 fi
12205
12206 fi
12207 if test -n "$PKG_CONFIG"; then
12208 _pkg_min_version=0.9.0
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12210 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12211 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12213 $as_echo "yes" >&6; }
12214 else
12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12216 $as_echo "no" >&6; }
12217 PKG_CONFIG=""
12218 fi
12219 fi
12220
12221
12222
12223
12224
12225 # Check whether --enable-selective-werror was given.
12226 if test "${enable_selective_werror+set}" = set; then :
12227 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
12228 else
12229 SELECTIVE_WERROR=yes
12230 fi
12231
12232
12233
12234
12235
12236 # -v is too short to test reliably with XORG_TESTSET_CFLAG
12237 if test "x$SUNCC" = "xyes"; then
12238 BASE_CFLAGS="-v"
12239 else
12240 BASE_CFLAGS=""
12241 fi
12242
12243 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
12244
12245
12246
12247
12248
12249
12250
12251
12252
12253
12254
12255
12256
12257 xorg_testset_save_CFLAGS="$CFLAGS"
12258
12259 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12262 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12263 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12264 $as_echo_n "(cached) " >&6
12265 else
12266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12267 /* end confdefs.h. */
12268 int i;
12269 _ACEOF
12270 if ac_fn_c_try_compile "$LINENO"; then :
12271 xorg_cv_cc_flag_unknown_warning_option=yes
12272 else
12273 xorg_cv_cc_flag_unknown_warning_option=no
12274 fi
12275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12276 fi
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12278 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12279 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12280 CFLAGS="$xorg_testset_save_CFLAGS"
12281 fi
12282
12283 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12284 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12285 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12286 fi
12287 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12289 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12290 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12291 $as_echo_n "(cached) " >&6
12292 else
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 int i;
12296 _ACEOF
12297 if ac_fn_c_try_compile "$LINENO"; then :
12298 xorg_cv_cc_flag_unused_command_line_argument=yes
12299 else
12300 xorg_cv_cc_flag_unused_command_line_argument=no
12301 fi
12302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12305 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12306 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12307 CFLAGS="$xorg_testset_save_CFLAGS"
12308 fi
12309
12310 found="no"
12311
12312 if test $found = "no" ; then
12313 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12314 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12315 fi
12316
12317 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12318 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12319 fi
12320
12321 CFLAGS="$CFLAGS -Wall"
12322
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
12324 $as_echo_n "checking if $CC supports -Wall... " >&6; }
12325 cacheid=xorg_cv_cc_flag__Wall
12326 if eval \${$cacheid+:} false; then :
12327 $as_echo_n "(cached) " >&6
12328 else
12329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12330 /* end confdefs.h. */
12331 int i;
12332 int
12333 main ()
12334 {
12335
12336 ;
12337 return 0;
12338 }
12339 _ACEOF
12340 if ac_fn_c_try_link "$LINENO"; then :
12341 eval $cacheid=yes
12342 else
12343 eval $cacheid=no
12344 fi
12345 rm -f core conftest.err conftest.$ac_objext \
12346 conftest$ac_exeext conftest.$ac_ext
12347 fi
12348
12349
12350 CFLAGS="$xorg_testset_save_CFLAGS"
12351
12352 eval supported=\$$cacheid
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12354 $as_echo "$supported" >&6; }
12355 if test "$supported" = "yes" ; then
12356 BASE_CFLAGS="$BASE_CFLAGS -Wall"
12357 found="yes"
12358 fi
12359 fi
12360
12361
12362
12363
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375 xorg_testset_save_CFLAGS="$CFLAGS"
12376
12377 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12380 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12381 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12382 $as_echo_n "(cached) " >&6
12383 else
12384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12385 /* end confdefs.h. */
12386 int i;
12387 _ACEOF
12388 if ac_fn_c_try_compile "$LINENO"; then :
12389 xorg_cv_cc_flag_unknown_warning_option=yes
12390 else
12391 xorg_cv_cc_flag_unknown_warning_option=no
12392 fi
12393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12394 fi
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12396 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12397 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12398 CFLAGS="$xorg_testset_save_CFLAGS"
12399 fi
12400
12401 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12402 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12403 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12404 fi
12405 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12407 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12408 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12409 $as_echo_n "(cached) " >&6
12410 else
12411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12412 /* end confdefs.h. */
12413 int i;
12414 _ACEOF
12415 if ac_fn_c_try_compile "$LINENO"; then :
12416 xorg_cv_cc_flag_unused_command_line_argument=yes
12417 else
12418 xorg_cv_cc_flag_unused_command_line_argument=no
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12421 fi
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12423 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12424 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12425 CFLAGS="$xorg_testset_save_CFLAGS"
12426 fi
12427
12428 found="no"
12429
12430 if test $found = "no" ; then
12431 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12432 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12433 fi
12434
12435 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12436 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12437 fi
12438
12439 CFLAGS="$CFLAGS -Wpointer-arith"
12440
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
12442 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
12443 cacheid=xorg_cv_cc_flag__Wpointer_arith
12444 if eval \${$cacheid+:} false; then :
12445 $as_echo_n "(cached) " >&6
12446 else
12447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12448 /* end confdefs.h. */
12449 int i;
12450 int
12451 main ()
12452 {
12453
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 eval $cacheid=yes
12460 else
12461 eval $cacheid=no
12462 fi
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 fi
12466
12467
12468 CFLAGS="$xorg_testset_save_CFLAGS"
12469
12470 eval supported=\$$cacheid
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12472 $as_echo "$supported" >&6; }
12473 if test "$supported" = "yes" ; then
12474 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
12475 found="yes"
12476 fi
12477 fi
12478
12479
12480
12481
12482
12483
12484
12485
12486
12487
12488
12489
12490
12491
12492
12493 xorg_testset_save_CFLAGS="$CFLAGS"
12494
12495 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12498 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12499 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12500 $as_echo_n "(cached) " >&6
12501 else
12502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12503 /* end confdefs.h. */
12504 int i;
12505 _ACEOF
12506 if ac_fn_c_try_compile "$LINENO"; then :
12507 xorg_cv_cc_flag_unknown_warning_option=yes
12508 else
12509 xorg_cv_cc_flag_unknown_warning_option=no
12510 fi
12511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12512 fi
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12514 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12515 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12516 CFLAGS="$xorg_testset_save_CFLAGS"
12517 fi
12518
12519 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12520 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12521 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12522 fi
12523 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12525 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12526 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12527 $as_echo_n "(cached) " >&6
12528 else
12529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12530 /* end confdefs.h. */
12531 int i;
12532 _ACEOF
12533 if ac_fn_c_try_compile "$LINENO"; then :
12534 xorg_cv_cc_flag_unused_command_line_argument=yes
12535 else
12536 xorg_cv_cc_flag_unused_command_line_argument=no
12537 fi
12538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539 fi
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12541 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12542 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12543 CFLAGS="$xorg_testset_save_CFLAGS"
12544 fi
12545
12546 found="no"
12547
12548 if test $found = "no" ; then
12549 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12550 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12551 fi
12552
12553 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12554 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12555 fi
12556
12557 CFLAGS="$CFLAGS -Wmissing-declarations"
12558
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12560 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12561 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12562 if eval \${$cacheid+:} false; then :
12563 $as_echo_n "(cached) " >&6
12564 else
12565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12566 /* end confdefs.h. */
12567 int i;
12568 int
12569 main ()
12570 {
12571
12572 ;
12573 return 0;
12574 }
12575 _ACEOF
12576 if ac_fn_c_try_link "$LINENO"; then :
12577 eval $cacheid=yes
12578 else
12579 eval $cacheid=no
12580 fi
12581 rm -f core conftest.err conftest.$ac_objext \
12582 conftest$ac_exeext conftest.$ac_ext
12583 fi
12584
12585
12586 CFLAGS="$xorg_testset_save_CFLAGS"
12587
12588 eval supported=\$$cacheid
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12590 $as_echo "$supported" >&6; }
12591 if test "$supported" = "yes" ; then
12592 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12593 found="yes"
12594 fi
12595 fi
12596
12597
12598
12599
12600
12601
12602
12603
12604
12605
12606
12607
12608
12609
12610
12611 xorg_testset_save_CFLAGS="$CFLAGS"
12612
12613 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12616 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12617 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12618 $as_echo_n "(cached) " >&6
12619 else
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12622 int i;
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625 xorg_cv_cc_flag_unknown_warning_option=yes
12626 else
12627 xorg_cv_cc_flag_unknown_warning_option=no
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 fi
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12632 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12633 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12634 CFLAGS="$xorg_testset_save_CFLAGS"
12635 fi
12636
12637 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12638 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12639 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12640 fi
12641 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12643 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12644 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12645 $as_echo_n "(cached) " >&6
12646 else
12647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12648 /* end confdefs.h. */
12649 int i;
12650 _ACEOF
12651 if ac_fn_c_try_compile "$LINENO"; then :
12652 xorg_cv_cc_flag_unused_command_line_argument=yes
12653 else
12654 xorg_cv_cc_flag_unused_command_line_argument=no
12655 fi
12656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12657 fi
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12659 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12660 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12661 CFLAGS="$xorg_testset_save_CFLAGS"
12662 fi
12663
12664 found="no"
12665
12666 if test $found = "no" ; then
12667 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12668 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12669 fi
12670
12671 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12672 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12673 fi
12674
12675 CFLAGS="$CFLAGS -Wformat=2"
12676
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12678 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12679 cacheid=xorg_cv_cc_flag__Wformat_2
12680 if eval \${$cacheid+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h. */
12685 int i;
12686 int
12687 main ()
12688 {
12689
12690 ;
12691 return 0;
12692 }
12693 _ACEOF
12694 if ac_fn_c_try_link "$LINENO"; then :
12695 eval $cacheid=yes
12696 else
12697 eval $cacheid=no
12698 fi
12699 rm -f core conftest.err conftest.$ac_objext \
12700 conftest$ac_exeext conftest.$ac_ext
12701 fi
12702
12703
12704 CFLAGS="$xorg_testset_save_CFLAGS"
12705
12706 eval supported=\$$cacheid
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12708 $as_echo "$supported" >&6; }
12709 if test "$supported" = "yes" ; then
12710 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12711 found="yes"
12712 fi
12713 fi
12714
12715 if test $found = "no" ; then
12716 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12717 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12718 fi
12719
12720 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12721 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12722 fi
12723
12724 CFLAGS="$CFLAGS -Wformat"
12725
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12727 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12728 cacheid=xorg_cv_cc_flag__Wformat
12729 if eval \${$cacheid+:} false; then :
12730 $as_echo_n "(cached) " >&6
12731 else
12732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12733 /* end confdefs.h. */
12734 int i;
12735 int
12736 main ()
12737 {
12738
12739 ;
12740 return 0;
12741 }
12742 _ACEOF
12743 if ac_fn_c_try_link "$LINENO"; then :
12744 eval $cacheid=yes
12745 else
12746 eval $cacheid=no
12747 fi
12748 rm -f core conftest.err conftest.$ac_objext \
12749 conftest$ac_exeext conftest.$ac_ext
12750 fi
12751
12752
12753 CFLAGS="$xorg_testset_save_CFLAGS"
12754
12755 eval supported=\$$cacheid
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12757 $as_echo "$supported" >&6; }
12758 if test "$supported" = "yes" ; then
12759 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12760 found="yes"
12761 fi
12762 fi
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779
12780 xorg_testset_save_CFLAGS="$CFLAGS"
12781
12782 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12783 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12785 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12786 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12787 $as_echo_n "(cached) " >&6
12788 else
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12791 int i;
12792 _ACEOF
12793 if ac_fn_c_try_compile "$LINENO"; then :
12794 xorg_cv_cc_flag_unknown_warning_option=yes
12795 else
12796 xorg_cv_cc_flag_unknown_warning_option=no
12797 fi
12798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12799 fi
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12801 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12802 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12803 CFLAGS="$xorg_testset_save_CFLAGS"
12804 fi
12805
12806 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12807 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12808 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12809 fi
12810 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12812 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12813 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12814 $as_echo_n "(cached) " >&6
12815 else
12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12817 /* end confdefs.h. */
12818 int i;
12819 _ACEOF
12820 if ac_fn_c_try_compile "$LINENO"; then :
12821 xorg_cv_cc_flag_unused_command_line_argument=yes
12822 else
12823 xorg_cv_cc_flag_unused_command_line_argument=no
12824 fi
12825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12826 fi
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12828 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12829 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12830 CFLAGS="$xorg_testset_save_CFLAGS"
12831 fi
12832
12833 found="no"
12834
12835 if test $found = "no" ; then
12836 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12837 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12838 fi
12839
12840 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12841 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12842 fi
12843
12844 CFLAGS="$CFLAGS -Wstrict-prototypes"
12845
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12847 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12848 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12849 if eval \${$cacheid+:} false; then :
12850 $as_echo_n "(cached) " >&6
12851 else
12852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12853 /* end confdefs.h. */
12854 int i;
12855 int
12856 main ()
12857 {
12858
12859 ;
12860 return 0;
12861 }
12862 _ACEOF
12863 if ac_fn_c_try_link "$LINENO"; then :
12864 eval $cacheid=yes
12865 else
12866 eval $cacheid=no
12867 fi
12868 rm -f core conftest.err conftest.$ac_objext \
12869 conftest$ac_exeext conftest.$ac_ext
12870 fi
12871
12872
12873 CFLAGS="$xorg_testset_save_CFLAGS"
12874
12875 eval supported=\$$cacheid
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12877 $as_echo "$supported" >&6; }
12878 if test "$supported" = "yes" ; then
12879 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12880 found="yes"
12881 fi
12882 fi
12883
12884
12885
12886
12887
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898 xorg_testset_save_CFLAGS="$CFLAGS"
12899
12900 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12901 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12903 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12904 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12905 $as_echo_n "(cached) " >&6
12906 else
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 int i;
12910 _ACEOF
12911 if ac_fn_c_try_compile "$LINENO"; then :
12912 xorg_cv_cc_flag_unknown_warning_option=yes
12913 else
12914 xorg_cv_cc_flag_unknown_warning_option=no
12915 fi
12916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12917 fi
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12919 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12920 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12921 CFLAGS="$xorg_testset_save_CFLAGS"
12922 fi
12923
12924 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12925 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12926 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12927 fi
12928 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12930 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12931 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12932 $as_echo_n "(cached) " >&6
12933 else
12934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12935 /* end confdefs.h. */
12936 int i;
12937 _ACEOF
12938 if ac_fn_c_try_compile "$LINENO"; then :
12939 xorg_cv_cc_flag_unused_command_line_argument=yes
12940 else
12941 xorg_cv_cc_flag_unused_command_line_argument=no
12942 fi
12943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12944 fi
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12946 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12947 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12948 CFLAGS="$xorg_testset_save_CFLAGS"
12949 fi
12950
12951 found="no"
12952
12953 if test $found = "no" ; then
12954 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12955 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12956 fi
12957
12958 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
12959 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12960 fi
12961
12962 CFLAGS="$CFLAGS -Wmissing-prototypes"
12963
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12965 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12966 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12967 if eval \${$cacheid+:} false; then :
12968 $as_echo_n "(cached) " >&6
12969 else
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 int i;
12973 int
12974 main ()
12975 {
12976
12977 ;
12978 return 0;
12979 }
12980 _ACEOF
12981 if ac_fn_c_try_link "$LINENO"; then :
12982 eval $cacheid=yes
12983 else
12984 eval $cacheid=no
12985 fi
12986 rm -f core conftest.err conftest.$ac_objext \
12987 conftest$ac_exeext conftest.$ac_ext
12988 fi
12989
12990
12991 CFLAGS="$xorg_testset_save_CFLAGS"
12992
12993 eval supported=\$$cacheid
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12995 $as_echo "$supported" >&6; }
12996 if test "$supported" = "yes" ; then
12997 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12998 found="yes"
12999 fi
13000 fi
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016 xorg_testset_save_CFLAGS="$CFLAGS"
13017
13018 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13021 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13022 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13023 $as_echo_n "(cached) " >&6
13024 else
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027 int i;
13028 _ACEOF
13029 if ac_fn_c_try_compile "$LINENO"; then :
13030 xorg_cv_cc_flag_unknown_warning_option=yes
13031 else
13032 xorg_cv_cc_flag_unknown_warning_option=no
13033 fi
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13035 fi
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13037 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13038 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13039 CFLAGS="$xorg_testset_save_CFLAGS"
13040 fi
13041
13042 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13043 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13044 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13045 fi
13046 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13048 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13049 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13050 $as_echo_n "(cached) " >&6
13051 else
13052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054 int i;
13055 _ACEOF
13056 if ac_fn_c_try_compile "$LINENO"; then :
13057 xorg_cv_cc_flag_unused_command_line_argument=yes
13058 else
13059 xorg_cv_cc_flag_unused_command_line_argument=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13064 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13065 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13066 CFLAGS="$xorg_testset_save_CFLAGS"
13067 fi
13068
13069 found="no"
13070
13071 if test $found = "no" ; then
13072 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13073 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13074 fi
13075
13076 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13077 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13078 fi
13079
13080 CFLAGS="$CFLAGS -Wnested-externs"
13081
13082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
13083 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
13084 cacheid=xorg_cv_cc_flag__Wnested_externs
13085 if eval \${$cacheid+:} false; then :
13086 $as_echo_n "(cached) " >&6
13087 else
13088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h. */
13090 int i;
13091 int
13092 main ()
13093 {
13094
13095 ;
13096 return 0;
13097 }
13098 _ACEOF
13099 if ac_fn_c_try_link "$LINENO"; then :
13100 eval $cacheid=yes
13101 else
13102 eval $cacheid=no
13103 fi
13104 rm -f core conftest.err conftest.$ac_objext \
13105 conftest$ac_exeext conftest.$ac_ext
13106 fi
13107
13108
13109 CFLAGS="$xorg_testset_save_CFLAGS"
13110
13111 eval supported=\$$cacheid
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13113 $as_echo "$supported" >&6; }
13114 if test "$supported" = "yes" ; then
13115 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
13116 found="yes"
13117 fi
13118 fi
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130
13131
13132
13133
13134 xorg_testset_save_CFLAGS="$CFLAGS"
13135
13136 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13139 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13140 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13141 $as_echo_n "(cached) " >&6
13142 else
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144 /* end confdefs.h. */
13145 int i;
13146 _ACEOF
13147 if ac_fn_c_try_compile "$LINENO"; then :
13148 xorg_cv_cc_flag_unknown_warning_option=yes
13149 else
13150 xorg_cv_cc_flag_unknown_warning_option=no
13151 fi
13152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13153 fi
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13155 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13156 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13157 CFLAGS="$xorg_testset_save_CFLAGS"
13158 fi
13159
13160 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13161 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13162 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13163 fi
13164 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13166 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13167 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13168 $as_echo_n "(cached) " >&6
13169 else
13170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13171 /* end confdefs.h. */
13172 int i;
13173 _ACEOF
13174 if ac_fn_c_try_compile "$LINENO"; then :
13175 xorg_cv_cc_flag_unused_command_line_argument=yes
13176 else
13177 xorg_cv_cc_flag_unused_command_line_argument=no
13178 fi
13179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13180 fi
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13182 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13183 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13184 CFLAGS="$xorg_testset_save_CFLAGS"
13185 fi
13186
13187 found="no"
13188
13189 if test $found = "no" ; then
13190 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13191 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13192 fi
13193
13194 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13195 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13196 fi
13197
13198 CFLAGS="$CFLAGS -Wbad-function-cast"
13199
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
13201 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
13202 cacheid=xorg_cv_cc_flag__Wbad_function_cast
13203 if eval \${$cacheid+:} false; then :
13204 $as_echo_n "(cached) " >&6
13205 else
13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13207 /* end confdefs.h. */
13208 int i;
13209 int
13210 main ()
13211 {
13212
13213 ;
13214 return 0;
13215 }
13216 _ACEOF
13217 if ac_fn_c_try_link "$LINENO"; then :
13218 eval $cacheid=yes
13219 else
13220 eval $cacheid=no
13221 fi
13222 rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224 fi
13225
13226
13227 CFLAGS="$xorg_testset_save_CFLAGS"
13228
13229 eval supported=\$$cacheid
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13231 $as_echo "$supported" >&6; }
13232 if test "$supported" = "yes" ; then
13233 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
13234 found="yes"
13235 fi
13236 fi
13237
13238
13239
13240
13241
13242
13243
13244
13245
13246
13247
13248
13249
13250
13251
13252 xorg_testset_save_CFLAGS="$CFLAGS"
13253
13254 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13257 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13258 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13259 $as_echo_n "(cached) " >&6
13260 else
13261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13262 /* end confdefs.h. */
13263 int i;
13264 _ACEOF
13265 if ac_fn_c_try_compile "$LINENO"; then :
13266 xorg_cv_cc_flag_unknown_warning_option=yes
13267 else
13268 xorg_cv_cc_flag_unknown_warning_option=no
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13271 fi
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13273 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13274 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13275 CFLAGS="$xorg_testset_save_CFLAGS"
13276 fi
13277
13278 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13279 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13280 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13281 fi
13282 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13284 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13285 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13286 $as_echo_n "(cached) " >&6
13287 else
13288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13289 /* end confdefs.h. */
13290 int i;
13291 _ACEOF
13292 if ac_fn_c_try_compile "$LINENO"; then :
13293 xorg_cv_cc_flag_unused_command_line_argument=yes
13294 else
13295 xorg_cv_cc_flag_unused_command_line_argument=no
13296 fi
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 fi
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13300 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13301 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13302 CFLAGS="$xorg_testset_save_CFLAGS"
13303 fi
13304
13305 found="no"
13306
13307 if test $found = "no" ; then
13308 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13309 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13310 fi
13311
13312 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13313 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13314 fi
13315
13316 CFLAGS="$CFLAGS -Wold-style-definition"
13317
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
13319 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
13320 cacheid=xorg_cv_cc_flag__Wold_style_definition
13321 if eval \${$cacheid+:} false; then :
13322 $as_echo_n "(cached) " >&6
13323 else
13324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325 /* end confdefs.h. */
13326 int i;
13327 int
13328 main ()
13329 {
13330
13331 ;
13332 return 0;
13333 }
13334 _ACEOF
13335 if ac_fn_c_try_link "$LINENO"; then :
13336 eval $cacheid=yes
13337 else
13338 eval $cacheid=no
13339 fi
13340 rm -f core conftest.err conftest.$ac_objext \
13341 conftest$ac_exeext conftest.$ac_ext
13342 fi
13343
13344
13345 CFLAGS="$xorg_testset_save_CFLAGS"
13346
13347 eval supported=\$$cacheid
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13349 $as_echo "$supported" >&6; }
13350 if test "$supported" = "yes" ; then
13351 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
13352 found="yes"
13353 fi
13354 fi
13355
13356 if test $found = "no" ; then
13357 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13358 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13359 fi
13360
13361 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13362 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13363 fi
13364
13365 CFLAGS="$CFLAGS -fd"
13366
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -fd" >&5
13368 $as_echo_n "checking if $CC supports -fd... " >&6; }
13369 cacheid=xorg_cv_cc_flag__fd
13370 if eval \${$cacheid+:} false; then :
13371 $as_echo_n "(cached) " >&6
13372 else
13373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13374 /* end confdefs.h. */
13375 int i;
13376 int
13377 main ()
13378 {
13379
13380 ;
13381 return 0;
13382 }
13383 _ACEOF
13384 if ac_fn_c_try_link "$LINENO"; then :
13385 eval $cacheid=yes
13386 else
13387 eval $cacheid=no
13388 fi
13389 rm -f core conftest.err conftest.$ac_objext \
13390 conftest$ac_exeext conftest.$ac_ext
13391 fi
13392
13393
13394 CFLAGS="$xorg_testset_save_CFLAGS"
13395
13396 eval supported=\$$cacheid
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13398 $as_echo "$supported" >&6; }
13399 if test "$supported" = "yes" ; then
13400 BASE_CFLAGS="$BASE_CFLAGS -fd"
13401 found="yes"
13402 fi
13403 fi
13404
13405
13406
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419 xorg_testset_save_CFLAGS="$CFLAGS"
13420
13421 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13422 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13424 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13425 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13426 $as_echo_n "(cached) " >&6
13427 else
13428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13429 /* end confdefs.h. */
13430 int i;
13431 _ACEOF
13432 if ac_fn_c_try_compile "$LINENO"; then :
13433 xorg_cv_cc_flag_unknown_warning_option=yes
13434 else
13435 xorg_cv_cc_flag_unknown_warning_option=no
13436 fi
13437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13438 fi
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13440 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13441 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13442 CFLAGS="$xorg_testset_save_CFLAGS"
13443 fi
13444
13445 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13446 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13447 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13448 fi
13449 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13451 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13452 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13453 $as_echo_n "(cached) " >&6
13454 else
13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13456 /* end confdefs.h. */
13457 int i;
13458 _ACEOF
13459 if ac_fn_c_try_compile "$LINENO"; then :
13460 xorg_cv_cc_flag_unused_command_line_argument=yes
13461 else
13462 xorg_cv_cc_flag_unused_command_line_argument=no
13463 fi
13464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13465 fi
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13467 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13468 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13469 CFLAGS="$xorg_testset_save_CFLAGS"
13470 fi
13471
13472 found="no"
13473
13474 if test $found = "no" ; then
13475 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13476 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13477 fi
13478
13479 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13480 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13481 fi
13482
13483 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
13484
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
13486 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
13487 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
13488 if eval \${$cacheid+:} false; then :
13489 $as_echo_n "(cached) " >&6
13490 else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13492 /* end confdefs.h. */
13493 int i;
13494 int
13495 main ()
13496 {
13497
13498 ;
13499 return 0;
13500 }
13501 _ACEOF
13502 if ac_fn_c_try_link "$LINENO"; then :
13503 eval $cacheid=yes
13504 else
13505 eval $cacheid=no
13506 fi
13507 rm -f core conftest.err conftest.$ac_objext \
13508 conftest$ac_exeext conftest.$ac_ext
13509 fi
13510
13511
13512 CFLAGS="$xorg_testset_save_CFLAGS"
13513
13514 eval supported=\$$cacheid
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13516 $as_echo "$supported" >&6; }
13517 if test "$supported" = "yes" ; then
13518 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
13519 found="yes"
13520 fi
13521 fi
13522
13523
13524
13525
13526
13527 # This chunk adds additional warnings that could catch undesired effects.
13528
13529
13530
13531
13532
13533
13534
13535
13536
13537
13538
13539
13540
13541 xorg_testset_save_CFLAGS="$CFLAGS"
13542
13543 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13544 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13546 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13547 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13548 $as_echo_n "(cached) " >&6
13549 else
13550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13551 /* end confdefs.h. */
13552 int i;
13553 _ACEOF
13554 if ac_fn_c_try_compile "$LINENO"; then :
13555 xorg_cv_cc_flag_unknown_warning_option=yes
13556 else
13557 xorg_cv_cc_flag_unknown_warning_option=no
13558 fi
13559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13560 fi
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13562 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13563 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13564 CFLAGS="$xorg_testset_save_CFLAGS"
13565 fi
13566
13567 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13568 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13569 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13570 fi
13571 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13573 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13574 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13575 $as_echo_n "(cached) " >&6
13576 else
13577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13578 /* end confdefs.h. */
13579 int i;
13580 _ACEOF
13581 if ac_fn_c_try_compile "$LINENO"; then :
13582 xorg_cv_cc_flag_unused_command_line_argument=yes
13583 else
13584 xorg_cv_cc_flag_unused_command_line_argument=no
13585 fi
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 fi
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13589 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13590 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13591 CFLAGS="$xorg_testset_save_CFLAGS"
13592 fi
13593
13594 found="no"
13595
13596 if test $found = "no" ; then
13597 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13598 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13599 fi
13600
13601 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13602 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13603 fi
13604
13605 CFLAGS="$CFLAGS -Wunused"
13606
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13608 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13609 cacheid=xorg_cv_cc_flag__Wunused
13610 if eval \${$cacheid+:} false; then :
13611 $as_echo_n "(cached) " >&6
13612 else
13613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13614 /* end confdefs.h. */
13615 int i;
13616 int
13617 main ()
13618 {
13619
13620 ;
13621 return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_link "$LINENO"; then :
13625 eval $cacheid=yes
13626 else
13627 eval $cacheid=no
13628 fi
13629 rm -f core conftest.err conftest.$ac_objext \
13630 conftest$ac_exeext conftest.$ac_ext
13631 fi
13632
13633
13634 CFLAGS="$xorg_testset_save_CFLAGS"
13635
13636 eval supported=\$$cacheid
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13638 $as_echo "$supported" >&6; }
13639 if test "$supported" = "yes" ; then
13640 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13641 found="yes"
13642 fi
13643 fi
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659 xorg_testset_save_CFLAGS="$CFLAGS"
13660
13661 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13662 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13664 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13665 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13666 $as_echo_n "(cached) " >&6
13667 else
13668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13669 /* end confdefs.h. */
13670 int i;
13671 _ACEOF
13672 if ac_fn_c_try_compile "$LINENO"; then :
13673 xorg_cv_cc_flag_unknown_warning_option=yes
13674 else
13675 xorg_cv_cc_flag_unknown_warning_option=no
13676 fi
13677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13678 fi
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13680 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13681 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13682 CFLAGS="$xorg_testset_save_CFLAGS"
13683 fi
13684
13685 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13688 fi
13689 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13691 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13692 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13693 $as_echo_n "(cached) " >&6
13694 else
13695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13696 /* end confdefs.h. */
13697 int i;
13698 _ACEOF
13699 if ac_fn_c_try_compile "$LINENO"; then :
13700 xorg_cv_cc_flag_unused_command_line_argument=yes
13701 else
13702 xorg_cv_cc_flag_unused_command_line_argument=no
13703 fi
13704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13705 fi
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13707 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13708 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13709 CFLAGS="$xorg_testset_save_CFLAGS"
13710 fi
13711
13712 found="no"
13713
13714 if test $found = "no" ; then
13715 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13716 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13717 fi
13718
13719 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13720 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13721 fi
13722
13723 CFLAGS="$CFLAGS -Wuninitialized"
13724
13725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13726 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13727 cacheid=xorg_cv_cc_flag__Wuninitialized
13728 if eval \${$cacheid+:} false; then :
13729 $as_echo_n "(cached) " >&6
13730 else
13731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13732 /* end confdefs.h. */
13733 int i;
13734 int
13735 main ()
13736 {
13737
13738 ;
13739 return 0;
13740 }
13741 _ACEOF
13742 if ac_fn_c_try_link "$LINENO"; then :
13743 eval $cacheid=yes
13744 else
13745 eval $cacheid=no
13746 fi
13747 rm -f core conftest.err conftest.$ac_objext \
13748 conftest$ac_exeext conftest.$ac_ext
13749 fi
13750
13751
13752 CFLAGS="$xorg_testset_save_CFLAGS"
13753
13754 eval supported=\$$cacheid
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13756 $as_echo "$supported" >&6; }
13757 if test "$supported" = "yes" ; then
13758 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13759 found="yes"
13760 fi
13761 fi
13762
13763
13764
13765
13766
13767
13768
13769
13770
13771
13772
13773
13774
13775
13776
13777 xorg_testset_save_CFLAGS="$CFLAGS"
13778
13779 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13780 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13782 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13783 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13784 $as_echo_n "(cached) " >&6
13785 else
13786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13787 /* end confdefs.h. */
13788 int i;
13789 _ACEOF
13790 if ac_fn_c_try_compile "$LINENO"; then :
13791 xorg_cv_cc_flag_unknown_warning_option=yes
13792 else
13793 xorg_cv_cc_flag_unknown_warning_option=no
13794 fi
13795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13796 fi
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13798 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13799 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13800 CFLAGS="$xorg_testset_save_CFLAGS"
13801 fi
13802
13803 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13806 fi
13807 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13809 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13810 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13811 $as_echo_n "(cached) " >&6
13812 else
13813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13814 /* end confdefs.h. */
13815 int i;
13816 _ACEOF
13817 if ac_fn_c_try_compile "$LINENO"; then :
13818 xorg_cv_cc_flag_unused_command_line_argument=yes
13819 else
13820 xorg_cv_cc_flag_unused_command_line_argument=no
13821 fi
13822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13823 fi
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13825 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13826 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13827 CFLAGS="$xorg_testset_save_CFLAGS"
13828 fi
13829
13830 found="no"
13831
13832 if test $found = "no" ; then
13833 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13834 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13835 fi
13836
13837 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13838 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13839 fi
13840
13841 CFLAGS="$CFLAGS -Wshadow"
13842
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13844 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13845 cacheid=xorg_cv_cc_flag__Wshadow
13846 if eval \${$cacheid+:} false; then :
13847 $as_echo_n "(cached) " >&6
13848 else
13849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13850 /* end confdefs.h. */
13851 int i;
13852 int
13853 main ()
13854 {
13855
13856 ;
13857 return 0;
13858 }
13859 _ACEOF
13860 if ac_fn_c_try_link "$LINENO"; then :
13861 eval $cacheid=yes
13862 else
13863 eval $cacheid=no
13864 fi
13865 rm -f core conftest.err conftest.$ac_objext \
13866 conftest$ac_exeext conftest.$ac_ext
13867 fi
13868
13869
13870 CFLAGS="$xorg_testset_save_CFLAGS"
13871
13872 eval supported=\$$cacheid
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13874 $as_echo "$supported" >&6; }
13875 if test "$supported" = "yes" ; then
13876 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13877 found="yes"
13878 fi
13879 fi
13880
13881
13882
13883
13884
13885
13886
13887
13888
13889
13890
13891
13892
13893
13894
13895 xorg_testset_save_CFLAGS="$CFLAGS"
13896
13897 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13898 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13900 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13901 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 int i;
13907 _ACEOF
13908 if ac_fn_c_try_compile "$LINENO"; then :
13909 xorg_cv_cc_flag_unknown_warning_option=yes
13910 else
13911 xorg_cv_cc_flag_unknown_warning_option=no
13912 fi
13913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13914 fi
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13916 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13917 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13918 CFLAGS="$xorg_testset_save_CFLAGS"
13919 fi
13920
13921 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13922 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13923 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13924 fi
13925 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13927 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13928 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13929 $as_echo_n "(cached) " >&6
13930 else
13931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13932 /* end confdefs.h. */
13933 int i;
13934 _ACEOF
13935 if ac_fn_c_try_compile "$LINENO"; then :
13936 xorg_cv_cc_flag_unused_command_line_argument=yes
13937 else
13938 xorg_cv_cc_flag_unused_command_line_argument=no
13939 fi
13940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13941 fi
13942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13943 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13944 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13945 CFLAGS="$xorg_testset_save_CFLAGS"
13946 fi
13947
13948 found="no"
13949
13950 if test $found = "no" ; then
13951 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13952 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13953 fi
13954
13955 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
13956 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13957 fi
13958
13959 CFLAGS="$CFLAGS -Wmissing-noreturn"
13960
13961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13962 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13963 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13964 if eval \${$cacheid+:} false; then :
13965 $as_echo_n "(cached) " >&6
13966 else
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 int i;
13970 int
13971 main ()
13972 {
13973
13974 ;
13975 return 0;
13976 }
13977 _ACEOF
13978 if ac_fn_c_try_link "$LINENO"; then :
13979 eval $cacheid=yes
13980 else
13981 eval $cacheid=no
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext \
13984 conftest$ac_exeext conftest.$ac_ext
13985 fi
13986
13987
13988 CFLAGS="$xorg_testset_save_CFLAGS"
13989
13990 eval supported=\$$cacheid
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13992 $as_echo "$supported" >&6; }
13993 if test "$supported" = "yes" ; then
13994 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13995 found="yes"
13996 fi
13997 fi
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013 xorg_testset_save_CFLAGS="$CFLAGS"
14014
14015 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14016 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14018 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14019 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14020 $as_echo_n "(cached) " >&6
14021 else
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023 /* end confdefs.h. */
14024 int i;
14025 _ACEOF
14026 if ac_fn_c_try_compile "$LINENO"; then :
14027 xorg_cv_cc_flag_unknown_warning_option=yes
14028 else
14029 xorg_cv_cc_flag_unknown_warning_option=no
14030 fi
14031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14032 fi
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14034 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14035 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14036 CFLAGS="$xorg_testset_save_CFLAGS"
14037 fi
14038
14039 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14040 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14041 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14042 fi
14043 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14045 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14046 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14047 $as_echo_n "(cached) " >&6
14048 else
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14051 int i;
14052 _ACEOF
14053 if ac_fn_c_try_compile "$LINENO"; then :
14054 xorg_cv_cc_flag_unused_command_line_argument=yes
14055 else
14056 xorg_cv_cc_flag_unused_command_line_argument=no
14057 fi
14058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14059 fi
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14061 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14062 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14063 CFLAGS="$xorg_testset_save_CFLAGS"
14064 fi
14065
14066 found="no"
14067
14068 if test $found = "no" ; then
14069 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14070 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14071 fi
14072
14073 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14074 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14075 fi
14076
14077 CFLAGS="$CFLAGS -Wmissing-format-attribute"
14078
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
14080 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
14081 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
14082 if eval \${$cacheid+:} false; then :
14083 $as_echo_n "(cached) " >&6
14084 else
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086 /* end confdefs.h. */
14087 int i;
14088 int
14089 main ()
14090 {
14091
14092 ;
14093 return 0;
14094 }
14095 _ACEOF
14096 if ac_fn_c_try_link "$LINENO"; then :
14097 eval $cacheid=yes
14098 else
14099 eval $cacheid=no
14100 fi
14101 rm -f core conftest.err conftest.$ac_objext \
14102 conftest$ac_exeext conftest.$ac_ext
14103 fi
14104
14105
14106 CFLAGS="$xorg_testset_save_CFLAGS"
14107
14108 eval supported=\$$cacheid
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14110 $as_echo "$supported" >&6; }
14111 if test "$supported" = "yes" ; then
14112 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
14113 found="yes"
14114 fi
14115 fi
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131 xorg_testset_save_CFLAGS="$CFLAGS"
14132
14133 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14134 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14136 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14137 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14138 $as_echo_n "(cached) " >&6
14139 else
14140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14141 /* end confdefs.h. */
14142 int i;
14143 _ACEOF
14144 if ac_fn_c_try_compile "$LINENO"; then :
14145 xorg_cv_cc_flag_unknown_warning_option=yes
14146 else
14147 xorg_cv_cc_flag_unknown_warning_option=no
14148 fi
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 fi
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14152 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14153 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14154 CFLAGS="$xorg_testset_save_CFLAGS"
14155 fi
14156
14157 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14158 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14159 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14160 fi
14161 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14163 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14164 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14165 $as_echo_n "(cached) " >&6
14166 else
14167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h. */
14169 int i;
14170 _ACEOF
14171 if ac_fn_c_try_compile "$LINENO"; then :
14172 xorg_cv_cc_flag_unused_command_line_argument=yes
14173 else
14174 xorg_cv_cc_flag_unused_command_line_argument=no
14175 fi
14176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14177 fi
14178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14179 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14180 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14181 CFLAGS="$xorg_testset_save_CFLAGS"
14182 fi
14183
14184 found="no"
14185
14186 if test $found = "no" ; then
14187 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14188 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14189 fi
14190
14191 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14192 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14193 fi
14194
14195 CFLAGS="$CFLAGS -Wredundant-decls"
14196
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
14198 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
14199 cacheid=xorg_cv_cc_flag__Wredundant_decls
14200 if eval \${$cacheid+:} false; then :
14201 $as_echo_n "(cached) " >&6
14202 else
14203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14204 /* end confdefs.h. */
14205 int i;
14206 int
14207 main ()
14208 {
14209
14210 ;
14211 return 0;
14212 }
14213 _ACEOF
14214 if ac_fn_c_try_link "$LINENO"; then :
14215 eval $cacheid=yes
14216 else
14217 eval $cacheid=no
14218 fi
14219 rm -f core conftest.err conftest.$ac_objext \
14220 conftest$ac_exeext conftest.$ac_ext
14221 fi
14222
14223
14224 CFLAGS="$xorg_testset_save_CFLAGS"
14225
14226 eval supported=\$$cacheid
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14228 $as_echo "$supported" >&6; }
14229 if test "$supported" = "yes" ; then
14230 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
14231 found="yes"
14232 fi
14233 fi
14234
14235
14236
14237
14238
14239
14240
14241
14242
14243
14244
14245
14246
14247
14248
14249 xorg_testset_save_CFLAGS="$CFLAGS"
14250
14251 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14252 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14254 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14255 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14259 /* end confdefs.h. */
14260 int i;
14261 _ACEOF
14262 if ac_fn_c_try_compile "$LINENO"; then :
14263 xorg_cv_cc_flag_unknown_warning_option=yes
14264 else
14265 xorg_cv_cc_flag_unknown_warning_option=no
14266 fi
14267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14268 fi
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14270 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14271 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14272 CFLAGS="$xorg_testset_save_CFLAGS"
14273 fi
14274
14275 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14276 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14277 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14278 fi
14279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14281 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14282 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284 else
14285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14286 /* end confdefs.h. */
14287 int i;
14288 _ACEOF
14289 if ac_fn_c_try_compile "$LINENO"; then :
14290 xorg_cv_cc_flag_unused_command_line_argument=yes
14291 else
14292 xorg_cv_cc_flag_unused_command_line_argument=no
14293 fi
14294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14295 fi
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14297 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14298 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14299 CFLAGS="$xorg_testset_save_CFLAGS"
14300 fi
14301
14302 found="no"
14303
14304 if test $found = "no" ; then
14305 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14307 fi
14308
14309 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14310 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14311 fi
14312
14313 CFLAGS="$CFLAGS -Wlogical-op"
14314
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wlogical-op" >&5
14316 $as_echo_n "checking if $CC supports -Wlogical-op... " >&6; }
14317 cacheid=xorg_cv_cc_flag__Wlogical_op
14318 if eval \${$cacheid+:} false; then :
14319 $as_echo_n "(cached) " >&6
14320 else
14321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14322 /* end confdefs.h. */
14323 int i;
14324 int
14325 main ()
14326 {
14327
14328 ;
14329 return 0;
14330 }
14331 _ACEOF
14332 if ac_fn_c_try_link "$LINENO"; then :
14333 eval $cacheid=yes
14334 else
14335 eval $cacheid=no
14336 fi
14337 rm -f core conftest.err conftest.$ac_objext \
14338 conftest$ac_exeext conftest.$ac_ext
14339 fi
14340
14341
14342 CFLAGS="$xorg_testset_save_CFLAGS"
14343
14344 eval supported=\$$cacheid
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14346 $as_echo "$supported" >&6; }
14347 if test "$supported" = "yes" ; then
14348 BASE_CFLAGS="$BASE_CFLAGS -Wlogical-op"
14349 found="yes"
14350 fi
14351 fi
14352
14353
14354
14355 # These are currently disabled because they are noisy. They will be enabled
14356 # in the future once the codebase is sufficiently modernized to silence
14357 # them. For now, I don't want them to drown out the other warnings.
14358 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
14359 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
14360 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-qual])
14361
14362 # Turn some warnings into errors, so we don't accidently get successful builds
14363 # when there are problems that should be fixed.
14364
14365 if test "x$SELECTIVE_WERROR" = "xyes" ; then
14366
14367
14368
14369
14370
14371
14372
14373
14374
14375
14376
14377
14378
14379 xorg_testset_save_CFLAGS="$CFLAGS"
14380
14381 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14382 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14384 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14385 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14386 $as_echo_n "(cached) " >&6
14387 else
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 int i;
14391 _ACEOF
14392 if ac_fn_c_try_compile "$LINENO"; then :
14393 xorg_cv_cc_flag_unknown_warning_option=yes
14394 else
14395 xorg_cv_cc_flag_unknown_warning_option=no
14396 fi
14397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14398 fi
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14400 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14401 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14402 CFLAGS="$xorg_testset_save_CFLAGS"
14403 fi
14404
14405 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14406 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14407 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14408 fi
14409 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14411 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14412 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14413 $as_echo_n "(cached) " >&6
14414 else
14415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14416 /* end confdefs.h. */
14417 int i;
14418 _ACEOF
14419 if ac_fn_c_try_compile "$LINENO"; then :
14420 xorg_cv_cc_flag_unused_command_line_argument=yes
14421 else
14422 xorg_cv_cc_flag_unused_command_line_argument=no
14423 fi
14424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14425 fi
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14427 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14428 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14429 CFLAGS="$xorg_testset_save_CFLAGS"
14430 fi
14431
14432 found="no"
14433
14434 if test $found = "no" ; then
14435 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14436 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14437 fi
14438
14439 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14440 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14441 fi
14442
14443 CFLAGS="$CFLAGS -Werror=implicit"
14444
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
14446 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
14447 cacheid=xorg_cv_cc_flag__Werror_implicit
14448 if eval \${$cacheid+:} false; then :
14449 $as_echo_n "(cached) " >&6
14450 else
14451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14452 /* end confdefs.h. */
14453 int i;
14454 int
14455 main ()
14456 {
14457
14458 ;
14459 return 0;
14460 }
14461 _ACEOF
14462 if ac_fn_c_try_link "$LINENO"; then :
14463 eval $cacheid=yes
14464 else
14465 eval $cacheid=no
14466 fi
14467 rm -f core conftest.err conftest.$ac_objext \
14468 conftest$ac_exeext conftest.$ac_ext
14469 fi
14470
14471
14472 CFLAGS="$xorg_testset_save_CFLAGS"
14473
14474 eval supported=\$$cacheid
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14476 $as_echo "$supported" >&6; }
14477 if test "$supported" = "yes" ; then
14478 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
14479 found="yes"
14480 fi
14481 fi
14482
14483 if test $found = "no" ; then
14484 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14486 fi
14487
14488 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14490 fi
14491
14492 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14493
14494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
14495 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
14496 cacheid=xorg_cv_cc_flag__errwarn_E_NO_EXPLICIT_TYPE_GIVEN__errwarn_E_NO_IMPLICIT_DECL_ALLOWED
14497 if eval \${$cacheid+:} false; then :
14498 $as_echo_n "(cached) " >&6
14499 else
14500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14501 /* end confdefs.h. */
14502 int i;
14503 int
14504 main ()
14505 {
14506
14507 ;
14508 return 0;
14509 }
14510 _ACEOF
14511 if ac_fn_c_try_link "$LINENO"; then :
14512 eval $cacheid=yes
14513 else
14514 eval $cacheid=no
14515 fi
14516 rm -f core conftest.err conftest.$ac_objext \
14517 conftest$ac_exeext conftest.$ac_ext
14518 fi
14519
14520
14521 CFLAGS="$xorg_testset_save_CFLAGS"
14522
14523 eval supported=\$$cacheid
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14525 $as_echo "$supported" >&6; }
14526 if test "$supported" = "yes" ; then
14527 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
14528 found="yes"
14529 fi
14530 fi
14531
14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546 xorg_testset_save_CFLAGS="$CFLAGS"
14547
14548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14553 $as_echo_n "(cached) " >&6
14554 else
14555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14556 /* end confdefs.h. */
14557 int i;
14558 _ACEOF
14559 if ac_fn_c_try_compile "$LINENO"; then :
14560 xorg_cv_cc_flag_unknown_warning_option=yes
14561 else
14562 xorg_cv_cc_flag_unknown_warning_option=no
14563 fi
14564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 fi
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14569 CFLAGS="$xorg_testset_save_CFLAGS"
14570 fi
14571
14572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14575 fi
14576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 int i;
14585 _ACEOF
14586 if ac_fn_c_try_compile "$LINENO"; then :
14587 xorg_cv_cc_flag_unused_command_line_argument=yes
14588 else
14589 xorg_cv_cc_flag_unused_command_line_argument=no
14590 fi
14591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14592 fi
14593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14596 CFLAGS="$xorg_testset_save_CFLAGS"
14597 fi
14598
14599 found="no"
14600
14601 if test $found = "no" ; then
14602 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14604 fi
14605
14606 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14608 fi
14609
14610 CFLAGS="$CFLAGS -Werror=nonnull"
14611
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14613 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14614 cacheid=xorg_cv_cc_flag__Werror_nonnull
14615 if eval \${$cacheid+:} false; then :
14616 $as_echo_n "(cached) " >&6
14617 else
14618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14619 /* end confdefs.h. */
14620 int i;
14621 int
14622 main ()
14623 {
14624
14625 ;
14626 return 0;
14627 }
14628 _ACEOF
14629 if ac_fn_c_try_link "$LINENO"; then :
14630 eval $cacheid=yes
14631 else
14632 eval $cacheid=no
14633 fi
14634 rm -f core conftest.err conftest.$ac_objext \
14635 conftest$ac_exeext conftest.$ac_ext
14636 fi
14637
14638
14639 CFLAGS="$xorg_testset_save_CFLAGS"
14640
14641 eval supported=\$$cacheid
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14643 $as_echo "$supported" >&6; }
14644 if test "$supported" = "yes" ; then
14645 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14646 found="yes"
14647 fi
14648 fi
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664 xorg_testset_save_CFLAGS="$CFLAGS"
14665
14666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14674 /* end confdefs.h. */
14675 int i;
14676 _ACEOF
14677 if ac_fn_c_try_compile "$LINENO"; then :
14678 xorg_cv_cc_flag_unknown_warning_option=yes
14679 else
14680 xorg_cv_cc_flag_unknown_warning_option=no
14681 fi
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 fi
14684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14687 CFLAGS="$xorg_testset_save_CFLAGS"
14688 fi
14689
14690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14693 fi
14694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14698 $as_echo_n "(cached) " >&6
14699 else
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 int i;
14703 _ACEOF
14704 if ac_fn_c_try_compile "$LINENO"; then :
14705 xorg_cv_cc_flag_unused_command_line_argument=yes
14706 else
14707 xorg_cv_cc_flag_unused_command_line_argument=no
14708 fi
14709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14710 fi
14711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14714 CFLAGS="$xorg_testset_save_CFLAGS"
14715 fi
14716
14717 found="no"
14718
14719 if test $found = "no" ; then
14720 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14722 fi
14723
14724 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14726 fi
14727
14728 CFLAGS="$CFLAGS -Werror=init-self"
14729
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14731 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14732 cacheid=xorg_cv_cc_flag__Werror_init_self
14733 if eval \${$cacheid+:} false; then :
14734 $as_echo_n "(cached) " >&6
14735 else
14736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14737 /* end confdefs.h. */
14738 int i;
14739 int
14740 main ()
14741 {
14742
14743 ;
14744 return 0;
14745 }
14746 _ACEOF
14747 if ac_fn_c_try_link "$LINENO"; then :
14748 eval $cacheid=yes
14749 else
14750 eval $cacheid=no
14751 fi
14752 rm -f core conftest.err conftest.$ac_objext \
14753 conftest$ac_exeext conftest.$ac_ext
14754 fi
14755
14756
14757 CFLAGS="$xorg_testset_save_CFLAGS"
14758
14759 eval supported=\$$cacheid
14760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14761 $as_echo "$supported" >&6; }
14762 if test "$supported" = "yes" ; then
14763 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14764 found="yes"
14765 fi
14766 fi
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782 xorg_testset_save_CFLAGS="$CFLAGS"
14783
14784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14793 int i;
14794 _ACEOF
14795 if ac_fn_c_try_compile "$LINENO"; then :
14796 xorg_cv_cc_flag_unknown_warning_option=yes
14797 else
14798 xorg_cv_cc_flag_unknown_warning_option=no
14799 fi
14800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14801 fi
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14805 CFLAGS="$xorg_testset_save_CFLAGS"
14806 fi
14807
14808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14811 fi
14812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14816 $as_echo_n "(cached) " >&6
14817 else
14818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14819 /* end confdefs.h. */
14820 int i;
14821 _ACEOF
14822 if ac_fn_c_try_compile "$LINENO"; then :
14823 xorg_cv_cc_flag_unused_command_line_argument=yes
14824 else
14825 xorg_cv_cc_flag_unused_command_line_argument=no
14826 fi
14827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14828 fi
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14832 CFLAGS="$xorg_testset_save_CFLAGS"
14833 fi
14834
14835 found="no"
14836
14837 if test $found = "no" ; then
14838 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14840 fi
14841
14842 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14844 fi
14845
14846 CFLAGS="$CFLAGS -Werror=main"
14847
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14849 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14850 cacheid=xorg_cv_cc_flag__Werror_main
14851 if eval \${$cacheid+:} false; then :
14852 $as_echo_n "(cached) " >&6
14853 else
14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14855 /* end confdefs.h. */
14856 int i;
14857 int
14858 main ()
14859 {
14860
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 if ac_fn_c_try_link "$LINENO"; then :
14866 eval $cacheid=yes
14867 else
14868 eval $cacheid=no
14869 fi
14870 rm -f core conftest.err conftest.$ac_objext \
14871 conftest$ac_exeext conftest.$ac_ext
14872 fi
14873
14874
14875 CFLAGS="$xorg_testset_save_CFLAGS"
14876
14877 eval supported=\$$cacheid
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14879 $as_echo "$supported" >&6; }
14880 if test "$supported" = "yes" ; then
14881 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14882 found="yes"
14883 fi
14884 fi
14885
14886
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897
14898
14899
14900 xorg_testset_save_CFLAGS="$CFLAGS"
14901
14902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14907 $as_echo_n "(cached) " >&6
14908 else
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 int i;
14912 _ACEOF
14913 if ac_fn_c_try_compile "$LINENO"; then :
14914 xorg_cv_cc_flag_unknown_warning_option=yes
14915 else
14916 xorg_cv_cc_flag_unknown_warning_option=no
14917 fi
14918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14919 fi
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14923 CFLAGS="$xorg_testset_save_CFLAGS"
14924 fi
14925
14926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14929 fi
14930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14934 $as_echo_n "(cached) " >&6
14935 else
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14938 int i;
14939 _ACEOF
14940 if ac_fn_c_try_compile "$LINENO"; then :
14941 xorg_cv_cc_flag_unused_command_line_argument=yes
14942 else
14943 xorg_cv_cc_flag_unused_command_line_argument=no
14944 fi
14945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14946 fi
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14950 CFLAGS="$xorg_testset_save_CFLAGS"
14951 fi
14952
14953 found="no"
14954
14955 if test $found = "no" ; then
14956 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14958 fi
14959
14960 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
14961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14962 fi
14963
14964 CFLAGS="$CFLAGS -Werror=missing-braces"
14965
14966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14967 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14968 cacheid=xorg_cv_cc_flag__Werror_missing_braces
14969 if eval \${$cacheid+:} false; then :
14970 $as_echo_n "(cached) " >&6
14971 else
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14974 int i;
14975 int
14976 main ()
14977 {
14978
14979 ;
14980 return 0;
14981 }
14982 _ACEOF
14983 if ac_fn_c_try_link "$LINENO"; then :
14984 eval $cacheid=yes
14985 else
14986 eval $cacheid=no
14987 fi
14988 rm -f core conftest.err conftest.$ac_objext \
14989 conftest$ac_exeext conftest.$ac_ext
14990 fi
14991
14992
14993 CFLAGS="$xorg_testset_save_CFLAGS"
14994
14995 eval supported=\$$cacheid
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14997 $as_echo "$supported" >&6; }
14998 if test "$supported" = "yes" ; then
14999 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
15000 found="yes"
15001 fi
15002 fi
15003
15004
15005
15006
15007
15008
15009
15010
15011
15012
15013
15014
15015
15016
15017
15018 xorg_testset_save_CFLAGS="$CFLAGS"
15019
15020 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15021 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15023 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15024 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15025 $as_echo_n "(cached) " >&6
15026 else
15027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15028 /* end confdefs.h. */
15029 int i;
15030 _ACEOF
15031 if ac_fn_c_try_compile "$LINENO"; then :
15032 xorg_cv_cc_flag_unknown_warning_option=yes
15033 else
15034 xorg_cv_cc_flag_unknown_warning_option=no
15035 fi
15036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15039 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15040 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15041 CFLAGS="$xorg_testset_save_CFLAGS"
15042 fi
15043
15044 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15045 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15046 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15047 fi
15048 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15050 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15051 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15052 $as_echo_n "(cached) " >&6
15053 else
15054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15055 /* end confdefs.h. */
15056 int i;
15057 _ACEOF
15058 if ac_fn_c_try_compile "$LINENO"; then :
15059 xorg_cv_cc_flag_unused_command_line_argument=yes
15060 else
15061 xorg_cv_cc_flag_unused_command_line_argument=no
15062 fi
15063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15064 fi
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15066 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15067 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15068 CFLAGS="$xorg_testset_save_CFLAGS"
15069 fi
15070
15071 found="no"
15072
15073 if test $found = "no" ; then
15074 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15075 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15076 fi
15077
15078 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15079 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15080 fi
15081
15082 CFLAGS="$CFLAGS -Werror=sequence-point"
15083
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
15085 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
15086 cacheid=xorg_cv_cc_flag__Werror_sequence_point
15087 if eval \${$cacheid+:} false; then :
15088 $as_echo_n "(cached) " >&6
15089 else
15090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 int i;
15093 int
15094 main ()
15095 {
15096
15097 ;
15098 return 0;
15099 }
15100 _ACEOF
15101 if ac_fn_c_try_link "$LINENO"; then :
15102 eval $cacheid=yes
15103 else
15104 eval $cacheid=no
15105 fi
15106 rm -f core conftest.err conftest.$ac_objext \
15107 conftest$ac_exeext conftest.$ac_ext
15108 fi
15109
15110
15111 CFLAGS="$xorg_testset_save_CFLAGS"
15112
15113 eval supported=\$$cacheid
15114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15115 $as_echo "$supported" >&6; }
15116 if test "$supported" = "yes" ; then
15117 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
15118 found="yes"
15119 fi
15120 fi
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136 xorg_testset_save_CFLAGS="$CFLAGS"
15137
15138 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15139 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15141 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15142 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15143 $as_echo_n "(cached) " >&6
15144 else
15145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15146 /* end confdefs.h. */
15147 int i;
15148 _ACEOF
15149 if ac_fn_c_try_compile "$LINENO"; then :
15150 xorg_cv_cc_flag_unknown_warning_option=yes
15151 else
15152 xorg_cv_cc_flag_unknown_warning_option=no
15153 fi
15154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15155 fi
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15157 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15158 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15159 CFLAGS="$xorg_testset_save_CFLAGS"
15160 fi
15161
15162 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15163 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15164 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15165 fi
15166 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15168 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15169 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15170 $as_echo_n "(cached) " >&6
15171 else
15172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15173 /* end confdefs.h. */
15174 int i;
15175 _ACEOF
15176 if ac_fn_c_try_compile "$LINENO"; then :
15177 xorg_cv_cc_flag_unused_command_line_argument=yes
15178 else
15179 xorg_cv_cc_flag_unused_command_line_argument=no
15180 fi
15181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15182 fi
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15184 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15185 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15186 CFLAGS="$xorg_testset_save_CFLAGS"
15187 fi
15188
15189 found="no"
15190
15191 if test $found = "no" ; then
15192 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15193 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15194 fi
15195
15196 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15197 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15198 fi
15199
15200 CFLAGS="$CFLAGS -Werror=return-type"
15201
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
15203 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
15204 cacheid=xorg_cv_cc_flag__Werror_return_type
15205 if eval \${$cacheid+:} false; then :
15206 $as_echo_n "(cached) " >&6
15207 else
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15210 int i;
15211 int
15212 main ()
15213 {
15214
15215 ;
15216 return 0;
15217 }
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 eval $cacheid=yes
15221 else
15222 eval $cacheid=no
15223 fi
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 fi
15227
15228
15229 CFLAGS="$xorg_testset_save_CFLAGS"
15230
15231 eval supported=\$$cacheid
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15233 $as_echo "$supported" >&6; }
15234 if test "$supported" = "yes" ; then
15235 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
15236 found="yes"
15237 fi
15238 fi
15239
15240 if test $found = "no" ; then
15241 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15242 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15243 fi
15244
15245 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15246 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15247 fi
15248
15249 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15250
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
15252 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
15253 cacheid=xorg_cv_cc_flag__errwarn_E_FUNC_HAS_NO_RETURN_STMT
15254 if eval \${$cacheid+:} false; then :
15255 $as_echo_n "(cached) " >&6
15256 else
15257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15258 /* end confdefs.h. */
15259 int i;
15260 int
15261 main ()
15262 {
15263
15264 ;
15265 return 0;
15266 }
15267 _ACEOF
15268 if ac_fn_c_try_link "$LINENO"; then :
15269 eval $cacheid=yes
15270 else
15271 eval $cacheid=no
15272 fi
15273 rm -f core conftest.err conftest.$ac_objext \
15274 conftest$ac_exeext conftest.$ac_ext
15275 fi
15276
15277
15278 CFLAGS="$xorg_testset_save_CFLAGS"
15279
15280 eval supported=\$$cacheid
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15282 $as_echo "$supported" >&6; }
15283 if test "$supported" = "yes" ; then
15284 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
15285 found="yes"
15286 fi
15287 fi
15288
15289
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301
15302
15303 xorg_testset_save_CFLAGS="$CFLAGS"
15304
15305 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15306 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15308 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15309 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15310 $as_echo_n "(cached) " >&6
15311 else
15312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15313 /* end confdefs.h. */
15314 int i;
15315 _ACEOF
15316 if ac_fn_c_try_compile "$LINENO"; then :
15317 xorg_cv_cc_flag_unknown_warning_option=yes
15318 else
15319 xorg_cv_cc_flag_unknown_warning_option=no
15320 fi
15321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 fi
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15324 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15325 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15326 CFLAGS="$xorg_testset_save_CFLAGS"
15327 fi
15328
15329 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15330 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15331 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15332 fi
15333 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15335 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15336 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15337 $as_echo_n "(cached) " >&6
15338 else
15339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15340 /* end confdefs.h. */
15341 int i;
15342 _ACEOF
15343 if ac_fn_c_try_compile "$LINENO"; then :
15344 xorg_cv_cc_flag_unused_command_line_argument=yes
15345 else
15346 xorg_cv_cc_flag_unused_command_line_argument=no
15347 fi
15348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15349 fi
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15351 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15352 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15353 CFLAGS="$xorg_testset_save_CFLAGS"
15354 fi
15355
15356 found="no"
15357
15358 if test $found = "no" ; then
15359 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15360 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15361 fi
15362
15363 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15364 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15365 fi
15366
15367 CFLAGS="$CFLAGS -Werror=trigraphs"
15368
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
15370 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
15371 cacheid=xorg_cv_cc_flag__Werror_trigraphs
15372 if eval \${$cacheid+:} false; then :
15373 $as_echo_n "(cached) " >&6
15374 else
15375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15376 /* end confdefs.h. */
15377 int i;
15378 int
15379 main ()
15380 {
15381
15382 ;
15383 return 0;
15384 }
15385 _ACEOF
15386 if ac_fn_c_try_link "$LINENO"; then :
15387 eval $cacheid=yes
15388 else
15389 eval $cacheid=no
15390 fi
15391 rm -f core conftest.err conftest.$ac_objext \
15392 conftest$ac_exeext conftest.$ac_ext
15393 fi
15394
15395
15396 CFLAGS="$xorg_testset_save_CFLAGS"
15397
15398 eval supported=\$$cacheid
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15400 $as_echo "$supported" >&6; }
15401 if test "$supported" = "yes" ; then
15402 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
15403 found="yes"
15404 fi
15405 fi
15406
15407
15408
15409
15410
15411
15412
15413
15414
15415
15416
15417
15418
15419
15420
15421 xorg_testset_save_CFLAGS="$CFLAGS"
15422
15423 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15424 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15426 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15427 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15428 $as_echo_n "(cached) " >&6
15429 else
15430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15431 /* end confdefs.h. */
15432 int i;
15433 _ACEOF
15434 if ac_fn_c_try_compile "$LINENO"; then :
15435 xorg_cv_cc_flag_unknown_warning_option=yes
15436 else
15437 xorg_cv_cc_flag_unknown_warning_option=no
15438 fi
15439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15440 fi
15441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15442 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15443 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15444 CFLAGS="$xorg_testset_save_CFLAGS"
15445 fi
15446
15447 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15448 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15449 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15450 fi
15451 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15453 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15454 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15455 $as_echo_n "(cached) " >&6
15456 else
15457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15458 /* end confdefs.h. */
15459 int i;
15460 _ACEOF
15461 if ac_fn_c_try_compile "$LINENO"; then :
15462 xorg_cv_cc_flag_unused_command_line_argument=yes
15463 else
15464 xorg_cv_cc_flag_unused_command_line_argument=no
15465 fi
15466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15467 fi
15468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15469 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15470 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15471 CFLAGS="$xorg_testset_save_CFLAGS"
15472 fi
15473
15474 found="no"
15475
15476 if test $found = "no" ; then
15477 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15478 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15479 fi
15480
15481 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15482 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15483 fi
15484
15485 CFLAGS="$CFLAGS -Werror=array-bounds"
15486
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
15488 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
15489 cacheid=xorg_cv_cc_flag__Werror_array_bounds
15490 if eval \${$cacheid+:} false; then :
15491 $as_echo_n "(cached) " >&6
15492 else
15493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15494 /* end confdefs.h. */
15495 int i;
15496 int
15497 main ()
15498 {
15499
15500 ;
15501 return 0;
15502 }
15503 _ACEOF
15504 if ac_fn_c_try_link "$LINENO"; then :
15505 eval $cacheid=yes
15506 else
15507 eval $cacheid=no
15508 fi
15509 rm -f core conftest.err conftest.$ac_objext \
15510 conftest$ac_exeext conftest.$ac_ext
15511 fi
15512
15513
15514 CFLAGS="$xorg_testset_save_CFLAGS"
15515
15516 eval supported=\$$cacheid
15517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15518 $as_echo "$supported" >&6; }
15519 if test "$supported" = "yes" ; then
15520 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
15521 found="yes"
15522 fi
15523 fi
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539 xorg_testset_save_CFLAGS="$CFLAGS"
15540
15541 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15542 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15544 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15545 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15546 $as_echo_n "(cached) " >&6
15547 else
15548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15549 /* end confdefs.h. */
15550 int i;
15551 _ACEOF
15552 if ac_fn_c_try_compile "$LINENO"; then :
15553 xorg_cv_cc_flag_unknown_warning_option=yes
15554 else
15555 xorg_cv_cc_flag_unknown_warning_option=no
15556 fi
15557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15558 fi
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15560 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15561 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15562 CFLAGS="$xorg_testset_save_CFLAGS"
15563 fi
15564
15565 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15566 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15567 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15568 fi
15569 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15571 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15572 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15573 $as_echo_n "(cached) " >&6
15574 else
15575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15576 /* end confdefs.h. */
15577 int i;
15578 _ACEOF
15579 if ac_fn_c_try_compile "$LINENO"; then :
15580 xorg_cv_cc_flag_unused_command_line_argument=yes
15581 else
15582 xorg_cv_cc_flag_unused_command_line_argument=no
15583 fi
15584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15585 fi
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15587 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15588 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15589 CFLAGS="$xorg_testset_save_CFLAGS"
15590 fi
15591
15592 found="no"
15593
15594 if test $found = "no" ; then
15595 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15596 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15597 fi
15598
15599 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15600 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15601 fi
15602
15603 CFLAGS="$CFLAGS -Werror=write-strings"
15604
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15606 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15607 cacheid=xorg_cv_cc_flag__Werror_write_strings
15608 if eval \${$cacheid+:} false; then :
15609 $as_echo_n "(cached) " >&6
15610 else
15611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15612 /* end confdefs.h. */
15613 int i;
15614 int
15615 main ()
15616 {
15617
15618 ;
15619 return 0;
15620 }
15621 _ACEOF
15622 if ac_fn_c_try_link "$LINENO"; then :
15623 eval $cacheid=yes
15624 else
15625 eval $cacheid=no
15626 fi
15627 rm -f core conftest.err conftest.$ac_objext \
15628 conftest$ac_exeext conftest.$ac_ext
15629 fi
15630
15631
15632 CFLAGS="$xorg_testset_save_CFLAGS"
15633
15634 eval supported=\$$cacheid
15635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15636 $as_echo "$supported" >&6; }
15637 if test "$supported" = "yes" ; then
15638 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15639 found="yes"
15640 fi
15641 fi
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657 xorg_testset_save_CFLAGS="$CFLAGS"
15658
15659 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15660 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15662 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15663 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15664 $as_echo_n "(cached) " >&6
15665 else
15666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15667 /* end confdefs.h. */
15668 int i;
15669 _ACEOF
15670 if ac_fn_c_try_compile "$LINENO"; then :
15671 xorg_cv_cc_flag_unknown_warning_option=yes
15672 else
15673 xorg_cv_cc_flag_unknown_warning_option=no
15674 fi
15675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15676 fi
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15678 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15679 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15680 CFLAGS="$xorg_testset_save_CFLAGS"
15681 fi
15682
15683 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15684 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15685 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15686 fi
15687 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15689 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15690 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15691 $as_echo_n "(cached) " >&6
15692 else
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695 int i;
15696 _ACEOF
15697 if ac_fn_c_try_compile "$LINENO"; then :
15698 xorg_cv_cc_flag_unused_command_line_argument=yes
15699 else
15700 xorg_cv_cc_flag_unused_command_line_argument=no
15701 fi
15702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15703 fi
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15705 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15706 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15707 CFLAGS="$xorg_testset_save_CFLAGS"
15708 fi
15709
15710 found="no"
15711
15712 if test $found = "no" ; then
15713 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15714 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15715 fi
15716
15717 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15718 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15719 fi
15720
15721 CFLAGS="$CFLAGS -Werror=address"
15722
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15724 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15725 cacheid=xorg_cv_cc_flag__Werror_address
15726 if eval \${$cacheid+:} false; then :
15727 $as_echo_n "(cached) " >&6
15728 else
15729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15730 /* end confdefs.h. */
15731 int i;
15732 int
15733 main ()
15734 {
15735
15736 ;
15737 return 0;
15738 }
15739 _ACEOF
15740 if ac_fn_c_try_link "$LINENO"; then :
15741 eval $cacheid=yes
15742 else
15743 eval $cacheid=no
15744 fi
15745 rm -f core conftest.err conftest.$ac_objext \
15746 conftest$ac_exeext conftest.$ac_ext
15747 fi
15748
15749
15750 CFLAGS="$xorg_testset_save_CFLAGS"
15751
15752 eval supported=\$$cacheid
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15754 $as_echo "$supported" >&6; }
15755 if test "$supported" = "yes" ; then
15756 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15757 found="yes"
15758 fi
15759 fi
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775 xorg_testset_save_CFLAGS="$CFLAGS"
15776
15777 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15778 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15780 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15781 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15782 $as_echo_n "(cached) " >&6
15783 else
15784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15785 /* end confdefs.h. */
15786 int i;
15787 _ACEOF
15788 if ac_fn_c_try_compile "$LINENO"; then :
15789 xorg_cv_cc_flag_unknown_warning_option=yes
15790 else
15791 xorg_cv_cc_flag_unknown_warning_option=no
15792 fi
15793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794 fi
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15796 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15797 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15798 CFLAGS="$xorg_testset_save_CFLAGS"
15799 fi
15800
15801 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15802 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15804 fi
15805 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15807 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15808 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15809 $as_echo_n "(cached) " >&6
15810 else
15811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15812 /* end confdefs.h. */
15813 int i;
15814 _ACEOF
15815 if ac_fn_c_try_compile "$LINENO"; then :
15816 xorg_cv_cc_flag_unused_command_line_argument=yes
15817 else
15818 xorg_cv_cc_flag_unused_command_line_argument=no
15819 fi
15820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15821 fi
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15823 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15824 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15825 CFLAGS="$xorg_testset_save_CFLAGS"
15826 fi
15827
15828 found="no"
15829
15830 if test $found = "no" ; then
15831 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15832 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15833 fi
15834
15835 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15836 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15837 fi
15838
15839 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15840
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15842 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15843 cacheid=xorg_cv_cc_flag__Werror_int_to_pointer_cast
15844 if eval \${$cacheid+:} false; then :
15845 $as_echo_n "(cached) " >&6
15846 else
15847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15848 /* end confdefs.h. */
15849 int i;
15850 int
15851 main ()
15852 {
15853
15854 ;
15855 return 0;
15856 }
15857 _ACEOF
15858 if ac_fn_c_try_link "$LINENO"; then :
15859 eval $cacheid=yes
15860 else
15861 eval $cacheid=no
15862 fi
15863 rm -f core conftest.err conftest.$ac_objext \
15864 conftest$ac_exeext conftest.$ac_ext
15865 fi
15866
15867
15868 CFLAGS="$xorg_testset_save_CFLAGS"
15869
15870 eval supported=\$$cacheid
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15872 $as_echo "$supported" >&6; }
15873 if test "$supported" = "yes" ; then
15874 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15875 found="yes"
15876 fi
15877 fi
15878
15879 if test $found = "no" ; then
15880 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15881 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15882 fi
15883
15884 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
15885 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15886 fi
15887
15888 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15889
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15891 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15892 cacheid=xorg_cv_cc_flag__errwarn_E_BAD_PTR_INT_COMBINATION
15893 if eval \${$cacheid+:} false; then :
15894 $as_echo_n "(cached) " >&6
15895 else
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 int i;
15899 int
15900 main ()
15901 {
15902
15903 ;
15904 return 0;
15905 }
15906 _ACEOF
15907 if ac_fn_c_try_link "$LINENO"; then :
15908 eval $cacheid=yes
15909 else
15910 eval $cacheid=no
15911 fi
15912 rm -f core conftest.err conftest.$ac_objext \
15913 conftest$ac_exeext conftest.$ac_ext
15914 fi
15915
15916
15917 CFLAGS="$xorg_testset_save_CFLAGS"
15918
15919 eval supported=\$$cacheid
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15921 $as_echo "$supported" >&6; }
15922 if test "$supported" = "yes" ; then
15923 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15924 found="yes"
15925 fi
15926 fi
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942 xorg_testset_save_CFLAGS="$CFLAGS"
15943
15944 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15945 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15947 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15948 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15949 $as_echo_n "(cached) " >&6
15950 else
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 int i;
15954 _ACEOF
15955 if ac_fn_c_try_compile "$LINENO"; then :
15956 xorg_cv_cc_flag_unknown_warning_option=yes
15957 else
15958 xorg_cv_cc_flag_unknown_warning_option=no
15959 fi
15960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15961 fi
15962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15963 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15964 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15965 CFLAGS="$xorg_testset_save_CFLAGS"
15966 fi
15967
15968 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15969 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15971 fi
15972 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15974 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15975 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15976 $as_echo_n "(cached) " >&6
15977 else
15978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15979 /* end confdefs.h. */
15980 int i;
15981 _ACEOF
15982 if ac_fn_c_try_compile "$LINENO"; then :
15983 xorg_cv_cc_flag_unused_command_line_argument=yes
15984 else
15985 xorg_cv_cc_flag_unused_command_line_argument=no
15986 fi
15987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15988 fi
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15990 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15991 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15992 CFLAGS="$xorg_testset_save_CFLAGS"
15993 fi
15994
15995 found="no"
15996
15997 if test $found = "no" ; then
15998 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15999 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16000 fi
16001
16002 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16003 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16004 fi
16005
16006 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
16007
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
16009 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
16010 cacheid=xorg_cv_cc_flag__Werror_pointer_to_int_cast
16011 if eval \${$cacheid+:} false; then :
16012 $as_echo_n "(cached) " >&6
16013 else
16014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16015 /* end confdefs.h. */
16016 int i;
16017 int
16018 main ()
16019 {
16020
16021 ;
16022 return 0;
16023 }
16024 _ACEOF
16025 if ac_fn_c_try_link "$LINENO"; then :
16026 eval $cacheid=yes
16027 else
16028 eval $cacheid=no
16029 fi
16030 rm -f core conftest.err conftest.$ac_objext \
16031 conftest$ac_exeext conftest.$ac_ext
16032 fi
16033
16034
16035 CFLAGS="$xorg_testset_save_CFLAGS"
16036
16037 eval supported=\$$cacheid
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16039 $as_echo "$supported" >&6; }
16040 if test "$supported" = "yes" ; then
16041 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
16042 found="yes"
16043 fi
16044 fi
16045
16046 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
16047 else
16048 { $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
16049 $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;}
16050
16051
16052
16053
16054
16055
16056
16057
16058
16059
16060
16061
16062
16063 xorg_testset_save_CFLAGS="$CFLAGS"
16064
16065 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16066 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16068 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16069 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16073 /* end confdefs.h. */
16074 int i;
16075 _ACEOF
16076 if ac_fn_c_try_compile "$LINENO"; then :
16077 xorg_cv_cc_flag_unknown_warning_option=yes
16078 else
16079 xorg_cv_cc_flag_unknown_warning_option=no
16080 fi
16081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16082 fi
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16084 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16085 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16086 CFLAGS="$xorg_testset_save_CFLAGS"
16087 fi
16088
16089 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16090 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16091 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16092 fi
16093 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16095 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16096 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16097 $as_echo_n "(cached) " >&6
16098 else
16099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16100 /* end confdefs.h. */
16101 int i;
16102 _ACEOF
16103 if ac_fn_c_try_compile "$LINENO"; then :
16104 xorg_cv_cc_flag_unused_command_line_argument=yes
16105 else
16106 xorg_cv_cc_flag_unused_command_line_argument=no
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109 fi
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16111 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16112 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16113 CFLAGS="$xorg_testset_save_CFLAGS"
16114 fi
16115
16116 found="no"
16117
16118 if test $found = "no" ; then
16119 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16120 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16121 fi
16122
16123 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16124 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16125 fi
16126
16127 CFLAGS="$CFLAGS -Wimplicit"
16128
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
16130 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
16131 cacheid=xorg_cv_cc_flag__Wimplicit
16132 if eval \${$cacheid+:} false; then :
16133 $as_echo_n "(cached) " >&6
16134 else
16135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16136 /* end confdefs.h. */
16137 int i;
16138 int
16139 main ()
16140 {
16141
16142 ;
16143 return 0;
16144 }
16145 _ACEOF
16146 if ac_fn_c_try_link "$LINENO"; then :
16147 eval $cacheid=yes
16148 else
16149 eval $cacheid=no
16150 fi
16151 rm -f core conftest.err conftest.$ac_objext \
16152 conftest$ac_exeext conftest.$ac_ext
16153 fi
16154
16155
16156 CFLAGS="$xorg_testset_save_CFLAGS"
16157
16158 eval supported=\$$cacheid
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16160 $as_echo "$supported" >&6; }
16161 if test "$supported" = "yes" ; then
16162 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
16163 found="yes"
16164 fi
16165 fi
16166
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181 xorg_testset_save_CFLAGS="$CFLAGS"
16182
16183 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16184 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16186 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16187 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16188 $as_echo_n "(cached) " >&6
16189 else
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 int i;
16193 _ACEOF
16194 if ac_fn_c_try_compile "$LINENO"; then :
16195 xorg_cv_cc_flag_unknown_warning_option=yes
16196 else
16197 xorg_cv_cc_flag_unknown_warning_option=no
16198 fi
16199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16200 fi
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16202 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16203 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16204 CFLAGS="$xorg_testset_save_CFLAGS"
16205 fi
16206
16207 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16208 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16209 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16210 fi
16211 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16213 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16214 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16215 $as_echo_n "(cached) " >&6
16216 else
16217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16218 /* end confdefs.h. */
16219 int i;
16220 _ACEOF
16221 if ac_fn_c_try_compile "$LINENO"; then :
16222 xorg_cv_cc_flag_unused_command_line_argument=yes
16223 else
16224 xorg_cv_cc_flag_unused_command_line_argument=no
16225 fi
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 fi
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16229 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16230 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16231 CFLAGS="$xorg_testset_save_CFLAGS"
16232 fi
16233
16234 found="no"
16235
16236 if test $found = "no" ; then
16237 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16238 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16239 fi
16240
16241 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16242 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16243 fi
16244
16245 CFLAGS="$CFLAGS -Wnonnull"
16246
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
16248 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
16249 cacheid=xorg_cv_cc_flag__Wnonnull
16250 if eval \${$cacheid+:} false; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16254 /* end confdefs.h. */
16255 int i;
16256 int
16257 main ()
16258 {
16259
16260 ;
16261 return 0;
16262 }
16263 _ACEOF
16264 if ac_fn_c_try_link "$LINENO"; then :
16265 eval $cacheid=yes
16266 else
16267 eval $cacheid=no
16268 fi
16269 rm -f core conftest.err conftest.$ac_objext \
16270 conftest$ac_exeext conftest.$ac_ext
16271 fi
16272
16273
16274 CFLAGS="$xorg_testset_save_CFLAGS"
16275
16276 eval supported=\$$cacheid
16277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16278 $as_echo "$supported" >&6; }
16279 if test "$supported" = "yes" ; then
16280 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
16281 found="yes"
16282 fi
16283 fi
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298
16299 xorg_testset_save_CFLAGS="$CFLAGS"
16300
16301 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16304 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16305 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16306 $as_echo_n "(cached) " >&6
16307 else
16308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16309 /* end confdefs.h. */
16310 int i;
16311 _ACEOF
16312 if ac_fn_c_try_compile "$LINENO"; then :
16313 xorg_cv_cc_flag_unknown_warning_option=yes
16314 else
16315 xorg_cv_cc_flag_unknown_warning_option=no
16316 fi
16317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16318 fi
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16320 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16321 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16322 CFLAGS="$xorg_testset_save_CFLAGS"
16323 fi
16324
16325 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16326 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16327 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16328 fi
16329 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16331 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16332 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16333 $as_echo_n "(cached) " >&6
16334 else
16335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16336 /* end confdefs.h. */
16337 int i;
16338 _ACEOF
16339 if ac_fn_c_try_compile "$LINENO"; then :
16340 xorg_cv_cc_flag_unused_command_line_argument=yes
16341 else
16342 xorg_cv_cc_flag_unused_command_line_argument=no
16343 fi
16344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16345 fi
16346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16347 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16348 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16349 CFLAGS="$xorg_testset_save_CFLAGS"
16350 fi
16351
16352 found="no"
16353
16354 if test $found = "no" ; then
16355 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16356 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16357 fi
16358
16359 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16360 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16361 fi
16362
16363 CFLAGS="$CFLAGS -Winit-self"
16364
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
16366 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
16367 cacheid=xorg_cv_cc_flag__Winit_self
16368 if eval \${$cacheid+:} false; then :
16369 $as_echo_n "(cached) " >&6
16370 else
16371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16372 /* end confdefs.h. */
16373 int i;
16374 int
16375 main ()
16376 {
16377
16378 ;
16379 return 0;
16380 }
16381 _ACEOF
16382 if ac_fn_c_try_link "$LINENO"; then :
16383 eval $cacheid=yes
16384 else
16385 eval $cacheid=no
16386 fi
16387 rm -f core conftest.err conftest.$ac_objext \
16388 conftest$ac_exeext conftest.$ac_ext
16389 fi
16390
16391
16392 CFLAGS="$xorg_testset_save_CFLAGS"
16393
16394 eval supported=\$$cacheid
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16396 $as_echo "$supported" >&6; }
16397 if test "$supported" = "yes" ; then
16398 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
16399 found="yes"
16400 fi
16401 fi
16402
16403
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413
16414
16415
16416
16417 xorg_testset_save_CFLAGS="$CFLAGS"
16418
16419 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16422 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16423 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16424 $as_echo_n "(cached) " >&6
16425 else
16426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16427 /* end confdefs.h. */
16428 int i;
16429 _ACEOF
16430 if ac_fn_c_try_compile "$LINENO"; then :
16431 xorg_cv_cc_flag_unknown_warning_option=yes
16432 else
16433 xorg_cv_cc_flag_unknown_warning_option=no
16434 fi
16435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16436 fi
16437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16438 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16439 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16440 CFLAGS="$xorg_testset_save_CFLAGS"
16441 fi
16442
16443 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16444 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16445 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16446 fi
16447 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16449 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16450 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16451 $as_echo_n "(cached) " >&6
16452 else
16453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16454 /* end confdefs.h. */
16455 int i;
16456 _ACEOF
16457 if ac_fn_c_try_compile "$LINENO"; then :
16458 xorg_cv_cc_flag_unused_command_line_argument=yes
16459 else
16460 xorg_cv_cc_flag_unused_command_line_argument=no
16461 fi
16462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16463 fi
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16465 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16466 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16467 CFLAGS="$xorg_testset_save_CFLAGS"
16468 fi
16469
16470 found="no"
16471
16472 if test $found = "no" ; then
16473 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16474 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16475 fi
16476
16477 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16478 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16479 fi
16480
16481 CFLAGS="$CFLAGS -Wmain"
16482
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
16484 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
16485 cacheid=xorg_cv_cc_flag__Wmain
16486 if eval \${$cacheid+:} false; then :
16487 $as_echo_n "(cached) " >&6
16488 else
16489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16490 /* end confdefs.h. */
16491 int i;
16492 int
16493 main ()
16494 {
16495
16496 ;
16497 return 0;
16498 }
16499 _ACEOF
16500 if ac_fn_c_try_link "$LINENO"; then :
16501 eval $cacheid=yes
16502 else
16503 eval $cacheid=no
16504 fi
16505 rm -f core conftest.err conftest.$ac_objext \
16506 conftest$ac_exeext conftest.$ac_ext
16507 fi
16508
16509
16510 CFLAGS="$xorg_testset_save_CFLAGS"
16511
16512 eval supported=\$$cacheid
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16514 $as_echo "$supported" >&6; }
16515 if test "$supported" = "yes" ; then
16516 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
16517 found="yes"
16518 fi
16519 fi
16520
16521
16522
16523
16524
16525
16526
16527
16528
16529
16530
16531
16532
16533
16534
16535 xorg_testset_save_CFLAGS="$CFLAGS"
16536
16537 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16538 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16540 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16541 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16542 $as_echo_n "(cached) " >&6
16543 else
16544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16545 /* end confdefs.h. */
16546 int i;
16547 _ACEOF
16548 if ac_fn_c_try_compile "$LINENO"; then :
16549 xorg_cv_cc_flag_unknown_warning_option=yes
16550 else
16551 xorg_cv_cc_flag_unknown_warning_option=no
16552 fi
16553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16554 fi
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16556 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16557 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16558 CFLAGS="$xorg_testset_save_CFLAGS"
16559 fi
16560
16561 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16562 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16563 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16564 fi
16565 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16567 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16568 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16569 $as_echo_n "(cached) " >&6
16570 else
16571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16572 /* end confdefs.h. */
16573 int i;
16574 _ACEOF
16575 if ac_fn_c_try_compile "$LINENO"; then :
16576 xorg_cv_cc_flag_unused_command_line_argument=yes
16577 else
16578 xorg_cv_cc_flag_unused_command_line_argument=no
16579 fi
16580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16581 fi
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16583 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16584 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16585 CFLAGS="$xorg_testset_save_CFLAGS"
16586 fi
16587
16588 found="no"
16589
16590 if test $found = "no" ; then
16591 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16592 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16593 fi
16594
16595 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16596 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16597 fi
16598
16599 CFLAGS="$CFLAGS -Wmissing-braces"
16600
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16602 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16603 cacheid=xorg_cv_cc_flag__Wmissing_braces
16604 if eval \${$cacheid+:} false; then :
16605 $as_echo_n "(cached) " >&6
16606 else
16607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16608 /* end confdefs.h. */
16609 int i;
16610 int
16611 main ()
16612 {
16613
16614 ;
16615 return 0;
16616 }
16617 _ACEOF
16618 if ac_fn_c_try_link "$LINENO"; then :
16619 eval $cacheid=yes
16620 else
16621 eval $cacheid=no
16622 fi
16623 rm -f core conftest.err conftest.$ac_objext \
16624 conftest$ac_exeext conftest.$ac_ext
16625 fi
16626
16627
16628 CFLAGS="$xorg_testset_save_CFLAGS"
16629
16630 eval supported=\$$cacheid
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16632 $as_echo "$supported" >&6; }
16633 if test "$supported" = "yes" ; then
16634 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16635 found="yes"
16636 fi
16637 fi
16638
16639
16640
16641
16642
16643
16644
16645
16646
16647
16648
16649
16650
16651
16652
16653 xorg_testset_save_CFLAGS="$CFLAGS"
16654
16655 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16656 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16658 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16659 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16660 $as_echo_n "(cached) " >&6
16661 else
16662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16663 /* end confdefs.h. */
16664 int i;
16665 _ACEOF
16666 if ac_fn_c_try_compile "$LINENO"; then :
16667 xorg_cv_cc_flag_unknown_warning_option=yes
16668 else
16669 xorg_cv_cc_flag_unknown_warning_option=no
16670 fi
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 fi
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16674 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16675 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16676 CFLAGS="$xorg_testset_save_CFLAGS"
16677 fi
16678
16679 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16680 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16681 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16682 fi
16683 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16685 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16686 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16687 $as_echo_n "(cached) " >&6
16688 else
16689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16690 /* end confdefs.h. */
16691 int i;
16692 _ACEOF
16693 if ac_fn_c_try_compile "$LINENO"; then :
16694 xorg_cv_cc_flag_unused_command_line_argument=yes
16695 else
16696 xorg_cv_cc_flag_unused_command_line_argument=no
16697 fi
16698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16699 fi
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16701 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16702 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16703 CFLAGS="$xorg_testset_save_CFLAGS"
16704 fi
16705
16706 found="no"
16707
16708 if test $found = "no" ; then
16709 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16710 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16711 fi
16712
16713 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16714 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16715 fi
16716
16717 CFLAGS="$CFLAGS -Wsequence-point"
16718
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16720 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16721 cacheid=xorg_cv_cc_flag__Wsequence_point
16722 if eval \${$cacheid+:} false; then :
16723 $as_echo_n "(cached) " >&6
16724 else
16725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16726 /* end confdefs.h. */
16727 int i;
16728 int
16729 main ()
16730 {
16731
16732 ;
16733 return 0;
16734 }
16735 _ACEOF
16736 if ac_fn_c_try_link "$LINENO"; then :
16737 eval $cacheid=yes
16738 else
16739 eval $cacheid=no
16740 fi
16741 rm -f core conftest.err conftest.$ac_objext \
16742 conftest$ac_exeext conftest.$ac_ext
16743 fi
16744
16745
16746 CFLAGS="$xorg_testset_save_CFLAGS"
16747
16748 eval supported=\$$cacheid
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16750 $as_echo "$supported" >&6; }
16751 if test "$supported" = "yes" ; then
16752 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16753 found="yes"
16754 fi
16755 fi
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771 xorg_testset_save_CFLAGS="$CFLAGS"
16772
16773 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16774 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16776 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16777 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16778 $as_echo_n "(cached) " >&6
16779 else
16780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16781 /* end confdefs.h. */
16782 int i;
16783 _ACEOF
16784 if ac_fn_c_try_compile "$LINENO"; then :
16785 xorg_cv_cc_flag_unknown_warning_option=yes
16786 else
16787 xorg_cv_cc_flag_unknown_warning_option=no
16788 fi
16789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16790 fi
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16792 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16793 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16794 CFLAGS="$xorg_testset_save_CFLAGS"
16795 fi
16796
16797 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16798 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16799 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16800 fi
16801 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16803 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16804 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16805 $as_echo_n "(cached) " >&6
16806 else
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16809 int i;
16810 _ACEOF
16811 if ac_fn_c_try_compile "$LINENO"; then :
16812 xorg_cv_cc_flag_unused_command_line_argument=yes
16813 else
16814 xorg_cv_cc_flag_unused_command_line_argument=no
16815 fi
16816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16817 fi
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16819 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16820 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16821 CFLAGS="$xorg_testset_save_CFLAGS"
16822 fi
16823
16824 found="no"
16825
16826 if test $found = "no" ; then
16827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16829 fi
16830
16831 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16832 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16833 fi
16834
16835 CFLAGS="$CFLAGS -Wreturn-type"
16836
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16838 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16839 cacheid=xorg_cv_cc_flag__Wreturn_type
16840 if eval \${$cacheid+:} false; then :
16841 $as_echo_n "(cached) " >&6
16842 else
16843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16844 /* end confdefs.h. */
16845 int i;
16846 int
16847 main ()
16848 {
16849
16850 ;
16851 return 0;
16852 }
16853 _ACEOF
16854 if ac_fn_c_try_link "$LINENO"; then :
16855 eval $cacheid=yes
16856 else
16857 eval $cacheid=no
16858 fi
16859 rm -f core conftest.err conftest.$ac_objext \
16860 conftest$ac_exeext conftest.$ac_ext
16861 fi
16862
16863
16864 CFLAGS="$xorg_testset_save_CFLAGS"
16865
16866 eval supported=\$$cacheid
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16868 $as_echo "$supported" >&6; }
16869 if test "$supported" = "yes" ; then
16870 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16871 found="yes"
16872 fi
16873 fi
16874
16875
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887
16888
16889 xorg_testset_save_CFLAGS="$CFLAGS"
16890
16891 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16892 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16894 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16895 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16896 $as_echo_n "(cached) " >&6
16897 else
16898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16899 /* end confdefs.h. */
16900 int i;
16901 _ACEOF
16902 if ac_fn_c_try_compile "$LINENO"; then :
16903 xorg_cv_cc_flag_unknown_warning_option=yes
16904 else
16905 xorg_cv_cc_flag_unknown_warning_option=no
16906 fi
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 fi
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16910 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16911 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16912 CFLAGS="$xorg_testset_save_CFLAGS"
16913 fi
16914
16915 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16916 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16917 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16918 fi
16919 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16921 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16922 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16923 $as_echo_n "(cached) " >&6
16924 else
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16927 int i;
16928 _ACEOF
16929 if ac_fn_c_try_compile "$LINENO"; then :
16930 xorg_cv_cc_flag_unused_command_line_argument=yes
16931 else
16932 xorg_cv_cc_flag_unused_command_line_argument=no
16933 fi
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 fi
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16937 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16938 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16939 CFLAGS="$xorg_testset_save_CFLAGS"
16940 fi
16941
16942 found="no"
16943
16944 if test $found = "no" ; then
16945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16947 fi
16948
16949 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
16950 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16951 fi
16952
16953 CFLAGS="$CFLAGS -Wtrigraphs"
16954
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16956 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16957 cacheid=xorg_cv_cc_flag__Wtrigraphs
16958 if eval \${$cacheid+:} false; then :
16959 $as_echo_n "(cached) " >&6
16960 else
16961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16962 /* end confdefs.h. */
16963 int i;
16964 int
16965 main ()
16966 {
16967
16968 ;
16969 return 0;
16970 }
16971 _ACEOF
16972 if ac_fn_c_try_link "$LINENO"; then :
16973 eval $cacheid=yes
16974 else
16975 eval $cacheid=no
16976 fi
16977 rm -f core conftest.err conftest.$ac_objext \
16978 conftest$ac_exeext conftest.$ac_ext
16979 fi
16980
16981
16982 CFLAGS="$xorg_testset_save_CFLAGS"
16983
16984 eval supported=\$$cacheid
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16986 $as_echo "$supported" >&6; }
16987 if test "$supported" = "yes" ; then
16988 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16989 found="yes"
16990 fi
16991 fi
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007 xorg_testset_save_CFLAGS="$CFLAGS"
17008
17009 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17010 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17012 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17013 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17014 $as_echo_n "(cached) " >&6
17015 else
17016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17017 /* end confdefs.h. */
17018 int i;
17019 _ACEOF
17020 if ac_fn_c_try_compile "$LINENO"; then :
17021 xorg_cv_cc_flag_unknown_warning_option=yes
17022 else
17023 xorg_cv_cc_flag_unknown_warning_option=no
17024 fi
17025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17026 fi
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17028 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17029 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17030 CFLAGS="$xorg_testset_save_CFLAGS"
17031 fi
17032
17033 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17034 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17035 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17036 fi
17037 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17039 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17040 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17041 $as_echo_n "(cached) " >&6
17042 else
17043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17044 /* end confdefs.h. */
17045 int i;
17046 _ACEOF
17047 if ac_fn_c_try_compile "$LINENO"; then :
17048 xorg_cv_cc_flag_unused_command_line_argument=yes
17049 else
17050 xorg_cv_cc_flag_unused_command_line_argument=no
17051 fi
17052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17053 fi
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17055 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17056 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17057 CFLAGS="$xorg_testset_save_CFLAGS"
17058 fi
17059
17060 found="no"
17061
17062 if test $found = "no" ; then
17063 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17064 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17065 fi
17066
17067 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17068 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17069 fi
17070
17071 CFLAGS="$CFLAGS -Warray-bounds"
17072
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
17074 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
17075 cacheid=xorg_cv_cc_flag__Warray_bounds
17076 if eval \${$cacheid+:} false; then :
17077 $as_echo_n "(cached) " >&6
17078 else
17079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17080 /* end confdefs.h. */
17081 int i;
17082 int
17083 main ()
17084 {
17085
17086 ;
17087 return 0;
17088 }
17089 _ACEOF
17090 if ac_fn_c_try_link "$LINENO"; then :
17091 eval $cacheid=yes
17092 else
17093 eval $cacheid=no
17094 fi
17095 rm -f core conftest.err conftest.$ac_objext \
17096 conftest$ac_exeext conftest.$ac_ext
17097 fi
17098
17099
17100 CFLAGS="$xorg_testset_save_CFLAGS"
17101
17102 eval supported=\$$cacheid
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17104 $as_echo "$supported" >&6; }
17105 if test "$supported" = "yes" ; then
17106 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
17107 found="yes"
17108 fi
17109 fi
17110
17111
17112
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125 xorg_testset_save_CFLAGS="$CFLAGS"
17126
17127 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17128 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17130 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17131 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17132 $as_echo_n "(cached) " >&6
17133 else
17134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17135 /* end confdefs.h. */
17136 int i;
17137 _ACEOF
17138 if ac_fn_c_try_compile "$LINENO"; then :
17139 xorg_cv_cc_flag_unknown_warning_option=yes
17140 else
17141 xorg_cv_cc_flag_unknown_warning_option=no
17142 fi
17143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17144 fi
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17146 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17147 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17148 CFLAGS="$xorg_testset_save_CFLAGS"
17149 fi
17150
17151 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17152 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17153 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17154 fi
17155 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17157 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17158 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17159 $as_echo_n "(cached) " >&6
17160 else
17161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17162 /* end confdefs.h. */
17163 int i;
17164 _ACEOF
17165 if ac_fn_c_try_compile "$LINENO"; then :
17166 xorg_cv_cc_flag_unused_command_line_argument=yes
17167 else
17168 xorg_cv_cc_flag_unused_command_line_argument=no
17169 fi
17170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17171 fi
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17173 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17174 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17175 CFLAGS="$xorg_testset_save_CFLAGS"
17176 fi
17177
17178 found="no"
17179
17180 if test $found = "no" ; then
17181 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17182 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17183 fi
17184
17185 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17186 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17187 fi
17188
17189 CFLAGS="$CFLAGS -Wwrite-strings"
17190
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
17192 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
17193 cacheid=xorg_cv_cc_flag__Wwrite_strings
17194 if eval \${$cacheid+:} false; then :
17195 $as_echo_n "(cached) " >&6
17196 else
17197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17198 /* end confdefs.h. */
17199 int i;
17200 int
17201 main ()
17202 {
17203
17204 ;
17205 return 0;
17206 }
17207 _ACEOF
17208 if ac_fn_c_try_link "$LINENO"; then :
17209 eval $cacheid=yes
17210 else
17211 eval $cacheid=no
17212 fi
17213 rm -f core conftest.err conftest.$ac_objext \
17214 conftest$ac_exeext conftest.$ac_ext
17215 fi
17216
17217
17218 CFLAGS="$xorg_testset_save_CFLAGS"
17219
17220 eval supported=\$$cacheid
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17222 $as_echo "$supported" >&6; }
17223 if test "$supported" = "yes" ; then
17224 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
17225 found="yes"
17226 fi
17227 fi
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243 xorg_testset_save_CFLAGS="$CFLAGS"
17244
17245 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17246 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17248 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17249 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17250 $as_echo_n "(cached) " >&6
17251 else
17252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17253 /* end confdefs.h. */
17254 int i;
17255 _ACEOF
17256 if ac_fn_c_try_compile "$LINENO"; then :
17257 xorg_cv_cc_flag_unknown_warning_option=yes
17258 else
17259 xorg_cv_cc_flag_unknown_warning_option=no
17260 fi
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17262 fi
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17264 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17265 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17266 CFLAGS="$xorg_testset_save_CFLAGS"
17267 fi
17268
17269 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17270 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17271 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17272 fi
17273 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17275 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17276 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17277 $as_echo_n "(cached) " >&6
17278 else
17279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17280 /* end confdefs.h. */
17281 int i;
17282 _ACEOF
17283 if ac_fn_c_try_compile "$LINENO"; then :
17284 xorg_cv_cc_flag_unused_command_line_argument=yes
17285 else
17286 xorg_cv_cc_flag_unused_command_line_argument=no
17287 fi
17288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17289 fi
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17291 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17292 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17293 CFLAGS="$xorg_testset_save_CFLAGS"
17294 fi
17295
17296 found="no"
17297
17298 if test $found = "no" ; then
17299 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17300 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17301 fi
17302
17303 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17304 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17305 fi
17306
17307 CFLAGS="$CFLAGS -Waddress"
17308
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
17310 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
17311 cacheid=xorg_cv_cc_flag__Waddress
17312 if eval \${$cacheid+:} false; then :
17313 $as_echo_n "(cached) " >&6
17314 else
17315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17316 /* end confdefs.h. */
17317 int i;
17318 int
17319 main ()
17320 {
17321
17322 ;
17323 return 0;
17324 }
17325 _ACEOF
17326 if ac_fn_c_try_link "$LINENO"; then :
17327 eval $cacheid=yes
17328 else
17329 eval $cacheid=no
17330 fi
17331 rm -f core conftest.err conftest.$ac_objext \
17332 conftest$ac_exeext conftest.$ac_ext
17333 fi
17334
17335
17336 CFLAGS="$xorg_testset_save_CFLAGS"
17337
17338 eval supported=\$$cacheid
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17340 $as_echo "$supported" >&6; }
17341 if test "$supported" = "yes" ; then
17342 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
17343 found="yes"
17344 fi
17345 fi
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361 xorg_testset_save_CFLAGS="$CFLAGS"
17362
17363 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17364 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17366 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17367 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17368 $as_echo_n "(cached) " >&6
17369 else
17370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17371 /* end confdefs.h. */
17372 int i;
17373 _ACEOF
17374 if ac_fn_c_try_compile "$LINENO"; then :
17375 xorg_cv_cc_flag_unknown_warning_option=yes
17376 else
17377 xorg_cv_cc_flag_unknown_warning_option=no
17378 fi
17379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17380 fi
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17382 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17383 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17384 CFLAGS="$xorg_testset_save_CFLAGS"
17385 fi
17386
17387 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17388 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17389 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17390 fi
17391 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17393 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17394 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17395 $as_echo_n "(cached) " >&6
17396 else
17397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17398 /* end confdefs.h. */
17399 int i;
17400 _ACEOF
17401 if ac_fn_c_try_compile "$LINENO"; then :
17402 xorg_cv_cc_flag_unused_command_line_argument=yes
17403 else
17404 xorg_cv_cc_flag_unused_command_line_argument=no
17405 fi
17406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17407 fi
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17409 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17410 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17411 CFLAGS="$xorg_testset_save_CFLAGS"
17412 fi
17413
17414 found="no"
17415
17416 if test $found = "no" ; then
17417 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17418 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17419 fi
17420
17421 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17422 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17423 fi
17424
17425 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
17426
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
17428 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
17429 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
17430 if eval \${$cacheid+:} false; then :
17431 $as_echo_n "(cached) " >&6
17432 else
17433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17434 /* end confdefs.h. */
17435 int i;
17436 int
17437 main ()
17438 {
17439
17440 ;
17441 return 0;
17442 }
17443 _ACEOF
17444 if ac_fn_c_try_link "$LINENO"; then :
17445 eval $cacheid=yes
17446 else
17447 eval $cacheid=no
17448 fi
17449 rm -f core conftest.err conftest.$ac_objext \
17450 conftest$ac_exeext conftest.$ac_ext
17451 fi
17452
17453
17454 CFLAGS="$xorg_testset_save_CFLAGS"
17455
17456 eval supported=\$$cacheid
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17458 $as_echo "$supported" >&6; }
17459 if test "$supported" = "yes" ; then
17460 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
17461 found="yes"
17462 fi
17463 fi
17464
17465
17466
17467
17468
17469
17470
17471
17472
17473
17474
17475
17476
17477
17478
17479 xorg_testset_save_CFLAGS="$CFLAGS"
17480
17481 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17482 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17484 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17485 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17486 $as_echo_n "(cached) " >&6
17487 else
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490 int i;
17491 _ACEOF
17492 if ac_fn_c_try_compile "$LINENO"; then :
17493 xorg_cv_cc_flag_unknown_warning_option=yes
17494 else
17495 xorg_cv_cc_flag_unknown_warning_option=no
17496 fi
17497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17498 fi
17499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17500 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17501 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17502 CFLAGS="$xorg_testset_save_CFLAGS"
17503 fi
17504
17505 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17506 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17507 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17508 fi
17509 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17511 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17512 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17513 $as_echo_n "(cached) " >&6
17514 else
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17517 int i;
17518 _ACEOF
17519 if ac_fn_c_try_compile "$LINENO"; then :
17520 xorg_cv_cc_flag_unused_command_line_argument=yes
17521 else
17522 xorg_cv_cc_flag_unused_command_line_argument=no
17523 fi
17524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17525 fi
17526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17527 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17528 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17529 CFLAGS="$xorg_testset_save_CFLAGS"
17530 fi
17531
17532 found="no"
17533
17534 if test $found = "no" ; then
17535 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17536 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17537 fi
17538
17539 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17540 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17541 fi
17542
17543 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
17544
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
17546 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
17547 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
17548 if eval \${$cacheid+:} false; then :
17549 $as_echo_n "(cached) " >&6
17550 else
17551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17552 /* end confdefs.h. */
17553 int i;
17554 int
17555 main ()
17556 {
17557
17558 ;
17559 return 0;
17560 }
17561 _ACEOF
17562 if ac_fn_c_try_link "$LINENO"; then :
17563 eval $cacheid=yes
17564 else
17565 eval $cacheid=no
17566 fi
17567 rm -f core conftest.err conftest.$ac_objext \
17568 conftest$ac_exeext conftest.$ac_ext
17569 fi
17570
17571
17572 CFLAGS="$xorg_testset_save_CFLAGS"
17573
17574 eval supported=\$$cacheid
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17576 $as_echo "$supported" >&6; }
17577 if test "$supported" = "yes" ; then
17578 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17579 found="yes"
17580 fi
17581 fi
17582
17583
17584 fi
17585
17586
17587
17588
17589
17590
17591
17592 CWARNFLAGS="$BASE_CFLAGS"
17593 if test "x$GCC" = xyes ; then
17594 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17595 fi
17596
17597
17598
17599
17600
17601
17602
17603
17604 # Check whether --enable-strict-compilation was given.
17605 if test "${enable_strict_compilation+set}" = set; then :
17606 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17607 else
17608 STRICT_COMPILE=no
17609 fi
17610
17611
17612
17613
17614
17615
17616 STRICT_CFLAGS=""
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630 xorg_testset_save_CFLAGS="$CFLAGS"
17631
17632 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17633 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17635 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17636 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17637 $as_echo_n "(cached) " >&6
17638 else
17639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17640 /* end confdefs.h. */
17641 int i;
17642 _ACEOF
17643 if ac_fn_c_try_compile "$LINENO"; then :
17644 xorg_cv_cc_flag_unknown_warning_option=yes
17645 else
17646 xorg_cv_cc_flag_unknown_warning_option=no
17647 fi
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 fi
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17651 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17652 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17653 CFLAGS="$xorg_testset_save_CFLAGS"
17654 fi
17655
17656 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17657 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17658 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17659 fi
17660 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17662 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17663 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17664 $as_echo_n "(cached) " >&6
17665 else
17666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17667 /* end confdefs.h. */
17668 int i;
17669 _ACEOF
17670 if ac_fn_c_try_compile "$LINENO"; then :
17671 xorg_cv_cc_flag_unused_command_line_argument=yes
17672 else
17673 xorg_cv_cc_flag_unused_command_line_argument=no
17674 fi
17675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17676 fi
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17678 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17679 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17680 CFLAGS="$xorg_testset_save_CFLAGS"
17681 fi
17682
17683 found="no"
17684
17685 if test $found = "no" ; then
17686 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17687 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17688 fi
17689
17690 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17691 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17692 fi
17693
17694 CFLAGS="$CFLAGS -pedantic"
17695
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17697 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17698 cacheid=xorg_cv_cc_flag__pedantic
17699 if eval \${$cacheid+:} false; then :
17700 $as_echo_n "(cached) " >&6
17701 else
17702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17703 /* end confdefs.h. */
17704 int i;
17705 int
17706 main ()
17707 {
17708
17709 ;
17710 return 0;
17711 }
17712 _ACEOF
17713 if ac_fn_c_try_link "$LINENO"; then :
17714 eval $cacheid=yes
17715 else
17716 eval $cacheid=no
17717 fi
17718 rm -f core conftest.err conftest.$ac_objext \
17719 conftest$ac_exeext conftest.$ac_ext
17720 fi
17721
17722
17723 CFLAGS="$xorg_testset_save_CFLAGS"
17724
17725 eval supported=\$$cacheid
17726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17727 $as_echo "$supported" >&6; }
17728 if test "$supported" = "yes" ; then
17729 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17730 found="yes"
17731 fi
17732 fi
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748 xorg_testset_save_CFLAGS="$CFLAGS"
17749
17750 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17751 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17753 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17754 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17758 /* end confdefs.h. */
17759 int i;
17760 _ACEOF
17761 if ac_fn_c_try_compile "$LINENO"; then :
17762 xorg_cv_cc_flag_unknown_warning_option=yes
17763 else
17764 xorg_cv_cc_flag_unknown_warning_option=no
17765 fi
17766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 fi
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17769 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17770 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17771 CFLAGS="$xorg_testset_save_CFLAGS"
17772 fi
17773
17774 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17775 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17776 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17777 fi
17778 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17780 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17781 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17782 $as_echo_n "(cached) " >&6
17783 else
17784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17785 /* end confdefs.h. */
17786 int i;
17787 _ACEOF
17788 if ac_fn_c_try_compile "$LINENO"; then :
17789 xorg_cv_cc_flag_unused_command_line_argument=yes
17790 else
17791 xorg_cv_cc_flag_unused_command_line_argument=no
17792 fi
17793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17794 fi
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17796 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17797 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17798 CFLAGS="$xorg_testset_save_CFLAGS"
17799 fi
17800
17801 found="no"
17802
17803 if test $found = "no" ; then
17804 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17805 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17806 fi
17807
17808 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17809 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17810 fi
17811
17812 CFLAGS="$CFLAGS -Werror"
17813
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17815 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17816 cacheid=xorg_cv_cc_flag__Werror
17817 if eval \${$cacheid+:} false; then :
17818 $as_echo_n "(cached) " >&6
17819 else
17820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17821 /* end confdefs.h. */
17822 int i;
17823 int
17824 main ()
17825 {
17826
17827 ;
17828 return 0;
17829 }
17830 _ACEOF
17831 if ac_fn_c_try_link "$LINENO"; then :
17832 eval $cacheid=yes
17833 else
17834 eval $cacheid=no
17835 fi
17836 rm -f core conftest.err conftest.$ac_objext \
17837 conftest$ac_exeext conftest.$ac_ext
17838 fi
17839
17840
17841 CFLAGS="$xorg_testset_save_CFLAGS"
17842
17843 eval supported=\$$cacheid
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17845 $as_echo "$supported" >&6; }
17846 if test "$supported" = "yes" ; then
17847 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17848 found="yes"
17849 fi
17850 fi
17851
17852 if test $found = "no" ; then
17853 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17854 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17855 fi
17856
17857 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17858 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17859 fi
17860
17861 CFLAGS="$CFLAGS -errwarn"
17862
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17864 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17865 cacheid=xorg_cv_cc_flag__errwarn
17866 if eval \${$cacheid+:} false; then :
17867 $as_echo_n "(cached) " >&6
17868 else
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17871 int i;
17872 int
17873 main ()
17874 {
17875
17876 ;
17877 return 0;
17878 }
17879 _ACEOF
17880 if ac_fn_c_try_link "$LINENO"; then :
17881 eval $cacheid=yes
17882 else
17883 eval $cacheid=no
17884 fi
17885 rm -f core conftest.err conftest.$ac_objext \
17886 conftest$ac_exeext conftest.$ac_ext
17887 fi
17888
17889
17890 CFLAGS="$xorg_testset_save_CFLAGS"
17891
17892 eval supported=\$$cacheid
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17894 $as_echo "$supported" >&6; }
17895 if test "$supported" = "yes" ; then
17896 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17897 found="yes"
17898 fi
17899 fi
17900
17901
17902
17903 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17904 # activate it with -Werror, so we add it here explicitly.
17905
17906
17907
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918 xorg_testset_save_CFLAGS="$CFLAGS"
17919
17920 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17921 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17923 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17924 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17925 $as_echo_n "(cached) " >&6
17926 else
17927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17928 /* end confdefs.h. */
17929 int i;
17930 _ACEOF
17931 if ac_fn_c_try_compile "$LINENO"; then :
17932 xorg_cv_cc_flag_unknown_warning_option=yes
17933 else
17934 xorg_cv_cc_flag_unknown_warning_option=no
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 fi
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17939 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17940 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17941 CFLAGS="$xorg_testset_save_CFLAGS"
17942 fi
17943
17944 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17945 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17946 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17947 fi
17948 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17950 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17951 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17952 $as_echo_n "(cached) " >&6
17953 else
17954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17955 /* end confdefs.h. */
17956 int i;
17957 _ACEOF
17958 if ac_fn_c_try_compile "$LINENO"; then :
17959 xorg_cv_cc_flag_unused_command_line_argument=yes
17960 else
17961 xorg_cv_cc_flag_unused_command_line_argument=no
17962 fi
17963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17964 fi
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17966 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17967 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17968 CFLAGS="$xorg_testset_save_CFLAGS"
17969 fi
17970
17971 found="no"
17972
17973 if test $found = "no" ; then
17974 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17975 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17976 fi
17977
17978 if test "x$xorg_testset_cc_unused_command_line_argument" = "xyes" ; then
17979 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17980 fi
17981
17982 CFLAGS="$CFLAGS -Werror=attributes"
17983
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17985 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17986 cacheid=xorg_cv_cc_flag__Werror_attributes
17987 if eval \${$cacheid+:} false; then :
17988 $as_echo_n "(cached) " >&6
17989 else
17990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17991 /* end confdefs.h. */
17992 int i;
17993 int
17994 main ()
17995 {
17996
17997 ;
17998 return 0;
17999 }
18000 _ACEOF
18001 if ac_fn_c_try_link "$LINENO"; then :
18002 eval $cacheid=yes
18003 else
18004 eval $cacheid=no
18005 fi
18006 rm -f core conftest.err conftest.$ac_objext \
18007 conftest$ac_exeext conftest.$ac_ext
18008 fi
18009
18010
18011 CFLAGS="$xorg_testset_save_CFLAGS"
18012
18013 eval supported=\$$cacheid
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
18015 $as_echo "$supported" >&6; }
18016 if test "$supported" = "yes" ; then
18017 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
18018 found="yes"
18019 fi
18020 fi
18021
18022
18023
18024 if test "x$STRICT_COMPILE" = "xyes"; then
18025 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
18026 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
18027 fi
18028
18029
18030
18031
18032
18033
18034 cat >>confdefs.h <<_ACEOF
18035 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
18036 _ACEOF
18037
18038 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
18039 if test "x$PVM" = "x"; then
18040 PVM="0"
18041 fi
18042
18043 cat >>confdefs.h <<_ACEOF
18044 #define PACKAGE_VERSION_MINOR $PVM
18045 _ACEOF
18046
18047 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
18048 if test "x$PVP" = "x"; then
18049 PVP="0"
18050 fi
18051
18052 cat >>confdefs.h <<_ACEOF
18053 #define PACKAGE_VERSION_PATCHLEVEL $PVP
18054 _ACEOF
18055
18056
18057
18058 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
18059 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
18060 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
18061 echo 'git directory not found: installing possibly empty changelog.' >&2)"
18062
18063
18064
18065
18066 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
18067 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
18068 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
18069 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
18070 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
18071
18072
18073
18074
18075
18076
18077 if test x$APP_MAN_SUFFIX = x ; then
18078 APP_MAN_SUFFIX=1
18079 fi
18080 if test x$APP_MAN_DIR = x ; then
18081 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
18082 fi
18083
18084 if test x$LIB_MAN_SUFFIX = x ; then
18085 LIB_MAN_SUFFIX=3
18086 fi
18087 if test x$LIB_MAN_DIR = x ; then
18088 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
18089 fi
18090
18091 if test x$FILE_MAN_SUFFIX = x ; then
18092 case $host_os in
18093 solaris*) FILE_MAN_SUFFIX=4 ;;
18094 *) FILE_MAN_SUFFIX=5 ;;
18095 esac
18096 fi
18097 if test x$FILE_MAN_DIR = x ; then
18098 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
18099 fi
18100
18101 if test x$MISC_MAN_SUFFIX = x ; then
18102 case $host_os in
18103 solaris*) MISC_MAN_SUFFIX=5 ;;
18104 *) MISC_MAN_SUFFIX=7 ;;
18105 esac
18106 fi
18107 if test x$MISC_MAN_DIR = x ; then
18108 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
18109 fi
18110
18111 if test x$DRIVER_MAN_SUFFIX = x ; then
18112 case $host_os in
18113 solaris*) DRIVER_MAN_SUFFIX=7 ;;
18114 *) DRIVER_MAN_SUFFIX=4 ;;
18115 esac
18116 fi
18117 if test x$DRIVER_MAN_DIR = x ; then
18118 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
18119 fi
18120
18121 if test x$ADMIN_MAN_SUFFIX = x ; then
18122 case $host_os in
18123 solaris*) ADMIN_MAN_SUFFIX=1m ;;
18124 *) ADMIN_MAN_SUFFIX=8 ;;
18125 esac
18126 fi
18127 if test x$ADMIN_MAN_DIR = x ; then
18128 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
18129 fi
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142
18143
18144
18145 XORG_MAN_PAGE="X Version 11"
18146
18147 MAN_SUBSTS="\
18148 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18149 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
18150 -e 's|__xservername__|Xorg|g' \
18151 -e 's|__xconfigfile__|xorg.conf|g' \
18152 -e 's|__projectroot__|\$(prefix)|g' \
18153 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
18154 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
18155 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
18156 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
18157 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
18158 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
18159 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
18160
18161
18162
18163 # Check whether --enable-silent-rules was given.
18164 if test "${enable_silent_rules+set}" = set; then :
18165 enableval=$enable_silent_rules;
18166 fi
18167
18168 case $enable_silent_rules in # (((
18169 yes) AM_DEFAULT_VERBOSITY=0;;
18170 no) AM_DEFAULT_VERBOSITY=1;;
18171 *) AM_DEFAULT_VERBOSITY=0;;
18172 esac
18173 am_make=${MAKE-make}
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
18175 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
18176 if ${am_cv_make_support_nested_variables+:} false; then :
18177 $as_echo_n "(cached) " >&6
18178 else
18179 if $as_echo 'TRUE=$(BAR$(V))
18180 BAR0=false
18181 BAR1=true
18182 V=1
18183 am__doit:
18184 @$(TRUE)
18185 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
18186 am_cv_make_support_nested_variables=yes
18187 else
18188 am_cv_make_support_nested_variables=no
18189 fi
18190 fi
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
18192 $as_echo "$am_cv_make_support_nested_variables" >&6; }
18193 if test $am_cv_make_support_nested_variables = yes; then
18194 AM_V='$(V)'
18195 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
18196 else
18197 AM_V=$AM_DEFAULT_VERBOSITY
18198 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
18199 fi
18200 AM_BACKSLASH='\'
18201
18202
18203
18204
18205 # Check whether --enable-devel-docs was given.
18206 if test "${enable_devel_docs+set}" = set; then :
18207 enableval=$enable_devel_docs; build_devel_docs=$enableval
18208 else
18209 build_devel_docs=yes
18210 fi
18211
18212
18213 if test x$build_devel_docs = xyes; then
18214 ENABLE_DEVEL_DOCS_TRUE=
18215 ENABLE_DEVEL_DOCS_FALSE='#'
18216 else
18217 ENABLE_DEVEL_DOCS_TRUE='#'
18218 ENABLE_DEVEL_DOCS_FALSE=
18219 fi
18220
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build developer documentation" >&5
18222 $as_echo_n "checking whether to build developer documentation... " >&6; }
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_devel_docs" >&5
18224 $as_echo "$build_devel_docs" >&6; }
18225
18226
18227
18228
18229
18230 # Check whether --with-xmlto was given.
18231 if test "${with_xmlto+set}" = set; then :
18232 withval=$with_xmlto; use_xmlto=$withval
18233 else
18234 use_xmlto=auto
18235 fi
18236
18237
18238
18239 if test "x$use_xmlto" = x"auto"; then
18240 # Extract the first word of "xmlto", so it can be a program name with args.
18241 set dummy xmlto; ac_word=$2
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18243 $as_echo_n "checking for $ac_word... " >&6; }
18244 if ${ac_cv_path_XMLTO+:} false; then :
18245 $as_echo_n "(cached) " >&6
18246 else
18247 case $XMLTO in
18248 [\\/]* | ?:[\\/]*)
18249 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18250 ;;
18251 *)
18252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18253 for as_dir in $PATH
18254 do
18255 IFS=$as_save_IFS
18256 test -z "$as_dir" && as_dir=.
18257 for ac_exec_ext in '' $ac_executable_extensions; do
18258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18259 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18261 break 2
18262 fi
18263 done
18264 done
18265 IFS=$as_save_IFS
18266
18267 ;;
18268 esac
18269 fi
18270 XMLTO=$ac_cv_path_XMLTO
18271 if test -n "$XMLTO"; then
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18273 $as_echo "$XMLTO" >&6; }
18274 else
18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18276 $as_echo "no" >&6; }
18277 fi
18278
18279
18280 if test "x$XMLTO" = "x"; then
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5
18282 $as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;}
18283 have_xmlto=no
18284 else
18285 have_xmlto=yes
18286 fi
18287 elif test "x$use_xmlto" = x"yes" ; then
18288 # Extract the first word of "xmlto", so it can be a program name with args.
18289 set dummy xmlto; ac_word=$2
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18291 $as_echo_n "checking for $ac_word... " >&6; }
18292 if ${ac_cv_path_XMLTO+:} false; then :
18293 $as_echo_n "(cached) " >&6
18294 else
18295 case $XMLTO in
18296 [\\/]* | ?:[\\/]*)
18297 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
18298 ;;
18299 *)
18300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18301 for as_dir in $PATH
18302 do
18303 IFS=$as_save_IFS
18304 test -z "$as_dir" && as_dir=.
18305 for ac_exec_ext in '' $ac_executable_extensions; do
18306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18307 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
18308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18309 break 2
18310 fi
18311 done
18312 done
18313 IFS=$as_save_IFS
18314
18315 ;;
18316 esac
18317 fi
18318 XMLTO=$ac_cv_path_XMLTO
18319 if test -n "$XMLTO"; then
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
18321 $as_echo "$XMLTO" >&6; }
18322 else
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18324 $as_echo "no" >&6; }
18325 fi
18326
18327
18328 if test "x$XMLTO" = "x"; then
18329 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5
18330 fi
18331 have_xmlto=yes
18332 elif test "x$use_xmlto" = x"no" ; then
18333 if test "x$XMLTO" != "x"; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5
18335 $as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;}
18336 fi
18337 have_xmlto=no
18338 else
18339 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5
18340 fi
18341
18342 # Test for a minimum version of xmlto, if provided.
18343 if test "$have_xmlto" = yes; then
18344 # scrape the xmlto version
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5
18346 $as_echo_n "checking the xmlto version... " >&6; }
18347 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3`
18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5
18349 $as_echo "$xmlto_version" >&6; }
18350 as_arg_v1=$xmlto_version
18351 as_arg_v2=0.0.22
18352 awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null
18353 case $? in #(
18354 1) :
18355 if test "x$use_xmlto" = xauto; then
18356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&5
18357 $as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.22 needed" >&2;}
18358 have_xmlto=no
18359 else
18360 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.22 needed" "$LINENO" 5
18361 fi ;; #(
18362 0) :
18363 ;; #(
18364 2) :
18365 ;; #(
18366 *) :
18367 ;;
18368 esac
18369 fi
18370
18371 # Test for the ability of xmlto to generate a text target
18372 have_xmlto_text=no
18373 cat > conftest.xml << "EOF"
18374 EOF
18375 if test "$have_xmlto" = yes; then :
18376 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then :
18377 have_xmlto_text=yes
18378 else
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5
18380 $as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;}
18381 fi
18382 fi
18383 rm -f conftest.xml
18384 if test $have_xmlto_text = yes; then
18385 HAVE_XMLTO_TEXT_TRUE=
18386 HAVE_XMLTO_TEXT_FALSE='#'
18387 else
18388 HAVE_XMLTO_TEXT_TRUE='#'
18389 HAVE_XMLTO_TEXT_FALSE=
18390 fi
18391
18392 if test "$have_xmlto" = yes; then
18393 HAVE_XMLTO_TRUE=
18394 HAVE_XMLTO_FALSE='#'
18395 else
18396 HAVE_XMLTO_TRUE='#'
18397 HAVE_XMLTO_FALSE=
18398 fi
18399
18400
18401
18402
18403
18404
18405 # Check whether --with-fop was given.
18406 if test "${with_fop+set}" = set; then :
18407 withval=$with_fop; use_fop=$withval
18408 else
18409 use_fop=auto
18410 fi
18411
18412
18413
18414 if test "x$use_fop" = x"auto"; then
18415 # Extract the first word of "fop", so it can be a program name with args.
18416 set dummy fop; ac_word=$2
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18418 $as_echo_n "checking for $ac_word... " >&6; }
18419 if ${ac_cv_path_FOP+:} false; then :
18420 $as_echo_n "(cached) " >&6
18421 else
18422 case $FOP in
18423 [\\/]* | ?:[\\/]*)
18424 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18425 ;;
18426 *)
18427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18428 for as_dir in $PATH
18429 do
18430 IFS=$as_save_IFS
18431 test -z "$as_dir" && as_dir=.
18432 for ac_exec_ext in '' $ac_executable_extensions; do
18433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18434 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18436 break 2
18437 fi
18438 done
18439 done
18440 IFS=$as_save_IFS
18441
18442 ;;
18443 esac
18444 fi
18445 FOP=$ac_cv_path_FOP
18446 if test -n "$FOP"; then
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18448 $as_echo "$FOP" >&6; }
18449 else
18450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18451 $as_echo "no" >&6; }
18452 fi
18453
18454
18455 if test "x$FOP" = "x"; then
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5
18457 $as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;}
18458 have_fop=no
18459 else
18460 have_fop=yes
18461 fi
18462 elif test "x$use_fop" = x"yes" ; then
18463 # Extract the first word of "fop", so it can be a program name with args.
18464 set dummy fop; ac_word=$2
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18466 $as_echo_n "checking for $ac_word... " >&6; }
18467 if ${ac_cv_path_FOP+:} false; then :
18468 $as_echo_n "(cached) " >&6
18469 else
18470 case $FOP in
18471 [\\/]* | ?:[\\/]*)
18472 ac_cv_path_FOP="$FOP" # Let the user override the test with a path.
18473 ;;
18474 *)
18475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18476 for as_dir in $PATH
18477 do
18478 IFS=$as_save_IFS
18479 test -z "$as_dir" && as_dir=.
18480 for ac_exec_ext in '' $ac_executable_extensions; do
18481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18482 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext"
18483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18484 break 2
18485 fi
18486 done
18487 done
18488 IFS=$as_save_IFS
18489
18490 ;;
18491 esac
18492 fi
18493 FOP=$ac_cv_path_FOP
18494 if test -n "$FOP"; then
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5
18496 $as_echo "$FOP" >&6; }
18497 else
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18499 $as_echo "no" >&6; }
18500 fi
18501
18502
18503 if test "x$FOP" = "x"; then
18504 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5
18505 fi
18506 have_fop=yes
18507 elif test "x$use_fop" = x"no" ; then
18508 if test "x$FOP" != "x"; then
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5
18510 $as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;}
18511 fi
18512 have_fop=no
18513 else
18514 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5
18515 fi
18516
18517 # Test for a minimum version of fop, if provided.
18518
18519 if test "$have_fop" = yes; then
18520 HAVE_FOP_TRUE=
18521 HAVE_FOP_FALSE='#'
18522 else
18523 HAVE_FOP_TRUE='#'
18524 HAVE_FOP_FALSE=
18525 fi
18526
18527
18528
18529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.7" >&5
18530 $as_echo_n "checking for X.Org SGML entities >= 1.7... " >&6; }
18531 XORG_SGML_PATH=
18532 if test -n "$PKG_CONFIG" && \
18533 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.7\""; } >&5
18534 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.7") 2>&5
18535 ac_status=$?
18536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18537 test $ac_status = 0; }; then
18538 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools`
18539 else
18540 :
18541
18542 fi
18543
18544 # Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing
18545 # the path and the name of the doc stylesheet
18546 if test "x$XORG_SGML_PATH" != "x" ; then
18547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5
18548 $as_echo "$XORG_SGML_PATH" >&6; }
18549 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11
18550 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl
18551 else
18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18553 $as_echo "no" >&6; }
18554 fi
18555
18556
18557
18558
18559 if test "x$XSL_STYLESHEET" != "x"; then
18560 HAVE_STYLESHEETS_TRUE=
18561 HAVE_STYLESHEETS_FALSE='#'
18562 else
18563 HAVE_STYLESHEETS_TRUE='#'
18564 HAVE_STYLESHEETS_FALSE=
18565 fi
18566
18567
18568
18569 # Checks for header files.
18570 for ac_header in endian.h poll.h sys/poll.h
18571 do :
18572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18573 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18574 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18575 cat >>confdefs.h <<_ACEOF
18576 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18577 _ACEOF
18578
18579 fi
18580
18581 done
18582
18583
18584 # Checks for library functions.
18585 for ac_func in poll readlink
18586 do :
18587 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18588 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
18589 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
18590 cat >>confdefs.h <<_ACEOF
18591 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
18592 _ACEOF
18593
18594 fi
18595 done
18596
18597
18598 # If the first PKG_CHECK_MODULES appears inside a conditional, pkg-config
18599 # must first be located explicitly.
18600
18601
18602
18603
18604
18605
18606
18607 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18608 if test -n "$ac_tool_prefix"; then
18609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18612 $as_echo_n "checking for $ac_word... " >&6; }
18613 if ${ac_cv_path_PKG_CONFIG+:} false; then :
18614 $as_echo_n "(cached) " >&6
18615 else
18616 case $PKG_CONFIG in
18617 [\\/]* | ?:[\\/]*)
18618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18619 ;;
18620 *)
18621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18622 for as_dir in $PATH
18623 do
18624 IFS=$as_save_IFS
18625 test -z "$as_dir" && as_dir=.
18626 for ac_exec_ext in '' $ac_executable_extensions; do
18627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18630 break 2
18631 fi
18632 done
18633 done
18634 IFS=$as_save_IFS
18635
18636 ;;
18637 esac
18638 fi
18639 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18640 if test -n "$PKG_CONFIG"; then
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18642 $as_echo "$PKG_CONFIG" >&6; }
18643 else
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18645 $as_echo "no" >&6; }
18646 fi
18647
18648
18649 fi
18650 if test -z "$ac_cv_path_PKG_CONFIG"; then
18651 ac_pt_PKG_CONFIG=$PKG_CONFIG
18652 # Extract the first word of "pkg-config", so it can be a program name with args.
18653 set dummy pkg-config; ac_word=$2
18654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18655 $as_echo_n "checking for $ac_word... " >&6; }
18656 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
18657 $as_echo_n "(cached) " >&6
18658 else
18659 case $ac_pt_PKG_CONFIG in
18660 [\\/]* | ?:[\\/]*)
18661 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18662 ;;
18663 *)
18664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18665 for as_dir in $PATH
18666 do
18667 IFS=$as_save_IFS
18668 test -z "$as_dir" && as_dir=.
18669 for ac_exec_ext in '' $ac_executable_extensions; do
18670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18671 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18673 break 2
18674 fi
18675 done
18676 done
18677 IFS=$as_save_IFS
18678
18679 ;;
18680 esac
18681 fi
18682 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18683 if test -n "$ac_pt_PKG_CONFIG"; then
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
18685 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
18686 else
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18688 $as_echo "no" >&6; }
18689 fi
18690
18691 if test "x$ac_pt_PKG_CONFIG" = x; then
18692 PKG_CONFIG=""
18693 else
18694 case $cross_compiling:$ac_tool_warned in
18695 yes:)
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18697 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18698 ac_tool_warned=yes ;;
18699 esac
18700 PKG_CONFIG=$ac_pt_PKG_CONFIG
18701 fi
18702 else
18703 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18704 fi
18705
18706 fi
18707 if test -n "$PKG_CONFIG"; then
18708 _pkg_min_version=0.9.0
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
18710 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
18711 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18713 $as_echo "yes" >&6; }
18714 else
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18716 $as_echo "no" >&6; }
18717 PKG_CONFIG=""
18718 fi
18719 fi
18720
18721 with_cflags=""
18722 if test "x$GCC" = "xyes"; then
18723
18724 for flag in \
18725 -Wall \
18726 -Wextra \
18727 -Wno-sign-compare \
18728 -Wno-missing-field-initializers \
18729 -Wno-unused-parameter \
18730 -Wstrict-prototypes \
18731 -Wmissing-prototypes \
18732 -fvisibility=hidden \
18733 -pipe \
18734 -fno-strict-aliasing \
18735 -ffunction-sections \
18736 -fdata-sections \
18737 -fno-strict-aliasing \
18738 -fdiagnostics-show-option \
18739 -fno-common; do
18740
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports flag $flag in envvar CFLAGS" >&5
18742 $as_echo_n "checking if $CC supports flag $flag in envvar CFLAGS... " >&6; }
18743 if { as_var=`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`; eval \${$as_var+:} false; }; then :
18744 $as_echo_n "(cached) " >&6
18745 else
18746 eval "cc_save_CFLAGS='${CFLAGS}'"
18747 eval "CFLAGS='-Werror $flag'"
18748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18749 /* end confdefs.h. */
18750 int a = 0; int main(void) { return a; }
18751 _ACEOF
18752 if ac_fn_c_try_link "$LINENO"; then :
18753 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='yes'"
18754 else
18755 eval "`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`='no'"
18756 fi
18757 rm -f core conftest.err conftest.$ac_objext \
18758 conftest$ac_exeext conftest.$ac_ext
18759 eval "CFLAGS='$cc_save_CFLAGS'"
18760 fi
18761 eval ac_res=\$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh`
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18763 $as_echo "$ac_res" >&6; }
18764
18765 if eval test x$`$as_echo "cc_cv_CFLAGS_$flag" | $as_tr_sh` = xyes; then :
18766 eval "with_cflags='${with_cflags} $flag'"
18767 fi
18768
18769 done
18770
18771 fi
18772 GCC_CFLAGS=$with_cflags
18773
18774
18775 #
18776 # select libraries to include
18777 #
18778
18779 XFONT_FONTFILE=no
18780
18781 #
18782 # FreeType for all scalable (OpenType, TrueType, PostScript) and
18783 # some bitmap formats (BDF & PCF)
18784 #
18785 # Check whether --enable-freetype was given.
18786 if test "${enable_freetype+set}" = set; then :
18787 enableval=$enable_freetype; XFONT_FREETYPE=$enableval
18788 else
18789 XFONT_FREETYPE=yes
18790 fi
18791
18792 if test x$XFONT_FREETYPE = xyes; then
18793 XFONT_FREETYPE_TRUE=
18794 XFONT_FREETYPE_FALSE='#'
18795 else
18796 XFONT_FREETYPE_TRUE='#'
18797 XFONT_FREETYPE_FALSE=
18798 fi
18799
18800 if test x$XFONT_FREETYPE = xyes; then
18801
18802 $as_echo "#define XFONT_FREETYPE 1" >>confdefs.h
18803
18804
18805 # Check whether --with-freetype-config was given.
18806 if test "${with_freetype_config+set}" = set; then :
18807 withval=$with_freetype_config; freetype_config=$withval
18808 else
18809 freetype_config=auto
18810 fi
18811
18812
18813 if test "$freetype_config" = "auto" ; then
18814
18815 pkg_failed=no
18816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
18817 $as_echo_n "checking for FREETYPE... " >&6; }
18818
18819 if test -n "$FREETYPE_CFLAGS"; then
18820 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
18821 elif test -n "$PKG_CONFIG"; then
18822 if test -n "$PKG_CONFIG" && \
18823 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18824 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18825 ac_status=$?
18826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18827 test $ac_status = 0; }; then
18828 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
18829 test "x$?" != "x0" && pkg_failed=yes
18830 else
18831 pkg_failed=yes
18832 fi
18833 else
18834 pkg_failed=untried
18835 fi
18836 if test -n "$FREETYPE_LIBS"; then
18837 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
18838 elif test -n "$PKG_CONFIG"; then
18839 if test -n "$PKG_CONFIG" && \
18840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
18841 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
18842 ac_status=$?
18843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18844 test $ac_status = 0; }; then
18845 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
18846 test "x$?" != "x0" && pkg_failed=yes
18847 else
18848 pkg_failed=yes
18849 fi
18850 else
18851 pkg_failed=untried
18852 fi
18853
18854
18855
18856 if test $pkg_failed = yes; then
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18858 $as_echo "no" >&6; }
18859
18860 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18861 _pkg_short_errors_supported=yes
18862 else
18863 _pkg_short_errors_supported=no
18864 fi
18865 if test $_pkg_short_errors_supported = yes; then
18866 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
18867 else
18868 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
18869 fi
18870 # Put the nasty error message in config.log where it belongs
18871 echo "$FREETYPE_PKG_ERRORS" >&5
18872
18873 freetype_config=yes
18874 elif test $pkg_failed = untried; then
18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18876 $as_echo "no" >&6; }
18877 freetype_config=yes
18878 else
18879 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
18880 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18882 $as_echo "yes" >&6; }
18883 freetype_config=no
18884 fi
18885 fi
18886
18887 if test "$freetype_config" = "yes"; then
18888 # Extract the first word of "freetype-config", so it can be a program name with args.
18889 set dummy freetype-config; ac_word=$2
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18891 $as_echo_n "checking for $ac_word... " >&6; }
18892 if ${ac_cv_path_ft_config+:} false; then :
18893 $as_echo_n "(cached) " >&6
18894 else
18895 case $ft_config in
18896 [\\/]* | ?:[\\/]*)
18897 ac_cv_path_ft_config="$ft_config" # Let the user override the test with a path.
18898 ;;
18899 *)
18900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18901 for as_dir in $PATH
18902 do
18903 IFS=$as_save_IFS
18904 test -z "$as_dir" && as_dir=.
18905 for ac_exec_ext in '' $ac_executable_extensions; do
18906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18907 ac_cv_path_ft_config="$as_dir/$ac_word$ac_exec_ext"
18908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18909 break 2
18910 fi
18911 done
18912 done
18913 IFS=$as_save_IFS
18914
18915 test -z "$ac_cv_path_ft_config" && ac_cv_path_ft_config="no"
18916 ;;
18917 esac
18918 fi
18919 ft_config=$ac_cv_path_ft_config
18920 if test -n "$ft_config"; then
18921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ft_config" >&5
18922 $as_echo "$ft_config" >&6; }
18923 else
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18925 $as_echo "no" >&6; }
18926 fi
18927
18928
18929 if test "$ft_config" = "no"; then
18930 as_fn_error $? "You must have freetype installed; see http://www.freetype.org/" "$LINENO" 5
18931 fi
18932 else
18933 ft_config="$freetype_config"
18934 fi
18935
18936 if test "$freetype_config" != "no"; then
18937 FREETYPE_CFLAGS="`$ft_config --cflags`"
18938 FREETYPE_LIBS="`$ft_config --libs`"
18939 fi
18940 FREETYPE_REQUIRES="freetype2"
18941 XFONT_FONTFILE=yes
18942 else
18943 FREETYPE_CFLAGS=""
18944 FREETYPE_LIBS=""
18945 FREETYPE_REQUIRES=""
18946 fi
18947
18948
18949
18950
18951 #
18952 # Bitmap fonts in files:
18953 # Builtins (gzipped pcf format in .text segment)
18954 # PCF
18955 # BDF
18956 # SNF
18957 #
18958
18959
18960 $as_echo "#define X_GZIP_FONT_COMPRESSION 1" >>confdefs.h
18961
18962 X_GZIP_FONT_COMPRESSION=1
18963
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzopen in -lz" >&5
18965 $as_echo_n "checking for gzopen in -lz... " >&6; }
18966 if ${ac_cv_lib_z_gzopen+:} false; then :
18967 $as_echo_n "(cached) " >&6
18968 else
18969 ac_check_lib_save_LIBS=$LIBS
18970 LIBS="-lz $LIBS"
18971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18972 /* end confdefs.h. */
18973
18974 /* Override any GCC internal prototype to avoid an error.
18975 Use char because int might match the return type of a GCC
18976 builtin and then its argument prototype would still apply. */
18977 #ifdef __cplusplus
18978 extern "C"
18979 #endif
18980 char gzopen ();
18981 int
18982 main ()
18983 {
18984 return gzopen ();
18985 ;
18986 return 0;
18987 }
18988 _ACEOF
18989 if ac_fn_c_try_link "$LINENO"; then :
18990 ac_cv_lib_z_gzopen=yes
18991 else
18992 ac_cv_lib_z_gzopen=no
18993 fi
18994 rm -f core conftest.err conftest.$ac_objext \
18995 conftest$ac_exeext conftest.$ac_ext
18996 LIBS=$ac_check_lib_save_LIBS
18997 fi
18998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzopen" >&5
18999 $as_echo "$ac_cv_lib_z_gzopen" >&6; }
19000 if test "x$ac_cv_lib_z_gzopen" = xyes; then :
19001 Z_LIBS=-lz
19002 else
19003 as_fn_error $? "*** zlib is required" "$LINENO" 5
19004 fi
19005
19006
19007
19008 # Check whether --with-bzip2 was given.
19009 if test "${with_bzip2+set}" = set; then :
19010 withval=$with_bzip2;
19011 else
19012 with_bzip2=no
19013 fi
19014
19015 if test "x$with_bzip2" = xyes; then
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzopen in -lbz2" >&5
19017 $as_echo_n "checking for BZ2_bzopen in -lbz2... " >&6; }
19018 if ${ac_cv_lib_bz2_BZ2_bzopen+:} false; then :
19019 $as_echo_n "(cached) " >&6
19020 else
19021 ac_check_lib_save_LIBS=$LIBS
19022 LIBS="-lbz2 $LIBS"
19023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19024 /* end confdefs.h. */
19025
19026 /* Override any GCC internal prototype to avoid an error.
19027 Use char because int might match the return type of a GCC
19028 builtin and then its argument prototype would still apply. */
19029 #ifdef __cplusplus
19030 extern "C"
19031 #endif
19032 char BZ2_bzopen ();
19033 int
19034 main ()
19035 {
19036 return BZ2_bzopen ();
19037 ;
19038 return 0;
19039 }
19040 _ACEOF
19041 if ac_fn_c_try_link "$LINENO"; then :
19042 ac_cv_lib_bz2_BZ2_bzopen=yes
19043 else
19044 ac_cv_lib_bz2_BZ2_bzopen=no
19045 fi
19046 rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19049 fi
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzopen" >&5
19051 $as_echo "$ac_cv_lib_bz2_BZ2_bzopen" >&6; }
19052 if test "x$ac_cv_lib_bz2_BZ2_bzopen" = xyes; then :
19053 Z_LIBS="$Z_LIBS -lbz2"
19054 else
19055 as_fn_error $? "*** libbz2 is required for bzip2 support" "$LINENO" 5
19056 fi
19057
19058
19059 $as_echo "#define X_BZIP2_FONT_COMPRESSION 1" >>confdefs.h
19060
19061 fi
19062 if test "x$with_bzip2" = xyes ; then
19063 X_BZIP2_FONT_COMPRESSION_TRUE=
19064 X_BZIP2_FONT_COMPRESSION_FALSE='#'
19065 else
19066 X_BZIP2_FONT_COMPRESSION_TRUE='#'
19067 X_BZIP2_FONT_COMPRESSION_FALSE=
19068 fi
19069
19070
19071
19072 # Check whether --enable-builtins was given.
19073 if test "${enable_builtins+set}" = set; then :
19074 enableval=$enable_builtins; XFONT_BUILTINS=$enableval
19075 else
19076 XFONT_BUILTINS=yes
19077 fi
19078
19079 if test "x$XFONT_BUILTINS" = xyes ; then
19080 XFONT_BUILTINS_TRUE=
19081 XFONT_BUILTINS_FALSE='#'
19082 else
19083 XFONT_BUILTINS_TRUE='#'
19084 XFONT_BUILTINS_FALSE=
19085 fi
19086
19087 if test "x$XFONT_BUILTINS" = xyes; then
19088
19089 $as_echo "#define XFONT_BUILTINS 1" >>confdefs.h
19090
19091 XFONT_BITMAP=yes
19092 fi
19093
19094 # Check whether --enable-pcfformat was given.
19095 if test "${enable_pcfformat+set}" = set; then :
19096 enableval=$enable_pcfformat; XFONT_PCFFORMAT=$enableval
19097 else
19098 XFONT_PCFFORMAT=yes
19099 fi
19100
19101 if test "x$XFONT_PCFFORMAT" = xyes; then
19102 XFONT_PCFFORMAT_TRUE=
19103 XFONT_PCFFORMAT_FALSE='#'
19104 else
19105 XFONT_PCFFORMAT_TRUE='#'
19106 XFONT_PCFFORMAT_FALSE=
19107 fi
19108
19109 if test "x$XFONT_PCFFORMAT" = xyes; then
19110
19111 $as_echo "#define XFONT_PCFFORMAT 1" >>confdefs.h
19112
19113 XFONT_BITMAP=yes
19114 fi
19115
19116 if test "x$XFONT_PCFFORMAT" = xyes -o "x$XFONT_BUILTINS" = xyes; then
19117 XFONT_PCF_OR_BUILTIN_TRUE=
19118 XFONT_PCF_OR_BUILTIN_FALSE='#'
19119 else
19120 XFONT_PCF_OR_BUILTIN_TRUE='#'
19121 XFONT_PCF_OR_BUILTIN_FALSE=
19122 fi
19123
19124
19125 # Check whether --enable-bdfformat was given.
19126 if test "${enable_bdfformat+set}" = set; then :
19127 enableval=$enable_bdfformat; XFONT_BDFFORMAT=$enableval
19128 else
19129 XFONT_BDFFORMAT=yes
19130 fi
19131
19132 if test "x$XFONT_BDFFORMAT" = xyes; then
19133 XFONT_BDFFORMAT_TRUE=
19134 XFONT_BDFFORMAT_FALSE='#'
19135 else
19136 XFONT_BDFFORMAT_TRUE='#'
19137 XFONT_BDFFORMAT_FALSE=
19138 fi
19139
19140 if test "x$XFONT_BDFFORMAT" = xyes; then
19141
19142 $as_echo "#define XFONT_BDFFORMAT 1" >>confdefs.h
19143
19144 XFONT_BITMAP=yes
19145 fi
19146
19147 # Check whether --enable-snfformat was given.
19148 if test "${enable_snfformat+set}" = set; then :
19149 enableval=$enable_snfformat; XFONT_SNFFORMAT=$enableval
19150 else
19151 XFONT_SNFFORMAT=no
19152 fi
19153
19154 if test "x$XFONT_SNFFORMAT" = xyes; then
19155 XFONT_SNFFORMAT_TRUE=
19156 XFONT_SNFFORMAT_FALSE='#'
19157 else
19158 XFONT_SNFFORMAT_TRUE='#'
19159 XFONT_SNFFORMAT_FALSE=
19160 fi
19161
19162 if test "x$XFONT_SNFFORMAT" = xyes; then
19163
19164 $as_echo "#define XFONT_SNFFORMAT 1" >>confdefs.h
19165
19166 XFONT_BITMAP=yes
19167 fi
19168
19169 if test "x$XFONT_BITMAP" = xyes ; then
19170 XFONT_BITMAP_TRUE=
19171 XFONT_BITMAP_FALSE='#'
19172 else
19173 XFONT_BITMAP_TRUE='#'
19174 XFONT_BITMAP_FALSE=
19175 fi
19176
19177 if test "x$XFONT_BITMAP" = xyes; then
19178
19179 $as_echo "#define XFONT_BITMAP 1" >>confdefs.h
19180
19181 XFONT_FONTFILE=yes
19182 fi
19183
19184 if test "x$XFONT_FONTFILE" = xyes; then
19185 XFONT_FONTFILE_TRUE=
19186 XFONT_FONTFILE_FALSE='#'
19187 else
19188 XFONT_FONTFILE_TRUE='#'
19189 XFONT_FONTFILE_FALSE=
19190 fi
19191
19192 if test "x$XFONT_FONTFILE" = xyes; then
19193
19194 $as_echo "#define XFONT_FONTFILE 1" >>confdefs.h
19195
19196 fi
19197
19198 #
19199 # Support connection to font servers?
19200 #
19201
19202 # Check whether --enable-fc was given.
19203 if test "${enable_fc+set}" = set; then :
19204 enableval=$enable_fc; XFONT_FC=$enableval
19205 else
19206 XFONT_FC=yes
19207 fi
19208
19209 if test "x$XFONT_FC" = xyes; then
19210 XFONT_FC_TRUE=
19211 XFONT_FC_FALSE='#'
19212 else
19213 XFONT_FC_TRUE='#'
19214 XFONT_FC_FALSE=
19215 fi
19216
19217 if test "x$XFONT_FC" = xyes; then
19218
19219 $as_echo "#define XFONT_FC 1" >>confdefs.h
19220
19221 fi
19222
19223
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19225 $as_echo_n "checking for hypot in -lm... " >&6; }
19226 if ${ac_cv_lib_m_hypot+:} false; then :
19227 $as_echo_n "(cached) " >&6
19228 else
19229 ac_check_lib_save_LIBS=$LIBS
19230 LIBS="-lm $LIBS"
19231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19232 /* end confdefs.h. */
19233
19234 /* Override any GCC internal prototype to avoid an error.
19235 Use char because int might match the return type of a GCC
19236 builtin and then its argument prototype would still apply. */
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 char hypot ();
19241 int
19242 main ()
19243 {
19244 return hypot ();
19245 ;
19246 return 0;
19247 }
19248 _ACEOF
19249 if ac_fn_c_try_link "$LINENO"; then :
19250 ac_cv_lib_m_hypot=yes
19251 else
19252 ac_cv_lib_m_hypot=no
19253 fi
19254 rm -f core conftest.err conftest.$ac_objext \
19255 conftest$ac_exeext conftest.$ac_ext
19256 LIBS=$ac_check_lib_save_LIBS
19257 fi
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19259 $as_echo "$ac_cv_lib_m_hypot" >&6; }
19260 if test "x$ac_cv_lib_m_hypot" = xyes; then :
19261 MATH_LIBS=-lm
19262
19263 else
19264 as_fn_error $? "*** libm is required" "$LINENO" 5
19265 fi
19266
19267
19268
19269 pkg_failed=no
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFONT" >&5
19271 $as_echo_n "checking for XFONT... " >&6; }
19272
19273 if test -n "$XFONT_CFLAGS"; then
19274 pkg_cv_XFONT_CFLAGS="$XFONT_CFLAGS"
19275 elif test -n "$PKG_CONFIG"; then
19276 if test -n "$PKG_CONFIG" && \
19277 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19278 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19279 ac_status=$?
19280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19281 test $ac_status = 0; }; then
19282 pkg_cv_XFONT_CFLAGS=`$PKG_CONFIG --cflags "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19283 test "x$?" != "x0" && pkg_failed=yes
19284 else
19285 pkg_failed=yes
19286 fi
19287 else
19288 pkg_failed=untried
19289 fi
19290 if test -n "$XFONT_LIBS"; then
19291 pkg_cv_XFONT_LIBS="$XFONT_LIBS"
19292 elif test -n "$PKG_CONFIG"; then
19293 if test -n "$PKG_CONFIG" && \
19294 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto xtrans fontsproto >= 2.1.3 fontenc\""; } >&5
19295 ($PKG_CONFIG --exists --print-errors "xproto xtrans fontsproto >= 2.1.3 fontenc") 2>&5
19296 ac_status=$?
19297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19298 test $ac_status = 0; }; then
19299 pkg_cv_XFONT_LIBS=`$PKG_CONFIG --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>/dev/null`
19300 test "x$?" != "x0" && pkg_failed=yes
19301 else
19302 pkg_failed=yes
19303 fi
19304 else
19305 pkg_failed=untried
19306 fi
19307
19308
19309
19310 if test $pkg_failed = yes; then
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19312 $as_echo "no" >&6; }
19313
19314 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
19315 _pkg_short_errors_supported=yes
19316 else
19317 _pkg_short_errors_supported=no
19318 fi
19319 if test $_pkg_short_errors_supported = yes; then
19320 XFONT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19321 else
19322 XFONT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xproto xtrans fontsproto >= 2.1.3 fontenc" 2>&1`
19323 fi
19324 # Put the nasty error message in config.log where it belongs
19325 echo "$XFONT_PKG_ERRORS" >&5
19326
19327 as_fn_error $? "Package requirements (xproto xtrans fontsproto >= 2.1.3 fontenc) were not met:
19328
19329 $XFONT_PKG_ERRORS
19330
19331 Consider adjusting the PKG_CONFIG_PATH environment variable if you
19332 installed software in a non-standard prefix.
19333
19334 Alternatively, you may set the environment variables XFONT_CFLAGS
19335 and XFONT_LIBS to avoid the need to call pkg-config.
19336 See the pkg-config man page for more details." "$LINENO" 5
19337 elif test $pkg_failed = untried; then
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19339 $as_echo "no" >&6; }
19340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19341 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19342 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
19343 is in your PATH or set the PKG_CONFIG environment variable to the full
19344 path to pkg-config.
19345
19346 Alternatively, you may set the environment variables XFONT_CFLAGS
19347 and XFONT_LIBS to avoid the need to call pkg-config.
19348 See the pkg-config man page for more details.
19349
19350 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
19351 See \`config.log' for more details" "$LINENO" 5; }
19352 else
19353 XFONT_CFLAGS=$pkg_cv_XFONT_CFLAGS
19354 XFONT_LIBS=$pkg_cv_XFONT_LIBS
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19356 $as_echo "yes" >&6; }
19357
19358 fi
19359
19360 # Transport selection macro from xtrans.m4
19361
19362
19363 case $host_os in
19364 mingw*) unixdef="no" ;;
19365 *) unixdef="yes" ;;
19366 esac
19367 # Check whether --enable-unix-transport was given.
19368 if test "${enable_unix_transport+set}" = set; then :
19369 enableval=$enable_unix_transport; UNIXCONN=$enableval
19370 else
19371 UNIXCONN=$unixdef
19372 fi
19373
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support UNIX socket connections" >&5
19375 $as_echo_n "checking if Xtrans should support UNIX socket connections... " >&6; }
19376 if test "$UNIXCONN" = "yes"; then
19377
19378 $as_echo "#define UNIXCONN 1" >>confdefs.h
19379
19380 fi
19381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIXCONN" >&5
19382 $as_echo "$UNIXCONN" >&6; }
19383 # Check whether --enable-tcp-transport was given.
19384 if test "${enable_tcp_transport+set}" = set; then :
19385 enableval=$enable_tcp_transport; TCPCONN=$enableval
19386 else
19387 TCPCONN=yes
19388 fi
19389
19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support TCP socket connections" >&5
19391 $as_echo_n "checking if Xtrans should support TCP socket connections... " >&6; }
19392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCPCONN" >&5
19393 $as_echo "$TCPCONN" >&6; }
19394 if test "$TCPCONN" = "yes"; then
19395
19396 $as_echo "#define TCPCONN 1" >>confdefs.h
19397
19398
19399 # SVR4 hides these in libraries other than libc
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
19401 $as_echo_n "checking for library containing socket... " >&6; }
19402 if ${ac_cv_search_socket+:} false; then :
19403 $as_echo_n "(cached) " >&6
19404 else
19405 ac_func_search_save_LIBS=$LIBS
19406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19407 /* end confdefs.h. */
19408
19409 /* Override any GCC internal prototype to avoid an error.
19410 Use char because int might match the return type of a GCC
19411 builtin and then its argument prototype would still apply. */
19412 #ifdef __cplusplus
19413 extern "C"
19414 #endif
19415 char socket ();
19416 int
19417 main ()
19418 {
19419 return socket ();
19420 ;
19421 return 0;
19422 }
19423 _ACEOF
19424 for ac_lib in '' socket; do
19425 if test -z "$ac_lib"; then
19426 ac_res="none required"
19427 else
19428 ac_res=-l$ac_lib
19429 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19430 fi
19431 if ac_fn_c_try_link "$LINENO"; then :
19432 ac_cv_search_socket=$ac_res
19433 fi
19434 rm -f core conftest.err conftest.$ac_objext \
19435 conftest$ac_exeext
19436 if ${ac_cv_search_socket+:} false; then :
19437 break
19438 fi
19439 done
19440 if ${ac_cv_search_socket+:} false; then :
19441
19442 else
19443 ac_cv_search_socket=no
19444 fi
19445 rm conftest.$ac_ext
19446 LIBS=$ac_func_search_save_LIBS
19447 fi
19448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
19449 $as_echo "$ac_cv_search_socket" >&6; }
19450 ac_res=$ac_cv_search_socket
19451 if test "$ac_res" != no; then :
19452 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19453
19454 fi
19455
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
19457 $as_echo_n "checking for library containing gethostbyname... " >&6; }
19458 if ${ac_cv_search_gethostbyname+:} false; then :
19459 $as_echo_n "(cached) " >&6
19460 else
19461 ac_func_search_save_LIBS=$LIBS
19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19463 /* end confdefs.h. */
19464
19465 /* Override any GCC internal prototype to avoid an error.
19466 Use char because int might match the return type of a GCC
19467 builtin and then its argument prototype would still apply. */
19468 #ifdef __cplusplus
19469 extern "C"
19470 #endif
19471 char gethostbyname ();
19472 int
19473 main ()
19474 {
19475 return gethostbyname ();
19476 ;
19477 return 0;
19478 }
19479 _ACEOF
19480 for ac_lib in '' nsl; do
19481 if test -z "$ac_lib"; then
19482 ac_res="none required"
19483 else
19484 ac_res=-l$ac_lib
19485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19486 fi
19487 if ac_fn_c_try_link "$LINENO"; then :
19488 ac_cv_search_gethostbyname=$ac_res
19489 fi
19490 rm -f core conftest.err conftest.$ac_objext \
19491 conftest$ac_exeext
19492 if ${ac_cv_search_gethostbyname+:} false; then :
19493 break
19494 fi
19495 done
19496 if ${ac_cv_search_gethostbyname+:} false; then :
19497
19498 else
19499 ac_cv_search_gethostbyname=no
19500 fi
19501 rm conftest.$ac_ext
19502 LIBS=$ac_func_search_save_LIBS
19503 fi
19504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
19505 $as_echo "$ac_cv_search_gethostbyname" >&6; }
19506 ac_res=$ac_cv_search_gethostbyname
19507 if test "$ac_res" != no; then :
19508 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19509
19510 fi
19511
19512 if test "$ac_cv_search_socket$ac_cv_search_gethostbyname" = "nono"; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lws2_32" >&5
19514 $as_echo_n "checking for main in -lws2_32... " >&6; }
19515 if ${ac_cv_lib_ws2_32_main+:} false; then :
19516 $as_echo_n "(cached) " >&6
19517 else
19518 ac_check_lib_save_LIBS=$LIBS
19519 LIBS="-lws2_32 $LIBS"
19520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19521 /* end confdefs.h. */
19522
19523
19524 int
19525 main ()
19526 {
19527 return main ();
19528 ;
19529 return 0;
19530 }
19531 _ACEOF
19532 if ac_fn_c_try_link "$LINENO"; then :
19533 ac_cv_lib_ws2_32_main=yes
19534 else
19535 ac_cv_lib_ws2_32_main=no
19536 fi
19537 rm -f core conftest.err conftest.$ac_objext \
19538 conftest$ac_exeext conftest.$ac_ext
19539 LIBS=$ac_check_lib_save_LIBS
19540 fi
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ws2_32_main" >&5
19542 $as_echo "$ac_cv_lib_ws2_32_main" >&6; }
19543 if test "x$ac_cv_lib_ws2_32_main" = xyes; then :
19544 cat >>confdefs.h <<_ACEOF
19545 #define HAVE_LIBWS2_32 1
19546 _ACEOF
19547
19548 LIBS="-lws2_32 $LIBS"
19549
19550 fi
19551
19552 fi
19553
19554 # Needs to come after above checks for libsocket & libnsl for SVR4 systems
19555 # Check whether --enable-ipv6 was given.
19556 if test "${enable_ipv6+set}" = set; then :
19557 enableval=$enable_ipv6; IPV6CONN=$enableval
19558 else
19559 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
19560 if test "x$ac_cv_func_getaddrinfo" = xyes; then :
19561 IPV6CONN=yes
19562 else
19563 IPV6CONN=no
19564 fi
19565
19566 fi
19567
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IPv6 support should be built" >&5
19569 $as_echo_n "checking if IPv6 support should be built... " >&6; }
19570 if test "$IPV6CONN" = "yes"; then
19571
19572 $as_echo "#define IPv6 1" >>confdefs.h
19573
19574 fi
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $IPV6CONN" >&5
19576 $as_echo "$IPV6CONN" >&6; }
19577
19578 # 4.3BSD-Reno added a new member to struct sockaddr_in
19579 ac_fn_c_check_member "$LINENO" "struct sockaddr_in" "sin_len" "ac_cv_member_struct_sockaddr_in_sin_len" "
19580 #include <sys/types.h>
19581 #include <sys/socket.h>
19582 #include <netinet/in.h>
19583
19584 "
19585 if test "x$ac_cv_member_struct_sockaddr_in_sin_len" = xyes; then :
19586
19587 $as_echo "#define BSD44SOCKETS 1" >>confdefs.h
19588
19589 fi
19590
19591
19592 # POSIX.1g changed the type of pointer passed to getsockname/getpeername/etc.
19593 ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "
19594 $ac_includes_default
19595 #include <sys/socket.h>
19596 "
19597 if test "x$ac_cv_type_socklen_t" = xyes; then :
19598
19599 cat >>confdefs.h <<_ACEOF
19600 #define HAVE_SOCKLEN_T 1
19601 _ACEOF
19602
19603
19604 fi
19605
19606
19607 # XPG4v2/UNIX95 added msg_control - check to see if we need to define
19608 # _XOPEN_SOURCE to get it (such as on Solaris)
19609 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19610 $ac_includes_default
19611 #include <sys/socket.h>
19612
19613 "
19614 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19615
19616 fi
19617
19618 # First try for Solaris in C99 compliant mode, which requires XPG6/UNIX03
19619 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19620 unset ac_cv_member_struct_msghdr_msg_control
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=600" >&5
19622 $as_echo "$as_me: trying again with _XOPEN_SOURCE=600" >&6;}
19623 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19624 #define _XOPEN_SOURCE 600
19625 $ac_includes_default
19626 #include <sys/socket.h>
19627
19628 "
19629 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19630
19631 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
19632
19633
19634 fi
19635
19636 fi
19637 # If that didn't work, fall back to XPG5/UNIX98 with C89
19638 if test "x$ac_cv_member_struct_msghdr_msg_control" = xno; then
19639 unset ac_cv_member_struct_msghdr_msg_control
19640 { $as_echo "$as_me:${as_lineno-$LINENO}: trying again with _XOPEN_SOURCE=500" >&5
19641 $as_echo "$as_me: trying again with _XOPEN_SOURCE=500" >&6;}
19642 ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_control" "ac_cv_member_struct_msghdr_msg_control" "
19643 #define _XOPEN_SOURCE 500
19644 $ac_includes_default
19645 #include <sys/socket.h>
19646
19647 "
19648 if test "x$ac_cv_member_struct_msghdr_msg_control" = xyes; then :
19649
19650 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
19651
19652
19653 fi
19654
19655 fi
19656
19657
19658
19659 fi
19660 case $host_os in
19661 solaris*|sco*|sysv4*) localdef="yes" ;;
19662 *) localdef="no" ;;
19663 esac
19664 # Check whether --enable-local-transport was given.
19665 if test "${enable_local_transport+set}" = set; then :
19666 enableval=$enable_local_transport; LOCALCONN=$enableval
19667 else
19668 LOCALCONN=$localdef
19669 fi
19670
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Xtrans should support os-specific local connections" >&5
19672 $as_echo_n "checking if Xtrans should support os-specific local connections... " >&6; }
19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LOCALCONN" >&5
19674 $as_echo "$LOCALCONN" >&6; }
19675 if test "$LOCALCONN" = "yes"; then
19676
19677 $as_echo "#define LOCALCONN 1" >>confdefs.h
19678
19679 fi
19680
19681
19682
19683 case $host_os in
19684 linux*)
19685 OS_CFLAGS="-D_XOPEN_SOURCE"
19686 ;;
19687 *)
19688 OS_CFLAGS=
19689 ;;
19690 esac
19691 OS_CFLAGS="$OS_CFLAGS $GCC_CFLAGS"
19692
19693
19694
19695 ac_config_files="$ac_config_files Makefile doc/Makefile xfont2.pc"
19696
19697 cat >confcache <<\_ACEOF
19698 # This file is a shell script that caches the results of configure
19699 # tests run on this system so they can be shared between configure
19700 # scripts and configure runs, see configure's option --config-cache.
19701 # It is not useful on other systems. If it contains results you don't
19702 # want to keep, you may remove or edit it.
19703 #
19704 # config.status only pays attention to the cache file if you give it
19705 # the --recheck option to rerun configure.
19706 #
19707 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19708 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19709 # following values.
19710
19711 _ACEOF
19712
19713 # The following way of writing the cache mishandles newlines in values,
19714 # but we know of no workaround that is simple, portable, and efficient.
19715 # So, we kill variables containing newlines.
19716 # Ultrix sh set writes to stderr and can't be redirected directly,
19717 # and sets the high bit in the cache file unless we assign to the vars.
19718 (
19719 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19720 eval ac_val=\$$ac_var
19721 case $ac_val in #(
19722 *${as_nl}*)
19723 case $ac_var in #(
19724 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19725 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19726 esac
19727 case $ac_var in #(
19728 _ | IFS | as_nl) ;; #(
19729 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19730 *) { eval $ac_var=; unset $ac_var;} ;;
19731 esac ;;
19732 esac
19733 done
19734
19735 (set) 2>&1 |
19736 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19737 *${as_nl}ac_space=\ *)
19738 # `set' does not quote correctly, so add quotes: double-quote
19739 # substitution turns \\\\ into \\, and sed turns \\ into \.
19740 sed -n \
19741 "s/'/'\\\\''/g;
19742 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19743 ;; #(
19744 *)
19745 # `set' quotes correctly as required by POSIX, so do not add quotes.
19746 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19747 ;;
19748 esac |
19749 sort
19750 ) |
19751 sed '
19752 /^ac_cv_env_/b end
19753 t clear
19754 :clear
19755 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19756 t end
19757 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19758 :end' >>confcache
19759 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19760 if test -w "$cache_file"; then
19761 if test "x$cache_file" != "x/dev/null"; then
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19763 $as_echo "$as_me: updating cache $cache_file" >&6;}
19764 if test ! -f "$cache_file" || test -h "$cache_file"; then
19765 cat confcache >"$cache_file"
19766 else
19767 case $cache_file in #(
19768 */* | ?:*)
19769 mv -f confcache "$cache_file"$$ &&
19770 mv -f "$cache_file"$$ "$cache_file" ;; #(
19771 *)
19772 mv -f confcache "$cache_file" ;;
19773 esac
19774 fi
19775 fi
19776 else
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19778 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19779 fi
19780 fi
19781 rm -f confcache
19782
19783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19784 # Let make expand exec_prefix.
19785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19786
19787 DEFS=-DHAVE_CONFIG_H
19788
19789 ac_libobjs=
19790 ac_ltlibobjs=
19791 U=
19792 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19793 # 1. Remove the extension, and $U if already installed.
19794 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19795 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19796 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19797 # will be set to the directory where LIBOBJS objects are built.
19798 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19799 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19800 done
19801 LIBOBJS=$ac_libobjs
19802
19803 LTLIBOBJS=$ac_ltlibobjs
19804
19805
19806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19807 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19808 if test -n "$am_sleep_pid"; then
19809 # Hide warnings about reused PIDs.
19810 wait $am_sleep_pid 2>/dev/null
19811 fi
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19813 $as_echo "done" >&6; }
19814 if test -n "$EXEEXT"; then
19815 am__EXEEXT_TRUE=
19816 am__EXEEXT_FALSE='#'
19817 else
19818 am__EXEEXT_TRUE='#'
19819 am__EXEEXT_FALSE=
19820 fi
19821
19822 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19823 as_fn_error $? "conditional \"AMDEP\" was never defined.
19824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19825 fi
19826 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19827 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19829 fi
19830 if test -z "${ENABLE_DEVEL_DOCS_TRUE}" && test -z "${ENABLE_DEVEL_DOCS_FALSE}"; then
19831 as_fn_error $? "conditional \"ENABLE_DEVEL_DOCS\" was never defined.
19832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19833 fi
19834 if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then
19835 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined.
19836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19837 fi
19838 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19839 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19841 fi
19842 if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then
19843 as_fn_error $? "conditional \"HAVE_FOP\" was never defined.
19844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19845 fi
19846 if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then
19847 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined.
19848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19849 fi
19850 if test -z "${XFONT_FREETYPE_TRUE}" && test -z "${XFONT_FREETYPE_FALSE}"; then
19851 as_fn_error $? "conditional \"XFONT_FREETYPE\" was never defined.
19852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19853 fi
19854 if test -z "${X_BZIP2_FONT_COMPRESSION_TRUE}" && test -z "${X_BZIP2_FONT_COMPRESSION_FALSE}"; then
19855 as_fn_error $? "conditional \"X_BZIP2_FONT_COMPRESSION\" was never defined.
19856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19857 fi
19858 if test -z "${XFONT_BUILTINS_TRUE}" && test -z "${XFONT_BUILTINS_FALSE}"; then
19859 as_fn_error $? "conditional \"XFONT_BUILTINS\" was never defined.
19860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19861 fi
19862 if test -z "${XFONT_PCFFORMAT_TRUE}" && test -z "${XFONT_PCFFORMAT_FALSE}"; then
19863 as_fn_error $? "conditional \"XFONT_PCFFORMAT\" was never defined.
19864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19865 fi
19866 if test -z "${XFONT_PCF_OR_BUILTIN_TRUE}" && test -z "${XFONT_PCF_OR_BUILTIN_FALSE}"; then
19867 as_fn_error $? "conditional \"XFONT_PCF_OR_BUILTIN\" was never defined.
19868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19869 fi
19870 if test -z "${XFONT_BDFFORMAT_TRUE}" && test -z "${XFONT_BDFFORMAT_FALSE}"; then
19871 as_fn_error $? "conditional \"XFONT_BDFFORMAT\" was never defined.
19872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19873 fi
19874 if test -z "${XFONT_SNFFORMAT_TRUE}" && test -z "${XFONT_SNFFORMAT_FALSE}"; then
19875 as_fn_error $? "conditional \"XFONT_SNFFORMAT\" was never defined.
19876 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19877 fi
19878 if test -z "${XFONT_BITMAP_TRUE}" && test -z "${XFONT_BITMAP_FALSE}"; then
19879 as_fn_error $? "conditional \"XFONT_BITMAP\" was never defined.
19880 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19881 fi
19882 if test -z "${XFONT_FONTFILE_TRUE}" && test -z "${XFONT_FONTFILE_FALSE}"; then
19883 as_fn_error $? "conditional \"XFONT_FONTFILE\" was never defined.
19884 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19885 fi
19886 if test -z "${XFONT_FC_TRUE}" && test -z "${XFONT_FC_FALSE}"; then
19887 as_fn_error $? "conditional \"XFONT_FC\" was never defined.
19888 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19889 fi
19890
19891 : "${CONFIG_STATUS=./config.status}"
19892 ac_write_fail=0
19893 ac_clean_files_save=$ac_clean_files
19894 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19896 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19897 as_write_fail=0
19898 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19899 #! $SHELL
19900 # Generated by $as_me.
19901 # Run this file to recreate the current configuration.
19902 # Compiler output produced by configure, useful for debugging
19903 # configure, is in config.log if it exists.
19904
19905 debug=false
19906 ac_cs_recheck=false
19907 ac_cs_silent=false
19908
19909 SHELL=\${CONFIG_SHELL-$SHELL}
19910 export SHELL
19911 _ASEOF
19912 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19913 ## -------------------- ##
19914 ## M4sh Initialization. ##
19915 ## -------------------- ##
19916
19917 # Be more Bourne compatible
19918 DUALCASE=1; export DUALCASE # for MKS sh
19919 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19920 emulate sh
19921 NULLCMD=:
19922 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19923 # is contrary to our usage. Disable this feature.
19924 alias -g '${1+"$@"}'='"$@"'
19925 setopt NO_GLOB_SUBST
19926 else
19927 case `(set -o) 2>/dev/null` in #(
19928 *posix*) :
19929 set -o posix ;; #(
19930 *) :
19931 ;;
19932 esac
19933 fi
19934
19935
19936 as_nl='
19937 '
19938 export as_nl
19939 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19940 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19941 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19942 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19943 # Prefer a ksh shell builtin over an external printf program on Solaris,
19944 # but without wasting forks for bash or zsh.
19945 if test -z "$BASH_VERSION$ZSH_VERSION" \
19946 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19947 as_echo='print -r --'
19948 as_echo_n='print -rn --'
19949 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19950 as_echo='printf %s\n'
19951 as_echo_n='printf %s'
19952 else
19953 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19954 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19955 as_echo_n='/usr/ucb/echo -n'
19956 else
19957 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19958 as_echo_n_body='eval
19959 arg=$1;
19960 case $arg in #(
19961 *"$as_nl"*)
19962 expr "X$arg" : "X\\(.*\\)$as_nl";
19963 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19964 esac;
19965 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19966 '
19967 export as_echo_n_body
19968 as_echo_n='sh -c $as_echo_n_body as_echo'
19969 fi
19970 export as_echo_body
19971 as_echo='sh -c $as_echo_body as_echo'
19972 fi
19973
19974 # The user is always right.
19975 if test "${PATH_SEPARATOR+set}" != set; then
19976 PATH_SEPARATOR=:
19977 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19978 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19979 PATH_SEPARATOR=';'
19980 }
19981 fi
19982
19983
19984 # IFS
19985 # We need space, tab and new line, in precisely that order. Quoting is
19986 # there to prevent editors from complaining about space-tab.
19987 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19988 # splitting by setting IFS to empty value.)
19989 IFS=" "" $as_nl"
19990
19991 # Find who we are. Look in the path if we contain no directory separator.
19992 as_myself=
19993 case $0 in #((
19994 *[\\/]* ) as_myself=$0 ;;
19995 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19996 for as_dir in $PATH
19997 do
19998 IFS=$as_save_IFS
19999 test -z "$as_dir" && as_dir=.
20000 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20001 done
20002 IFS=$as_save_IFS
20003
20004 ;;
20005 esac
20006 # We did not find ourselves, most probably we were run as `sh COMMAND'
20007 # in which case we are not to be found in the path.
20008 if test "x$as_myself" = x; then
20009 as_myself=$0
20010 fi
20011 if test ! -f "$as_myself"; then
20012 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20013 exit 1
20014 fi
20015
20016 # Unset variables that we do not need and which cause bugs (e.g. in
20017 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20018 # suppresses any "Segmentation fault" message there. '((' could
20019 # trigger a bug in pdksh 5.2.14.
20020 for as_var in BASH_ENV ENV MAIL MAILPATH
20021 do eval test x\${$as_var+set} = xset \
20022 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20023 done
20024 PS1='$ '
20025 PS2='> '
20026 PS4='+ '
20027
20028 # NLS nuisances.
20029 LC_ALL=C
20030 export LC_ALL
20031 LANGUAGE=C
20032 export LANGUAGE
20033
20034 # CDPATH.
20035 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20036
20037
20038 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20039 # ----------------------------------------
20040 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20041 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20042 # script with STATUS, using 1 if that was 0.
20043 as_fn_error ()
20044 {
20045 as_status=$1; test $as_status -eq 0 && as_status=1
20046 if test "$4"; then
20047 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20048 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20049 fi
20050 $as_echo "$as_me: error: $2" >&2
20051 as_fn_exit $as_status
20052 } # as_fn_error
20053
20054
20055 # as_fn_set_status STATUS
20056 # -----------------------
20057 # Set $? to STATUS, without forking.
20058 as_fn_set_status ()
20059 {
20060 return $1
20061 } # as_fn_set_status
20062
20063 # as_fn_exit STATUS
20064 # -----------------
20065 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20066 as_fn_exit ()
20067 {
20068 set +e
20069 as_fn_set_status $1
20070 exit $1
20071 } # as_fn_exit
20072
20073 # as_fn_unset VAR
20074 # ---------------
20075 # Portably unset VAR.
20076 as_fn_unset ()
20077 {
20078 { eval $1=; unset $1;}
20079 }
20080 as_unset=as_fn_unset
20081 # as_fn_append VAR VALUE
20082 # ----------------------
20083 # Append the text in VALUE to the end of the definition contained in VAR. Take
20084 # advantage of any shell optimizations that allow amortized linear growth over
20085 # repeated appends, instead of the typical quadratic growth present in naive
20086 # implementations.
20087 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20088 eval 'as_fn_append ()
20089 {
20090 eval $1+=\$2
20091 }'
20092 else
20093 as_fn_append ()
20094 {
20095 eval $1=\$$1\$2
20096 }
20097 fi # as_fn_append
20098
20099 # as_fn_arith ARG...
20100 # ------------------
20101 # Perform arithmetic evaluation on the ARGs, and store the result in the
20102 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20103 # must be portable across $(()) and expr.
20104 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20105 eval 'as_fn_arith ()
20106 {
20107 as_val=$(( $* ))
20108 }'
20109 else
20110 as_fn_arith ()
20111 {
20112 as_val=`expr "$@" || test $? -eq 1`
20113 }
20114 fi # as_fn_arith
20115
20116
20117 if expr a : '\(a\)' >/dev/null 2>&1 &&
20118 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20119 as_expr=expr
20120 else
20121 as_expr=false
20122 fi
20123
20124 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20125 as_basename=basename
20126 else
20127 as_basename=false
20128 fi
20129
20130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20131 as_dirname=dirname
20132 else
20133 as_dirname=false
20134 fi
20135
20136 as_me=`$as_basename -- "$0" ||
20137 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20138 X"$0" : 'X\(//\)$' \| \
20139 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20140 $as_echo X/"$0" |
20141 sed '/^.*\/\([^/][^/]*\)\/*$/{
20142 s//\1/
20143 q
20144 }
20145 /^X\/\(\/\/\)$/{
20146 s//\1/
20147 q
20148 }
20149 /^X\/\(\/\).*/{
20150 s//\1/
20151 q
20152 }
20153 s/.*/./; q'`
20154
20155 # Avoid depending upon Character Ranges.
20156 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20157 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20158 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20159 as_cr_digits='0123456789'
20160 as_cr_alnum=$as_cr_Letters$as_cr_digits
20161
20162 ECHO_C= ECHO_N= ECHO_T=
20163 case `echo -n x` in #(((((
20164 -n*)
20165 case `echo 'xy\c'` in
20166 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20167 xy) ECHO_C='\c';;
20168 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20169 ECHO_T=' ';;
20170 esac;;
20171 *)
20172 ECHO_N='-n';;
20173 esac
20174
20175 rm -f conf$$ conf$$.exe conf$$.file
20176 if test -d conf$$.dir; then
20177 rm -f conf$$.dir/conf$$.file
20178 else
20179 rm -f conf$$.dir
20180 mkdir conf$$.dir 2>/dev/null
20181 fi
20182 if (echo >conf$$.file) 2>/dev/null; then
20183 if ln -s conf$$.file conf$$ 2>/dev/null; then
20184 as_ln_s='ln -s'
20185 # ... but there are two gotchas:
20186 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20187 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20188 # In both cases, we have to default to `cp -pR'.
20189 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20190 as_ln_s='cp -pR'
20191 elif ln conf$$.file conf$$ 2>/dev/null; then
20192 as_ln_s=ln
20193 else
20194 as_ln_s='cp -pR'
20195 fi
20196 else
20197 as_ln_s='cp -pR'
20198 fi
20199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20200 rmdir conf$$.dir 2>/dev/null
20201
20202
20203 # as_fn_mkdir_p
20204 # -------------
20205 # Create "$as_dir" as a directory, including parents if necessary.
20206 as_fn_mkdir_p ()
20207 {
20208
20209 case $as_dir in #(
20210 -*) as_dir=./$as_dir;;
20211 esac
20212 test -d "$as_dir" || eval $as_mkdir_p || {
20213 as_dirs=
20214 while :; do
20215 case $as_dir in #(
20216 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20217 *) as_qdir=$as_dir;;
20218 esac
20219 as_dirs="'$as_qdir' $as_dirs"
20220 as_dir=`$as_dirname -- "$as_dir" ||
20221 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20222 X"$as_dir" : 'X\(//\)[^/]' \| \
20223 X"$as_dir" : 'X\(//\)$' \| \
20224 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20225 $as_echo X"$as_dir" |
20226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20227 s//\1/
20228 q
20229 }
20230 /^X\(\/\/\)[^/].*/{
20231 s//\1/
20232 q
20233 }
20234 /^X\(\/\/\)$/{
20235 s//\1/
20236 q
20237 }
20238 /^X\(\/\).*/{
20239 s//\1/
20240 q
20241 }
20242 s/.*/./; q'`
20243 test -d "$as_dir" && break
20244 done
20245 test -z "$as_dirs" || eval "mkdir $as_dirs"
20246 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20247
20248
20249 } # as_fn_mkdir_p
20250 if mkdir -p . 2>/dev/null; then
20251 as_mkdir_p='mkdir -p "$as_dir"'
20252 else
20253 test -d ./-p && rmdir ./-p
20254 as_mkdir_p=false
20255 fi
20256
20257
20258 # as_fn_executable_p FILE
20259 # -----------------------
20260 # Test if FILE is an executable regular file.
20261 as_fn_executable_p ()
20262 {
20263 test -f "$1" && test -x "$1"
20264 } # as_fn_executable_p
20265 as_test_x='test -x'
20266 as_executable_p=as_fn_executable_p
20267
20268 # Sed expression to map a string onto a valid CPP name.
20269 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20270
20271 # Sed expression to map a string onto a valid variable name.
20272 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20273
20274
20275 exec 6>&1
20276 ## ----------------------------------- ##
20277 ## Main body of $CONFIG_STATUS script. ##
20278 ## ----------------------------------- ##
20279 _ASEOF
20280 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20281
20282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20283 # Save the log message, to keep $0 and so on meaningful, and to
20284 # report actual input values of CONFIG_FILES etc. instead of their
20285 # values after options handling.
20286 ac_log="
20287 This file was extended by libXfont2 $as_me 2.0.1, which was
20288 generated by GNU Autoconf 2.69. Invocation command line was
20289
20290 CONFIG_FILES = $CONFIG_FILES
20291 CONFIG_HEADERS = $CONFIG_HEADERS
20292 CONFIG_LINKS = $CONFIG_LINKS
20293 CONFIG_COMMANDS = $CONFIG_COMMANDS
20294 $ $0 $@
20295
20296 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20297 "
20298
20299 _ACEOF
20300
20301 case $ac_config_files in *"
20302 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20303 esac
20304
20305 case $ac_config_headers in *"
20306 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20307 esac
20308
20309
20310 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20311 # Files that config.status was made for.
20312 config_files="$ac_config_files"
20313 config_headers="$ac_config_headers"
20314 config_commands="$ac_config_commands"
20315
20316 _ACEOF
20317
20318 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20319 ac_cs_usage="\
20320 \`$as_me' instantiates files and other configuration actions
20321 from templates according to the current configuration. Unless the files
20322 and actions are specified as TAGs, all are instantiated by default.
20323
20324 Usage: $0 [OPTION]... [TAG]...
20325
20326 -h, --help print this help, then exit
20327 -V, --version print version number and configuration settings, then exit
20328 --config print configuration, then exit
20329 -q, --quiet, --silent
20330 do not print progress messages
20331 -d, --debug don't remove temporary files
20332 --recheck update $as_me by reconfiguring in the same conditions
20333 --file=FILE[:TEMPLATE]
20334 instantiate the configuration file FILE
20335 --header=FILE[:TEMPLATE]
20336 instantiate the configuration header FILE
20337
20338 Configuration files:
20339 $config_files
20340
20341 Configuration headers:
20342 $config_headers
20343
20344 Configuration commands:
20345 $config_commands
20346
20347 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
20348
20349 _ACEOF
20350 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20351 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20352 ac_cs_version="\\
20353 libXfont2 config.status 2.0.1
20354 configured by $0, generated by GNU Autoconf 2.69,
20355 with options \\"\$ac_cs_config\\"
20356
20357 Copyright (C) 2012 Free Software Foundation, Inc.
20358 This config.status script is free software; the Free Software Foundation
20359 gives unlimited permission to copy, distribute and modify it."
20360
20361 ac_pwd='$ac_pwd'
20362 srcdir='$srcdir'
20363 INSTALL='$INSTALL'
20364 MKDIR_P='$MKDIR_P'
20365 AWK='$AWK'
20366 test -n "\$AWK" || AWK=awk
20367 _ACEOF
20368
20369 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20370 # The default lists apply if the user does not specify any file.
20371 ac_need_defaults=:
20372 while test $# != 0
20373 do
20374 case $1 in
20375 --*=?*)
20376 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20377 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20378 ac_shift=:
20379 ;;
20380 --*=)
20381 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20382 ac_optarg=
20383 ac_shift=:
20384 ;;
20385 *)
20386 ac_option=$1
20387 ac_optarg=$2
20388 ac_shift=shift
20389 ;;
20390 esac
20391
20392 case $ac_option in
20393 # Handling of the options.
20394 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20395 ac_cs_recheck=: ;;
20396 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20397 $as_echo "$ac_cs_version"; exit ;;
20398 --config | --confi | --conf | --con | --co | --c )
20399 $as_echo "$ac_cs_config"; exit ;;
20400 --debug | --debu | --deb | --de | --d | -d )
20401 debug=: ;;
20402 --file | --fil | --fi | --f )
20403 $ac_shift
20404 case $ac_optarg in
20405 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20406 '') as_fn_error $? "missing file argument" ;;
20407 esac
20408 as_fn_append CONFIG_FILES " '$ac_optarg'"
20409 ac_need_defaults=false;;
20410 --header | --heade | --head | --hea )
20411 $ac_shift
20412 case $ac_optarg in
20413 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20414 esac
20415 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20416 ac_need_defaults=false;;
20417 --he | --h)
20418 # Conflict between --help and --header
20419 as_fn_error $? "ambiguous option: \`$1'
20420 Try \`$0 --help' for more information.";;
20421 --help | --hel | -h )
20422 $as_echo "$ac_cs_usage"; exit ;;
20423 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20424 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20425 ac_cs_silent=: ;;
20426
20427 # This is an error.
20428 -*) as_fn_error $? "unrecognized option: \`$1'
20429 Try \`$0 --help' for more information." ;;
20430
20431 *) as_fn_append ac_config_targets " $1"
20432 ac_need_defaults=false ;;
20433
20434 esac
20435 shift
20436 done
20437
20438 ac_configure_extra_args=
20439
20440 if $ac_cs_silent; then
20441 exec 6>/dev/null
20442 ac_configure_extra_args="$ac_configure_extra_args --silent"
20443 fi
20444
20445 _ACEOF
20446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20447 if \$ac_cs_recheck; then
20448 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20449 shift
20450 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20451 CONFIG_SHELL='$SHELL'
20452 export CONFIG_SHELL
20453 exec "\$@"
20454 fi
20455
20456 _ACEOF
20457 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20458 exec 5>>config.log
20459 {
20460 echo
20461 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20462 ## Running $as_me. ##
20463 _ASBOX
20464 $as_echo "$ac_log"
20465 } >&5
20466
20467 _ACEOF
20468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20469 #
20470 # INIT-COMMANDS
20471 #
20472 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20473
20474
20475 # The HP-UX ksh and POSIX shell print the target directory to stdout
20476 # if CDPATH is set.
20477 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20478
20479 sed_quote_subst='$sed_quote_subst'
20480 double_quote_subst='$double_quote_subst'
20481 delay_variable_subst='$delay_variable_subst'
20482 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20483 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20484 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20485 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20486 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20487 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20488 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20489 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20490 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20491 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20492 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20493 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20494 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20495 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20496 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20497 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20498 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20499 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20500 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20501 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20502 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20503 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20504 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20505 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20506 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20507 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20508 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20509 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20510 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20511 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20512 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20513 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20514 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20515 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20516 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20517 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20518 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20519 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20520 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20521 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20522 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20523 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20524 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20525 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20526 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20527 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20528 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20529 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20530 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20531 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20532 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20533 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20534 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20535 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20536 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20537 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20538 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"`'
20539 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20540 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20541 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20542 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20543 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20544 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20545 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20546 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20547 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20548 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20549 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20550 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20551 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20552 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20553 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20554 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20555 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20556 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20557 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20558 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20559 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20560 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20561 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20562 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20563 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20564 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20565 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20566 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20567 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20568 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20569 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20570 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20571 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20572 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20573 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20574 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20575 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20576 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20577 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20578 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20579 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20580 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20581 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20582 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20583 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20584 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20585 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20586 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20587 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20588 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20589 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20590 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20591 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20592 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20593 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20594 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20595 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20596 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20597 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20598 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20599 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20600 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20601 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20602 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20603 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20604 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20605 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20606 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20607 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20608 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20609 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20610 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20611 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20612
20613 LTCC='$LTCC'
20614 LTCFLAGS='$LTCFLAGS'
20615 compiler='$compiler_DEFAULT'
20616
20617 # A function that is used when there is no print builtin or printf.
20618 func_fallback_echo ()
20619 {
20620 eval 'cat <<_LTECHO_EOF
20621 \$1
20622 _LTECHO_EOF'
20623 }
20624
20625 # Quote evaled strings.
20626 for var in SHELL \
20627 ECHO \
20628 PATH_SEPARATOR \
20629 SED \
20630 GREP \
20631 EGREP \
20632 FGREP \
20633 LD \
20634 NM \
20635 LN_S \
20636 lt_SP2NL \
20637 lt_NL2SP \
20638 reload_flag \
20639 OBJDUMP \
20640 deplibs_check_method \
20641 file_magic_cmd \
20642 file_magic_glob \
20643 want_nocaseglob \
20644 DLLTOOL \
20645 sharedlib_from_linklib_cmd \
20646 AR \
20647 AR_FLAGS \
20648 archiver_list_spec \
20649 STRIP \
20650 RANLIB \
20651 CC \
20652 CFLAGS \
20653 compiler \
20654 lt_cv_sys_global_symbol_pipe \
20655 lt_cv_sys_global_symbol_to_cdecl \
20656 lt_cv_sys_global_symbol_to_c_name_address \
20657 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20658 nm_file_list_spec \
20659 lt_prog_compiler_no_builtin_flag \
20660 lt_prog_compiler_pic \
20661 lt_prog_compiler_wl \
20662 lt_prog_compiler_static \
20663 lt_cv_prog_compiler_c_o \
20664 need_locks \
20665 MANIFEST_TOOL \
20666 DSYMUTIL \
20667 NMEDIT \
20668 LIPO \
20669 OTOOL \
20670 OTOOL64 \
20671 shrext_cmds \
20672 export_dynamic_flag_spec \
20673 whole_archive_flag_spec \
20674 compiler_needs_object \
20675 with_gnu_ld \
20676 allow_undefined_flag \
20677 no_undefined_flag \
20678 hardcode_libdir_flag_spec \
20679 hardcode_libdir_separator \
20680 exclude_expsyms \
20681 include_expsyms \
20682 file_list_spec \
20683 variables_saved_for_relink \
20684 libname_spec \
20685 library_names_spec \
20686 soname_spec \
20687 install_override_mode \
20688 finish_eval \
20689 old_striplib \
20690 striplib; do
20691 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20692 *[\\\\\\\`\\"\\\$]*)
20693 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20694 ;;
20695 *)
20696 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20697 ;;
20698 esac
20699 done
20700
20701 # Double-quote double-evaled strings.
20702 for var in reload_cmds \
20703 old_postinstall_cmds \
20704 old_postuninstall_cmds \
20705 old_archive_cmds \
20706 extract_expsyms_cmds \
20707 old_archive_from_new_cmds \
20708 old_archive_from_expsyms_cmds \
20709 archive_cmds \
20710 archive_expsym_cmds \
20711 module_cmds \
20712 module_expsym_cmds \
20713 export_symbols_cmds \
20714 prelink_cmds \
20715 postlink_cmds \
20716 postinstall_cmds \
20717 postuninstall_cmds \
20718 finish_cmds \
20719 sys_lib_search_path_spec \
20720 sys_lib_dlsearch_path_spec; do
20721 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20722 *[\\\\\\\`\\"\\\$]*)
20723 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20724 ;;
20725 *)
20726 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20727 ;;
20728 esac
20729 done
20730
20731 ac_aux_dir='$ac_aux_dir'
20732 xsi_shell='$xsi_shell'
20733 lt_shell_append='$lt_shell_append'
20734
20735 # See if we are running on zsh, and set the options which allow our
20736 # commands through without removal of \ escapes INIT.
20737 if test -n "\${ZSH_VERSION+set}" ; then
20738 setopt NO_GLOB_SUBST
20739 fi
20740
20741
20742 PACKAGE='$PACKAGE'
20743 VERSION='$VERSION'
20744 TIMESTAMP='$TIMESTAMP'
20745 RM='$RM'
20746 ofile='$ofile'
20747
20748
20749
20750
20751 _ACEOF
20752
20753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20754
20755 # Handling of arguments.
20756 for ac_config_target in $ac_config_targets
20757 do
20758 case $ac_config_target in
20759 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20760 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20761 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20762 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20763 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
20764 "xfont2.pc") CONFIG_FILES="$CONFIG_FILES xfont2.pc" ;;
20765
20766 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20767 esac
20768 done
20769
20770
20771 # If the user did not use the arguments to specify the items to instantiate,
20772 # then the envvar interface is used. Set only those that are not.
20773 # We use the long form for the default assignment because of an extremely
20774 # bizarre bug on SunOS 4.1.3.
20775 if $ac_need_defaults; then
20776 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20777 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20778 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20779 fi
20780
20781 # Have a temporary directory for convenience. Make it in the build tree
20782 # simply because there is no reason against having it here, and in addition,
20783 # creating and moving files from /tmp can sometimes cause problems.
20784 # Hook for its removal unless debugging.
20785 # Note that there is a small window in which the directory will not be cleaned:
20786 # after its creation but before its name has been assigned to `$tmp'.
20787 $debug ||
20788 {
20789 tmp= ac_tmp=
20790 trap 'exit_status=$?
20791 : "${ac_tmp:=$tmp}"
20792 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20793 ' 0
20794 trap 'as_fn_exit 1' 1 2 13 15
20795 }
20796 # Create a (secure) tmp directory for tmp files.
20797
20798 {
20799 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20800 test -d "$tmp"
20801 } ||
20802 {
20803 tmp=./conf$$-$RANDOM
20804 (umask 077 && mkdir "$tmp")
20805 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20806 ac_tmp=$tmp
20807
20808 # Set up the scripts for CONFIG_FILES section.
20809 # No need to generate them if there are no CONFIG_FILES.
20810 # This happens for instance with `./config.status config.h'.
20811 if test -n "$CONFIG_FILES"; then
20812
20813
20814 ac_cr=`echo X | tr X '\015'`
20815 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20816 # But we know of no other shell where ac_cr would be empty at this
20817 # point, so we can use a bashism as a fallback.
20818 if test "x$ac_cr" = x; then
20819 eval ac_cr=\$\'\\r\'
20820 fi
20821 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20822 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20823 ac_cs_awk_cr='\\r'
20824 else
20825 ac_cs_awk_cr=$ac_cr
20826 fi
20827
20828 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20829 _ACEOF
20830
20831
20832 {
20833 echo "cat >conf$$subs.awk <<_ACEOF" &&
20834 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20835 echo "_ACEOF"
20836 } >conf$$subs.sh ||
20837 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20838 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20839 ac_delim='%!_!# '
20840 for ac_last_try in false false false false false :; do
20841 . ./conf$$subs.sh ||
20842 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20843
20844 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20845 if test $ac_delim_n = $ac_delim_num; then
20846 break
20847 elif $ac_last_try; then
20848 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20849 else
20850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20851 fi
20852 done
20853 rm -f conf$$subs.sh
20854
20855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20856 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20857 _ACEOF
20858 sed -n '
20859 h
20860 s/^/S["/; s/!.*/"]=/
20861 p
20862 g
20863 s/^[^!]*!//
20864 :repl
20865 t repl
20866 s/'"$ac_delim"'$//
20867 t delim
20868 :nl
20869 h
20870 s/\(.\{148\}\)..*/\1/
20871 t more1
20872 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20873 p
20874 n
20875 b repl
20876 :more1
20877 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20878 p
20879 g
20880 s/.\{148\}//
20881 t nl
20882 :delim
20883 h
20884 s/\(.\{148\}\)..*/\1/
20885 t more2
20886 s/["\\]/\\&/g; s/^/"/; s/$/"/
20887 p
20888 b
20889 :more2
20890 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20891 p
20892 g
20893 s/.\{148\}//
20894 t delim
20895 ' <conf$$subs.awk | sed '
20896 /^[^""]/{
20897 N
20898 s/\n//
20899 }
20900 ' >>$CONFIG_STATUS || ac_write_fail=1
20901 rm -f conf$$subs.awk
20902 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20903 _ACAWK
20904 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20905 for (key in S) S_is_set[key] = 1
20906 FS = ""
20907
20908 }
20909 {
20910 line = $ 0
20911 nfields = split(line, field, "@")
20912 substed = 0
20913 len = length(field[1])
20914 for (i = 2; i < nfields; i++) {
20915 key = field[i]
20916 keylen = length(key)
20917 if (S_is_set[key]) {
20918 value = S[key]
20919 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20920 len += length(value) + length(field[++i])
20921 substed = 1
20922 } else
20923 len += 1 + keylen
20924 }
20925
20926 print line
20927 }
20928
20929 _ACAWK
20930 _ACEOF
20931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20932 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20933 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20934 else
20935 cat
20936 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20937 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20938 _ACEOF
20939
20940 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20941 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20942 # trailing colons and then remove the whole line if VPATH becomes empty
20943 # (actually we leave an empty line to preserve line numbers).
20944 if test "x$srcdir" = x.; then
20945 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20946 h
20947 s///
20948 s/^/:/
20949 s/[ ]*$/:/
20950 s/:\$(srcdir):/:/g
20951 s/:\${srcdir}:/:/g
20952 s/:@srcdir@:/:/g
20953 s/^:*//
20954 s/:*$//
20955 x
20956 s/\(=[ ]*\).*/\1/
20957 G
20958 s/\n//
20959 s/^[^=]*=[ ]*$//
20960 }'
20961 fi
20962
20963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20964 fi # test -n "$CONFIG_FILES"
20965
20966 # Set up the scripts for CONFIG_HEADERS section.
20967 # No need to generate them if there are no CONFIG_HEADERS.
20968 # This happens for instance with `./config.status Makefile'.
20969 if test -n "$CONFIG_HEADERS"; then
20970 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20971 BEGIN {
20972 _ACEOF
20973
20974 # Transform confdefs.h into an awk script `defines.awk', embedded as
20975 # here-document in config.status, that substitutes the proper values into
20976 # config.h.in to produce config.h.
20977
20978 # Create a delimiter string that does not exist in confdefs.h, to ease
20979 # handling of long lines.
20980 ac_delim='%!_!# '
20981 for ac_last_try in false false :; do
20982 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20983 if test -z "$ac_tt"; then
20984 break
20985 elif $ac_last_try; then
20986 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20987 else
20988 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20989 fi
20990 done
20991
20992 # For the awk script, D is an array of macro values keyed by name,
20993 # likewise P contains macro parameters if any. Preserve backslash
20994 # newline sequences.
20995
20996 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20997 sed -n '
20998 s/.\{148\}/&'"$ac_delim"'/g
20999 t rset
21000 :rset
21001 s/^[ ]*#[ ]*define[ ][ ]*/ /
21002 t def
21003 d
21004 :def
21005 s/\\$//
21006 t bsnl
21007 s/["\\]/\\&/g
21008 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21009 D["\1"]=" \3"/p
21010 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21011 d
21012 :bsnl
21013 s/["\\]/\\&/g
21014 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21015 D["\1"]=" \3\\\\\\n"\\/p
21016 t cont
21017 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21018 t cont
21019 d
21020 :cont
21021 n
21022 s/.\{148\}/&'"$ac_delim"'/g
21023 t clear
21024 :clear
21025 s/\\$//
21026 t bsnlc
21027 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21028 d
21029 :bsnlc
21030 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21031 b cont
21032 ' <confdefs.h | sed '
21033 s/'"$ac_delim"'/"\\\
21034 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21035
21036 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21037 for (key in D) D_is_set[key] = 1
21038 FS = ""
21039 }
21040 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21041 line = \$ 0
21042 split(line, arg, " ")
21043 if (arg[1] == "#") {
21044 defundef = arg[2]
21045 mac1 = arg[3]
21046 } else {
21047 defundef = substr(arg[1], 2)
21048 mac1 = arg[2]
21049 }
21050 split(mac1, mac2, "(") #)
21051 macro = mac2[1]
21052 prefix = substr(line, 1, index(line, defundef) - 1)
21053 if (D_is_set[macro]) {
21054 # Preserve the white space surrounding the "#".
21055 print prefix "define", macro P[macro] D[macro]
21056 next
21057 } else {
21058 # Replace #undef with comments. This is necessary, for example,
21059 # in the case of _POSIX_SOURCE, which is predefined and required
21060 # on some systems where configure will not decide to define it.
21061 if (defundef == "undef") {
21062 print "/*", prefix defundef, macro, "*/"
21063 next
21064 }
21065 }
21066 }
21067 { print }
21068 _ACAWK
21069 _ACEOF
21070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21072 fi # test -n "$CONFIG_HEADERS"
21073
21074
21075 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21076 shift
21077 for ac_tag
21078 do
21079 case $ac_tag in
21080 :[FHLC]) ac_mode=$ac_tag; continue;;
21081 esac
21082 case $ac_mode$ac_tag in
21083 :[FHL]*:*);;
21084 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21085 :[FH]-) ac_tag=-:-;;
21086 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21087 esac
21088 ac_save_IFS=$IFS
21089 IFS=:
21090 set x $ac_tag
21091 IFS=$ac_save_IFS
21092 shift
21093 ac_file=$1
21094 shift
21095
21096 case $ac_mode in
21097 :L) ac_source=$1;;
21098 :[FH])
21099 ac_file_inputs=
21100 for ac_f
21101 do
21102 case $ac_f in
21103 -) ac_f="$ac_tmp/stdin";;
21104 *) # Look for the file first in the build tree, then in the source tree
21105 # (if the path is not absolute). The absolute path cannot be DOS-style,
21106 # because $ac_f cannot contain `:'.
21107 test -f "$ac_f" ||
21108 case $ac_f in
21109 [\\/$]*) false;;
21110 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21111 esac ||
21112 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21113 esac
21114 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21115 as_fn_append ac_file_inputs " '$ac_f'"
21116 done
21117
21118 # Let's still pretend it is `configure' which instantiates (i.e., don't
21119 # use $as_me), people would be surprised to read:
21120 # /* config.h. Generated by config.status. */
21121 configure_input='Generated from '`
21122 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21123 `' by configure.'
21124 if test x"$ac_file" != x-; then
21125 configure_input="$ac_file. $configure_input"
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21127 $as_echo "$as_me: creating $ac_file" >&6;}
21128 fi
21129 # Neutralize special characters interpreted by sed in replacement strings.
21130 case $configure_input in #(
21131 *\&* | *\|* | *\\* )
21132 ac_sed_conf_input=`$as_echo "$configure_input" |
21133 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21134 *) ac_sed_conf_input=$configure_input;;
21135 esac
21136
21137 case $ac_tag in
21138 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21139 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21140 esac
21141 ;;
21142 esac
21143
21144 ac_dir=`$as_dirname -- "$ac_file" ||
21145 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21146 X"$ac_file" : 'X\(//\)[^/]' \| \
21147 X"$ac_file" : 'X\(//\)$' \| \
21148 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21149 $as_echo X"$ac_file" |
21150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21151 s//\1/
21152 q
21153 }
21154 /^X\(\/\/\)[^/].*/{
21155 s//\1/
21156 q
21157 }
21158 /^X\(\/\/\)$/{
21159 s//\1/
21160 q
21161 }
21162 /^X\(\/\).*/{
21163 s//\1/
21164 q
21165 }
21166 s/.*/./; q'`
21167 as_dir="$ac_dir"; as_fn_mkdir_p
21168 ac_builddir=.
21169
21170 case "$ac_dir" in
21171 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21172 *)
21173 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21174 # A ".." for each directory in $ac_dir_suffix.
21175 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21176 case $ac_top_builddir_sub in
21177 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21178 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21179 esac ;;
21180 esac
21181 ac_abs_top_builddir=$ac_pwd
21182 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21183 # for backward compatibility:
21184 ac_top_builddir=$ac_top_build_prefix
21185
21186 case $srcdir in
21187 .) # We are building in place.
21188 ac_srcdir=.
21189 ac_top_srcdir=$ac_top_builddir_sub
21190 ac_abs_top_srcdir=$ac_pwd ;;
21191 [\\/]* | ?:[\\/]* ) # Absolute name.
21192 ac_srcdir=$srcdir$ac_dir_suffix;
21193 ac_top_srcdir=$srcdir
21194 ac_abs_top_srcdir=$srcdir ;;
21195 *) # Relative name.
21196 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21197 ac_top_srcdir=$ac_top_build_prefix$srcdir
21198 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21199 esac
21200 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21201
21202
21203 case $ac_mode in
21204 :F)
21205 #
21206 # CONFIG_FILE
21207 #
21208
21209 case $INSTALL in
21210 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21211 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21212 esac
21213 ac_MKDIR_P=$MKDIR_P
21214 case $MKDIR_P in
21215 [\\/$]* | ?:[\\/]* ) ;;
21216 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21217 esac
21218 _ACEOF
21219
21220 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21221 # If the template does not know about datarootdir, expand it.
21222 # FIXME: This hack should be removed a few years after 2.60.
21223 ac_datarootdir_hack=; ac_datarootdir_seen=
21224 ac_sed_dataroot='
21225 /datarootdir/ {
21226 p
21227 q
21228 }
21229 /@datadir@/p
21230 /@docdir@/p
21231 /@infodir@/p
21232 /@localedir@/p
21233 /@mandir@/p'
21234 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21235 *datarootdir*) ac_datarootdir_seen=yes;;
21236 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21238 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21239 _ACEOF
21240 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21241 ac_datarootdir_hack='
21242 s&@datadir@&$datadir&g
21243 s&@docdir@&$docdir&g
21244 s&@infodir@&$infodir&g
21245 s&@localedir@&$localedir&g
21246 s&@mandir@&$mandir&g
21247 s&\\\${datarootdir}&$datarootdir&g' ;;
21248 esac
21249 _ACEOF
21250
21251 # Neutralize VPATH when `$srcdir' = `.'.
21252 # Shell code in configure.ac might set extrasub.
21253 # FIXME: do we really want to maintain this feature?
21254 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21255 ac_sed_extra="$ac_vpsub
21256 $extrasub
21257 _ACEOF
21258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21259 :t
21260 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21261 s|@configure_input@|$ac_sed_conf_input|;t t
21262 s&@top_builddir@&$ac_top_builddir_sub&;t t
21263 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21264 s&@srcdir@&$ac_srcdir&;t t
21265 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21266 s&@top_srcdir@&$ac_top_srcdir&;t t
21267 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21268 s&@builddir@&$ac_builddir&;t t
21269 s&@abs_builddir@&$ac_abs_builddir&;t t
21270 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21271 s&@INSTALL@&$ac_INSTALL&;t t
21272 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21273 $ac_datarootdir_hack
21274 "
21275 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21276 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21277
21278 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21279 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21280 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21281 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21283 which seems to be undefined. Please make sure it is defined" >&5
21284 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21285 which seems to be undefined. Please make sure it is defined" >&2;}
21286
21287 rm -f "$ac_tmp/stdin"
21288 case $ac_file in
21289 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21290 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21291 esac \
21292 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21293 ;;
21294 :H)
21295 #
21296 # CONFIG_HEADER
21297 #
21298 if test x"$ac_file" != x-; then
21299 {
21300 $as_echo "/* $configure_input */" \
21301 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21302 } >"$ac_tmp/config.h" \
21303 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21304 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21305 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21306 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21307 else
21308 rm -f "$ac_file"
21309 mv "$ac_tmp/config.h" "$ac_file" \
21310 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21311 fi
21312 else
21313 $as_echo "/* $configure_input */" \
21314 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21315 || as_fn_error $? "could not create -" "$LINENO" 5
21316 fi
21317 # Compute "$ac_file"'s index in $config_headers.
21318 _am_arg="$ac_file"
21319 _am_stamp_count=1
21320 for _am_header in $config_headers :; do
21321 case $_am_header in
21322 $_am_arg | $_am_arg:* )
21323 break ;;
21324 * )
21325 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21326 esac
21327 done
21328 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21329 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21330 X"$_am_arg" : 'X\(//\)[^/]' \| \
21331 X"$_am_arg" : 'X\(//\)$' \| \
21332 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21333 $as_echo X"$_am_arg" |
21334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21335 s//\1/
21336 q
21337 }
21338 /^X\(\/\/\)[^/].*/{
21339 s//\1/
21340 q
21341 }
21342 /^X\(\/\/\)$/{
21343 s//\1/
21344 q
21345 }
21346 /^X\(\/\).*/{
21347 s//\1/
21348 q
21349 }
21350 s/.*/./; q'`/stamp-h$_am_stamp_count
21351 ;;
21352
21353 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21354 $as_echo "$as_me: executing $ac_file commands" >&6;}
21355 ;;
21356 esac
21357
21358
21359 case $ac_file$ac_mode in
21360 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21361 # Older Autoconf quotes --file arguments for eval, but not when files
21362 # are listed without --file. Let's play safe and only enable the eval
21363 # if we detect the quoting.
21364 case $CONFIG_FILES in
21365 *\'*) eval set x "$CONFIG_FILES" ;;
21366 *) set x $CONFIG_FILES ;;
21367 esac
21368 shift
21369 for mf
21370 do
21371 # Strip MF so we end up with the name of the file.
21372 mf=`echo "$mf" | sed -e 's/:.*$//'`
21373 # Check whether this is an Automake generated Makefile or not.
21374 # We used to match only the files named 'Makefile.in', but
21375 # some people rename them; so instead we look at the file content.
21376 # Grep'ing the first line is not enough: some people post-process
21377 # each Makefile.in and add a new line on top of each file to say so.
21378 # Grep'ing the whole file is not good either: AIX grep has a line
21379 # limit of 2048, but all sed's we know have understand at least 4000.
21380 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21381 dirpart=`$as_dirname -- "$mf" ||
21382 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21383 X"$mf" : 'X\(//\)[^/]' \| \
21384 X"$mf" : 'X\(//\)$' \| \
21385 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21386 $as_echo X"$mf" |
21387 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21388 s//\1/
21389 q
21390 }
21391 /^X\(\/\/\)[^/].*/{
21392 s//\1/
21393 q
21394 }
21395 /^X\(\/\/\)$/{
21396 s//\1/
21397 q
21398 }
21399 /^X\(\/\).*/{
21400 s//\1/
21401 q
21402 }
21403 s/.*/./; q'`
21404 else
21405 continue
21406 fi
21407 # Extract the definition of DEPDIR, am__include, and am__quote
21408 # from the Makefile without running 'make'.
21409 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21410 test -z "$DEPDIR" && continue
21411 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21412 test -z "$am__include" && continue
21413 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21414 # Find all dependency output files, they are included files with
21415 # $(DEPDIR) in their names. We invoke sed twice because it is the
21416 # simplest approach to changing $(DEPDIR) to its actual value in the
21417 # expansion.
21418 for file in `sed -n "
21419 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21420 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21421 # Make sure the directory exists.
21422 test -f "$dirpart/$file" && continue
21423 fdir=`$as_dirname -- "$file" ||
21424 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21425 X"$file" : 'X\(//\)[^/]' \| \
21426 X"$file" : 'X\(//\)$' \| \
21427 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21428 $as_echo X"$file" |
21429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21430 s//\1/
21431 q
21432 }
21433 /^X\(\/\/\)[^/].*/{
21434 s//\1/
21435 q
21436 }
21437 /^X\(\/\/\)$/{
21438 s//\1/
21439 q
21440 }
21441 /^X\(\/\).*/{
21442 s//\1/
21443 q
21444 }
21445 s/.*/./; q'`
21446 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21447 # echo "creating $dirpart/$file"
21448 echo '# dummy' > "$dirpart/$file"
21449 done
21450 done
21451 }
21452 ;;
21453 "libtool":C)
21454
21455 # See if we are running on zsh, and set the options which allow our
21456 # commands through without removal of \ escapes.
21457 if test -n "${ZSH_VERSION+set}" ; then
21458 setopt NO_GLOB_SUBST
21459 fi
21460
21461 cfgfile="${ofile}T"
21462 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21463 $RM "$cfgfile"
21464
21465 cat <<_LT_EOF >> "$cfgfile"
21466 #! $SHELL
21467
21468 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21469 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21470 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21471 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21472 #
21473 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21474 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21475 # Foundation, Inc.
21476 # Written by Gordon Matzigkeit, 1996
21477 #
21478 # This file is part of GNU Libtool.
21479 #
21480 # GNU Libtool is free software; you can redistribute it and/or
21481 # modify it under the terms of the GNU General Public License as
21482 # published by the Free Software Foundation; either version 2 of
21483 # the License, or (at your option) any later version.
21484 #
21485 # As a special exception to the GNU General Public License,
21486 # if you distribute this file as part of a program or library that
21487 # is built using GNU Libtool, you may include this file under the
21488 # same distribution terms that you use for the rest of that program.
21489 #
21490 # GNU Libtool is distributed in the hope that it will be useful,
21491 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21492 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21493 # GNU General Public License for more details.
21494 #
21495 # You should have received a copy of the GNU General Public License
21496 # along with GNU Libtool; see the file COPYING. If not, a copy
21497 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21498 # obtained by writing to the Free Software Foundation, Inc.,
21499 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21500
21501
21502 # The names of the tagged configurations supported by this script.
21503 available_tags=""
21504
21505 # ### BEGIN LIBTOOL CONFIG
21506
21507 # Which release of libtool.m4 was used?
21508 macro_version=$macro_version
21509 macro_revision=$macro_revision
21510
21511 # Whether or not to build shared libraries.
21512 build_libtool_libs=$enable_shared
21513
21514 # Whether or not to build static libraries.
21515 build_old_libs=$enable_static
21516
21517 # What type of objects to build.
21518 pic_mode=$pic_mode
21519
21520 # Whether or not to optimize for fast installation.
21521 fast_install=$enable_fast_install
21522
21523 # Shell to use when invoking shell scripts.
21524 SHELL=$lt_SHELL
21525
21526 # An echo program that protects backslashes.
21527 ECHO=$lt_ECHO
21528
21529 # The PATH separator for the build system.
21530 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21531
21532 # The host system.
21533 host_alias=$host_alias
21534 host=$host
21535 host_os=$host_os
21536
21537 # The build system.
21538 build_alias=$build_alias
21539 build=$build
21540 build_os=$build_os
21541
21542 # A sed program that does not truncate output.
21543 SED=$lt_SED
21544
21545 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21546 Xsed="\$SED -e 1s/^X//"
21547
21548 # A grep program that handles long lines.
21549 GREP=$lt_GREP
21550
21551 # An ERE matcher.
21552 EGREP=$lt_EGREP
21553
21554 # A literal string matcher.
21555 FGREP=$lt_FGREP
21556
21557 # A BSD- or MS-compatible name lister.
21558 NM=$lt_NM
21559
21560 # Whether we need soft or hard links.
21561 LN_S=$lt_LN_S
21562
21563 # What is the maximum length of a command?
21564 max_cmd_len=$max_cmd_len
21565
21566 # Object file suffix (normally "o").
21567 objext=$ac_objext
21568
21569 # Executable file suffix (normally "").
21570 exeext=$exeext
21571
21572 # whether the shell understands "unset".
21573 lt_unset=$lt_unset
21574
21575 # turn spaces into newlines.
21576 SP2NL=$lt_lt_SP2NL
21577
21578 # turn newlines into spaces.
21579 NL2SP=$lt_lt_NL2SP
21580
21581 # convert \$build file names to \$host format.
21582 to_host_file_cmd=$lt_cv_to_host_file_cmd
21583
21584 # convert \$build files to toolchain format.
21585 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21586
21587 # An object symbol dumper.
21588 OBJDUMP=$lt_OBJDUMP
21589
21590 # Method to check whether dependent libraries are shared objects.
21591 deplibs_check_method=$lt_deplibs_check_method
21592
21593 # Command to use when deplibs_check_method = "file_magic".
21594 file_magic_cmd=$lt_file_magic_cmd
21595
21596 # How to find potential files when deplibs_check_method = "file_magic".
21597 file_magic_glob=$lt_file_magic_glob
21598
21599 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21600 want_nocaseglob=$lt_want_nocaseglob
21601
21602 # DLL creation program.
21603 DLLTOOL=$lt_DLLTOOL
21604
21605 # Command to associate shared and link libraries.
21606 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21607
21608 # The archiver.
21609 AR=$lt_AR
21610
21611 # Flags to create an archive.
21612 AR_FLAGS=$lt_AR_FLAGS
21613
21614 # How to feed a file listing to the archiver.
21615 archiver_list_spec=$lt_archiver_list_spec
21616
21617 # A symbol stripping program.
21618 STRIP=$lt_STRIP
21619
21620 # Commands used to install an old-style archive.
21621 RANLIB=$lt_RANLIB
21622 old_postinstall_cmds=$lt_old_postinstall_cmds
21623 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21624
21625 # Whether to use a lock for old archive extraction.
21626 lock_old_archive_extraction=$lock_old_archive_extraction
21627
21628 # A C compiler.
21629 LTCC=$lt_CC
21630
21631 # LTCC compiler flags.
21632 LTCFLAGS=$lt_CFLAGS
21633
21634 # Take the output of nm and produce a listing of raw symbols and C names.
21635 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21636
21637 # Transform the output of nm in a proper C declaration.
21638 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21639
21640 # Transform the output of nm in a C name address pair.
21641 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21642
21643 # Transform the output of nm in a C name address pair when lib prefix is needed.
21644 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21645
21646 # Specify filename containing input files for \$NM.
21647 nm_file_list_spec=$lt_nm_file_list_spec
21648
21649 # The root where to search for dependent libraries,and in which our libraries should be installed.
21650 lt_sysroot=$lt_sysroot
21651
21652 # The name of the directory that contains temporary libtool files.
21653 objdir=$objdir
21654
21655 # Used to examine libraries when file_magic_cmd begins with "file".
21656 MAGIC_CMD=$MAGIC_CMD
21657
21658 # Must we lock files when doing compilation?
21659 need_locks=$lt_need_locks
21660
21661 # Manifest tool.
21662 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21663
21664 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21665 DSYMUTIL=$lt_DSYMUTIL
21666
21667 # Tool to change global to local symbols on Mac OS X.
21668 NMEDIT=$lt_NMEDIT
21669
21670 # Tool to manipulate fat objects and archives on Mac OS X.
21671 LIPO=$lt_LIPO
21672
21673 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21674 OTOOL=$lt_OTOOL
21675
21676 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21677 OTOOL64=$lt_OTOOL64
21678
21679 # Old archive suffix (normally "a").
21680 libext=$libext
21681
21682 # Shared library suffix (normally ".so").
21683 shrext_cmds=$lt_shrext_cmds
21684
21685 # The commands to extract the exported symbol list from a shared archive.
21686 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21687
21688 # Variables whose values should be saved in libtool wrapper scripts and
21689 # restored at link time.
21690 variables_saved_for_relink=$lt_variables_saved_for_relink
21691
21692 # Do we need the "lib" prefix for modules?
21693 need_lib_prefix=$need_lib_prefix
21694
21695 # Do we need a version for libraries?
21696 need_version=$need_version
21697
21698 # Library versioning type.
21699 version_type=$version_type
21700
21701 # Shared library runtime path variable.
21702 runpath_var=$runpath_var
21703
21704 # Shared library path variable.
21705 shlibpath_var=$shlibpath_var
21706
21707 # Is shlibpath searched before the hard-coded library search path?
21708 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21709
21710 # Format of library name prefix.
21711 libname_spec=$lt_libname_spec
21712
21713 # List of archive names. First name is the real one, the rest are links.
21714 # The last name is the one that the linker finds with -lNAME
21715 library_names_spec=$lt_library_names_spec
21716
21717 # The coded name of the library, if different from the real name.
21718 soname_spec=$lt_soname_spec
21719
21720 # Permission mode override for installation of shared libraries.
21721 install_override_mode=$lt_install_override_mode
21722
21723 # Command to use after installation of a shared archive.
21724 postinstall_cmds=$lt_postinstall_cmds
21725
21726 # Command to use after uninstallation of a shared archive.
21727 postuninstall_cmds=$lt_postuninstall_cmds
21728
21729 # Commands used to finish a libtool library installation in a directory.
21730 finish_cmds=$lt_finish_cmds
21731
21732 # As "finish_cmds", except a single script fragment to be evaled but
21733 # not shown.
21734 finish_eval=$lt_finish_eval
21735
21736 # Whether we should hardcode library paths into libraries.
21737 hardcode_into_libs=$hardcode_into_libs
21738
21739 # Compile-time system search path for libraries.
21740 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21741
21742 # Run-time system search path for libraries.
21743 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21744
21745 # Whether dlopen is supported.
21746 dlopen_support=$enable_dlopen
21747
21748 # Whether dlopen of programs is supported.
21749 dlopen_self=$enable_dlopen_self
21750
21751 # Whether dlopen of statically linked programs is supported.
21752 dlopen_self_static=$enable_dlopen_self_static
21753
21754 # Commands to strip libraries.
21755 old_striplib=$lt_old_striplib
21756 striplib=$lt_striplib
21757
21758
21759 # The linker used to build libraries.
21760 LD=$lt_LD
21761
21762 # How to create reloadable object files.
21763 reload_flag=$lt_reload_flag
21764 reload_cmds=$lt_reload_cmds
21765
21766 # Commands used to build an old-style archive.
21767 old_archive_cmds=$lt_old_archive_cmds
21768
21769 # A language specific compiler.
21770 CC=$lt_compiler
21771
21772 # Is the compiler the GNU compiler?
21773 with_gcc=$GCC
21774
21775 # Compiler flag to turn off builtin functions.
21776 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21777
21778 # Additional compiler flags for building library objects.
21779 pic_flag=$lt_lt_prog_compiler_pic
21780
21781 # How to pass a linker flag through the compiler.
21782 wl=$lt_lt_prog_compiler_wl
21783
21784 # Compiler flag to prevent dynamic linking.
21785 link_static_flag=$lt_lt_prog_compiler_static
21786
21787 # Does compiler simultaneously support -c and -o options?
21788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21789
21790 # Whether or not to add -lc for building shared libraries.
21791 build_libtool_need_lc=$archive_cmds_need_lc
21792
21793 # Whether or not to disallow shared libs when runtime libs are static.
21794 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21795
21796 # Compiler flag to allow reflexive dlopens.
21797 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21798
21799 # Compiler flag to generate shared objects directly from archives.
21800 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21801
21802 # Whether the compiler copes with passing no objects directly.
21803 compiler_needs_object=$lt_compiler_needs_object
21804
21805 # Create an old-style archive from a shared archive.
21806 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21807
21808 # Create a temporary old-style archive to link instead of a shared archive.
21809 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21810
21811 # Commands used to build a shared archive.
21812 archive_cmds=$lt_archive_cmds
21813 archive_expsym_cmds=$lt_archive_expsym_cmds
21814
21815 # Commands used to build a loadable module if different from building
21816 # a shared archive.
21817 module_cmds=$lt_module_cmds
21818 module_expsym_cmds=$lt_module_expsym_cmds
21819
21820 # Whether we are building with GNU ld or not.
21821 with_gnu_ld=$lt_with_gnu_ld
21822
21823 # Flag that allows shared libraries with undefined symbols to be built.
21824 allow_undefined_flag=$lt_allow_undefined_flag
21825
21826 # Flag that enforces no undefined symbols.
21827 no_undefined_flag=$lt_no_undefined_flag
21828
21829 # Flag to hardcode \$libdir into a binary during linking.
21830 # This must work even if \$libdir does not exist
21831 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21832
21833 # Whether we need a single "-rpath" flag with a separated argument.
21834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21835
21836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21837 # DIR into the resulting binary.
21838 hardcode_direct=$hardcode_direct
21839
21840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21841 # DIR into the resulting binary and the resulting library dependency is
21842 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21843 # library is relocated.
21844 hardcode_direct_absolute=$hardcode_direct_absolute
21845
21846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21847 # into the resulting binary.
21848 hardcode_minus_L=$hardcode_minus_L
21849
21850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21851 # into the resulting binary.
21852 hardcode_shlibpath_var=$hardcode_shlibpath_var
21853
21854 # Set to "yes" if building a shared library automatically hardcodes DIR
21855 # into the library and all subsequent libraries and executables linked
21856 # against it.
21857 hardcode_automatic=$hardcode_automatic
21858
21859 # Set to yes if linker adds runtime paths of dependent libraries
21860 # to runtime path list.
21861 inherit_rpath=$inherit_rpath
21862
21863 # Whether libtool must link a program against all its dependency libraries.
21864 link_all_deplibs=$link_all_deplibs
21865
21866 # Set to "yes" if exported symbols are required.
21867 always_export_symbols=$always_export_symbols
21868
21869 # The commands to list exported symbols.
21870 export_symbols_cmds=$lt_export_symbols_cmds
21871
21872 # Symbols that should not be listed in the preloaded symbols.
21873 exclude_expsyms=$lt_exclude_expsyms
21874
21875 # Symbols that must always be exported.
21876 include_expsyms=$lt_include_expsyms
21877
21878 # Commands necessary for linking programs (against libraries) with templates.
21879 prelink_cmds=$lt_prelink_cmds
21880
21881 # Commands necessary for finishing linking programs.
21882 postlink_cmds=$lt_postlink_cmds
21883
21884 # Specify filename containing input files.
21885 file_list_spec=$lt_file_list_spec
21886
21887 # How to hardcode a shared library path into an executable.
21888 hardcode_action=$hardcode_action
21889
21890 # ### END LIBTOOL CONFIG
21891
21892 _LT_EOF
21893
21894 case $host_os in
21895 aix3*)
21896 cat <<\_LT_EOF >> "$cfgfile"
21897 # AIX sometimes has problems with the GCC collect2 program. For some
21898 # reason, if we set the COLLECT_NAMES environment variable, the problems
21899 # vanish in a puff of smoke.
21900 if test "X${COLLECT_NAMES+set}" != Xset; then
21901 COLLECT_NAMES=
21902 export COLLECT_NAMES
21903 fi
21904 _LT_EOF
21905 ;;
21906 esac
21907
21908
21909 ltmain="$ac_aux_dir/ltmain.sh"
21910
21911
21912 # We use sed instead of cat because bash on DJGPP gets confused if
21913 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21914 # text mode, it properly converts lines to CR/LF. This bash problem
21915 # is reportedly fixed, but why not run on old versions too?
21916 sed '$q' "$ltmain" >> "$cfgfile" \
21917 || (rm -f "$cfgfile"; exit 1)
21918
21919 if test x"$xsi_shell" = xyes; then
21920 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21921 func_dirname ()\
21922 {\
21923 \ case ${1} in\
21924 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21925 \ * ) func_dirname_result="${3}" ;;\
21926 \ esac\
21927 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21928 && mv -f "$cfgfile.tmp" "$cfgfile" \
21929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21930 test 0 -eq $? || _lt_function_replace_fail=:
21931
21932
21933 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21934 func_basename ()\
21935 {\
21936 \ func_basename_result="${1##*/}"\
21937 } # Extended-shell func_basename 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_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21944 func_dirname_and_basename ()\
21945 {\
21946 \ case ${1} in\
21947 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21948 \ * ) func_dirname_result="${3}" ;;\
21949 \ esac\
21950 \ func_basename_result="${1##*/}"\
21951 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21952 && mv -f "$cfgfile.tmp" "$cfgfile" \
21953 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21954 test 0 -eq $? || _lt_function_replace_fail=:
21955
21956
21957 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21958 func_stripname ()\
21959 {\
21960 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21961 \ # positional parameters, so assign one to ordinary parameter first.\
21962 \ func_stripname_result=${3}\
21963 \ func_stripname_result=${func_stripname_result#"${1}"}\
21964 \ func_stripname_result=${func_stripname_result%"${2}"}\
21965 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21966 && mv -f "$cfgfile.tmp" "$cfgfile" \
21967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21968 test 0 -eq $? || _lt_function_replace_fail=:
21969
21970
21971 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21972 func_split_long_opt ()\
21973 {\
21974 \ func_split_long_opt_name=${1%%=*}\
21975 \ func_split_long_opt_arg=${1#*=}\
21976 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21977 && mv -f "$cfgfile.tmp" "$cfgfile" \
21978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21979 test 0 -eq $? || _lt_function_replace_fail=:
21980
21981
21982 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21983 func_split_short_opt ()\
21984 {\
21985 \ func_split_short_opt_arg=${1#??}\
21986 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21987 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21988 && mv -f "$cfgfile.tmp" "$cfgfile" \
21989 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21990 test 0 -eq $? || _lt_function_replace_fail=:
21991
21992
21993 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21994 func_lo2o ()\
21995 {\
21996 \ case ${1} in\
21997 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21998 \ *) func_lo2o_result=${1} ;;\
21999 \ esac\
22000 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22001 && mv -f "$cfgfile.tmp" "$cfgfile" \
22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22003 test 0 -eq $? || _lt_function_replace_fail=:
22004
22005
22006 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22007 func_xform ()\
22008 {\
22009 func_xform_result=${1%.*}.lo\
22010 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22011 && mv -f "$cfgfile.tmp" "$cfgfile" \
22012 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22013 test 0 -eq $? || _lt_function_replace_fail=:
22014
22015
22016 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22017 func_arith ()\
22018 {\
22019 func_arith_result=$(( $* ))\
22020 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22021 && mv -f "$cfgfile.tmp" "$cfgfile" \
22022 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22023 test 0 -eq $? || _lt_function_replace_fail=:
22024
22025
22026 sed -e '/^func_len ()$/,/^} # func_len /c\
22027 func_len ()\
22028 {\
22029 func_len_result=${#1}\
22030 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22031 && mv -f "$cfgfile.tmp" "$cfgfile" \
22032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22033 test 0 -eq $? || _lt_function_replace_fail=:
22034
22035 fi
22036
22037 if test x"$lt_shell_append" = xyes; then
22038 sed -e '/^func_append ()$/,/^} # func_append /c\
22039 func_append ()\
22040 {\
22041 eval "${1}+=\\${2}"\
22042 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22043 && mv -f "$cfgfile.tmp" "$cfgfile" \
22044 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22045 test 0 -eq $? || _lt_function_replace_fail=:
22046
22047
22048 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22049 func_append_quoted ()\
22050 {\
22051 \ func_quote_for_eval "${2}"\
22052 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22053 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22054 && mv -f "$cfgfile.tmp" "$cfgfile" \
22055 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22056 test 0 -eq $? || _lt_function_replace_fail=:
22057
22058
22059 # Save a `func_append' function call where possible by direct use of '+='
22060 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22061 && mv -f "$cfgfile.tmp" "$cfgfile" \
22062 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22063 test 0 -eq $? || _lt_function_replace_fail=:
22064 else
22065 # Save a `func_append' function call even when '+=' is not available
22066 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22067 && mv -f "$cfgfile.tmp" "$cfgfile" \
22068 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22069 test 0 -eq $? || _lt_function_replace_fail=:
22070 fi
22071
22072 if test x"$_lt_function_replace_fail" = x":"; then
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22074 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22075 fi
22076
22077
22078 mv -f "$cfgfile" "$ofile" ||
22079 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22080 chmod +x "$ofile"
22081
22082 ;;
22083
22084 esac
22085 done # for ac_tag
22086
22087
22088 as_fn_exit 0
22089 _ACEOF
22090 ac_clean_files=$ac_clean_files_save
22091
22092 test $ac_write_fail = 0 ||
22093 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22094
22095
22096 # configure is writing to config.log, and then calls config.status.
22097 # config.status does its own redirection, appending to config.log.
22098 # Unfortunately, on DOS this fails, as config.log is still kept open
22099 # by configure, so config.status won't be able to write to it; its
22100 # output is simply discarded. So we exec the FD to /dev/null,
22101 # effectively closing config.log, so it can be properly (re)opened and
22102 # appended to by config.status. When coming back to configure, we
22103 # need to make the FD available again.
22104 if test "$no_create" != yes; then
22105 ac_cs_success=:
22106 ac_config_status_args=
22107 test "$silent" = yes &&
22108 ac_config_status_args="$ac_config_status_args --quiet"
22109 exec 5>/dev/null
22110 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22111 exec 5>>config.log
22112 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22113 # would make configure fail if this is the last instruction.
22114 $ac_cs_success || as_fn_exit 1
22115 fi
22116 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22118 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22119 fi
22120
22121