configure revision 1.1.1.4 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libfontenc 1.1.2.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10 # Foundation, Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
18
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
36
37
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
75
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
84
85
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
92
93 # Find who we are. Look in the path if we contain no directory separator.
94 as_myself=
95 case $0 in #((
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98 for as_dir in $PATH
99 do
100 IFS=$as_save_IFS
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
103 done
104 IFS=$as_save_IFS
105
106 ;;
107 esac
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x; then
111 as_myself=$0
112 fi
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115 exit 1
116 fi
117
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # CDPATH.
137 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
139 if test "x$CONFIG_SHELL" = x; then
140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 emulate sh
142 NULLCMD=:
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 setopt NO_GLOB_SUBST
147 else
148 case \`(set -o) 2>/dev/null\` in #(
149 *posix*) :
150 set -o posix ;; #(
151 *) :
152 ;;
153 esac
154 fi
155 "
156 as_required="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
161
162 exitcode=0
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168
169 else
170 exitcode=1; echo positional parameters were not saved.
171 fi
172 test x\$exitcode = x0 || exit 1"
173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177
178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 PATH=/empty FPATH=/empty; export PATH FPATH
183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null; then :
187 as_have_required=yes
188 else
189 as_have_required=no
190 fi
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
192
193 else
194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198 IFS=$as_save_IFS
199 test -z "$as_dir" && as_dir=.
200 as_found=:
201 case $as_dir in #(
202 /*)
203 for as_base in sh bash ksh sh5; do
204 # Try only shells that exist, to save several forks.
205 as_shell=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
208 CONFIG_SHELL=$as_shell as_have_required=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
210 break 2
211 fi
212 fi
213 done;;
214 esac
215 as_found=false
216 done
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
219 CONFIG_SHELL=$SHELL as_have_required=yes
220 fi; }
221 IFS=$as_save_IFS
222
223
224 if test "x$CONFIG_SHELL" != x; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
229 BASH_ENV=/dev/null
230 ENV=/dev/null
231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
232 export CONFIG_SHELL
233 case $- in # ((((
234 *v*x* | *x*v* ) as_opts=-vx ;;
235 *v* ) as_opts=-v ;;
236 *x* ) as_opts=-x ;;
237 * ) as_opts= ;;
238 esac
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
240 fi
241
242 if test x$as_have_required = xno; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x${ZSH_VERSION+set} = xset ; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
248 else
249 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
250 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg
251 $0: about your system, including any error possibly output
252 $0: before this message. Then install a modern shell, or
253 $0: manually run the script under such a shell if you do
254 $0: have one."
255 fi
256 exit 1
257 fi
258 fi
259 fi
260 SHELL=${CONFIG_SHELL-/bin/sh}
261 export SHELL
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
265
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
269 # as_fn_unset VAR
270 # ---------------
271 # Portably unset VAR.
272 as_fn_unset ()
273 {
274 { eval $1=; unset $1;}
275 }
276 as_unset=as_fn_unset
277
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
281 as_fn_set_status ()
282 {
283 return $1
284 } # as_fn_set_status
285
286 # as_fn_exit STATUS
287 # -----------------
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
289 as_fn_exit ()
290 {
291 set +e
292 as_fn_set_status $1
293 exit $1
294 } # as_fn_exit
295
296 # as_fn_mkdir_p
297 # -------------
298 # Create "$as_dir" as a directory, including parents if necessary.
299 as_fn_mkdir_p ()
300 {
301
302 case $as_dir in #(
303 -*) as_dir=./$as_dir;;
304 esac
305 test -d "$as_dir" || eval $as_mkdir_p || {
306 as_dirs=
307 while :; do
308 case $as_dir in #(
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 *) as_qdir=$as_dir;;
311 esac
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
320 s//\1/
321 q
322 }
323 /^X\(\/\/\)[^/].*/{
324 s//\1/
325 q
326 }
327 /^X\(\/\/\)$/{
328 s//\1/
329 q
330 }
331 /^X\(\/\).*/{
332 s//\1/
333 q
334 }
335 s/.*/./; q'`
336 test -d "$as_dir" && break
337 done
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
340
341
342 } # as_fn_mkdir_p
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
348 # implementations.
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
351 {
352 eval $1+=\$2
353 }'
354 else
355 as_fn_append ()
356 {
357 eval $1=\$$1\$2
358 }
359 fi # as_fn_append
360
361 # as_fn_arith ARG...
362 # ------------------
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367 eval 'as_fn_arith ()
368 {
369 as_val=$(( $* ))
370 }'
371 else
372 as_fn_arith ()
373 {
374 as_val=`expr "$@" || test $? -eq 1`
375 }
376 fi # as_fn_arith
377
378
379 # as_fn_error STATUS ERROR [LINENO LOG_FD]
380 # ----------------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with STATUS, using 1 if that was 0.
384 as_fn_error ()
385 {
386 as_status=$1; test $as_status -eq 0 && as_status=1
387 if test "$4"; then
388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
390 fi
391 $as_echo "$as_me: error: $2" >&2
392 as_fn_exit $as_status
393 } # as_fn_error
394
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
397 as_expr=expr
398 else
399 as_expr=false
400 fi
401
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
403 as_basename=basename
404 else
405 as_basename=false
406 fi
407
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
409 as_dirname=dirname
410 else
411 as_dirname=false
412 fi
413
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
418 $as_echo X/"$0" |
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
420 s//\1/
421 q
422 }
423 /^X\/\(\/\/\)$/{
424 s//\1/
425 q
426 }
427 /^X\/\(\/\).*/{
428 s//\1/
429 q
430 }
431 s/.*/./; q'`
432
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
439
440
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
446 sed -n '
447 p
448 /[$]LINENO/=
449 ' <$as_myself |
450 sed '
451 s/[$]LINENO.*/&-/
452 t lineno
453 b
454 :lineno
455 N
456 :loop
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
458 t loop
459 s/-\n.*//
460 ' >$as_me.lineno &&
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
463
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
467 . "./$as_me.lineno"
468 # Exit status is that of the last command.
469 exit
470 }
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
474 -n*)
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 xy) ECHO_C='\c';;
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
479 ECHO_T=' ';;
480 esac;;
481 *)
482 ECHO_N='-n';;
483 esac
484
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
488 else
489 rm -f conf$$.dir
490 mkdir conf$$.dir 2>/dev/null
491 fi
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
494 as_ln_s='ln -s'
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
500 as_ln_s='cp -p'
501 elif ln conf$$.file conf$$ 2>/dev/null; then
502 as_ln_s=ln
503 else
504 as_ln_s='cp -p'
505 fi
506 else
507 as_ln_s='cp -p'
508 fi
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
511
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
514 else
515 test -d ./-p && rmdir ./-p
516 as_mkdir_p=false
517 fi
518
519 if test -x / >/dev/null 2>&1; then
520 as_test_x='test -x'
521 else
522 if ls -dL / >/dev/null 2>&1; then
523 as_ls_L_option=L
524 else
525 as_ls_L_option=
526 fi
527 as_test_x='
528 eval sh -c '\''
529 if test -d "$1"; then
530 test -d "$1/.";
531 else
532 case $1 in #(
533 -*)set "./$1";;
534 esac;
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
537 '\'' sh
538 '
539 fi
540 as_executable_p=$as_test_x
541
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
544
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
547
548 SHELL=${CONFIG_SHELL-/bin/sh}
549
550
551 test -n "$DJDIR" || exec 7<&0 </dev/null
552 exec 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570
571 # Identity of this package.
572 PACKAGE_NAME='libfontenc'
573 PACKAGE_TARNAME='libfontenc'
574 PACKAGE_VERSION='1.1.2'
575 PACKAGE_STRING='libfontenc 1.1.2'
576 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg'
577 PACKAGE_URL=''
578
579 ac_unique_file="Makefile.am"
580 # Factoring default headers for most tests.
581 ac_includes_default="\
582 #include <stdio.h>
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
585 #endif
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
588 #endif
589 #ifdef STDC_HEADERS
590 # include <stdlib.h>
591 # include <stddef.h>
592 #else
593 # ifdef HAVE_STDLIB_H
594 # include <stdlib.h>
595 # endif
596 #endif
597 #ifdef HAVE_STRING_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
599 # include <memory.h>
600 # endif
601 # include <string.h>
602 #endif
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
605 #endif
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
608 #endif
609 #ifdef HAVE_STDINT_H
610 # include <stdint.h>
611 #endif
612 #ifdef HAVE_UNISTD_H
613 # include <unistd.h>
614 #endif"
615
616 ac_subst_vars='am__EXEEXT_FALSE
617 am__EXEEXT_TRUE
618 LTLIBOBJS
619 LIBOBJS
620 LINT_FALSE
621 LINT_TRUE
622 LINT_FLAGS
623 LINT
624 FONTENC_LIBS
625 FONTENC_CFLAGS
626 ENCODINGSDIR
627 FONTROOTDIR
628 AM_BACKSLASH
629 AM_DEFAULT_VERBOSITY
630 MAN_SUBSTS
631 XORG_MAN_PAGE
632 ADMIN_MAN_DIR
633 DRIVER_MAN_DIR
634 MISC_MAN_DIR
635 FILE_MAN_DIR
636 LIB_MAN_DIR
637 APP_MAN_DIR
638 ADMIN_MAN_SUFFIX
639 DRIVER_MAN_SUFFIX
640 MISC_MAN_SUFFIX
641 FILE_MAN_SUFFIX
642 LIB_MAN_SUFFIX
643 APP_MAN_SUFFIX
644 INSTALL_CMD
645 PKG_CONFIG
646 CHANGELOG_CMD
647 STRICT_CFLAGS
648 CWARNFLAGS
649 BASE_CFLAGS
650 CPP
651 OTOOL64
652 OTOOL
653 LIPO
654 NMEDIT
655 DSYMUTIL
656 MANIFEST_TOOL
657 RANLIB
658 ac_ct_AR
659 AR
660 DLLTOOL
661 OBJDUMP
662 LN_S
663 NM
664 ac_ct_DUMPBIN
665 DUMPBIN
666 LD
667 FGREP
668 EGREP
669 GREP
670 SED
671 am__fastdepCC_FALSE
672 am__fastdepCC_TRUE
673 CCDEPMODE
674 am__nodep
675 AMDEPBACKSLASH
676 AMDEP_FALSE
677 AMDEP_TRUE
678 am__quote
679 am__include
680 DEPDIR
681 OBJEXT
682 EXEEXT
683 ac_ct_CC
684 CPPFLAGS
685 LDFLAGS
686 CFLAGS
687 CC
688 host_os
689 host_vendor
690 host_cpu
691 host
692 build_os
693 build_vendor
694 build_cpu
695 build
696 LIBTOOL
697 am__untar
698 am__tar
699 AMTAR
700 am__leading_dot
701 SET_MAKE
702 AWK
703 mkdir_p
704 MKDIR_P
705 INSTALL_STRIP_PROGRAM
706 STRIP
707 install_sh
708 MAKEINFO
709 AUTOHEADER
710 AUTOMAKE
711 AUTOCONF
712 ACLOCAL
713 VERSION
714 PACKAGE
715 CYGPATH_W
716 am__isrc
717 INSTALL_DATA
718 INSTALL_SCRIPT
719 INSTALL_PROGRAM
720 target_alias
721 host_alias
722 build_alias
723 LIBS
724 ECHO_T
725 ECHO_N
726 ECHO_C
727 DEFS
728 mandir
729 localedir
730 libdir
731 psdir
732 pdfdir
733 dvidir
734 htmldir
735 infodir
736 docdir
737 oldincludedir
738 includedir
739 localstatedir
740 sharedstatedir
741 sysconfdir
742 datadir
743 datarootdir
744 libexecdir
745 sbindir
746 bindir
747 program_transform_name
748 prefix
749 exec_prefix
750 PACKAGE_URL
751 PACKAGE_BUGREPORT
752 PACKAGE_STRING
753 PACKAGE_VERSION
754 PACKAGE_TARNAME
755 PACKAGE_NAME
756 PATH_SEPARATOR
757 SHELL'
758 ac_subst_files=''
759 ac_user_opts='
760 enable_option_checking
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 enable_dependency_tracking
766 with_gnu_ld
767 with_sysroot
768 enable_libtool_lock
769 enable_selective_werror
770 enable_strict_compilation
771 enable_silent_rules
772 with_fontrootdir
773 with_encodingsdir
774 with_lint
775 '
776 ac_precious_vars='build_alias
777 host_alias
778 target_alias
779 CC
780 CFLAGS
781 LDFLAGS
782 LIBS
783 CPPFLAGS
784 CPP
785 PKG_CONFIG
786 FONTENC_CFLAGS
787 FONTENC_LIBS
788 LINT
789 LINT_FLAGS'
790
791
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
813
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
839
840 ac_prev=
841 ac_dashdash=
842 for ac_option
843 do
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
849 fi
850
851 case $ac_option in
852 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *=) ac_optarg= ;;
854 *) ac_optarg=yes ;;
855 esac
856
857 # Accept the important Cygnus configure options, so we can diagnose typos.
858
859 case $ac_dashdash$ac_option in
860 --)
861 ac_dashdash=yes ;;
862
863 -bindir | --bindir | --bindi | --bind | --bin | --bi)
864 ac_prev=bindir ;;
865 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
866 bindir=$ac_optarg ;;
867
868 -build | --build | --buil | --bui | --bu)
869 ac_prev=build_alias ;;
870 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
871 build_alias=$ac_optarg ;;
872
873 -cache-file | --cache-file | --cache-fil | --cache-fi \
874 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
875 ac_prev=cache_file ;;
876 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
877 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
878 cache_file=$ac_optarg ;;
879
880 --config-cache | -C)
881 cache_file=config.cache ;;
882
883 -datadir | --datadir | --datadi | --datad)
884 ac_prev=datadir ;;
885 -datadir=* | --datadir=* | --datadi=* | --datad=*)
886 datadir=$ac_optarg ;;
887
888 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
889 | --dataroo | --dataro | --datar)
890 ac_prev=datarootdir ;;
891 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
892 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
893 datarootdir=$ac_optarg ;;
894
895 -disable-* | --disable-*)
896 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
897 # Reject names that are not valid shell variable names.
898 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
899 as_fn_error $? "invalid feature name: $ac_useropt"
900 ac_useropt_orig=$ac_useropt
901 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
902 case $ac_user_opts in
903 *"
904 "enable_$ac_useropt"
905 "*) ;;
906 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
907 ac_unrecognized_sep=', ';;
908 esac
909 eval enable_$ac_useropt=no ;;
910
911 -docdir | --docdir | --docdi | --doc | --do)
912 ac_prev=docdir ;;
913 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
914 docdir=$ac_optarg ;;
915
916 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917 ac_prev=dvidir ;;
918 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
919 dvidir=$ac_optarg ;;
920
921 -enable-* | --enable-*)
922 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
925 as_fn_error $? "invalid feature name: $ac_useropt"
926 ac_useropt_orig=$ac_useropt
927 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
928 case $ac_user_opts in
929 *"
930 "enable_$ac_useropt"
931 "*) ;;
932 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
933 ac_unrecognized_sep=', ';;
934 esac
935 eval enable_$ac_useropt=\$ac_optarg ;;
936
937 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
938 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
939 | --exec | --exe | --ex)
940 ac_prev=exec_prefix ;;
941 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
942 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
943 | --exec=* | --exe=* | --ex=*)
944 exec_prefix=$ac_optarg ;;
945
946 -gas | --gas | --ga | --g)
947 # Obsolete; use --with-gas.
948 with_gas=yes ;;
949
950 -help | --help | --hel | --he | -h)
951 ac_init_help=long ;;
952 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
953 ac_init_help=recursive ;;
954 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
955 ac_init_help=short ;;
956
957 -host | --host | --hos | --ho)
958 ac_prev=host_alias ;;
959 -host=* | --host=* | --hos=* | --ho=*)
960 host_alias=$ac_optarg ;;
961
962 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963 ac_prev=htmldir ;;
964 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965 | --ht=*)
966 htmldir=$ac_optarg ;;
967
968 -includedir | --includedir | --includedi | --included | --include \
969 | --includ | --inclu | --incl | --inc)
970 ac_prev=includedir ;;
971 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
972 | --includ=* | --inclu=* | --incl=* | --inc=*)
973 includedir=$ac_optarg ;;
974
975 -infodir | --infodir | --infodi | --infod | --info | --inf)
976 ac_prev=infodir ;;
977 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
978 infodir=$ac_optarg ;;
979
980 -libdir | --libdir | --libdi | --libd)
981 ac_prev=libdir ;;
982 -libdir=* | --libdir=* | --libdi=* | --libd=*)
983 libdir=$ac_optarg ;;
984
985 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
986 | --libexe | --libex | --libe)
987 ac_prev=libexecdir ;;
988 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
989 | --libexe=* | --libex=* | --libe=*)
990 libexecdir=$ac_optarg ;;
991
992 -localedir | --localedir | --localedi | --localed | --locale)
993 ac_prev=localedir ;;
994 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
995 localedir=$ac_optarg ;;
996
997 -localstatedir | --localstatedir | --localstatedi | --localstated \
998 | --localstate | --localstat | --localsta | --localst | --locals)
999 ac_prev=localstatedir ;;
1000 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1001 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1002 localstatedir=$ac_optarg ;;
1003
1004 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005 ac_prev=mandir ;;
1006 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1007 mandir=$ac_optarg ;;
1008
1009 -nfp | --nfp | --nf)
1010 # Obsolete; use --without-fp.
1011 with_fp=no ;;
1012
1013 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1014 | --no-cr | --no-c | -n)
1015 no_create=yes ;;
1016
1017 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1018 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1019 no_recursion=yes ;;
1020
1021 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1022 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1023 | --oldin | --oldi | --old | --ol | --o)
1024 ac_prev=oldincludedir ;;
1025 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1026 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1027 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1028 oldincludedir=$ac_optarg ;;
1029
1030 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031 ac_prev=prefix ;;
1032 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1033 prefix=$ac_optarg ;;
1034
1035 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1036 | --program-pre | --program-pr | --program-p)
1037 ac_prev=program_prefix ;;
1038 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1039 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1040 program_prefix=$ac_optarg ;;
1041
1042 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1043 | --program-suf | --program-su | --program-s)
1044 ac_prev=program_suffix ;;
1045 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1046 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1047 program_suffix=$ac_optarg ;;
1048
1049 -program-transform-name | --program-transform-name \
1050 | --program-transform-nam | --program-transform-na \
1051 | --program-transform-n | --program-transform- \
1052 | --program-transform | --program-transfor \
1053 | --program-transfo | --program-transf \
1054 | --program-trans | --program-tran \
1055 | --progr-tra | --program-tr | --program-t)
1056 ac_prev=program_transform_name ;;
1057 -program-transform-name=* | --program-transform-name=* \
1058 | --program-transform-nam=* | --program-transform-na=* \
1059 | --program-transform-n=* | --program-transform-=* \
1060 | --program-transform=* | --program-transfor=* \
1061 | --program-transfo=* | --program-transf=* \
1062 | --program-trans=* | --program-tran=* \
1063 | --progr-tra=* | --program-tr=* | --program-t=*)
1064 program_transform_name=$ac_optarg ;;
1065
1066 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067 ac_prev=pdfdir ;;
1068 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1069 pdfdir=$ac_optarg ;;
1070
1071 -psdir | --psdir | --psdi | --psd | --ps)
1072 ac_prev=psdir ;;
1073 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1074 psdir=$ac_optarg ;;
1075
1076 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1077 | -silent | --silent | --silen | --sile | --sil)
1078 silent=yes ;;
1079
1080 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081 ac_prev=sbindir ;;
1082 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083 | --sbi=* | --sb=*)
1084 sbindir=$ac_optarg ;;
1085
1086 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1087 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1088 | --sharedst | --shareds | --shared | --share | --shar \
1089 | --sha | --sh)
1090 ac_prev=sharedstatedir ;;
1091 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1092 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1093 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094 | --sha=* | --sh=*)
1095 sharedstatedir=$ac_optarg ;;
1096
1097 -site | --site | --sit)
1098 ac_prev=site ;;
1099 -site=* | --site=* | --sit=*)
1100 site=$ac_optarg ;;
1101
1102 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103 ac_prev=srcdir ;;
1104 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1105 srcdir=$ac_optarg ;;
1106
1107 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1108 | --syscon | --sysco | --sysc | --sys | --sy)
1109 ac_prev=sysconfdir ;;
1110 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1111 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1112 sysconfdir=$ac_optarg ;;
1113
1114 -target | --target | --targe | --targ | --tar | --ta | --t)
1115 ac_prev=target_alias ;;
1116 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1117 target_alias=$ac_optarg ;;
1118
1119 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1120 verbose=yes ;;
1121
1122 -version | --version | --versio | --versi | --vers | -V)
1123 ac_init_version=: ;;
1124
1125 -with-* | --with-*)
1126 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1127 # Reject names that are not valid shell variable names.
1128 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1129 as_fn_error $? "invalid package name: $ac_useropt"
1130 ac_useropt_orig=$ac_useropt
1131 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1132 case $ac_user_opts in
1133 *"
1134 "with_$ac_useropt"
1135 "*) ;;
1136 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1137 ac_unrecognized_sep=', ';;
1138 esac
1139 eval with_$ac_useropt=\$ac_optarg ;;
1140
1141 -without-* | --without-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid package name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150 "with_$ac_useropt"
1151 "*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval with_$ac_useropt=no ;;
1156
1157 --x)
1158 # Obsolete; use --with-x.
1159 with_x=yes ;;
1160
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1167
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1174
1175 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1176 Try \`$0 --help' for more information"
1177 ;;
1178
1179 *=*)
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 case $ac_envvar in #(
1183 '' | [0-9]* | *[!_$as_cr_alnum]* )
1184 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185 esac
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1188
1189 *)
1190 # FIXME: should be removed in autoconf 3.0.
1191 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1195 ;;
1196
1197 esac
1198 done
1199
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 as_fn_error $? "missing argument to $ac_option"
1203 fi
1204
1205 if test -n "$ac_unrecognized_opts"; then
1206 case $enable_option_checking in
1207 no) ;;
1208 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1209 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1210 esac
1211 fi
1212
1213 # Check all directory arguments for consistency.
1214 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1215 datadir sysconfdir sharedstatedir localstatedir includedir \
1216 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1217 libdir localedir mandir
1218 do
1219 eval ac_val=\$$ac_var
1220 # Remove trailing slashes.
1221 case $ac_val in
1222 */ )
1223 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1224 eval $ac_var=\$ac_val;;
1225 esac
1226 # Be sure to have absolute directory names.
1227 case $ac_val in
1228 [\\/$]* | ?:[\\/]* ) continue;;
1229 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230 esac
1231 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1232 done
1233
1234 # There might be people who depend on the old broken behavior: `$host'
1235 # used to hold the argument of --host etc.
1236 # FIXME: To remove some day.
1237 build=$build_alias
1238 host=$host_alias
1239 target=$target_alias
1240
1241 # FIXME: To remove some day.
1242 if test "x$host_alias" != x; then
1243 if test "x$build_alias" = x; then
1244 cross_compiling=maybe
1245 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1246 If a cross compiler is detected then cross compile mode will be used" >&2
1247 elif test "x$build_alias" != "x$host_alias"; then
1248 cross_compiling=yes
1249 fi
1250 fi
1251
1252 ac_tool_prefix=
1253 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254
1255 test "$silent" = yes && exec 6>/dev/null
1256
1257
1258 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1259 ac_ls_di=`ls -di .` &&
1260 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1261 as_fn_error $? "working directory cannot be determined"
1262 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1263 as_fn_error $? "pwd does not report name of working directory"
1264
1265
1266 # Find the source files, if location was not specified.
1267 if test -z "$srcdir"; then
1268 ac_srcdir_defaulted=yes
1269 # Try the directory containing this script, then the parent directory.
1270 ac_confdir=`$as_dirname -- "$as_myself" ||
1271 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1272 X"$as_myself" : 'X\(//\)[^/]' \| \
1273 X"$as_myself" : 'X\(//\)$' \| \
1274 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1275 $as_echo X"$as_myself" |
1276 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1277 s//\1/
1278 q
1279 }
1280 /^X\(\/\/\)[^/].*/{
1281 s//\1/
1282 q
1283 }
1284 /^X\(\/\/\)$/{
1285 s//\1/
1286 q
1287 }
1288 /^X\(\/\).*/{
1289 s//\1/
1290 q
1291 }
1292 s/.*/./; q'`
1293 srcdir=$ac_confdir
1294 if test ! -r "$srcdir/$ac_unique_file"; then
1295 srcdir=..
1296 fi
1297 else
1298 ac_srcdir_defaulted=no
1299 fi
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1302 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1303 fi
1304 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1305 ac_abs_confdir=`(
1306 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1307 pwd)`
1308 # When building in place, set srcdir=.
1309 if test "$ac_abs_confdir" = "$ac_pwd"; then
1310 srcdir=.
1311 fi
1312 # Remove unnecessary trailing slashes from srcdir.
1313 # Double slashes in file names in object file debugging info
1314 # mess up M-x gdb in Emacs.
1315 case $srcdir in
1316 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 esac
1318 for ac_var in $ac_precious_vars; do
1319 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1320 eval ac_env_${ac_var}_value=\$${ac_var}
1321 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1322 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323 done
1324
1325 #
1326 # Report the --help message.
1327 #
1328 if test "$ac_init_help" = "long"; then
1329 # Omit some internal or obsolete options to make the list less imposing.
1330 # This message is too long to be a string in the A/UX 3.1 sh.
1331 cat <<_ACEOF
1332 \`configure' configures libfontenc 1.1.2 to adapt to many kinds of systems.
1333
1334 Usage: $0 [OPTION]... [VAR=VALUE]...
1335
1336 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1337 VAR=VALUE. See below for descriptions of some of the useful variables.
1338
1339 Defaults for the options are specified in brackets.
1340
1341 Configuration:
1342 -h, --help display this help and exit
1343 --help=short display options specific to this package
1344 --help=recursive display the short help of all the included packages
1345 -V, --version display version information and exit
1346 -q, --quiet, --silent do not print \`checking ...' messages
1347 --cache-file=FILE cache test results in FILE [disabled]
1348 -C, --config-cache alias for \`--cache-file=config.cache'
1349 -n, --no-create do not create output files
1350 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351
1352 Installation directories:
1353 --prefix=PREFIX install architecture-independent files in PREFIX
1354 [$ac_default_prefix]
1355 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1356 [PREFIX]
1357
1358 By default, \`make install' will install all the files in
1359 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1360 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1361 for instance \`--prefix=\$HOME'.
1362
1363 For better control, use the options below.
1364
1365 Fine tuning of the installation directories:
1366 --bindir=DIR user executables [EPREFIX/bin]
1367 --sbindir=DIR system admin executables [EPREFIX/sbin]
1368 --libexecdir=DIR program executables [EPREFIX/libexec]
1369 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1370 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1371 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1372 --libdir=DIR object code libraries [EPREFIX/lib]
1373 --includedir=DIR C header files [PREFIX/include]
1374 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1375 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1376 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1377 --infodir=DIR info documentation [DATAROOTDIR/info]
1378 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1379 --mandir=DIR man documentation [DATAROOTDIR/man]
1380 --docdir=DIR documentation root [DATAROOTDIR/doc/libfontenc]
1381 --htmldir=DIR html documentation [DOCDIR]
1382 --dvidir=DIR dvi documentation [DOCDIR]
1383 --pdfdir=DIR pdf documentation [DOCDIR]
1384 --psdir=DIR ps documentation [DOCDIR]
1385 _ACEOF
1386
1387 cat <<\_ACEOF
1388
1389 Program names:
1390 --program-prefix=PREFIX prepend PREFIX to installed program names
1391 --program-suffix=SUFFIX append SUFFIX to installed program names
1392 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393
1394 System types:
1395 --build=BUILD configure for building on BUILD [guessed]
1396 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1397 _ACEOF
1398 fi
1399
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of libfontenc 1.1.2:";;
1403 esac
1404 cat <<\_ACEOF
1405
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-shared[=PKGS] build shared libraries [default=yes]
1411 --enable-static[=PKGS] build static libraries [default=yes]
1412 --enable-fast-install[=PKGS]
1413 optimize for fast installation [default=yes]
1414 --disable-dependency-tracking speeds up one-time build
1415 --enable-dependency-tracking do not reject slow dependency extractors
1416 --disable-libtool-lock avoid locking (might break parallel builds)
1417 --disable-selective-werror
1418 Turn off selective compiler errors. (default:
1419 enabled)
1420 --enable-strict-compilation
1421 Enable all warnings from compiler and make them
1422 errors (default: disabled)
1423 --enable-silent-rules less verbose build output (undo: `make V=1')
1424 --disable-silent-rules verbose build output (undo: `make V=0')
1425
1426 Optional Packages:
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-sysroot=DIR Search for dependent libraries within DIR
1433 (or the compiler's sysroot if not specified).
1434 --with-fontrootdir=DIR Path to root directory for font files
1435 --with-encodingsdir=DIR Path to encodings files [FONTROOTDIR/encodings]
1436 --with-lint Use a lint-style source code checker (default:
1437 disabled)
1438
1439 Some influential environment variables:
1440 CC C compiler command
1441 CFLAGS C compiler flags
1442 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1443 nonstandard directory <lib dir>
1444 LIBS libraries to pass to the linker, e.g. -l<library>
1445 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1446 you have headers in a nonstandard directory <include dir>
1447 CPP C preprocessor
1448 PKG_CONFIG path to pkg-config utility
1449 FONTENC_CFLAGS
1450 C compiler flags for FONTENC, overriding pkg-config
1451 FONTENC_LIBS
1452 linker flags for FONTENC, overriding pkg-config
1453 LINT Path to a lint-style command
1454 LINT_FLAGS Flags for the lint-style command
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 libfontenc configure 1.1.2
1523 generated by GNU Autoconf 2.68
1524
1525 Copyright (C) 2010 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 $as_test_x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
1798 # ---------------------------------------------
1799 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1800 # accordingly.
1801 ac_fn_c_check_decl ()
1802 {
1803 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1804 as_decl_name=`echo $2|sed 's/ *(.*//'`
1805 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1807 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1808 if eval \${$3+:} false; then :
1809 $as_echo_n "(cached) " >&6
1810 else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812 /* end confdefs.h. */
1813 $4
1814 int
1815 main ()
1816 {
1817 #ifndef $as_decl_name
1818 #ifdef __cplusplus
1819 (void) $as_decl_use;
1820 #else
1821 (void) $as_decl_name;
1822 #endif
1823 #endif
1824
1825 ;
1826 return 0;
1827 }
1828 _ACEOF
1829 if ac_fn_c_try_compile "$LINENO"; then :
1830 eval "$3=yes"
1831 else
1832 eval "$3=no"
1833 fi
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 fi
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
1841 } # ac_fn_c_check_decl
1842
1843 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1844 # -------------------------------------------------------
1845 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1846 # the include files in INCLUDES and setting the cache variable VAR
1847 # accordingly.
1848 ac_fn_c_check_header_mongrel ()
1849 {
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if eval \${$3+:} false; then :
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1853 $as_echo_n "checking for $2... " >&6; }
1854 if eval \${$3+:} false; then :
1855 $as_echo_n "(cached) " >&6
1856 fi
1857 eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859 $as_echo "$ac_res" >&6; }
1860 else
1861 # Is the header compilable?
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1863 $as_echo_n "checking $2 usability... " >&6; }
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 #include <$2>
1868 _ACEOF
1869 if ac_fn_c_try_compile "$LINENO"; then :
1870 ac_header_compiler=yes
1871 else
1872 ac_header_compiler=no
1873 fi
1874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1876 $as_echo "$ac_header_compiler" >&6; }
1877
1878 # Is the header present?
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1880 $as_echo_n "checking $2 presence... " >&6; }
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 #include <$2>
1884 _ACEOF
1885 if ac_fn_c_try_cpp "$LINENO"; then :
1886 ac_header_preproc=yes
1887 else
1888 ac_header_preproc=no
1889 fi
1890 rm -f conftest.err conftest.i conftest.$ac_ext
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1892 $as_echo "$ac_header_preproc" >&6; }
1893
1894 # So? What about this header?
1895 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896 yes:no: )
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1898 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1900 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1901 ;;
1902 no:yes:* )
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1904 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1906 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1908 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1910 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1912 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1913 ( $as_echo "## ---------------------------------------------------------------------- ##
1914 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=xorg ##
1915 ## ---------------------------------------------------------------------- ##"
1916 ) | sed "s/^/$as_me: WARNING: /" >&2
1917 ;;
1918 esac
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1920 $as_echo_n "checking for $2... " >&6; }
1921 if eval \${$3+:} false; then :
1922 $as_echo_n "(cached) " >&6
1923 else
1924 eval "$3=\$ac_header_compiler"
1925 fi
1926 eval ac_res=\$$3
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1928 $as_echo "$ac_res" >&6; }
1929 fi
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
1932 } # ac_fn_c_check_header_mongrel
1933 cat >config.log <<_ACEOF
1934 This file contains any messages produced by compilers while
1935 running configure, to aid debugging if configure makes a mistake.
1936
1937 It was created by libfontenc $as_me 1.1.2, which was
1938 generated by GNU Autoconf 2.68. Invocation command line was
1939
1940 $ $0 $@
1941
1942 _ACEOF
1943 exec 5>>config.log
1944 {
1945 cat <<_ASUNAME
1946 ## --------- ##
1947 ## Platform. ##
1948 ## --------- ##
1949
1950 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1951 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1952 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1953 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1954 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
1956 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1957 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1958
1959 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1960 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1961 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1962 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1963 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1964 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1965 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1966
1967 _ASUNAME
1968
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1971 do
1972 IFS=$as_save_IFS
1973 test -z "$as_dir" && as_dir=.
1974 $as_echo "PATH: $as_dir"
1975 done
1976 IFS=$as_save_IFS
1977
1978 } >&5
1979
1980 cat >&5 <<_ACEOF
1981
1982
1983 ## ----------- ##
1984 ## Core tests. ##
1985 ## ----------- ##
1986
1987 _ACEOF
1988
1989
1990 # Keep a trace of the command line.
1991 # Strip out --no-create and --no-recursion so they do not pile up.
1992 # Strip out --silent because we don't want to record it for future runs.
1993 # Also quote any args containing shell meta-characters.
1994 # Make two passes to allow for proper duplicate-argument suppression.
1995 ac_configure_args=
1996 ac_configure_args0=
1997 ac_configure_args1=
1998 ac_must_keep_next=false
1999 for ac_pass in 1 2
2000 do
2001 for ac_arg
2002 do
2003 case $ac_arg in
2004 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2006 | -silent | --silent | --silen | --sile | --sil)
2007 continue ;;
2008 *\'*)
2009 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2010 esac
2011 case $ac_pass in
2012 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2013 2)
2014 as_fn_append ac_configure_args1 " '$ac_arg'"
2015 if test $ac_must_keep_next = true; then
2016 ac_must_keep_next=false # Got value, back to normal.
2017 else
2018 case $ac_arg in
2019 *=* | --config-cache | -C | -disable-* | --disable-* \
2020 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2021 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2022 | -with-* | --with-* | -without-* | --without-* | --x)
2023 case "$ac_configure_args0 " in
2024 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2025 esac
2026 ;;
2027 -* ) ac_must_keep_next=true ;;
2028 esac
2029 fi
2030 as_fn_append ac_configure_args " '$ac_arg'"
2031 ;;
2032 esac
2033 done
2034 done
2035 { ac_configure_args0=; unset ac_configure_args0;}
2036 { ac_configure_args1=; unset ac_configure_args1;}
2037
2038 # When interrupted or exit'd, cleanup temporary files, and complete
2039 # config.log. We remove comments because anyway the quotes in there
2040 # would cause problems or look ugly.
2041 # WARNING: Use '\'' to represent an apostrophe within the trap.
2042 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2043 trap 'exit_status=$?
2044 # Save into config.log some information that might help in debugging.
2045 {
2046 echo
2047
2048 $as_echo "## ---------------- ##
2049 ## Cache variables. ##
2050 ## ---------------- ##"
2051 echo
2052 # The following way of writing the cache mishandles newlines in values,
2053 (
2054 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2055 eval ac_val=\$$ac_var
2056 case $ac_val in #(
2057 *${as_nl}*)
2058 case $ac_var in #(
2059 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2060 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2061 esac
2062 case $ac_var in #(
2063 _ | IFS | as_nl) ;; #(
2064 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2065 *) { eval $ac_var=; unset $ac_var;} ;;
2066 esac ;;
2067 esac
2068 done
2069 (set) 2>&1 |
2070 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2071 *${as_nl}ac_space=\ *)
2072 sed -n \
2073 "s/'\''/'\''\\\\'\'''\''/g;
2074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2075 ;; #(
2076 *)
2077 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2078 ;;
2079 esac |
2080 sort
2081 )
2082 echo
2083
2084 $as_echo "## ----------------- ##
2085 ## Output variables. ##
2086 ## ----------------- ##"
2087 echo
2088 for ac_var in $ac_subst_vars
2089 do
2090 eval ac_val=\$$ac_var
2091 case $ac_val in
2092 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093 esac
2094 $as_echo "$ac_var='\''$ac_val'\''"
2095 done | sort
2096 echo
2097
2098 if test -n "$ac_subst_files"; then
2099 $as_echo "## ------------------- ##
2100 ## File substitutions. ##
2101 ## ------------------- ##"
2102 echo
2103 for ac_var in $ac_subst_files
2104 do
2105 eval ac_val=\$$ac_var
2106 case $ac_val in
2107 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108 esac
2109 $as_echo "$ac_var='\''$ac_val'\''"
2110 done | sort
2111 echo
2112 fi
2113
2114 if test -s confdefs.h; then
2115 $as_echo "## ----------- ##
2116 ## confdefs.h. ##
2117 ## ----------- ##"
2118 echo
2119 cat confdefs.h
2120 echo
2121 fi
2122 test "$ac_signal" != 0 &&
2123 $as_echo "$as_me: caught signal $ac_signal"
2124 $as_echo "$as_me: exit $exit_status"
2125 } >&5
2126 rm -f core *.core core.conftest.* &&
2127 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2128 exit $exit_status
2129 ' 0
2130 for ac_signal in 1 2 13 15; do
2131 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2132 done
2133 ac_signal=0
2134
2135 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2136 rm -f -r conftest* confdefs.h
2137
2138 $as_echo "/* confdefs.h */" > confdefs.h
2139
2140 # Predefined preprocessor variables.
2141
2142 cat >>confdefs.h <<_ACEOF
2143 #define PACKAGE_NAME "$PACKAGE_NAME"
2144 _ACEOF
2145
2146 cat >>confdefs.h <<_ACEOF
2147 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2148 _ACEOF
2149
2150 cat >>confdefs.h <<_ACEOF
2151 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2152 _ACEOF
2153
2154 cat >>confdefs.h <<_ACEOF
2155 #define PACKAGE_STRING "$PACKAGE_STRING"
2156 _ACEOF
2157
2158 cat >>confdefs.h <<_ACEOF
2159 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2160 _ACEOF
2161
2162 cat >>confdefs.h <<_ACEOF
2163 #define PACKAGE_URL "$PACKAGE_URL"
2164 _ACEOF
2165
2166
2167 # Let the site file select an alternate cache file if it wants to.
2168 # Prefer an explicitly selected file to automatically selected ones.
2169 ac_site_file1=NONE
2170 ac_site_file2=NONE
2171 if test -n "$CONFIG_SITE"; then
2172 # We do not want a PATH search for config.site.
2173 case $CONFIG_SITE in #((
2174 -*) ac_site_file1=./$CONFIG_SITE;;
2175 */*) ac_site_file1=$CONFIG_SITE;;
2176 *) ac_site_file1=./$CONFIG_SITE;;
2177 esac
2178 elif test "x$prefix" != xNONE; then
2179 ac_site_file1=$prefix/share/config.site
2180 ac_site_file2=$prefix/etc/config.site
2181 else
2182 ac_site_file1=$ac_default_prefix/share/config.site
2183 ac_site_file2=$ac_default_prefix/etc/config.site
2184 fi
2185 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2186 do
2187 test "x$ac_site_file" = xNONE && continue
2188 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2190 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2191 sed 's/^/| /' "$ac_site_file" >&5
2192 . "$ac_site_file" \
2193 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2194 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2195 as_fn_error $? "failed to load site script $ac_site_file
2196 See \`config.log' for more details" "$LINENO" 5; }
2197 fi
2198 done
2199
2200 if test -r "$cache_file"; then
2201 # Some versions of bash will fail to source /dev/null (special files
2202 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2203 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2204 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2205 $as_echo "$as_me: loading cache $cache_file" >&6;}
2206 case $cache_file in
2207 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2208 *) . "./$cache_file";;
2209 esac
2210 fi
2211 else
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2213 $as_echo "$as_me: creating cache $cache_file" >&6;}
2214 >$cache_file
2215 fi
2216
2217 # Check that the precious variables saved in the cache have kept the same
2218 # value.
2219 ac_cache_corrupted=false
2220 for ac_var in $ac_precious_vars; do
2221 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2222 eval ac_new_set=\$ac_env_${ac_var}_set
2223 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2224 eval ac_new_val=\$ac_env_${ac_var}_value
2225 case $ac_old_set,$ac_new_set in
2226 set,)
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2228 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2229 ac_cache_corrupted=: ;;
2230 ,set)
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2232 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2233 ac_cache_corrupted=: ;;
2234 ,);;
2235 *)
2236 if test "x$ac_old_val" != "x$ac_new_val"; then
2237 # differences in whitespace do not lead to failure.
2238 ac_old_val_w=`echo x $ac_old_val`
2239 ac_new_val_w=`echo x $ac_new_val`
2240 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2242 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2243 ac_cache_corrupted=:
2244 else
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2246 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2247 eval $ac_var=\$ac_old_val
2248 fi
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2250 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2252 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2253 fi;;
2254 esac
2255 # Pass precious variables to config.status.
2256 if test "$ac_new_set" = set; then
2257 case $ac_new_val in
2258 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2259 *) ac_arg=$ac_var=$ac_new_val ;;
2260 esac
2261 case " $ac_configure_args " in
2262 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2263 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2264 esac
2265 fi
2266 done
2267 if $ac_cache_corrupted; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2269 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2271 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2272 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273 fi
2274 ## -------------------- ##
2275 ## Main body of script. ##
2276 ## -------------------- ##
2277
2278 ac_ext=c
2279 ac_cpp='$CPP $CPPFLAGS'
2280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2282 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2283
2284
2285
2286 ac_config_headers="$ac_config_headers config.h"
2287
2288
2289 # Initialize Automake
2290 am__api_version='1.11'
2291
2292 ac_aux_dir=
2293 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2294 if test -f "$ac_dir/install-sh"; then
2295 ac_aux_dir=$ac_dir
2296 ac_install_sh="$ac_aux_dir/install-sh -c"
2297 break
2298 elif test -f "$ac_dir/install.sh"; then
2299 ac_aux_dir=$ac_dir
2300 ac_install_sh="$ac_aux_dir/install.sh -c"
2301 break
2302 elif test -f "$ac_dir/shtool"; then
2303 ac_aux_dir=$ac_dir
2304 ac_install_sh="$ac_aux_dir/shtool install -c"
2305 break
2306 fi
2307 done
2308 if test -z "$ac_aux_dir"; then
2309 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2310 fi
2311
2312 # These three variables are undocumented and unsupported,
2313 # and are intended to be withdrawn in a future Autoconf release.
2314 # They can cause serious problems if a builder's source tree is in a directory
2315 # whose full name contains unusual characters.
2316 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2317 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2318 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2319
2320
2321 # Find a good install program. We prefer a C program (faster),
2322 # so one script is as good as another. But avoid the broken or
2323 # incompatible versions:
2324 # SysV /etc/install, /usr/sbin/install
2325 # SunOS /usr/etc/install
2326 # IRIX /sbin/install
2327 # AIX /bin/install
2328 # AmigaOS /C/install, which installs bootblocks on floppy discs
2329 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2330 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2331 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2332 # OS/2's system install, which has a completely different semantic
2333 # ./install, which can be erroneously created by make from ./install.sh.
2334 # Reject install programs that cannot install multiple files.
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2336 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2337 if test -z "$INSTALL"; then
2338 if ${ac_cv_path_install+:} false; then :
2339 $as_echo_n "(cached) " >&6
2340 else
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 # Account for people who put trailing slashes in PATH elements.
2347 case $as_dir/ in #((
2348 ./ | .// | /[cC]/* | \
2349 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2350 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2351 /usr/ucb/* ) ;;
2352 *)
2353 # OSF1 and SCO ODT 3.0 have their own names for install.
2354 # Don't use installbsd from OSF since it installs stuff as root
2355 # by default.
2356 for ac_prog in ginstall scoinst install; do
2357 for ac_exec_ext in '' $ac_executable_extensions; do
2358 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2359 if test $ac_prog = install &&
2360 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2361 # AIX install. It has an incompatible calling convention.
2362 :
2363 elif test $ac_prog = install &&
2364 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2365 # program-specific install script used by HP pwplus--don't use.
2366 :
2367 else
2368 rm -rf conftest.one conftest.two conftest.dir
2369 echo one > conftest.one
2370 echo two > conftest.two
2371 mkdir conftest.dir
2372 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2373 test -s conftest.one && test -s conftest.two &&
2374 test -s conftest.dir/conftest.one &&
2375 test -s conftest.dir/conftest.two
2376 then
2377 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2378 break 3
2379 fi
2380 fi
2381 fi
2382 done
2383 done
2384 ;;
2385 esac
2386
2387 done
2388 IFS=$as_save_IFS
2389
2390 rm -rf conftest.one conftest.two conftest.dir
2391
2392 fi
2393 if test "${ac_cv_path_install+set}" = set; then
2394 INSTALL=$ac_cv_path_install
2395 else
2396 # As a last resort, use the slow shell script. Don't cache a
2397 # value for INSTALL within a source directory, because that will
2398 # break other packages using the cache if that directory is
2399 # removed, or if the value is a relative name.
2400 INSTALL=$ac_install_sh
2401 fi
2402 fi
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2404 $as_echo "$INSTALL" >&6; }
2405
2406 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2407 # It thinks the first close brace ends the variable substitution.
2408 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2409
2410 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2411
2412 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2413
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2415 $as_echo_n "checking whether build environment is sane... " >&6; }
2416 # Just in case
2417 sleep 1
2418 echo timestamp > conftest.file
2419 # Reject unsafe characters in $srcdir or the absolute working directory
2420 # name. Accept space and tab only in the latter.
2421 am_lf='
2422 '
2423 case `pwd` in
2424 *[\\\"\#\$\&\'\`$am_lf]*)
2425 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2426 esac
2427 case $srcdir in
2428 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2429 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2430 esac
2431
2432 # Do `set' in a subshell so we don't clobber the current shell's
2433 # arguments. Must try -L first in case configure is actually a
2434 # symlink; some systems play weird games with the mod time of symlinks
2435 # (eg FreeBSD returns the mod time of the symlink's containing
2436 # directory).
2437 if (
2438 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2439 if test "$*" = "X"; then
2440 # -L didn't work.
2441 set X `ls -t "$srcdir/configure" conftest.file`
2442 fi
2443 rm -f conftest.file
2444 if test "$*" != "X $srcdir/configure conftest.file" \
2445 && test "$*" != "X conftest.file $srcdir/configure"; then
2446
2447 # If neither matched, then we have a broken ls. This can happen
2448 # if, for instance, CONFIG_SHELL is bash and it inherits a
2449 # broken ls alias from the environment. This has actually
2450 # happened. Such a system could not be considered "sane".
2451 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2452 alias in your environment" "$LINENO" 5
2453 fi
2454
2455 test "$2" = conftest.file
2456 )
2457 then
2458 # Ok.
2459 :
2460 else
2461 as_fn_error $? "newly created file is older than distributed files!
2462 Check your system clock" "$LINENO" 5
2463 fi
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2465 $as_echo "yes" >&6; }
2466 test "$program_prefix" != NONE &&
2467 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2468 # Use a double $ so make ignores it.
2469 test "$program_suffix" != NONE &&
2470 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2471 # Double any \ or $.
2472 # By default was `s,x,x', remove it if useless.
2473 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2474 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2475
2476 # expand $ac_aux_dir to an absolute path
2477 am_aux_dir=`cd $ac_aux_dir && pwd`
2478
2479 if test x"${MISSING+set}" != xset; then
2480 case $am_aux_dir in
2481 *\ * | *\ *)
2482 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2483 *)
2484 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2485 esac
2486 fi
2487 # Use eval to expand $SHELL
2488 if eval "$MISSING --run true"; then
2489 am_missing_run="$MISSING --run "
2490 else
2491 am_missing_run=
2492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2493 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2494 fi
2495
2496 if test x"${install_sh}" != xset; then
2497 case $am_aux_dir in
2498 *\ * | *\ *)
2499 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2500 *)
2501 install_sh="\${SHELL} $am_aux_dir/install-sh"
2502 esac
2503 fi
2504
2505 # Installed binaries are usually stripped using `strip' when the user
2506 # run `make install-strip'. However `strip' might not be the right
2507 # tool to use in cross-compilation environments, therefore Automake
2508 # will honor the `STRIP' environment variable to overrule this program.
2509 if test "$cross_compiling" != no; then
2510 if test -n "$ac_tool_prefix"; then
2511 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2512 set dummy ${ac_tool_prefix}strip; ac_word=$2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2514 $as_echo_n "checking for $ac_word... " >&6; }
2515 if ${ac_cv_prog_STRIP+:} false; then :
2516 $as_echo_n "(cached) " >&6
2517 else
2518 if test -n "$STRIP"; then
2519 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2520 else
2521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522 for as_dir in $PATH
2523 do
2524 IFS=$as_save_IFS
2525 test -z "$as_dir" && as_dir=.
2526 for ac_exec_ext in '' $ac_executable_extensions; do
2527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2528 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2530 break 2
2531 fi
2532 done
2533 done
2534 IFS=$as_save_IFS
2535
2536 fi
2537 fi
2538 STRIP=$ac_cv_prog_STRIP
2539 if test -n "$STRIP"; then
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2541 $as_echo "$STRIP" >&6; }
2542 else
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2544 $as_echo "no" >&6; }
2545 fi
2546
2547
2548 fi
2549 if test -z "$ac_cv_prog_STRIP"; then
2550 ac_ct_STRIP=$STRIP
2551 # Extract the first word of "strip", so it can be a program name with args.
2552 set dummy strip; ac_word=$2
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2554 $as_echo_n "checking for $ac_word... " >&6; }
2555 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2556 $as_echo_n "(cached) " >&6
2557 else
2558 if test -n "$ac_ct_STRIP"; then
2559 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2560 else
2561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562 for as_dir in $PATH
2563 do
2564 IFS=$as_save_IFS
2565 test -z "$as_dir" && as_dir=.
2566 for ac_exec_ext in '' $ac_executable_extensions; do
2567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2568 ac_cv_prog_ac_ct_STRIP="strip"
2569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2570 break 2
2571 fi
2572 done
2573 done
2574 IFS=$as_save_IFS
2575
2576 fi
2577 fi
2578 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2579 if test -n "$ac_ct_STRIP"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2581 $as_echo "$ac_ct_STRIP" >&6; }
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2584 $as_echo "no" >&6; }
2585 fi
2586
2587 if test "x$ac_ct_STRIP" = x; then
2588 STRIP=":"
2589 else
2590 case $cross_compiling:$ac_tool_warned in
2591 yes:)
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2593 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2594 ac_tool_warned=yes ;;
2595 esac
2596 STRIP=$ac_ct_STRIP
2597 fi
2598 else
2599 STRIP="$ac_cv_prog_STRIP"
2600 fi
2601
2602 fi
2603 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2604
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2606 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2607 if test -z "$MKDIR_P"; then
2608 if ${ac_cv_path_mkdir+:} false; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_prog in mkdir gmkdir; do
2617 for ac_exec_ext in '' $ac_executable_extensions; do
2618 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2619 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2620 'mkdir (GNU coreutils) '* | \
2621 'mkdir (coreutils) '* | \
2622 'mkdir (fileutils) '4.1*)
2623 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2624 break 3;;
2625 esac
2626 done
2627 done
2628 done
2629 IFS=$as_save_IFS
2630
2631 fi
2632
2633 test -d ./--version && rmdir ./--version
2634 if test "${ac_cv_path_mkdir+set}" = set; then
2635 MKDIR_P="$ac_cv_path_mkdir -p"
2636 else
2637 # As a last resort, use the slow shell script. Don't cache a
2638 # value for MKDIR_P within a source directory, because that will
2639 # break other packages using the cache if that directory is
2640 # removed, or if the value is a relative name.
2641 MKDIR_P="$ac_install_sh -d"
2642 fi
2643 fi
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2645 $as_echo "$MKDIR_P" >&6; }
2646
2647 mkdir_p="$MKDIR_P"
2648 case $mkdir_p in
2649 [\\/$]* | ?:[\\/]*) ;;
2650 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2651 esac
2652
2653 for ac_prog in gawk mawk nawk awk
2654 do
2655 # Extract the first word of "$ac_prog", so it can be a program name with args.
2656 set dummy $ac_prog; ac_word=$2
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2658 $as_echo_n "checking for $ac_word... " >&6; }
2659 if ${ac_cv_prog_AWK+:} false; then :
2660 $as_echo_n "(cached) " >&6
2661 else
2662 if test -n "$AWK"; then
2663 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2664 else
2665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666 for as_dir in $PATH
2667 do
2668 IFS=$as_save_IFS
2669 test -z "$as_dir" && as_dir=.
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2672 ac_cv_prog_AWK="$ac_prog"
2673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2674 break 2
2675 fi
2676 done
2677 done
2678 IFS=$as_save_IFS
2679
2680 fi
2681 fi
2682 AWK=$ac_cv_prog_AWK
2683 if test -n "$AWK"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2685 $as_echo "$AWK" >&6; }
2686 else
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2688 $as_echo "no" >&6; }
2689 fi
2690
2691
2692 test -n "$AWK" && break
2693 done
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2696 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2697 set x ${MAKE-make}
2698 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2699 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2700 $as_echo_n "(cached) " >&6
2701 else
2702 cat >conftest.make <<\_ACEOF
2703 SHELL = /bin/sh
2704 all:
2705 @echo '@@@%%%=$(MAKE)=@@@%%%'
2706 _ACEOF
2707 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2708 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2709 *@@@%%%=?*=@@@%%%*)
2710 eval ac_cv_prog_make_${ac_make}_set=yes;;
2711 *)
2712 eval ac_cv_prog_make_${ac_make}_set=no;;
2713 esac
2714 rm -f conftest.make
2715 fi
2716 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2718 $as_echo "yes" >&6; }
2719 SET_MAKE=
2720 else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2722 $as_echo "no" >&6; }
2723 SET_MAKE="MAKE=${MAKE-make}"
2724 fi
2725
2726 rm -rf .tst 2>/dev/null
2727 mkdir .tst 2>/dev/null
2728 if test -d .tst; then
2729 am__leading_dot=.
2730 else
2731 am__leading_dot=_
2732 fi
2733 rmdir .tst 2>/dev/null
2734
2735 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2736 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2737 # is not polluted with repeated "-I."
2738 am__isrc=' -I$(srcdir)'
2739 # test to see if srcdir already configured
2740 if test -f $srcdir/config.status; then
2741 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2742 fi
2743 fi
2744
2745 # test whether we have cygpath
2746 if test -z "$CYGPATH_W"; then
2747 if (cygpath --version) >/dev/null 2>/dev/null; then
2748 CYGPATH_W='cygpath -w'
2749 else
2750 CYGPATH_W=echo
2751 fi
2752 fi
2753
2754
2755 # Define the identity of the package.
2756 PACKAGE='libfontenc'
2757 VERSION='1.1.2'
2758
2759
2760 cat >>confdefs.h <<_ACEOF
2761 #define PACKAGE "$PACKAGE"
2762 _ACEOF
2763
2764
2765 cat >>confdefs.h <<_ACEOF
2766 #define VERSION "$VERSION"
2767 _ACEOF
2768
2769 # Some tools Automake needs.
2770
2771 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2772
2773
2774 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2775
2776
2777 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2778
2779
2780 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2781
2782
2783 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2784
2785 # We need awk for the "check" target. The system "awk" is bad on
2786 # some platforms.
2787 # Always define AMTAR for backward compatibility.
2788
2789 AMTAR=${AMTAR-"${am_missing_run}tar"}
2790
2791 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2792
2793
2794
2795
2796
2797
2798 # Initialize libtool
2799 case `pwd` in
2800 *\ * | *\ *)
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2802 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2803 esac
2804
2805
2806
2807 macro_version='2.4.2'
2808 macro_revision='1.3337'
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822 ltmain="$ac_aux_dir/ltmain.sh"
2823
2824 # Make sure we can run config.sub.
2825 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2826 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2827
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2829 $as_echo_n "checking build system type... " >&6; }
2830 if ${ac_cv_build+:} false; then :
2831 $as_echo_n "(cached) " >&6
2832 else
2833 ac_build_alias=$build_alias
2834 test "x$ac_build_alias" = x &&
2835 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2836 test "x$ac_build_alias" = x &&
2837 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2838 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2839 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2840
2841 fi
2842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2843 $as_echo "$ac_cv_build" >&6; }
2844 case $ac_cv_build in
2845 *-*-*) ;;
2846 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2847 esac
2848 build=$ac_cv_build
2849 ac_save_IFS=$IFS; IFS='-'
2850 set x $ac_cv_build
2851 shift
2852 build_cpu=$1
2853 build_vendor=$2
2854 shift; shift
2855 # Remember, the first character of IFS is used to create $*,
2856 # except with old shells:
2857 build_os=$*
2858 IFS=$ac_save_IFS
2859 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2860
2861
2862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2863 $as_echo_n "checking host system type... " >&6; }
2864 if ${ac_cv_host+:} false; then :
2865 $as_echo_n "(cached) " >&6
2866 else
2867 if test "x$host_alias" = x; then
2868 ac_cv_host=$ac_cv_build
2869 else
2870 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2871 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2872 fi
2873
2874 fi
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2876 $as_echo "$ac_cv_host" >&6; }
2877 case $ac_cv_host in
2878 *-*-*) ;;
2879 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2880 esac
2881 host=$ac_cv_host
2882 ac_save_IFS=$IFS; IFS='-'
2883 set x $ac_cv_host
2884 shift
2885 host_cpu=$1
2886 host_vendor=$2
2887 shift; shift
2888 # Remember, the first character of IFS is used to create $*,
2889 # except with old shells:
2890 host_os=$*
2891 IFS=$ac_save_IFS
2892 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2893
2894
2895 # Backslashify metacharacters that are still active within
2896 # double-quoted strings.
2897 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
2898
2899 # Same as above, but do not quote variable references.
2900 double_quote_subst='s/\(["`\\]\)/\\\1/g'
2901
2902 # Sed substitution to delay expansion of an escaped shell variable in a
2903 # double_quote_subst'ed string.
2904 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
2905
2906 # Sed substitution to delay expansion of an escaped single quote.
2907 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
2908
2909 # Sed substitution to avoid accidental globbing in evaled expressions
2910 no_glob_subst='s/\*/\\\*/g'
2911
2912 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
2913 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
2914 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
2915
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
2917 $as_echo_n "checking how to print strings... " >&6; }
2918 # Test print first, because it will be a builtin if present.
2919 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
2920 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
2921 ECHO='print -r --'
2922 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
2923 ECHO='printf %s\n'
2924 else
2925 # Use this function as a fallback that always works.
2926 func_fallback_echo ()
2927 {
2928 eval 'cat <<_LTECHO_EOF
2929 $1
2930 _LTECHO_EOF'
2931 }
2932 ECHO='func_fallback_echo'
2933 fi
2934
2935 # func_echo_all arg...
2936 # Invoke $ECHO with all args, space-separated.
2937 func_echo_all ()
2938 {
2939 $ECHO ""
2940 }
2941
2942 case "$ECHO" in
2943 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
2944 $as_echo "printf" >&6; } ;;
2945 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
2946 $as_echo "print -r" >&6; } ;;
2947 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
2948 $as_echo "cat" >&6; } ;;
2949 esac
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964 DEPDIR="${am__leading_dot}deps"
2965
2966 ac_config_commands="$ac_config_commands depfiles"
2967
2968
2969 am_make=${MAKE-make}
2970 cat > confinc << 'END'
2971 am__doit:
2972 @echo this is the am__doit target
2973 .PHONY: am__doit
2974 END
2975 # If we don't find an include directive, just comment out the code.
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2977 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2978 am__include="#"
2979 am__quote=
2980 _am_result=none
2981 # First try GNU make style include.
2982 echo "include confinc" > confmf
2983 # Ignore all kinds of additional output from `make'.
2984 case `$am_make -s -f confmf 2> /dev/null` in #(
2985 *the\ am__doit\ target*)
2986 am__include=include
2987 am__quote=
2988 _am_result=GNU
2989 ;;
2990 esac
2991 # Now try BSD make style include.
2992 if test "$am__include" = "#"; then
2993 echo '.include "confinc"' > confmf
2994 case `$am_make -s -f confmf 2> /dev/null` in #(
2995 *the\ am__doit\ target*)
2996 am__include=.include
2997 am__quote="\""
2998 _am_result=BSD
2999 ;;
3000 esac
3001 fi
3002
3003
3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3005 $as_echo "$_am_result" >&6; }
3006 rm -f confinc confmf
3007
3008 # Check whether --enable-dependency-tracking was given.
3009 if test "${enable_dependency_tracking+set}" = set; then :
3010 enableval=$enable_dependency_tracking;
3011 fi
3012
3013 if test "x$enable_dependency_tracking" != xno; then
3014 am_depcomp="$ac_aux_dir/depcomp"
3015 AMDEPBACKSLASH='\'
3016 am__nodep='_no'
3017 fi
3018 if test "x$enable_dependency_tracking" != xno; then
3019 AMDEP_TRUE=
3020 AMDEP_FALSE='#'
3021 else
3022 AMDEP_TRUE='#'
3023 AMDEP_FALSE=
3024 fi
3025
3026
3027 ac_ext=c
3028 ac_cpp='$CPP $CPPFLAGS'
3029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3032 if test -n "$ac_tool_prefix"; then
3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3034 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test -n "$CC"; then
3041 ac_cv_prog_CC="$CC" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 CC=$ac_cv_prog_CC
3061 if test -n "$CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063 $as_echo "$CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 fi
3071 if test -z "$ac_cv_prog_CC"; then
3072 ac_ct_CC=$CC
3073 # Extract the first word of "gcc", so it can be a program name with args.
3074 set dummy gcc; ac_word=$2
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076 $as_echo_n "checking for $ac_word... " >&6; }
3077 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 if test -n "$ac_ct_CC"; then
3081 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3082 else
3083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3084 for as_dir in $PATH
3085 do
3086 IFS=$as_save_IFS
3087 test -z "$as_dir" && as_dir=.
3088 for ac_exec_ext in '' $ac_executable_extensions; do
3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3090 ac_cv_prog_ac_ct_CC="gcc"
3091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3092 break 2
3093 fi
3094 done
3095 done
3096 IFS=$as_save_IFS
3097
3098 fi
3099 fi
3100 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3101 if test -n "$ac_ct_CC"; then
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3103 $as_echo "$ac_ct_CC" >&6; }
3104 else
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3106 $as_echo "no" >&6; }
3107 fi
3108
3109 if test "x$ac_ct_CC" = x; then
3110 CC=""
3111 else
3112 case $cross_compiling:$ac_tool_warned in
3113 yes:)
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3115 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3116 ac_tool_warned=yes ;;
3117 esac
3118 CC=$ac_ct_CC
3119 fi
3120 else
3121 CC="$ac_cv_prog_CC"
3122 fi
3123
3124 if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3127 set dummy ${ac_tool_prefix}cc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3143 ac_cv_prog_CC="${ac_tool_prefix}cc"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 CC=$ac_cv_prog_CC
3154 if test -n "$CC"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3156 $as_echo "$CC" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162
3163 fi
3164 fi
3165 if test -z "$CC"; then
3166 # Extract the first word of "cc", so it can be a program name with args.
3167 set dummy cc; ac_word=$2
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3169 $as_echo_n "checking for $ac_word... " >&6; }
3170 if ${ac_cv_prog_CC+:} false; then :
3171 $as_echo_n "(cached) " >&6
3172 else
3173 if test -n "$CC"; then
3174 ac_cv_prog_CC="$CC" # Let the user override the test.
3175 else
3176 ac_prog_rejected=no
3177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3178 for as_dir in $PATH
3179 do
3180 IFS=$as_save_IFS
3181 test -z "$as_dir" && as_dir=.
3182 for ac_exec_ext in '' $ac_executable_extensions; do
3183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3185 ac_prog_rejected=yes
3186 continue
3187 fi
3188 ac_cv_prog_CC="cc"
3189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3190 break 2
3191 fi
3192 done
3193 done
3194 IFS=$as_save_IFS
3195
3196 if test $ac_prog_rejected = yes; then
3197 # We found a bogon in the path, so make sure we never use it.
3198 set dummy $ac_cv_prog_CC
3199 shift
3200 if test $# != 0; then
3201 # We chose a different compiler from the bogus one.
3202 # However, it has the same basename, so the bogon will be chosen
3203 # first if we set CC to just the basename; use the full file name.
3204 shift
3205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3206 fi
3207 fi
3208 fi
3209 fi
3210 CC=$ac_cv_prog_CC
3211 if test -n "$CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3213 $as_echo "$CC" >&6; }
3214 else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216 $as_echo "no" >&6; }
3217 fi
3218
3219
3220 fi
3221 if test -z "$CC"; then
3222 if test -n "$ac_tool_prefix"; then
3223 for ac_prog in cl.exe
3224 do
3225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3228 $as_echo_n "checking for $ac_word... " >&6; }
3229 if ${ac_cv_prog_CC+:} false; then :
3230 $as_echo_n "(cached) " >&6
3231 else
3232 if test -n "$CC"; then
3233 ac_cv_prog_CC="$CC" # Let the user override the test.
3234 else
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH
3237 do
3238 IFS=$as_save_IFS
3239 test -z "$as_dir" && as_dir=.
3240 for ac_exec_ext in '' $ac_executable_extensions; do
3241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3244 break 2
3245 fi
3246 done
3247 done
3248 IFS=$as_save_IFS
3249
3250 fi
3251 fi
3252 CC=$ac_cv_prog_CC
3253 if test -n "$CC"; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3255 $as_echo "$CC" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 fi
3260
3261
3262 test -n "$CC" && break
3263 done
3264 fi
3265 if test -z "$CC"; then
3266 ac_ct_CC=$CC
3267 for ac_prog in cl.exe
3268 do
3269 # Extract the first word of "$ac_prog", so it can be a program name with args.
3270 set dummy $ac_prog; ac_word=$2
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3272 $as_echo_n "checking for $ac_word... " >&6; }
3273 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3274 $as_echo_n "(cached) " >&6
3275 else
3276 if test -n "$ac_ct_CC"; then
3277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3278 else
3279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3280 for as_dir in $PATH
3281 do
3282 IFS=$as_save_IFS
3283 test -z "$as_dir" && as_dir=.
3284 for ac_exec_ext in '' $ac_executable_extensions; do
3285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3286 ac_cv_prog_ac_ct_CC="$ac_prog"
3287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3288 break 2
3289 fi
3290 done
3291 done
3292 IFS=$as_save_IFS
3293
3294 fi
3295 fi
3296 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3297 if test -n "$ac_ct_CC"; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3299 $as_echo "$ac_ct_CC" >&6; }
3300 else
3301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3302 $as_echo "no" >&6; }
3303 fi
3304
3305
3306 test -n "$ac_ct_CC" && break
3307 done
3308
3309 if test "x$ac_ct_CC" = x; then
3310 CC=""
3311 else
3312 case $cross_compiling:$ac_tool_warned in
3313 yes:)
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3316 ac_tool_warned=yes ;;
3317 esac
3318 CC=$ac_ct_CC
3319 fi
3320 fi
3321
3322 fi
3323
3324
3325 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3326 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3327 as_fn_error $? "no acceptable C compiler found in \$PATH
3328 See \`config.log' for more details" "$LINENO" 5; }
3329
3330 # Provide some information about the compiler.
3331 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3332 set X $ac_compile
3333 ac_compiler=$2
3334 for ac_option in --version -v -V -qversion; do
3335 { { ac_try="$ac_compiler $ac_option >&5"
3336 case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339 esac
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341 $as_echo "$ac_try_echo"; } >&5
3342 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343 ac_status=$?
3344 if test -s conftest.err; then
3345 sed '10a\
3346 ... rest of stderr output deleted ...
3347 10q' conftest.err >conftest.er1
3348 cat conftest.er1 >&5
3349 fi
3350 rm -f conftest.er1 conftest.err
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }
3353 done
3354
3355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3356 /* end confdefs.h. */
3357
3358 int
3359 main ()
3360 {
3361
3362 ;
3363 return 0;
3364 }
3365 _ACEOF
3366 ac_clean_files_save=$ac_clean_files
3367 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3368 # Try to create an executable without -o first, disregard a.out.
3369 # It will help us diagnose broken compilers, and finding out an intuition
3370 # of exeext.
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3372 $as_echo_n "checking whether the C compiler works... " >&6; }
3373 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3374
3375 # The possible output files:
3376 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3377
3378 ac_rmfiles=
3379 for ac_file in $ac_files
3380 do
3381 case $ac_file in
3382 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3383 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3384 esac
3385 done
3386 rm -f $ac_rmfiles
3387
3388 if { { ac_try="$ac_link_default"
3389 case "(($ac_try" in
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3392 esac
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link_default") 2>&5
3396 ac_status=$?
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }; then :
3399 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3400 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3401 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3402 # so that the user can short-circuit this test for compilers unknown to
3403 # Autoconf.
3404 for ac_file in $ac_files ''
3405 do
3406 test -f "$ac_file" || continue
3407 case $ac_file in
3408 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3409 ;;
3410 [ab].out )
3411 # We found the default executable, but exeext='' is most
3412 # certainly right.
3413 break;;
3414 *.* )
3415 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3416 then :; else
3417 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3418 fi
3419 # We set ac_cv_exeext here because the later test for it is not
3420 # safe: cross compilers may not add the suffix if given an `-o'
3421 # argument, so we may need to know it at that point already.
3422 # Even if this section looks crufty: it has the advantage of
3423 # actually working.
3424 break;;
3425 * )
3426 break;;
3427 esac
3428 done
3429 test "$ac_cv_exeext" = no && ac_cv_exeext=
3430
3431 else
3432 ac_file=''
3433 fi
3434 if test -z "$ac_file"; then :
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3436 $as_echo "no" >&6; }
3437 $as_echo "$as_me: failed program was:" >&5
3438 sed 's/^/| /' conftest.$ac_ext >&5
3439
3440 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3442 as_fn_error 77 "C compiler cannot create executables
3443 See \`config.log' for more details" "$LINENO" 5; }
3444 else
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3446 $as_echo "yes" >&6; }
3447 fi
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3449 $as_echo_n "checking for C compiler default output file name... " >&6; }
3450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; }
3452 ac_exeext=$ac_cv_exeext
3453
3454 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3455 ac_clean_files=$ac_clean_files_save
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3457 $as_echo_n "checking for suffix of executables... " >&6; }
3458 if { { ac_try="$ac_link"
3459 case "(($ac_try" in
3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461 *) ac_try_echo=$ac_try;;
3462 esac
3463 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464 $as_echo "$ac_try_echo"; } >&5
3465 (eval "$ac_link") 2>&5
3466 ac_status=$?
3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468 test $ac_status = 0; }; then :
3469 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3470 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3471 # work properly (i.e., refer to `conftest.exe'), while it won't with
3472 # `rm'.
3473 for ac_file in conftest.exe conftest conftest.*; do
3474 test -f "$ac_file" || continue
3475 case $ac_file in
3476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3477 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3478 break;;
3479 * ) break;;
3480 esac
3481 done
3482 else
3483 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3486 See \`config.log' for more details" "$LINENO" 5; }
3487 fi
3488 rm -f conftest conftest$ac_cv_exeext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3490 $as_echo "$ac_cv_exeext" >&6; }
3491
3492 rm -f conftest.$ac_ext
3493 EXEEXT=$ac_cv_exeext
3494 ac_exeext=$EXEEXT
3495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3496 /* end confdefs.h. */
3497 #include <stdio.h>
3498 int
3499 main ()
3500 {
3501 FILE *f = fopen ("conftest.out", "w");
3502 return ferror (f) || fclose (f) != 0;
3503
3504 ;
3505 return 0;
3506 }
3507 _ACEOF
3508 ac_clean_files="$ac_clean_files conftest.out"
3509 # Check that the compiler produces executables we can run. If not, either
3510 # the compiler is broken, or we cross compile.
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3512 $as_echo_n "checking whether we are cross compiling... " >&6; }
3513 if test "$cross_compiling" != yes; then
3514 { { ac_try="$ac_link"
3515 case "(($ac_try" in
3516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3517 *) ac_try_echo=$ac_try;;
3518 esac
3519 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3520 $as_echo "$ac_try_echo"; } >&5
3521 (eval "$ac_link") 2>&5
3522 ac_status=$?
3523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3524 test $ac_status = 0; }
3525 if { ac_try='./conftest$ac_cv_exeext'
3526 { { case "(($ac_try" in
3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3528 *) ac_try_echo=$ac_try;;
3529 esac
3530 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3531 $as_echo "$ac_try_echo"; } >&5
3532 (eval "$ac_try") 2>&5
3533 ac_status=$?
3534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3535 test $ac_status = 0; }; }; then
3536 cross_compiling=no
3537 else
3538 if test "$cross_compiling" = maybe; then
3539 cross_compiling=yes
3540 else
3541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3543 as_fn_error $? "cannot run C compiled programs.
3544 If you meant to cross compile, use \`--host'.
3545 See \`config.log' for more details" "$LINENO" 5; }
3546 fi
3547 fi
3548 fi
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3550 $as_echo "$cross_compiling" >&6; }
3551
3552 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3553 ac_clean_files=$ac_clean_files_save
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3555 $as_echo_n "checking for suffix of object files... " >&6; }
3556 if ${ac_cv_objext+:} false; then :
3557 $as_echo_n "(cached) " >&6
3558 else
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3560 /* end confdefs.h. */
3561
3562 int
3563 main ()
3564 {
3565
3566 ;
3567 return 0;
3568 }
3569 _ACEOF
3570 rm -f conftest.o conftest.obj
3571 if { { ac_try="$ac_compile"
3572 case "(($ac_try" in
3573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3574 *) ac_try_echo=$ac_try;;
3575 esac
3576 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3577 $as_echo "$ac_try_echo"; } >&5
3578 (eval "$ac_compile") 2>&5
3579 ac_status=$?
3580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3581 test $ac_status = 0; }; then :
3582 for ac_file in conftest.o conftest.obj conftest.*; do
3583 test -f "$ac_file" || continue;
3584 case $ac_file in
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3586 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3587 break;;
3588 esac
3589 done
3590 else
3591 $as_echo "$as_me: failed program was:" >&5
3592 sed 's/^/| /' conftest.$ac_ext >&5
3593
3594 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3596 as_fn_error $? "cannot compute suffix of object files: cannot compile
3597 See \`config.log' for more details" "$LINENO" 5; }
3598 fi
3599 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3600 fi
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3602 $as_echo "$ac_cv_objext" >&6; }
3603 OBJEXT=$ac_cv_objext
3604 ac_objext=$OBJEXT
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3606 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3607 if ${ac_cv_c_compiler_gnu+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3611 /* end confdefs.h. */
3612
3613 int
3614 main ()
3615 {
3616 #ifndef __GNUC__
3617 choke me
3618 #endif
3619
3620 ;
3621 return 0;
3622 }
3623 _ACEOF
3624 if ac_fn_c_try_compile "$LINENO"; then :
3625 ac_compiler_gnu=yes
3626 else
3627 ac_compiler_gnu=no
3628 fi
3629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3631
3632 fi
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3634 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3635 if test $ac_compiler_gnu = yes; then
3636 GCC=yes
3637 else
3638 GCC=
3639 fi
3640 ac_test_CFLAGS=${CFLAGS+set}
3641 ac_save_CFLAGS=$CFLAGS
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3643 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3644 if ${ac_cv_prog_cc_g+:} false; then :
3645 $as_echo_n "(cached) " >&6
3646 else
3647 ac_save_c_werror_flag=$ac_c_werror_flag
3648 ac_c_werror_flag=yes
3649 ac_cv_prog_cc_g=no
3650 CFLAGS="-g"
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3653
3654 int
3655 main ()
3656 {
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 if ac_fn_c_try_compile "$LINENO"; then :
3663 ac_cv_prog_cc_g=yes
3664 else
3665 CFLAGS=""
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 if ac_fn_c_try_compile "$LINENO"; then :
3678
3679 else
3680 ac_c_werror_flag=$ac_save_c_werror_flag
3681 CFLAGS="-g"
3682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3683 /* end confdefs.h. */
3684
3685 int
3686 main ()
3687 {
3688
3689 ;
3690 return 0;
3691 }
3692 _ACEOF
3693 if ac_fn_c_try_compile "$LINENO"; then :
3694 ac_cv_prog_cc_g=yes
3695 fi
3696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3697 fi
3698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 fi
3700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3701 ac_c_werror_flag=$ac_save_c_werror_flag
3702 fi
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3704 $as_echo "$ac_cv_prog_cc_g" >&6; }
3705 if test "$ac_test_CFLAGS" = set; then
3706 CFLAGS=$ac_save_CFLAGS
3707 elif test $ac_cv_prog_cc_g = yes; then
3708 if test "$GCC" = yes; then
3709 CFLAGS="-g -O2"
3710 else
3711 CFLAGS="-g"
3712 fi
3713 else
3714 if test "$GCC" = yes; then
3715 CFLAGS="-O2"
3716 else
3717 CFLAGS=
3718 fi
3719 fi
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3721 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3722 if ${ac_cv_prog_cc_c89+:} false; then :
3723 $as_echo_n "(cached) " >&6
3724 else
3725 ac_cv_prog_cc_c89=no
3726 ac_save_CC=$CC
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3729 #include <stdarg.h>
3730 #include <stdio.h>
3731 #include <sys/types.h>
3732 #include <sys/stat.h>
3733 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3734 struct buf { int x; };
3735 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3736 static char *e (p, i)
3737 char **p;
3738 int i;
3739 {
3740 return p[i];
3741 }
3742 static char *f (char * (*g) (char **, int), char **p, ...)
3743 {
3744 char *s;
3745 va_list v;
3746 va_start (v,p);
3747 s = g (p, va_arg (v,int));
3748 va_end (v);
3749 return s;
3750 }
3751
3752 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3753 function prototypes and stuff, but not '\xHH' hex character constants.
3754 These don't provoke an error unfortunately, instead are silently treated
3755 as 'x'. The following induces an error, until -std is added to get
3756 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3757 array size at least. It's necessary to write '\x00'==0 to get something
3758 that's true only with -std. */
3759 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3760
3761 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3762 inside strings and character constants. */
3763 #define FOO(x) 'x'
3764 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3765
3766 int test (int i, double x);
3767 struct s1 {int (*f) (int a);};
3768 struct s2 {int (*f) (double a);};
3769 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3770 int argc;
3771 char **argv;
3772 int
3773 main ()
3774 {
3775 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3776 ;
3777 return 0;
3778 }
3779 _ACEOF
3780 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3781 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3782 do
3783 CC="$ac_save_CC $ac_arg"
3784 if ac_fn_c_try_compile "$LINENO"; then :
3785 ac_cv_prog_cc_c89=$ac_arg
3786 fi
3787 rm -f core conftest.err conftest.$ac_objext
3788 test "x$ac_cv_prog_cc_c89" != "xno" && break
3789 done
3790 rm -f conftest.$ac_ext
3791 CC=$ac_save_CC
3792
3793 fi
3794 # AC_CACHE_VAL
3795 case "x$ac_cv_prog_cc_c89" in
3796 x)
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3798 $as_echo "none needed" >&6; } ;;
3799 xno)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3801 $as_echo "unsupported" >&6; } ;;
3802 *)
3803 CC="$CC $ac_cv_prog_cc_c89"
3804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3805 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3806 esac
3807 if test "x$ac_cv_prog_cc_c89" != xno; then :
3808
3809 fi
3810
3811 ac_ext=c
3812 ac_cpp='$CPP $CPPFLAGS'
3813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3816
3817 depcc="$CC" am_compiler_list=
3818
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3820 $as_echo_n "checking dependency style of $depcc... " >&6; }
3821 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3822 $as_echo_n "(cached) " >&6
3823 else
3824 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3825 # We make a subdir and do the tests there. Otherwise we can end up
3826 # making bogus files that we don't know about and never remove. For
3827 # instance it was reported that on HP-UX the gcc test will end up
3828 # making a dummy file named `D' -- because `-MD' means `put the output
3829 # in D'.
3830 rm -rf conftest.dir
3831 mkdir conftest.dir
3832 # Copy depcomp to subdir because otherwise we won't find it if we're
3833 # using a relative directory.
3834 cp "$am_depcomp" conftest.dir
3835 cd conftest.dir
3836 # We will build objects and dependencies in a subdirectory because
3837 # it helps to detect inapplicable dependency modes. For instance
3838 # both Tru64's cc and ICC support -MD to output dependencies as a
3839 # side effect of compilation, but ICC will put the dependencies in
3840 # the current directory while Tru64 will put them in the object
3841 # directory.
3842 mkdir sub
3843
3844 am_cv_CC_dependencies_compiler_type=none
3845 if test "$am_compiler_list" = ""; then
3846 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3847 fi
3848 am__universal=false
3849 case " $depcc " in #(
3850 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3851 esac
3852
3853 for depmode in $am_compiler_list; do
3854 # Setup a source with many dependencies, because some compilers
3855 # like to wrap large dependency lists on column 80 (with \), and
3856 # we should not choose a depcomp mode which is confused by this.
3857 #
3858 # We need to recreate these files for each test, as the compiler may
3859 # overwrite some of them when testing with obscure command lines.
3860 # This happens at least with the AIX C compiler.
3861 : > sub/conftest.c
3862 for i in 1 2 3 4 5 6; do
3863 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3864 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3865 # Solaris 8's {/usr,}/bin/sh.
3866 touch sub/conftst$i.h
3867 done
3868 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3869
3870 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3871 # mode. It turns out that the SunPro C++ compiler does not properly
3872 # handle `-M -o', and we need to detect this. Also, some Intel
3873 # versions had trouble with output in subdirs
3874 am__obj=sub/conftest.${OBJEXT-o}
3875 am__minus_obj="-o $am__obj"
3876 case $depmode in
3877 gcc)
3878 # This depmode causes a compiler race in universal mode.
3879 test "$am__universal" = false || continue
3880 ;;
3881 nosideeffect)
3882 # after this tag, mechanisms are not by side-effect, so they'll
3883 # only be used when explicitly requested
3884 if test "x$enable_dependency_tracking" = xyes; then
3885 continue
3886 else
3887 break
3888 fi
3889 ;;
3890 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3891 # This compiler won't grok `-c -o', but also, the minuso test has
3892 # not run yet. These depmodes are late enough in the game, and
3893 # so weak that their functioning should not be impacted.
3894 am__obj=conftest.${OBJEXT-o}
3895 am__minus_obj=
3896 ;;
3897 none) break ;;
3898 esac
3899 if depmode=$depmode \
3900 source=sub/conftest.c object=$am__obj \
3901 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3902 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3903 >/dev/null 2>conftest.err &&
3904 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3905 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3906 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3907 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3908 # icc doesn't choke on unknown options, it will just issue warnings
3909 # or remarks (even with -Werror). So we grep stderr for any message
3910 # that says an option was ignored or not supported.
3911 # When given -MP, icc 7.0 and 7.1 complain thusly:
3912 # icc: Command line warning: ignoring option '-M'; no argument required
3913 # The diagnosis changed in icc 8.0:
3914 # icc: Command line remark: option '-MP' not supported
3915 if (grep 'ignoring option' conftest.err ||
3916 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3917 am_cv_CC_dependencies_compiler_type=$depmode
3918 break
3919 fi
3920 fi
3921 done
3922
3923 cd ..
3924 rm -rf conftest.dir
3925 else
3926 am_cv_CC_dependencies_compiler_type=none
3927 fi
3928
3929 fi
3930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3931 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3932 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3933
3934 if
3935 test "x$enable_dependency_tracking" != xno \
3936 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3937 am__fastdepCC_TRUE=
3938 am__fastdepCC_FALSE='#'
3939 else
3940 am__fastdepCC_TRUE='#'
3941 am__fastdepCC_FALSE=
3942 fi
3943
3944
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3946 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3947 if ${ac_cv_path_SED+:} false; then :
3948 $as_echo_n "(cached) " >&6
3949 else
3950 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3951 for ac_i in 1 2 3 4 5 6 7; do
3952 ac_script="$ac_script$as_nl$ac_script"
3953 done
3954 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3955 { ac_script=; unset ac_script;}
3956 if test -z "$SED"; then
3957 ac_path_SED_found=false
3958 # Loop through the user's path and test for each of PROGNAME-LIST
3959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960 for as_dir in $PATH
3961 do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_prog in sed gsed; do
3965 for ac_exec_ext in '' $ac_executable_extensions; do
3966 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3967 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3968 # Check for GNU ac_path_SED and select it if it is found.
3969 # Check for GNU $ac_path_SED
3970 case `"$ac_path_SED" --version 2>&1` in
3971 *GNU*)
3972 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3973 *)
3974 ac_count=0
3975 $as_echo_n 0123456789 >"conftest.in"
3976 while :
3977 do
3978 cat "conftest.in" "conftest.in" >"conftest.tmp"
3979 mv "conftest.tmp" "conftest.in"
3980 cp "conftest.in" "conftest.nl"
3981 $as_echo '' >> "conftest.nl"
3982 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3983 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3984 as_fn_arith $ac_count + 1 && ac_count=$as_val
3985 if test $ac_count -gt ${ac_path_SED_max-0}; then
3986 # Best one so far, save it but keep looking for a better one
3987 ac_cv_path_SED="$ac_path_SED"
3988 ac_path_SED_max=$ac_count
3989 fi
3990 # 10*(2^10) chars as input seems more than enough
3991 test $ac_count -gt 10 && break
3992 done
3993 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3994 esac
3995
3996 $ac_path_SED_found && break 3
3997 done
3998 done
3999 done
4000 IFS=$as_save_IFS
4001 if test -z "$ac_cv_path_SED"; then
4002 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4003 fi
4004 else
4005 ac_cv_path_SED=$SED
4006 fi
4007
4008 fi
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4010 $as_echo "$ac_cv_path_SED" >&6; }
4011 SED="$ac_cv_path_SED"
4012 rm -f conftest.sed
4013
4014 test -z "$SED" && SED=sed
4015 Xsed="$SED -e 1s/^X//"
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4028 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4029 if ${ac_cv_path_GREP+:} false; then :
4030 $as_echo_n "(cached) " >&6
4031 else
4032 if test -z "$GREP"; then
4033 ac_path_GREP_found=false
4034 # Loop through the user's path and test for each of PROGNAME-LIST
4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4036 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4037 do
4038 IFS=$as_save_IFS
4039 test -z "$as_dir" && as_dir=.
4040 for ac_prog in grep ggrep; do
4041 for ac_exec_ext in '' $ac_executable_extensions; do
4042 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4044 # Check for GNU ac_path_GREP and select it if it is found.
4045 # Check for GNU $ac_path_GREP
4046 case `"$ac_path_GREP" --version 2>&1` in
4047 *GNU*)
4048 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4049 *)
4050 ac_count=0
4051 $as_echo_n 0123456789 >"conftest.in"
4052 while :
4053 do
4054 cat "conftest.in" "conftest.in" >"conftest.tmp"
4055 mv "conftest.tmp" "conftest.in"
4056 cp "conftest.in" "conftest.nl"
4057 $as_echo 'GREP' >> "conftest.nl"
4058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4060 as_fn_arith $ac_count + 1 && ac_count=$as_val
4061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4062 # Best one so far, save it but keep looking for a better one
4063 ac_cv_path_GREP="$ac_path_GREP"
4064 ac_path_GREP_max=$ac_count
4065 fi
4066 # 10*(2^10) chars as input seems more than enough
4067 test $ac_count -gt 10 && break
4068 done
4069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4070 esac
4071
4072 $ac_path_GREP_found && break 3
4073 done
4074 done
4075 done
4076 IFS=$as_save_IFS
4077 if test -z "$ac_cv_path_GREP"; then
4078 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4079 fi
4080 else
4081 ac_cv_path_GREP=$GREP
4082 fi
4083
4084 fi
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4086 $as_echo "$ac_cv_path_GREP" >&6; }
4087 GREP="$ac_cv_path_GREP"
4088
4089
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4091 $as_echo_n "checking for egrep... " >&6; }
4092 if ${ac_cv_path_EGREP+:} false; then :
4093 $as_echo_n "(cached) " >&6
4094 else
4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4096 then ac_cv_path_EGREP="$GREP -E"
4097 else
4098 if test -z "$EGREP"; then
4099 ac_path_EGREP_found=false
4100 # Loop through the user's path and test for each of PROGNAME-LIST
4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4103 do
4104 IFS=$as_save_IFS
4105 test -z "$as_dir" && as_dir=.
4106 for ac_prog in egrep; do
4107 for ac_exec_ext in '' $ac_executable_extensions; do
4108 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4110 # Check for GNU ac_path_EGREP and select it if it is found.
4111 # Check for GNU $ac_path_EGREP
4112 case `"$ac_path_EGREP" --version 2>&1` in
4113 *GNU*)
4114 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4115 *)
4116 ac_count=0
4117 $as_echo_n 0123456789 >"conftest.in"
4118 while :
4119 do
4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
4121 mv "conftest.tmp" "conftest.in"
4122 cp "conftest.in" "conftest.nl"
4123 $as_echo 'EGREP' >> "conftest.nl"
4124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
4127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4128 # Best one so far, save it but keep looking for a better one
4129 ac_cv_path_EGREP="$ac_path_EGREP"
4130 ac_path_EGREP_max=$ac_count
4131 fi
4132 # 10*(2^10) chars as input seems more than enough
4133 test $ac_count -gt 10 && break
4134 done
4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4136 esac
4137
4138 $ac_path_EGREP_found && break 3
4139 done
4140 done
4141 done
4142 IFS=$as_save_IFS
4143 if test -z "$ac_cv_path_EGREP"; then
4144 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 fi
4146 else
4147 ac_cv_path_EGREP=$EGREP
4148 fi
4149
4150 fi
4151 fi
4152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4153 $as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4155
4156
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4158 $as_echo_n "checking for fgrep... " >&6; }
4159 if ${ac_cv_path_FGREP+:} false; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4163 then ac_cv_path_FGREP="$GREP -F"
4164 else
4165 if test -z "$FGREP"; then
4166 ac_path_FGREP_found=false
4167 # Loop through the user's path and test for each of PROGNAME-LIST
4168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4169 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4170 do
4171 IFS=$as_save_IFS
4172 test -z "$as_dir" && as_dir=.
4173 for ac_prog in fgrep; do
4174 for ac_exec_ext in '' $ac_executable_extensions; do
4175 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4176 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4177 # Check for GNU ac_path_FGREP and select it if it is found.
4178 # Check for GNU $ac_path_FGREP
4179 case `"$ac_path_FGREP" --version 2>&1` in
4180 *GNU*)
4181 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4182 *)
4183 ac_count=0
4184 $as_echo_n 0123456789 >"conftest.in"
4185 while :
4186 do
4187 cat "conftest.in" "conftest.in" >"conftest.tmp"
4188 mv "conftest.tmp" "conftest.in"
4189 cp "conftest.in" "conftest.nl"
4190 $as_echo 'FGREP' >> "conftest.nl"
4191 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4192 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4193 as_fn_arith $ac_count + 1 && ac_count=$as_val
4194 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4195 # Best one so far, save it but keep looking for a better one
4196 ac_cv_path_FGREP="$ac_path_FGREP"
4197 ac_path_FGREP_max=$ac_count
4198 fi
4199 # 10*(2^10) chars as input seems more than enough
4200 test $ac_count -gt 10 && break
4201 done
4202 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4203 esac
4204
4205 $ac_path_FGREP_found && break 3
4206 done
4207 done
4208 done
4209 IFS=$as_save_IFS
4210 if test -z "$ac_cv_path_FGREP"; then
4211 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4212 fi
4213 else
4214 ac_cv_path_FGREP=$FGREP
4215 fi
4216
4217 fi
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4220 $as_echo "$ac_cv_path_FGREP" >&6; }
4221 FGREP="$ac_cv_path_FGREP"
4222
4223
4224 test -z "$GREP" && GREP=grep
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244 # Check whether --with-gnu-ld was given.
4245 if test "${with_gnu_ld+set}" = set; then :
4246 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4247 else
4248 with_gnu_ld=no
4249 fi
4250
4251 ac_prog=ld
4252 if test "$GCC" = yes; then
4253 # Check if gcc -print-prog-name=ld gives a path.
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4255 $as_echo_n "checking for ld used by $CC... " >&6; }
4256 case $host in
4257 *-*-mingw*)
4258 # gcc leaves a trailing carriage return which upsets mingw
4259 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4260 *)
4261 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4262 esac
4263 case $ac_prog in
4264 # Accept absolute paths.
4265 [\\/]* | ?:[\\/]*)
4266 re_direlt='/[^/][^/]*/\.\./'
4267 # Canonicalize the pathname of ld
4268 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4269 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4270 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4271 done
4272 test -z "$LD" && LD="$ac_prog"
4273 ;;
4274 "")
4275 # If it fails, then pretend we aren't using GCC.
4276 ac_prog=ld
4277 ;;
4278 *)
4279 # If it is relative, then search for the first ld in PATH.
4280 with_gnu_ld=unknown
4281 ;;
4282 esac
4283 elif test "$with_gnu_ld" = yes; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4285 $as_echo_n "checking for GNU ld... " >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4288 $as_echo_n "checking for non-GNU ld... " >&6; }
4289 fi
4290 if ${lt_cv_path_LD+:} false; then :
4291 $as_echo_n "(cached) " >&6
4292 else
4293 if test -z "$LD"; then
4294 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4295 for ac_dir in $PATH; do
4296 IFS="$lt_save_ifs"
4297 test -z "$ac_dir" && ac_dir=.
4298 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4299 lt_cv_path_LD="$ac_dir/$ac_prog"
4300 # Check to see if the program is GNU ld. I'd rather use --version,
4301 # but apparently some variants of GNU ld only accept -v.
4302 # Break only if it was the GNU/non-GNU ld that we prefer.
4303 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4304 *GNU* | *'with BFD'*)
4305 test "$with_gnu_ld" != no && break
4306 ;;
4307 *)
4308 test "$with_gnu_ld" != yes && break
4309 ;;
4310 esac
4311 fi
4312 done
4313 IFS="$lt_save_ifs"
4314 else
4315 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4316 fi
4317 fi
4318
4319 LD="$lt_cv_path_LD"
4320 if test -n "$LD"; then
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4322 $as_echo "$LD" >&6; }
4323 else
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4325 $as_echo "no" >&6; }
4326 fi
4327 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4329 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4330 if ${lt_cv_prog_gnu_ld+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4334 case `$LD -v 2>&1 </dev/null` in
4335 *GNU* | *'with BFD'*)
4336 lt_cv_prog_gnu_ld=yes
4337 ;;
4338 *)
4339 lt_cv_prog_gnu_ld=no
4340 ;;
4341 esac
4342 fi
4343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4344 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4345 with_gnu_ld=$lt_cv_prog_gnu_ld
4346
4347
4348
4349
4350
4351
4352
4353
4354
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4356 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4357 if ${lt_cv_path_NM+:} false; then :
4358 $as_echo_n "(cached) " >&6
4359 else
4360 if test -n "$NM"; then
4361 # Let the user override the test.
4362 lt_cv_path_NM="$NM"
4363 else
4364 lt_nm_to_check="${ac_tool_prefix}nm"
4365 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4366 lt_nm_to_check="$lt_nm_to_check nm"
4367 fi
4368 for lt_tmp_nm in $lt_nm_to_check; do
4369 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4370 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4371 IFS="$lt_save_ifs"
4372 test -z "$ac_dir" && ac_dir=.
4373 tmp_nm="$ac_dir/$lt_tmp_nm"
4374 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4375 # Check to see if the nm accepts a BSD-compat flag.
4376 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4377 # nm: unknown option "B" ignored
4378 # Tru64's nm complains that /dev/null is an invalid object file
4379 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4380 */dev/null* | *'Invalid file or object type'*)
4381 lt_cv_path_NM="$tmp_nm -B"
4382 break
4383 ;;
4384 *)
4385 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4386 */dev/null*)
4387 lt_cv_path_NM="$tmp_nm -p"
4388 break
4389 ;;
4390 *)
4391 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4392 continue # so that we can try to find one that supports BSD flags
4393 ;;
4394 esac
4395 ;;
4396 esac
4397 fi
4398 done
4399 IFS="$lt_save_ifs"
4400 done
4401 : ${lt_cv_path_NM=no}
4402 fi
4403 fi
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4405 $as_echo "$lt_cv_path_NM" >&6; }
4406 if test "$lt_cv_path_NM" != "no"; then
4407 NM="$lt_cv_path_NM"
4408 else
4409 # Didn't find any BSD compatible name lister, look for dumpbin.
4410 if test -n "$DUMPBIN"; then :
4411 # Let the user override the test.
4412 else
4413 if test -n "$ac_tool_prefix"; then
4414 for ac_prog in dumpbin "link -dump"
4415 do
4416 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4417 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4419 $as_echo_n "checking for $ac_word... " >&6; }
4420 if ${ac_cv_prog_DUMPBIN+:} false; then :
4421 $as_echo_n "(cached) " >&6
4422 else
4423 if test -n "$DUMPBIN"; then
4424 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4425 else
4426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4427 for as_dir in $PATH
4428 do
4429 IFS=$as_save_IFS
4430 test -z "$as_dir" && as_dir=.
4431 for ac_exec_ext in '' $ac_executable_extensions; do
4432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4433 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4435 break 2
4436 fi
4437 done
4438 done
4439 IFS=$as_save_IFS
4440
4441 fi
4442 fi
4443 DUMPBIN=$ac_cv_prog_DUMPBIN
4444 if test -n "$DUMPBIN"; then
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4446 $as_echo "$DUMPBIN" >&6; }
4447 else
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4449 $as_echo "no" >&6; }
4450 fi
4451
4452
4453 test -n "$DUMPBIN" && break
4454 done
4455 fi
4456 if test -z "$DUMPBIN"; then
4457 ac_ct_DUMPBIN=$DUMPBIN
4458 for ac_prog in dumpbin "link -dump"
4459 do
4460 # Extract the first word of "$ac_prog", so it can be a program name with args.
4461 set dummy $ac_prog; ac_word=$2
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4463 $as_echo_n "checking for $ac_word... " >&6; }
4464 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4465 $as_echo_n "(cached) " >&6
4466 else
4467 if test -n "$ac_ct_DUMPBIN"; then
4468 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4469 else
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4471 for as_dir in $PATH
4472 do
4473 IFS=$as_save_IFS
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4479 break 2
4480 fi
4481 done
4482 done
4483 IFS=$as_save_IFS
4484
4485 fi
4486 fi
4487 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4488 if test -n "$ac_ct_DUMPBIN"; then
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4490 $as_echo "$ac_ct_DUMPBIN" >&6; }
4491 else
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4493 $as_echo "no" >&6; }
4494 fi
4495
4496
4497 test -n "$ac_ct_DUMPBIN" && break
4498 done
4499
4500 if test "x$ac_ct_DUMPBIN" = x; then
4501 DUMPBIN=":"
4502 else
4503 case $cross_compiling:$ac_tool_warned in
4504 yes:)
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4507 ac_tool_warned=yes ;;
4508 esac
4509 DUMPBIN=$ac_ct_DUMPBIN
4510 fi
4511 fi
4512
4513 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4514 *COFF*)
4515 DUMPBIN="$DUMPBIN -symbols"
4516 ;;
4517 *)
4518 DUMPBIN=:
4519 ;;
4520 esac
4521 fi
4522
4523 if test "$DUMPBIN" != ":"; then
4524 NM="$DUMPBIN"
4525 fi
4526 fi
4527 test -z "$NM" && NM=nm
4528
4529
4530
4531
4532
4533
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4535 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4536 if ${lt_cv_nm_interface+:} false; then :
4537 $as_echo_n "(cached) " >&6
4538 else
4539 lt_cv_nm_interface="BSD nm"
4540 echo "int some_variable = 0;" > conftest.$ac_ext
4541 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4542 (eval "$ac_compile" 2>conftest.err)
4543 cat conftest.err >&5
4544 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4545 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4546 cat conftest.err >&5
4547 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4548 cat conftest.out >&5
4549 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4550 lt_cv_nm_interface="MS dumpbin"
4551 fi
4552 rm -f conftest*
4553 fi
4554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4555 $as_echo "$lt_cv_nm_interface" >&6; }
4556
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4558 $as_echo_n "checking whether ln -s works... " >&6; }
4559 LN_S=$as_ln_s
4560 if test "$LN_S" = "ln -s"; then
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4562 $as_echo "yes" >&6; }
4563 else
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4565 $as_echo "no, using $LN_S" >&6; }
4566 fi
4567
4568 # find the maximum length of command line arguments
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4570 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4571 if ${lt_cv_sys_max_cmd_len+:} false; then :
4572 $as_echo_n "(cached) " >&6
4573 else
4574 i=0
4575 teststring="ABCD"
4576
4577 case $build_os in
4578 msdosdjgpp*)
4579 # On DJGPP, this test can blow up pretty badly due to problems in libc
4580 # (any single argument exceeding 2000 bytes causes a buffer overrun
4581 # during glob expansion). Even if it were fixed, the result of this
4582 # check would be larger than it should be.
4583 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4584 ;;
4585
4586 gnu*)
4587 # Under GNU Hurd, this test is not required because there is
4588 # no limit to the length of command line arguments.
4589 # Libtool will interpret -1 as no limit whatsoever
4590 lt_cv_sys_max_cmd_len=-1;
4591 ;;
4592
4593 cygwin* | mingw* | cegcc*)
4594 # On Win9x/ME, this test blows up -- it succeeds, but takes
4595 # about 5 minutes as the teststring grows exponentially.
4596 # Worse, since 9x/ME are not pre-emptively multitasking,
4597 # you end up with a "frozen" computer, even though with patience
4598 # the test eventually succeeds (with a max line length of 256k).
4599 # Instead, let's just punt: use the minimum linelength reported by
4600 # all of the supported platforms: 8192 (on NT/2K/XP).
4601 lt_cv_sys_max_cmd_len=8192;
4602 ;;
4603
4604 mint*)
4605 # On MiNT this can take a long time and run out of memory.
4606 lt_cv_sys_max_cmd_len=8192;
4607 ;;
4608
4609 amigaos*)
4610 # On AmigaOS with pdksh, this test takes hours, literally.
4611 # So we just punt and use a minimum line length of 8192.
4612 lt_cv_sys_max_cmd_len=8192;
4613 ;;
4614
4615 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4616 # This has been around since 386BSD, at least. Likely further.
4617 if test -x /sbin/sysctl; then
4618 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4619 elif test -x /usr/sbin/sysctl; then
4620 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4621 else
4622 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4623 fi
4624 # And add a safety zone
4625 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4626 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4627 ;;
4628
4629 interix*)
4630 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4631 lt_cv_sys_max_cmd_len=196608
4632 ;;
4633
4634 os2*)
4635 # The test takes a long time on OS/2.
4636 lt_cv_sys_max_cmd_len=8192
4637 ;;
4638
4639 osf*)
4640 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4641 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4642 # nice to cause kernel panics so lets avoid the loop below.
4643 # First set a reasonable default.
4644 lt_cv_sys_max_cmd_len=16384
4645 #
4646 if test -x /sbin/sysconfig; then
4647 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4648 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4649 esac
4650 fi
4651 ;;
4652 sco3.2v5*)
4653 lt_cv_sys_max_cmd_len=102400
4654 ;;
4655 sysv5* | sco5v6* | sysv4.2uw2*)
4656 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4657 if test -n "$kargmax"; then
4658 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4659 else
4660 lt_cv_sys_max_cmd_len=32768
4661 fi
4662 ;;
4663 *)
4664 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4665 if test -n "$lt_cv_sys_max_cmd_len"; then
4666 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4667 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4668 else
4669 # Make teststring a little bigger before we do anything with it.
4670 # a 1K string should be a reasonable start.
4671 for i in 1 2 3 4 5 6 7 8 ; do
4672 teststring=$teststring$teststring
4673 done
4674 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4675 # If test is not a shell built-in, we'll probably end up computing a
4676 # maximum length that is only half of the actual maximum length, but
4677 # we can't tell.
4678 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4679 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4680 test $i != 17 # 1/2 MB should be enough
4681 do
4682 i=`expr $i + 1`
4683 teststring=$teststring$teststring
4684 done
4685 # Only check the string length outside the loop.
4686 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4687 teststring=
4688 # Add a significant safety factor because C++ compilers can tack on
4689 # massive amounts of additional arguments before passing them to the
4690 # linker. It appears as though 1/2 is a usable value.
4691 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4692 fi
4693 ;;
4694 esac
4695
4696 fi
4697
4698 if test -n $lt_cv_sys_max_cmd_len ; then
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4700 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4701 else
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4703 $as_echo "none" >&6; }
4704 fi
4705 max_cmd_len=$lt_cv_sys_max_cmd_len
4706
4707
4708
4709
4710
4711
4712 : ${CP="cp -f"}
4713 : ${MV="mv -f"}
4714 : ${RM="rm -f"}
4715
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4717 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4718 # Try some XSI features
4719 xsi_shell=no
4720 ( _lt_dummy="a/b/c"
4721 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4722 = c,a/b,b/c, \
4723 && eval 'test $(( 1 + 1 )) -eq 2 \
4724 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4725 && xsi_shell=yes
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4727 $as_echo "$xsi_shell" >&6; }
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4731 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4732 lt_shell_append=no
4733 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4734 >/dev/null 2>&1 \
4735 && lt_shell_append=yes
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4737 $as_echo "$lt_shell_append" >&6; }
4738
4739
4740 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4741 lt_unset=unset
4742 else
4743 lt_unset=false
4744 fi
4745
4746
4747
4748
4749
4750 # test EBCDIC or ASCII
4751 case `echo X|tr X '\101'` in
4752 A) # ASCII based system
4753 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4754 lt_SP2NL='tr \040 \012'
4755 lt_NL2SP='tr \015\012 \040\040'
4756 ;;
4757 *) # EBCDIC based system
4758 lt_SP2NL='tr \100 \n'
4759 lt_NL2SP='tr \r\n \100\100'
4760 ;;
4761 esac
4762
4763
4764
4765
4766
4767
4768
4769
4770
4771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4772 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4773 if ${lt_cv_to_host_file_cmd+:} false; then :
4774 $as_echo_n "(cached) " >&6
4775 else
4776 case $host in
4777 *-*-mingw* )
4778 case $build in
4779 *-*-mingw* ) # actually msys
4780 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4781 ;;
4782 *-*-cygwin* )
4783 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4784 ;;
4785 * ) # otherwise, assume *nix
4786 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4787 ;;
4788 esac
4789 ;;
4790 *-*-cygwin* )
4791 case $build in
4792 *-*-mingw* ) # actually msys
4793 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4794 ;;
4795 *-*-cygwin* )
4796 lt_cv_to_host_file_cmd=func_convert_file_noop
4797 ;;
4798 * ) # otherwise, assume *nix
4799 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4800 ;;
4801 esac
4802 ;;
4803 * ) # unhandled hosts (and "normal" native builds)
4804 lt_cv_to_host_file_cmd=func_convert_file_noop
4805 ;;
4806 esac
4807
4808 fi
4809
4810 to_host_file_cmd=$lt_cv_to_host_file_cmd
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4812 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
4813
4814
4815
4816
4817
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4819 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4820 if ${lt_cv_to_tool_file_cmd+:} false; then :
4821 $as_echo_n "(cached) " >&6
4822 else
4823 #assume ordinary cross tools, or native build.
4824 lt_cv_to_tool_file_cmd=func_convert_file_noop
4825 case $host in
4826 *-*-mingw* )
4827 case $build in
4828 *-*-mingw* ) # actually msys
4829 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4830 ;;
4831 esac
4832 ;;
4833 esac
4834
4835 fi
4836
4837 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4839 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4840
4841
4842
4843
4844
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4846 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4847 if ${lt_cv_ld_reload_flag+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849 else
4850 lt_cv_ld_reload_flag='-r'
4851 fi
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4853 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4854 reload_flag=$lt_cv_ld_reload_flag
4855 case $reload_flag in
4856 "" | " "*) ;;
4857 *) reload_flag=" $reload_flag" ;;
4858 esac
4859 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4860 case $host_os in
4861 cygwin* | mingw* | pw32* | cegcc*)
4862 if test "$GCC" != yes; then
4863 reload_cmds=false
4864 fi
4865 ;;
4866 darwin*)
4867 if test "$GCC" = yes; then
4868 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4869 else
4870 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4871 fi
4872 ;;
4873 esac
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883 if test -n "$ac_tool_prefix"; then
4884 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4885 set dummy ${ac_tool_prefix}objdump; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_OBJDUMP+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$OBJDUMP"; then
4892 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4901 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 OBJDUMP=$ac_cv_prog_OBJDUMP
4912 if test -n "$OBJDUMP"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
4914 $as_echo "$OBJDUMP" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 fi
4922 if test -z "$ac_cv_prog_OBJDUMP"; then
4923 ac_ct_OBJDUMP=$OBJDUMP
4924 # Extract the first word of "objdump", so it can be a program name with args.
4925 set dummy objdump; ac_word=$2
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4927 $as_echo_n "checking for $ac_word... " >&6; }
4928 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
4929 $as_echo_n "(cached) " >&6
4930 else
4931 if test -n "$ac_ct_OBJDUMP"; then
4932 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
4933 else
4934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4935 for as_dir in $PATH
4936 do
4937 IFS=$as_save_IFS
4938 test -z "$as_dir" && as_dir=.
4939 for ac_exec_ext in '' $ac_executable_extensions; do
4940 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4941 ac_cv_prog_ac_ct_OBJDUMP="objdump"
4942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 break 2
4944 fi
4945 done
4946 done
4947 IFS=$as_save_IFS
4948
4949 fi
4950 fi
4951 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
4952 if test -n "$ac_ct_OBJDUMP"; then
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
4954 $as_echo "$ac_ct_OBJDUMP" >&6; }
4955 else
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4957 $as_echo "no" >&6; }
4958 fi
4959
4960 if test "x$ac_ct_OBJDUMP" = x; then
4961 OBJDUMP="false"
4962 else
4963 case $cross_compiling:$ac_tool_warned in
4964 yes:)
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4966 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4967 ac_tool_warned=yes ;;
4968 esac
4969 OBJDUMP=$ac_ct_OBJDUMP
4970 fi
4971 else
4972 OBJDUMP="$ac_cv_prog_OBJDUMP"
4973 fi
4974
4975 test -z "$OBJDUMP" && OBJDUMP=objdump
4976
4977
4978
4979
4980
4981
4982
4983
4984
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
4986 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4987 if ${lt_cv_deplibs_check_method+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 lt_cv_file_magic_cmd='$MAGIC_CMD'
4991 lt_cv_file_magic_test_file=
4992 lt_cv_deplibs_check_method='unknown'
4993 # Need to set the preceding variable on all platforms that support
4994 # interlibrary dependencies.
4995 # 'none' -- dependencies not supported.
4996 # `unknown' -- same as none, but documents that we really don't know.
4997 # 'pass_all' -- all dependencies passed with no checks.
4998 # 'test_compile' -- check by making test program.
4999 # 'file_magic [[regex]]' -- check by looking for files in library path
5000 # which responds to the $file_magic_cmd with a given extended regex.
5001 # If you have `file' or equivalent on your system and you're not sure
5002 # whether `pass_all' will *always* work, you probably want this one.
5003
5004 case $host_os in
5005 aix[4-9]*)
5006 lt_cv_deplibs_check_method=pass_all
5007 ;;
5008
5009 beos*)
5010 lt_cv_deplibs_check_method=pass_all
5011 ;;
5012
5013 bsdi[45]*)
5014 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5015 lt_cv_file_magic_cmd='/usr/bin/file -L'
5016 lt_cv_file_magic_test_file=/shlib/libc.so
5017 ;;
5018
5019 cygwin*)
5020 # func_win32_libid is a shell function defined in ltmain.sh
5021 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5022 lt_cv_file_magic_cmd='func_win32_libid'
5023 ;;
5024
5025 mingw* | pw32*)
5026 # Base MSYS/MinGW do not provide the 'file' command needed by
5027 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5028 # unless we find 'file', for example because we are cross-compiling.
5029 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5030 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5031 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5032 lt_cv_file_magic_cmd='func_win32_libid'
5033 else
5034 # Keep this pattern in sync with the one in func_win32_libid.
5035 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5036 lt_cv_file_magic_cmd='$OBJDUMP -f'
5037 fi
5038 ;;
5039
5040 cegcc*)
5041 # use the weaker test based on 'objdump'. See mingw*.
5042 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5043 lt_cv_file_magic_cmd='$OBJDUMP -f'
5044 ;;
5045
5046 darwin* | rhapsody*)
5047 lt_cv_deplibs_check_method=pass_all
5048 ;;
5049
5050 freebsd* | dragonfly*)
5051 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5052 case $host_cpu in
5053 i*86 )
5054 # Not sure whether the presence of OpenBSD here was a mistake.
5055 # Let's accept both of them until this is cleared up.
5056 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5057 lt_cv_file_magic_cmd=/usr/bin/file
5058 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5059 ;;
5060 esac
5061 else
5062 lt_cv_deplibs_check_method=pass_all
5063 fi
5064 ;;
5065
5066 gnu*)
5067 lt_cv_deplibs_check_method=pass_all
5068 ;;
5069
5070 haiku*)
5071 lt_cv_deplibs_check_method=pass_all
5072 ;;
5073
5074 hpux10.20* | hpux11*)
5075 lt_cv_file_magic_cmd=/usr/bin/file
5076 case $host_cpu in
5077 ia64*)
5078 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5079 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5080 ;;
5081 hppa*64*)
5082 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]'
5083 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5084 ;;
5085 *)
5086 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5087 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5088 ;;
5089 esac
5090 ;;
5091
5092 interix[3-9]*)
5093 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5094 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5095 ;;
5096
5097 irix5* | irix6* | nonstopux*)
5098 case $LD in
5099 *-32|*"-32 ") libmagic=32-bit;;
5100 *-n32|*"-n32 ") libmagic=N32;;
5101 *-64|*"-64 ") libmagic=64-bit;;
5102 *) libmagic=never-match;;
5103 esac
5104 lt_cv_deplibs_check_method=pass_all
5105 ;;
5106
5107 # This must be glibc/ELF.
5108 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5109 lt_cv_deplibs_check_method=pass_all
5110 ;;
5111
5112 netbsd*)
5113 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5114 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5115 else
5116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5117 fi
5118 ;;
5119
5120 newos6*)
5121 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5122 lt_cv_file_magic_cmd=/usr/bin/file
5123 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5124 ;;
5125
5126 *nto* | *qnx*)
5127 lt_cv_deplibs_check_method=pass_all
5128 ;;
5129
5130 openbsd*)
5131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5132 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5133 else
5134 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5135 fi
5136 ;;
5137
5138 osf3* | osf4* | osf5*)
5139 lt_cv_deplibs_check_method=pass_all
5140 ;;
5141
5142 rdos*)
5143 lt_cv_deplibs_check_method=pass_all
5144 ;;
5145
5146 solaris*)
5147 lt_cv_deplibs_check_method=pass_all
5148 ;;
5149
5150 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5151 lt_cv_deplibs_check_method=pass_all
5152 ;;
5153
5154 sysv4 | sysv4.3*)
5155 case $host_vendor in
5156 motorola)
5157 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]'
5158 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5159 ;;
5160 ncr)
5161 lt_cv_deplibs_check_method=pass_all
5162 ;;
5163 sequent)
5164 lt_cv_file_magic_cmd='/bin/file'
5165 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5166 ;;
5167 sni)
5168 lt_cv_file_magic_cmd='/bin/file'
5169 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5170 lt_cv_file_magic_test_file=/lib/libc.so
5171 ;;
5172 siemens)
5173 lt_cv_deplibs_check_method=pass_all
5174 ;;
5175 pc)
5176 lt_cv_deplibs_check_method=pass_all
5177 ;;
5178 esac
5179 ;;
5180
5181 tpf*)
5182 lt_cv_deplibs_check_method=pass_all
5183 ;;
5184 esac
5185
5186 fi
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5188 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5189
5190 file_magic_glob=
5191 want_nocaseglob=no
5192 if test "$build" = "$host"; then
5193 case $host_os in
5194 mingw* | pw32*)
5195 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5196 want_nocaseglob=yes
5197 else
5198 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5199 fi
5200 ;;
5201 esac
5202 fi
5203
5204 file_magic_cmd=$lt_cv_file_magic_cmd
5205 deplibs_check_method=$lt_cv_deplibs_check_method
5206 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5207
5208
5209
5210
5211
5212
5213
5214
5215
5216
5217
5218
5219
5220
5221
5222
5223
5224
5225
5226
5227
5228
5229 if test -n "$ac_tool_prefix"; then
5230 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5231 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5233 $as_echo_n "checking for $ac_word... " >&6; }
5234 if ${ac_cv_prog_DLLTOOL+:} false; then :
5235 $as_echo_n "(cached) " >&6
5236 else
5237 if test -n "$DLLTOOL"; then
5238 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5239 else
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_exec_ext in '' $ac_executable_extensions; do
5246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5247 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 break 2
5250 fi
5251 done
5252 done
5253 IFS=$as_save_IFS
5254
5255 fi
5256 fi
5257 DLLTOOL=$ac_cv_prog_DLLTOOL
5258 if test -n "$DLLTOOL"; then
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5260 $as_echo "$DLLTOOL" >&6; }
5261 else
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5263 $as_echo "no" >&6; }
5264 fi
5265
5266
5267 fi
5268 if test -z "$ac_cv_prog_DLLTOOL"; then
5269 ac_ct_DLLTOOL=$DLLTOOL
5270 # Extract the first word of "dlltool", so it can be a program name with args.
5271 set dummy dlltool; ac_word=$2
5272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$ac_ct_DLLTOOL"; then
5278 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5298 if test -n "$ac_ct_DLLTOOL"; then
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5300 $as_echo "$ac_ct_DLLTOOL" >&6; }
5301 else
5302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306 if test "x$ac_ct_DLLTOOL" = x; then
5307 DLLTOOL="false"
5308 else
5309 case $cross_compiling:$ac_tool_warned in
5310 yes:)
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5313 ac_tool_warned=yes ;;
5314 esac
5315 DLLTOOL=$ac_ct_DLLTOOL
5316 fi
5317 else
5318 DLLTOOL="$ac_cv_prog_DLLTOOL"
5319 fi
5320
5321 test -z "$DLLTOOL" && DLLTOOL=dlltool
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5333 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5334 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5335 $as_echo_n "(cached) " >&6
5336 else
5337 lt_cv_sharedlib_from_linklib_cmd='unknown'
5338
5339 case $host_os in
5340 cygwin* | mingw* | pw32* | cegcc*)
5341 # two different shell functions defined in ltmain.sh
5342 # decide which to use based on capabilities of $DLLTOOL
5343 case `$DLLTOOL --help 2>&1` in
5344 *--identify-strict*)
5345 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5346 ;;
5347 *)
5348 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5349 ;;
5350 esac
5351 ;;
5352 *)
5353 # fallback: assume linklib IS sharedlib
5354 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5355 ;;
5356 esac
5357
5358 fi
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5360 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5361 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5362 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5363
5364
5365
5366
5367
5368
5369
5370
5371 if test -n "$ac_tool_prefix"; then
5372 for ac_prog in ar
5373 do
5374 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5375 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5377 $as_echo_n "checking for $ac_word... " >&6; }
5378 if ${ac_cv_prog_AR+:} false; then :
5379 $as_echo_n "(cached) " >&6
5380 else
5381 if test -n "$AR"; then
5382 ac_cv_prog_AR="$AR" # Let the user override the test.
5383 else
5384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5385 for as_dir in $PATH
5386 do
5387 IFS=$as_save_IFS
5388 test -z "$as_dir" && as_dir=.
5389 for ac_exec_ext in '' $ac_executable_extensions; do
5390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 break 2
5394 fi
5395 done
5396 done
5397 IFS=$as_save_IFS
5398
5399 fi
5400 fi
5401 AR=$ac_cv_prog_AR
5402 if test -n "$AR"; then
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5404 $as_echo "$AR" >&6; }
5405 else
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5407 $as_echo "no" >&6; }
5408 fi
5409
5410
5411 test -n "$AR" && break
5412 done
5413 fi
5414 if test -z "$AR"; then
5415 ac_ct_AR=$AR
5416 for ac_prog in ar
5417 do
5418 # Extract the first word of "$ac_prog", so it can be a program name with args.
5419 set dummy $ac_prog; ac_word=$2
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5421 $as_echo_n "checking for $ac_word... " >&6; }
5422 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test -n "$ac_ct_AR"; then
5426 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5427 else
5428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5429 for as_dir in $PATH
5430 do
5431 IFS=$as_save_IFS
5432 test -z "$as_dir" && as_dir=.
5433 for ac_exec_ext in '' $ac_executable_extensions; do
5434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5435 ac_cv_prog_ac_ct_AR="$ac_prog"
5436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 break 2
5438 fi
5439 done
5440 done
5441 IFS=$as_save_IFS
5442
5443 fi
5444 fi
5445 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5446 if test -n "$ac_ct_AR"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5448 $as_echo "$ac_ct_AR" >&6; }
5449 else
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5452 fi
5453
5454
5455 test -n "$ac_ct_AR" && break
5456 done
5457
5458 if test "x$ac_ct_AR" = x; then
5459 AR="false"
5460 else
5461 case $cross_compiling:$ac_tool_warned in
5462 yes:)
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5464 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5465 ac_tool_warned=yes ;;
5466 esac
5467 AR=$ac_ct_AR
5468 fi
5469 fi
5470
5471 : ${AR=ar}
5472 : ${AR_FLAGS=cru}
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5485 $as_echo_n "checking for archiver @FILE support... " >&6; }
5486 if ${lt_cv_ar_at_file+:} false; then :
5487 $as_echo_n "(cached) " >&6
5488 else
5489 lt_cv_ar_at_file=no
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5492
5493 int
5494 main ()
5495 {
5496
5497 ;
5498 return 0;
5499 }
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5502 echo conftest.$ac_objext > conftest.lst
5503 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5504 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5505 (eval $lt_ar_try) 2>&5
5506 ac_status=$?
5507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5508 test $ac_status = 0; }
5509 if test "$ac_status" -eq 0; then
5510 # Ensure the archiver fails upon bogus file names.
5511 rm -f conftest.$ac_objext libconftest.a
5512 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5513 (eval $lt_ar_try) 2>&5
5514 ac_status=$?
5515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5516 test $ac_status = 0; }
5517 if test "$ac_status" -ne 0; then
5518 lt_cv_ar_at_file=@
5519 fi
5520 fi
5521 rm -f conftest.* libconftest.a
5522
5523 fi
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5528 $as_echo "$lt_cv_ar_at_file" >&6; }
5529
5530 if test "x$lt_cv_ar_at_file" = xno; then
5531 archiver_list_spec=
5532 else
5533 archiver_list_spec=$lt_cv_ar_at_file
5534 fi
5535
5536
5537
5538
5539
5540
5541
5542 if test -n "$ac_tool_prefix"; then
5543 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5544 set dummy ${ac_tool_prefix}strip; ac_word=$2
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5546 $as_echo_n "checking for $ac_word... " >&6; }
5547 if ${ac_cv_prog_STRIP+:} false; then :
5548 $as_echo_n "(cached) " >&6
5549 else
5550 if test -n "$STRIP"; then
5551 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5552 else
5553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5554 for as_dir in $PATH
5555 do
5556 IFS=$as_save_IFS
5557 test -z "$as_dir" && as_dir=.
5558 for ac_exec_ext in '' $ac_executable_extensions; do
5559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5560 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5562 break 2
5563 fi
5564 done
5565 done
5566 IFS=$as_save_IFS
5567
5568 fi
5569 fi
5570 STRIP=$ac_cv_prog_STRIP
5571 if test -n "$STRIP"; then
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5573 $as_echo "$STRIP" >&6; }
5574 else
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5576 $as_echo "no" >&6; }
5577 fi
5578
5579
5580 fi
5581 if test -z "$ac_cv_prog_STRIP"; then
5582 ac_ct_STRIP=$STRIP
5583 # Extract the first word of "strip", so it can be a program name with args.
5584 set dummy strip; ac_word=$2
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5586 $as_echo_n "checking for $ac_word... " >&6; }
5587 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 if test -n "$ac_ct_STRIP"; then
5591 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5592 else
5593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5594 for as_dir in $PATH
5595 do
5596 IFS=$as_save_IFS
5597 test -z "$as_dir" && as_dir=.
5598 for ac_exec_ext in '' $ac_executable_extensions; do
5599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5600 ac_cv_prog_ac_ct_STRIP="strip"
5601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5602 break 2
5603 fi
5604 done
5605 done
5606 IFS=$as_save_IFS
5607
5608 fi
5609 fi
5610 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5611 if test -n "$ac_ct_STRIP"; then
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5613 $as_echo "$ac_ct_STRIP" >&6; }
5614 else
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5616 $as_echo "no" >&6; }
5617 fi
5618
5619 if test "x$ac_ct_STRIP" = x; then
5620 STRIP=":"
5621 else
5622 case $cross_compiling:$ac_tool_warned in
5623 yes:)
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5626 ac_tool_warned=yes ;;
5627 esac
5628 STRIP=$ac_ct_STRIP
5629 fi
5630 else
5631 STRIP="$ac_cv_prog_STRIP"
5632 fi
5633
5634 test -z "$STRIP" && STRIP=:
5635
5636
5637
5638
5639
5640
5641 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5643 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5645 $as_echo_n "checking for $ac_word... " >&6; }
5646 if ${ac_cv_prog_RANLIB+:} false; then :
5647 $as_echo_n "(cached) " >&6
5648 else
5649 if test -n "$RANLIB"; then
5650 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5651 else
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5653 for as_dir in $PATH
5654 do
5655 IFS=$as_save_IFS
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5661 break 2
5662 fi
5663 done
5664 done
5665 IFS=$as_save_IFS
5666
5667 fi
5668 fi
5669 RANLIB=$ac_cv_prog_RANLIB
5670 if test -n "$RANLIB"; then
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5672 $as_echo "$RANLIB" >&6; }
5673 else
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5675 $as_echo "no" >&6; }
5676 fi
5677
5678
5679 fi
5680 if test -z "$ac_cv_prog_RANLIB"; then
5681 ac_ct_RANLIB=$RANLIB
5682 # Extract the first word of "ranlib", so it can be a program name with args.
5683 set dummy ranlib; ac_word=$2
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5685 $as_echo_n "checking for $ac_word... " >&6; }
5686 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5687 $as_echo_n "(cached) " >&6
5688 else
5689 if test -n "$ac_ct_RANLIB"; then
5690 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5691 else
5692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5693 for as_dir in $PATH
5694 do
5695 IFS=$as_save_IFS
5696 test -z "$as_dir" && as_dir=.
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5699 ac_cv_prog_ac_ct_RANLIB="ranlib"
5700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5701 break 2
5702 fi
5703 done
5704 done
5705 IFS=$as_save_IFS
5706
5707 fi
5708 fi
5709 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5710 if test -n "$ac_ct_RANLIB"; then
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5712 $as_echo "$ac_ct_RANLIB" >&6; }
5713 else
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5715 $as_echo "no" >&6; }
5716 fi
5717
5718 if test "x$ac_ct_RANLIB" = x; then
5719 RANLIB=":"
5720 else
5721 case $cross_compiling:$ac_tool_warned in
5722 yes:)
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5724 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5725 ac_tool_warned=yes ;;
5726 esac
5727 RANLIB=$ac_ct_RANLIB
5728 fi
5729 else
5730 RANLIB="$ac_cv_prog_RANLIB"
5731 fi
5732
5733 test -z "$RANLIB" && RANLIB=:
5734
5735
5736
5737
5738
5739
5740 # Determine commands to create old-style static archives.
5741 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5742 old_postinstall_cmds='chmod 644 $oldlib'
5743 old_postuninstall_cmds=
5744
5745 if test -n "$RANLIB"; then
5746 case $host_os in
5747 openbsd*)
5748 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5749 ;;
5750 *)
5751 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5752 ;;
5753 esac
5754 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5755 fi
5756
5757 case $host_os in
5758 darwin*)
5759 lock_old_archive_extraction=yes ;;
5760 *)
5761 lock_old_archive_extraction=no ;;
5762 esac
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
5794
5795
5796
5797
5798
5799
5800
5801
5802 # If no C compiler was specified, use CC.
5803 LTCC=${LTCC-"$CC"}
5804
5805 # If no C compiler flags were specified, use CFLAGS.
5806 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5807
5808 # Allow CC to be a program name with arguments.
5809 compiler=$CC
5810
5811
5812 # Check for command to grab the raw symbol name followed by C symbol from nm.
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5814 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5815 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5816 $as_echo_n "(cached) " >&6
5817 else
5818
5819 # These are sane defaults that work on at least a few old systems.
5820 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5821
5822 # Character class describing NM global symbol codes.
5823 symcode='[BCDEGRST]'
5824
5825 # Regexp to match symbols that can be accessed directly from C.
5826 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5827
5828 # Define system-specific variables.
5829 case $host_os in
5830 aix*)
5831 symcode='[BCDT]'
5832 ;;
5833 cygwin* | mingw* | pw32* | cegcc*)
5834 symcode='[ABCDGISTW]'
5835 ;;
5836 hpux*)
5837 if test "$host_cpu" = ia64; then
5838 symcode='[ABCDEGRST]'
5839 fi
5840 ;;
5841 irix* | nonstopux*)
5842 symcode='[BCDEGRST]'
5843 ;;
5844 osf*)
5845 symcode='[BCDEGQRST]'
5846 ;;
5847 solaris*)
5848 symcode='[BDRT]'
5849 ;;
5850 sco3.2v5*)
5851 symcode='[DT]'
5852 ;;
5853 sysv4.2uw2*)
5854 symcode='[DT]'
5855 ;;
5856 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5857 symcode='[ABDT]'
5858 ;;
5859 sysv4)
5860 symcode='[DFNSTU]'
5861 ;;
5862 esac
5863
5864 # If we're using GNU nm, then use its standard symbol codes.
5865 case `$NM -V 2>&1` in
5866 *GNU* | *'with BFD'*)
5867 symcode='[ABCDGIRSTW]' ;;
5868 esac
5869
5870 # Transform an extracted symbol line into a proper C declaration.
5871 # Some systems (esp. on ia64) link data and code symbols differently,
5872 # so use this general approach.
5873 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5874
5875 # Transform an extracted symbol line into symbol name and symbol address
5876 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5877 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'"
5878
5879 # Handle CRLF in mingw tool chain
5880 opt_cr=
5881 case $build_os in
5882 mingw*)
5883 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5884 ;;
5885 esac
5886
5887 # Try without a prefix underscore, then with it.
5888 for ac_symprfx in "" "_"; do
5889
5890 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5891 symxfrm="\\1 $ac_symprfx\\2 \\2"
5892
5893 # Write the raw and C identifiers.
5894 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5895 # Fake it for dumpbin and say T for any non-static function
5896 # and D for any global variable.
5897 # Also find C++ and __fastcall symbols from MSVC++,
5898 # which start with @ or ?.
5899 lt_cv_sys_global_symbol_pipe="$AWK '"\
5900 " {last_section=section; section=\$ 3};"\
5901 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
5902 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5903 " \$ 0!~/External *\|/{next};"\
5904 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5905 " {if(hide[section]) next};"\
5906 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5907 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5908 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
5909 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5910 " ' prfx=^$ac_symprfx"
5911 else
5912 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5913 fi
5914 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
5915
5916 # Check to see that the pipe works correctly.
5917 pipe_works=no
5918
5919 rm -f conftest*
5920 cat > conftest.$ac_ext <<_LT_EOF
5921 #ifdef __cplusplus
5922 extern "C" {
5923 #endif
5924 char nm_test_var;
5925 void nm_test_func(void);
5926 void nm_test_func(void){}
5927 #ifdef __cplusplus
5928 }
5929 #endif
5930 int main(){nm_test_var='a';nm_test_func();return(0);}
5931 _LT_EOF
5932
5933 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5934 (eval $ac_compile) 2>&5
5935 ac_status=$?
5936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5937 test $ac_status = 0; }; then
5938 # Now try to grab the symbols.
5939 nlist=conftest.nm
5940 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
5941 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
5942 ac_status=$?
5943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5944 test $ac_status = 0; } && test -s "$nlist"; then
5945 # Try sorting and uniquifying the output.
5946 if sort "$nlist" | uniq > "$nlist"T; then
5947 mv -f "$nlist"T "$nlist"
5948 else
5949 rm -f "$nlist"T
5950 fi
5951
5952 # Make sure that we snagged all the symbols we need.
5953 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5954 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5955 cat <<_LT_EOF > conftest.$ac_ext
5956 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
5957 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
5958 /* DATA imports from DLLs on WIN32 con't be const, because runtime
5959 relocations are performed -- see ld's documentation on pseudo-relocs. */
5960 # define LT_DLSYM_CONST
5961 #elif defined(__osf__)
5962 /* This system does not cope well with relocations in const data. */
5963 # define LT_DLSYM_CONST
5964 #else
5965 # define LT_DLSYM_CONST const
5966 #endif
5967
5968 #ifdef __cplusplus
5969 extern "C" {
5970 #endif
5971
5972 _LT_EOF
5973 # Now generate the symbol file.
5974 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5975
5976 cat <<_LT_EOF >> conftest.$ac_ext
5977
5978 /* The mapping between symbol names and symbols. */
5979 LT_DLSYM_CONST struct {
5980 const char *name;
5981 void *address;
5982 }
5983 lt__PROGRAM__LTX_preloaded_symbols[] =
5984 {
5985 { "@PROGRAM@", (void *) 0 },
5986 _LT_EOF
5987 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5988 cat <<\_LT_EOF >> conftest.$ac_ext
5989 {0, (void *) 0}
5990 };
5991
5992 /* This works around a problem in FreeBSD linker */
5993 #ifdef FREEBSD_WORKAROUND
5994 static const void *lt_preloaded_setup() {
5995 return lt__PROGRAM__LTX_preloaded_symbols;
5996 }
5997 #endif
5998
5999 #ifdef __cplusplus
6000 }
6001 #endif
6002 _LT_EOF
6003 # Now try linking the two files.
6004 mv conftest.$ac_objext conftstm.$ac_objext
6005 lt_globsym_save_LIBS=$LIBS
6006 lt_globsym_save_CFLAGS=$CFLAGS
6007 LIBS="conftstm.$ac_objext"
6008 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6010 (eval $ac_link) 2>&5
6011 ac_status=$?
6012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6013 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6014 pipe_works=yes
6015 fi
6016 LIBS=$lt_globsym_save_LIBS
6017 CFLAGS=$lt_globsym_save_CFLAGS
6018 else
6019 echo "cannot find nm_test_func in $nlist" >&5
6020 fi
6021 else
6022 echo "cannot find nm_test_var in $nlist" >&5
6023 fi
6024 else
6025 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6026 fi
6027 else
6028 echo "$progname: failed program was:" >&5
6029 cat conftest.$ac_ext >&5
6030 fi
6031 rm -rf conftest* conftst*
6032
6033 # Do not use the global_symbol_pipe unless it works.
6034 if test "$pipe_works" = yes; then
6035 break
6036 else
6037 lt_cv_sys_global_symbol_pipe=
6038 fi
6039 done
6040
6041 fi
6042
6043 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6044 lt_cv_sys_global_symbol_to_cdecl=
6045 fi
6046 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6048 $as_echo "failed" >&6; }
6049 else
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6051 $as_echo "ok" >&6; }
6052 fi
6053
6054 # Response file support.
6055 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6056 nm_file_list_spec='@'
6057 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6058 nm_file_list_spec='@'
6059 fi
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080
6081
6082
6083
6084
6085
6086
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6088 $as_echo_n "checking for sysroot... " >&6; }
6089
6090 # Check whether --with-sysroot was given.
6091 if test "${with_sysroot+set}" = set; then :
6092 withval=$with_sysroot;
6093 else
6094 with_sysroot=no
6095 fi
6096
6097
6098 lt_sysroot=
6099 case ${with_sysroot} in #(
6100 yes)
6101 if test "$GCC" = yes; then
6102 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6103 fi
6104 ;; #(
6105 /*)
6106 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6107 ;; #(
6108 no|'')
6109 ;; #(
6110 *)
6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6112 $as_echo "${with_sysroot}" >&6; }
6113 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6114 ;;
6115 esac
6116
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6118 $as_echo "${lt_sysroot:-no}" >&6; }
6119
6120
6121
6122
6123
6124 # Check whether --enable-libtool-lock was given.
6125 if test "${enable_libtool_lock+set}" = set; then :
6126 enableval=$enable_libtool_lock;
6127 fi
6128
6129 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6130
6131 # Some flags need to be propagated to the compiler or linker for good
6132 # libtool support.
6133 case $host in
6134 ia64-*-hpux*)
6135 # Find out which ABI we are using.
6136 echo 'int i;' > conftest.$ac_ext
6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6138 (eval $ac_compile) 2>&5
6139 ac_status=$?
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; }; then
6142 case `/usr/bin/file conftest.$ac_objext` in
6143 *ELF-32*)
6144 HPUX_IA64_MODE="32"
6145 ;;
6146 *ELF-64*)
6147 HPUX_IA64_MODE="64"
6148 ;;
6149 esac
6150 fi
6151 rm -rf conftest*
6152 ;;
6153 *-*-irix6*)
6154 # Find out which ABI we are using.
6155 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6156 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6157 (eval $ac_compile) 2>&5
6158 ac_status=$?
6159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6160 test $ac_status = 0; }; then
6161 if test "$lt_cv_prog_gnu_ld" = yes; then
6162 case `/usr/bin/file conftest.$ac_objext` in
6163 *32-bit*)
6164 LD="${LD-ld} -melf32bsmip"
6165 ;;
6166 *N32*)
6167 LD="${LD-ld} -melf32bmipn32"
6168 ;;
6169 *64-bit*)
6170 LD="${LD-ld} -melf64bmip"
6171 ;;
6172 esac
6173 else
6174 case `/usr/bin/file conftest.$ac_objext` in
6175 *32-bit*)
6176 LD="${LD-ld} -32"
6177 ;;
6178 *N32*)
6179 LD="${LD-ld} -n32"
6180 ;;
6181 *64-bit*)
6182 LD="${LD-ld} -64"
6183 ;;
6184 esac
6185 fi
6186 fi
6187 rm -rf conftest*
6188 ;;
6189
6190 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6191 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6192 # Find out which ABI we are using.
6193 echo 'int i;' > conftest.$ac_ext
6194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6195 (eval $ac_compile) 2>&5
6196 ac_status=$?
6197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6198 test $ac_status = 0; }; then
6199 case `/usr/bin/file conftest.o` in
6200 *32-bit*)
6201 case $host in
6202 x86_64-*kfreebsd*-gnu)
6203 LD="${LD-ld} -m elf_i386_fbsd"
6204 ;;
6205 x86_64-*linux*)
6206 LD="${LD-ld} -m elf_i386"
6207 ;;
6208 ppc64-*linux*|powerpc64-*linux*)
6209 LD="${LD-ld} -m elf32ppclinux"
6210 ;;
6211 s390x-*linux*)
6212 LD="${LD-ld} -m elf_s390"
6213 ;;
6214 sparc64-*linux*)
6215 LD="${LD-ld} -m elf32_sparc"
6216 ;;
6217 esac
6218 ;;
6219 *64-bit*)
6220 case $host in
6221 x86_64-*kfreebsd*-gnu)
6222 LD="${LD-ld} -m elf_x86_64_fbsd"
6223 ;;
6224 x86_64-*linux*)
6225 LD="${LD-ld} -m elf_x86_64"
6226 ;;
6227 ppc*-*linux*|powerpc*-*linux*)
6228 LD="${LD-ld} -m elf64ppc"
6229 ;;
6230 s390*-*linux*|s390*-*tpf*)
6231 LD="${LD-ld} -m elf64_s390"
6232 ;;
6233 sparc*-*linux*)
6234 LD="${LD-ld} -m elf64_sparc"
6235 ;;
6236 esac
6237 ;;
6238 esac
6239 fi
6240 rm -rf conftest*
6241 ;;
6242
6243 *-*-sco3.2v5*)
6244 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6245 SAVE_CFLAGS="$CFLAGS"
6246 CFLAGS="$CFLAGS -belf"
6247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6248 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6249 if ${lt_cv_cc_needs_belf+:} false; then :
6250 $as_echo_n "(cached) " >&6
6251 else
6252 ac_ext=c
6253 ac_cpp='$CPP $CPPFLAGS'
6254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6257
6258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259 /* end confdefs.h. */
6260
6261 int
6262 main ()
6263 {
6264
6265 ;
6266 return 0;
6267 }
6268 _ACEOF
6269 if ac_fn_c_try_link "$LINENO"; then :
6270 lt_cv_cc_needs_belf=yes
6271 else
6272 lt_cv_cc_needs_belf=no
6273 fi
6274 rm -f core conftest.err conftest.$ac_objext \
6275 conftest$ac_exeext conftest.$ac_ext
6276 ac_ext=c
6277 ac_cpp='$CPP $CPPFLAGS'
6278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6281
6282 fi
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6284 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6285 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6286 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6287 CFLAGS="$SAVE_CFLAGS"
6288 fi
6289 ;;
6290 *-*solaris*)
6291 # Find out which ABI we are using.
6292 echo 'int i;' > conftest.$ac_ext
6293 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6294 (eval $ac_compile) 2>&5
6295 ac_status=$?
6296 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297 test $ac_status = 0; }; then
6298 case `/usr/bin/file conftest.o` in
6299 *64-bit*)
6300 case $lt_cv_prog_gnu_ld in
6301 yes*)
6302 case $host in
6303 i?86-*-solaris*)
6304 LD="${LD-ld} -m elf_x86_64"
6305 ;;
6306 sparc*-*-solaris*)
6307 LD="${LD-ld} -m elf64_sparc"
6308 ;;
6309 esac
6310 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6311 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6312 LD="${LD-ld}_sol2"
6313 fi
6314 ;;
6315 *)
6316 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6317 LD="${LD-ld} -64"
6318 fi
6319 ;;
6320 esac
6321 ;;
6322 esac
6323 fi
6324 rm -rf conftest*
6325 ;;
6326 esac
6327
6328 need_locks="$enable_libtool_lock"
6329
6330 if test -n "$ac_tool_prefix"; then
6331 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6332 set dummy ${ac_tool_prefix}mt; ac_word=$2
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6334 $as_echo_n "checking for $ac_word... " >&6; }
6335 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 if test -n "$MANIFEST_TOOL"; then
6339 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6340 else
6341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6342 for as_dir in $PATH
6343 do
6344 IFS=$as_save_IFS
6345 test -z "$as_dir" && as_dir=.
6346 for ac_exec_ext in '' $ac_executable_extensions; do
6347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6348 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6350 break 2
6351 fi
6352 done
6353 done
6354 IFS=$as_save_IFS
6355
6356 fi
6357 fi
6358 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6359 if test -n "$MANIFEST_TOOL"; then
6360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6361 $as_echo "$MANIFEST_TOOL" >&6; }
6362 else
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6364 $as_echo "no" >&6; }
6365 fi
6366
6367
6368 fi
6369 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6370 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6371 # Extract the first word of "mt", so it can be a program name with args.
6372 set dummy mt; ac_word=$2
6373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374 $as_echo_n "checking for $ac_word... " >&6; }
6375 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377 else
6378 if test -n "$ac_ct_MANIFEST_TOOL"; then
6379 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6380 else
6381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382 for as_dir in $PATH
6383 do
6384 IFS=$as_save_IFS
6385 test -z "$as_dir" && as_dir=.
6386 for ac_exec_ext in '' $ac_executable_extensions; do
6387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6388 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 break 2
6391 fi
6392 done
6393 done
6394 IFS=$as_save_IFS
6395
6396 fi
6397 fi
6398 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6399 if test -n "$ac_ct_MANIFEST_TOOL"; then
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6401 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6402 else
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6404 $as_echo "no" >&6; }
6405 fi
6406
6407 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6408 MANIFEST_TOOL=":"
6409 else
6410 case $cross_compiling:$ac_tool_warned in
6411 yes:)
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6414 ac_tool_warned=yes ;;
6415 esac
6416 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6417 fi
6418 else
6419 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6420 fi
6421
6422 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6424 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6425 if ${lt_cv_path_mainfest_tool+:} false; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 lt_cv_path_mainfest_tool=no
6429 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6430 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6431 cat conftest.err >&5
6432 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6433 lt_cv_path_mainfest_tool=yes
6434 fi
6435 rm -f conftest*
6436 fi
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6438 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6439 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6440 MANIFEST_TOOL=:
6441 fi
6442
6443
6444
6445
6446
6447
6448 case $host_os in
6449 rhapsody* | darwin*)
6450 if test -n "$ac_tool_prefix"; then
6451 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6452 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 $as_echo_n "checking for $ac_word... " >&6; }
6455 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6456 $as_echo_n "(cached) " >&6
6457 else
6458 if test -n "$DSYMUTIL"; then
6459 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6460 else
6461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6462 for as_dir in $PATH
6463 do
6464 IFS=$as_save_IFS
6465 test -z "$as_dir" && as_dir=.
6466 for ac_exec_ext in '' $ac_executable_extensions; do
6467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6468 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6470 break 2
6471 fi
6472 done
6473 done
6474 IFS=$as_save_IFS
6475
6476 fi
6477 fi
6478 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6479 if test -n "$DSYMUTIL"; then
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6481 $as_echo "$DSYMUTIL" >&6; }
6482 else
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6484 $as_echo "no" >&6; }
6485 fi
6486
6487
6488 fi
6489 if test -z "$ac_cv_prog_DSYMUTIL"; then
6490 ac_ct_DSYMUTIL=$DSYMUTIL
6491 # Extract the first word of "dsymutil", so it can be a program name with args.
6492 set dummy dsymutil; ac_word=$2
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6494 $as_echo_n "checking for $ac_word... " >&6; }
6495 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6496 $as_echo_n "(cached) " >&6
6497 else
6498 if test -n "$ac_ct_DSYMUTIL"; then
6499 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6500 else
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH
6503 do
6504 IFS=$as_save_IFS
6505 test -z "$as_dir" && as_dir=.
6506 for ac_exec_ext in '' $ac_executable_extensions; do
6507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6508 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6510 break 2
6511 fi
6512 done
6513 done
6514 IFS=$as_save_IFS
6515
6516 fi
6517 fi
6518 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6519 if test -n "$ac_ct_DSYMUTIL"; then
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6521 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6522 else
6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6524 $as_echo "no" >&6; }
6525 fi
6526
6527 if test "x$ac_ct_DSYMUTIL" = x; then
6528 DSYMUTIL=":"
6529 else
6530 case $cross_compiling:$ac_tool_warned in
6531 yes:)
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6533 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6534 ac_tool_warned=yes ;;
6535 esac
6536 DSYMUTIL=$ac_ct_DSYMUTIL
6537 fi
6538 else
6539 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6540 fi
6541
6542 if test -n "$ac_tool_prefix"; then
6543 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6544 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6546 $as_echo_n "checking for $ac_word... " >&6; }
6547 if ${ac_cv_prog_NMEDIT+:} false; then :
6548 $as_echo_n "(cached) " >&6
6549 else
6550 if test -n "$NMEDIT"; then
6551 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6552 else
6553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6554 for as_dir in $PATH
6555 do
6556 IFS=$as_save_IFS
6557 test -z "$as_dir" && as_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6560 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6562 break 2
6563 fi
6564 done
6565 done
6566 IFS=$as_save_IFS
6567
6568 fi
6569 fi
6570 NMEDIT=$ac_cv_prog_NMEDIT
6571 if test -n "$NMEDIT"; then
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6573 $as_echo "$NMEDIT" >&6; }
6574 else
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6576 $as_echo "no" >&6; }
6577 fi
6578
6579
6580 fi
6581 if test -z "$ac_cv_prog_NMEDIT"; then
6582 ac_ct_NMEDIT=$NMEDIT
6583 # Extract the first word of "nmedit", so it can be a program name with args.
6584 set dummy nmedit; ac_word=$2
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6586 $as_echo_n "checking for $ac_word... " >&6; }
6587 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6588 $as_echo_n "(cached) " >&6
6589 else
6590 if test -n "$ac_ct_NMEDIT"; then
6591 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6592 else
6593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 for as_dir in $PATH
6595 do
6596 IFS=$as_save_IFS
6597 test -z "$as_dir" && as_dir=.
6598 for ac_exec_ext in '' $ac_executable_extensions; do
6599 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6600 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6602 break 2
6603 fi
6604 done
6605 done
6606 IFS=$as_save_IFS
6607
6608 fi
6609 fi
6610 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6611 if test -n "$ac_ct_NMEDIT"; then
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6613 $as_echo "$ac_ct_NMEDIT" >&6; }
6614 else
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6616 $as_echo "no" >&6; }
6617 fi
6618
6619 if test "x$ac_ct_NMEDIT" = x; then
6620 NMEDIT=":"
6621 else
6622 case $cross_compiling:$ac_tool_warned in
6623 yes:)
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6625 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6626 ac_tool_warned=yes ;;
6627 esac
6628 NMEDIT=$ac_ct_NMEDIT
6629 fi
6630 else
6631 NMEDIT="$ac_cv_prog_NMEDIT"
6632 fi
6633
6634 if test -n "$ac_tool_prefix"; then
6635 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6636 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6638 $as_echo_n "checking for $ac_word... " >&6; }
6639 if ${ac_cv_prog_LIPO+:} false; then :
6640 $as_echo_n "(cached) " >&6
6641 else
6642 if test -n "$LIPO"; then
6643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6652 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656 done
6657 done
6658 IFS=$as_save_IFS
6659
6660 fi
6661 fi
6662 LIPO=$ac_cv_prog_LIPO
6663 if test -n "$LIPO"; then
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6665 $as_echo "$LIPO" >&6; }
6666 else
6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6668 $as_echo "no" >&6; }
6669 fi
6670
6671
6672 fi
6673 if test -z "$ac_cv_prog_LIPO"; then
6674 ac_ct_LIPO=$LIPO
6675 # Extract the first word of "lipo", so it can be a program name with args.
6676 set dummy lipo; ac_word=$2
6677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6678 $as_echo_n "checking for $ac_word... " >&6; }
6679 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6680 $as_echo_n "(cached) " >&6
6681 else
6682 if test -n "$ac_ct_LIPO"; then
6683 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6684 else
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6687 do
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_prog_ac_ct_LIPO="lipo"
6693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6694 break 2
6695 fi
6696 done
6697 done
6698 IFS=$as_save_IFS
6699
6700 fi
6701 fi
6702 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6703 if test -n "$ac_ct_LIPO"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6705 $as_echo "$ac_ct_LIPO" >&6; }
6706 else
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6708 $as_echo "no" >&6; }
6709 fi
6710
6711 if test "x$ac_ct_LIPO" = x; then
6712 LIPO=":"
6713 else
6714 case $cross_compiling:$ac_tool_warned in
6715 yes:)
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6718 ac_tool_warned=yes ;;
6719 esac
6720 LIPO=$ac_ct_LIPO
6721 fi
6722 else
6723 LIPO="$ac_cv_prog_LIPO"
6724 fi
6725
6726 if test -n "$ac_tool_prefix"; then
6727 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6728 set dummy ${ac_tool_prefix}otool; ac_word=$2
6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6730 $as_echo_n "checking for $ac_word... " >&6; }
6731 if ${ac_cv_prog_OTOOL+:} false; then :
6732 $as_echo_n "(cached) " >&6
6733 else
6734 if test -n "$OTOOL"; then
6735 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6736 else
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6738 for as_dir in $PATH
6739 do
6740 IFS=$as_save_IFS
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 break 2
6747 fi
6748 done
6749 done
6750 IFS=$as_save_IFS
6751
6752 fi
6753 fi
6754 OTOOL=$ac_cv_prog_OTOOL
6755 if test -n "$OTOOL"; then
6756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6757 $as_echo "$OTOOL" >&6; }
6758 else
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6760 $as_echo "no" >&6; }
6761 fi
6762
6763
6764 fi
6765 if test -z "$ac_cv_prog_OTOOL"; then
6766 ac_ct_OTOOL=$OTOOL
6767 # Extract the first word of "otool", so it can be a program name with args.
6768 set dummy otool; ac_word=$2
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6770 $as_echo_n "checking for $ac_word... " >&6; }
6771 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773 else
6774 if test -n "$ac_ct_OTOOL"; then
6775 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6776 else
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6778 for as_dir in $PATH
6779 do
6780 IFS=$as_save_IFS
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_prog_ac_ct_OTOOL="otool"
6785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6786 break 2
6787 fi
6788 done
6789 done
6790 IFS=$as_save_IFS
6791
6792 fi
6793 fi
6794 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6795 if test -n "$ac_ct_OTOOL"; then
6796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6797 $as_echo "$ac_ct_OTOOL" >&6; }
6798 else
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6800 $as_echo "no" >&6; }
6801 fi
6802
6803 if test "x$ac_ct_OTOOL" = x; then
6804 OTOOL=":"
6805 else
6806 case $cross_compiling:$ac_tool_warned in
6807 yes:)
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6809 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6810 ac_tool_warned=yes ;;
6811 esac
6812 OTOOL=$ac_ct_OTOOL
6813 fi
6814 else
6815 OTOOL="$ac_cv_prog_OTOOL"
6816 fi
6817
6818 if test -n "$ac_tool_prefix"; then
6819 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6820 set dummy ${ac_tool_prefix}otool64; ac_word=$2
6821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6822 $as_echo_n "checking for $ac_word... " >&6; }
6823 if ${ac_cv_prog_OTOOL64+:} false; then :
6824 $as_echo_n "(cached) " >&6
6825 else
6826 if test -n "$OTOOL64"; then
6827 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6828 else
6829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6830 for as_dir in $PATH
6831 do
6832 IFS=$as_save_IFS
6833 test -z "$as_dir" && as_dir=.
6834 for ac_exec_ext in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6838 break 2
6839 fi
6840 done
6841 done
6842 IFS=$as_save_IFS
6843
6844 fi
6845 fi
6846 OTOOL64=$ac_cv_prog_OTOOL64
6847 if test -n "$OTOOL64"; then
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6849 $as_echo "$OTOOL64" >&6; }
6850 else
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6852 $as_echo "no" >&6; }
6853 fi
6854
6855
6856 fi
6857 if test -z "$ac_cv_prog_OTOOL64"; then
6858 ac_ct_OTOOL64=$OTOOL64
6859 # Extract the first word of "otool64", so it can be a program name with args.
6860 set dummy otool64; ac_word=$2
6861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6862 $as_echo_n "checking for $ac_word... " >&6; }
6863 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6864 $as_echo_n "(cached) " >&6
6865 else
6866 if test -n "$ac_ct_OTOOL64"; then
6867 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6868 else
6869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 for as_dir in $PATH
6871 do
6872 IFS=$as_save_IFS
6873 test -z "$as_dir" && as_dir=.
6874 for ac_exec_ext in '' $ac_executable_extensions; do
6875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6876 ac_cv_prog_ac_ct_OTOOL64="otool64"
6877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 break 2
6879 fi
6880 done
6881 done
6882 IFS=$as_save_IFS
6883
6884 fi
6885 fi
6886 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6887 if test -n "$ac_ct_OTOOL64"; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6889 $as_echo "$ac_ct_OTOOL64" >&6; }
6890 else
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6892 $as_echo "no" >&6; }
6893 fi
6894
6895 if test "x$ac_ct_OTOOL64" = x; then
6896 OTOOL64=":"
6897 else
6898 case $cross_compiling:$ac_tool_warned in
6899 yes:)
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6901 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6902 ac_tool_warned=yes ;;
6903 esac
6904 OTOOL64=$ac_ct_OTOOL64
6905 fi
6906 else
6907 OTOOL64="$ac_cv_prog_OTOOL64"
6908 fi
6909
6910
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
6937 $as_echo_n "checking for -single_module linker flag... " >&6; }
6938 if ${lt_cv_apple_cc_single_mod+:} false; then :
6939 $as_echo_n "(cached) " >&6
6940 else
6941 lt_cv_apple_cc_single_mod=no
6942 if test -z "${LT_MULTI_MODULE}"; then
6943 # By default we will add the -single_module flag. You can override
6944 # by either setting the environment variable LT_MULTI_MODULE
6945 # non-empty at configure time, or by adding -multi_module to the
6946 # link flags.
6947 rm -rf libconftest.dylib*
6948 echo "int foo(void){return 1;}" > conftest.c
6949 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6950 -dynamiclib -Wl,-single_module conftest.c" >&5
6951 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6952 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6953 _lt_result=$?
6954 # If there is a non-empty error log, and "single_module"
6955 # appears in it, assume the flag caused a linker warning
6956 if test -s conftest.err && $GREP single_module conftest.err; then
6957 cat conftest.err >&5
6958 # Otherwise, if the output was created with a 0 exit code from
6959 # the compiler, it worked.
6960 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
6961 lt_cv_apple_cc_single_mod=yes
6962 else
6963 cat conftest.err >&5
6964 fi
6965 rm -rf libconftest.dylib*
6966 rm -f conftest.*
6967 fi
6968 fi
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
6970 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
6971
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
6973 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
6974 if ${lt_cv_ld_exported_symbols_list+:} false; then :
6975 $as_echo_n "(cached) " >&6
6976 else
6977 lt_cv_ld_exported_symbols_list=no
6978 save_LDFLAGS=$LDFLAGS
6979 echo "_main" > conftest.sym
6980 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6983
6984 int
6985 main ()
6986 {
6987
6988 ;
6989 return 0;
6990 }
6991 _ACEOF
6992 if ac_fn_c_try_link "$LINENO"; then :
6993 lt_cv_ld_exported_symbols_list=yes
6994 else
6995 lt_cv_ld_exported_symbols_list=no
6996 fi
6997 rm -f core conftest.err conftest.$ac_objext \
6998 conftest$ac_exeext conftest.$ac_ext
6999 LDFLAGS="$save_LDFLAGS"
7000
7001 fi
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7003 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7004
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7006 $as_echo_n "checking for -force_load linker flag... " >&6; }
7007 if ${lt_cv_ld_force_load+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009 else
7010 lt_cv_ld_force_load=no
7011 cat > conftest.c << _LT_EOF
7012 int forced_loaded() { return 2;}
7013 _LT_EOF
7014 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7015 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7016 echo "$AR cru libconftest.a conftest.o" >&5
7017 $AR cru libconftest.a conftest.o 2>&5
7018 echo "$RANLIB libconftest.a" >&5
7019 $RANLIB libconftest.a 2>&5
7020 cat > conftest.c << _LT_EOF
7021 int main() { return 0;}
7022 _LT_EOF
7023 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7024 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7025 _lt_result=$?
7026 if test -s conftest.err && $GREP force_load conftest.err; then
7027 cat conftest.err >&5
7028 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7029 lt_cv_ld_force_load=yes
7030 else
7031 cat conftest.err >&5
7032 fi
7033 rm -f conftest.err libconftest.a conftest conftest.c
7034 rm -rf conftest.dSYM
7035
7036 fi
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7038 $as_echo "$lt_cv_ld_force_load" >&6; }
7039 case $host_os in
7040 rhapsody* | darwin1.[012])
7041 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7042 darwin1.*)
7043 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7044 darwin*) # darwin 5.x on
7045 # if running on 10.5 or later, the deployment target defaults
7046 # to the OS version, if on x86, and 10.4, the deployment
7047 # target defaults to 10.4. Don't you love it?
7048 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7049 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7050 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7051 10.[012]*)
7052 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7053 10.*)
7054 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7055 esac
7056 ;;
7057 esac
7058 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7059 _lt_dar_single_mod='$single_module'
7060 fi
7061 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7062 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7063 else
7064 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7065 fi
7066 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7067 _lt_dsymutil='~$DSYMUTIL $lib || :'
7068 else
7069 _lt_dsymutil=
7070 fi
7071 ;;
7072 esac
7073
7074 ac_ext=c
7075 ac_cpp='$CPP $CPPFLAGS'
7076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7080 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7081 # On Suns, sometimes $CPP names a directory.
7082 if test -n "$CPP" && test -d "$CPP"; then
7083 CPP=
7084 fi
7085 if test -z "$CPP"; then
7086 if ${ac_cv_prog_CPP+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088 else
7089 # Double quotes because CPP needs to be expanded
7090 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7091 do
7092 ac_preproc_ok=false
7093 for ac_c_preproc_warn_flag in '' yes
7094 do
7095 # Use a header file that comes with gcc, so configuring glibc
7096 # with a fresh cross-compiler works.
7097 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7098 # <limits.h> exists even on freestanding compilers.
7099 # On the NeXT, cc -E runs the code through the compiler's parser,
7100 # not just through cpp. "Syntax error" is here to catch this case.
7101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7102 /* end confdefs.h. */
7103 #ifdef __STDC__
7104 # include <limits.h>
7105 #else
7106 # include <assert.h>
7107 #endif
7108 Syntax error
7109 _ACEOF
7110 if ac_fn_c_try_cpp "$LINENO"; then :
7111
7112 else
7113 # Broken: fails on valid input.
7114 continue
7115 fi
7116 rm -f conftest.err conftest.i conftest.$ac_ext
7117
7118 # OK, works on sane cases. Now check whether nonexistent headers
7119 # can be detected and how.
7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7121 /* end confdefs.h. */
7122 #include <ac_nonexistent.h>
7123 _ACEOF
7124 if ac_fn_c_try_cpp "$LINENO"; then :
7125 # Broken: success on invalid input.
7126 continue
7127 else
7128 # Passes both tests.
7129 ac_preproc_ok=:
7130 break
7131 fi
7132 rm -f conftest.err conftest.i conftest.$ac_ext
7133
7134 done
7135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7136 rm -f conftest.i conftest.err conftest.$ac_ext
7137 if $ac_preproc_ok; then :
7138 break
7139 fi
7140
7141 done
7142 ac_cv_prog_CPP=$CPP
7143
7144 fi
7145 CPP=$ac_cv_prog_CPP
7146 else
7147 ac_cv_prog_CPP=$CPP
7148 fi
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7150 $as_echo "$CPP" >&6; }
7151 ac_preproc_ok=false
7152 for ac_c_preproc_warn_flag in '' yes
7153 do
7154 # Use a header file that comes with gcc, so configuring glibc
7155 # with a fresh cross-compiler works.
7156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7157 # <limits.h> exists even on freestanding compilers.
7158 # On the NeXT, cc -E runs the code through the compiler's parser,
7159 # not just through cpp. "Syntax error" is here to catch this case.
7160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7161 /* end confdefs.h. */
7162 #ifdef __STDC__
7163 # include <limits.h>
7164 #else
7165 # include <assert.h>
7166 #endif
7167 Syntax error
7168 _ACEOF
7169 if ac_fn_c_try_cpp "$LINENO"; then :
7170
7171 else
7172 # Broken: fails on valid input.
7173 continue
7174 fi
7175 rm -f conftest.err conftest.i conftest.$ac_ext
7176
7177 # OK, works on sane cases. Now check whether nonexistent headers
7178 # can be detected and how.
7179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7180 /* end confdefs.h. */
7181 #include <ac_nonexistent.h>
7182 _ACEOF
7183 if ac_fn_c_try_cpp "$LINENO"; then :
7184 # Broken: success on invalid input.
7185 continue
7186 else
7187 # Passes both tests.
7188 ac_preproc_ok=:
7189 break
7190 fi
7191 rm -f conftest.err conftest.i conftest.$ac_ext
7192
7193 done
7194 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7195 rm -f conftest.i conftest.err conftest.$ac_ext
7196 if $ac_preproc_ok; then :
7197
7198 else
7199 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7201 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7202 See \`config.log' for more details" "$LINENO" 5; }
7203 fi
7204
7205 ac_ext=c
7206 ac_cpp='$CPP $CPPFLAGS'
7207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7210
7211
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7213 $as_echo_n "checking for ANSI C header files... " >&6; }
7214 if ${ac_cv_header_stdc+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7218 /* end confdefs.h. */
7219 #include <stdlib.h>
7220 #include <stdarg.h>
7221 #include <string.h>
7222 #include <float.h>
7223
7224 int
7225 main ()
7226 {
7227
7228 ;
7229 return 0;
7230 }
7231 _ACEOF
7232 if ac_fn_c_try_compile "$LINENO"; then :
7233 ac_cv_header_stdc=yes
7234 else
7235 ac_cv_header_stdc=no
7236 fi
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238
7239 if test $ac_cv_header_stdc = yes; then
7240 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7242 /* end confdefs.h. */
7243 #include <string.h>
7244
7245 _ACEOF
7246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7247 $EGREP "memchr" >/dev/null 2>&1; then :
7248
7249 else
7250 ac_cv_header_stdc=no
7251 fi
7252 rm -f conftest*
7253
7254 fi
7255
7256 if test $ac_cv_header_stdc = yes; then
7257 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259 /* end confdefs.h. */
7260 #include <stdlib.h>
7261
7262 _ACEOF
7263 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7264 $EGREP "free" >/dev/null 2>&1; then :
7265
7266 else
7267 ac_cv_header_stdc=no
7268 fi
7269 rm -f conftest*
7270
7271 fi
7272
7273 if test $ac_cv_header_stdc = yes; then
7274 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7275 if test "$cross_compiling" = yes; then :
7276 :
7277 else
7278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* end confdefs.h. */
7280 #include <ctype.h>
7281 #include <stdlib.h>
7282 #if ((' ' & 0x0FF) == 0x020)
7283 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7284 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7285 #else
7286 # define ISLOWER(c) \
7287 (('a' <= (c) && (c) <= 'i') \
7288 || ('j' <= (c) && (c) <= 'r') \
7289 || ('s' <= (c) && (c) <= 'z'))
7290 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7291 #endif
7292
7293 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7294 int
7295 main ()
7296 {
7297 int i;
7298 for (i = 0; i < 256; i++)
7299 if (XOR (islower (i), ISLOWER (i))
7300 || toupper (i) != TOUPPER (i))
7301 return 2;
7302 return 0;
7303 }
7304 _ACEOF
7305 if ac_fn_c_try_run "$LINENO"; then :
7306
7307 else
7308 ac_cv_header_stdc=no
7309 fi
7310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7311 conftest.$ac_objext conftest.beam conftest.$ac_ext
7312 fi
7313
7314 fi
7315 fi
7316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7317 $as_echo "$ac_cv_header_stdc" >&6; }
7318 if test $ac_cv_header_stdc = yes; then
7319
7320 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7321
7322 fi
7323
7324 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7325 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7326 inttypes.h stdint.h unistd.h
7327 do :
7328 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7329 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7330 "
7331 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7332 cat >>confdefs.h <<_ACEOF
7333 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7334 _ACEOF
7335
7336 fi
7337
7338 done
7339
7340
7341 for ac_header in dlfcn.h
7342 do :
7343 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7344 "
7345 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7346 cat >>confdefs.h <<_ACEOF
7347 #define HAVE_DLFCN_H 1
7348 _ACEOF
7349
7350 fi
7351
7352 done
7353
7354
7355
7356
7357
7358 # Set options
7359
7360
7361
7362 enable_dlopen=no
7363
7364
7365 enable_win32_dll=no
7366
7367
7368 # Check whether --enable-shared was given.
7369 if test "${enable_shared+set}" = set; then :
7370 enableval=$enable_shared; p=${PACKAGE-default}
7371 case $enableval in
7372 yes) enable_shared=yes ;;
7373 no) enable_shared=no ;;
7374 *)
7375 enable_shared=no
7376 # Look at the argument we got. We use all the common list separators.
7377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7378 for pkg in $enableval; do
7379 IFS="$lt_save_ifs"
7380 if test "X$pkg" = "X$p"; then
7381 enable_shared=yes
7382 fi
7383 done
7384 IFS="$lt_save_ifs"
7385 ;;
7386 esac
7387 else
7388 enable_shared=yes
7389 fi
7390
7391
7392
7393
7394
7395
7396
7397
7398
7399 # Check whether --enable-static was given.
7400 if test "${enable_static+set}" = set; then :
7401 enableval=$enable_static; p=${PACKAGE-default}
7402 case $enableval in
7403 yes) enable_static=yes ;;
7404 no) enable_static=no ;;
7405 *)
7406 enable_static=no
7407 # Look at the argument we got. We use all the common list separators.
7408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409 for pkg in $enableval; do
7410 IFS="$lt_save_ifs"
7411 if test "X$pkg" = "X$p"; then
7412 enable_static=yes
7413 fi
7414 done
7415 IFS="$lt_save_ifs"
7416 ;;
7417 esac
7418 else
7419 enable_static=yes
7420 fi
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 # Check whether --with-pic was given.
7432 if test "${with_pic+set}" = set; then :
7433 withval=$with_pic; lt_p=${PACKAGE-default}
7434 case $withval in
7435 yes|no) pic_mode=$withval ;;
7436 *)
7437 pic_mode=default
7438 # Look at the argument we got. We use all the common list separators.
7439 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7440 for lt_pkg in $withval; do
7441 IFS="$lt_save_ifs"
7442 if test "X$lt_pkg" = "X$lt_p"; then
7443 pic_mode=yes
7444 fi
7445 done
7446 IFS="$lt_save_ifs"
7447 ;;
7448 esac
7449 else
7450 pic_mode=default
7451 fi
7452
7453
7454 test -z "$pic_mode" && pic_mode=default
7455
7456
7457
7458
7459
7460
7461
7462 # Check whether --enable-fast-install was given.
7463 if test "${enable_fast_install+set}" = set; then :
7464 enableval=$enable_fast_install; p=${PACKAGE-default}
7465 case $enableval in
7466 yes) enable_fast_install=yes ;;
7467 no) enable_fast_install=no ;;
7468 *)
7469 enable_fast_install=no
7470 # Look at the argument we got. We use all the common list separators.
7471 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7472 for pkg in $enableval; do
7473 IFS="$lt_save_ifs"
7474 if test "X$pkg" = "X$p"; then
7475 enable_fast_install=yes
7476 fi
7477 done
7478 IFS="$lt_save_ifs"
7479 ;;
7480 esac
7481 else
7482 enable_fast_install=yes
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495 # This can be used to rebuild libtool when needed
7496 LIBTOOL_DEPS="$ltmain"
7497
7498 # Always use our own libtool.
7499 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530 test -z "$LN_S" && LN_S="ln -s"
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545 if test -n "${ZSH_VERSION+set}" ; then
7546 setopt NO_GLOB_SUBST
7547 fi
7548
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7550 $as_echo_n "checking for objdir... " >&6; }
7551 if ${lt_cv_objdir+:} false; then :
7552 $as_echo_n "(cached) " >&6
7553 else
7554 rm -f .libs 2>/dev/null
7555 mkdir .libs 2>/dev/null
7556 if test -d .libs; then
7557 lt_cv_objdir=.libs
7558 else
7559 # MS-DOS does not allow filenames that begin with a dot.
7560 lt_cv_objdir=_libs
7561 fi
7562 rmdir .libs 2>/dev/null
7563 fi
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7565 $as_echo "$lt_cv_objdir" >&6; }
7566 objdir=$lt_cv_objdir
7567
7568
7569
7570
7571
7572 cat >>confdefs.h <<_ACEOF
7573 #define LT_OBJDIR "$lt_cv_objdir/"
7574 _ACEOF
7575
7576
7577
7578
7579 case $host_os in
7580 aix3*)
7581 # AIX sometimes has problems with the GCC collect2 program. For some
7582 # reason, if we set the COLLECT_NAMES environment variable, the problems
7583 # vanish in a puff of smoke.
7584 if test "X${COLLECT_NAMES+set}" != Xset; then
7585 COLLECT_NAMES=
7586 export COLLECT_NAMES
7587 fi
7588 ;;
7589 esac
7590
7591 # Global variables:
7592 ofile=libtool
7593 can_build_shared=yes
7594
7595 # All known linkers require a `.a' archive for static linking (except MSVC,
7596 # which needs '.lib').
7597 libext=a
7598
7599 with_gnu_ld="$lt_cv_prog_gnu_ld"
7600
7601 old_CC="$CC"
7602 old_CFLAGS="$CFLAGS"
7603
7604 # Set sane defaults for various variables
7605 test -z "$CC" && CC=cc
7606 test -z "$LTCC" && LTCC=$CC
7607 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7608 test -z "$LD" && LD=ld
7609 test -z "$ac_objext" && ac_objext=o
7610
7611 for cc_temp in $compiler""; do
7612 case $cc_temp in
7613 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7614 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7615 \-*) ;;
7616 *) break;;
7617 esac
7618 done
7619 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7620
7621
7622 # Only perform the check for file, if the check method requires it
7623 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7624 case $deplibs_check_method in
7625 file_magic*)
7626 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7628 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7629 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 case $MAGIC_CMD in
7633 [\\/*] | ?:[\\/]*)
7634 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7635 ;;
7636 *)
7637 lt_save_MAGIC_CMD="$MAGIC_CMD"
7638 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7639 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7640 for ac_dir in $ac_dummy; do
7641 IFS="$lt_save_ifs"
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f $ac_dir/${ac_tool_prefix}file; then
7644 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7645 if test -n "$file_magic_test_file"; then
7646 case $deplibs_check_method in
7647 "file_magic "*)
7648 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7649 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7650 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7651 $EGREP "$file_magic_regex" > /dev/null; then
7652 :
7653 else
7654 cat <<_LT_EOF 1>&2
7655
7656 *** Warning: the command libtool uses to detect shared libraries,
7657 *** $file_magic_cmd, produces output that libtool cannot recognize.
7658 *** The result is that libtool may fail to recognize shared libraries
7659 *** as such. This will affect the creation of libtool libraries that
7660 *** depend on shared libraries, but programs linked with such libtool
7661 *** libraries will work regardless of this problem. Nevertheless, you
7662 *** may want to report the problem to your system manager and/or to
7663 *** bug-libtool@gnu.org
7664
7665 _LT_EOF
7666 fi ;;
7667 esac
7668 fi
7669 break
7670 fi
7671 done
7672 IFS="$lt_save_ifs"
7673 MAGIC_CMD="$lt_save_MAGIC_CMD"
7674 ;;
7675 esac
7676 fi
7677
7678 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7679 if test -n "$MAGIC_CMD"; then
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7681 $as_echo "$MAGIC_CMD" >&6; }
7682 else
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7684 $as_echo "no" >&6; }
7685 fi
7686
7687
7688
7689
7690
7691 if test -z "$lt_cv_path_MAGIC_CMD"; then
7692 if test -n "$ac_tool_prefix"; then
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7694 $as_echo_n "checking for file... " >&6; }
7695 if ${lt_cv_path_MAGIC_CMD+:} false; then :
7696 $as_echo_n "(cached) " >&6
7697 else
7698 case $MAGIC_CMD in
7699 [\\/*] | ?:[\\/]*)
7700 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7701 ;;
7702 *)
7703 lt_save_MAGIC_CMD="$MAGIC_CMD"
7704 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7706 for ac_dir in $ac_dummy; do
7707 IFS="$lt_save_ifs"
7708 test -z "$ac_dir" && ac_dir=.
7709 if test -f $ac_dir/file; then
7710 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7711 if test -n "$file_magic_test_file"; then
7712 case $deplibs_check_method in
7713 "file_magic "*)
7714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7715 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7717 $EGREP "$file_magic_regex" > /dev/null; then
7718 :
7719 else
7720 cat <<_LT_EOF 1>&2
7721
7722 *** Warning: the command libtool uses to detect shared libraries,
7723 *** $file_magic_cmd, produces output that libtool cannot recognize.
7724 *** The result is that libtool may fail to recognize shared libraries
7725 *** as such. This will affect the creation of libtool libraries that
7726 *** depend on shared libraries, but programs linked with such libtool
7727 *** libraries will work regardless of this problem. Nevertheless, you
7728 *** may want to report the problem to your system manager and/or to
7729 *** bug-libtool@gnu.org
7730
7731 _LT_EOF
7732 fi ;;
7733 esac
7734 fi
7735 break
7736 fi
7737 done
7738 IFS="$lt_save_ifs"
7739 MAGIC_CMD="$lt_save_MAGIC_CMD"
7740 ;;
7741 esac
7742 fi
7743
7744 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7745 if test -n "$MAGIC_CMD"; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7747 $as_echo "$MAGIC_CMD" >&6; }
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750 $as_echo "no" >&6; }
7751 fi
7752
7753
7754 else
7755 MAGIC_CMD=:
7756 fi
7757 fi
7758
7759 fi
7760 ;;
7761 esac
7762
7763 # Use C for the default configuration in the libtool script
7764
7765 lt_save_CC="$CC"
7766 ac_ext=c
7767 ac_cpp='$CPP $CPPFLAGS'
7768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7771
7772
7773 # Source file extension for C test sources.
7774 ac_ext=c
7775
7776 # Object file extension for compiled C test sources.
7777 objext=o
7778 objext=$objext
7779
7780 # Code to be used in simple compile tests
7781 lt_simple_compile_test_code="int some_variable = 0;"
7782
7783 # Code to be used in simple link tests
7784 lt_simple_link_test_code='int main(){return(0);}'
7785
7786
7787
7788
7789
7790
7791
7792 # If no C compiler was specified, use CC.
7793 LTCC=${LTCC-"$CC"}
7794
7795 # If no C compiler flags were specified, use CFLAGS.
7796 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7797
7798 # Allow CC to be a program name with arguments.
7799 compiler=$CC
7800
7801 # Save the default compiler, since it gets overwritten when the other
7802 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7803 compiler_DEFAULT=$CC
7804
7805 # save warnings/boilerplate of simple test code
7806 ac_outfile=conftest.$ac_objext
7807 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7808 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7809 _lt_compiler_boilerplate=`cat conftest.err`
7810 $RM conftest*
7811
7812 ac_outfile=conftest.$ac_objext
7813 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7814 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7815 _lt_linker_boilerplate=`cat conftest.err`
7816 $RM -r conftest*
7817
7818
7819 if test -n "$compiler"; then
7820
7821 lt_prog_compiler_no_builtin_flag=
7822
7823 if test "$GCC" = yes; then
7824 case $cc_basename in
7825 nvcc*)
7826 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7827 *)
7828 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7829 esac
7830
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7832 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7833 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7834 $as_echo_n "(cached) " >&6
7835 else
7836 lt_cv_prog_compiler_rtti_exceptions=no
7837 ac_outfile=conftest.$ac_objext
7838 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7839 lt_compiler_flag="-fno-rtti -fno-exceptions"
7840 # Insert the option either (1) after the last *FLAGS variable, or
7841 # (2) before a word containing "conftest.", or (3) at the end.
7842 # Note that $ac_compile itself does not contain backslashes and begins
7843 # with a dollar sign (not a hyphen), so the echo should work correctly.
7844 # The option is referenced via a variable to avoid confusing sed.
7845 lt_compile=`echo "$ac_compile" | $SED \
7846 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7847 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7848 -e 's:$: $lt_compiler_flag:'`
7849 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7850 (eval "$lt_compile" 2>conftest.err)
7851 ac_status=$?
7852 cat conftest.err >&5
7853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7854 if (exit $ac_status) && test -s "$ac_outfile"; then
7855 # The compiler can only warn and ignore the option if not recognized
7856 # So say no if there are warnings other than the usual output.
7857 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7858 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7859 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7860 lt_cv_prog_compiler_rtti_exceptions=yes
7861 fi
7862 fi
7863 $RM conftest*
7864
7865 fi
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7867 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7868
7869 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7870 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7871 else
7872 :
7873 fi
7874
7875 fi
7876
7877
7878
7879
7880
7881
7882 lt_prog_compiler_wl=
7883 lt_prog_compiler_pic=
7884 lt_prog_compiler_static=
7885
7886
7887 if test "$GCC" = yes; then
7888 lt_prog_compiler_wl='-Wl,'
7889 lt_prog_compiler_static='-static'
7890
7891 case $host_os in
7892 aix*)
7893 # All AIX code is PIC.
7894 if test "$host_cpu" = ia64; then
7895 # AIX 5 now supports IA64 processor
7896 lt_prog_compiler_static='-Bstatic'
7897 fi
7898 ;;
7899
7900 amigaos*)
7901 case $host_cpu in
7902 powerpc)
7903 # see comment about AmigaOS4 .so support
7904 lt_prog_compiler_pic='-fPIC'
7905 ;;
7906 m68k)
7907 # FIXME: we need at least 68020 code to build shared libraries, but
7908 # adding the `-m68020' flag to GCC prevents building anything better,
7909 # like `-m68040'.
7910 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7911 ;;
7912 esac
7913 ;;
7914
7915 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7916 # PIC is the default for these OSes.
7917 ;;
7918
7919 mingw* | cygwin* | pw32* | os2* | cegcc*)
7920 # This hack is so that the source file can tell whether it is being
7921 # built for inclusion in a dll (and should export symbols for example).
7922 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7923 # (--disable-auto-import) libraries
7924 lt_prog_compiler_pic='-DDLL_EXPORT'
7925 ;;
7926
7927 darwin* | rhapsody*)
7928 # PIC is the default on this platform
7929 # Common symbols not allowed in MH_DYLIB files
7930 lt_prog_compiler_pic='-fno-common'
7931 ;;
7932
7933 haiku*)
7934 # PIC is the default for Haiku.
7935 # The "-static" flag exists, but is broken.
7936 lt_prog_compiler_static=
7937 ;;
7938
7939 hpux*)
7940 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
7941 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
7942 # sets the default TLS model and affects inlining.
7943 case $host_cpu in
7944 hppa*64*)
7945 # +Z the default
7946 ;;
7947 *)
7948 lt_prog_compiler_pic='-fPIC'
7949 ;;
7950 esac
7951 ;;
7952
7953 interix[3-9]*)
7954 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7955 # Instead, we relocate shared libraries at runtime.
7956 ;;
7957
7958 msdosdjgpp*)
7959 # Just because we use GCC doesn't mean we suddenly get shared libraries
7960 # on systems that don't support them.
7961 lt_prog_compiler_can_build_shared=no
7962 enable_shared=no
7963 ;;
7964
7965 *nto* | *qnx*)
7966 # QNX uses GNU C++, but need to define -shared option too, otherwise
7967 # it will coredump.
7968 lt_prog_compiler_pic='-fPIC -shared'
7969 ;;
7970
7971 sysv4*MP*)
7972 if test -d /usr/nec; then
7973 lt_prog_compiler_pic=-Kconform_pic
7974 fi
7975 ;;
7976
7977 *)
7978 lt_prog_compiler_pic='-fPIC'
7979 ;;
7980 esac
7981
7982 case $cc_basename in
7983 nvcc*) # Cuda Compiler Driver 2.2
7984 lt_prog_compiler_wl='-Xlinker '
7985 if test -n "$lt_prog_compiler_pic"; then
7986 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
7987 fi
7988 ;;
7989 esac
7990 else
7991 # PORTME Check for flag to pass linker flags through the system compiler.
7992 case $host_os in
7993 aix*)
7994 lt_prog_compiler_wl='-Wl,'
7995 if test "$host_cpu" = ia64; then
7996 # AIX 5 now supports IA64 processor
7997 lt_prog_compiler_static='-Bstatic'
7998 else
7999 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8000 fi
8001 ;;
8002
8003 mingw* | cygwin* | pw32* | os2* | cegcc*)
8004 # This hack is so that the source file can tell whether it is being
8005 # built for inclusion in a dll (and should export symbols for example).
8006 lt_prog_compiler_pic='-DDLL_EXPORT'
8007 ;;
8008
8009 hpux9* | hpux10* | hpux11*)
8010 lt_prog_compiler_wl='-Wl,'
8011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8012 # not for PA HP-UX.
8013 case $host_cpu in
8014 hppa*64*|ia64*)
8015 # +Z the default
8016 ;;
8017 *)
8018 lt_prog_compiler_pic='+Z'
8019 ;;
8020 esac
8021 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8022 lt_prog_compiler_static='${wl}-a ${wl}archive'
8023 ;;
8024
8025 irix5* | irix6* | nonstopux*)
8026 lt_prog_compiler_wl='-Wl,'
8027 # PIC (with -KPIC) is the default.
8028 lt_prog_compiler_static='-non_shared'
8029 ;;
8030
8031 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8032 case $cc_basename in
8033 # old Intel for x86_64 which still supported -KPIC.
8034 ecc*)
8035 lt_prog_compiler_wl='-Wl,'
8036 lt_prog_compiler_pic='-KPIC'
8037 lt_prog_compiler_static='-static'
8038 ;;
8039 # icc used to be incompatible with GCC.
8040 # ICC 10 doesn't accept -KPIC any more.
8041 icc* | ifort*)
8042 lt_prog_compiler_wl='-Wl,'
8043 lt_prog_compiler_pic='-fPIC'
8044 lt_prog_compiler_static='-static'
8045 ;;
8046 # Lahey Fortran 8.1.
8047 lf95*)
8048 lt_prog_compiler_wl='-Wl,'
8049 lt_prog_compiler_pic='--shared'
8050 lt_prog_compiler_static='--static'
8051 ;;
8052 nagfor*)
8053 # NAG Fortran compiler
8054 lt_prog_compiler_wl='-Wl,-Wl,,'
8055 lt_prog_compiler_pic='-PIC'
8056 lt_prog_compiler_static='-Bstatic'
8057 ;;
8058 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8059 # Portland Group compilers (*not* the Pentium gcc compiler,
8060 # which looks to be a dead project)
8061 lt_prog_compiler_wl='-Wl,'
8062 lt_prog_compiler_pic='-fpic'
8063 lt_prog_compiler_static='-Bstatic'
8064 ;;
8065 ccc*)
8066 lt_prog_compiler_wl='-Wl,'
8067 # All Alpha code is PIC.
8068 lt_prog_compiler_static='-non_shared'
8069 ;;
8070 xl* | bgxl* | bgf* | mpixl*)
8071 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8072 lt_prog_compiler_wl='-Wl,'
8073 lt_prog_compiler_pic='-qpic'
8074 lt_prog_compiler_static='-qstaticlink'
8075 ;;
8076 *)
8077 case `$CC -V 2>&1 | sed 5q` in
8078 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8079 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8080 lt_prog_compiler_pic='-KPIC'
8081 lt_prog_compiler_static='-Bstatic'
8082 lt_prog_compiler_wl=''
8083 ;;
8084 *Sun\ F* | *Sun*Fortran*)
8085 lt_prog_compiler_pic='-KPIC'
8086 lt_prog_compiler_static='-Bstatic'
8087 lt_prog_compiler_wl='-Qoption ld '
8088 ;;
8089 *Sun\ C*)
8090 # Sun C 5.9
8091 lt_prog_compiler_pic='-KPIC'
8092 lt_prog_compiler_static='-Bstatic'
8093 lt_prog_compiler_wl='-Wl,'
8094 ;;
8095 *Intel*\ [CF]*Compiler*)
8096 lt_prog_compiler_wl='-Wl,'
8097 lt_prog_compiler_pic='-fPIC'
8098 lt_prog_compiler_static='-static'
8099 ;;
8100 *Portland\ Group*)
8101 lt_prog_compiler_wl='-Wl,'
8102 lt_prog_compiler_pic='-fpic'
8103 lt_prog_compiler_static='-Bstatic'
8104 ;;
8105 esac
8106 ;;
8107 esac
8108 ;;
8109
8110 newsos6)
8111 lt_prog_compiler_pic='-KPIC'
8112 lt_prog_compiler_static='-Bstatic'
8113 ;;
8114
8115 *nto* | *qnx*)
8116 # QNX uses GNU C++, but need to define -shared option too, otherwise
8117 # it will coredump.
8118 lt_prog_compiler_pic='-fPIC -shared'
8119 ;;
8120
8121 osf3* | osf4* | osf5*)
8122 lt_prog_compiler_wl='-Wl,'
8123 # All OSF/1 code is PIC.
8124 lt_prog_compiler_static='-non_shared'
8125 ;;
8126
8127 rdos*)
8128 lt_prog_compiler_static='-non_shared'
8129 ;;
8130
8131 solaris*)
8132 lt_prog_compiler_pic='-KPIC'
8133 lt_prog_compiler_static='-Bstatic'
8134 case $cc_basename in
8135 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8136 lt_prog_compiler_wl='-Qoption ld ';;
8137 *)
8138 lt_prog_compiler_wl='-Wl,';;
8139 esac
8140 ;;
8141
8142 sunos4*)
8143 lt_prog_compiler_wl='-Qoption ld '
8144 lt_prog_compiler_pic='-PIC'
8145 lt_prog_compiler_static='-Bstatic'
8146 ;;
8147
8148 sysv4 | sysv4.2uw2* | sysv4.3*)
8149 lt_prog_compiler_wl='-Wl,'
8150 lt_prog_compiler_pic='-KPIC'
8151 lt_prog_compiler_static='-Bstatic'
8152 ;;
8153
8154 sysv4*MP*)
8155 if test -d /usr/nec ;then
8156 lt_prog_compiler_pic='-Kconform_pic'
8157 lt_prog_compiler_static='-Bstatic'
8158 fi
8159 ;;
8160
8161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8162 lt_prog_compiler_wl='-Wl,'
8163 lt_prog_compiler_pic='-KPIC'
8164 lt_prog_compiler_static='-Bstatic'
8165 ;;
8166
8167 unicos*)
8168 lt_prog_compiler_wl='-Wl,'
8169 lt_prog_compiler_can_build_shared=no
8170 ;;
8171
8172 uts4*)
8173 lt_prog_compiler_pic='-pic'
8174 lt_prog_compiler_static='-Bstatic'
8175 ;;
8176
8177 *)
8178 lt_prog_compiler_can_build_shared=no
8179 ;;
8180 esac
8181 fi
8182
8183 case $host_os in
8184 # For platforms which do not support PIC, -DPIC is meaningless:
8185 *djgpp*)
8186 lt_prog_compiler_pic=
8187 ;;
8188 *)
8189 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8190 ;;
8191 esac
8192
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8194 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8195 if ${lt_cv_prog_compiler_pic+:} false; then :
8196 $as_echo_n "(cached) " >&6
8197 else
8198 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8199 fi
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8201 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8202 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8203
8204 #
8205 # Check to make sure the PIC flag actually works.
8206 #
8207 if test -n "$lt_prog_compiler_pic"; then
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8209 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8210 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8211 $as_echo_n "(cached) " >&6
8212 else
8213 lt_cv_prog_compiler_pic_works=no
8214 ac_outfile=conftest.$ac_objext
8215 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8216 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8217 # Insert the option either (1) after the last *FLAGS variable, or
8218 # (2) before a word containing "conftest.", or (3) at the end.
8219 # Note that $ac_compile itself does not contain backslashes and begins
8220 # with a dollar sign (not a hyphen), so the echo should work correctly.
8221 # The option is referenced via a variable to avoid confusing sed.
8222 lt_compile=`echo "$ac_compile" | $SED \
8223 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8224 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8225 -e 's:$: $lt_compiler_flag:'`
8226 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8227 (eval "$lt_compile" 2>conftest.err)
8228 ac_status=$?
8229 cat conftest.err >&5
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 if (exit $ac_status) && test -s "$ac_outfile"; then
8232 # The compiler can only warn and ignore the option if not recognized
8233 # So say no if there are warnings other than the usual output.
8234 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8235 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8236 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8237 lt_cv_prog_compiler_pic_works=yes
8238 fi
8239 fi
8240 $RM conftest*
8241
8242 fi
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8244 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8245
8246 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8247 case $lt_prog_compiler_pic in
8248 "" | " "*) ;;
8249 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8250 esac
8251 else
8252 lt_prog_compiler_pic=
8253 lt_prog_compiler_can_build_shared=no
8254 fi
8255
8256 fi
8257
8258
8259
8260
8261
8262
8263
8264
8265
8266
8267
8268 #
8269 # Check to make sure the static flag actually works.
8270 #
8271 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8273 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8274 if ${lt_cv_prog_compiler_static_works+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 lt_cv_prog_compiler_static_works=no
8278 save_LDFLAGS="$LDFLAGS"
8279 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8280 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8281 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8282 # The linker can only warn and ignore the option if not recognized
8283 # So say no if there are warnings
8284 if test -s conftest.err; then
8285 # Append any errors to the config.log.
8286 cat conftest.err 1>&5
8287 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8288 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8289 if diff conftest.exp conftest.er2 >/dev/null; then
8290 lt_cv_prog_compiler_static_works=yes
8291 fi
8292 else
8293 lt_cv_prog_compiler_static_works=yes
8294 fi
8295 fi
8296 $RM -r conftest*
8297 LDFLAGS="$save_LDFLAGS"
8298
8299 fi
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8301 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8302
8303 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8304 :
8305 else
8306 lt_prog_compiler_static=
8307 fi
8308
8309
8310
8311
8312
8313
8314
8315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8316 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8317 if ${lt_cv_prog_compiler_c_o+:} false; then :
8318 $as_echo_n "(cached) " >&6
8319 else
8320 lt_cv_prog_compiler_c_o=no
8321 $RM -r conftest 2>/dev/null
8322 mkdir conftest
8323 cd conftest
8324 mkdir out
8325 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8326
8327 lt_compiler_flag="-o out/conftest2.$ac_objext"
8328 # Insert the option either (1) after the last *FLAGS variable, or
8329 # (2) before a word containing "conftest.", or (3) at the end.
8330 # Note that $ac_compile itself does not contain backslashes and begins
8331 # with a dollar sign (not a hyphen), so the echo should work correctly.
8332 lt_compile=`echo "$ac_compile" | $SED \
8333 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8334 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8335 -e 's:$: $lt_compiler_flag:'`
8336 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8337 (eval "$lt_compile" 2>out/conftest.err)
8338 ac_status=$?
8339 cat out/conftest.err >&5
8340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8341 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8342 then
8343 # The compiler can only warn and ignore the option if not recognized
8344 # So say no if there are warnings
8345 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8346 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8347 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8348 lt_cv_prog_compiler_c_o=yes
8349 fi
8350 fi
8351 chmod u+w . 2>&5
8352 $RM conftest*
8353 # SGI C++ compiler will create directory out/ii_files/ for
8354 # template instantiation
8355 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8356 $RM out/* && rmdir out
8357 cd ..
8358 $RM -r conftest
8359 $RM conftest*
8360
8361 fi
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8363 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8364
8365
8366
8367
8368
8369
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8371 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8372 if ${lt_cv_prog_compiler_c_o+:} false; then :
8373 $as_echo_n "(cached) " >&6
8374 else
8375 lt_cv_prog_compiler_c_o=no
8376 $RM -r conftest 2>/dev/null
8377 mkdir conftest
8378 cd conftest
8379 mkdir out
8380 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8381
8382 lt_compiler_flag="-o out/conftest2.$ac_objext"
8383 # Insert the option either (1) after the last *FLAGS variable, or
8384 # (2) before a word containing "conftest.", or (3) at the end.
8385 # Note that $ac_compile itself does not contain backslashes and begins
8386 # with a dollar sign (not a hyphen), so the echo should work correctly.
8387 lt_compile=`echo "$ac_compile" | $SED \
8388 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8389 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8390 -e 's:$: $lt_compiler_flag:'`
8391 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8392 (eval "$lt_compile" 2>out/conftest.err)
8393 ac_status=$?
8394 cat out/conftest.err >&5
8395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8396 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8397 then
8398 # The compiler can only warn and ignore the option if not recognized
8399 # So say no if there are warnings
8400 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8401 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8402 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8403 lt_cv_prog_compiler_c_o=yes
8404 fi
8405 fi
8406 chmod u+w . 2>&5
8407 $RM conftest*
8408 # SGI C++ compiler will create directory out/ii_files/ for
8409 # template instantiation
8410 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8411 $RM out/* && rmdir out
8412 cd ..
8413 $RM -r conftest
8414 $RM conftest*
8415
8416 fi
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8418 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8419
8420
8421
8422
8423 hard_links="nottested"
8424 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8425 # do not overwrite the value of need_locks provided by the user
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8427 $as_echo_n "checking if we can lock with hard links... " >&6; }
8428 hard_links=yes
8429 $RM conftest*
8430 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8431 touch conftest.a
8432 ln conftest.a conftest.b 2>&5 || hard_links=no
8433 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8435 $as_echo "$hard_links" >&6; }
8436 if test "$hard_links" = no; then
8437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8438 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8439 need_locks=warn
8440 fi
8441 else
8442 need_locks=no
8443 fi
8444
8445
8446
8447
8448
8449
8450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8451 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8452
8453 runpath_var=
8454 allow_undefined_flag=
8455 always_export_symbols=no
8456 archive_cmds=
8457 archive_expsym_cmds=
8458 compiler_needs_object=no
8459 enable_shared_with_static_runtimes=no
8460 export_dynamic_flag_spec=
8461 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8462 hardcode_automatic=no
8463 hardcode_direct=no
8464 hardcode_direct_absolute=no
8465 hardcode_libdir_flag_spec=
8466 hardcode_libdir_separator=
8467 hardcode_minus_L=no
8468 hardcode_shlibpath_var=unsupported
8469 inherit_rpath=no
8470 link_all_deplibs=unknown
8471 module_cmds=
8472 module_expsym_cmds=
8473 old_archive_from_new_cmds=
8474 old_archive_from_expsyms_cmds=
8475 thread_safe_flag_spec=
8476 whole_archive_flag_spec=
8477 # include_expsyms should be a list of space-separated symbols to be *always*
8478 # included in the symbol list
8479 include_expsyms=
8480 # exclude_expsyms can be an extended regexp of symbols to exclude
8481 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8482 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8483 # as well as any symbol that contains `d'.
8484 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8485 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8486 # platforms (ab)use it in PIC code, but their linkers get confused if
8487 # the symbol is explicitly referenced. Since portable code cannot
8488 # rely on this symbol name, it's probably fine to never include it in
8489 # preloaded symbol tables.
8490 # Exclude shared library initialization/finalization symbols.
8491 extract_expsyms_cmds=
8492
8493 case $host_os in
8494 cygwin* | mingw* | pw32* | cegcc*)
8495 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8496 # When not using gcc, we currently assume that we are using
8497 # Microsoft Visual C++.
8498 if test "$GCC" != yes; then
8499 with_gnu_ld=no
8500 fi
8501 ;;
8502 interix*)
8503 # we just hope/assume this is gcc and not c89 (= MSVC++)
8504 with_gnu_ld=yes
8505 ;;
8506 openbsd*)
8507 with_gnu_ld=no
8508 ;;
8509 esac
8510
8511 ld_shlibs=yes
8512
8513 # On some targets, GNU ld is compatible enough with the native linker
8514 # that we're better off using the native interface for both.
8515 lt_use_gnu_ld_interface=no
8516 if test "$with_gnu_ld" = yes; then
8517 case $host_os in
8518 aix*)
8519 # The AIX port of GNU ld has always aspired to compatibility
8520 # with the native linker. However, as the warning in the GNU ld
8521 # block says, versions before 2.19.5* couldn't really create working
8522 # shared libraries, regardless of the interface used.
8523 case `$LD -v 2>&1` in
8524 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8525 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8526 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8527 *)
8528 lt_use_gnu_ld_interface=yes
8529 ;;
8530 esac
8531 ;;
8532 *)
8533 lt_use_gnu_ld_interface=yes
8534 ;;
8535 esac
8536 fi
8537
8538 if test "$lt_use_gnu_ld_interface" = yes; then
8539 # If archive_cmds runs LD, not CC, wlarc should be empty
8540 wlarc='${wl}'
8541
8542 # Set some defaults for GNU ld with shared library support. These
8543 # are reset later if shared libraries are not supported. Putting them
8544 # here allows them to be overridden if necessary.
8545 runpath_var=LD_RUN_PATH
8546 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8547 export_dynamic_flag_spec='${wl}--export-dynamic'
8548 # ancient GNU ld didn't support --whole-archive et. al.
8549 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8550 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8551 else
8552 whole_archive_flag_spec=
8553 fi
8554 supports_anon_versioning=no
8555 case `$LD -v 2>&1` in
8556 *GNU\ gold*) supports_anon_versioning=yes ;;
8557 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8558 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8559 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8560 *\ 2.11.*) ;; # other 2.11 versions
8561 *) supports_anon_versioning=yes ;;
8562 esac
8563
8564 # See if GNU ld supports shared libraries.
8565 case $host_os in
8566 aix[3-9]*)
8567 # On AIX/PPC, the GNU linker is very broken
8568 if test "$host_cpu" != ia64; then
8569 ld_shlibs=no
8570 cat <<_LT_EOF 1>&2
8571
8572 *** Warning: the GNU linker, at least up to release 2.19, is reported
8573 *** to be unable to reliably create shared libraries on AIX.
8574 *** Therefore, libtool is disabling shared libraries support. If you
8575 *** really care for shared libraries, you may want to install binutils
8576 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8577 *** You will then need to restart the configuration process.
8578
8579 _LT_EOF
8580 fi
8581 ;;
8582
8583 amigaos*)
8584 case $host_cpu in
8585 powerpc)
8586 # see comment about AmigaOS4 .so support
8587 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8588 archive_expsym_cmds=''
8589 ;;
8590 m68k)
8591 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)'
8592 hardcode_libdir_flag_spec='-L$libdir'
8593 hardcode_minus_L=yes
8594 ;;
8595 esac
8596 ;;
8597
8598 beos*)
8599 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8600 allow_undefined_flag=unsupported
8601 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
8602 # support --undefined. This deserves some investigation. FIXME
8603 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8604 else
8605 ld_shlibs=no
8606 fi
8607 ;;
8608
8609 cygwin* | mingw* | pw32* | cegcc*)
8610 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8611 # as there is no search path for DLLs.
8612 hardcode_libdir_flag_spec='-L$libdir'
8613 export_dynamic_flag_spec='${wl}--export-all-symbols'
8614 allow_undefined_flag=unsupported
8615 always_export_symbols=no
8616 enable_shared_with_static_runtimes=yes
8617 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'
8618 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8619
8620 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8621 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8622 # If the export-symbols file already is a .def file (1st line
8623 # is EXPORTS), use it as is; otherwise, prepend...
8624 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8625 cp $export_symbols $output_objdir/$soname.def;
8626 else
8627 echo EXPORTS > $output_objdir/$soname.def;
8628 cat $export_symbols >> $output_objdir/$soname.def;
8629 fi~
8630 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8631 else
8632 ld_shlibs=no
8633 fi
8634 ;;
8635
8636 haiku*)
8637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8638 link_all_deplibs=yes
8639 ;;
8640
8641 interix[3-9]*)
8642 hardcode_direct=no
8643 hardcode_shlibpath_var=no
8644 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8645 export_dynamic_flag_spec='${wl}-E'
8646 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8647 # Instead, shared libraries are loaded at an image base (0x10000000 by
8648 # default) and relocated if they conflict, which is a slow very memory
8649 # consuming and fragmenting process. To avoid this, we pick a random,
8650 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8651 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8652 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8653 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'
8654 ;;
8655
8656 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8657 tmp_diet=no
8658 if test "$host_os" = linux-dietlibc; then
8659 case $cc_basename in
8660 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8661 esac
8662 fi
8663 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8664 && test "$tmp_diet" = no
8665 then
8666 tmp_addflag=' $pic_flag'
8667 tmp_sharedflag='-shared'
8668 case $cc_basename,$host_cpu in
8669 pgcc*) # Portland Group C compiler
8670 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'
8671 tmp_addflag=' $pic_flag'
8672 ;;
8673 pgf77* | pgf90* | pgf95* | pgfortran*)
8674 # Portland Group f77 and f90 compilers
8675 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'
8676 tmp_addflag=' $pic_flag -Mnomain' ;;
8677 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8678 tmp_addflag=' -i_dynamic' ;;
8679 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8680 tmp_addflag=' -i_dynamic -nofor_main' ;;
8681 ifc* | ifort*) # Intel Fortran compiler
8682 tmp_addflag=' -nofor_main' ;;
8683 lf95*) # Lahey Fortran 8.1
8684 whole_archive_flag_spec=
8685 tmp_sharedflag='--shared' ;;
8686 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8687 tmp_sharedflag='-qmkshrobj'
8688 tmp_addflag= ;;
8689 nvcc*) # Cuda Compiler Driver 2.2
8690 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'
8691 compiler_needs_object=yes
8692 ;;
8693 esac
8694 case `$CC -V 2>&1 | sed 5q` in
8695 *Sun\ C*) # Sun C 5.9
8696 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'
8697 compiler_needs_object=yes
8698 tmp_sharedflag='-G' ;;
8699 *Sun\ F*) # Sun Fortran 8.3
8700 tmp_sharedflag='-G' ;;
8701 esac
8702 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8703
8704 if test "x$supports_anon_versioning" = xyes; then
8705 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8706 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8707 echo "local: *; };" >> $output_objdir/$libname.ver~
8708 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8709 fi
8710
8711 case $cc_basename in
8712 xlf* | bgf* | bgxlf* | mpixlf*)
8713 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8714 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8715 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8716 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8717 if test "x$supports_anon_versioning" = xyes; then
8718 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8719 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8720 echo "local: *; };" >> $output_objdir/$libname.ver~
8721 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8722 fi
8723 ;;
8724 esac
8725 else
8726 ld_shlibs=no
8727 fi
8728 ;;
8729
8730 netbsd*)
8731 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8732 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8733 wlarc=
8734 else
8735 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8736 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8737 fi
8738 ;;
8739
8740 solaris*)
8741 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8742 ld_shlibs=no
8743 cat <<_LT_EOF 1>&2
8744
8745 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8746 *** create shared libraries on Solaris systems. Therefore, libtool
8747 *** is disabling shared libraries support. We urge you to upgrade GNU
8748 *** binutils to release 2.9.1 or newer. Another option is to modify
8749 *** your PATH or compiler configuration so that the native linker is
8750 *** used, and then restart.
8751
8752 _LT_EOF
8753 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8754 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8756 else
8757 ld_shlibs=no
8758 fi
8759 ;;
8760
8761 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8762 case `$LD -v 2>&1` in
8763 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8764 ld_shlibs=no
8765 cat <<_LT_EOF 1>&2
8766
8767 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8768 *** reliably create shared libraries on SCO systems. Therefore, libtool
8769 *** is disabling shared libraries support. We urge you to upgrade GNU
8770 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8771 *** your PATH or compiler configuration so that the native linker is
8772 *** used, and then restart.
8773
8774 _LT_EOF
8775 ;;
8776 *)
8777 # For security reasons, it is highly recommended that you always
8778 # use absolute paths for naming shared libraries, and exclude the
8779 # DT_RUNPATH tag from executables and libraries. But doing so
8780 # requires that you compile everything twice, which is a pain.
8781 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8782 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8783 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8784 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8785 else
8786 ld_shlibs=no
8787 fi
8788 ;;
8789 esac
8790 ;;
8791
8792 sunos4*)
8793 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8794 wlarc=
8795 hardcode_direct=yes
8796 hardcode_shlibpath_var=no
8797 ;;
8798
8799 *)
8800 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8801 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8802 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8803 else
8804 ld_shlibs=no
8805 fi
8806 ;;
8807 esac
8808
8809 if test "$ld_shlibs" = no; then
8810 runpath_var=
8811 hardcode_libdir_flag_spec=
8812 export_dynamic_flag_spec=
8813 whole_archive_flag_spec=
8814 fi
8815 else
8816 # PORTME fill in a description of your system's linker (not GNU ld)
8817 case $host_os in
8818 aix3*)
8819 allow_undefined_flag=unsupported
8820 always_export_symbols=yes
8821 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'
8822 # Note: this linker hardcodes the directories in LIBPATH if there
8823 # are no directories specified by -L.
8824 hardcode_minus_L=yes
8825 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8826 # Neither direct hardcoding nor static linking is supported with a
8827 # broken collect2.
8828 hardcode_direct=unsupported
8829 fi
8830 ;;
8831
8832 aix[4-9]*)
8833 if test "$host_cpu" = ia64; then
8834 # On IA64, the linker does run time linking by default, so we don't
8835 # have to do anything special.
8836 aix_use_runtimelinking=no
8837 exp_sym_flag='-Bexport'
8838 no_entry_flag=""
8839 else
8840 # If we're using GNU nm, then we don't want the "-C" option.
8841 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8842 # Also, AIX nm treats weak defined symbols like other global
8843 # defined symbols, whereas GNU nm marks them as "W".
8844 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8845 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'
8846 else
8847 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'
8848 fi
8849 aix_use_runtimelinking=no
8850
8851 # Test if we are trying to use run time linking or normal
8852 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8853 # need to do runtime linking.
8854 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8855 for ld_flag in $LDFLAGS; do
8856 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8857 aix_use_runtimelinking=yes
8858 break
8859 fi
8860 done
8861 ;;
8862 esac
8863
8864 exp_sym_flag='-bexport'
8865 no_entry_flag='-bnoentry'
8866 fi
8867
8868 # When large executables or shared objects are built, AIX ld can
8869 # have problems creating the table of contents. If linking a library
8870 # or program results in "error TOC overflow" add -mminimal-toc to
8871 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8872 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8873
8874 archive_cmds=''
8875 hardcode_direct=yes
8876 hardcode_direct_absolute=yes
8877 hardcode_libdir_separator=':'
8878 link_all_deplibs=yes
8879 file_list_spec='${wl}-f,'
8880
8881 if test "$GCC" = yes; then
8882 case $host_os in aix4.[012]|aix4.[012].*)
8883 # We only want to do this on AIX 4.2 and lower, the check
8884 # below for broken collect2 doesn't work under 4.3+
8885 collect2name=`${CC} -print-prog-name=collect2`
8886 if test -f "$collect2name" &&
8887 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8888 then
8889 # We have reworked collect2
8890 :
8891 else
8892 # We have old collect2
8893 hardcode_direct=unsupported
8894 # It fails to find uninstalled libraries when the uninstalled
8895 # path is not listed in the libpath. Setting hardcode_minus_L
8896 # to unsupported forces relinking
8897 hardcode_minus_L=yes
8898 hardcode_libdir_flag_spec='-L$libdir'
8899 hardcode_libdir_separator=
8900 fi
8901 ;;
8902 esac
8903 shared_flag='-shared'
8904 if test "$aix_use_runtimelinking" = yes; then
8905 shared_flag="$shared_flag "'${wl}-G'
8906 fi
8907 else
8908 # not using gcc
8909 if test "$host_cpu" = ia64; then
8910 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8911 # chokes on -Wl,-G. The following line is correct:
8912 shared_flag='-G'
8913 else
8914 if test "$aix_use_runtimelinking" = yes; then
8915 shared_flag='${wl}-G'
8916 else
8917 shared_flag='${wl}-bM:SRE'
8918 fi
8919 fi
8920 fi
8921
8922 export_dynamic_flag_spec='${wl}-bexpall'
8923 # It seems that -bexpall does not export symbols beginning with
8924 # underscore (_), so it is better to generate a list of symbols to export.
8925 always_export_symbols=yes
8926 if test "$aix_use_runtimelinking" = yes; then
8927 # Warning - without using the other runtime loading flags (-brtl),
8928 # -berok will link without error, but may produce a broken library.
8929 allow_undefined_flag='-berok'
8930 # Determine the default libpath from the value encoded in an
8931 # empty executable.
8932 if test "${lt_cv_aix_libpath+set}" = set; then
8933 aix_libpath=$lt_cv_aix_libpath
8934 else
8935 if ${lt_cv_aix_libpath_+:} false; then :
8936 $as_echo_n "(cached) " >&6
8937 else
8938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8939 /* end confdefs.h. */
8940
8941 int
8942 main ()
8943 {
8944
8945 ;
8946 return 0;
8947 }
8948 _ACEOF
8949 if ac_fn_c_try_link "$LINENO"; then :
8950
8951 lt_aix_libpath_sed='
8952 /Import File Strings/,/^$/ {
8953 /^0/ {
8954 s/^0 *\([^ ]*\) *$/\1/
8955 p
8956 }
8957 }'
8958 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8959 # Check for a 64-bit object if we didn't find anything.
8960 if test -z "$lt_cv_aix_libpath_"; then
8961 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8962 fi
8963 fi
8964 rm -f core conftest.err conftest.$ac_objext \
8965 conftest$ac_exeext conftest.$ac_ext
8966 if test -z "$lt_cv_aix_libpath_"; then
8967 lt_cv_aix_libpath_="/usr/lib:/lib"
8968 fi
8969
8970 fi
8971
8972 aix_libpath=$lt_cv_aix_libpath_
8973 fi
8974
8975 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8976 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"
8977 else
8978 if test "$host_cpu" = ia64; then
8979 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8980 allow_undefined_flag="-z nodefs"
8981 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"
8982 else
8983 # Determine the default libpath from the value encoded in an
8984 # empty executable.
8985 if test "${lt_cv_aix_libpath+set}" = set; then
8986 aix_libpath=$lt_cv_aix_libpath
8987 else
8988 if ${lt_cv_aix_libpath_+:} false; then :
8989 $as_echo_n "(cached) " >&6
8990 else
8991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8992 /* end confdefs.h. */
8993
8994 int
8995 main ()
8996 {
8997
8998 ;
8999 return 0;
9000 }
9001 _ACEOF
9002 if ac_fn_c_try_link "$LINENO"; then :
9003
9004 lt_aix_libpath_sed='
9005 /Import File Strings/,/^$/ {
9006 /^0/ {
9007 s/^0 *\([^ ]*\) *$/\1/
9008 p
9009 }
9010 }'
9011 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9012 # Check for a 64-bit object if we didn't find anything.
9013 if test -z "$lt_cv_aix_libpath_"; then
9014 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9015 fi
9016 fi
9017 rm -f core conftest.err conftest.$ac_objext \
9018 conftest$ac_exeext conftest.$ac_ext
9019 if test -z "$lt_cv_aix_libpath_"; then
9020 lt_cv_aix_libpath_="/usr/lib:/lib"
9021 fi
9022
9023 fi
9024
9025 aix_libpath=$lt_cv_aix_libpath_
9026 fi
9027
9028 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9029 # Warning - without using the other run time loading flags,
9030 # -berok will link without error, but may produce a broken library.
9031 no_undefined_flag=' ${wl}-bernotok'
9032 allow_undefined_flag=' ${wl}-berok'
9033 if test "$with_gnu_ld" = yes; then
9034 # We only use this code for GNU lds that support --whole-archive.
9035 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9036 else
9037 # Exported symbols can be pulled into shared objects from archives
9038 whole_archive_flag_spec='$convenience'
9039 fi
9040 archive_cmds_need_lc=yes
9041 # This is similar to how AIX traditionally builds its shared libraries.
9042 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'
9043 fi
9044 fi
9045 ;;
9046
9047 amigaos*)
9048 case $host_cpu in
9049 powerpc)
9050 # see comment about AmigaOS4 .so support
9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9052 archive_expsym_cmds=''
9053 ;;
9054 m68k)
9055 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)'
9056 hardcode_libdir_flag_spec='-L$libdir'
9057 hardcode_minus_L=yes
9058 ;;
9059 esac
9060 ;;
9061
9062 bsdi[45]*)
9063 export_dynamic_flag_spec=-rdynamic
9064 ;;
9065
9066 cygwin* | mingw* | pw32* | cegcc*)
9067 # When not using gcc, we currently assume that we are using
9068 # Microsoft Visual C++.
9069 # hardcode_libdir_flag_spec is actually meaningless, as there is
9070 # no search path for DLLs.
9071 case $cc_basename in
9072 cl*)
9073 # Native MSVC
9074 hardcode_libdir_flag_spec=' '
9075 allow_undefined_flag=unsupported
9076 always_export_symbols=yes
9077 file_list_spec='@'
9078 # Tell ltmain to make .lib files, not .a files.
9079 libext=lib
9080 # Tell ltmain to make .dll files, not .so files.
9081 shrext_cmds=".dll"
9082 # FIXME: Setting linknames here is a bad hack.
9083 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9084 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9085 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9086 else
9087 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9088 fi~
9089 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9090 linknames='
9091 # The linker will not automatically build a static lib if we build a DLL.
9092 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9093 enable_shared_with_static_runtimes=yes
9094 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9095 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9096 # Don't use ranlib
9097 old_postinstall_cmds='chmod 644 $oldlib'
9098 postlink_cmds='lt_outputfile="@OUTPUT@"~
9099 lt_tool_outputfile="@TOOL_OUTPUT@"~
9100 case $lt_outputfile in
9101 *.exe|*.EXE) ;;
9102 *)
9103 lt_outputfile="$lt_outputfile.exe"
9104 lt_tool_outputfile="$lt_tool_outputfile.exe"
9105 ;;
9106 esac~
9107 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9108 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9109 $RM "$lt_outputfile.manifest";
9110 fi'
9111 ;;
9112 *)
9113 # Assume MSVC wrapper
9114 hardcode_libdir_flag_spec=' '
9115 allow_undefined_flag=unsupported
9116 # Tell ltmain to make .lib files, not .a files.
9117 libext=lib
9118 # Tell ltmain to make .dll files, not .so files.
9119 shrext_cmds=".dll"
9120 # FIXME: Setting linknames here is a bad hack.
9121 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9122 # The linker will automatically build a .lib file if we build a DLL.
9123 old_archive_from_new_cmds='true'
9124 # FIXME: Should let the user specify the lib program.
9125 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9126 enable_shared_with_static_runtimes=yes
9127 ;;
9128 esac
9129 ;;
9130
9131 darwin* | rhapsody*)
9132
9133
9134 archive_cmds_need_lc=no
9135 hardcode_direct=no
9136 hardcode_automatic=yes
9137 hardcode_shlibpath_var=unsupported
9138 if test "$lt_cv_ld_force_load" = "yes"; then
9139 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\"`'
9140
9141 else
9142 whole_archive_flag_spec=''
9143 fi
9144 link_all_deplibs=yes
9145 allow_undefined_flag="$_lt_dar_allow_undefined"
9146 case $cc_basename in
9147 ifort*) _lt_dar_can_shared=yes ;;
9148 *) _lt_dar_can_shared=$GCC ;;
9149 esac
9150 if test "$_lt_dar_can_shared" = "yes"; then
9151 output_verbose_link_cmd=func_echo_all
9152 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9153 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9154 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}"
9155 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}"
9156
9157 else
9158 ld_shlibs=no
9159 fi
9160
9161 ;;
9162
9163 dgux*)
9164 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9165 hardcode_libdir_flag_spec='-L$libdir'
9166 hardcode_shlibpath_var=no
9167 ;;
9168
9169 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9170 # support. Future versions do this automatically, but an explicit c++rt0.o
9171 # does not break anything, and helps significantly (at the cost of a little
9172 # extra space).
9173 freebsd2.2*)
9174 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9175 hardcode_libdir_flag_spec='-R$libdir'
9176 hardcode_direct=yes
9177 hardcode_shlibpath_var=no
9178 ;;
9179
9180 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9181 freebsd2.*)
9182 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9183 hardcode_direct=yes
9184 hardcode_minus_L=yes
9185 hardcode_shlibpath_var=no
9186 ;;
9187
9188 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9189 freebsd* | dragonfly*)
9190 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9191 hardcode_libdir_flag_spec='-R$libdir'
9192 hardcode_direct=yes
9193 hardcode_shlibpath_var=no
9194 ;;
9195
9196 hpux9*)
9197 if test "$GCC" = yes; then
9198 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'
9199 else
9200 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'
9201 fi
9202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9203 hardcode_libdir_separator=:
9204 hardcode_direct=yes
9205
9206 # hardcode_minus_L: Not really in the search PATH,
9207 # but as the default location of the library.
9208 hardcode_minus_L=yes
9209 export_dynamic_flag_spec='${wl}-E'
9210 ;;
9211
9212 hpux10*)
9213 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9214 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9215 else
9216 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9217 fi
9218 if test "$with_gnu_ld" = no; then
9219 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9220 hardcode_libdir_separator=:
9221 hardcode_direct=yes
9222 hardcode_direct_absolute=yes
9223 export_dynamic_flag_spec='${wl}-E'
9224 # hardcode_minus_L: Not really in the search PATH,
9225 # but as the default location of the library.
9226 hardcode_minus_L=yes
9227 fi
9228 ;;
9229
9230 hpux11*)
9231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9232 case $host_cpu in
9233 hppa*64*)
9234 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9235 ;;
9236 ia64*)
9237 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9238 ;;
9239 *)
9240 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9241 ;;
9242 esac
9243 else
9244 case $host_cpu in
9245 hppa*64*)
9246 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9247 ;;
9248 ia64*)
9249 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9250 ;;
9251 *)
9252
9253 # Older versions of the 11.00 compiler do not understand -b yet
9254 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9256 $as_echo_n "checking if $CC understands -b... " >&6; }
9257 if ${lt_cv_prog_compiler__b+:} false; then :
9258 $as_echo_n "(cached) " >&6
9259 else
9260 lt_cv_prog_compiler__b=no
9261 save_LDFLAGS="$LDFLAGS"
9262 LDFLAGS="$LDFLAGS -b"
9263 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9264 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9265 # The linker can only warn and ignore the option if not recognized
9266 # So say no if there are warnings
9267 if test -s conftest.err; then
9268 # Append any errors to the config.log.
9269 cat conftest.err 1>&5
9270 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9271 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9272 if diff conftest.exp conftest.er2 >/dev/null; then
9273 lt_cv_prog_compiler__b=yes
9274 fi
9275 else
9276 lt_cv_prog_compiler__b=yes
9277 fi
9278 fi
9279 $RM -r conftest*
9280 LDFLAGS="$save_LDFLAGS"
9281
9282 fi
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9284 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9285
9286 if test x"$lt_cv_prog_compiler__b" = xyes; then
9287 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9288 else
9289 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9290 fi
9291
9292 ;;
9293 esac
9294 fi
9295 if test "$with_gnu_ld" = no; then
9296 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9297 hardcode_libdir_separator=:
9298
9299 case $host_cpu in
9300 hppa*64*|ia64*)
9301 hardcode_direct=no
9302 hardcode_shlibpath_var=no
9303 ;;
9304 *)
9305 hardcode_direct=yes
9306 hardcode_direct_absolute=yes
9307 export_dynamic_flag_spec='${wl}-E'
9308
9309 # hardcode_minus_L: Not really in the search PATH,
9310 # but as the default location of the library.
9311 hardcode_minus_L=yes
9312 ;;
9313 esac
9314 fi
9315 ;;
9316
9317 irix5* | irix6* | nonstopux*)
9318 if test "$GCC" = yes; then
9319 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'
9320 # Try to use the -exported_symbol ld option, if it does not
9321 # work, assume that -exports_file does not work either and
9322 # implicitly export all symbols.
9323 # This should be the same for all languages, so no per-tag cache variable.
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9325 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9326 if ${lt_cv_irix_exported_symbol+:} false; then :
9327 $as_echo_n "(cached) " >&6
9328 else
9329 save_LDFLAGS="$LDFLAGS"
9330 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9332 /* end confdefs.h. */
9333 int foo (void) { return 0; }
9334 _ACEOF
9335 if ac_fn_c_try_link "$LINENO"; then :
9336 lt_cv_irix_exported_symbol=yes
9337 else
9338 lt_cv_irix_exported_symbol=no
9339 fi
9340 rm -f core conftest.err conftest.$ac_objext \
9341 conftest$ac_exeext conftest.$ac_ext
9342 LDFLAGS="$save_LDFLAGS"
9343 fi
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9345 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9346 if test "$lt_cv_irix_exported_symbol" = yes; then
9347 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'
9348 fi
9349 else
9350 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'
9351 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'
9352 fi
9353 archive_cmds_need_lc='no'
9354 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9355 hardcode_libdir_separator=:
9356 inherit_rpath=yes
9357 link_all_deplibs=yes
9358 ;;
9359
9360 netbsd*)
9361 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9362 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9363 else
9364 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9365 fi
9366 hardcode_libdir_flag_spec='-R$libdir'
9367 hardcode_direct=yes
9368 hardcode_shlibpath_var=no
9369 ;;
9370
9371 newsos6)
9372 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9373 hardcode_direct=yes
9374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9375 hardcode_libdir_separator=:
9376 hardcode_shlibpath_var=no
9377 ;;
9378
9379 *nto* | *qnx*)
9380 ;;
9381
9382 openbsd*)
9383 if test -f /usr/libexec/ld.so; then
9384 hardcode_direct=yes
9385 hardcode_shlibpath_var=no
9386 hardcode_direct_absolute=yes
9387 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9388 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9389 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9390 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9391 export_dynamic_flag_spec='${wl}-E'
9392 else
9393 case $host_os in
9394 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9396 hardcode_libdir_flag_spec='-R$libdir'
9397 ;;
9398 *)
9399 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9400 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9401 ;;
9402 esac
9403 fi
9404 else
9405 ld_shlibs=no
9406 fi
9407 ;;
9408
9409 os2*)
9410 hardcode_libdir_flag_spec='-L$libdir'
9411 hardcode_minus_L=yes
9412 allow_undefined_flag=unsupported
9413 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'
9414 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9415 ;;
9416
9417 osf3*)
9418 if test "$GCC" = yes; then
9419 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9420 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'
9421 else
9422 allow_undefined_flag=' -expect_unresolved \*'
9423 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'
9424 fi
9425 archive_cmds_need_lc='no'
9426 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9427 hardcode_libdir_separator=:
9428 ;;
9429
9430 osf4* | osf5*) # as osf3* with the addition of -msym flag
9431 if test "$GCC" = yes; then
9432 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9433 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'
9434 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9435 else
9436 allow_undefined_flag=' -expect_unresolved \*'
9437 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'
9438 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~
9439 $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'
9440
9441 # Both c and cxx compiler support -rpath directly
9442 hardcode_libdir_flag_spec='-rpath $libdir'
9443 fi
9444 archive_cmds_need_lc='no'
9445 hardcode_libdir_separator=:
9446 ;;
9447
9448 solaris*)
9449 no_undefined_flag=' -z defs'
9450 if test "$GCC" = yes; then
9451 wlarc='${wl}'
9452 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9454 $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'
9455 else
9456 case `$CC -V 2>&1` in
9457 *"Compilers 5.0"*)
9458 wlarc=''
9459 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9460 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9461 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9462 ;;
9463 *)
9464 wlarc='${wl}'
9465 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9466 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9467 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9468 ;;
9469 esac
9470 fi
9471 hardcode_libdir_flag_spec='-R$libdir'
9472 hardcode_shlibpath_var=no
9473 case $host_os in
9474 solaris2.[0-5] | solaris2.[0-5].*) ;;
9475 *)
9476 # The compiler driver will combine and reorder linker options,
9477 # but understands `-z linker_flag'. GCC discards it without `$wl',
9478 # but is careful enough not to reorder.
9479 # Supported since Solaris 2.6 (maybe 2.5.1?)
9480 if test "$GCC" = yes; then
9481 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9482 else
9483 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9484 fi
9485 ;;
9486 esac
9487 link_all_deplibs=yes
9488 ;;
9489
9490 sunos4*)
9491 if test "x$host_vendor" = xsequent; then
9492 # Use $CC to link under sequent, because it throws in some extra .o
9493 # files that make .init and .fini sections work.
9494 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9495 else
9496 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9497 fi
9498 hardcode_libdir_flag_spec='-L$libdir'
9499 hardcode_direct=yes
9500 hardcode_minus_L=yes
9501 hardcode_shlibpath_var=no
9502 ;;
9503
9504 sysv4)
9505 case $host_vendor in
9506 sni)
9507 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9508 hardcode_direct=yes # is this really true???
9509 ;;
9510 siemens)
9511 ## LD is ld it makes a PLAMLIB
9512 ## CC just makes a GrossModule.
9513 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9514 reload_cmds='$CC -r -o $output$reload_objs'
9515 hardcode_direct=no
9516 ;;
9517 motorola)
9518 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9519 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9520 ;;
9521 esac
9522 runpath_var='LD_RUN_PATH'
9523 hardcode_shlibpath_var=no
9524 ;;
9525
9526 sysv4.3*)
9527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9528 hardcode_shlibpath_var=no
9529 export_dynamic_flag_spec='-Bexport'
9530 ;;
9531
9532 sysv4*MP*)
9533 if test -d /usr/nec; then
9534 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9535 hardcode_shlibpath_var=no
9536 runpath_var=LD_RUN_PATH
9537 hardcode_runpath_var=yes
9538 ld_shlibs=yes
9539 fi
9540 ;;
9541
9542 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9543 no_undefined_flag='${wl}-z,text'
9544 archive_cmds_need_lc=no
9545 hardcode_shlibpath_var=no
9546 runpath_var='LD_RUN_PATH'
9547
9548 if test "$GCC" = yes; then
9549 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9550 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9551 else
9552 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9553 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9554 fi
9555 ;;
9556
9557 sysv5* | sco3.2v5* | sco5v6*)
9558 # Note: We can NOT use -z defs as we might desire, because we do not
9559 # link with -lc, and that would cause any symbols used from libc to
9560 # always be unresolved, which means just about no library would
9561 # ever link correctly. If we're not using GNU ld we use -z text
9562 # though, which does catch some bad symbols but isn't as heavy-handed
9563 # as -z defs.
9564 no_undefined_flag='${wl}-z,text'
9565 allow_undefined_flag='${wl}-z,nodefs'
9566 archive_cmds_need_lc=no
9567 hardcode_shlibpath_var=no
9568 hardcode_libdir_flag_spec='${wl}-R,$libdir'
9569 hardcode_libdir_separator=':'
9570 link_all_deplibs=yes
9571 export_dynamic_flag_spec='${wl}-Bexport'
9572 runpath_var='LD_RUN_PATH'
9573
9574 if test "$GCC" = yes; then
9575 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9576 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9577 else
9578 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9579 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9580 fi
9581 ;;
9582
9583 uts4*)
9584 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_shlibpath_var=no
9587 ;;
9588
9589 *)
9590 ld_shlibs=no
9591 ;;
9592 esac
9593
9594 if test x$host_vendor = xsni; then
9595 case $host in
9596 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9597 export_dynamic_flag_spec='${wl}-Blargedynsym'
9598 ;;
9599 esac
9600 fi
9601 fi
9602
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9604 $as_echo "$ld_shlibs" >&6; }
9605 test "$ld_shlibs" = no && can_build_shared=no
9606
9607 with_gnu_ld=$with_gnu_ld
9608
9609
9610
9611
9612
9613
9614
9615
9616
9617
9618
9619
9620
9621
9622
9623 #
9624 # Do we need to explicitly link libc?
9625 #
9626 case "x$archive_cmds_need_lc" in
9627 x|xyes)
9628 # Assume -lc should be added
9629 archive_cmds_need_lc=yes
9630
9631 if test "$enable_shared" = yes && test "$GCC" = yes; then
9632 case $archive_cmds in
9633 *'~'*)
9634 # FIXME: we may have to deal with multi-command sequences.
9635 ;;
9636 '$CC '*)
9637 # Test whether the compiler implicitly links with -lc since on some
9638 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9639 # to ld, don't add -lc before -lgcc.
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9641 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9642 if ${lt_cv_archive_cmds_need_lc+:} false; then :
9643 $as_echo_n "(cached) " >&6
9644 else
9645 $RM conftest*
9646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9647
9648 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9649 (eval $ac_compile) 2>&5
9650 ac_status=$?
9651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9652 test $ac_status = 0; } 2>conftest.err; then
9653 soname=conftest
9654 lib=conftest
9655 libobjs=conftest.$ac_objext
9656 deplibs=
9657 wl=$lt_prog_compiler_wl
9658 pic_flag=$lt_prog_compiler_pic
9659 compiler_flags=-v
9660 linker_flags=-v
9661 verstring=
9662 output_objdir=.
9663 libname=conftest
9664 lt_save_allow_undefined_flag=$allow_undefined_flag
9665 allow_undefined_flag=
9666 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9667 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9668 ac_status=$?
9669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9670 test $ac_status = 0; }
9671 then
9672 lt_cv_archive_cmds_need_lc=no
9673 else
9674 lt_cv_archive_cmds_need_lc=yes
9675 fi
9676 allow_undefined_flag=$lt_save_allow_undefined_flag
9677 else
9678 cat conftest.err 1>&5
9679 fi
9680 $RM conftest*
9681
9682 fi
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9684 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9685 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9686 ;;
9687 esac
9688 fi
9689 ;;
9690 esac
9691
9692
9693
9694
9695
9696
9697
9698
9699
9700
9701
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
9725
9726
9727
9728
9729
9730
9731
9732
9733
9734
9735
9736
9737
9738
9739
9740
9741
9742
9743
9744
9745
9746
9747
9748
9749
9750
9751
9752
9753
9754
9755
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778
9779
9780
9781
9782
9783
9784
9785
9786
9787
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9844 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9845
9846 if test "$GCC" = yes; then
9847 case $host_os in
9848 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9849 *) lt_awk_arg="/^libraries:/" ;;
9850 esac
9851 case $host_os in
9852 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9853 *) lt_sed_strip_eq="s,=/,/,g" ;;
9854 esac
9855 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9856 case $lt_search_path_spec in
9857 *\;*)
9858 # if the path contains ";" then we assume it to be the separator
9859 # otherwise default to the standard path separator (i.e. ":") - it is
9860 # assumed that no part of a normal pathname contains ";" but that should
9861 # okay in the real world where ";" in dirpaths is itself problematic.
9862 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9863 ;;
9864 *)
9865 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9866 ;;
9867 esac
9868 # Ok, now we have the path, separated by spaces, we can step through it
9869 # and add multilib dir if necessary.
9870 lt_tmp_lt_search_path_spec=
9871 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9872 for lt_sys_path in $lt_search_path_spec; do
9873 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9875 else
9876 test -d "$lt_sys_path" && \
9877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9878 fi
9879 done
9880 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9881 BEGIN {RS=" "; FS="/|\n";} {
9882 lt_foo="";
9883 lt_count=0;
9884 for (lt_i = NF; lt_i > 0; lt_i--) {
9885 if ($lt_i != "" && $lt_i != ".") {
9886 if ($lt_i == "..") {
9887 lt_count++;
9888 } else {
9889 if (lt_count == 0) {
9890 lt_foo="/" $lt_i lt_foo;
9891 } else {
9892 lt_count--;
9893 }
9894 }
9895 }
9896 }
9897 if (lt_foo != "") { lt_freq[lt_foo]++; }
9898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9899 }'`
9900 # AWK program above erroneously prepends '/' to C:/dos/paths
9901 # for these hosts.
9902 case $host_os in
9903 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
9904 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
9905 esac
9906 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
9907 else
9908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9909 fi
9910 library_names_spec=
9911 libname_spec='lib$name'
9912 soname_spec=
9913 shrext_cmds=".so"
9914 postinstall_cmds=
9915 postuninstall_cmds=
9916 finish_cmds=
9917 finish_eval=
9918 shlibpath_var=
9919 shlibpath_overrides_runpath=unknown
9920 version_type=none
9921 dynamic_linker="$host_os ld.so"
9922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9923 need_lib_prefix=unknown
9924 hardcode_into_libs=no
9925
9926 # when you set need_version to no, make sure it does not cause -set_version
9927 # flags to be left without arguments
9928 need_version=unknown
9929
9930 case $host_os in
9931 aix3*)
9932 version_type=linux # correct to gnu/linux during the next big refactor
9933 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9934 shlibpath_var=LIBPATH
9935
9936 # AIX 3 has no versioning support, so we append a major version to the name.
9937 soname_spec='${libname}${release}${shared_ext}$major'
9938 ;;
9939
9940 aix[4-9]*)
9941 version_type=linux # correct to gnu/linux during the next big refactor
9942 need_lib_prefix=no
9943 need_version=no
9944 hardcode_into_libs=yes
9945 if test "$host_cpu" = ia64; then
9946 # AIX 5 supports IA64
9947 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9948 shlibpath_var=LD_LIBRARY_PATH
9949 else
9950 # With GCC up to 2.95.x, collect2 would create an import file
9951 # for dependence libraries. The import file would start with
9952 # the line `#! .'. This would cause the generated library to
9953 # depend on `.', always an invalid library. This was fixed in
9954 # development snapshots of GCC prior to 3.0.
9955 case $host_os in
9956 aix4 | aix4.[01] | aix4.[01].*)
9957 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9958 echo ' yes '
9959 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9960 :
9961 else
9962 can_build_shared=no
9963 fi
9964 ;;
9965 esac
9966 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9967 # soname into executable. Probably we can add versioning support to
9968 # collect2, so additional links can be useful in future.
9969 if test "$aix_use_runtimelinking" = yes; then
9970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9971 # instead of lib<name>.a to let people know that these are not
9972 # typical AIX shared libraries.
9973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9974 else
9975 # We preserve .a as extension for shared libraries through AIX4.2
9976 # and later when we are not doing run time linking.
9977 library_names_spec='${libname}${release}.a $libname.a'
9978 soname_spec='${libname}${release}${shared_ext}$major'
9979 fi
9980 shlibpath_var=LIBPATH
9981 fi
9982 ;;
9983
9984 amigaos*)
9985 case $host_cpu in
9986 powerpc)
9987 # Since July 2007 AmigaOS4 officially supports .so libraries.
9988 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9990 ;;
9991 m68k)
9992 library_names_spec='$libname.ixlibrary $libname.a'
9993 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9994 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'
9995 ;;
9996 esac
9997 ;;
9998
9999 beos*)
10000 library_names_spec='${libname}${shared_ext}'
10001 dynamic_linker="$host_os ld.so"
10002 shlibpath_var=LIBRARY_PATH
10003 ;;
10004
10005 bsdi[45]*)
10006 version_type=linux # correct to gnu/linux during the next big refactor
10007 need_version=no
10008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10009 soname_spec='${libname}${release}${shared_ext}$major'
10010 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10011 shlibpath_var=LD_LIBRARY_PATH
10012 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10013 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10014 # the default ld.so.conf also contains /usr/contrib/lib and
10015 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10016 # libtool to hard-code these into programs
10017 ;;
10018
10019 cygwin* | mingw* | pw32* | cegcc*)
10020 version_type=windows
10021 shrext_cmds=".dll"
10022 need_version=no
10023 need_lib_prefix=no
10024
10025 case $GCC,$cc_basename in
10026 yes,*)
10027 # gcc
10028 library_names_spec='$libname.dll.a'
10029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10030 postinstall_cmds='base_file=`basename \${file}`~
10031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10032 dldir=$destdir/`dirname \$dlpath`~
10033 test -d \$dldir || mkdir -p \$dldir~
10034 $install_prog $dir/$dlname \$dldir/$dlname~
10035 chmod a+x \$dldir/$dlname~
10036 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10037 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10038 fi'
10039 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10040 dlpath=$dir/\$dldll~
10041 $RM \$dlpath'
10042 shlibpath_overrides_runpath=yes
10043
10044 case $host_os in
10045 cygwin*)
10046 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10047 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10048
10049 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10050 ;;
10051 mingw* | cegcc*)
10052 # MinGW DLLs use traditional 'lib' prefix
10053 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10054 ;;
10055 pw32*)
10056 # pw32 DLLs use 'pw' prefix rather than 'lib'
10057 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10058 ;;
10059 esac
10060 dynamic_linker='Win32 ld.exe'
10061 ;;
10062
10063 *,cl*)
10064 # Native MSVC
10065 libname_spec='$name'
10066 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10067 library_names_spec='${libname}.dll.lib'
10068
10069 case $build_os in
10070 mingw*)
10071 sys_lib_search_path_spec=
10072 lt_save_ifs=$IFS
10073 IFS=';'
10074 for lt_path in $LIB
10075 do
10076 IFS=$lt_save_ifs
10077 # Let DOS variable expansion print the short 8.3 style file name.
10078 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10079 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10080 done
10081 IFS=$lt_save_ifs
10082 # Convert to MSYS style.
10083 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10084 ;;
10085 cygwin*)
10086 # Convert to unix form, then to dos form, then back to unix form
10087 # but this time dos style (no spaces!) so that the unix form looks
10088 # like /cygdrive/c/PROGRA~1:/cygdr...
10089 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10090 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10091 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10092 ;;
10093 *)
10094 sys_lib_search_path_spec="$LIB"
10095 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10096 # It is most probably a Windows format PATH.
10097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10098 else
10099 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10100 fi
10101 # FIXME: find the short name or the path components, as spaces are
10102 # common. (e.g. "Program Files" -> "PROGRA~1")
10103 ;;
10104 esac
10105
10106 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10107 postinstall_cmds='base_file=`basename \${file}`~
10108 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10109 dldir=$destdir/`dirname \$dlpath`~
10110 test -d \$dldir || mkdir -p \$dldir~
10111 $install_prog $dir/$dlname \$dldir/$dlname'
10112 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10113 dlpath=$dir/\$dldll~
10114 $RM \$dlpath'
10115 shlibpath_overrides_runpath=yes
10116 dynamic_linker='Win32 link.exe'
10117 ;;
10118
10119 *)
10120 # Assume MSVC wrapper
10121 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10122 dynamic_linker='Win32 ld.exe'
10123 ;;
10124 esac
10125 # FIXME: first we should search . and the directory the executable is in
10126 shlibpath_var=PATH
10127 ;;
10128
10129 darwin* | rhapsody*)
10130 dynamic_linker="$host_os dyld"
10131 version_type=darwin
10132 need_lib_prefix=no
10133 need_version=no
10134 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10135 soname_spec='${libname}${release}${major}$shared_ext'
10136 shlibpath_overrides_runpath=yes
10137 shlibpath_var=DYLD_LIBRARY_PATH
10138 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10139
10140 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10141 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10142 ;;
10143
10144 dgux*)
10145 version_type=linux # correct to gnu/linux during the next big refactor
10146 need_lib_prefix=no
10147 need_version=no
10148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10149 soname_spec='${libname}${release}${shared_ext}$major'
10150 shlibpath_var=LD_LIBRARY_PATH
10151 ;;
10152
10153 freebsd* | dragonfly*)
10154 # DragonFly does not have aout. When/if they implement a new
10155 # versioning mechanism, adjust this.
10156 if test -x /usr/bin/objformat; then
10157 objformat=`/usr/bin/objformat`
10158 else
10159 case $host_os in
10160 freebsd[23].*) objformat=aout ;;
10161 *) objformat=elf ;;
10162 esac
10163 fi
10164 version_type=freebsd-$objformat
10165 case $version_type in
10166 freebsd-elf*)
10167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10168 need_version=no
10169 need_lib_prefix=no
10170 ;;
10171 freebsd-*)
10172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10173 need_version=yes
10174 ;;
10175 esac
10176 shlibpath_var=LD_LIBRARY_PATH
10177 case $host_os in
10178 freebsd2.*)
10179 shlibpath_overrides_runpath=yes
10180 ;;
10181 freebsd3.[01]* | freebsdelf3.[01]*)
10182 shlibpath_overrides_runpath=yes
10183 hardcode_into_libs=yes
10184 ;;
10185 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10186 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10187 shlibpath_overrides_runpath=no
10188 hardcode_into_libs=yes
10189 ;;
10190 *) # from 4.6 on, and DragonFly
10191 shlibpath_overrides_runpath=yes
10192 hardcode_into_libs=yes
10193 ;;
10194 esac
10195 ;;
10196
10197 gnu*)
10198 version_type=linux # correct to gnu/linux during the next big refactor
10199 need_lib_prefix=no
10200 need_version=no
10201 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10202 soname_spec='${libname}${release}${shared_ext}$major'
10203 shlibpath_var=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath=no
10205 hardcode_into_libs=yes
10206 ;;
10207
10208 haiku*)
10209 version_type=linux # correct to gnu/linux during the next big refactor
10210 need_lib_prefix=no
10211 need_version=no
10212 dynamic_linker="$host_os runtime_loader"
10213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10214 soname_spec='${libname}${release}${shared_ext}$major'
10215 shlibpath_var=LIBRARY_PATH
10216 shlibpath_overrides_runpath=yes
10217 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10218 hardcode_into_libs=yes
10219 ;;
10220
10221 hpux9* | hpux10* | hpux11*)
10222 # Give a soname corresponding to the major version so that dld.sl refuses to
10223 # link against other versions.
10224 version_type=sunos
10225 need_lib_prefix=no
10226 need_version=no
10227 case $host_cpu in
10228 ia64*)
10229 shrext_cmds='.so'
10230 hardcode_into_libs=yes
10231 dynamic_linker="$host_os dld.so"
10232 shlibpath_var=LD_LIBRARY_PATH
10233 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10235 soname_spec='${libname}${release}${shared_ext}$major'
10236 if test "X$HPUX_IA64_MODE" = X32; then
10237 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10238 else
10239 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10240 fi
10241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10242 ;;
10243 hppa*64*)
10244 shrext_cmds='.sl'
10245 hardcode_into_libs=yes
10246 dynamic_linker="$host_os dld.sl"
10247 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10248 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10250 soname_spec='${libname}${release}${shared_ext}$major'
10251 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10252 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10253 ;;
10254 *)
10255 shrext_cmds='.sl'
10256 dynamic_linker="$host_os dld.sl"
10257 shlibpath_var=SHLIB_PATH
10258 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10260 soname_spec='${libname}${release}${shared_ext}$major'
10261 ;;
10262 esac
10263 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10264 postinstall_cmds='chmod 555 $lib'
10265 # or fails outright, so override atomically:
10266 install_override_mode=555
10267 ;;
10268
10269 interix[3-9]*)
10270 version_type=linux # correct to gnu/linux during the next big refactor
10271 need_lib_prefix=no
10272 need_version=no
10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10274 soname_spec='${libname}${release}${shared_ext}$major'
10275 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10276 shlibpath_var=LD_LIBRARY_PATH
10277 shlibpath_overrides_runpath=no
10278 hardcode_into_libs=yes
10279 ;;
10280
10281 irix5* | irix6* | nonstopux*)
10282 case $host_os in
10283 nonstopux*) version_type=nonstopux ;;
10284 *)
10285 if test "$lt_cv_prog_gnu_ld" = yes; then
10286 version_type=linux # correct to gnu/linux during the next big refactor
10287 else
10288 version_type=irix
10289 fi ;;
10290 esac
10291 need_lib_prefix=no
10292 need_version=no
10293 soname_spec='${libname}${release}${shared_ext}$major'
10294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10295 case $host_os in
10296 irix5* | nonstopux*)
10297 libsuff= shlibsuff=
10298 ;;
10299 *)
10300 case $LD in # libtool.m4 will add one of these switches to LD
10301 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10302 libsuff= shlibsuff= libmagic=32-bit;;
10303 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10304 libsuff=32 shlibsuff=N32 libmagic=N32;;
10305 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10306 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10307 *) libsuff= shlibsuff= libmagic=never-match;;
10308 esac
10309 ;;
10310 esac
10311 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10312 shlibpath_overrides_runpath=no
10313 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10314 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10315 hardcode_into_libs=yes
10316 ;;
10317
10318 # No shared lib support for Linux oldld, aout, or coff.
10319 linux*oldld* | linux*aout* | linux*coff*)
10320 dynamic_linker=no
10321 ;;
10322
10323 # This must be glibc/ELF.
10324 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10325 version_type=linux # correct to gnu/linux during the next big refactor
10326 need_lib_prefix=no
10327 need_version=no
10328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10329 soname_spec='${libname}${release}${shared_ext}$major'
10330 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10331 shlibpath_var=LD_LIBRARY_PATH
10332 shlibpath_overrides_runpath=no
10333
10334 # Some binutils ld are patched to set DT_RUNPATH
10335 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10336 $as_echo_n "(cached) " >&6
10337 else
10338 lt_cv_shlibpath_overrides_runpath=no
10339 save_LDFLAGS=$LDFLAGS
10340 save_libdir=$libdir
10341 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10342 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10344 /* end confdefs.h. */
10345
10346 int
10347 main ()
10348 {
10349
10350 ;
10351 return 0;
10352 }
10353 _ACEOF
10354 if ac_fn_c_try_link "$LINENO"; then :
10355 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10356 lt_cv_shlibpath_overrides_runpath=yes
10357 fi
10358 fi
10359 rm -f core conftest.err conftest.$ac_objext \
10360 conftest$ac_exeext conftest.$ac_ext
10361 LDFLAGS=$save_LDFLAGS
10362 libdir=$save_libdir
10363
10364 fi
10365
10366 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10367
10368 # This implies no fast_install, which is unacceptable.
10369 # Some rework will be needed to allow for fast_install
10370 # before this can be enabled.
10371 hardcode_into_libs=yes
10372
10373 # Append ld.so.conf contents to the search path
10374 if test -f /etc/ld.so.conf; then
10375 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' ' '`
10376 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10377 fi
10378
10379 # We used to test for /lib/ld.so.1 and disable shared libraries on
10380 # powerpc, because MkLinux only supported shared libraries with the
10381 # GNU dynamic linker. Since this was broken with cross compilers,
10382 # most powerpc-linux boxes support dynamic linking these days and
10383 # people can always --disable-shared, the test was removed, and we
10384 # assume the GNU/Linux dynamic linker is in use.
10385 dynamic_linker='GNU/Linux ld.so'
10386 ;;
10387
10388 netbsd*)
10389 version_type=sunos
10390 need_lib_prefix=no
10391 need_version=no
10392 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10394 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10395 dynamic_linker='NetBSD (a.out) ld.so'
10396 else
10397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10398 soname_spec='${libname}${release}${shared_ext}$major'
10399 dynamic_linker='NetBSD ld.elf_so'
10400 fi
10401 shlibpath_var=LD_LIBRARY_PATH
10402 shlibpath_overrides_runpath=yes
10403 hardcode_into_libs=yes
10404 ;;
10405
10406 newsos6)
10407 version_type=linux # correct to gnu/linux during the next big refactor
10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10409 shlibpath_var=LD_LIBRARY_PATH
10410 shlibpath_overrides_runpath=yes
10411 ;;
10412
10413 *nto* | *qnx*)
10414 version_type=qnx
10415 need_lib_prefix=no
10416 need_version=no
10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10418 soname_spec='${libname}${release}${shared_ext}$major'
10419 shlibpath_var=LD_LIBRARY_PATH
10420 shlibpath_overrides_runpath=no
10421 hardcode_into_libs=yes
10422 dynamic_linker='ldqnx.so'
10423 ;;
10424
10425 openbsd*)
10426 version_type=sunos
10427 sys_lib_dlsearch_path_spec="/usr/lib"
10428 need_lib_prefix=no
10429 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10430 case $host_os in
10431 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10432 *) need_version=no ;;
10433 esac
10434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10435 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10436 shlibpath_var=LD_LIBRARY_PATH
10437 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10438 case $host_os in
10439 openbsd2.[89] | openbsd2.[89].*)
10440 shlibpath_overrides_runpath=no
10441 ;;
10442 *)
10443 shlibpath_overrides_runpath=yes
10444 ;;
10445 esac
10446 else
10447 shlibpath_overrides_runpath=yes
10448 fi
10449 ;;
10450
10451 os2*)
10452 libname_spec='$name'
10453 shrext_cmds=".dll"
10454 need_lib_prefix=no
10455 library_names_spec='$libname${shared_ext} $libname.a'
10456 dynamic_linker='OS/2 ld.exe'
10457 shlibpath_var=LIBPATH
10458 ;;
10459
10460 osf3* | osf4* | osf5*)
10461 version_type=osf
10462 need_lib_prefix=no
10463 need_version=no
10464 soname_spec='${libname}${release}${shared_ext}$major'
10465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10466 shlibpath_var=LD_LIBRARY_PATH
10467 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10468 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10469 ;;
10470
10471 rdos*)
10472 dynamic_linker=no
10473 ;;
10474
10475 solaris*)
10476 version_type=linux # correct to gnu/linux during the next big refactor
10477 need_lib_prefix=no
10478 need_version=no
10479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10480 soname_spec='${libname}${release}${shared_ext}$major'
10481 shlibpath_var=LD_LIBRARY_PATH
10482 shlibpath_overrides_runpath=yes
10483 hardcode_into_libs=yes
10484 # ldd complains unless libraries are executable
10485 postinstall_cmds='chmod +x $lib'
10486 ;;
10487
10488 sunos4*)
10489 version_type=sunos
10490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10491 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10492 shlibpath_var=LD_LIBRARY_PATH
10493 shlibpath_overrides_runpath=yes
10494 if test "$with_gnu_ld" = yes; then
10495 need_lib_prefix=no
10496 fi
10497 need_version=yes
10498 ;;
10499
10500 sysv4 | sysv4.3*)
10501 version_type=linux # correct to gnu/linux during the next big refactor
10502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10503 soname_spec='${libname}${release}${shared_ext}$major'
10504 shlibpath_var=LD_LIBRARY_PATH
10505 case $host_vendor in
10506 sni)
10507 shlibpath_overrides_runpath=no
10508 need_lib_prefix=no
10509 runpath_var=LD_RUN_PATH
10510 ;;
10511 siemens)
10512 need_lib_prefix=no
10513 ;;
10514 motorola)
10515 need_lib_prefix=no
10516 need_version=no
10517 shlibpath_overrides_runpath=no
10518 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10519 ;;
10520 esac
10521 ;;
10522
10523 sysv4*MP*)
10524 if test -d /usr/nec ;then
10525 version_type=linux # correct to gnu/linux during the next big refactor
10526 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10527 soname_spec='$libname${shared_ext}.$major'
10528 shlibpath_var=LD_LIBRARY_PATH
10529 fi
10530 ;;
10531
10532 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10533 version_type=freebsd-elf
10534 need_lib_prefix=no
10535 need_version=no
10536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10537 soname_spec='${libname}${release}${shared_ext}$major'
10538 shlibpath_var=LD_LIBRARY_PATH
10539 shlibpath_overrides_runpath=yes
10540 hardcode_into_libs=yes
10541 if test "$with_gnu_ld" = yes; then
10542 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10543 else
10544 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10545 case $host_os in
10546 sco3.2v5*)
10547 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10548 ;;
10549 esac
10550 fi
10551 sys_lib_dlsearch_path_spec='/usr/lib'
10552 ;;
10553
10554 tpf*)
10555 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10556 version_type=linux # correct to gnu/linux during the next big refactor
10557 need_lib_prefix=no
10558 need_version=no
10559 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10560 shlibpath_var=LD_LIBRARY_PATH
10561 shlibpath_overrides_runpath=no
10562 hardcode_into_libs=yes
10563 ;;
10564
10565 uts4*)
10566 version_type=linux # correct to gnu/linux during the next big refactor
10567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10568 soname_spec='${libname}${release}${shared_ext}$major'
10569 shlibpath_var=LD_LIBRARY_PATH
10570 ;;
10571
10572 *)
10573 dynamic_linker=no
10574 ;;
10575 esac
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10577 $as_echo "$dynamic_linker" >&6; }
10578 test "$dynamic_linker" = no && can_build_shared=no
10579
10580 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10581 if test "$GCC" = yes; then
10582 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10583 fi
10584
10585 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10586 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10587 fi
10588 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10589 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10590 fi
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10684 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10685 hardcode_action=
10686 if test -n "$hardcode_libdir_flag_spec" ||
10687 test -n "$runpath_var" ||
10688 test "X$hardcode_automatic" = "Xyes" ; then
10689
10690 # We can hardcode non-existent directories.
10691 if test "$hardcode_direct" != no &&
10692 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10693 # have to relink, otherwise we might link with an installed library
10694 # when we should be linking with a yet-to-be-installed one
10695 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10696 test "$hardcode_minus_L" != no; then
10697 # Linking always hardcodes the temporary library directory.
10698 hardcode_action=relink
10699 else
10700 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10701 hardcode_action=immediate
10702 fi
10703 else
10704 # We cannot hardcode anything, or else we can only hardcode existing
10705 # directories.
10706 hardcode_action=unsupported
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10709 $as_echo "$hardcode_action" >&6; }
10710
10711 if test "$hardcode_action" = relink ||
10712 test "$inherit_rpath" = yes; then
10713 # Fast installation is not supported
10714 enable_fast_install=no
10715 elif test "$shlibpath_overrides_runpath" = yes ||
10716 test "$enable_shared" = no; then
10717 # Fast installation is not necessary
10718 enable_fast_install=needless
10719 fi
10720
10721
10722
10723
10724
10725
10726 if test "x$enable_dlopen" != xyes; then
10727 enable_dlopen=unknown
10728 enable_dlopen_self=unknown
10729 enable_dlopen_self_static=unknown
10730 else
10731 lt_cv_dlopen=no
10732 lt_cv_dlopen_libs=
10733
10734 case $host_os in
10735 beos*)
10736 lt_cv_dlopen="load_add_on"
10737 lt_cv_dlopen_libs=
10738 lt_cv_dlopen_self=yes
10739 ;;
10740
10741 mingw* | pw32* | cegcc*)
10742 lt_cv_dlopen="LoadLibrary"
10743 lt_cv_dlopen_libs=
10744 ;;
10745
10746 cygwin*)
10747 lt_cv_dlopen="dlopen"
10748 lt_cv_dlopen_libs=
10749 ;;
10750
10751 darwin*)
10752 # if libdl is installed we need to link against it
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10754 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10755 if ${ac_cv_lib_dl_dlopen+:} false; then :
10756 $as_echo_n "(cached) " >&6
10757 else
10758 ac_check_lib_save_LIBS=$LIBS
10759 LIBS="-ldl $LIBS"
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10766 #ifdef __cplusplus
10767 extern "C"
10768 #endif
10769 char dlopen ();
10770 int
10771 main ()
10772 {
10773 return dlopen ();
10774 ;
10775 return 0;
10776 }
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10779 ac_cv_lib_dl_dlopen=yes
10780 else
10781 ac_cv_lib_dl_dlopen=no
10782 fi
10783 rm -f core conftest.err conftest.$ac_objext \
10784 conftest$ac_exeext conftest.$ac_ext
10785 LIBS=$ac_check_lib_save_LIBS
10786 fi
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10788 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10789 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10790 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10791 else
10792
10793 lt_cv_dlopen="dyld"
10794 lt_cv_dlopen_libs=
10795 lt_cv_dlopen_self=yes
10796
10797 fi
10798
10799 ;;
10800
10801 *)
10802 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10803 if test "x$ac_cv_func_shl_load" = xyes; then :
10804 lt_cv_dlopen="shl_load"
10805 else
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10807 $as_echo_n "checking for shl_load in -ldld... " >&6; }
10808 if ${ac_cv_lib_dld_shl_load+:} false; then :
10809 $as_echo_n "(cached) " >&6
10810 else
10811 ac_check_lib_save_LIBS=$LIBS
10812 LIBS="-ldld $LIBS"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10815
10816 /* Override any GCC internal prototype to avoid an error.
10817 Use char because int might match the return type of a GCC
10818 builtin and then its argument prototype would still apply. */
10819 #ifdef __cplusplus
10820 extern "C"
10821 #endif
10822 char shl_load ();
10823 int
10824 main ()
10825 {
10826 return shl_load ();
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 if ac_fn_c_try_link "$LINENO"; then :
10832 ac_cv_lib_dld_shl_load=yes
10833 else
10834 ac_cv_lib_dld_shl_load=no
10835 fi
10836 rm -f core conftest.err conftest.$ac_objext \
10837 conftest$ac_exeext conftest.$ac_ext
10838 LIBS=$ac_check_lib_save_LIBS
10839 fi
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10841 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10842 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10843 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10844 else
10845 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10846 if test "x$ac_cv_func_dlopen" = xyes; then :
10847 lt_cv_dlopen="dlopen"
10848 else
10849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10851 if ${ac_cv_lib_dl_dlopen+:} false; then :
10852 $as_echo_n "(cached) " >&6
10853 else
10854 ac_check_lib_save_LIBS=$LIBS
10855 LIBS="-ldl $LIBS"
10856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10857 /* end confdefs.h. */
10858
10859 /* Override any GCC internal prototype to avoid an error.
10860 Use char because int might match the return type of a GCC
10861 builtin and then its argument prototype would still apply. */
10862 #ifdef __cplusplus
10863 extern "C"
10864 #endif
10865 char dlopen ();
10866 int
10867 main ()
10868 {
10869 return dlopen ();
10870 ;
10871 return 0;
10872 }
10873 _ACEOF
10874 if ac_fn_c_try_link "$LINENO"; then :
10875 ac_cv_lib_dl_dlopen=yes
10876 else
10877 ac_cv_lib_dl_dlopen=no
10878 fi
10879 rm -f core conftest.err conftest.$ac_objext \
10880 conftest$ac_exeext conftest.$ac_ext
10881 LIBS=$ac_check_lib_save_LIBS
10882 fi
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10885 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10886 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10887 else
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
10889 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10890 if ${ac_cv_lib_svld_dlopen+:} false; then :
10891 $as_echo_n "(cached) " >&6
10892 else
10893 ac_check_lib_save_LIBS=$LIBS
10894 LIBS="-lsvld $LIBS"
10895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10896 /* end confdefs.h. */
10897
10898 /* Override any GCC internal prototype to avoid an error.
10899 Use char because int might match the return type of a GCC
10900 builtin and then its argument prototype would still apply. */
10901 #ifdef __cplusplus
10902 extern "C"
10903 #endif
10904 char dlopen ();
10905 int
10906 main ()
10907 {
10908 return dlopen ();
10909 ;
10910 return 0;
10911 }
10912 _ACEOF
10913 if ac_fn_c_try_link "$LINENO"; then :
10914 ac_cv_lib_svld_dlopen=yes
10915 else
10916 ac_cv_lib_svld_dlopen=no
10917 fi
10918 rm -f core conftest.err conftest.$ac_objext \
10919 conftest$ac_exeext conftest.$ac_ext
10920 LIBS=$ac_check_lib_save_LIBS
10921 fi
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
10923 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10924 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
10925 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10926 else
10927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
10928 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10929 if ${ac_cv_lib_dld_dld_link+:} false; then :
10930 $as_echo_n "(cached) " >&6
10931 else
10932 ac_check_lib_save_LIBS=$LIBS
10933 LIBS="-ldld $LIBS"
10934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10935 /* end confdefs.h. */
10936
10937 /* Override any GCC internal prototype to avoid an error.
10938 Use char because int might match the return type of a GCC
10939 builtin and then its argument prototype would still apply. */
10940 #ifdef __cplusplus
10941 extern "C"
10942 #endif
10943 char dld_link ();
10944 int
10945 main ()
10946 {
10947 return dld_link ();
10948 ;
10949 return 0;
10950 }
10951 _ACEOF
10952 if ac_fn_c_try_link "$LINENO"; then :
10953 ac_cv_lib_dld_dld_link=yes
10954 else
10955 ac_cv_lib_dld_dld_link=no
10956 fi
10957 rm -f core conftest.err conftest.$ac_objext \
10958 conftest$ac_exeext conftest.$ac_ext
10959 LIBS=$ac_check_lib_save_LIBS
10960 fi
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
10962 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10963 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
10964 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10965 fi
10966
10967
10968 fi
10969
10970
10971 fi
10972
10973
10974 fi
10975
10976
10977 fi
10978
10979
10980 fi
10981
10982 ;;
10983 esac
10984
10985 if test "x$lt_cv_dlopen" != xno; then
10986 enable_dlopen=yes
10987 else
10988 enable_dlopen=no
10989 fi
10990
10991 case $lt_cv_dlopen in
10992 dlopen)
10993 save_CPPFLAGS="$CPPFLAGS"
10994 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10995
10996 save_LDFLAGS="$LDFLAGS"
10997 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10998
10999 save_LIBS="$LIBS"
11000 LIBS="$lt_cv_dlopen_libs $LIBS"
11001
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11003 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11004 if ${lt_cv_dlopen_self+:} false; then :
11005 $as_echo_n "(cached) " >&6
11006 else
11007 if test "$cross_compiling" = yes; then :
11008 lt_cv_dlopen_self=cross
11009 else
11010 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11011 lt_status=$lt_dlunknown
11012 cat > conftest.$ac_ext <<_LT_EOF
11013 #line $LINENO "configure"
11014 #include "confdefs.h"
11015
11016 #if HAVE_DLFCN_H
11017 #include <dlfcn.h>
11018 #endif
11019
11020 #include <stdio.h>
11021
11022 #ifdef RTLD_GLOBAL
11023 # define LT_DLGLOBAL RTLD_GLOBAL
11024 #else
11025 # ifdef DL_GLOBAL
11026 # define LT_DLGLOBAL DL_GLOBAL
11027 # else
11028 # define LT_DLGLOBAL 0
11029 # endif
11030 #endif
11031
11032 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11033 find out it does not work in some platform. */
11034 #ifndef LT_DLLAZY_OR_NOW
11035 # ifdef RTLD_LAZY
11036 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11037 # else
11038 # ifdef DL_LAZY
11039 # define LT_DLLAZY_OR_NOW DL_LAZY
11040 # else
11041 # ifdef RTLD_NOW
11042 # define LT_DLLAZY_OR_NOW RTLD_NOW
11043 # else
11044 # ifdef DL_NOW
11045 # define LT_DLLAZY_OR_NOW DL_NOW
11046 # else
11047 # define LT_DLLAZY_OR_NOW 0
11048 # endif
11049 # endif
11050 # endif
11051 # endif
11052 #endif
11053
11054 /* When -fvisbility=hidden is used, assume the code has been annotated
11055 correspondingly for the symbols needed. */
11056 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11057 int fnord () __attribute__((visibility("default")));
11058 #endif
11059
11060 int fnord () { return 42; }
11061 int main ()
11062 {
11063 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11064 int status = $lt_dlunknown;
11065
11066 if (self)
11067 {
11068 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11069 else
11070 {
11071 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11072 else puts (dlerror ());
11073 }
11074 /* dlclose (self); */
11075 }
11076 else
11077 puts (dlerror ());
11078
11079 return status;
11080 }
11081 _LT_EOF
11082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11083 (eval $ac_link) 2>&5
11084 ac_status=$?
11085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11086 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11087 (./conftest; exit; ) >&5 2>/dev/null
11088 lt_status=$?
11089 case x$lt_status in
11090 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11091 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11092 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11093 esac
11094 else :
11095 # compilation failed
11096 lt_cv_dlopen_self=no
11097 fi
11098 fi
11099 rm -fr conftest*
11100
11101
11102 fi
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11104 $as_echo "$lt_cv_dlopen_self" >&6; }
11105
11106 if test "x$lt_cv_dlopen_self" = xyes; then
11107 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11109 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11110 if ${lt_cv_dlopen_self_static+:} false; then :
11111 $as_echo_n "(cached) " >&6
11112 else
11113 if test "$cross_compiling" = yes; then :
11114 lt_cv_dlopen_self_static=cross
11115 else
11116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11117 lt_status=$lt_dlunknown
11118 cat > conftest.$ac_ext <<_LT_EOF
11119 #line $LINENO "configure"
11120 #include "confdefs.h"
11121
11122 #if HAVE_DLFCN_H
11123 #include <dlfcn.h>
11124 #endif
11125
11126 #include <stdio.h>
11127
11128 #ifdef RTLD_GLOBAL
11129 # define LT_DLGLOBAL RTLD_GLOBAL
11130 #else
11131 # ifdef DL_GLOBAL
11132 # define LT_DLGLOBAL DL_GLOBAL
11133 # else
11134 # define LT_DLGLOBAL 0
11135 # endif
11136 #endif
11137
11138 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11139 find out it does not work in some platform. */
11140 #ifndef LT_DLLAZY_OR_NOW
11141 # ifdef RTLD_LAZY
11142 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11143 # else
11144 # ifdef DL_LAZY
11145 # define LT_DLLAZY_OR_NOW DL_LAZY
11146 # else
11147 # ifdef RTLD_NOW
11148 # define LT_DLLAZY_OR_NOW RTLD_NOW
11149 # else
11150 # ifdef DL_NOW
11151 # define LT_DLLAZY_OR_NOW DL_NOW
11152 # else
11153 # define LT_DLLAZY_OR_NOW 0
11154 # endif
11155 # endif
11156 # endif
11157 # endif
11158 #endif
11159
11160 /* When -fvisbility=hidden is used, assume the code has been annotated
11161 correspondingly for the symbols needed. */
11162 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11163 int fnord () __attribute__((visibility("default")));
11164 #endif
11165
11166 int fnord () { return 42; }
11167 int main ()
11168 {
11169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11170 int status = $lt_dlunknown;
11171
11172 if (self)
11173 {
11174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11175 else
11176 {
11177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11178 else puts (dlerror ());
11179 }
11180 /* dlclose (self); */
11181 }
11182 else
11183 puts (dlerror ());
11184
11185 return status;
11186 }
11187 _LT_EOF
11188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11189 (eval $ac_link) 2>&5
11190 ac_status=$?
11191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11193 (./conftest; exit; ) >&5 2>/dev/null
11194 lt_status=$?
11195 case x$lt_status in
11196 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11197 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11198 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11199 esac
11200 else :
11201 # compilation failed
11202 lt_cv_dlopen_self_static=no
11203 fi
11204 fi
11205 rm -fr conftest*
11206
11207
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11210 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11211 fi
11212
11213 CPPFLAGS="$save_CPPFLAGS"
11214 LDFLAGS="$save_LDFLAGS"
11215 LIBS="$save_LIBS"
11216 ;;
11217 esac
11218
11219 case $lt_cv_dlopen_self in
11220 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11221 *) enable_dlopen_self=unknown ;;
11222 esac
11223
11224 case $lt_cv_dlopen_self_static in
11225 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11226 *) enable_dlopen_self_static=unknown ;;
11227 esac
11228 fi
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246 striplib=
11247 old_striplib=
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11249 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11250 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11251 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11252 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11254 $as_echo "yes" >&6; }
11255 else
11256 # FIXME - insert some real tests, host_os isn't really good enough
11257 case $host_os in
11258 darwin*)
11259 if test -n "$STRIP" ; then
11260 striplib="$STRIP -x"
11261 old_striplib="$STRIP -S"
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11263 $as_echo "yes" >&6; }
11264 else
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11266 $as_echo "no" >&6; }
11267 fi
11268 ;;
11269 *)
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 $as_echo "no" >&6; }
11272 ;;
11273 esac
11274 fi
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287 # Report which library types will actually be built
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11289 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11291 $as_echo "$can_build_shared" >&6; }
11292
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11294 $as_echo_n "checking whether to build shared libraries... " >&6; }
11295 test "$can_build_shared" = "no" && enable_shared=no
11296
11297 # On AIX, shared libraries and static libraries use the same namespace, and
11298 # are all built from PIC.
11299 case $host_os in
11300 aix3*)
11301 test "$enable_shared" = yes && enable_static=no
11302 if test -n "$RANLIB"; then
11303 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11304 postinstall_cmds='$RANLIB $lib'
11305 fi
11306 ;;
11307
11308 aix[4-9]*)
11309 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11310 test "$enable_shared" = yes && enable_static=no
11311 fi
11312 ;;
11313 esac
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11315 $as_echo "$enable_shared" >&6; }
11316
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11318 $as_echo_n "checking whether to build static libraries... " >&6; }
11319 # Make sure either enable_shared or enable_static is yes.
11320 test "$enable_shared" = yes || enable_static=yes
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11322 $as_echo "$enable_static" >&6; }
11323
11324
11325
11326
11327 fi
11328 ac_ext=c
11329 ac_cpp='$CPP $CPPFLAGS'
11330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11333
11334 CC="$lt_save_CC"
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345
11346
11347
11348
11349
11350 ac_config_commands="$ac_config_commands libtool"
11351
11352
11353
11354
11355 # Only expand once:
11356
11357
11358
11359 # Require X.Org macros 1.8 or later
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
11372 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
11373 if ${ac_cv_prog_cc_c99+:} false; then :
11374 $as_echo_n "(cached) " >&6
11375 else
11376 ac_cv_prog_cc_c99=no
11377 ac_save_CC=$CC
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11380 #include <stdarg.h>
11381 #include <stdbool.h>
11382 #include <stdlib.h>
11383 #include <wchar.h>
11384 #include <stdio.h>
11385
11386 // Check varargs macros. These examples are taken from C99 6.10.3.5.
11387 #define debug(...) fprintf (stderr, __VA_ARGS__)
11388 #define showlist(...) puts (#__VA_ARGS__)
11389 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
11390 static void
11391 test_varargs_macros (void)
11392 {
11393 int x = 1234;
11394 int y = 5678;
11395 debug ("Flag");
11396 debug ("X = %d\n", x);
11397 showlist (The first, second, and third items.);
11398 report (x>y, "x is %d but y is %d", x, y);
11399 }
11400
11401 // Check long long types.
11402 #define BIG64 18446744073709551615ull
11403 #define BIG32 4294967295ul
11404 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
11405 #if !BIG_OK
11406 your preprocessor is broken;
11407 #endif
11408 #if BIG_OK
11409 #else
11410 your preprocessor is broken;
11411 #endif
11412 static long long int bignum = -9223372036854775807LL;
11413 static unsigned long long int ubignum = BIG64;
11414
11415 struct incomplete_array
11416 {
11417 int datasize;
11418 double data[];
11419 };
11420
11421 struct named_init {
11422 int number;
11423 const wchar_t *name;
11424 double average;
11425 };
11426
11427 typedef const char *ccp;
11428
11429 static inline int
11430 test_restrict (ccp restrict text)
11431 {
11432 // See if C++-style comments work.
11433 // Iterate through items via the restricted pointer.
11434 // Also check for declarations in for loops.
11435 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
11436 continue;
11437 return 0;
11438 }
11439
11440 // Check varargs and va_copy.
11441 static void
11442 test_varargs (const char *format, ...)
11443 {
11444 va_list args;
11445 va_start (args, format);
11446 va_list args_copy;
11447 va_copy (args_copy, args);
11448
11449 const char *str;
11450 int number;
11451 float fnumber;
11452
11453 while (*format)
11454 {
11455 switch (*format++)
11456 {
11457 case 's': // string
11458 str = va_arg (args_copy, const char *);
11459 break;
11460 case 'd': // int
11461 number = va_arg (args_copy, int);
11462 break;
11463 case 'f': // float
11464 fnumber = va_arg (args_copy, double);
11465 break;
11466 default:
11467 break;
11468 }
11469 }
11470 va_end (args_copy);
11471 va_end (args);
11472 }
11473
11474 int
11475 main ()
11476 {
11477
11478 // Check bool.
11479 _Bool success = false;
11480
11481 // Check restrict.
11482 if (test_restrict ("String literal") == 0)
11483 success = true;
11484 char *restrict newvar = "Another string";
11485
11486 // Check varargs.
11487 test_varargs ("s, d' f .", "string", 65, 34.234);
11488 test_varargs_macros ();
11489
11490 // Check flexible array members.
11491 struct incomplete_array *ia =
11492 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
11493 ia->datasize = 10;
11494 for (int i = 0; i < ia->datasize; ++i)
11495 ia->data[i] = i * 1.234;
11496
11497 // Check named initializers.
11498 struct named_init ni = {
11499 .number = 34,
11500 .name = L"Test wide string",
11501 .average = 543.34343,
11502 };
11503
11504 ni.number = 58;
11505
11506 int dynamic_array[ni.number];
11507 dynamic_array[ni.number - 1] = 543;
11508
11509 // work around unused variable warnings
11510 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
11511 || dynamic_array[ni.number - 1] != 543);
11512
11513 ;
11514 return 0;
11515 }
11516 _ACEOF
11517 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
11518 do
11519 CC="$ac_save_CC $ac_arg"
11520 if ac_fn_c_try_compile "$LINENO"; then :
11521 ac_cv_prog_cc_c99=$ac_arg
11522 fi
11523 rm -f core conftest.err conftest.$ac_objext
11524 test "x$ac_cv_prog_cc_c99" != "xno" && break
11525 done
11526 rm -f conftest.$ac_ext
11527 CC=$ac_save_CC
11528
11529 fi
11530 # AC_CACHE_VAL
11531 case "x$ac_cv_prog_cc_c99" in
11532 x)
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
11534 $as_echo "none needed" >&6; } ;;
11535 xno)
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
11537 $as_echo "unsupported" >&6; } ;;
11538 *)
11539 CC="$CC $ac_cv_prog_cc_c99"
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
11541 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
11542 esac
11543 if test "x$ac_cv_prog_cc_c99" != xno; then :
11544
11545 fi
11546
11547
11548
11549
11550
11551
11552 ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default"
11553 if test "x$ac_cv_have_decl___clang__" = xyes; then :
11554 CLANGCC="yes"
11555 else
11556 CLANGCC="no"
11557 fi
11558
11559 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default"
11560 if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then :
11561 INTELCC="yes"
11562 else
11563 INTELCC="no"
11564 fi
11565
11566 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
11567 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
11568 SUNCC="yes"
11569 else
11570 SUNCC="no"
11571 fi
11572
11573
11574
11575
11576 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11577 if test -n "$ac_tool_prefix"; then
11578 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11579 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11581 $as_echo_n "checking for $ac_word... " >&6; }
11582 if ${ac_cv_path_PKG_CONFIG+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584 else
11585 case $PKG_CONFIG in
11586 [\\/]* | ?:[\\/]*)
11587 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11588 ;;
11589 *)
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11592 do
11593 IFS=$as_save_IFS
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11597 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11599 break 2
11600 fi
11601 done
11602 done
11603 IFS=$as_save_IFS
11604
11605 ;;
11606 esac
11607 fi
11608 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11609 if test -n "$PKG_CONFIG"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11611 $as_echo "$PKG_CONFIG" >&6; }
11612 else
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11614 $as_echo "no" >&6; }
11615 fi
11616
11617
11618 fi
11619 if test -z "$ac_cv_path_PKG_CONFIG"; then
11620 ac_pt_PKG_CONFIG=$PKG_CONFIG
11621 # Extract the first word of "pkg-config", so it can be a program name with args.
11622 set dummy pkg-config; ac_word=$2
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11624 $as_echo_n "checking for $ac_word... " >&6; }
11625 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
11626 $as_echo_n "(cached) " >&6
11627 else
11628 case $ac_pt_PKG_CONFIG in
11629 [\\/]* | ?:[\\/]*)
11630 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
11631 ;;
11632 *)
11633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11634 for as_dir in $PATH
11635 do
11636 IFS=$as_save_IFS
11637 test -z "$as_dir" && as_dir=.
11638 for ac_exec_ext in '' $ac_executable_extensions; do
11639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11640 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11642 break 2
11643 fi
11644 done
11645 done
11646 IFS=$as_save_IFS
11647
11648 ;;
11649 esac
11650 fi
11651 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11652 if test -n "$ac_pt_PKG_CONFIG"; then
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11654 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
11655 else
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11657 $as_echo "no" >&6; }
11658 fi
11659
11660 if test "x$ac_pt_PKG_CONFIG" = x; then
11661 PKG_CONFIG=""
11662 else
11663 case $cross_compiling:$ac_tool_warned in
11664 yes:)
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11667 ac_tool_warned=yes ;;
11668 esac
11669 PKG_CONFIG=$ac_pt_PKG_CONFIG
11670 fi
11671 else
11672 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
11673 fi
11674
11675 fi
11676 if test -n "$PKG_CONFIG"; then
11677 _pkg_min_version=0.9.0
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11679 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
11680 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11682 $as_echo "yes" >&6; }
11683 else
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11685 $as_echo "no" >&6; }
11686 PKG_CONFIG=""
11687 fi
11688
11689 fi
11690
11691
11692
11693
11694
11695 # Check whether --enable-selective-werror was given.
11696 if test "${enable_selective_werror+set}" = set; then :
11697 enableval=$enable_selective_werror; SELECTIVE_WERROR=$enableval
11698 else
11699 SELECTIVE_WERROR=yes
11700 fi
11701
11702
11703
11704
11705
11706 # -v is too short to test reliably with XORG_TESTSET_CFLAG
11707 if test "x$SUNCC" = "xyes"; then
11708 BASE_CFLAGS="-v"
11709 else
11710 BASE_CFLAGS=""
11711 fi
11712
11713 # This chunk of warnings were those that existed in the legacy CWARNFLAGS
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727 xorg_testset_save_CFLAGS="$CFLAGS"
11728
11729 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11730 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11732 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11733 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11734 $as_echo_n "(cached) " >&6
11735 else
11736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11737 /* end confdefs.h. */
11738 int i;
11739 _ACEOF
11740 if ac_fn_c_try_compile "$LINENO"; then :
11741 xorg_cv_cc_flag_unknown_warning_option=yes
11742 else
11743 xorg_cv_cc_flag_unknown_warning_option=no
11744 fi
11745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11746 fi
11747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11748 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11749 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11750 CFLAGS="$xorg_testset_save_CFLAGS"
11751 fi
11752
11753 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11754 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11755 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11756 fi
11757 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11759 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11760 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11761 $as_echo_n "(cached) " >&6
11762 else
11763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11764 /* end confdefs.h. */
11765 int i;
11766 _ACEOF
11767 if ac_fn_c_try_compile "$LINENO"; then :
11768 xorg_cv_cc_flag_unused_command_line_argument=yes
11769 else
11770 xorg_cv_cc_flag_unused_command_line_argument=no
11771 fi
11772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11773 fi
11774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11775 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11776 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11777 CFLAGS="$xorg_testset_save_CFLAGS"
11778 fi
11779
11780 found="no"
11781
11782 if test $found = "no" ; then
11783 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11784 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11785 fi
11786
11787 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11788 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11789 fi
11790
11791 CFLAGS="$CFLAGS -Wall"
11792
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wall" >&5
11794 $as_echo_n "checking if $CC supports -Wall... " >&6; }
11795 cacheid=xorg_cv_cc_flag__Wall
11796 if eval \${$cacheid+:} false; then :
11797 $as_echo_n "(cached) " >&6
11798 else
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11800 /* end confdefs.h. */
11801 int i;
11802 int
11803 main ()
11804 {
11805
11806 ;
11807 return 0;
11808 }
11809 _ACEOF
11810 if ac_fn_c_try_link "$LINENO"; then :
11811 eval $cacheid=yes
11812 else
11813 eval $cacheid=no
11814 fi
11815 rm -f core conftest.err conftest.$ac_objext \
11816 conftest$ac_exeext conftest.$ac_ext
11817 fi
11818
11819
11820 CFLAGS="$xorg_testset_save_CFLAGS"
11821
11822 eval supported=\$$cacheid
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11824 $as_echo "$supported" >&6; }
11825 if test "$supported" = "yes" ; then
11826 BASE_CFLAGS="$BASE_CFLAGS -Wall"
11827 found="yes"
11828 fi
11829 fi
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845 xorg_testset_save_CFLAGS="$CFLAGS"
11846
11847 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11848 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11850 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11851 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11852 $as_echo_n "(cached) " >&6
11853 else
11854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11856 int i;
11857 _ACEOF
11858 if ac_fn_c_try_compile "$LINENO"; then :
11859 xorg_cv_cc_flag_unknown_warning_option=yes
11860 else
11861 xorg_cv_cc_flag_unknown_warning_option=no
11862 fi
11863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11864 fi
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11866 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11867 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11868 CFLAGS="$xorg_testset_save_CFLAGS"
11869 fi
11870
11871 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11872 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11873 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11874 fi
11875 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11877 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11878 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11879 $as_echo_n "(cached) " >&6
11880 else
11881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11882 /* end confdefs.h. */
11883 int i;
11884 _ACEOF
11885 if ac_fn_c_try_compile "$LINENO"; then :
11886 xorg_cv_cc_flag_unused_command_line_argument=yes
11887 else
11888 xorg_cv_cc_flag_unused_command_line_argument=no
11889 fi
11890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11891 fi
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
11893 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
11894 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
11895 CFLAGS="$xorg_testset_save_CFLAGS"
11896 fi
11897
11898 found="no"
11899
11900 if test $found = "no" ; then
11901 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
11902 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11903 fi
11904
11905 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
11906 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11907 fi
11908
11909 CFLAGS="$CFLAGS -Wpointer-arith"
11910
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-arith" >&5
11912 $as_echo_n "checking if $CC supports -Wpointer-arith... " >&6; }
11913 cacheid=xorg_cv_cc_flag__Wpointer_arith
11914 if eval \${$cacheid+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11918 /* end confdefs.h. */
11919 int i;
11920 int
11921 main ()
11922 {
11923
11924 ;
11925 return 0;
11926 }
11927 _ACEOF
11928 if ac_fn_c_try_link "$LINENO"; then :
11929 eval $cacheid=yes
11930 else
11931 eval $cacheid=no
11932 fi
11933 rm -f core conftest.err conftest.$ac_objext \
11934 conftest$ac_exeext conftest.$ac_ext
11935 fi
11936
11937
11938 CFLAGS="$xorg_testset_save_CFLAGS"
11939
11940 eval supported=\$$cacheid
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
11942 $as_echo "$supported" >&6; }
11943 if test "$supported" = "yes" ; then
11944 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-arith"
11945 found="yes"
11946 fi
11947 fi
11948
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958
11959
11960
11961
11962
11963 xorg_testset_save_CFLAGS="$CFLAGS"
11964
11965 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
11966 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
11968 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
11969 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
11970 $as_echo_n "(cached) " >&6
11971 else
11972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973 /* end confdefs.h. */
11974 int i;
11975 _ACEOF
11976 if ac_fn_c_try_compile "$LINENO"; then :
11977 xorg_cv_cc_flag_unknown_warning_option=yes
11978 else
11979 xorg_cv_cc_flag_unknown_warning_option=no
11980 fi
11981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11982 fi
11983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
11984 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
11985 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
11986 CFLAGS="$xorg_testset_save_CFLAGS"
11987 fi
11988
11989 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
11990 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
11991 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
11992 fi
11993 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
11995 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
11996 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12000 /* end confdefs.h. */
12001 int i;
12002 _ACEOF
12003 if ac_fn_c_try_compile "$LINENO"; then :
12004 xorg_cv_cc_flag_unused_command_line_argument=yes
12005 else
12006 xorg_cv_cc_flag_unused_command_line_argument=no
12007 fi
12008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 fi
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12011 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12012 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12013 CFLAGS="$xorg_testset_save_CFLAGS"
12014 fi
12015
12016 found="no"
12017
12018 if test $found = "no" ; then
12019 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12020 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12021 fi
12022
12023 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12024 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12025 fi
12026
12027 CFLAGS="$CFLAGS -Wmissing-declarations"
12028
12029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-declarations" >&5
12030 $as_echo_n "checking if $CC supports -Wmissing-declarations... " >&6; }
12031 cacheid=xorg_cv_cc_flag__Wmissing_declarations
12032 if eval \${$cacheid+:} false; then :
12033 $as_echo_n "(cached) " >&6
12034 else
12035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12036 /* end confdefs.h. */
12037 int i;
12038 int
12039 main ()
12040 {
12041
12042 ;
12043 return 0;
12044 }
12045 _ACEOF
12046 if ac_fn_c_try_link "$LINENO"; then :
12047 eval $cacheid=yes
12048 else
12049 eval $cacheid=no
12050 fi
12051 rm -f core conftest.err conftest.$ac_objext \
12052 conftest$ac_exeext conftest.$ac_ext
12053 fi
12054
12055
12056 CFLAGS="$xorg_testset_save_CFLAGS"
12057
12058 eval supported=\$$cacheid
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12060 $as_echo "$supported" >&6; }
12061 if test "$supported" = "yes" ; then
12062 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-declarations"
12063 found="yes"
12064 fi
12065 fi
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075
12076
12077
12078
12079
12080
12081 xorg_testset_save_CFLAGS="$CFLAGS"
12082
12083 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12084 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12086 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12087 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12088 $as_echo_n "(cached) " >&6
12089 else
12090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12091 /* end confdefs.h. */
12092 int i;
12093 _ACEOF
12094 if ac_fn_c_try_compile "$LINENO"; then :
12095 xorg_cv_cc_flag_unknown_warning_option=yes
12096 else
12097 xorg_cv_cc_flag_unknown_warning_option=no
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12102 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12103 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12104 CFLAGS="$xorg_testset_save_CFLAGS"
12105 fi
12106
12107 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12108 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12109 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12110 fi
12111 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12113 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12114 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12115 $as_echo_n "(cached) " >&6
12116 else
12117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12118 /* end confdefs.h. */
12119 int i;
12120 _ACEOF
12121 if ac_fn_c_try_compile "$LINENO"; then :
12122 xorg_cv_cc_flag_unused_command_line_argument=yes
12123 else
12124 xorg_cv_cc_flag_unused_command_line_argument=no
12125 fi
12126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12127 fi
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12129 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12130 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12131 CFLAGS="$xorg_testset_save_CFLAGS"
12132 fi
12133
12134 found="no"
12135
12136 if test $found = "no" ; then
12137 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12138 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12139 fi
12140
12141 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12142 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12143 fi
12144
12145 CFLAGS="$CFLAGS -Wformat=2"
12146
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat=2" >&5
12148 $as_echo_n "checking if $CC supports -Wformat=2... " >&6; }
12149 cacheid=`$as_echo "xorg_cv_cc_flag_-Wformat=2" | $as_tr_sh`
12150 if eval \${$cacheid+:} false; then :
12151 $as_echo_n "(cached) " >&6
12152 else
12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12154 /* end confdefs.h. */
12155 int i;
12156 int
12157 main ()
12158 {
12159
12160 ;
12161 return 0;
12162 }
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"; then :
12165 eval $cacheid=yes
12166 else
12167 eval $cacheid=no
12168 fi
12169 rm -f core conftest.err conftest.$ac_objext \
12170 conftest$ac_exeext conftest.$ac_ext
12171 fi
12172
12173
12174 CFLAGS="$xorg_testset_save_CFLAGS"
12175
12176 eval supported=\$$cacheid
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12178 $as_echo "$supported" >&6; }
12179 if test "$supported" = "yes" ; then
12180 BASE_CFLAGS="$BASE_CFLAGS -Wformat=2"
12181 found="yes"
12182 fi
12183 fi
12184
12185 if test $found = "no" ; then
12186 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12187 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12188 fi
12189
12190 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12191 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12192 fi
12193
12194 CFLAGS="$CFLAGS -Wformat"
12195
12196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wformat" >&5
12197 $as_echo_n "checking if $CC supports -Wformat... " >&6; }
12198 cacheid=xorg_cv_cc_flag__Wformat
12199 if eval \${$cacheid+:} false; then :
12200 $as_echo_n "(cached) " >&6
12201 else
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12203 /* end confdefs.h. */
12204 int i;
12205 int
12206 main ()
12207 {
12208
12209 ;
12210 return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"; then :
12214 eval $cacheid=yes
12215 else
12216 eval $cacheid=no
12217 fi
12218 rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 fi
12221
12222
12223 CFLAGS="$xorg_testset_save_CFLAGS"
12224
12225 eval supported=\$$cacheid
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12227 $as_echo "$supported" >&6; }
12228 if test "$supported" = "yes" ; then
12229 BASE_CFLAGS="$BASE_CFLAGS -Wformat"
12230 found="yes"
12231 fi
12232 fi
12233
12234
12235
12236
12237
12238
12239
12240
12241
12242
12243
12244
12245
12246
12247
12248
12249
12250 xorg_testset_save_CFLAGS="$CFLAGS"
12251
12252 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12255 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12256 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12257 $as_echo_n "(cached) " >&6
12258 else
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12261 int i;
12262 _ACEOF
12263 if ac_fn_c_try_compile "$LINENO"; then :
12264 xorg_cv_cc_flag_unknown_warning_option=yes
12265 else
12266 xorg_cv_cc_flag_unknown_warning_option=no
12267 fi
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 fi
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12271 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12272 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12273 CFLAGS="$xorg_testset_save_CFLAGS"
12274 fi
12275
12276 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12277 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12278 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12279 fi
12280 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12282 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12283 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12284 $as_echo_n "(cached) " >&6
12285 else
12286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12287 /* end confdefs.h. */
12288 int i;
12289 _ACEOF
12290 if ac_fn_c_try_compile "$LINENO"; then :
12291 xorg_cv_cc_flag_unused_command_line_argument=yes
12292 else
12293 xorg_cv_cc_flag_unused_command_line_argument=no
12294 fi
12295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12296 fi
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12298 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12299 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12300 CFLAGS="$xorg_testset_save_CFLAGS"
12301 fi
12302
12303 found="no"
12304
12305 if test $found = "no" ; then
12306 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12307 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12308 fi
12309
12310 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12311 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12312 fi
12313
12314 CFLAGS="$CFLAGS -Wstrict-prototypes"
12315
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wstrict-prototypes" >&5
12317 $as_echo_n "checking if $CC supports -Wstrict-prototypes... " >&6; }
12318 cacheid=xorg_cv_cc_flag__Wstrict_prototypes
12319 if eval \${$cacheid+:} false; then :
12320 $as_echo_n "(cached) " >&6
12321 else
12322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12323 /* end confdefs.h. */
12324 int i;
12325 int
12326 main ()
12327 {
12328
12329 ;
12330 return 0;
12331 }
12332 _ACEOF
12333 if ac_fn_c_try_link "$LINENO"; then :
12334 eval $cacheid=yes
12335 else
12336 eval $cacheid=no
12337 fi
12338 rm -f core conftest.err conftest.$ac_objext \
12339 conftest$ac_exeext conftest.$ac_ext
12340 fi
12341
12342
12343 CFLAGS="$xorg_testset_save_CFLAGS"
12344
12345 eval supported=\$$cacheid
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12347 $as_echo "$supported" >&6; }
12348 if test "$supported" = "yes" ; then
12349 BASE_CFLAGS="$BASE_CFLAGS -Wstrict-prototypes"
12350 found="yes"
12351 fi
12352 fi
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365
12366
12367
12368 xorg_testset_save_CFLAGS="$CFLAGS"
12369
12370 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12371 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12373 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12374 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12375 $as_echo_n "(cached) " >&6
12376 else
12377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12378 /* end confdefs.h. */
12379 int i;
12380 _ACEOF
12381 if ac_fn_c_try_compile "$LINENO"; then :
12382 xorg_cv_cc_flag_unknown_warning_option=yes
12383 else
12384 xorg_cv_cc_flag_unknown_warning_option=no
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12387 fi
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12389 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12390 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12391 CFLAGS="$xorg_testset_save_CFLAGS"
12392 fi
12393
12394 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12395 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12397 fi
12398 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12400 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12401 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12402 $as_echo_n "(cached) " >&6
12403 else
12404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h. */
12406 int i;
12407 _ACEOF
12408 if ac_fn_c_try_compile "$LINENO"; then :
12409 xorg_cv_cc_flag_unused_command_line_argument=yes
12410 else
12411 xorg_cv_cc_flag_unused_command_line_argument=no
12412 fi
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 fi
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12416 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12417 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12418 CFLAGS="$xorg_testset_save_CFLAGS"
12419 fi
12420
12421 found="no"
12422
12423 if test $found = "no" ; then
12424 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12425 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12426 fi
12427
12428 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12429 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12430 fi
12431
12432 CFLAGS="$CFLAGS -Wmissing-prototypes"
12433
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-prototypes" >&5
12435 $as_echo_n "checking if $CC supports -Wmissing-prototypes... " >&6; }
12436 cacheid=xorg_cv_cc_flag__Wmissing_prototypes
12437 if eval \${$cacheid+:} false; then :
12438 $as_echo_n "(cached) " >&6
12439 else
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12442 int i;
12443 int
12444 main ()
12445 {
12446
12447 ;
12448 return 0;
12449 }
12450 _ACEOF
12451 if ac_fn_c_try_link "$LINENO"; then :
12452 eval $cacheid=yes
12453 else
12454 eval $cacheid=no
12455 fi
12456 rm -f core conftest.err conftest.$ac_objext \
12457 conftest$ac_exeext conftest.$ac_ext
12458 fi
12459
12460
12461 CFLAGS="$xorg_testset_save_CFLAGS"
12462
12463 eval supported=\$$cacheid
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12465 $as_echo "$supported" >&6; }
12466 if test "$supported" = "yes" ; then
12467 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-prototypes"
12468 found="yes"
12469 fi
12470 fi
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484
12485
12486 xorg_testset_save_CFLAGS="$CFLAGS"
12487
12488 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12489 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12491 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12492 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12493 $as_echo_n "(cached) " >&6
12494 else
12495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12496 /* end confdefs.h. */
12497 int i;
12498 _ACEOF
12499 if ac_fn_c_try_compile "$LINENO"; then :
12500 xorg_cv_cc_flag_unknown_warning_option=yes
12501 else
12502 xorg_cv_cc_flag_unknown_warning_option=no
12503 fi
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505 fi
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12507 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12508 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12509 CFLAGS="$xorg_testset_save_CFLAGS"
12510 fi
12511
12512 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12513 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12514 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12515 fi
12516 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12518 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12519 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12520 $as_echo_n "(cached) " >&6
12521 else
12522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12523 /* end confdefs.h. */
12524 int i;
12525 _ACEOF
12526 if ac_fn_c_try_compile "$LINENO"; then :
12527 xorg_cv_cc_flag_unused_command_line_argument=yes
12528 else
12529 xorg_cv_cc_flag_unused_command_line_argument=no
12530 fi
12531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12532 fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12534 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12535 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12536 CFLAGS="$xorg_testset_save_CFLAGS"
12537 fi
12538
12539 found="no"
12540
12541 if test $found = "no" ; then
12542 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12543 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12544 fi
12545
12546 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12547 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12548 fi
12549
12550 CFLAGS="$CFLAGS -Wnested-externs"
12551
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnested-externs" >&5
12553 $as_echo_n "checking if $CC supports -Wnested-externs... " >&6; }
12554 cacheid=xorg_cv_cc_flag__Wnested_externs
12555 if eval \${$cacheid+:} false; then :
12556 $as_echo_n "(cached) " >&6
12557 else
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12560 int i;
12561 int
12562 main ()
12563 {
12564
12565 ;
12566 return 0;
12567 }
12568 _ACEOF
12569 if ac_fn_c_try_link "$LINENO"; then :
12570 eval $cacheid=yes
12571 else
12572 eval $cacheid=no
12573 fi
12574 rm -f core conftest.err conftest.$ac_objext \
12575 conftest$ac_exeext conftest.$ac_ext
12576 fi
12577
12578
12579 CFLAGS="$xorg_testset_save_CFLAGS"
12580
12581 eval supported=\$$cacheid
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12583 $as_echo "$supported" >&6; }
12584 if test "$supported" = "yes" ; then
12585 BASE_CFLAGS="$BASE_CFLAGS -Wnested-externs"
12586 found="yes"
12587 fi
12588 fi
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599
12600
12601
12602
12603
12604 xorg_testset_save_CFLAGS="$CFLAGS"
12605
12606 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12607 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12609 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12610 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12611 $as_echo_n "(cached) " >&6
12612 else
12613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h. */
12615 int i;
12616 _ACEOF
12617 if ac_fn_c_try_compile "$LINENO"; then :
12618 xorg_cv_cc_flag_unknown_warning_option=yes
12619 else
12620 xorg_cv_cc_flag_unknown_warning_option=no
12621 fi
12622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12623 fi
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12625 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12626 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12627 CFLAGS="$xorg_testset_save_CFLAGS"
12628 fi
12629
12630 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12631 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12632 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12633 fi
12634 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12636 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12637 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12638 $as_echo_n "(cached) " >&6
12639 else
12640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12641 /* end confdefs.h. */
12642 int i;
12643 _ACEOF
12644 if ac_fn_c_try_compile "$LINENO"; then :
12645 xorg_cv_cc_flag_unused_command_line_argument=yes
12646 else
12647 xorg_cv_cc_flag_unused_command_line_argument=no
12648 fi
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12652 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12653 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12654 CFLAGS="$xorg_testset_save_CFLAGS"
12655 fi
12656
12657 found="no"
12658
12659 if test $found = "no" ; then
12660 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12661 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12662 fi
12663
12664 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12665 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12666 fi
12667
12668 CFLAGS="$CFLAGS -Wbad-function-cast"
12669
12670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wbad-function-cast" >&5
12671 $as_echo_n "checking if $CC supports -Wbad-function-cast... " >&6; }
12672 cacheid=xorg_cv_cc_flag__Wbad_function_cast
12673 if eval \${$cacheid+:} false; then :
12674 $as_echo_n "(cached) " >&6
12675 else
12676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12677 /* end confdefs.h. */
12678 int i;
12679 int
12680 main ()
12681 {
12682
12683 ;
12684 return 0;
12685 }
12686 _ACEOF
12687 if ac_fn_c_try_link "$LINENO"; then :
12688 eval $cacheid=yes
12689 else
12690 eval $cacheid=no
12691 fi
12692 rm -f core conftest.err conftest.$ac_objext \
12693 conftest$ac_exeext conftest.$ac_ext
12694 fi
12695
12696
12697 CFLAGS="$xorg_testset_save_CFLAGS"
12698
12699 eval supported=\$$cacheid
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12701 $as_echo "$supported" >&6; }
12702 if test "$supported" = "yes" ; then
12703 BASE_CFLAGS="$BASE_CFLAGS -Wbad-function-cast"
12704 found="yes"
12705 fi
12706 fi
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722 xorg_testset_save_CFLAGS="$CFLAGS"
12723
12724 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12725 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12727 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12728 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12729 $as_echo_n "(cached) " >&6
12730 else
12731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12733 int i;
12734 _ACEOF
12735 if ac_fn_c_try_compile "$LINENO"; then :
12736 xorg_cv_cc_flag_unknown_warning_option=yes
12737 else
12738 xorg_cv_cc_flag_unknown_warning_option=no
12739 fi
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 fi
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12743 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12744 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12745 CFLAGS="$xorg_testset_save_CFLAGS"
12746 fi
12747
12748 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12749 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12750 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12751 fi
12752 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12754 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12755 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12756 $as_echo_n "(cached) " >&6
12757 else
12758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12759 /* end confdefs.h. */
12760 int i;
12761 _ACEOF
12762 if ac_fn_c_try_compile "$LINENO"; then :
12763 xorg_cv_cc_flag_unused_command_line_argument=yes
12764 else
12765 xorg_cv_cc_flag_unused_command_line_argument=no
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12770 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12771 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12772 CFLAGS="$xorg_testset_save_CFLAGS"
12773 fi
12774
12775 found="no"
12776
12777 if test $found = "no" ; then
12778 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12779 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12780 fi
12781
12782 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12783 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12784 fi
12785
12786 CFLAGS="$CFLAGS -Wold-style-definition"
12787
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wold-style-definition" >&5
12789 $as_echo_n "checking if $CC supports -Wold-style-definition... " >&6; }
12790 cacheid=xorg_cv_cc_flag__Wold_style_definition
12791 if eval \${$cacheid+:} false; then :
12792 $as_echo_n "(cached) " >&6
12793 else
12794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12795 /* end confdefs.h. */
12796 int i;
12797 int
12798 main ()
12799 {
12800
12801 ;
12802 return 0;
12803 }
12804 _ACEOF
12805 if ac_fn_c_try_link "$LINENO"; then :
12806 eval $cacheid=yes
12807 else
12808 eval $cacheid=no
12809 fi
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12812 fi
12813
12814
12815 CFLAGS="$xorg_testset_save_CFLAGS"
12816
12817 eval supported=\$$cacheid
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12819 $as_echo "$supported" >&6; }
12820 if test "$supported" = "yes" ; then
12821 BASE_CFLAGS="$BASE_CFLAGS -Wold-style-definition"
12822 found="yes"
12823 fi
12824 fi
12825
12826
12827
12828
12829
12830
12831
12832
12833
12834
12835
12836
12837
12838
12839
12840 xorg_testset_save_CFLAGS="$CFLAGS"
12841
12842 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12843 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12845 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12846 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12847 $as_echo_n "(cached) " >&6
12848 else
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 int i;
12852 _ACEOF
12853 if ac_fn_c_try_compile "$LINENO"; then :
12854 xorg_cv_cc_flag_unknown_warning_option=yes
12855 else
12856 xorg_cv_cc_flag_unknown_warning_option=no
12857 fi
12858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12861 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12862 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12863 CFLAGS="$xorg_testset_save_CFLAGS"
12864 fi
12865
12866 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12867 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12868 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12869 fi
12870 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12872 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12873 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12874 $as_echo_n "(cached) " >&6
12875 else
12876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12878 int i;
12879 _ACEOF
12880 if ac_fn_c_try_compile "$LINENO"; then :
12881 xorg_cv_cc_flag_unused_command_line_argument=yes
12882 else
12883 xorg_cv_cc_flag_unused_command_line_argument=no
12884 fi
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12886 fi
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
12888 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
12889 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
12890 CFLAGS="$xorg_testset_save_CFLAGS"
12891 fi
12892
12893 found="no"
12894
12895 if test $found = "no" ; then
12896 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
12897 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12898 fi
12899
12900 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
12901 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12902 fi
12903
12904 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
12905
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wdeclaration-after-statement" >&5
12907 $as_echo_n "checking if $CC supports -Wdeclaration-after-statement... " >&6; }
12908 cacheid=xorg_cv_cc_flag__Wdeclaration_after_statement
12909 if eval \${$cacheid+:} false; then :
12910 $as_echo_n "(cached) " >&6
12911 else
12912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12913 /* end confdefs.h. */
12914 int i;
12915 int
12916 main ()
12917 {
12918
12919 ;
12920 return 0;
12921 }
12922 _ACEOF
12923 if ac_fn_c_try_link "$LINENO"; then :
12924 eval $cacheid=yes
12925 else
12926 eval $cacheid=no
12927 fi
12928 rm -f core conftest.err conftest.$ac_objext \
12929 conftest$ac_exeext conftest.$ac_ext
12930 fi
12931
12932
12933 CFLAGS="$xorg_testset_save_CFLAGS"
12934
12935 eval supported=\$$cacheid
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
12937 $as_echo "$supported" >&6; }
12938 if test "$supported" = "yes" ; then
12939 BASE_CFLAGS="$BASE_CFLAGS -Wdeclaration-after-statement"
12940 found="yes"
12941 fi
12942 fi
12943
12944
12945
12946
12947
12948 # This chunk adds additional warnings that could catch undesired effects.
12949
12950
12951
12952
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962 xorg_testset_save_CFLAGS="$CFLAGS"
12963
12964 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
12965 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
12967 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
12968 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
12969 $as_echo_n "(cached) " >&6
12970 else
12971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12972 /* end confdefs.h. */
12973 int i;
12974 _ACEOF
12975 if ac_fn_c_try_compile "$LINENO"; then :
12976 xorg_cv_cc_flag_unknown_warning_option=yes
12977 else
12978 xorg_cv_cc_flag_unknown_warning_option=no
12979 fi
12980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12981 fi
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
12983 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
12984 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
12985 CFLAGS="$xorg_testset_save_CFLAGS"
12986 fi
12987
12988 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
12989 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
12990 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
12991 fi
12992 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
12994 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
12995 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
12996 $as_echo_n "(cached) " >&6
12997 else
12998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12999 /* end confdefs.h. */
13000 int i;
13001 _ACEOF
13002 if ac_fn_c_try_compile "$LINENO"; then :
13003 xorg_cv_cc_flag_unused_command_line_argument=yes
13004 else
13005 xorg_cv_cc_flag_unused_command_line_argument=no
13006 fi
13007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13008 fi
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13010 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13011 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13012 CFLAGS="$xorg_testset_save_CFLAGS"
13013 fi
13014
13015 found="no"
13016
13017 if test $found = "no" ; then
13018 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13019 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13020 fi
13021
13022 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13023 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13024 fi
13025
13026 CFLAGS="$CFLAGS -Wunused"
13027
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wunused" >&5
13029 $as_echo_n "checking if $CC supports -Wunused... " >&6; }
13030 cacheid=xorg_cv_cc_flag__Wunused
13031 if eval \${$cacheid+:} false; then :
13032 $as_echo_n "(cached) " >&6
13033 else
13034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13035 /* end confdefs.h. */
13036 int i;
13037 int
13038 main ()
13039 {
13040
13041 ;
13042 return 0;
13043 }
13044 _ACEOF
13045 if ac_fn_c_try_link "$LINENO"; then :
13046 eval $cacheid=yes
13047 else
13048 eval $cacheid=no
13049 fi
13050 rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext conftest.$ac_ext
13052 fi
13053
13054
13055 CFLAGS="$xorg_testset_save_CFLAGS"
13056
13057 eval supported=\$$cacheid
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13059 $as_echo "$supported" >&6; }
13060 if test "$supported" = "yes" ; then
13061 BASE_CFLAGS="$BASE_CFLAGS -Wunused"
13062 found="yes"
13063 fi
13064 fi
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075
13076
13077
13078
13079
13080 xorg_testset_save_CFLAGS="$CFLAGS"
13081
13082 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13083 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13085 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13086 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13087 $as_echo_n "(cached) " >&6
13088 else
13089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13090 /* end confdefs.h. */
13091 int i;
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094 xorg_cv_cc_flag_unknown_warning_option=yes
13095 else
13096 xorg_cv_cc_flag_unknown_warning_option=no
13097 fi
13098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13099 fi
13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13101 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13102 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13103 CFLAGS="$xorg_testset_save_CFLAGS"
13104 fi
13105
13106 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13107 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13109 fi
13110 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13112 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13113 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13114 $as_echo_n "(cached) " >&6
13115 else
13116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13118 int i;
13119 _ACEOF
13120 if ac_fn_c_try_compile "$LINENO"; then :
13121 xorg_cv_cc_flag_unused_command_line_argument=yes
13122 else
13123 xorg_cv_cc_flag_unused_command_line_argument=no
13124 fi
13125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13126 fi
13127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13128 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13129 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13130 CFLAGS="$xorg_testset_save_CFLAGS"
13131 fi
13132
13133 found="no"
13134
13135 if test $found = "no" ; then
13136 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13137 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13138 fi
13139
13140 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13141 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13142 fi
13143
13144 CFLAGS="$CFLAGS -Wuninitialized"
13145
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wuninitialized" >&5
13147 $as_echo_n "checking if $CC supports -Wuninitialized... " >&6; }
13148 cacheid=xorg_cv_cc_flag__Wuninitialized
13149 if eval \${$cacheid+:} false; then :
13150 $as_echo_n "(cached) " >&6
13151 else
13152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13153 /* end confdefs.h. */
13154 int i;
13155 int
13156 main ()
13157 {
13158
13159 ;
13160 return 0;
13161 }
13162 _ACEOF
13163 if ac_fn_c_try_link "$LINENO"; then :
13164 eval $cacheid=yes
13165 else
13166 eval $cacheid=no
13167 fi
13168 rm -f core conftest.err conftest.$ac_objext \
13169 conftest$ac_exeext conftest.$ac_ext
13170 fi
13171
13172
13173 CFLAGS="$xorg_testset_save_CFLAGS"
13174
13175 eval supported=\$$cacheid
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13177 $as_echo "$supported" >&6; }
13178 if test "$supported" = "yes" ; then
13179 BASE_CFLAGS="$BASE_CFLAGS -Wuninitialized"
13180 found="yes"
13181 fi
13182 fi
13183
13184
13185
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195
13196
13197
13198 xorg_testset_save_CFLAGS="$CFLAGS"
13199
13200 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13201 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13203 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13204 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13205 $as_echo_n "(cached) " >&6
13206 else
13207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13208 /* end confdefs.h. */
13209 int i;
13210 _ACEOF
13211 if ac_fn_c_try_compile "$LINENO"; then :
13212 xorg_cv_cc_flag_unknown_warning_option=yes
13213 else
13214 xorg_cv_cc_flag_unknown_warning_option=no
13215 fi
13216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13217 fi
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13219 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13220 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13221 CFLAGS="$xorg_testset_save_CFLAGS"
13222 fi
13223
13224 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13225 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13227 fi
13228 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13230 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13231 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233 else
13234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13235 /* end confdefs.h. */
13236 int i;
13237 _ACEOF
13238 if ac_fn_c_try_compile "$LINENO"; then :
13239 xorg_cv_cc_flag_unused_command_line_argument=yes
13240 else
13241 xorg_cv_cc_flag_unused_command_line_argument=no
13242 fi
13243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13244 fi
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13246 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13247 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13248 CFLAGS="$xorg_testset_save_CFLAGS"
13249 fi
13250
13251 found="no"
13252
13253 if test $found = "no" ; then
13254 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13255 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13256 fi
13257
13258 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13259 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13260 fi
13261
13262 CFLAGS="$CFLAGS -Wshadow"
13263
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wshadow" >&5
13265 $as_echo_n "checking if $CC supports -Wshadow... " >&6; }
13266 cacheid=xorg_cv_cc_flag__Wshadow
13267 if eval \${$cacheid+:} false; then :
13268 $as_echo_n "(cached) " >&6
13269 else
13270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13271 /* end confdefs.h. */
13272 int i;
13273 int
13274 main ()
13275 {
13276
13277 ;
13278 return 0;
13279 }
13280 _ACEOF
13281 if ac_fn_c_try_link "$LINENO"; then :
13282 eval $cacheid=yes
13283 else
13284 eval $cacheid=no
13285 fi
13286 rm -f core conftest.err conftest.$ac_objext \
13287 conftest$ac_exeext conftest.$ac_ext
13288 fi
13289
13290
13291 CFLAGS="$xorg_testset_save_CFLAGS"
13292
13293 eval supported=\$$cacheid
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13295 $as_echo "$supported" >&6; }
13296 if test "$supported" = "yes" ; then
13297 BASE_CFLAGS="$BASE_CFLAGS -Wshadow"
13298 found="yes"
13299 fi
13300 fi
13301
13302
13303
13304
13305
13306
13307
13308
13309
13310
13311
13312
13313
13314
13315
13316 xorg_testset_save_CFLAGS="$CFLAGS"
13317
13318 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13319 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13321 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13322 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13323 $as_echo_n "(cached) " >&6
13324 else
13325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* end confdefs.h. */
13327 int i;
13328 _ACEOF
13329 if ac_fn_c_try_compile "$LINENO"; then :
13330 xorg_cv_cc_flag_unknown_warning_option=yes
13331 else
13332 xorg_cv_cc_flag_unknown_warning_option=no
13333 fi
13334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13335 fi
13336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13337 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13338 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13339 CFLAGS="$xorg_testset_save_CFLAGS"
13340 fi
13341
13342 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13343 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13344 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13345 fi
13346 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13348 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13349 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13350 $as_echo_n "(cached) " >&6
13351 else
13352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13353 /* end confdefs.h. */
13354 int i;
13355 _ACEOF
13356 if ac_fn_c_try_compile "$LINENO"; then :
13357 xorg_cv_cc_flag_unused_command_line_argument=yes
13358 else
13359 xorg_cv_cc_flag_unused_command_line_argument=no
13360 fi
13361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13362 fi
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13364 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13365 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13366 CFLAGS="$xorg_testset_save_CFLAGS"
13367 fi
13368
13369 found="no"
13370
13371 if test $found = "no" ; then
13372 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13373 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13374 fi
13375
13376 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13377 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13378 fi
13379
13380 CFLAGS="$CFLAGS -Wcast-qual"
13381
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wcast-qual" >&5
13383 $as_echo_n "checking if $CC supports -Wcast-qual... " >&6; }
13384 cacheid=xorg_cv_cc_flag__Wcast_qual
13385 if eval \${$cacheid+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390 int i;
13391 int
13392 main ()
13393 {
13394
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_c_try_link "$LINENO"; then :
13400 eval $cacheid=yes
13401 else
13402 eval $cacheid=no
13403 fi
13404 rm -f core conftest.err conftest.$ac_objext \
13405 conftest$ac_exeext conftest.$ac_ext
13406 fi
13407
13408
13409 CFLAGS="$xorg_testset_save_CFLAGS"
13410
13411 eval supported=\$$cacheid
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13413 $as_echo "$supported" >&6; }
13414 if test "$supported" = "yes" ; then
13415 BASE_CFLAGS="$BASE_CFLAGS -Wcast-qual"
13416 found="yes"
13417 fi
13418 fi
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431
13432
13433
13434 xorg_testset_save_CFLAGS="$CFLAGS"
13435
13436 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13437 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13439 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13440 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13441 $as_echo_n "(cached) " >&6
13442 else
13443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444 /* end confdefs.h. */
13445 int i;
13446 _ACEOF
13447 if ac_fn_c_try_compile "$LINENO"; then :
13448 xorg_cv_cc_flag_unknown_warning_option=yes
13449 else
13450 xorg_cv_cc_flag_unknown_warning_option=no
13451 fi
13452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13453 fi
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13455 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13456 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13457 CFLAGS="$xorg_testset_save_CFLAGS"
13458 fi
13459
13460 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13461 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13462 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13463 fi
13464 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13466 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13467 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13468 $as_echo_n "(cached) " >&6
13469 else
13470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471 /* end confdefs.h. */
13472 int i;
13473 _ACEOF
13474 if ac_fn_c_try_compile "$LINENO"; then :
13475 xorg_cv_cc_flag_unused_command_line_argument=yes
13476 else
13477 xorg_cv_cc_flag_unused_command_line_argument=no
13478 fi
13479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13480 fi
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13482 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13483 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13484 CFLAGS="$xorg_testset_save_CFLAGS"
13485 fi
13486
13487 found="no"
13488
13489 if test $found = "no" ; then
13490 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13491 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13492 fi
13493
13494 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13495 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13496 fi
13497
13498 CFLAGS="$CFLAGS -Wmissing-noreturn"
13499
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-noreturn" >&5
13501 $as_echo_n "checking if $CC supports -Wmissing-noreturn... " >&6; }
13502 cacheid=xorg_cv_cc_flag__Wmissing_noreturn
13503 if eval \${$cacheid+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13507 /* end confdefs.h. */
13508 int i;
13509 int
13510 main ()
13511 {
13512
13513 ;
13514 return 0;
13515 }
13516 _ACEOF
13517 if ac_fn_c_try_link "$LINENO"; then :
13518 eval $cacheid=yes
13519 else
13520 eval $cacheid=no
13521 fi
13522 rm -f core conftest.err conftest.$ac_objext \
13523 conftest$ac_exeext conftest.$ac_ext
13524 fi
13525
13526
13527 CFLAGS="$xorg_testset_save_CFLAGS"
13528
13529 eval supported=\$$cacheid
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13531 $as_echo "$supported" >&6; }
13532 if test "$supported" = "yes" ; then
13533 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-noreturn"
13534 found="yes"
13535 fi
13536 fi
13537
13538
13539
13540
13541
13542
13543
13544
13545
13546
13547
13548
13549
13550
13551
13552 xorg_testset_save_CFLAGS="$CFLAGS"
13553
13554 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13555 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13557 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13558 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13559 $as_echo_n "(cached) " >&6
13560 else
13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13562 /* end confdefs.h. */
13563 int i;
13564 _ACEOF
13565 if ac_fn_c_try_compile "$LINENO"; then :
13566 xorg_cv_cc_flag_unknown_warning_option=yes
13567 else
13568 xorg_cv_cc_flag_unknown_warning_option=no
13569 fi
13570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13571 fi
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13573 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13574 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13575 CFLAGS="$xorg_testset_save_CFLAGS"
13576 fi
13577
13578 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13579 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13580 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13581 fi
13582 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13584 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13585 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13586 $as_echo_n "(cached) " >&6
13587 else
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13590 int i;
13591 _ACEOF
13592 if ac_fn_c_try_compile "$LINENO"; then :
13593 xorg_cv_cc_flag_unused_command_line_argument=yes
13594 else
13595 xorg_cv_cc_flag_unused_command_line_argument=no
13596 fi
13597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13598 fi
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13600 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13601 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13602 CFLAGS="$xorg_testset_save_CFLAGS"
13603 fi
13604
13605 found="no"
13606
13607 if test $found = "no" ; then
13608 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13609 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13610 fi
13611
13612 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13613 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13614 fi
13615
13616 CFLAGS="$CFLAGS -Wmissing-format-attribute"
13617
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-format-attribute" >&5
13619 $as_echo_n "checking if $CC supports -Wmissing-format-attribute... " >&6; }
13620 cacheid=xorg_cv_cc_flag__Wmissing_format_attribute
13621 if eval \${$cacheid+:} false; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13625 /* end confdefs.h. */
13626 int i;
13627 int
13628 main ()
13629 {
13630
13631 ;
13632 return 0;
13633 }
13634 _ACEOF
13635 if ac_fn_c_try_link "$LINENO"; then :
13636 eval $cacheid=yes
13637 else
13638 eval $cacheid=no
13639 fi
13640 rm -f core conftest.err conftest.$ac_objext \
13641 conftest$ac_exeext conftest.$ac_ext
13642 fi
13643
13644
13645 CFLAGS="$xorg_testset_save_CFLAGS"
13646
13647 eval supported=\$$cacheid
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13649 $as_echo "$supported" >&6; }
13650 if test "$supported" = "yes" ; then
13651 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-format-attribute"
13652 found="yes"
13653 fi
13654 fi
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670 xorg_testset_save_CFLAGS="$CFLAGS"
13671
13672 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13673 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13675 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13676 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13677 $as_echo_n "(cached) " >&6
13678 else
13679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13680 /* end confdefs.h. */
13681 int i;
13682 _ACEOF
13683 if ac_fn_c_try_compile "$LINENO"; then :
13684 xorg_cv_cc_flag_unknown_warning_option=yes
13685 else
13686 xorg_cv_cc_flag_unknown_warning_option=no
13687 fi
13688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13689 fi
13690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13691 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13692 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13693 CFLAGS="$xorg_testset_save_CFLAGS"
13694 fi
13695
13696 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13697 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13698 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13699 fi
13700 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13702 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13703 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13704 $as_echo_n "(cached) " >&6
13705 else
13706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13707 /* end confdefs.h. */
13708 int i;
13709 _ACEOF
13710 if ac_fn_c_try_compile "$LINENO"; then :
13711 xorg_cv_cc_flag_unused_command_line_argument=yes
13712 else
13713 xorg_cv_cc_flag_unused_command_line_argument=no
13714 fi
13715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13716 fi
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13718 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13719 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13720 CFLAGS="$xorg_testset_save_CFLAGS"
13721 fi
13722
13723 found="no"
13724
13725 if test $found = "no" ; then
13726 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13728 fi
13729
13730 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13731 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13732 fi
13733
13734 CFLAGS="$CFLAGS -Wredundant-decls"
13735
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wredundant-decls" >&5
13737 $as_echo_n "checking if $CC supports -Wredundant-decls... " >&6; }
13738 cacheid=xorg_cv_cc_flag__Wredundant_decls
13739 if eval \${$cacheid+:} false; then :
13740 $as_echo_n "(cached) " >&6
13741 else
13742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13743 /* end confdefs.h. */
13744 int i;
13745 int
13746 main ()
13747 {
13748
13749 ;
13750 return 0;
13751 }
13752 _ACEOF
13753 if ac_fn_c_try_link "$LINENO"; then :
13754 eval $cacheid=yes
13755 else
13756 eval $cacheid=no
13757 fi
13758 rm -f core conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13760 fi
13761
13762
13763 CFLAGS="$xorg_testset_save_CFLAGS"
13764
13765 eval supported=\$$cacheid
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13767 $as_echo "$supported" >&6; }
13768 if test "$supported" = "yes" ; then
13769 BASE_CFLAGS="$BASE_CFLAGS -Wredundant-decls"
13770 found="yes"
13771 fi
13772 fi
13773
13774
13775
13776 # These are currently disabled because they are noisy. They will be enabled
13777 # in the future once the codebase is sufficiently modernized to silence
13778 # them. For now, I don't want them to drown out the other warnings.
13779 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wlogical-op])
13780 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wparentheses])
13781 # XORG_TESTSET_CFLAG([[BASE_]PREFIX[FLAGS]], [-Wcast-align])
13782
13783 # Turn some warnings into errors, so we don't accidently get successful builds
13784 # when there are problems that should be fixed.
13785
13786 if test "x$SELECTIVE_WERROR" = "xyes" ; then
13787
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800 xorg_testset_save_CFLAGS="$CFLAGS"
13801
13802 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13803 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13805 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13806 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13807 $as_echo_n "(cached) " >&6
13808 else
13809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13810 /* end confdefs.h. */
13811 int i;
13812 _ACEOF
13813 if ac_fn_c_try_compile "$LINENO"; then :
13814 xorg_cv_cc_flag_unknown_warning_option=yes
13815 else
13816 xorg_cv_cc_flag_unknown_warning_option=no
13817 fi
13818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13819 fi
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13821 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13822 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13823 CFLAGS="$xorg_testset_save_CFLAGS"
13824 fi
13825
13826 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13827 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13828 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13829 fi
13830 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13832 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
13833 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
13834 $as_echo_n "(cached) " >&6
13835 else
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13838 int i;
13839 _ACEOF
13840 if ac_fn_c_try_compile "$LINENO"; then :
13841 xorg_cv_cc_flag_unused_command_line_argument=yes
13842 else
13843 xorg_cv_cc_flag_unused_command_line_argument=no
13844 fi
13845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13846 fi
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
13848 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
13849 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
13850 CFLAGS="$xorg_testset_save_CFLAGS"
13851 fi
13852
13853 found="no"
13854
13855 if test $found = "no" ; then
13856 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13857 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13858 fi
13859
13860 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13861 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13862 fi
13863
13864 CFLAGS="$CFLAGS -Werror=implicit"
13865
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=implicit" >&5
13867 $as_echo_n "checking if $CC supports -Werror=implicit... " >&6; }
13868 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=implicit" | $as_tr_sh`
13869 if eval \${$cacheid+:} false; then :
13870 $as_echo_n "(cached) " >&6
13871 else
13872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13874 int i;
13875 int
13876 main ()
13877 {
13878
13879 ;
13880 return 0;
13881 }
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"; then :
13884 eval $cacheid=yes
13885 else
13886 eval $cacheid=no
13887 fi
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 fi
13891
13892
13893 CFLAGS="$xorg_testset_save_CFLAGS"
13894
13895 eval supported=\$$cacheid
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13897 $as_echo "$supported" >&6; }
13898 if test "$supported" = "yes" ; then
13899 BASE_CFLAGS="$BASE_CFLAGS -Werror=implicit"
13900 found="yes"
13901 fi
13902 fi
13903
13904 if test $found = "no" ; then
13905 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
13906 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13907 fi
13908
13909 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
13910 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13911 fi
13912
13913 CFLAGS="$CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13914
13915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" >&5
13916 $as_echo_n "checking if $CC supports -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED... " >&6; }
13917 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED" | $as_tr_sh`
13918 if eval \${$cacheid+:} false; then :
13919 $as_echo_n "(cached) " >&6
13920 else
13921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13922 /* end confdefs.h. */
13923 int i;
13924 int
13925 main ()
13926 {
13927
13928 ;
13929 return 0;
13930 }
13931 _ACEOF
13932 if ac_fn_c_try_link "$LINENO"; then :
13933 eval $cacheid=yes
13934 else
13935 eval $cacheid=no
13936 fi
13937 rm -f core conftest.err conftest.$ac_objext \
13938 conftest$ac_exeext conftest.$ac_ext
13939 fi
13940
13941
13942 CFLAGS="$xorg_testset_save_CFLAGS"
13943
13944 eval supported=\$$cacheid
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
13946 $as_echo "$supported" >&6; }
13947 if test "$supported" = "yes" ; then
13948 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_NO_EXPLICIT_TYPE_GIVEN -errwarn=E_NO_IMPLICIT_DECL_ALLOWED"
13949 found="yes"
13950 fi
13951 fi
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967 xorg_testset_save_CFLAGS="$CFLAGS"
13968
13969 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
13970 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
13972 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
13973 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
13974 $as_echo_n "(cached) " >&6
13975 else
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978 int i;
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"; then :
13981 xorg_cv_cc_flag_unknown_warning_option=yes
13982 else
13983 xorg_cv_cc_flag_unknown_warning_option=no
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 fi
13987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
13988 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
13989 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
13990 CFLAGS="$xorg_testset_save_CFLAGS"
13991 fi
13992
13993 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
13994 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
13995 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
13996 fi
13997 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
13999 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14000 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14001 $as_echo_n "(cached) " >&6
14002 else
14003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14004 /* end confdefs.h. */
14005 int i;
14006 _ACEOF
14007 if ac_fn_c_try_compile "$LINENO"; then :
14008 xorg_cv_cc_flag_unused_command_line_argument=yes
14009 else
14010 xorg_cv_cc_flag_unused_command_line_argument=no
14011 fi
14012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14013 fi
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14015 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14016 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14017 CFLAGS="$xorg_testset_save_CFLAGS"
14018 fi
14019
14020 found="no"
14021
14022 if test $found = "no" ; then
14023 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14024 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14025 fi
14026
14027 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14028 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14029 fi
14030
14031 CFLAGS="$CFLAGS -Werror=nonnull"
14032
14033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=nonnull" >&5
14034 $as_echo_n "checking if $CC supports -Werror=nonnull... " >&6; }
14035 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=nonnull" | $as_tr_sh`
14036 if eval \${$cacheid+:} false; then :
14037 $as_echo_n "(cached) " >&6
14038 else
14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14040 /* end confdefs.h. */
14041 int i;
14042 int
14043 main ()
14044 {
14045
14046 ;
14047 return 0;
14048 }
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 eval $cacheid=yes
14052 else
14053 eval $cacheid=no
14054 fi
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 fi
14058
14059
14060 CFLAGS="$xorg_testset_save_CFLAGS"
14061
14062 eval supported=\$$cacheid
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14064 $as_echo "$supported" >&6; }
14065 if test "$supported" = "yes" ; then
14066 BASE_CFLAGS="$BASE_CFLAGS -Werror=nonnull"
14067 found="yes"
14068 fi
14069 fi
14070
14071
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085 xorg_testset_save_CFLAGS="$CFLAGS"
14086
14087 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14088 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14090 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14091 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14092 $as_echo_n "(cached) " >&6
14093 else
14094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14095 /* end confdefs.h. */
14096 int i;
14097 _ACEOF
14098 if ac_fn_c_try_compile "$LINENO"; then :
14099 xorg_cv_cc_flag_unknown_warning_option=yes
14100 else
14101 xorg_cv_cc_flag_unknown_warning_option=no
14102 fi
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 fi
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14106 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14107 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14108 CFLAGS="$xorg_testset_save_CFLAGS"
14109 fi
14110
14111 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14112 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14113 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14114 fi
14115 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14117 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14118 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14119 $as_echo_n "(cached) " >&6
14120 else
14121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14122 /* end confdefs.h. */
14123 int i;
14124 _ACEOF
14125 if ac_fn_c_try_compile "$LINENO"; then :
14126 xorg_cv_cc_flag_unused_command_line_argument=yes
14127 else
14128 xorg_cv_cc_flag_unused_command_line_argument=no
14129 fi
14130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14131 fi
14132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14133 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14134 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14135 CFLAGS="$xorg_testset_save_CFLAGS"
14136 fi
14137
14138 found="no"
14139
14140 if test $found = "no" ; then
14141 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14142 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14143 fi
14144
14145 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14146 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14147 fi
14148
14149 CFLAGS="$CFLAGS -Werror=init-self"
14150
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=init-self" >&5
14152 $as_echo_n "checking if $CC supports -Werror=init-self... " >&6; }
14153 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=init-self" | $as_tr_sh`
14154 if eval \${$cacheid+:} false; then :
14155 $as_echo_n "(cached) " >&6
14156 else
14157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14158 /* end confdefs.h. */
14159 int i;
14160 int
14161 main ()
14162 {
14163
14164 ;
14165 return 0;
14166 }
14167 _ACEOF
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 eval $cacheid=yes
14170 else
14171 eval $cacheid=no
14172 fi
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 fi
14176
14177
14178 CFLAGS="$xorg_testset_save_CFLAGS"
14179
14180 eval supported=\$$cacheid
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14182 $as_echo "$supported" >&6; }
14183 if test "$supported" = "yes" ; then
14184 BASE_CFLAGS="$BASE_CFLAGS -Werror=init-self"
14185 found="yes"
14186 fi
14187 fi
14188
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202
14203 xorg_testset_save_CFLAGS="$CFLAGS"
14204
14205 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14206 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14208 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14209 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14210 $as_echo_n "(cached) " >&6
14211 else
14212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14213 /* end confdefs.h. */
14214 int i;
14215 _ACEOF
14216 if ac_fn_c_try_compile "$LINENO"; then :
14217 xorg_cv_cc_flag_unknown_warning_option=yes
14218 else
14219 xorg_cv_cc_flag_unknown_warning_option=no
14220 fi
14221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14222 fi
14223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14224 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14225 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14226 CFLAGS="$xorg_testset_save_CFLAGS"
14227 fi
14228
14229 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14230 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14231 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14232 fi
14233 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14235 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14236 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14237 $as_echo_n "(cached) " >&6
14238 else
14239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14240 /* end confdefs.h. */
14241 int i;
14242 _ACEOF
14243 if ac_fn_c_try_compile "$LINENO"; then :
14244 xorg_cv_cc_flag_unused_command_line_argument=yes
14245 else
14246 xorg_cv_cc_flag_unused_command_line_argument=no
14247 fi
14248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14249 fi
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14251 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14252 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14253 CFLAGS="$xorg_testset_save_CFLAGS"
14254 fi
14255
14256 found="no"
14257
14258 if test $found = "no" ; then
14259 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14260 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14261 fi
14262
14263 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14264 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14265 fi
14266
14267 CFLAGS="$CFLAGS -Werror=main"
14268
14269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=main" >&5
14270 $as_echo_n "checking if $CC supports -Werror=main... " >&6; }
14271 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=main" | $as_tr_sh`
14272 if eval \${$cacheid+:} false; then :
14273 $as_echo_n "(cached) " >&6
14274 else
14275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14276 /* end confdefs.h. */
14277 int i;
14278 int
14279 main ()
14280 {
14281
14282 ;
14283 return 0;
14284 }
14285 _ACEOF
14286 if ac_fn_c_try_link "$LINENO"; then :
14287 eval $cacheid=yes
14288 else
14289 eval $cacheid=no
14290 fi
14291 rm -f core conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
14293 fi
14294
14295
14296 CFLAGS="$xorg_testset_save_CFLAGS"
14297
14298 eval supported=\$$cacheid
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14300 $as_echo "$supported" >&6; }
14301 if test "$supported" = "yes" ; then
14302 BASE_CFLAGS="$BASE_CFLAGS -Werror=main"
14303 found="yes"
14304 fi
14305 fi
14306
14307
14308
14309
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321 xorg_testset_save_CFLAGS="$CFLAGS"
14322
14323 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14324 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14326 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14327 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14328 $as_echo_n "(cached) " >&6
14329 else
14330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14331 /* end confdefs.h. */
14332 int i;
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"; then :
14335 xorg_cv_cc_flag_unknown_warning_option=yes
14336 else
14337 xorg_cv_cc_flag_unknown_warning_option=no
14338 fi
14339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14340 fi
14341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14342 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14343 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14344 CFLAGS="$xorg_testset_save_CFLAGS"
14345 fi
14346
14347 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14348 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14349 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14350 fi
14351 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14353 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14354 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14355 $as_echo_n "(cached) " >&6
14356 else
14357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14358 /* end confdefs.h. */
14359 int i;
14360 _ACEOF
14361 if ac_fn_c_try_compile "$LINENO"; then :
14362 xorg_cv_cc_flag_unused_command_line_argument=yes
14363 else
14364 xorg_cv_cc_flag_unused_command_line_argument=no
14365 fi
14366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14367 fi
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14369 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14370 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14371 CFLAGS="$xorg_testset_save_CFLAGS"
14372 fi
14373
14374 found="no"
14375
14376 if test $found = "no" ; then
14377 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14378 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14379 fi
14380
14381 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14382 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14383 fi
14384
14385 CFLAGS="$CFLAGS -Werror=missing-braces"
14386
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=missing-braces" >&5
14388 $as_echo_n "checking if $CC supports -Werror=missing-braces... " >&6; }
14389 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=missing-braces" | $as_tr_sh`
14390 if eval \${$cacheid+:} false; then :
14391 $as_echo_n "(cached) " >&6
14392 else
14393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14394 /* end confdefs.h. */
14395 int i;
14396 int
14397 main ()
14398 {
14399
14400 ;
14401 return 0;
14402 }
14403 _ACEOF
14404 if ac_fn_c_try_link "$LINENO"; then :
14405 eval $cacheid=yes
14406 else
14407 eval $cacheid=no
14408 fi
14409 rm -f core conftest.err conftest.$ac_objext \
14410 conftest$ac_exeext conftest.$ac_ext
14411 fi
14412
14413
14414 CFLAGS="$xorg_testset_save_CFLAGS"
14415
14416 eval supported=\$$cacheid
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14418 $as_echo "$supported" >&6; }
14419 if test "$supported" = "yes" ; then
14420 BASE_CFLAGS="$BASE_CFLAGS -Werror=missing-braces"
14421 found="yes"
14422 fi
14423 fi
14424
14425
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439 xorg_testset_save_CFLAGS="$CFLAGS"
14440
14441 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14442 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14444 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14445 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14446 $as_echo_n "(cached) " >&6
14447 else
14448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14449 /* end confdefs.h. */
14450 int i;
14451 _ACEOF
14452 if ac_fn_c_try_compile "$LINENO"; then :
14453 xorg_cv_cc_flag_unknown_warning_option=yes
14454 else
14455 xorg_cv_cc_flag_unknown_warning_option=no
14456 fi
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 fi
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14460 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14461 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14462 CFLAGS="$xorg_testset_save_CFLAGS"
14463 fi
14464
14465 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14466 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14467 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14468 fi
14469 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14471 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14472 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14473 $as_echo_n "(cached) " >&6
14474 else
14475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14476 /* end confdefs.h. */
14477 int i;
14478 _ACEOF
14479 if ac_fn_c_try_compile "$LINENO"; then :
14480 xorg_cv_cc_flag_unused_command_line_argument=yes
14481 else
14482 xorg_cv_cc_flag_unused_command_line_argument=no
14483 fi
14484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14485 fi
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14487 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14488 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14489 CFLAGS="$xorg_testset_save_CFLAGS"
14490 fi
14491
14492 found="no"
14493
14494 if test $found = "no" ; then
14495 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14496 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14497 fi
14498
14499 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14500 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14501 fi
14502
14503 CFLAGS="$CFLAGS -Werror=sequence-point"
14504
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=sequence-point" >&5
14506 $as_echo_n "checking if $CC supports -Werror=sequence-point... " >&6; }
14507 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=sequence-point" | $as_tr_sh`
14508 if eval \${$cacheid+:} false; then :
14509 $as_echo_n "(cached) " >&6
14510 else
14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512 /* end confdefs.h. */
14513 int i;
14514 int
14515 main ()
14516 {
14517
14518 ;
14519 return 0;
14520 }
14521 _ACEOF
14522 if ac_fn_c_try_link "$LINENO"; then :
14523 eval $cacheid=yes
14524 else
14525 eval $cacheid=no
14526 fi
14527 rm -f core conftest.err conftest.$ac_objext \
14528 conftest$ac_exeext conftest.$ac_ext
14529 fi
14530
14531
14532 CFLAGS="$xorg_testset_save_CFLAGS"
14533
14534 eval supported=\$$cacheid
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14536 $as_echo "$supported" >&6; }
14537 if test "$supported" = "yes" ; then
14538 BASE_CFLAGS="$BASE_CFLAGS -Werror=sequence-point"
14539 found="yes"
14540 fi
14541 fi
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557 xorg_testset_save_CFLAGS="$CFLAGS"
14558
14559 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14560 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14562 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14563 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14564 $as_echo_n "(cached) " >&6
14565 else
14566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14567 /* end confdefs.h. */
14568 int i;
14569 _ACEOF
14570 if ac_fn_c_try_compile "$LINENO"; then :
14571 xorg_cv_cc_flag_unknown_warning_option=yes
14572 else
14573 xorg_cv_cc_flag_unknown_warning_option=no
14574 fi
14575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14576 fi
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14578 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14579 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14580 CFLAGS="$xorg_testset_save_CFLAGS"
14581 fi
14582
14583 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14584 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14585 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14586 fi
14587 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14589 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14590 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14591 $as_echo_n "(cached) " >&6
14592 else
14593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14594 /* end confdefs.h. */
14595 int i;
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"; then :
14598 xorg_cv_cc_flag_unused_command_line_argument=yes
14599 else
14600 xorg_cv_cc_flag_unused_command_line_argument=no
14601 fi
14602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14603 fi
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14605 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14606 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14607 CFLAGS="$xorg_testset_save_CFLAGS"
14608 fi
14609
14610 found="no"
14611
14612 if test $found = "no" ; then
14613 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14614 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14615 fi
14616
14617 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14618 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14619 fi
14620
14621 CFLAGS="$CFLAGS -Werror=return-type"
14622
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=return-type" >&5
14624 $as_echo_n "checking if $CC supports -Werror=return-type... " >&6; }
14625 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=return-type" | $as_tr_sh`
14626 if eval \${$cacheid+:} false; then :
14627 $as_echo_n "(cached) " >&6
14628 else
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14631 int i;
14632 int
14633 main ()
14634 {
14635
14636 ;
14637 return 0;
14638 }
14639 _ACEOF
14640 if ac_fn_c_try_link "$LINENO"; then :
14641 eval $cacheid=yes
14642 else
14643 eval $cacheid=no
14644 fi
14645 rm -f core conftest.err conftest.$ac_objext \
14646 conftest$ac_exeext conftest.$ac_ext
14647 fi
14648
14649
14650 CFLAGS="$xorg_testset_save_CFLAGS"
14651
14652 eval supported=\$$cacheid
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14654 $as_echo "$supported" >&6; }
14655 if test "$supported" = "yes" ; then
14656 BASE_CFLAGS="$BASE_CFLAGS -Werror=return-type"
14657 found="yes"
14658 fi
14659 fi
14660
14661 if test $found = "no" ; then
14662 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14663 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14664 fi
14665
14666 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14667 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14668 fi
14669
14670 CFLAGS="$CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14671
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT" >&5
14673 $as_echo_n "checking if $CC supports -errwarn=E_FUNC_HAS_NO_RETURN_STMT... " >&6; }
14674 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_FUNC_HAS_NO_RETURN_STMT" | $as_tr_sh`
14675 if eval \${$cacheid+:} false; then :
14676 $as_echo_n "(cached) " >&6
14677 else
14678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14679 /* end confdefs.h. */
14680 int i;
14681 int
14682 main ()
14683 {
14684
14685 ;
14686 return 0;
14687 }
14688 _ACEOF
14689 if ac_fn_c_try_link "$LINENO"; then :
14690 eval $cacheid=yes
14691 else
14692 eval $cacheid=no
14693 fi
14694 rm -f core conftest.err conftest.$ac_objext \
14695 conftest$ac_exeext conftest.$ac_ext
14696 fi
14697
14698
14699 CFLAGS="$xorg_testset_save_CFLAGS"
14700
14701 eval supported=\$$cacheid
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14703 $as_echo "$supported" >&6; }
14704 if test "$supported" = "yes" ; then
14705 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_FUNC_HAS_NO_RETURN_STMT"
14706 found="yes"
14707 fi
14708 fi
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724 xorg_testset_save_CFLAGS="$CFLAGS"
14725
14726 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14727 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14729 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14730 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14731 $as_echo_n "(cached) " >&6
14732 else
14733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14734 /* end confdefs.h. */
14735 int i;
14736 _ACEOF
14737 if ac_fn_c_try_compile "$LINENO"; then :
14738 xorg_cv_cc_flag_unknown_warning_option=yes
14739 else
14740 xorg_cv_cc_flag_unknown_warning_option=no
14741 fi
14742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 fi
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14745 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14746 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14747 CFLAGS="$xorg_testset_save_CFLAGS"
14748 fi
14749
14750 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14751 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14752 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14753 fi
14754 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14756 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14757 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14758 $as_echo_n "(cached) " >&6
14759 else
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14762 int i;
14763 _ACEOF
14764 if ac_fn_c_try_compile "$LINENO"; then :
14765 xorg_cv_cc_flag_unused_command_line_argument=yes
14766 else
14767 xorg_cv_cc_flag_unused_command_line_argument=no
14768 fi
14769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14770 fi
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14772 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14773 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14774 CFLAGS="$xorg_testset_save_CFLAGS"
14775 fi
14776
14777 found="no"
14778
14779 if test $found = "no" ; then
14780 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14781 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14782 fi
14783
14784 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14785 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14786 fi
14787
14788 CFLAGS="$CFLAGS -Werror=trigraphs"
14789
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=trigraphs" >&5
14791 $as_echo_n "checking if $CC supports -Werror=trigraphs... " >&6; }
14792 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=trigraphs" | $as_tr_sh`
14793 if eval \${$cacheid+:} false; then :
14794 $as_echo_n "(cached) " >&6
14795 else
14796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14797 /* end confdefs.h. */
14798 int i;
14799 int
14800 main ()
14801 {
14802
14803 ;
14804 return 0;
14805 }
14806 _ACEOF
14807 if ac_fn_c_try_link "$LINENO"; then :
14808 eval $cacheid=yes
14809 else
14810 eval $cacheid=no
14811 fi
14812 rm -f core conftest.err conftest.$ac_objext \
14813 conftest$ac_exeext conftest.$ac_ext
14814 fi
14815
14816
14817 CFLAGS="$xorg_testset_save_CFLAGS"
14818
14819 eval supported=\$$cacheid
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14821 $as_echo "$supported" >&6; }
14822 if test "$supported" = "yes" ; then
14823 BASE_CFLAGS="$BASE_CFLAGS -Werror=trigraphs"
14824 found="yes"
14825 fi
14826 fi
14827
14828
14829
14830
14831
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841
14842 xorg_testset_save_CFLAGS="$CFLAGS"
14843
14844 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14845 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14847 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14848 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14849 $as_echo_n "(cached) " >&6
14850 else
14851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14852 /* end confdefs.h. */
14853 int i;
14854 _ACEOF
14855 if ac_fn_c_try_compile "$LINENO"; then :
14856 xorg_cv_cc_flag_unknown_warning_option=yes
14857 else
14858 xorg_cv_cc_flag_unknown_warning_option=no
14859 fi
14860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14861 fi
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14863 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14864 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14865 CFLAGS="$xorg_testset_save_CFLAGS"
14866 fi
14867
14868 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14869 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14870 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14871 fi
14872 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14874 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14875 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 int i;
14881 _ACEOF
14882 if ac_fn_c_try_compile "$LINENO"; then :
14883 xorg_cv_cc_flag_unused_command_line_argument=yes
14884 else
14885 xorg_cv_cc_flag_unused_command_line_argument=no
14886 fi
14887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14888 fi
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
14890 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
14891 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
14892 CFLAGS="$xorg_testset_save_CFLAGS"
14893 fi
14894
14895 found="no"
14896
14897 if test $found = "no" ; then
14898 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
14899 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14900 fi
14901
14902 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
14903 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14904 fi
14905
14906 CFLAGS="$CFLAGS -Werror=array-bounds"
14907
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=array-bounds" >&5
14909 $as_echo_n "checking if $CC supports -Werror=array-bounds... " >&6; }
14910 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=array-bounds" | $as_tr_sh`
14911 if eval \${$cacheid+:} false; then :
14912 $as_echo_n "(cached) " >&6
14913 else
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14916 int i;
14917 int
14918 main ()
14919 {
14920
14921 ;
14922 return 0;
14923 }
14924 _ACEOF
14925 if ac_fn_c_try_link "$LINENO"; then :
14926 eval $cacheid=yes
14927 else
14928 eval $cacheid=no
14929 fi
14930 rm -f core conftest.err conftest.$ac_objext \
14931 conftest$ac_exeext conftest.$ac_ext
14932 fi
14933
14934
14935 CFLAGS="$xorg_testset_save_CFLAGS"
14936
14937 eval supported=\$$cacheid
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
14939 $as_echo "$supported" >&6; }
14940 if test "$supported" = "yes" ; then
14941 BASE_CFLAGS="$BASE_CFLAGS -Werror=array-bounds"
14942 found="yes"
14943 fi
14944 fi
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960 xorg_testset_save_CFLAGS="$CFLAGS"
14961
14962 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
14963 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
14965 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
14966 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
14967 $as_echo_n "(cached) " >&6
14968 else
14969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14970 /* end confdefs.h. */
14971 int i;
14972 _ACEOF
14973 if ac_fn_c_try_compile "$LINENO"; then :
14974 xorg_cv_cc_flag_unknown_warning_option=yes
14975 else
14976 xorg_cv_cc_flag_unknown_warning_option=no
14977 fi
14978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14979 fi
14980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
14981 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
14982 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
14983 CFLAGS="$xorg_testset_save_CFLAGS"
14984 fi
14985
14986 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
14987 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
14988 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
14989 fi
14990 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
14992 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
14993 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
14994 $as_echo_n "(cached) " >&6
14995 else
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998 int i;
14999 _ACEOF
15000 if ac_fn_c_try_compile "$LINENO"; then :
15001 xorg_cv_cc_flag_unused_command_line_argument=yes
15002 else
15003 xorg_cv_cc_flag_unused_command_line_argument=no
15004 fi
15005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15006 fi
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15008 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15009 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15010 CFLAGS="$xorg_testset_save_CFLAGS"
15011 fi
15012
15013 found="no"
15014
15015 if test $found = "no" ; then
15016 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15017 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15018 fi
15019
15020 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15021 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15022 fi
15023
15024 CFLAGS="$CFLAGS -Werror=write-strings"
15025
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=write-strings" >&5
15027 $as_echo_n "checking if $CC supports -Werror=write-strings... " >&6; }
15028 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=write-strings" | $as_tr_sh`
15029 if eval \${$cacheid+:} false; then :
15030 $as_echo_n "(cached) " >&6
15031 else
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15033 /* end confdefs.h. */
15034 int i;
15035 int
15036 main ()
15037 {
15038
15039 ;
15040 return 0;
15041 }
15042 _ACEOF
15043 if ac_fn_c_try_link "$LINENO"; then :
15044 eval $cacheid=yes
15045 else
15046 eval $cacheid=no
15047 fi
15048 rm -f core conftest.err conftest.$ac_objext \
15049 conftest$ac_exeext conftest.$ac_ext
15050 fi
15051
15052
15053 CFLAGS="$xorg_testset_save_CFLAGS"
15054
15055 eval supported=\$$cacheid
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15057 $as_echo "$supported" >&6; }
15058 if test "$supported" = "yes" ; then
15059 BASE_CFLAGS="$BASE_CFLAGS -Werror=write-strings"
15060 found="yes"
15061 fi
15062 fi
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078 xorg_testset_save_CFLAGS="$CFLAGS"
15079
15080 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15081 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15083 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15084 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15085 $as_echo_n "(cached) " >&6
15086 else
15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15088 /* end confdefs.h. */
15089 int i;
15090 _ACEOF
15091 if ac_fn_c_try_compile "$LINENO"; then :
15092 xorg_cv_cc_flag_unknown_warning_option=yes
15093 else
15094 xorg_cv_cc_flag_unknown_warning_option=no
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15097 fi
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15099 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15100 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15101 CFLAGS="$xorg_testset_save_CFLAGS"
15102 fi
15103
15104 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15105 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15106 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15107 fi
15108 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15110 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15111 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15112 $as_echo_n "(cached) " >&6
15113 else
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15116 int i;
15117 _ACEOF
15118 if ac_fn_c_try_compile "$LINENO"; then :
15119 xorg_cv_cc_flag_unused_command_line_argument=yes
15120 else
15121 xorg_cv_cc_flag_unused_command_line_argument=no
15122 fi
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15124 fi
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15126 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15127 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15128 CFLAGS="$xorg_testset_save_CFLAGS"
15129 fi
15130
15131 found="no"
15132
15133 if test $found = "no" ; then
15134 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15135 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15136 fi
15137
15138 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15139 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15140 fi
15141
15142 CFLAGS="$CFLAGS -Werror=address"
15143
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=address" >&5
15145 $as_echo_n "checking if $CC supports -Werror=address... " >&6; }
15146 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=address" | $as_tr_sh`
15147 if eval \${$cacheid+:} false; then :
15148 $as_echo_n "(cached) " >&6
15149 else
15150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15151 /* end confdefs.h. */
15152 int i;
15153 int
15154 main ()
15155 {
15156
15157 ;
15158 return 0;
15159 }
15160 _ACEOF
15161 if ac_fn_c_try_link "$LINENO"; then :
15162 eval $cacheid=yes
15163 else
15164 eval $cacheid=no
15165 fi
15166 rm -f core conftest.err conftest.$ac_objext \
15167 conftest$ac_exeext conftest.$ac_ext
15168 fi
15169
15170
15171 CFLAGS="$xorg_testset_save_CFLAGS"
15172
15173 eval supported=\$$cacheid
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15175 $as_echo "$supported" >&6; }
15176 if test "$supported" = "yes" ; then
15177 BASE_CFLAGS="$BASE_CFLAGS -Werror=address"
15178 found="yes"
15179 fi
15180 fi
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196 xorg_testset_save_CFLAGS="$CFLAGS"
15197
15198 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15199 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15201 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15202 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15203 $as_echo_n "(cached) " >&6
15204 else
15205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15206 /* end confdefs.h. */
15207 int i;
15208 _ACEOF
15209 if ac_fn_c_try_compile "$LINENO"; then :
15210 xorg_cv_cc_flag_unknown_warning_option=yes
15211 else
15212 xorg_cv_cc_flag_unknown_warning_option=no
15213 fi
15214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15215 fi
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15217 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15218 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15219 CFLAGS="$xorg_testset_save_CFLAGS"
15220 fi
15221
15222 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15223 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15224 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15225 fi
15226 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15228 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15229 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15230 $as_echo_n "(cached) " >&6
15231 else
15232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15233 /* end confdefs.h. */
15234 int i;
15235 _ACEOF
15236 if ac_fn_c_try_compile "$LINENO"; then :
15237 xorg_cv_cc_flag_unused_command_line_argument=yes
15238 else
15239 xorg_cv_cc_flag_unused_command_line_argument=no
15240 fi
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 fi
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15244 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15245 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15246 CFLAGS="$xorg_testset_save_CFLAGS"
15247 fi
15248
15249 found="no"
15250
15251 if test $found = "no" ; then
15252 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15253 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15254 fi
15255
15256 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15257 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15258 fi
15259
15260 CFLAGS="$CFLAGS -Werror=int-to-pointer-cast"
15261
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=int-to-pointer-cast" >&5
15263 $as_echo_n "checking if $CC supports -Werror=int-to-pointer-cast... " >&6; }
15264 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=int-to-pointer-cast" | $as_tr_sh`
15265 if eval \${$cacheid+:} false; then :
15266 $as_echo_n "(cached) " >&6
15267 else
15268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15269 /* end confdefs.h. */
15270 int i;
15271 int
15272 main ()
15273 {
15274
15275 ;
15276 return 0;
15277 }
15278 _ACEOF
15279 if ac_fn_c_try_link "$LINENO"; then :
15280 eval $cacheid=yes
15281 else
15282 eval $cacheid=no
15283 fi
15284 rm -f core conftest.err conftest.$ac_objext \
15285 conftest$ac_exeext conftest.$ac_ext
15286 fi
15287
15288
15289 CFLAGS="$xorg_testset_save_CFLAGS"
15290
15291 eval supported=\$$cacheid
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15293 $as_echo "$supported" >&6; }
15294 if test "$supported" = "yes" ; then
15295 BASE_CFLAGS="$BASE_CFLAGS -Werror=int-to-pointer-cast"
15296 found="yes"
15297 fi
15298 fi
15299
15300 if test $found = "no" ; then
15301 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15302 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15303 fi
15304
15305 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15306 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15307 fi
15308
15309 CFLAGS="$CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15310
15311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION" >&5
15312 $as_echo_n "checking if $CC supports -errwarn=E_BAD_PTR_INT_COMBINATION... " >&6; }
15313 cacheid=`$as_echo "xorg_cv_cc_flag_-errwarn=E_BAD_PTR_INT_COMBINATION" | $as_tr_sh`
15314 if eval \${$cacheid+:} false; then :
15315 $as_echo_n "(cached) " >&6
15316 else
15317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15318 /* end confdefs.h. */
15319 int i;
15320 int
15321 main ()
15322 {
15323
15324 ;
15325 return 0;
15326 }
15327 _ACEOF
15328 if ac_fn_c_try_link "$LINENO"; then :
15329 eval $cacheid=yes
15330 else
15331 eval $cacheid=no
15332 fi
15333 rm -f core conftest.err conftest.$ac_objext \
15334 conftest$ac_exeext conftest.$ac_ext
15335 fi
15336
15337
15338 CFLAGS="$xorg_testset_save_CFLAGS"
15339
15340 eval supported=\$$cacheid
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15342 $as_echo "$supported" >&6; }
15343 if test "$supported" = "yes" ; then
15344 BASE_CFLAGS="$BASE_CFLAGS -errwarn=E_BAD_PTR_INT_COMBINATION"
15345 found="yes"
15346 fi
15347 fi
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363 xorg_testset_save_CFLAGS="$CFLAGS"
15364
15365 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15366 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15368 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15369 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15370 $as_echo_n "(cached) " >&6
15371 else
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15374 int i;
15375 _ACEOF
15376 if ac_fn_c_try_compile "$LINENO"; then :
15377 xorg_cv_cc_flag_unknown_warning_option=yes
15378 else
15379 xorg_cv_cc_flag_unknown_warning_option=no
15380 fi
15381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15382 fi
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15384 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15385 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15386 CFLAGS="$xorg_testset_save_CFLAGS"
15387 fi
15388
15389 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15390 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15391 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15392 fi
15393 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15395 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15396 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15397 $as_echo_n "(cached) " >&6
15398 else
15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15400 /* end confdefs.h. */
15401 int i;
15402 _ACEOF
15403 if ac_fn_c_try_compile "$LINENO"; then :
15404 xorg_cv_cc_flag_unused_command_line_argument=yes
15405 else
15406 xorg_cv_cc_flag_unused_command_line_argument=no
15407 fi
15408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15409 fi
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15411 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15412 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15413 CFLAGS="$xorg_testset_save_CFLAGS"
15414 fi
15415
15416 found="no"
15417
15418 if test $found = "no" ; then
15419 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15420 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15421 fi
15422
15423 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15424 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15425 fi
15426
15427 CFLAGS="$CFLAGS -Werror=pointer-to-int-cast"
15428
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=pointer-to-int-cast" >&5
15430 $as_echo_n "checking if $CC supports -Werror=pointer-to-int-cast... " >&6; }
15431 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=pointer-to-int-cast" | $as_tr_sh`
15432 if eval \${$cacheid+:} false; then :
15433 $as_echo_n "(cached) " >&6
15434 else
15435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15436 /* end confdefs.h. */
15437 int i;
15438 int
15439 main ()
15440 {
15441
15442 ;
15443 return 0;
15444 }
15445 _ACEOF
15446 if ac_fn_c_try_link "$LINENO"; then :
15447 eval $cacheid=yes
15448 else
15449 eval $cacheid=no
15450 fi
15451 rm -f core conftest.err conftest.$ac_objext \
15452 conftest$ac_exeext conftest.$ac_ext
15453 fi
15454
15455
15456 CFLAGS="$xorg_testset_save_CFLAGS"
15457
15458 eval supported=\$$cacheid
15459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15460 $as_echo "$supported" >&6; }
15461 if test "$supported" = "yes" ; then
15462 BASE_CFLAGS="$BASE_CFLAGS -Werror=pointer-to-int-cast"
15463 found="yes"
15464 fi
15465 fi
15466
15467 # Also -errwarn=E_BAD_PTR_INT_COMBINATION
15468 else
15469 { $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
15470 $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;}
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484 xorg_testset_save_CFLAGS="$CFLAGS"
15485
15486 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15487 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15489 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15490 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
15497 if ac_fn_c_try_compile "$LINENO"; then :
15498 xorg_cv_cc_flag_unknown_warning_option=yes
15499 else
15500 xorg_cv_cc_flag_unknown_warning_option=no
15501 fi
15502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15503 fi
15504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15505 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15506 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15507 CFLAGS="$xorg_testset_save_CFLAGS"
15508 fi
15509
15510 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15511 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15512 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15513 fi
15514 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15516 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15517 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15518 $as_echo_n "(cached) " >&6
15519 else
15520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15521 /* end confdefs.h. */
15522 int i;
15523 _ACEOF
15524 if ac_fn_c_try_compile "$LINENO"; then :
15525 xorg_cv_cc_flag_unused_command_line_argument=yes
15526 else
15527 xorg_cv_cc_flag_unused_command_line_argument=no
15528 fi
15529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15530 fi
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15532 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15533 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15534 CFLAGS="$xorg_testset_save_CFLAGS"
15535 fi
15536
15537 found="no"
15538
15539 if test $found = "no" ; then
15540 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15541 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15542 fi
15543
15544 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15545 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15546 fi
15547
15548 CFLAGS="$CFLAGS -Wimplicit"
15549
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wimplicit" >&5
15551 $as_echo_n "checking if $CC supports -Wimplicit... " >&6; }
15552 cacheid=xorg_cv_cc_flag__Wimplicit
15553 if eval \${$cacheid+:} false; then :
15554 $as_echo_n "(cached) " >&6
15555 else
15556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15557 /* end confdefs.h. */
15558 int i;
15559 int
15560 main ()
15561 {
15562
15563 ;
15564 return 0;
15565 }
15566 _ACEOF
15567 if ac_fn_c_try_link "$LINENO"; then :
15568 eval $cacheid=yes
15569 else
15570 eval $cacheid=no
15571 fi
15572 rm -f core conftest.err conftest.$ac_objext \
15573 conftest$ac_exeext conftest.$ac_ext
15574 fi
15575
15576
15577 CFLAGS="$xorg_testset_save_CFLAGS"
15578
15579 eval supported=\$$cacheid
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15581 $as_echo "$supported" >&6; }
15582 if test "$supported" = "yes" ; then
15583 BASE_CFLAGS="$BASE_CFLAGS -Wimplicit"
15584 found="yes"
15585 fi
15586 fi
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602 xorg_testset_save_CFLAGS="$CFLAGS"
15603
15604 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15605 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15607 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15608 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
15615 if ac_fn_c_try_compile "$LINENO"; then :
15616 xorg_cv_cc_flag_unknown_warning_option=yes
15617 else
15618 xorg_cv_cc_flag_unknown_warning_option=no
15619 fi
15620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15621 fi
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15623 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15624 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15625 CFLAGS="$xorg_testset_save_CFLAGS"
15626 fi
15627
15628 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15629 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15630 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15631 fi
15632 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15634 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15635 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15636 $as_echo_n "(cached) " >&6
15637 else
15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15639 /* end confdefs.h. */
15640 int i;
15641 _ACEOF
15642 if ac_fn_c_try_compile "$LINENO"; then :
15643 xorg_cv_cc_flag_unused_command_line_argument=yes
15644 else
15645 xorg_cv_cc_flag_unused_command_line_argument=no
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648 fi
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15650 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15651 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15652 CFLAGS="$xorg_testset_save_CFLAGS"
15653 fi
15654
15655 found="no"
15656
15657 if test $found = "no" ; then
15658 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15659 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15660 fi
15661
15662 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15663 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15664 fi
15665
15666 CFLAGS="$CFLAGS -Wnonnull"
15667
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wnonnull" >&5
15669 $as_echo_n "checking if $CC supports -Wnonnull... " >&6; }
15670 cacheid=xorg_cv_cc_flag__Wnonnull
15671 if eval \${$cacheid+:} false; then :
15672 $as_echo_n "(cached) " >&6
15673 else
15674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15675 /* end confdefs.h. */
15676 int i;
15677 int
15678 main ()
15679 {
15680
15681 ;
15682 return 0;
15683 }
15684 _ACEOF
15685 if ac_fn_c_try_link "$LINENO"; then :
15686 eval $cacheid=yes
15687 else
15688 eval $cacheid=no
15689 fi
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext conftest.$ac_ext
15692 fi
15693
15694
15695 CFLAGS="$xorg_testset_save_CFLAGS"
15696
15697 eval supported=\$$cacheid
15698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15699 $as_echo "$supported" >&6; }
15700 if test "$supported" = "yes" ; then
15701 BASE_CFLAGS="$BASE_CFLAGS -Wnonnull"
15702 found="yes"
15703 fi
15704 fi
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720 xorg_testset_save_CFLAGS="$CFLAGS"
15721
15722 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15723 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15725 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15726 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
15733 if ac_fn_c_try_compile "$LINENO"; then :
15734 xorg_cv_cc_flag_unknown_warning_option=yes
15735 else
15736 xorg_cv_cc_flag_unknown_warning_option=no
15737 fi
15738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15739 fi
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15741 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15742 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15743 CFLAGS="$xorg_testset_save_CFLAGS"
15744 fi
15745
15746 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15747 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15748 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15749 fi
15750 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15752 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15753 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15754 $as_echo_n "(cached) " >&6
15755 else
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15758 int i;
15759 _ACEOF
15760 if ac_fn_c_try_compile "$LINENO"; then :
15761 xorg_cv_cc_flag_unused_command_line_argument=yes
15762 else
15763 xorg_cv_cc_flag_unused_command_line_argument=no
15764 fi
15765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15766 fi
15767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15768 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15769 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15770 CFLAGS="$xorg_testset_save_CFLAGS"
15771 fi
15772
15773 found="no"
15774
15775 if test $found = "no" ; then
15776 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15777 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15778 fi
15779
15780 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15781 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15782 fi
15783
15784 CFLAGS="$CFLAGS -Winit-self"
15785
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Winit-self" >&5
15787 $as_echo_n "checking if $CC supports -Winit-self... " >&6; }
15788 cacheid=xorg_cv_cc_flag__Winit_self
15789 if eval \${$cacheid+:} false; then :
15790 $as_echo_n "(cached) " >&6
15791 else
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 int i;
15795 int
15796 main ()
15797 {
15798
15799 ;
15800 return 0;
15801 }
15802 _ACEOF
15803 if ac_fn_c_try_link "$LINENO"; then :
15804 eval $cacheid=yes
15805 else
15806 eval $cacheid=no
15807 fi
15808 rm -f core conftest.err conftest.$ac_objext \
15809 conftest$ac_exeext conftest.$ac_ext
15810 fi
15811
15812
15813 CFLAGS="$xorg_testset_save_CFLAGS"
15814
15815 eval supported=\$$cacheid
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15817 $as_echo "$supported" >&6; }
15818 if test "$supported" = "yes" ; then
15819 BASE_CFLAGS="$BASE_CFLAGS -Winit-self"
15820 found="yes"
15821 fi
15822 fi
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838 xorg_testset_save_CFLAGS="$CFLAGS"
15839
15840 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15841 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15843 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15844 if ${xorg_cv_cc_flag_unknown_warning_option+:} 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 _ACEOF
15851 if ac_fn_c_try_compile "$LINENO"; then :
15852 xorg_cv_cc_flag_unknown_warning_option=yes
15853 else
15854 xorg_cv_cc_flag_unknown_warning_option=no
15855 fi
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 fi
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15859 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15860 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15861 CFLAGS="$xorg_testset_save_CFLAGS"
15862 fi
15863
15864 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15865 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15866 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15867 fi
15868 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15870 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15871 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15872 $as_echo_n "(cached) " >&6
15873 else
15874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15875 /* end confdefs.h. */
15876 int i;
15877 _ACEOF
15878 if ac_fn_c_try_compile "$LINENO"; then :
15879 xorg_cv_cc_flag_unused_command_line_argument=yes
15880 else
15881 xorg_cv_cc_flag_unused_command_line_argument=no
15882 fi
15883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15884 fi
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
15886 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
15887 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
15888 CFLAGS="$xorg_testset_save_CFLAGS"
15889 fi
15890
15891 found="no"
15892
15893 if test $found = "no" ; then
15894 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
15895 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15896 fi
15897
15898 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
15899 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15900 fi
15901
15902 CFLAGS="$CFLAGS -Wmain"
15903
15904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmain" >&5
15905 $as_echo_n "checking if $CC supports -Wmain... " >&6; }
15906 cacheid=xorg_cv_cc_flag__Wmain
15907 if eval \${$cacheid+:} false; then :
15908 $as_echo_n "(cached) " >&6
15909 else
15910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15911 /* end confdefs.h. */
15912 int i;
15913 int
15914 main ()
15915 {
15916
15917 ;
15918 return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_link "$LINENO"; then :
15922 eval $cacheid=yes
15923 else
15924 eval $cacheid=no
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928 fi
15929
15930
15931 CFLAGS="$xorg_testset_save_CFLAGS"
15932
15933 eval supported=\$$cacheid
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
15935 $as_echo "$supported" >&6; }
15936 if test "$supported" = "yes" ; then
15937 BASE_CFLAGS="$BASE_CFLAGS -Wmain"
15938 found="yes"
15939 fi
15940 fi
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956 xorg_testset_save_CFLAGS="$CFLAGS"
15957
15958 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
15959 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
15961 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
15962 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
15963 $as_echo_n "(cached) " >&6
15964 else
15965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15966 /* end confdefs.h. */
15967 int i;
15968 _ACEOF
15969 if ac_fn_c_try_compile "$LINENO"; then :
15970 xorg_cv_cc_flag_unknown_warning_option=yes
15971 else
15972 xorg_cv_cc_flag_unknown_warning_option=no
15973 fi
15974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15975 fi
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
15977 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
15978 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
15979 CFLAGS="$xorg_testset_save_CFLAGS"
15980 fi
15981
15982 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
15983 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
15984 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
15985 fi
15986 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
15988 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
15989 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
15990 $as_echo_n "(cached) " >&6
15991 else
15992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15993 /* end confdefs.h. */
15994 int i;
15995 _ACEOF
15996 if ac_fn_c_try_compile "$LINENO"; then :
15997 xorg_cv_cc_flag_unused_command_line_argument=yes
15998 else
15999 xorg_cv_cc_flag_unused_command_line_argument=no
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16002 fi
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16004 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16005 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16006 CFLAGS="$xorg_testset_save_CFLAGS"
16007 fi
16008
16009 found="no"
16010
16011 if test $found = "no" ; then
16012 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16013 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16014 fi
16015
16016 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16017 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16018 fi
16019
16020 CFLAGS="$CFLAGS -Wmissing-braces"
16021
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wmissing-braces" >&5
16023 $as_echo_n "checking if $CC supports -Wmissing-braces... " >&6; }
16024 cacheid=xorg_cv_cc_flag__Wmissing_braces
16025 if eval \${$cacheid+:} false; then :
16026 $as_echo_n "(cached) " >&6
16027 else
16028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16029 /* end confdefs.h. */
16030 int i;
16031 int
16032 main ()
16033 {
16034
16035 ;
16036 return 0;
16037 }
16038 _ACEOF
16039 if ac_fn_c_try_link "$LINENO"; then :
16040 eval $cacheid=yes
16041 else
16042 eval $cacheid=no
16043 fi
16044 rm -f core conftest.err conftest.$ac_objext \
16045 conftest$ac_exeext conftest.$ac_ext
16046 fi
16047
16048
16049 CFLAGS="$xorg_testset_save_CFLAGS"
16050
16051 eval supported=\$$cacheid
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16053 $as_echo "$supported" >&6; }
16054 if test "$supported" = "yes" ; then
16055 BASE_CFLAGS="$BASE_CFLAGS -Wmissing-braces"
16056 found="yes"
16057 fi
16058 fi
16059
16060
16061
16062
16063
16064
16065
16066
16067
16068
16069
16070
16071
16072
16073
16074 xorg_testset_save_CFLAGS="$CFLAGS"
16075
16076 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16077 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16079 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16080 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16081 $as_echo_n "(cached) " >&6
16082 else
16083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16084 /* end confdefs.h. */
16085 int i;
16086 _ACEOF
16087 if ac_fn_c_try_compile "$LINENO"; then :
16088 xorg_cv_cc_flag_unknown_warning_option=yes
16089 else
16090 xorg_cv_cc_flag_unknown_warning_option=no
16091 fi
16092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16095 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16096 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16097 CFLAGS="$xorg_testset_save_CFLAGS"
16098 fi
16099
16100 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16101 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16102 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16103 fi
16104 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16106 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16107 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16108 $as_echo_n "(cached) " >&6
16109 else
16110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16111 /* end confdefs.h. */
16112 int i;
16113 _ACEOF
16114 if ac_fn_c_try_compile "$LINENO"; then :
16115 xorg_cv_cc_flag_unused_command_line_argument=yes
16116 else
16117 xorg_cv_cc_flag_unused_command_line_argument=no
16118 fi
16119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16120 fi
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16122 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16123 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16124 CFLAGS="$xorg_testset_save_CFLAGS"
16125 fi
16126
16127 found="no"
16128
16129 if test $found = "no" ; then
16130 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16131 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16132 fi
16133
16134 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16135 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16136 fi
16137
16138 CFLAGS="$CFLAGS -Wsequence-point"
16139
16140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wsequence-point" >&5
16141 $as_echo_n "checking if $CC supports -Wsequence-point... " >&6; }
16142 cacheid=xorg_cv_cc_flag__Wsequence_point
16143 if eval \${$cacheid+:} false; then :
16144 $as_echo_n "(cached) " >&6
16145 else
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16148 int i;
16149 int
16150 main ()
16151 {
16152
16153 ;
16154 return 0;
16155 }
16156 _ACEOF
16157 if ac_fn_c_try_link "$LINENO"; then :
16158 eval $cacheid=yes
16159 else
16160 eval $cacheid=no
16161 fi
16162 rm -f core conftest.err conftest.$ac_objext \
16163 conftest$ac_exeext conftest.$ac_ext
16164 fi
16165
16166
16167 CFLAGS="$xorg_testset_save_CFLAGS"
16168
16169 eval supported=\$$cacheid
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16171 $as_echo "$supported" >&6; }
16172 if test "$supported" = "yes" ; then
16173 BASE_CFLAGS="$BASE_CFLAGS -Wsequence-point"
16174 found="yes"
16175 fi
16176 fi
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187
16188
16189
16190
16191
16192 xorg_testset_save_CFLAGS="$CFLAGS"
16193
16194 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16195 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16197 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16198 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16202 /* end confdefs.h. */
16203 int i;
16204 _ACEOF
16205 if ac_fn_c_try_compile "$LINENO"; then :
16206 xorg_cv_cc_flag_unknown_warning_option=yes
16207 else
16208 xorg_cv_cc_flag_unknown_warning_option=no
16209 fi
16210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 fi
16212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16213 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16214 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16215 CFLAGS="$xorg_testset_save_CFLAGS"
16216 fi
16217
16218 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16219 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16220 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16221 fi
16222 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16224 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16225 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16226 $as_echo_n "(cached) " >&6
16227 else
16228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16229 /* end confdefs.h. */
16230 int i;
16231 _ACEOF
16232 if ac_fn_c_try_compile "$LINENO"; then :
16233 xorg_cv_cc_flag_unused_command_line_argument=yes
16234 else
16235 xorg_cv_cc_flag_unused_command_line_argument=no
16236 fi
16237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16238 fi
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16240 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16241 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16242 CFLAGS="$xorg_testset_save_CFLAGS"
16243 fi
16244
16245 found="no"
16246
16247 if test $found = "no" ; then
16248 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16249 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16250 fi
16251
16252 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16253 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16254 fi
16255
16256 CFLAGS="$CFLAGS -Wreturn-type"
16257
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wreturn-type" >&5
16259 $as_echo_n "checking if $CC supports -Wreturn-type... " >&6; }
16260 cacheid=xorg_cv_cc_flag__Wreturn_type
16261 if eval \${$cacheid+:} false; then :
16262 $as_echo_n "(cached) " >&6
16263 else
16264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16265 /* end confdefs.h. */
16266 int i;
16267 int
16268 main ()
16269 {
16270
16271 ;
16272 return 0;
16273 }
16274 _ACEOF
16275 if ac_fn_c_try_link "$LINENO"; then :
16276 eval $cacheid=yes
16277 else
16278 eval $cacheid=no
16279 fi
16280 rm -f core conftest.err conftest.$ac_objext \
16281 conftest$ac_exeext conftest.$ac_ext
16282 fi
16283
16284
16285 CFLAGS="$xorg_testset_save_CFLAGS"
16286
16287 eval supported=\$$cacheid
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16289 $as_echo "$supported" >&6; }
16290 if test "$supported" = "yes" ; then
16291 BASE_CFLAGS="$BASE_CFLAGS -Wreturn-type"
16292 found="yes"
16293 fi
16294 fi
16295
16296
16297
16298
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310 xorg_testset_save_CFLAGS="$CFLAGS"
16311
16312 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16313 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16315 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16316 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16320 /* end confdefs.h. */
16321 int i;
16322 _ACEOF
16323 if ac_fn_c_try_compile "$LINENO"; then :
16324 xorg_cv_cc_flag_unknown_warning_option=yes
16325 else
16326 xorg_cv_cc_flag_unknown_warning_option=no
16327 fi
16328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16329 fi
16330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16331 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16332 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16333 CFLAGS="$xorg_testset_save_CFLAGS"
16334 fi
16335
16336 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16337 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16338 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16339 fi
16340 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16342 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16343 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16348 int i;
16349 _ACEOF
16350 if ac_fn_c_try_compile "$LINENO"; then :
16351 xorg_cv_cc_flag_unused_command_line_argument=yes
16352 else
16353 xorg_cv_cc_flag_unused_command_line_argument=no
16354 fi
16355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16356 fi
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16358 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16359 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16360 CFLAGS="$xorg_testset_save_CFLAGS"
16361 fi
16362
16363 found="no"
16364
16365 if test $found = "no" ; then
16366 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16368 fi
16369
16370 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16371 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16372 fi
16373
16374 CFLAGS="$CFLAGS -Wtrigraphs"
16375
16376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wtrigraphs" >&5
16377 $as_echo_n "checking if $CC supports -Wtrigraphs... " >&6; }
16378 cacheid=xorg_cv_cc_flag__Wtrigraphs
16379 if eval \${$cacheid+:} false; then :
16380 $as_echo_n "(cached) " >&6
16381 else
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16384 int i;
16385 int
16386 main ()
16387 {
16388
16389 ;
16390 return 0;
16391 }
16392 _ACEOF
16393 if ac_fn_c_try_link "$LINENO"; then :
16394 eval $cacheid=yes
16395 else
16396 eval $cacheid=no
16397 fi
16398 rm -f core conftest.err conftest.$ac_objext \
16399 conftest$ac_exeext conftest.$ac_ext
16400 fi
16401
16402
16403 CFLAGS="$xorg_testset_save_CFLAGS"
16404
16405 eval supported=\$$cacheid
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16407 $as_echo "$supported" >&6; }
16408 if test "$supported" = "yes" ; then
16409 BASE_CFLAGS="$BASE_CFLAGS -Wtrigraphs"
16410 found="yes"
16411 fi
16412 fi
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426
16427
16428 xorg_testset_save_CFLAGS="$CFLAGS"
16429
16430 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16431 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16433 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16434 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16435 $as_echo_n "(cached) " >&6
16436 else
16437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16438 /* end confdefs.h. */
16439 int i;
16440 _ACEOF
16441 if ac_fn_c_try_compile "$LINENO"; then :
16442 xorg_cv_cc_flag_unknown_warning_option=yes
16443 else
16444 xorg_cv_cc_flag_unknown_warning_option=no
16445 fi
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16447 fi
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16449 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16450 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16451 CFLAGS="$xorg_testset_save_CFLAGS"
16452 fi
16453
16454 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16455 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16456 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16457 fi
16458 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16460 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16461 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16462 $as_echo_n "(cached) " >&6
16463 else
16464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16465 /* end confdefs.h. */
16466 int i;
16467 _ACEOF
16468 if ac_fn_c_try_compile "$LINENO"; then :
16469 xorg_cv_cc_flag_unused_command_line_argument=yes
16470 else
16471 xorg_cv_cc_flag_unused_command_line_argument=no
16472 fi
16473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16474 fi
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16476 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16477 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16478 CFLAGS="$xorg_testset_save_CFLAGS"
16479 fi
16480
16481 found="no"
16482
16483 if test $found = "no" ; then
16484 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16485 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16486 fi
16487
16488 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16489 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16490 fi
16491
16492 CFLAGS="$CFLAGS -Warray-bounds"
16493
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Warray-bounds" >&5
16495 $as_echo_n "checking if $CC supports -Warray-bounds... " >&6; }
16496 cacheid=xorg_cv_cc_flag__Warray_bounds
16497 if eval \${$cacheid+:} false; then :
16498 $as_echo_n "(cached) " >&6
16499 else
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16502 int i;
16503 int
16504 main ()
16505 {
16506
16507 ;
16508 return 0;
16509 }
16510 _ACEOF
16511 if ac_fn_c_try_link "$LINENO"; then :
16512 eval $cacheid=yes
16513 else
16514 eval $cacheid=no
16515 fi
16516 rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518 fi
16519
16520
16521 CFLAGS="$xorg_testset_save_CFLAGS"
16522
16523 eval supported=\$$cacheid
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16525 $as_echo "$supported" >&6; }
16526 if test "$supported" = "yes" ; then
16527 BASE_CFLAGS="$BASE_CFLAGS -Warray-bounds"
16528 found="yes"
16529 fi
16530 fi
16531
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541
16542
16543
16544
16545
16546 xorg_testset_save_CFLAGS="$CFLAGS"
16547
16548 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16549 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16551 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16552 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16553 $as_echo_n "(cached) " >&6
16554 else
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16557 int i;
16558 _ACEOF
16559 if ac_fn_c_try_compile "$LINENO"; then :
16560 xorg_cv_cc_flag_unknown_warning_option=yes
16561 else
16562 xorg_cv_cc_flag_unknown_warning_option=no
16563 fi
16564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16565 fi
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16567 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16568 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16569 CFLAGS="$xorg_testset_save_CFLAGS"
16570 fi
16571
16572 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16573 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16574 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16575 fi
16576 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16578 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16579 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16580 $as_echo_n "(cached) " >&6
16581 else
16582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16583 /* end confdefs.h. */
16584 int i;
16585 _ACEOF
16586 if ac_fn_c_try_compile "$LINENO"; then :
16587 xorg_cv_cc_flag_unused_command_line_argument=yes
16588 else
16589 xorg_cv_cc_flag_unused_command_line_argument=no
16590 fi
16591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16592 fi
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16594 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16595 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16596 CFLAGS="$xorg_testset_save_CFLAGS"
16597 fi
16598
16599 found="no"
16600
16601 if test $found = "no" ; then
16602 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16603 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16604 fi
16605
16606 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16607 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16608 fi
16609
16610 CFLAGS="$CFLAGS -Wwrite-strings"
16611
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wwrite-strings" >&5
16613 $as_echo_n "checking if $CC supports -Wwrite-strings... " >&6; }
16614 cacheid=xorg_cv_cc_flag__Wwrite_strings
16615 if eval \${$cacheid+:} false; then :
16616 $as_echo_n "(cached) " >&6
16617 else
16618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16619 /* end confdefs.h. */
16620 int i;
16621 int
16622 main ()
16623 {
16624
16625 ;
16626 return 0;
16627 }
16628 _ACEOF
16629 if ac_fn_c_try_link "$LINENO"; then :
16630 eval $cacheid=yes
16631 else
16632 eval $cacheid=no
16633 fi
16634 rm -f core conftest.err conftest.$ac_objext \
16635 conftest$ac_exeext conftest.$ac_ext
16636 fi
16637
16638
16639 CFLAGS="$xorg_testset_save_CFLAGS"
16640
16641 eval supported=\$$cacheid
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16643 $as_echo "$supported" >&6; }
16644 if test "$supported" = "yes" ; then
16645 BASE_CFLAGS="$BASE_CFLAGS -Wwrite-strings"
16646 found="yes"
16647 fi
16648 fi
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662
16663
16664 xorg_testset_save_CFLAGS="$CFLAGS"
16665
16666 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16667 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16669 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16670 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16671 $as_echo_n "(cached) " >&6
16672 else
16673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16674 /* end confdefs.h. */
16675 int i;
16676 _ACEOF
16677 if ac_fn_c_try_compile "$LINENO"; then :
16678 xorg_cv_cc_flag_unknown_warning_option=yes
16679 else
16680 xorg_cv_cc_flag_unknown_warning_option=no
16681 fi
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683 fi
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16685 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16686 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16687 CFLAGS="$xorg_testset_save_CFLAGS"
16688 fi
16689
16690 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16691 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16692 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16693 fi
16694 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16696 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16697 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16698 $as_echo_n "(cached) " >&6
16699 else
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16702 int i;
16703 _ACEOF
16704 if ac_fn_c_try_compile "$LINENO"; then :
16705 xorg_cv_cc_flag_unused_command_line_argument=yes
16706 else
16707 xorg_cv_cc_flag_unused_command_line_argument=no
16708 fi
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 fi
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16712 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16713 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16714 CFLAGS="$xorg_testset_save_CFLAGS"
16715 fi
16716
16717 found="no"
16718
16719 if test $found = "no" ; then
16720 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16721 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16722 fi
16723
16724 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16725 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16726 fi
16727
16728 CFLAGS="$CFLAGS -Waddress"
16729
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Waddress" >&5
16731 $as_echo_n "checking if $CC supports -Waddress... " >&6; }
16732 cacheid=xorg_cv_cc_flag__Waddress
16733 if eval \${$cacheid+:} false; then :
16734 $as_echo_n "(cached) " >&6
16735 else
16736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h. */
16738 int i;
16739 int
16740 main ()
16741 {
16742
16743 ;
16744 return 0;
16745 }
16746 _ACEOF
16747 if ac_fn_c_try_link "$LINENO"; then :
16748 eval $cacheid=yes
16749 else
16750 eval $cacheid=no
16751 fi
16752 rm -f core conftest.err conftest.$ac_objext \
16753 conftest$ac_exeext conftest.$ac_ext
16754 fi
16755
16756
16757 CFLAGS="$xorg_testset_save_CFLAGS"
16758
16759 eval supported=\$$cacheid
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16761 $as_echo "$supported" >&6; }
16762 if test "$supported" = "yes" ; then
16763 BASE_CFLAGS="$BASE_CFLAGS -Waddress"
16764 found="yes"
16765 fi
16766 fi
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782 xorg_testset_save_CFLAGS="$CFLAGS"
16783
16784 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16785 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16787 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16788 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16789 $as_echo_n "(cached) " >&6
16790 else
16791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16792 /* end confdefs.h. */
16793 int i;
16794 _ACEOF
16795 if ac_fn_c_try_compile "$LINENO"; then :
16796 xorg_cv_cc_flag_unknown_warning_option=yes
16797 else
16798 xorg_cv_cc_flag_unknown_warning_option=no
16799 fi
16800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16801 fi
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16803 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16804 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16805 CFLAGS="$xorg_testset_save_CFLAGS"
16806 fi
16807
16808 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16809 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16810 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16811 fi
16812 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16814 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16815 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16816 $as_echo_n "(cached) " >&6
16817 else
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16820 int i;
16821 _ACEOF
16822 if ac_fn_c_try_compile "$LINENO"; then :
16823 xorg_cv_cc_flag_unused_command_line_argument=yes
16824 else
16825 xorg_cv_cc_flag_unused_command_line_argument=no
16826 fi
16827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16828 fi
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16830 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16831 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16832 CFLAGS="$xorg_testset_save_CFLAGS"
16833 fi
16834
16835 found="no"
16836
16837 if test $found = "no" ; then
16838 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16839 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16840 fi
16841
16842 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16843 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16844 fi
16845
16846 CFLAGS="$CFLAGS -Wint-to-pointer-cast"
16847
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wint-to-pointer-cast" >&5
16849 $as_echo_n "checking if $CC supports -Wint-to-pointer-cast... " >&6; }
16850 cacheid=xorg_cv_cc_flag__Wint_to_pointer_cast
16851 if eval \${$cacheid+:} false; then :
16852 $as_echo_n "(cached) " >&6
16853 else
16854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16855 /* end confdefs.h. */
16856 int i;
16857 int
16858 main ()
16859 {
16860
16861 ;
16862 return 0;
16863 }
16864 _ACEOF
16865 if ac_fn_c_try_link "$LINENO"; then :
16866 eval $cacheid=yes
16867 else
16868 eval $cacheid=no
16869 fi
16870 rm -f core conftest.err conftest.$ac_objext \
16871 conftest$ac_exeext conftest.$ac_ext
16872 fi
16873
16874
16875 CFLAGS="$xorg_testset_save_CFLAGS"
16876
16877 eval supported=\$$cacheid
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16879 $as_echo "$supported" >&6; }
16880 if test "$supported" = "yes" ; then
16881 BASE_CFLAGS="$BASE_CFLAGS -Wint-to-pointer-cast"
16882 found="yes"
16883 fi
16884 fi
16885
16886
16887
16888
16889
16890
16891
16892
16893
16894
16895
16896
16897
16898
16899
16900 xorg_testset_save_CFLAGS="$CFLAGS"
16901
16902 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
16903 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
16905 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
16906 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
16907 $as_echo_n "(cached) " >&6
16908 else
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16911 int i;
16912 _ACEOF
16913 if ac_fn_c_try_compile "$LINENO"; then :
16914 xorg_cv_cc_flag_unknown_warning_option=yes
16915 else
16916 xorg_cv_cc_flag_unknown_warning_option=no
16917 fi
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 fi
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
16921 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
16922 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
16923 CFLAGS="$xorg_testset_save_CFLAGS"
16924 fi
16925
16926 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
16927 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
16928 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16929 fi
16930 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
16932 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
16933 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
16934 $as_echo_n "(cached) " >&6
16935 else
16936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16937 /* end confdefs.h. */
16938 int i;
16939 _ACEOF
16940 if ac_fn_c_try_compile "$LINENO"; then :
16941 xorg_cv_cc_flag_unused_command_line_argument=yes
16942 else
16943 xorg_cv_cc_flag_unused_command_line_argument=no
16944 fi
16945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 fi
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
16948 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
16949 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
16950 CFLAGS="$xorg_testset_save_CFLAGS"
16951 fi
16952
16953 found="no"
16954
16955 if test $found = "no" ; then
16956 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
16957 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
16958 fi
16959
16960 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
16961 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
16962 fi
16963
16964 CFLAGS="$CFLAGS -Wpointer-to-int-cast"
16965
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Wpointer-to-int-cast" >&5
16967 $as_echo_n "checking if $CC supports -Wpointer-to-int-cast... " >&6; }
16968 cacheid=xorg_cv_cc_flag__Wpointer_to_int_cast
16969 if eval \${$cacheid+:} false; then :
16970 $as_echo_n "(cached) " >&6
16971 else
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16974 int i;
16975 int
16976 main ()
16977 {
16978
16979 ;
16980 return 0;
16981 }
16982 _ACEOF
16983 if ac_fn_c_try_link "$LINENO"; then :
16984 eval $cacheid=yes
16985 else
16986 eval $cacheid=no
16987 fi
16988 rm -f core conftest.err conftest.$ac_objext \
16989 conftest$ac_exeext conftest.$ac_ext
16990 fi
16991
16992
16993 CFLAGS="$xorg_testset_save_CFLAGS"
16994
16995 eval supported=\$$cacheid
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
16997 $as_echo "$supported" >&6; }
16998 if test "$supported" = "yes" ; then
16999 BASE_CFLAGS="$BASE_CFLAGS -Wpointer-to-int-cast"
17000 found="yes"
17001 fi
17002 fi
17003
17004
17005 fi
17006
17007
17008
17009
17010
17011
17012
17013 CWARNFLAGS="$BASE_CFLAGS"
17014 if test "x$GCC" = xyes ; then
17015 CWARNFLAGS="$CWARNFLAGS -fno-strict-aliasing"
17016 fi
17017
17018
17019
17020
17021
17022
17023
17024
17025 # Check whether --enable-strict-compilation was given.
17026 if test "${enable_strict_compilation+set}" = set; then :
17027 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval
17028 else
17029 STRICT_COMPILE=no
17030 fi
17031
17032
17033
17034
17035
17036
17037 STRICT_CFLAGS=""
17038
17039
17040
17041
17042
17043
17044
17045
17046
17047
17048
17049
17050
17051 xorg_testset_save_CFLAGS="$CFLAGS"
17052
17053 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17054 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17056 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17057 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17058 $as_echo_n "(cached) " >&6
17059 else
17060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17061 /* end confdefs.h. */
17062 int i;
17063 _ACEOF
17064 if ac_fn_c_try_compile "$LINENO"; then :
17065 xorg_cv_cc_flag_unknown_warning_option=yes
17066 else
17067 xorg_cv_cc_flag_unknown_warning_option=no
17068 fi
17069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17070 fi
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17072 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17073 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17074 CFLAGS="$xorg_testset_save_CFLAGS"
17075 fi
17076
17077 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17078 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17079 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17080 fi
17081 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17083 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17084 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17085 $as_echo_n "(cached) " >&6
17086 else
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17089 int i;
17090 _ACEOF
17091 if ac_fn_c_try_compile "$LINENO"; then :
17092 xorg_cv_cc_flag_unused_command_line_argument=yes
17093 else
17094 xorg_cv_cc_flag_unused_command_line_argument=no
17095 fi
17096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17097 fi
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17099 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17100 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17101 CFLAGS="$xorg_testset_save_CFLAGS"
17102 fi
17103
17104 found="no"
17105
17106 if test $found = "no" ; then
17107 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17108 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17109 fi
17110
17111 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17112 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17113 fi
17114
17115 CFLAGS="$CFLAGS -pedantic"
17116
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -pedantic" >&5
17118 $as_echo_n "checking if $CC supports -pedantic... " >&6; }
17119 cacheid=xorg_cv_cc_flag__pedantic
17120 if eval \${$cacheid+:} false; then :
17121 $as_echo_n "(cached) " >&6
17122 else
17123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17124 /* end confdefs.h. */
17125 int i;
17126 int
17127 main ()
17128 {
17129
17130 ;
17131 return 0;
17132 }
17133 _ACEOF
17134 if ac_fn_c_try_link "$LINENO"; then :
17135 eval $cacheid=yes
17136 else
17137 eval $cacheid=no
17138 fi
17139 rm -f core conftest.err conftest.$ac_objext \
17140 conftest$ac_exeext conftest.$ac_ext
17141 fi
17142
17143
17144 CFLAGS="$xorg_testset_save_CFLAGS"
17145
17146 eval supported=\$$cacheid
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17148 $as_echo "$supported" >&6; }
17149 if test "$supported" = "yes" ; then
17150 STRICT_CFLAGS="$STRICT_CFLAGS -pedantic"
17151 found="yes"
17152 fi
17153 fi
17154
17155
17156
17157
17158
17159
17160
17161
17162
17163
17164
17165
17166
17167
17168
17169 xorg_testset_save_CFLAGS="$CFLAGS"
17170
17171 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17172 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17174 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17175 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17176 $as_echo_n "(cached) " >&6
17177 else
17178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17179 /* end confdefs.h. */
17180 int i;
17181 _ACEOF
17182 if ac_fn_c_try_compile "$LINENO"; then :
17183 xorg_cv_cc_flag_unknown_warning_option=yes
17184 else
17185 xorg_cv_cc_flag_unknown_warning_option=no
17186 fi
17187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17188 fi
17189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17190 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17191 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17192 CFLAGS="$xorg_testset_save_CFLAGS"
17193 fi
17194
17195 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17196 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17197 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17198 fi
17199 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17201 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17202 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17203 $as_echo_n "(cached) " >&6
17204 else
17205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17206 /* end confdefs.h. */
17207 int i;
17208 _ACEOF
17209 if ac_fn_c_try_compile "$LINENO"; then :
17210 xorg_cv_cc_flag_unused_command_line_argument=yes
17211 else
17212 xorg_cv_cc_flag_unused_command_line_argument=no
17213 fi
17214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17215 fi
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17217 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17218 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17219 CFLAGS="$xorg_testset_save_CFLAGS"
17220 fi
17221
17222 found="no"
17223
17224 if test $found = "no" ; then
17225 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17226 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17227 fi
17228
17229 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17230 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17231 fi
17232
17233 CFLAGS="$CFLAGS -Werror"
17234
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror" >&5
17236 $as_echo_n "checking if $CC supports -Werror... " >&6; }
17237 cacheid=xorg_cv_cc_flag__Werror
17238 if eval \${$cacheid+:} false; then :
17239 $as_echo_n "(cached) " >&6
17240 else
17241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17242 /* end confdefs.h. */
17243 int i;
17244 int
17245 main ()
17246 {
17247
17248 ;
17249 return 0;
17250 }
17251 _ACEOF
17252 if ac_fn_c_try_link "$LINENO"; then :
17253 eval $cacheid=yes
17254 else
17255 eval $cacheid=no
17256 fi
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 fi
17260
17261
17262 CFLAGS="$xorg_testset_save_CFLAGS"
17263
17264 eval supported=\$$cacheid
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17266 $as_echo "$supported" >&6; }
17267 if test "$supported" = "yes" ; then
17268 STRICT_CFLAGS="$STRICT_CFLAGS -Werror"
17269 found="yes"
17270 fi
17271 fi
17272
17273 if test $found = "no" ; then
17274 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17275 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17276 fi
17277
17278 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17279 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17280 fi
17281
17282 CFLAGS="$CFLAGS -errwarn"
17283
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -errwarn" >&5
17285 $as_echo_n "checking if $CC supports -errwarn... " >&6; }
17286 cacheid=xorg_cv_cc_flag__errwarn
17287 if eval \${$cacheid+:} false; then :
17288 $as_echo_n "(cached) " >&6
17289 else
17290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17291 /* end confdefs.h. */
17292 int i;
17293 int
17294 main ()
17295 {
17296
17297 ;
17298 return 0;
17299 }
17300 _ACEOF
17301 if ac_fn_c_try_link "$LINENO"; then :
17302 eval $cacheid=yes
17303 else
17304 eval $cacheid=no
17305 fi
17306 rm -f core conftest.err conftest.$ac_objext \
17307 conftest$ac_exeext conftest.$ac_ext
17308 fi
17309
17310
17311 CFLAGS="$xorg_testset_save_CFLAGS"
17312
17313 eval supported=\$$cacheid
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17315 $as_echo "$supported" >&6; }
17316 if test "$supported" = "yes" ; then
17317 STRICT_CFLAGS="$STRICT_CFLAGS -errwarn"
17318 found="yes"
17319 fi
17320 fi
17321
17322
17323
17324 # Earlier versions of gcc (eg: 4.2) support -Werror=attributes, but do not
17325 # activate it with -Werror, so we add it here explicitly.
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339 xorg_testset_save_CFLAGS="$CFLAGS"
17340
17341 if test "x$xorg_testset_cc_unknown_warning_option" = "x" ; then
17342 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unknown-warning-option" >&5
17344 $as_echo_n "checking if $CC supports -Werror=unknown-warning-option... " >&6; }
17345 if ${xorg_cv_cc_flag_unknown_warning_option+:} false; then :
17346 $as_echo_n "(cached) " >&6
17347 else
17348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17349 /* end confdefs.h. */
17350 int i;
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"; then :
17353 xorg_cv_cc_flag_unknown_warning_option=yes
17354 else
17355 xorg_cv_cc_flag_unknown_warning_option=no
17356 fi
17357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17358 fi
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unknown_warning_option" >&5
17360 $as_echo "$xorg_cv_cc_flag_unknown_warning_option" >&6; }
17361 xorg_testset_cc_unknown_warning_option=$xorg_cv_cc_flag_unknown_warning_option
17362 CFLAGS="$xorg_testset_save_CFLAGS"
17363 fi
17364
17365 if test "x$xorg_testset_cc_unused_command_line_argument" = "x" ; then
17366 if test "x$xorg_testset_cc_unknown_warning_option" = "xyes" ; then
17367 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17368 fi
17369 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=unused-command-line-argument" >&5
17371 $as_echo_n "checking if $CC supports -Werror=unused-command-line-argument... " >&6; }
17372 if ${xorg_cv_cc_flag_unused_command_line_argument+:} false; then :
17373 $as_echo_n "(cached) " >&6
17374 else
17375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17376 /* end confdefs.h. */
17377 int i;
17378 _ACEOF
17379 if ac_fn_c_try_compile "$LINENO"; then :
17380 xorg_cv_cc_flag_unused_command_line_argument=yes
17381 else
17382 xorg_cv_cc_flag_unused_command_line_argument=no
17383 fi
17384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17385 fi
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xorg_cv_cc_flag_unused_command_line_argument" >&5
17387 $as_echo "$xorg_cv_cc_flag_unused_command_line_argument" >&6; }
17388 xorg_testset_cc_unused_command_line_argument=$xorg_cv_cc_flag_unused_command_line_argument
17389 CFLAGS="$xorg_testset_save_CFLAGS"
17390 fi
17391
17392 found="no"
17393
17394 if test $found = "no" ; then
17395 if test "x$xorg_testset_unknown_warning_option" = "xyes" ; then
17396 CFLAGS="$CFLAGS -Werror=unknown-warning-option"
17397 fi
17398
17399 if test "x$xorg_testset_unused_command_line_argument" = "xyes" ; then
17400 CFLAGS="$CFLAGS -Werror=unused-command-line-argument"
17401 fi
17402
17403 CFLAGS="$CFLAGS -Werror=attributes"
17404
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5
17406 $as_echo_n "checking if $CC supports -Werror=attributes... " >&6; }
17407 cacheid=`$as_echo "xorg_cv_cc_flag_-Werror=attributes" | $as_tr_sh`
17408 if eval \${$cacheid+:} false; then :
17409 $as_echo_n "(cached) " >&6
17410 else
17411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17412 /* end confdefs.h. */
17413 int i;
17414 int
17415 main ()
17416 {
17417
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 if ac_fn_c_try_link "$LINENO"; then :
17423 eval $cacheid=yes
17424 else
17425 eval $cacheid=no
17426 fi
17427 rm -f core conftest.err conftest.$ac_objext \
17428 conftest$ac_exeext conftest.$ac_ext
17429 fi
17430
17431
17432 CFLAGS="$xorg_testset_save_CFLAGS"
17433
17434 eval supported=\$$cacheid
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supported" >&5
17436 $as_echo "$supported" >&6; }
17437 if test "$supported" = "yes" ; then
17438 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes"
17439 found="yes"
17440 fi
17441 fi
17442
17443
17444
17445 if test "x$STRICT_COMPILE" = "xyes"; then
17446 BASE_CFLAGS="$BASE_CFLAGS $STRICT_CFLAGS"
17447 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS"
17448 fi
17449
17450
17451
17452
17453
17454
17455 cat >>confdefs.h <<_ACEOF
17456 #define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1`
17457 _ACEOF
17458
17459 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1`
17460 if test "x$PVM" = "x"; then
17461 PVM="0"
17462 fi
17463
17464 cat >>confdefs.h <<_ACEOF
17465 #define PACKAGE_VERSION_MINOR $PVM
17466 _ACEOF
17467
17468 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1`
17469 if test "x$PVP" = "x"; then
17470 PVP="0"
17471 fi
17472
17473 cat >>confdefs.h <<_ACEOF
17474 #define PACKAGE_VERSION_PATCHLEVEL $PVP
17475 _ACEOF
17476
17477
17478
17479 CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \
17480 mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \
17481 || (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \
17482 echo 'git directory not found: installing possibly empty changelog.' >&2)"
17483
17484
17485
17486
17487 macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros`
17488 INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \
17489 mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \
17490 || (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \
17491 echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)"
17492
17493
17494
17495
17496
17497
17498 if test x$APP_MAN_SUFFIX = x ; then
17499 APP_MAN_SUFFIX=1
17500 fi
17501 if test x$APP_MAN_DIR = x ; then
17502 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)'
17503 fi
17504
17505 if test x$LIB_MAN_SUFFIX = x ; then
17506 LIB_MAN_SUFFIX=3
17507 fi
17508 if test x$LIB_MAN_DIR = x ; then
17509 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)'
17510 fi
17511
17512 if test x$FILE_MAN_SUFFIX = x ; then
17513 case $host_os in
17514 solaris*) FILE_MAN_SUFFIX=4 ;;
17515 *) FILE_MAN_SUFFIX=5 ;;
17516 esac
17517 fi
17518 if test x$FILE_MAN_DIR = x ; then
17519 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)'
17520 fi
17521
17522 if test x$MISC_MAN_SUFFIX = x ; then
17523 case $host_os in
17524 solaris*) MISC_MAN_SUFFIX=5 ;;
17525 *) MISC_MAN_SUFFIX=7 ;;
17526 esac
17527 fi
17528 if test x$MISC_MAN_DIR = x ; then
17529 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)'
17530 fi
17531
17532 if test x$DRIVER_MAN_SUFFIX = x ; then
17533 case $host_os in
17534 solaris*) DRIVER_MAN_SUFFIX=7 ;;
17535 *) DRIVER_MAN_SUFFIX=4 ;;
17536 esac
17537 fi
17538 if test x$DRIVER_MAN_DIR = x ; then
17539 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)'
17540 fi
17541
17542 if test x$ADMIN_MAN_SUFFIX = x ; then
17543 case $host_os in
17544 solaris*) ADMIN_MAN_SUFFIX=1m ;;
17545 *) ADMIN_MAN_SUFFIX=8 ;;
17546 esac
17547 fi
17548 if test x$ADMIN_MAN_DIR = x ; then
17549 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)'
17550 fi
17551
17552
17553
17554
17555
17556
17557
17558
17559
17560
17561
17562
17563
17564
17565
17566 XORG_MAN_PAGE="X Version 11"
17567
17568 MAN_SUBSTS="\
17569 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17570 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \
17571 -e 's|__xservername__|Xorg|g' \
17572 -e 's|__xconfigfile__|xorg.conf|g' \
17573 -e 's|__projectroot__|\$(prefix)|g' \
17574 -e 's|__apploaddir__|\$(appdefaultdir)|g' \
17575 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \
17576 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \
17577 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \
17578 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \
17579 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \
17580 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'"
17581
17582
17583
17584 # Check whether --enable-silent-rules was given.
17585 if test "${enable_silent_rules+set}" = set; then :
17586 enableval=$enable_silent_rules;
17587 fi
17588
17589 case $enable_silent_rules in
17590 yes) AM_DEFAULT_VERBOSITY=0;;
17591 no) AM_DEFAULT_VERBOSITY=1;;
17592 *) AM_DEFAULT_VERBOSITY=0;;
17593 esac
17594 AM_BACKSLASH='\'
17595
17596
17597
17598 # Require X.Org's font util macros 1.1 or later for XORG_FONTROOTDIR
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for root directory for font files" >&5
17614 $as_echo_n "checking for root directory for font files... " >&6; }
17615
17616 # Check whether --with-fontrootdir was given.
17617 if test "${with_fontrootdir+set}" = set; then :
17618 withval=$with_fontrootdir; FONTROOTDIR="$withval"
17619 fi
17620
17621 # if --with-fontrootdir not specified...
17622 if test "x${FONTROOTDIR}" = "x"; then
17623 FONTROOTDIR=`$PKG_CONFIG --variable=fontrootdir fontutil`
17624 fi
17625 # ...and if pkg-config didn't find fontdir in fontutil.pc...
17626 if test "x${FONTROOTDIR}" = "x"; then
17627 FONTROOTDIR="${datadir}/fonts/X11"
17628 fi
17629
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${FONTROOTDIR}" >&5
17631 $as_echo "${FONTROOTDIR}" >&6; }
17632
17633
17634
17635
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for directory for encodings files" >&5
17637 $as_echo_n "checking for directory for encodings files... " >&6; }
17638
17639 # Check whether --with-encodingsdir was given.
17640 if test "${with_encodingsdir+set}" = set; then :
17641 withval=$with_encodingsdir; ENCODINGSDIR="${withval}"
17642 else
17643 ENCODINGSDIR='${FONTROOTDIR}/encodings'
17644 fi
17645
17646
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ENCODINGSDIR}" >&5
17648 $as_echo "${ENCODINGSDIR}" >&6; }
17649
17650
17651 # zlib
17652 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17653 if test "x$ac_cv_header_zlib_h" = xyes; then :
17654
17655 else
17656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17657 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17658 as_fn_error $? "zlib.h is required to compile libfontenc
17659 See \`config.log' for more details" "$LINENO" 5; }
17660 fi
17661
17662
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzclose in -lz" >&5
17664 $as_echo_n "checking for gzclose in -lz... " >&6; }
17665 if ${ac_cv_lib_z_gzclose+:} false; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 ac_check_lib_save_LIBS=$LIBS
17669 LIBS="-lz $LIBS"
17670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17671 /* end confdefs.h. */
17672
17673 /* Override any GCC internal prototype to avoid an error.
17674 Use char because int might match the return type of a GCC
17675 builtin and then its argument prototype would still apply. */
17676 #ifdef __cplusplus
17677 extern "C"
17678 #endif
17679 char gzclose ();
17680 int
17681 main ()
17682 {
17683 return gzclose ();
17684 ;
17685 return 0;
17686 }
17687 _ACEOF
17688 if ac_fn_c_try_link "$LINENO"; then :
17689 ac_cv_lib_z_gzclose=yes
17690 else
17691 ac_cv_lib_z_gzclose=no
17692 fi
17693 rm -f core conftest.err conftest.$ac_objext \
17694 conftest$ac_exeext conftest.$ac_ext
17695 LIBS=$ac_check_lib_save_LIBS
17696 fi
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzclose" >&5
17698 $as_echo "$ac_cv_lib_z_gzclose" >&6; }
17699 if test "x$ac_cv_lib_z_gzclose" = xyes; then :
17700 cat >>confdefs.h <<_ACEOF
17701 #define HAVE_LIBZ 1
17702 _ACEOF
17703
17704 LIBS="-lz $LIBS"
17705
17706 else
17707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17709 as_fn_error $? "zlib is required to compile libfontenc
17710 See \`config.log' for more details" "$LINENO" 5; }
17711 fi
17712
17713
17714 # Obtain compiler/linker options for depedencies
17715
17716 pkg_failed=no
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTENC" >&5
17718 $as_echo_n "checking for FONTENC... " >&6; }
17719
17720 if test -n "$FONTENC_CFLAGS"; then
17721 pkg_cv_FONTENC_CFLAGS="$FONTENC_CFLAGS"
17722 elif test -n "$PKG_CONFIG"; then
17723 if test -n "$PKG_CONFIG" && \
17724 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
17725 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
17726 ac_status=$?
17727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17728 test $ac_status = 0; }; then
17729 pkg_cv_FONTENC_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null`
17730 else
17731 pkg_failed=yes
17732 fi
17733 else
17734 pkg_failed=untried
17735 fi
17736 if test -n "$FONTENC_LIBS"; then
17737 pkg_cv_FONTENC_LIBS="$FONTENC_LIBS"
17738 elif test -n "$PKG_CONFIG"; then
17739 if test -n "$PKG_CONFIG" && \
17740 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5
17741 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5
17742 ac_status=$?
17743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17744 test $ac_status = 0; }; then
17745 pkg_cv_FONTENC_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null`
17746 else
17747 pkg_failed=yes
17748 fi
17749 else
17750 pkg_failed=untried
17751 fi
17752
17753
17754
17755 if test $pkg_failed = yes; then
17756
17757 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
17758 _pkg_short_errors_supported=yes
17759 else
17760 _pkg_short_errors_supported=no
17761 fi
17762 if test $_pkg_short_errors_supported = yes; then
17763 FONTENC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1`
17764 else
17765 FONTENC_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1`
17766 fi
17767 # Put the nasty error message in config.log where it belongs
17768 echo "$FONTENC_PKG_ERRORS" >&5
17769
17770 as_fn_error $? "Package requirements (xproto) were not met:
17771
17772 $FONTENC_PKG_ERRORS
17773
17774 Consider adjusting the PKG_CONFIG_PATH environment variable if you
17775 installed software in a non-standard prefix.
17776
17777 Alternatively, you may set the environment variables FONTENC_CFLAGS
17778 and FONTENC_LIBS to avoid the need to call pkg-config.
17779 See the pkg-config man page for more details.
17780 " "$LINENO" 5
17781 elif test $pkg_failed = untried; then
17782 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17784 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
17785 is in your PATH or set the PKG_CONFIG environment variable to the full
17786 path to pkg-config.
17787
17788 Alternatively, you may set the environment variables FONTENC_CFLAGS
17789 and FONTENC_LIBS to avoid the need to call pkg-config.
17790 See the pkg-config man page for more details.
17791
17792 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
17793 See \`config.log' for more details" "$LINENO" 5; }
17794 else
17795 FONTENC_CFLAGS=$pkg_cv_FONTENC_CFLAGS
17796 FONTENC_LIBS=$pkg_cv_FONTENC_LIBS
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17798 $as_echo "yes" >&6; }
17799 :
17800 fi
17801
17802 # Allow checking code with lint, sparse, etc.
17803
17804
17805
17806
17807
17808 # Check whether --with-lint was given.
17809 if test "${with_lint+set}" = set; then :
17810 withval=$with_lint; use_lint=$withval
17811 else
17812 use_lint=no
17813 fi
17814
17815
17816 # Obtain platform specific info like program name and options
17817 # The lint program on FreeBSD and NetBSD is different from the one on Solaris
17818 case $host_os in
17819 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*)
17820 lint_name=splint
17821 lint_options="-badflag"
17822 ;;
17823 *freebsd* | *netbsd*)
17824 lint_name=lint
17825 lint_options="-u -b"
17826 ;;
17827 *solaris*)
17828 lint_name=lint
17829 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2"
17830 ;;
17831 esac
17832
17833 # Test for the presence of the program (either guessed by the code or spelled out by the user)
17834 if test "x$use_lint" = x"yes" ; then
17835 # Extract the first word of "$lint_name", so it can be a program name with args.
17836 set dummy $lint_name; ac_word=$2
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17838 $as_echo_n "checking for $ac_word... " >&6; }
17839 if ${ac_cv_path_LINT+:} false; then :
17840 $as_echo_n "(cached) " >&6
17841 else
17842 case $LINT in
17843 [\\/]* | ?:[\\/]*)
17844 ac_cv_path_LINT="$LINT" # Let the user override the test with a path.
17845 ;;
17846 *)
17847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17848 for as_dir in $PATH
17849 do
17850 IFS=$as_save_IFS
17851 test -z "$as_dir" && as_dir=.
17852 for ac_exec_ext in '' $ac_executable_extensions; do
17853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17854 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext"
17855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17856 break 2
17857 fi
17858 done
17859 done
17860 IFS=$as_save_IFS
17861
17862 ;;
17863 esac
17864 fi
17865 LINT=$ac_cv_path_LINT
17866 if test -n "$LINT"; then
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5
17868 $as_echo "$LINT" >&6; }
17869 else
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17871 $as_echo "no" >&6; }
17872 fi
17873
17874
17875 if test "x$LINT" = "x"; then
17876 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5
17877 fi
17878 elif test "x$use_lint" = x"no" ; then
17879 if test "x$LINT" != "x"; then
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5
17881 $as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;}
17882 fi
17883 else
17884 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5
17885 fi
17886
17887 # User supplied flags override default flags
17888 if test "x$LINT_FLAGS" != "x"; then
17889 lint_options=$LINT_FLAGS
17890 fi
17891
17892 LINT_FLAGS=$lint_options
17893
17894 if test "x$LINT" != x; then
17895 LINT_TRUE=
17896 LINT_FALSE='#'
17897 else
17898 LINT_TRUE='#'
17899 LINT_FALSE=
17900 fi
17901
17902
17903
17904 LINT_FLAGS="${LINT_FLAGS} ${FONTENC_CFLAGS}"
17905
17906 ac_config_files="$ac_config_files Makefile src/Makefile fontenc.pc"
17907
17908 cat >confcache <<\_ACEOF
17909 # This file is a shell script that caches the results of configure
17910 # tests run on this system so they can be shared between configure
17911 # scripts and configure runs, see configure's option --config-cache.
17912 # It is not useful on other systems. If it contains results you don't
17913 # want to keep, you may remove or edit it.
17914 #
17915 # config.status only pays attention to the cache file if you give it
17916 # the --recheck option to rerun configure.
17917 #
17918 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17919 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17920 # following values.
17921
17922 _ACEOF
17923
17924 # The following way of writing the cache mishandles newlines in values,
17925 # but we know of no workaround that is simple, portable, and efficient.
17926 # So, we kill variables containing newlines.
17927 # Ultrix sh set writes to stderr and can't be redirected directly,
17928 # and sets the high bit in the cache file unless we assign to the vars.
17929 (
17930 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17931 eval ac_val=\$$ac_var
17932 case $ac_val in #(
17933 *${as_nl}*)
17934 case $ac_var in #(
17935 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17936 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17937 esac
17938 case $ac_var in #(
17939 _ | IFS | as_nl) ;; #(
17940 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17941 *) { eval $ac_var=; unset $ac_var;} ;;
17942 esac ;;
17943 esac
17944 done
17945
17946 (set) 2>&1 |
17947 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17948 *${as_nl}ac_space=\ *)
17949 # `set' does not quote correctly, so add quotes: double-quote
17950 # substitution turns \\\\ into \\, and sed turns \\ into \.
17951 sed -n \
17952 "s/'/'\\\\''/g;
17953 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17954 ;; #(
17955 *)
17956 # `set' quotes correctly as required by POSIX, so do not add quotes.
17957 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17958 ;;
17959 esac |
17960 sort
17961 ) |
17962 sed '
17963 /^ac_cv_env_/b end
17964 t clear
17965 :clear
17966 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17967 t end
17968 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17969 :end' >>confcache
17970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17971 if test -w "$cache_file"; then
17972 if test "x$cache_file" != "x/dev/null"; then
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17974 $as_echo "$as_me: updating cache $cache_file" >&6;}
17975 if test ! -f "$cache_file" || test -h "$cache_file"; then
17976 cat confcache >"$cache_file"
17977 else
17978 case $cache_file in #(
17979 */* | ?:*)
17980 mv -f confcache "$cache_file"$$ &&
17981 mv -f "$cache_file"$$ "$cache_file" ;; #(
17982 *)
17983 mv -f confcache "$cache_file" ;;
17984 esac
17985 fi
17986 fi
17987 else
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17989 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17990 fi
17991 fi
17992 rm -f confcache
17993
17994 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17995 # Let make expand exec_prefix.
17996 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17997
17998 DEFS=-DHAVE_CONFIG_H
17999
18000 ac_libobjs=
18001 ac_ltlibobjs=
18002 U=
18003 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18004 # 1. Remove the extension, and $U if already installed.
18005 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18006 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18007 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18008 # will be set to the directory where LIBOBJS objects are built.
18009 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18010 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18011 done
18012 LIBOBJS=$ac_libobjs
18013
18014 LTLIBOBJS=$ac_ltlibobjs
18015
18016
18017 if test -n "$EXEEXT"; then
18018 am__EXEEXT_TRUE=
18019 am__EXEEXT_FALSE='#'
18020 else
18021 am__EXEEXT_TRUE='#'
18022 am__EXEEXT_FALSE=
18023 fi
18024
18025 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18026 as_fn_error $? "conditional \"AMDEP\" was never defined.
18027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18028 fi
18029 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18030 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
18031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18032 fi
18033 if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then
18034 as_fn_error $? "conditional \"LINT\" was never defined.
18035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
18036 fi
18037
18038 : "${CONFIG_STATUS=./config.status}"
18039 ac_write_fail=0
18040 ac_clean_files_save=$ac_clean_files
18041 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18043 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18044 as_write_fail=0
18045 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18046 #! $SHELL
18047 # Generated by $as_me.
18048 # Run this file to recreate the current configuration.
18049 # Compiler output produced by configure, useful for debugging
18050 # configure, is in config.log if it exists.
18051
18052 debug=false
18053 ac_cs_recheck=false
18054 ac_cs_silent=false
18055
18056 SHELL=\${CONFIG_SHELL-$SHELL}
18057 export SHELL
18058 _ASEOF
18059 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18060 ## -------------------- ##
18061 ## M4sh Initialization. ##
18062 ## -------------------- ##
18063
18064 # Be more Bourne compatible
18065 DUALCASE=1; export DUALCASE # for MKS sh
18066 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18067 emulate sh
18068 NULLCMD=:
18069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18070 # is contrary to our usage. Disable this feature.
18071 alias -g '${1+"$@"}'='"$@"'
18072 setopt NO_GLOB_SUBST
18073 else
18074 case `(set -o) 2>/dev/null` in #(
18075 *posix*) :
18076 set -o posix ;; #(
18077 *) :
18078 ;;
18079 esac
18080 fi
18081
18082
18083 as_nl='
18084 '
18085 export as_nl
18086 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18087 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18088 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18089 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18090 # Prefer a ksh shell builtin over an external printf program on Solaris,
18091 # but without wasting forks for bash or zsh.
18092 if test -z "$BASH_VERSION$ZSH_VERSION" \
18093 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18094 as_echo='print -r --'
18095 as_echo_n='print -rn --'
18096 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18097 as_echo='printf %s\n'
18098 as_echo_n='printf %s'
18099 else
18100 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18101 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18102 as_echo_n='/usr/ucb/echo -n'
18103 else
18104 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18105 as_echo_n_body='eval
18106 arg=$1;
18107 case $arg in #(
18108 *"$as_nl"*)
18109 expr "X$arg" : "X\\(.*\\)$as_nl";
18110 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18111 esac;
18112 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18113 '
18114 export as_echo_n_body
18115 as_echo_n='sh -c $as_echo_n_body as_echo'
18116 fi
18117 export as_echo_body
18118 as_echo='sh -c $as_echo_body as_echo'
18119 fi
18120
18121 # The user is always right.
18122 if test "${PATH_SEPARATOR+set}" != set; then
18123 PATH_SEPARATOR=:
18124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18126 PATH_SEPARATOR=';'
18127 }
18128 fi
18129
18130
18131 # IFS
18132 # We need space, tab and new line, in precisely that order. Quoting is
18133 # there to prevent editors from complaining about space-tab.
18134 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18135 # splitting by setting IFS to empty value.)
18136 IFS=" "" $as_nl"
18137
18138 # Find who we are. Look in the path if we contain no directory separator.
18139 as_myself=
18140 case $0 in #((
18141 *[\\/]* ) as_myself=$0 ;;
18142 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18143 for as_dir in $PATH
18144 do
18145 IFS=$as_save_IFS
18146 test -z "$as_dir" && as_dir=.
18147 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18148 done
18149 IFS=$as_save_IFS
18150
18151 ;;
18152 esac
18153 # We did not find ourselves, most probably we were run as `sh COMMAND'
18154 # in which case we are not to be found in the path.
18155 if test "x$as_myself" = x; then
18156 as_myself=$0
18157 fi
18158 if test ! -f "$as_myself"; then
18159 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18160 exit 1
18161 fi
18162
18163 # Unset variables that we do not need and which cause bugs (e.g. in
18164 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18165 # suppresses any "Segmentation fault" message there. '((' could
18166 # trigger a bug in pdksh 5.2.14.
18167 for as_var in BASH_ENV ENV MAIL MAILPATH
18168 do eval test x\${$as_var+set} = xset \
18169 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18170 done
18171 PS1='$ '
18172 PS2='> '
18173 PS4='+ '
18174
18175 # NLS nuisances.
18176 LC_ALL=C
18177 export LC_ALL
18178 LANGUAGE=C
18179 export LANGUAGE
18180
18181 # CDPATH.
18182 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18183
18184
18185 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18186 # ----------------------------------------
18187 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18188 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18189 # script with STATUS, using 1 if that was 0.
18190 as_fn_error ()
18191 {
18192 as_status=$1; test $as_status -eq 0 && as_status=1
18193 if test "$4"; then
18194 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18195 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18196 fi
18197 $as_echo "$as_me: error: $2" >&2
18198 as_fn_exit $as_status
18199 } # as_fn_error
18200
18201
18202 # as_fn_set_status STATUS
18203 # -----------------------
18204 # Set $? to STATUS, without forking.
18205 as_fn_set_status ()
18206 {
18207 return $1
18208 } # as_fn_set_status
18209
18210 # as_fn_exit STATUS
18211 # -----------------
18212 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18213 as_fn_exit ()
18214 {
18215 set +e
18216 as_fn_set_status $1
18217 exit $1
18218 } # as_fn_exit
18219
18220 # as_fn_unset VAR
18221 # ---------------
18222 # Portably unset VAR.
18223 as_fn_unset ()
18224 {
18225 { eval $1=; unset $1;}
18226 }
18227 as_unset=as_fn_unset
18228 # as_fn_append VAR VALUE
18229 # ----------------------
18230 # Append the text in VALUE to the end of the definition contained in VAR. Take
18231 # advantage of any shell optimizations that allow amortized linear growth over
18232 # repeated appends, instead of the typical quadratic growth present in naive
18233 # implementations.
18234 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18235 eval 'as_fn_append ()
18236 {
18237 eval $1+=\$2
18238 }'
18239 else
18240 as_fn_append ()
18241 {
18242 eval $1=\$$1\$2
18243 }
18244 fi # as_fn_append
18245
18246 # as_fn_arith ARG...
18247 # ------------------
18248 # Perform arithmetic evaluation on the ARGs, and store the result in the
18249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18250 # must be portable across $(()) and expr.
18251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18252 eval 'as_fn_arith ()
18253 {
18254 as_val=$(( $* ))
18255 }'
18256 else
18257 as_fn_arith ()
18258 {
18259 as_val=`expr "$@" || test $? -eq 1`
18260 }
18261 fi # as_fn_arith
18262
18263
18264 if expr a : '\(a\)' >/dev/null 2>&1 &&
18265 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18266 as_expr=expr
18267 else
18268 as_expr=false
18269 fi
18270
18271 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18272 as_basename=basename
18273 else
18274 as_basename=false
18275 fi
18276
18277 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18278 as_dirname=dirname
18279 else
18280 as_dirname=false
18281 fi
18282
18283 as_me=`$as_basename -- "$0" ||
18284 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18285 X"$0" : 'X\(//\)$' \| \
18286 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18287 $as_echo X/"$0" |
18288 sed '/^.*\/\([^/][^/]*\)\/*$/{
18289 s//\1/
18290 q
18291 }
18292 /^X\/\(\/\/\)$/{
18293 s//\1/
18294 q
18295 }
18296 /^X\/\(\/\).*/{
18297 s//\1/
18298 q
18299 }
18300 s/.*/./; q'`
18301
18302 # Avoid depending upon Character Ranges.
18303 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18304 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18305 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18306 as_cr_digits='0123456789'
18307 as_cr_alnum=$as_cr_Letters$as_cr_digits
18308
18309 ECHO_C= ECHO_N= ECHO_T=
18310 case `echo -n x` in #(((((
18311 -n*)
18312 case `echo 'xy\c'` in
18313 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18314 xy) ECHO_C='\c';;
18315 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18316 ECHO_T=' ';;
18317 esac;;
18318 *)
18319 ECHO_N='-n';;
18320 esac
18321
18322 rm -f conf$$ conf$$.exe conf$$.file
18323 if test -d conf$$.dir; then
18324 rm -f conf$$.dir/conf$$.file
18325 else
18326 rm -f conf$$.dir
18327 mkdir conf$$.dir 2>/dev/null
18328 fi
18329 if (echo >conf$$.file) 2>/dev/null; then
18330 if ln -s conf$$.file conf$$ 2>/dev/null; then
18331 as_ln_s='ln -s'
18332 # ... but there are two gotchas:
18333 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18334 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18335 # In both cases, we have to default to `cp -p'.
18336 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18337 as_ln_s='cp -p'
18338 elif ln conf$$.file conf$$ 2>/dev/null; then
18339 as_ln_s=ln
18340 else
18341 as_ln_s='cp -p'
18342 fi
18343 else
18344 as_ln_s='cp -p'
18345 fi
18346 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18347 rmdir conf$$.dir 2>/dev/null
18348
18349
18350 # as_fn_mkdir_p
18351 # -------------
18352 # Create "$as_dir" as a directory, including parents if necessary.
18353 as_fn_mkdir_p ()
18354 {
18355
18356 case $as_dir in #(
18357 -*) as_dir=./$as_dir;;
18358 esac
18359 test -d "$as_dir" || eval $as_mkdir_p || {
18360 as_dirs=
18361 while :; do
18362 case $as_dir in #(
18363 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18364 *) as_qdir=$as_dir;;
18365 esac
18366 as_dirs="'$as_qdir' $as_dirs"
18367 as_dir=`$as_dirname -- "$as_dir" ||
18368 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18369 X"$as_dir" : 'X\(//\)[^/]' \| \
18370 X"$as_dir" : 'X\(//\)$' \| \
18371 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18372 $as_echo X"$as_dir" |
18373 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18374 s//\1/
18375 q
18376 }
18377 /^X\(\/\/\)[^/].*/{
18378 s//\1/
18379 q
18380 }
18381 /^X\(\/\/\)$/{
18382 s//\1/
18383 q
18384 }
18385 /^X\(\/\).*/{
18386 s//\1/
18387 q
18388 }
18389 s/.*/./; q'`
18390 test -d "$as_dir" && break
18391 done
18392 test -z "$as_dirs" || eval "mkdir $as_dirs"
18393 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18394
18395
18396 } # as_fn_mkdir_p
18397 if mkdir -p . 2>/dev/null; then
18398 as_mkdir_p='mkdir -p "$as_dir"'
18399 else
18400 test -d ./-p && rmdir ./-p
18401 as_mkdir_p=false
18402 fi
18403
18404 if test -x / >/dev/null 2>&1; then
18405 as_test_x='test -x'
18406 else
18407 if ls -dL / >/dev/null 2>&1; then
18408 as_ls_L_option=L
18409 else
18410 as_ls_L_option=
18411 fi
18412 as_test_x='
18413 eval sh -c '\''
18414 if test -d "$1"; then
18415 test -d "$1/.";
18416 else
18417 case $1 in #(
18418 -*)set "./$1";;
18419 esac;
18420 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
18421 ???[sx]*):;;*)false;;esac;fi
18422 '\'' sh
18423 '
18424 fi
18425 as_executable_p=$as_test_x
18426
18427 # Sed expression to map a string onto a valid CPP name.
18428 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18429
18430 # Sed expression to map a string onto a valid variable name.
18431 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18432
18433
18434 exec 6>&1
18435 ## ----------------------------------- ##
18436 ## Main body of $CONFIG_STATUS script. ##
18437 ## ----------------------------------- ##
18438 _ASEOF
18439 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18440
18441 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18442 # Save the log message, to keep $0 and so on meaningful, and to
18443 # report actual input values of CONFIG_FILES etc. instead of their
18444 # values after options handling.
18445 ac_log="
18446 This file was extended by libfontenc $as_me 1.1.2, which was
18447 generated by GNU Autoconf 2.68. Invocation command line was
18448
18449 CONFIG_FILES = $CONFIG_FILES
18450 CONFIG_HEADERS = $CONFIG_HEADERS
18451 CONFIG_LINKS = $CONFIG_LINKS
18452 CONFIG_COMMANDS = $CONFIG_COMMANDS
18453 $ $0 $@
18454
18455 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18456 "
18457
18458 _ACEOF
18459
18460 case $ac_config_files in *"
18461 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18462 esac
18463
18464 case $ac_config_headers in *"
18465 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
18466 esac
18467
18468
18469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18470 # Files that config.status was made for.
18471 config_files="$ac_config_files"
18472 config_headers="$ac_config_headers"
18473 config_commands="$ac_config_commands"
18474
18475 _ACEOF
18476
18477 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18478 ac_cs_usage="\
18479 \`$as_me' instantiates files and other configuration actions
18480 from templates according to the current configuration. Unless the files
18481 and actions are specified as TAGs, all are instantiated by default.
18482
18483 Usage: $0 [OPTION]... [TAG]...
18484
18485 -h, --help print this help, then exit
18486 -V, --version print version number and configuration settings, then exit
18487 --config print configuration, then exit
18488 -q, --quiet, --silent
18489 do not print progress messages
18490 -d, --debug don't remove temporary files
18491 --recheck update $as_me by reconfiguring in the same conditions
18492 --file=FILE[:TEMPLATE]
18493 instantiate the configuration file FILE
18494 --header=FILE[:TEMPLATE]
18495 instantiate the configuration header FILE
18496
18497 Configuration files:
18498 $config_files
18499
18500 Configuration headers:
18501 $config_headers
18502
18503 Configuration commands:
18504 $config_commands
18505
18506 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>."
18507
18508 _ACEOF
18509 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18510 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18511 ac_cs_version="\\
18512 libfontenc config.status 1.1.2
18513 configured by $0, generated by GNU Autoconf 2.68,
18514 with options \\"\$ac_cs_config\\"
18515
18516 Copyright (C) 2010 Free Software Foundation, Inc.
18517 This config.status script is free software; the Free Software Foundation
18518 gives unlimited permission to copy, distribute and modify it."
18519
18520 ac_pwd='$ac_pwd'
18521 srcdir='$srcdir'
18522 INSTALL='$INSTALL'
18523 MKDIR_P='$MKDIR_P'
18524 AWK='$AWK'
18525 test -n "\$AWK" || AWK=awk
18526 _ACEOF
18527
18528 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18529 # The default lists apply if the user does not specify any file.
18530 ac_need_defaults=:
18531 while test $# != 0
18532 do
18533 case $1 in
18534 --*=?*)
18535 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18536 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18537 ac_shift=:
18538 ;;
18539 --*=)
18540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18541 ac_optarg=
18542 ac_shift=:
18543 ;;
18544 *)
18545 ac_option=$1
18546 ac_optarg=$2
18547 ac_shift=shift
18548 ;;
18549 esac
18550
18551 case $ac_option in
18552 # Handling of the options.
18553 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18554 ac_cs_recheck=: ;;
18555 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18556 $as_echo "$ac_cs_version"; exit ;;
18557 --config | --confi | --conf | --con | --co | --c )
18558 $as_echo "$ac_cs_config"; exit ;;
18559 --debug | --debu | --deb | --de | --d | -d )
18560 debug=: ;;
18561 --file | --fil | --fi | --f )
18562 $ac_shift
18563 case $ac_optarg in
18564 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18565 '') as_fn_error $? "missing file argument" ;;
18566 esac
18567 as_fn_append CONFIG_FILES " '$ac_optarg'"
18568 ac_need_defaults=false;;
18569 --header | --heade | --head | --hea )
18570 $ac_shift
18571 case $ac_optarg in
18572 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18573 esac
18574 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
18575 ac_need_defaults=false;;
18576 --he | --h)
18577 # Conflict between --help and --header
18578 as_fn_error $? "ambiguous option: \`$1'
18579 Try \`$0 --help' for more information.";;
18580 --help | --hel | -h )
18581 $as_echo "$ac_cs_usage"; exit ;;
18582 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18583 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18584 ac_cs_silent=: ;;
18585
18586 # This is an error.
18587 -*) as_fn_error $? "unrecognized option: \`$1'
18588 Try \`$0 --help' for more information." ;;
18589
18590 *) as_fn_append ac_config_targets " $1"
18591 ac_need_defaults=false ;;
18592
18593 esac
18594 shift
18595 done
18596
18597 ac_configure_extra_args=
18598
18599 if $ac_cs_silent; then
18600 exec 6>/dev/null
18601 ac_configure_extra_args="$ac_configure_extra_args --silent"
18602 fi
18603
18604 _ACEOF
18605 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18606 if \$ac_cs_recheck; then
18607 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18608 shift
18609 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18610 CONFIG_SHELL='$SHELL'
18611 export CONFIG_SHELL
18612 exec "\$@"
18613 fi
18614
18615 _ACEOF
18616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18617 exec 5>>config.log
18618 {
18619 echo
18620 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18621 ## Running $as_me. ##
18622 _ASBOX
18623 $as_echo "$ac_log"
18624 } >&5
18625
18626 _ACEOF
18627 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18628 #
18629 # INIT-COMMANDS
18630 #
18631 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18632
18633
18634 # The HP-UX ksh and POSIX shell print the target directory to stdout
18635 # if CDPATH is set.
18636 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18637
18638 sed_quote_subst='$sed_quote_subst'
18639 double_quote_subst='$double_quote_subst'
18640 delay_variable_subst='$delay_variable_subst'
18641 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18642 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18643 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18644 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18645 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18646 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18647 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18648 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18649 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
18650 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18651 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18652 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18653 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18654 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18655 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18656 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18657 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18658 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18659 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18660 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18661 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18662 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18663 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18664 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18665 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18666 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18667 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18668 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18669 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18670 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
18671 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
18672 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18673 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18674 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18675 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18676 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18677 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
18678 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
18679 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
18680 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
18681 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18682 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18683 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
18684 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18685 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18686 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18687 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18688 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18689 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18690 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18691 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18692 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18693 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18694 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18695 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18696 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18697 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"`'
18698 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
18699 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
18700 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18701 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18702 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18703 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18704 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18705 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18706 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18707 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18708 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
18709 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18710 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18711 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18712 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18713 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18714 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18715 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18716 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18717 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18718 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18719 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18720 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18721 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18722 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18723 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18724 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18725 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18726 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18727 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18728 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18729 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18730 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18731 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18732 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18733 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18734 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18735 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18736 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18737 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18738 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18739 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18740 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18741 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18742 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18743 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18744 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18745 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
18746 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18747 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18748 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18749 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18750 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18751 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18752 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18753 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18754 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18755 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18756 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18757 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18758 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18759 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18760 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18761 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18762 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18763 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18764 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18765 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18766 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18767 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18768 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18769 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18770 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18771
18772 LTCC='$LTCC'
18773 LTCFLAGS='$LTCFLAGS'
18774 compiler='$compiler_DEFAULT'
18775
18776 # A function that is used when there is no print builtin or printf.
18777 func_fallback_echo ()
18778 {
18779 eval 'cat <<_LTECHO_EOF
18780 \$1
18781 _LTECHO_EOF'
18782 }
18783
18784 # Quote evaled strings.
18785 for var in SHELL \
18786 ECHO \
18787 PATH_SEPARATOR \
18788 SED \
18789 GREP \
18790 EGREP \
18791 FGREP \
18792 LD \
18793 NM \
18794 LN_S \
18795 lt_SP2NL \
18796 lt_NL2SP \
18797 reload_flag \
18798 OBJDUMP \
18799 deplibs_check_method \
18800 file_magic_cmd \
18801 file_magic_glob \
18802 want_nocaseglob \
18803 DLLTOOL \
18804 sharedlib_from_linklib_cmd \
18805 AR \
18806 AR_FLAGS \
18807 archiver_list_spec \
18808 STRIP \
18809 RANLIB \
18810 CC \
18811 CFLAGS \
18812 compiler \
18813 lt_cv_sys_global_symbol_pipe \
18814 lt_cv_sys_global_symbol_to_cdecl \
18815 lt_cv_sys_global_symbol_to_c_name_address \
18816 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18817 nm_file_list_spec \
18818 lt_prog_compiler_no_builtin_flag \
18819 lt_prog_compiler_pic \
18820 lt_prog_compiler_wl \
18821 lt_prog_compiler_static \
18822 lt_cv_prog_compiler_c_o \
18823 need_locks \
18824 MANIFEST_TOOL \
18825 DSYMUTIL \
18826 NMEDIT \
18827 LIPO \
18828 OTOOL \
18829 OTOOL64 \
18830 shrext_cmds \
18831 export_dynamic_flag_spec \
18832 whole_archive_flag_spec \
18833 compiler_needs_object \
18834 with_gnu_ld \
18835 allow_undefined_flag \
18836 no_undefined_flag \
18837 hardcode_libdir_flag_spec \
18838 hardcode_libdir_separator \
18839 exclude_expsyms \
18840 include_expsyms \
18841 file_list_spec \
18842 variables_saved_for_relink \
18843 libname_spec \
18844 library_names_spec \
18845 soname_spec \
18846 install_override_mode \
18847 finish_eval \
18848 old_striplib \
18849 striplib; do
18850 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18851 *[\\\\\\\`\\"\\\$]*)
18852 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18853 ;;
18854 *)
18855 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18856 ;;
18857 esac
18858 done
18859
18860 # Double-quote double-evaled strings.
18861 for var in reload_cmds \
18862 old_postinstall_cmds \
18863 old_postuninstall_cmds \
18864 old_archive_cmds \
18865 extract_expsyms_cmds \
18866 old_archive_from_new_cmds \
18867 old_archive_from_expsyms_cmds \
18868 archive_cmds \
18869 archive_expsym_cmds \
18870 module_cmds \
18871 module_expsym_cmds \
18872 export_symbols_cmds \
18873 prelink_cmds \
18874 postlink_cmds \
18875 postinstall_cmds \
18876 postuninstall_cmds \
18877 finish_cmds \
18878 sys_lib_search_path_spec \
18879 sys_lib_dlsearch_path_spec; do
18880 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18881 *[\\\\\\\`\\"\\\$]*)
18882 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18883 ;;
18884 *)
18885 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18886 ;;
18887 esac
18888 done
18889
18890 ac_aux_dir='$ac_aux_dir'
18891 xsi_shell='$xsi_shell'
18892 lt_shell_append='$lt_shell_append'
18893
18894 # See if we are running on zsh, and set the options which allow our
18895 # commands through without removal of \ escapes INIT.
18896 if test -n "\${ZSH_VERSION+set}" ; then
18897 setopt NO_GLOB_SUBST
18898 fi
18899
18900
18901 PACKAGE='$PACKAGE'
18902 VERSION='$VERSION'
18903 TIMESTAMP='$TIMESTAMP'
18904 RM='$RM'
18905 ofile='$ofile'
18906
18907
18908
18909
18910 _ACEOF
18911
18912 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18913
18914 # Handling of arguments.
18915 for ac_config_target in $ac_config_targets
18916 do
18917 case $ac_config_target in
18918 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18919 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18920 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18921 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18922 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18923 "fontenc.pc") CONFIG_FILES="$CONFIG_FILES fontenc.pc" ;;
18924
18925 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18926 esac
18927 done
18928
18929
18930 # If the user did not use the arguments to specify the items to instantiate,
18931 # then the envvar interface is used. Set only those that are not.
18932 # We use the long form for the default assignment because of an extremely
18933 # bizarre bug on SunOS 4.1.3.
18934 if $ac_need_defaults; then
18935 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18936 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18937 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18938 fi
18939
18940 # Have a temporary directory for convenience. Make it in the build tree
18941 # simply because there is no reason against having it here, and in addition,
18942 # creating and moving files from /tmp can sometimes cause problems.
18943 # Hook for its removal unless debugging.
18944 # Note that there is a small window in which the directory will not be cleaned:
18945 # after its creation but before its name has been assigned to `$tmp'.
18946 $debug ||
18947 {
18948 tmp= ac_tmp=
18949 trap 'exit_status=$?
18950 : "${ac_tmp:=$tmp}"
18951 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18952 ' 0
18953 trap 'as_fn_exit 1' 1 2 13 15
18954 }
18955 # Create a (secure) tmp directory for tmp files.
18956
18957 {
18958 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18959 test -d "$tmp"
18960 } ||
18961 {
18962 tmp=./conf$$-$RANDOM
18963 (umask 077 && mkdir "$tmp")
18964 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18965 ac_tmp=$tmp
18966
18967 # Set up the scripts for CONFIG_FILES section.
18968 # No need to generate them if there are no CONFIG_FILES.
18969 # This happens for instance with `./config.status config.h'.
18970 if test -n "$CONFIG_FILES"; then
18971
18972
18973 ac_cr=`echo X | tr X '\015'`
18974 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18975 # But we know of no other shell where ac_cr would be empty at this
18976 # point, so we can use a bashism as a fallback.
18977 if test "x$ac_cr" = x; then
18978 eval ac_cr=\$\'\\r\'
18979 fi
18980 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18981 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18982 ac_cs_awk_cr='\\r'
18983 else
18984 ac_cs_awk_cr=$ac_cr
18985 fi
18986
18987 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18988 _ACEOF
18989
18990
18991 {
18992 echo "cat >conf$$subs.awk <<_ACEOF" &&
18993 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18994 echo "_ACEOF"
18995 } >conf$$subs.sh ||
18996 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18997 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18998 ac_delim='%!_!# '
18999 for ac_last_try in false false false false false :; do
19000 . ./conf$$subs.sh ||
19001 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19002
19003 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19004 if test $ac_delim_n = $ac_delim_num; then
19005 break
19006 elif $ac_last_try; then
19007 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19008 else
19009 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19010 fi
19011 done
19012 rm -f conf$$subs.sh
19013
19014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19016 _ACEOF
19017 sed -n '
19018 h
19019 s/^/S["/; s/!.*/"]=/
19020 p
19021 g
19022 s/^[^!]*!//
19023 :repl
19024 t repl
19025 s/'"$ac_delim"'$//
19026 t delim
19027 :nl
19028 h
19029 s/\(.\{148\}\)..*/\1/
19030 t more1
19031 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19032 p
19033 n
19034 b repl
19035 :more1
19036 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19037 p
19038 g
19039 s/.\{148\}//
19040 t nl
19041 :delim
19042 h
19043 s/\(.\{148\}\)..*/\1/
19044 t more2
19045 s/["\\]/\\&/g; s/^/"/; s/$/"/
19046 p
19047 b
19048 :more2
19049 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19050 p
19051 g
19052 s/.\{148\}//
19053 t delim
19054 ' <conf$$subs.awk | sed '
19055 /^[^""]/{
19056 N
19057 s/\n//
19058 }
19059 ' >>$CONFIG_STATUS || ac_write_fail=1
19060 rm -f conf$$subs.awk
19061 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19062 _ACAWK
19063 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19064 for (key in S) S_is_set[key] = 1
19065 FS = ""
19066
19067 }
19068 {
19069 line = $ 0
19070 nfields = split(line, field, "@")
19071 substed = 0
19072 len = length(field[1])
19073 for (i = 2; i < nfields; i++) {
19074 key = field[i]
19075 keylen = length(key)
19076 if (S_is_set[key]) {
19077 value = S[key]
19078 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19079 len += length(value) + length(field[++i])
19080 substed = 1
19081 } else
19082 len += 1 + keylen
19083 }
19084
19085 print line
19086 }
19087
19088 _ACAWK
19089 _ACEOF
19090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19091 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19092 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19093 else
19094 cat
19095 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19096 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19097 _ACEOF
19098
19099 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19100 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19101 # trailing colons and then remove the whole line if VPATH becomes empty
19102 # (actually we leave an empty line to preserve line numbers).
19103 if test "x$srcdir" = x.; then
19104 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19105 h
19106 s///
19107 s/^/:/
19108 s/[ ]*$/:/
19109 s/:\$(srcdir):/:/g
19110 s/:\${srcdir}:/:/g
19111 s/:@srcdir@:/:/g
19112 s/^:*//
19113 s/:*$//
19114 x
19115 s/\(=[ ]*\).*/\1/
19116 G
19117 s/\n//
19118 s/^[^=]*=[ ]*$//
19119 }'
19120 fi
19121
19122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19123 fi # test -n "$CONFIG_FILES"
19124
19125 # Set up the scripts for CONFIG_HEADERS section.
19126 # No need to generate them if there are no CONFIG_HEADERS.
19127 # This happens for instance with `./config.status Makefile'.
19128 if test -n "$CONFIG_HEADERS"; then
19129 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19130 BEGIN {
19131 _ACEOF
19132
19133 # Transform confdefs.h into an awk script `defines.awk', embedded as
19134 # here-document in config.status, that substitutes the proper values into
19135 # config.h.in to produce config.h.
19136
19137 # Create a delimiter string that does not exist in confdefs.h, to ease
19138 # handling of long lines.
19139 ac_delim='%!_!# '
19140 for ac_last_try in false false :; do
19141 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19142 if test -z "$ac_tt"; then
19143 break
19144 elif $ac_last_try; then
19145 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19146 else
19147 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19148 fi
19149 done
19150
19151 # For the awk script, D is an array of macro values keyed by name,
19152 # likewise P contains macro parameters if any. Preserve backslash
19153 # newline sequences.
19154
19155 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19156 sed -n '
19157 s/.\{148\}/&'"$ac_delim"'/g
19158 t rset
19159 :rset
19160 s/^[ ]*#[ ]*define[ ][ ]*/ /
19161 t def
19162 d
19163 :def
19164 s/\\$//
19165 t bsnl
19166 s/["\\]/\\&/g
19167 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19168 D["\1"]=" \3"/p
19169 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19170 d
19171 :bsnl
19172 s/["\\]/\\&/g
19173 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19174 D["\1"]=" \3\\\\\\n"\\/p
19175 t cont
19176 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19177 t cont
19178 d
19179 :cont
19180 n
19181 s/.\{148\}/&'"$ac_delim"'/g
19182 t clear
19183 :clear
19184 s/\\$//
19185 t bsnlc
19186 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19187 d
19188 :bsnlc
19189 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19190 b cont
19191 ' <confdefs.h | sed '
19192 s/'"$ac_delim"'/"\\\
19193 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19194
19195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19196 for (key in D) D_is_set[key] = 1
19197 FS = ""
19198 }
19199 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
19200 line = \$ 0
19201 split(line, arg, " ")
19202 if (arg[1] == "#") {
19203 defundef = arg[2]
19204 mac1 = arg[3]
19205 } else {
19206 defundef = substr(arg[1], 2)
19207 mac1 = arg[2]
19208 }
19209 split(mac1, mac2, "(") #)
19210 macro = mac2[1]
19211 prefix = substr(line, 1, index(line, defundef) - 1)
19212 if (D_is_set[macro]) {
19213 # Preserve the white space surrounding the "#".
19214 print prefix "define", macro P[macro] D[macro]
19215 next
19216 } else {
19217 # Replace #undef with comments. This is necessary, for example,
19218 # in the case of _POSIX_SOURCE, which is predefined and required
19219 # on some systems where configure will not decide to define it.
19220 if (defundef == "undef") {
19221 print "/*", prefix defundef, macro, "*/"
19222 next
19223 }
19224 }
19225 }
19226 { print }
19227 _ACAWK
19228 _ACEOF
19229 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19230 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
19231 fi # test -n "$CONFIG_HEADERS"
19232
19233
19234 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
19235 shift
19236 for ac_tag
19237 do
19238 case $ac_tag in
19239 :[FHLC]) ac_mode=$ac_tag; continue;;
19240 esac
19241 case $ac_mode$ac_tag in
19242 :[FHL]*:*);;
19243 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19244 :[FH]-) ac_tag=-:-;;
19245 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19246 esac
19247 ac_save_IFS=$IFS
19248 IFS=:
19249 set x $ac_tag
19250 IFS=$ac_save_IFS
19251 shift
19252 ac_file=$1
19253 shift
19254
19255 case $ac_mode in
19256 :L) ac_source=$1;;
19257 :[FH])
19258 ac_file_inputs=
19259 for ac_f
19260 do
19261 case $ac_f in
19262 -) ac_f="$ac_tmp/stdin";;
19263 *) # Look for the file first in the build tree, then in the source tree
19264 # (if the path is not absolute). The absolute path cannot be DOS-style,
19265 # because $ac_f cannot contain `:'.
19266 test -f "$ac_f" ||
19267 case $ac_f in
19268 [\\/$]*) false;;
19269 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19270 esac ||
19271 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19272 esac
19273 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19274 as_fn_append ac_file_inputs " '$ac_f'"
19275 done
19276
19277 # Let's still pretend it is `configure' which instantiates (i.e., don't
19278 # use $as_me), people would be surprised to read:
19279 # /* config.h. Generated by config.status. */
19280 configure_input='Generated from '`
19281 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19282 `' by configure.'
19283 if test x"$ac_file" != x-; then
19284 configure_input="$ac_file. $configure_input"
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19286 $as_echo "$as_me: creating $ac_file" >&6;}
19287 fi
19288 # Neutralize special characters interpreted by sed in replacement strings.
19289 case $configure_input in #(
19290 *\&* | *\|* | *\\* )
19291 ac_sed_conf_input=`$as_echo "$configure_input" |
19292 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19293 *) ac_sed_conf_input=$configure_input;;
19294 esac
19295
19296 case $ac_tag in
19297 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19298 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19299 esac
19300 ;;
19301 esac
19302
19303 ac_dir=`$as_dirname -- "$ac_file" ||
19304 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19305 X"$ac_file" : 'X\(//\)[^/]' \| \
19306 X"$ac_file" : 'X\(//\)$' \| \
19307 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19308 $as_echo X"$ac_file" |
19309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19310 s//\1/
19311 q
19312 }
19313 /^X\(\/\/\)[^/].*/{
19314 s//\1/
19315 q
19316 }
19317 /^X\(\/\/\)$/{
19318 s//\1/
19319 q
19320 }
19321 /^X\(\/\).*/{
19322 s//\1/
19323 q
19324 }
19325 s/.*/./; q'`
19326 as_dir="$ac_dir"; as_fn_mkdir_p
19327 ac_builddir=.
19328
19329 case "$ac_dir" in
19330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19331 *)
19332 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19333 # A ".." for each directory in $ac_dir_suffix.
19334 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19335 case $ac_top_builddir_sub in
19336 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19337 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19338 esac ;;
19339 esac
19340 ac_abs_top_builddir=$ac_pwd
19341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19342 # for backward compatibility:
19343 ac_top_builddir=$ac_top_build_prefix
19344
19345 case $srcdir in
19346 .) # We are building in place.
19347 ac_srcdir=.
19348 ac_top_srcdir=$ac_top_builddir_sub
19349 ac_abs_top_srcdir=$ac_pwd ;;
19350 [\\/]* | ?:[\\/]* ) # Absolute name.
19351 ac_srcdir=$srcdir$ac_dir_suffix;
19352 ac_top_srcdir=$srcdir
19353 ac_abs_top_srcdir=$srcdir ;;
19354 *) # Relative name.
19355 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19356 ac_top_srcdir=$ac_top_build_prefix$srcdir
19357 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19358 esac
19359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19360
19361
19362 case $ac_mode in
19363 :F)
19364 #
19365 # CONFIG_FILE
19366 #
19367
19368 case $INSTALL in
19369 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19370 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19371 esac
19372 ac_MKDIR_P=$MKDIR_P
19373 case $MKDIR_P in
19374 [\\/$]* | ?:[\\/]* ) ;;
19375 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19376 esac
19377 _ACEOF
19378
19379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19380 # If the template does not know about datarootdir, expand it.
19381 # FIXME: This hack should be removed a few years after 2.60.
19382 ac_datarootdir_hack=; ac_datarootdir_seen=
19383 ac_sed_dataroot='
19384 /datarootdir/ {
19385 p
19386 q
19387 }
19388 /@datadir@/p
19389 /@docdir@/p
19390 /@infodir@/p
19391 /@localedir@/p
19392 /@mandir@/p'
19393 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19394 *datarootdir*) ac_datarootdir_seen=yes;;
19395 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19397 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19398 _ACEOF
19399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19400 ac_datarootdir_hack='
19401 s&@datadir@&$datadir&g
19402 s&@docdir@&$docdir&g
19403 s&@infodir@&$infodir&g
19404 s&@localedir@&$localedir&g
19405 s&@mandir@&$mandir&g
19406 s&\\\${datarootdir}&$datarootdir&g' ;;
19407 esac
19408 _ACEOF
19409
19410 # Neutralize VPATH when `$srcdir' = `.'.
19411 # Shell code in configure.ac might set extrasub.
19412 # FIXME: do we really want to maintain this feature?
19413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19414 ac_sed_extra="$ac_vpsub
19415 $extrasub
19416 _ACEOF
19417 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19418 :t
19419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19420 s|@configure_input@|$ac_sed_conf_input|;t t
19421 s&@top_builddir@&$ac_top_builddir_sub&;t t
19422 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19423 s&@srcdir@&$ac_srcdir&;t t
19424 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19425 s&@top_srcdir@&$ac_top_srcdir&;t t
19426 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19427 s&@builddir@&$ac_builddir&;t t
19428 s&@abs_builddir@&$ac_abs_builddir&;t t
19429 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19430 s&@INSTALL@&$ac_INSTALL&;t t
19431 s&@MKDIR_P@&$ac_MKDIR_P&;t t
19432 $ac_datarootdir_hack
19433 "
19434 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
19435 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19436
19437 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19438 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19439 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19440 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19442 which seems to be undefined. Please make sure it is defined" >&5
19443 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19444 which seems to be undefined. Please make sure it is defined" >&2;}
19445
19446 rm -f "$ac_tmp/stdin"
19447 case $ac_file in
19448 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19449 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19450 esac \
19451 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19452 ;;
19453 :H)
19454 #
19455 # CONFIG_HEADER
19456 #
19457 if test x"$ac_file" != x-; then
19458 {
19459 $as_echo "/* $configure_input */" \
19460 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
19461 } >"$ac_tmp/config.h" \
19462 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19463 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
19464 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
19465 $as_echo "$as_me: $ac_file is unchanged" >&6;}
19466 else
19467 rm -f "$ac_file"
19468 mv "$ac_tmp/config.h" "$ac_file" \
19469 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19470 fi
19471 else
19472 $as_echo "/* $configure_input */" \
19473 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
19474 || as_fn_error $? "could not create -" "$LINENO" 5
19475 fi
19476 # Compute "$ac_file"'s index in $config_headers.
19477 _am_arg="$ac_file"
19478 _am_stamp_count=1
19479 for _am_header in $config_headers :; do
19480 case $_am_header in
19481 $_am_arg | $_am_arg:* )
19482 break ;;
19483 * )
19484 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
19485 esac
19486 done
19487 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19488 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19489 X"$_am_arg" : 'X\(//\)[^/]' \| \
19490 X"$_am_arg" : 'X\(//\)$' \| \
19491 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19492 $as_echo X"$_am_arg" |
19493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19494 s//\1/
19495 q
19496 }
19497 /^X\(\/\/\)[^/].*/{
19498 s//\1/
19499 q
19500 }
19501 /^X\(\/\/\)$/{
19502 s//\1/
19503 q
19504 }
19505 /^X\(\/\).*/{
19506 s//\1/
19507 q
19508 }
19509 s/.*/./; q'`/stamp-h$_am_stamp_count
19510 ;;
19511
19512 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19513 $as_echo "$as_me: executing $ac_file commands" >&6;}
19514 ;;
19515 esac
19516
19517
19518 case $ac_file$ac_mode in
19519 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19520 # Autoconf 2.62 quotes --file arguments for eval, but not when files
19521 # are listed without --file. Let's play safe and only enable the eval
19522 # if we detect the quoting.
19523 case $CONFIG_FILES in
19524 *\'*) eval set x "$CONFIG_FILES" ;;
19525 *) set x $CONFIG_FILES ;;
19526 esac
19527 shift
19528 for mf
19529 do
19530 # Strip MF so we end up with the name of the file.
19531 mf=`echo "$mf" | sed -e 's/:.*$//'`
19532 # Check whether this is an Automake generated Makefile or not.
19533 # We used to match only the files named `Makefile.in', but
19534 # some people rename them; so instead we look at the file content.
19535 # Grep'ing the first line is not enough: some people post-process
19536 # each Makefile.in and add a new line on top of each file to say so.
19537 # Grep'ing the whole file is not good either: AIX grep has a line
19538 # limit of 2048, but all sed's we know have understand at least 4000.
19539 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19540 dirpart=`$as_dirname -- "$mf" ||
19541 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19542 X"$mf" : 'X\(//\)[^/]' \| \
19543 X"$mf" : 'X\(//\)$' \| \
19544 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19545 $as_echo X"$mf" |
19546 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19547 s//\1/
19548 q
19549 }
19550 /^X\(\/\/\)[^/].*/{
19551 s//\1/
19552 q
19553 }
19554 /^X\(\/\/\)$/{
19555 s//\1/
19556 q
19557 }
19558 /^X\(\/\).*/{
19559 s//\1/
19560 q
19561 }
19562 s/.*/./; q'`
19563 else
19564 continue
19565 fi
19566 # Extract the definition of DEPDIR, am__include, and am__quote
19567 # from the Makefile without running `make'.
19568 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19569 test -z "$DEPDIR" && continue
19570 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19571 test -z "am__include" && continue
19572 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19573 # When using ansi2knr, U may be empty or an underscore; expand it
19574 U=`sed -n 's/^U = //p' < "$mf"`
19575 # Find all dependency output files, they are included files with
19576 # $(DEPDIR) in their names. We invoke sed twice because it is the
19577 # simplest approach to changing $(DEPDIR) to its actual value in the
19578 # expansion.
19579 for file in `sed -n "
19580 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19581 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19582 # Make sure the directory exists.
19583 test -f "$dirpart/$file" && continue
19584 fdir=`$as_dirname -- "$file" ||
19585 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19586 X"$file" : 'X\(//\)[^/]' \| \
19587 X"$file" : 'X\(//\)$' \| \
19588 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19589 $as_echo X"$file" |
19590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19591 s//\1/
19592 q
19593 }
19594 /^X\(\/\/\)[^/].*/{
19595 s//\1/
19596 q
19597 }
19598 /^X\(\/\/\)$/{
19599 s//\1/
19600 q
19601 }
19602 /^X\(\/\).*/{
19603 s//\1/
19604 q
19605 }
19606 s/.*/./; q'`
19607 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19608 # echo "creating $dirpart/$file"
19609 echo '# dummy' > "$dirpart/$file"
19610 done
19611 done
19612 }
19613 ;;
19614 "libtool":C)
19615
19616 # See if we are running on zsh, and set the options which allow our
19617 # commands through without removal of \ escapes.
19618 if test -n "${ZSH_VERSION+set}" ; then
19619 setopt NO_GLOB_SUBST
19620 fi
19621
19622 cfgfile="${ofile}T"
19623 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19624 $RM "$cfgfile"
19625
19626 cat <<_LT_EOF >> "$cfgfile"
19627 #! $SHELL
19628
19629 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19630 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19631 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19632 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19633 #
19634 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19635 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
19636 # Foundation, Inc.
19637 # Written by Gordon Matzigkeit, 1996
19638 #
19639 # This file is part of GNU Libtool.
19640 #
19641 # GNU Libtool is free software; you can redistribute it and/or
19642 # modify it under the terms of the GNU General Public License as
19643 # published by the Free Software Foundation; either version 2 of
19644 # the License, or (at your option) any later version.
19645 #
19646 # As a special exception to the GNU General Public License,
19647 # if you distribute this file as part of a program or library that
19648 # is built using GNU Libtool, you may include this file under the
19649 # same distribution terms that you use for the rest of that program.
19650 #
19651 # GNU Libtool is distributed in the hope that it will be useful,
19652 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19653 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19654 # GNU General Public License for more details.
19655 #
19656 # You should have received a copy of the GNU General Public License
19657 # along with GNU Libtool; see the file COPYING. If not, a copy
19658 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19659 # obtained by writing to the Free Software Foundation, Inc.,
19660 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19661
19662
19663 # The names of the tagged configurations supported by this script.
19664 available_tags=""
19665
19666 # ### BEGIN LIBTOOL CONFIG
19667
19668 # Which release of libtool.m4 was used?
19669 macro_version=$macro_version
19670 macro_revision=$macro_revision
19671
19672 # Whether or not to build shared libraries.
19673 build_libtool_libs=$enable_shared
19674
19675 # Whether or not to build static libraries.
19676 build_old_libs=$enable_static
19677
19678 # What type of objects to build.
19679 pic_mode=$pic_mode
19680
19681 # Whether or not to optimize for fast installation.
19682 fast_install=$enable_fast_install
19683
19684 # Shell to use when invoking shell scripts.
19685 SHELL=$lt_SHELL
19686
19687 # An echo program that protects backslashes.
19688 ECHO=$lt_ECHO
19689
19690 # The PATH separator for the build system.
19691 PATH_SEPARATOR=$lt_PATH_SEPARATOR
19692
19693 # The host system.
19694 host_alias=$host_alias
19695 host=$host
19696 host_os=$host_os
19697
19698 # The build system.
19699 build_alias=$build_alias
19700 build=$build
19701 build_os=$build_os
19702
19703 # A sed program that does not truncate output.
19704 SED=$lt_SED
19705
19706 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19707 Xsed="\$SED -e 1s/^X//"
19708
19709 # A grep program that handles long lines.
19710 GREP=$lt_GREP
19711
19712 # An ERE matcher.
19713 EGREP=$lt_EGREP
19714
19715 # A literal string matcher.
19716 FGREP=$lt_FGREP
19717
19718 # A BSD- or MS-compatible name lister.
19719 NM=$lt_NM
19720
19721 # Whether we need soft or hard links.
19722 LN_S=$lt_LN_S
19723
19724 # What is the maximum length of a command?
19725 max_cmd_len=$max_cmd_len
19726
19727 # Object file suffix (normally "o").
19728 objext=$ac_objext
19729
19730 # Executable file suffix (normally "").
19731 exeext=$exeext
19732
19733 # whether the shell understands "unset".
19734 lt_unset=$lt_unset
19735
19736 # turn spaces into newlines.
19737 SP2NL=$lt_lt_SP2NL
19738
19739 # turn newlines into spaces.
19740 NL2SP=$lt_lt_NL2SP
19741
19742 # convert \$build file names to \$host format.
19743 to_host_file_cmd=$lt_cv_to_host_file_cmd
19744
19745 # convert \$build files to toolchain format.
19746 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
19747
19748 # An object symbol dumper.
19749 OBJDUMP=$lt_OBJDUMP
19750
19751 # Method to check whether dependent libraries are shared objects.
19752 deplibs_check_method=$lt_deplibs_check_method
19753
19754 # Command to use when deplibs_check_method = "file_magic".
19755 file_magic_cmd=$lt_file_magic_cmd
19756
19757 # How to find potential files when deplibs_check_method = "file_magic".
19758 file_magic_glob=$lt_file_magic_glob
19759
19760 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
19761 want_nocaseglob=$lt_want_nocaseglob
19762
19763 # DLL creation program.
19764 DLLTOOL=$lt_DLLTOOL
19765
19766 # Command to associate shared and link libraries.
19767 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
19768
19769 # The archiver.
19770 AR=$lt_AR
19771
19772 # Flags to create an archive.
19773 AR_FLAGS=$lt_AR_FLAGS
19774
19775 # How to feed a file listing to the archiver.
19776 archiver_list_spec=$lt_archiver_list_spec
19777
19778 # A symbol stripping program.
19779 STRIP=$lt_STRIP
19780
19781 # Commands used to install an old-style archive.
19782 RANLIB=$lt_RANLIB
19783 old_postinstall_cmds=$lt_old_postinstall_cmds
19784 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19785
19786 # Whether to use a lock for old archive extraction.
19787 lock_old_archive_extraction=$lock_old_archive_extraction
19788
19789 # A C compiler.
19790 LTCC=$lt_CC
19791
19792 # LTCC compiler flags.
19793 LTCFLAGS=$lt_CFLAGS
19794
19795 # Take the output of nm and produce a listing of raw symbols and C names.
19796 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19797
19798 # Transform the output of nm in a proper C declaration.
19799 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19800
19801 # Transform the output of nm in a C name address pair.
19802 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19803
19804 # Transform the output of nm in a C name address pair when lib prefix is needed.
19805 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19806
19807 # Specify filename containing input files for \$NM.
19808 nm_file_list_spec=$lt_nm_file_list_spec
19809
19810 # The root where to search for dependent libraries,and in which our libraries should be installed.
19811 lt_sysroot=$lt_sysroot
19812
19813 # The name of the directory that contains temporary libtool files.
19814 objdir=$objdir
19815
19816 # Used to examine libraries when file_magic_cmd begins with "file".
19817 MAGIC_CMD=$MAGIC_CMD
19818
19819 # Must we lock files when doing compilation?
19820 need_locks=$lt_need_locks
19821
19822 # Manifest tool.
19823 MANIFEST_TOOL=$lt_MANIFEST_TOOL
19824
19825 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19826 DSYMUTIL=$lt_DSYMUTIL
19827
19828 # Tool to change global to local symbols on Mac OS X.
19829 NMEDIT=$lt_NMEDIT
19830
19831 # Tool to manipulate fat objects and archives on Mac OS X.
19832 LIPO=$lt_LIPO
19833
19834 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19835 OTOOL=$lt_OTOOL
19836
19837 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19838 OTOOL64=$lt_OTOOL64
19839
19840 # Old archive suffix (normally "a").
19841 libext=$libext
19842
19843 # Shared library suffix (normally ".so").
19844 shrext_cmds=$lt_shrext_cmds
19845
19846 # The commands to extract the exported symbol list from a shared archive.
19847 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19848
19849 # Variables whose values should be saved in libtool wrapper scripts and
19850 # restored at link time.
19851 variables_saved_for_relink=$lt_variables_saved_for_relink
19852
19853 # Do we need the "lib" prefix for modules?
19854 need_lib_prefix=$need_lib_prefix
19855
19856 # Do we need a version for libraries?
19857 need_version=$need_version
19858
19859 # Library versioning type.
19860 version_type=$version_type
19861
19862 # Shared library runtime path variable.
19863 runpath_var=$runpath_var
19864
19865 # Shared library path variable.
19866 shlibpath_var=$shlibpath_var
19867
19868 # Is shlibpath searched before the hard-coded library search path?
19869 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19870
19871 # Format of library name prefix.
19872 libname_spec=$lt_libname_spec
19873
19874 # List of archive names. First name is the real one, the rest are links.
19875 # The last name is the one that the linker finds with -lNAME
19876 library_names_spec=$lt_library_names_spec
19877
19878 # The coded name of the library, if different from the real name.
19879 soname_spec=$lt_soname_spec
19880
19881 # Permission mode override for installation of shared libraries.
19882 install_override_mode=$lt_install_override_mode
19883
19884 # Command to use after installation of a shared archive.
19885 postinstall_cmds=$lt_postinstall_cmds
19886
19887 # Command to use after uninstallation of a shared archive.
19888 postuninstall_cmds=$lt_postuninstall_cmds
19889
19890 # Commands used to finish a libtool library installation in a directory.
19891 finish_cmds=$lt_finish_cmds
19892
19893 # As "finish_cmds", except a single script fragment to be evaled but
19894 # not shown.
19895 finish_eval=$lt_finish_eval
19896
19897 # Whether we should hardcode library paths into libraries.
19898 hardcode_into_libs=$hardcode_into_libs
19899
19900 # Compile-time system search path for libraries.
19901 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19902
19903 # Run-time system search path for libraries.
19904 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19905
19906 # Whether dlopen is supported.
19907 dlopen_support=$enable_dlopen
19908
19909 # Whether dlopen of programs is supported.
19910 dlopen_self=$enable_dlopen_self
19911
19912 # Whether dlopen of statically linked programs is supported.
19913 dlopen_self_static=$enable_dlopen_self_static
19914
19915 # Commands to strip libraries.
19916 old_striplib=$lt_old_striplib
19917 striplib=$lt_striplib
19918
19919
19920 # The linker used to build libraries.
19921 LD=$lt_LD
19922
19923 # How to create reloadable object files.
19924 reload_flag=$lt_reload_flag
19925 reload_cmds=$lt_reload_cmds
19926
19927 # Commands used to build an old-style archive.
19928 old_archive_cmds=$lt_old_archive_cmds
19929
19930 # A language specific compiler.
19931 CC=$lt_compiler
19932
19933 # Is the compiler the GNU compiler?
19934 with_gcc=$GCC
19935
19936 # Compiler flag to turn off builtin functions.
19937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19938
19939 # Additional compiler flags for building library objects.
19940 pic_flag=$lt_lt_prog_compiler_pic
19941
19942 # How to pass a linker flag through the compiler.
19943 wl=$lt_lt_prog_compiler_wl
19944
19945 # Compiler flag to prevent dynamic linking.
19946 link_static_flag=$lt_lt_prog_compiler_static
19947
19948 # Does compiler simultaneously support -c and -o options?
19949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19950
19951 # Whether or not to add -lc for building shared libraries.
19952 build_libtool_need_lc=$archive_cmds_need_lc
19953
19954 # Whether or not to disallow shared libs when runtime libs are static.
19955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19956
19957 # Compiler flag to allow reflexive dlopens.
19958 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19959
19960 # Compiler flag to generate shared objects directly from archives.
19961 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19962
19963 # Whether the compiler copes with passing no objects directly.
19964 compiler_needs_object=$lt_compiler_needs_object
19965
19966 # Create an old-style archive from a shared archive.
19967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19968
19969 # Create a temporary old-style archive to link instead of a shared archive.
19970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19971
19972 # Commands used to build a shared archive.
19973 archive_cmds=$lt_archive_cmds
19974 archive_expsym_cmds=$lt_archive_expsym_cmds
19975
19976 # Commands used to build a loadable module if different from building
19977 # a shared archive.
19978 module_cmds=$lt_module_cmds
19979 module_expsym_cmds=$lt_module_expsym_cmds
19980
19981 # Whether we are building with GNU ld or not.
19982 with_gnu_ld=$lt_with_gnu_ld
19983
19984 # Flag that allows shared libraries with undefined symbols to be built.
19985 allow_undefined_flag=$lt_allow_undefined_flag
19986
19987 # Flag that enforces no undefined symbols.
19988 no_undefined_flag=$lt_no_undefined_flag
19989
19990 # Flag to hardcode \$libdir into a binary during linking.
19991 # This must work even if \$libdir does not exist
19992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19993
19994 # Whether we need a single "-rpath" flag with a separated argument.
19995 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19996
19997 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19998 # DIR into the resulting binary.
19999 hardcode_direct=$hardcode_direct
20000
20001 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20002 # DIR into the resulting binary and the resulting library dependency is
20003 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20004 # library is relocated.
20005 hardcode_direct_absolute=$hardcode_direct_absolute
20006
20007 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20008 # into the resulting binary.
20009 hardcode_minus_L=$hardcode_minus_L
20010
20011 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20012 # into the resulting binary.
20013 hardcode_shlibpath_var=$hardcode_shlibpath_var
20014
20015 # Set to "yes" if building a shared library automatically hardcodes DIR
20016 # into the library and all subsequent libraries and executables linked
20017 # against it.
20018 hardcode_automatic=$hardcode_automatic
20019
20020 # Set to yes if linker adds runtime paths of dependent libraries
20021 # to runtime path list.
20022 inherit_rpath=$inherit_rpath
20023
20024 # Whether libtool must link a program against all its dependency libraries.
20025 link_all_deplibs=$link_all_deplibs
20026
20027 # Set to "yes" if exported symbols are required.
20028 always_export_symbols=$always_export_symbols
20029
20030 # The commands to list exported symbols.
20031 export_symbols_cmds=$lt_export_symbols_cmds
20032
20033 # Symbols that should not be listed in the preloaded symbols.
20034 exclude_expsyms=$lt_exclude_expsyms
20035
20036 # Symbols that must always be exported.
20037 include_expsyms=$lt_include_expsyms
20038
20039 # Commands necessary for linking programs (against libraries) with templates.
20040 prelink_cmds=$lt_prelink_cmds
20041
20042 # Commands necessary for finishing linking programs.
20043 postlink_cmds=$lt_postlink_cmds
20044
20045 # Specify filename containing input files.
20046 file_list_spec=$lt_file_list_spec
20047
20048 # How to hardcode a shared library path into an executable.
20049 hardcode_action=$hardcode_action
20050
20051 # ### END LIBTOOL CONFIG
20052
20053 _LT_EOF
20054
20055 case $host_os in
20056 aix3*)
20057 cat <<\_LT_EOF >> "$cfgfile"
20058 # AIX sometimes has problems with the GCC collect2 program. For some
20059 # reason, if we set the COLLECT_NAMES environment variable, the problems
20060 # vanish in a puff of smoke.
20061 if test "X${COLLECT_NAMES+set}" != Xset; then
20062 COLLECT_NAMES=
20063 export COLLECT_NAMES
20064 fi
20065 _LT_EOF
20066 ;;
20067 esac
20068
20069
20070 ltmain="$ac_aux_dir/ltmain.sh"
20071
20072
20073 # We use sed instead of cat because bash on DJGPP gets confused if
20074 # if finds mixed CR/LF and LF-only lines. Since sed operates in
20075 # text mode, it properly converts lines to CR/LF. This bash problem
20076 # is reportedly fixed, but why not run on old versions too?
20077 sed '$q' "$ltmain" >> "$cfgfile" \
20078 || (rm -f "$cfgfile"; exit 1)
20079
20080 if test x"$xsi_shell" = xyes; then
20081 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
20082 func_dirname ()\
20083 {\
20084 \ case ${1} in\
20085 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20086 \ * ) func_dirname_result="${3}" ;;\
20087 \ esac\
20088 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
20089 && mv -f "$cfgfile.tmp" "$cfgfile" \
20090 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20091 test 0 -eq $? || _lt_function_replace_fail=:
20092
20093
20094 sed -e '/^func_basename ()$/,/^} # func_basename /c\
20095 func_basename ()\
20096 {\
20097 \ func_basename_result="${1##*/}"\
20098 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
20099 && mv -f "$cfgfile.tmp" "$cfgfile" \
20100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20101 test 0 -eq $? || _lt_function_replace_fail=:
20102
20103
20104 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
20105 func_dirname_and_basename ()\
20106 {\
20107 \ case ${1} in\
20108 \ */*) func_dirname_result="${1%/*}${2}" ;;\
20109 \ * ) func_dirname_result="${3}" ;;\
20110 \ esac\
20111 \ func_basename_result="${1##*/}"\
20112 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
20113 && mv -f "$cfgfile.tmp" "$cfgfile" \
20114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20115 test 0 -eq $? || _lt_function_replace_fail=:
20116
20117
20118 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
20119 func_stripname ()\
20120 {\
20121 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
20122 \ # positional parameters, so assign one to ordinary parameter first.\
20123 \ func_stripname_result=${3}\
20124 \ func_stripname_result=${func_stripname_result#"${1}"}\
20125 \ func_stripname_result=${func_stripname_result%"${2}"}\
20126 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
20127 && mv -f "$cfgfile.tmp" "$cfgfile" \
20128 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20129 test 0 -eq $? || _lt_function_replace_fail=:
20130
20131
20132 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
20133 func_split_long_opt ()\
20134 {\
20135 \ func_split_long_opt_name=${1%%=*}\
20136 \ func_split_long_opt_arg=${1#*=}\
20137 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
20138 && mv -f "$cfgfile.tmp" "$cfgfile" \
20139 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20140 test 0 -eq $? || _lt_function_replace_fail=:
20141
20142
20143 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
20144 func_split_short_opt ()\
20145 {\
20146 \ func_split_short_opt_arg=${1#??}\
20147 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
20148 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
20149 && mv -f "$cfgfile.tmp" "$cfgfile" \
20150 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20151 test 0 -eq $? || _lt_function_replace_fail=:
20152
20153
20154 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
20155 func_lo2o ()\
20156 {\
20157 \ case ${1} in\
20158 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
20159 \ *) func_lo2o_result=${1} ;;\
20160 \ esac\
20161 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
20162 && mv -f "$cfgfile.tmp" "$cfgfile" \
20163 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20164 test 0 -eq $? || _lt_function_replace_fail=:
20165
20166
20167 sed -e '/^func_xform ()$/,/^} # func_xform /c\
20168 func_xform ()\
20169 {\
20170 func_xform_result=${1%.*}.lo\
20171 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
20172 && mv -f "$cfgfile.tmp" "$cfgfile" \
20173 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20174 test 0 -eq $? || _lt_function_replace_fail=:
20175
20176
20177 sed -e '/^func_arith ()$/,/^} # func_arith /c\
20178 func_arith ()\
20179 {\
20180 func_arith_result=$(( $* ))\
20181 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
20182 && mv -f "$cfgfile.tmp" "$cfgfile" \
20183 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20184 test 0 -eq $? || _lt_function_replace_fail=:
20185
20186
20187 sed -e '/^func_len ()$/,/^} # func_len /c\
20188 func_len ()\
20189 {\
20190 func_len_result=${#1}\
20191 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
20192 && mv -f "$cfgfile.tmp" "$cfgfile" \
20193 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20194 test 0 -eq $? || _lt_function_replace_fail=:
20195
20196 fi
20197
20198 if test x"$lt_shell_append" = xyes; then
20199 sed -e '/^func_append ()$/,/^} # func_append /c\
20200 func_append ()\
20201 {\
20202 eval "${1}+=\\${2}"\
20203 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
20204 && mv -f "$cfgfile.tmp" "$cfgfile" \
20205 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20206 test 0 -eq $? || _lt_function_replace_fail=:
20207
20208
20209 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
20210 func_append_quoted ()\
20211 {\
20212 \ func_quote_for_eval "${2}"\
20213 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
20214 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
20215 && mv -f "$cfgfile.tmp" "$cfgfile" \
20216 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20217 test 0 -eq $? || _lt_function_replace_fail=:
20218
20219
20220 # Save a `func_append' function call where possible by direct use of '+='
20221 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
20222 && mv -f "$cfgfile.tmp" "$cfgfile" \
20223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20224 test 0 -eq $? || _lt_function_replace_fail=:
20225 else
20226 # Save a `func_append' function call even when '+=' is not available
20227 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
20228 && mv -f "$cfgfile.tmp" "$cfgfile" \
20229 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
20230 test 0 -eq $? || _lt_function_replace_fail=:
20231 fi
20232
20233 if test x"$_lt_function_replace_fail" = x":"; then
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
20235 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
20236 fi
20237
20238
20239 mv -f "$cfgfile" "$ofile" ||
20240 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20241 chmod +x "$ofile"
20242
20243 ;;
20244
20245 esac
20246 done # for ac_tag
20247
20248
20249 as_fn_exit 0
20250 _ACEOF
20251 ac_clean_files=$ac_clean_files_save
20252
20253 test $ac_write_fail = 0 ||
20254 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20255
20256
20257 # configure is writing to config.log, and then calls config.status.
20258 # config.status does its own redirection, appending to config.log.
20259 # Unfortunately, on DOS this fails, as config.log is still kept open
20260 # by configure, so config.status won't be able to write to it; its
20261 # output is simply discarded. So we exec the FD to /dev/null,
20262 # effectively closing config.log, so it can be properly (re)opened and
20263 # appended to by config.status. When coming back to configure, we
20264 # need to make the FD available again.
20265 if test "$no_create" != yes; then
20266 ac_cs_success=:
20267 ac_config_status_args=
20268 test "$silent" = yes &&
20269 ac_config_status_args="$ac_config_status_args --quiet"
20270 exec 5>/dev/null
20271 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20272 exec 5>>config.log
20273 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20274 # would make configure fail if this is the last instruction.
20275 $ac_cs_success || as_fn_exit 1
20276 fi
20277 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20278 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20279 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20280 fi
20281
20282