configure revision 1.1.1.5 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.11.0.
4 #
5 # Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf (at] gnu.org and
278 $0: https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig
279 $0: about your system, including any error possibly output
280 $0: before this message. Then install a modern shell, or
281 $0: manually run the script under such a shell if you do
282 $0: have one."
283 fi
284 exit 1
285 fi
286 fi
287 fi
288 SHELL=${CONFIG_SHELL-/bin/sh}
289 export SHELL
290 # Unset more variables known to interfere with behavior of common tools.
291 CLICOLOR_FORCE= GREP_OPTIONS=
292 unset CLICOLOR_FORCE GREP_OPTIONS
293
294 ## --------------------- ##
295 ## M4sh Shell Functions. ##
296 ## --------------------- ##
297 # as_fn_unset VAR
298 # ---------------
299 # Portably unset VAR.
300 as_fn_unset ()
301 {
302 { eval $1=; unset $1;}
303 }
304 as_unset=as_fn_unset
305
306 # as_fn_set_status STATUS
307 # -----------------------
308 # Set $? to STATUS, without forking.
309 as_fn_set_status ()
310 {
311 return $1
312 } # as_fn_set_status
313
314 # as_fn_exit STATUS
315 # -----------------
316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
317 as_fn_exit ()
318 {
319 set +e
320 as_fn_set_status $1
321 exit $1
322 } # as_fn_exit
323
324 # as_fn_mkdir_p
325 # -------------
326 # Create "$as_dir" as a directory, including parents if necessary.
327 as_fn_mkdir_p ()
328 {
329
330 case $as_dir in #(
331 -*) as_dir=./$as_dir;;
332 esac
333 test -d "$as_dir" || eval $as_mkdir_p || {
334 as_dirs=
335 while :; do
336 case $as_dir in #(
337 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 *) as_qdir=$as_dir;;
339 esac
340 as_dirs="'$as_qdir' $as_dirs"
341 as_dir=`$as_dirname -- "$as_dir" ||
342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343 X"$as_dir" : 'X\(//\)[^/]' \| \
344 X"$as_dir" : 'X\(//\)$' \| \
345 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346 $as_echo X"$as_dir" |
347 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)[^/].*/{
352 s//\1/
353 q
354 }
355 /^X\(\/\/\)$/{
356 s//\1/
357 q
358 }
359 /^X\(\/\).*/{
360 s//\1/
361 q
362 }
363 s/.*/./; q'`
364 test -d "$as_dir" && break
365 done
366 test -z "$as_dirs" || eval "mkdir $as_dirs"
367 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
369
370 } # as_fn_mkdir_p
371
372 # as_fn_executable_p FILE
373 # -----------------------
374 # Test if FILE is an executable regular file.
375 as_fn_executable_p ()
376 {
377 test -f "$1" && test -x "$1"
378 } # as_fn_executable_p
379 # as_fn_append VAR VALUE
380 # ----------------------
381 # Append the text in VALUE to the end of the definition contained in VAR. Take
382 # advantage of any shell optimizations that allow amortized linear growth over
383 # repeated appends, instead of the typical quadratic growth present in naive
384 # implementations.
385 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386 eval 'as_fn_append ()
387 {
388 eval $1+=\$2
389 }'
390 else
391 as_fn_append ()
392 {
393 eval $1=\$$1\$2
394 }
395 fi # as_fn_append
396
397 # as_fn_arith ARG...
398 # ------------------
399 # Perform arithmetic evaluation on the ARGs, and store the result in the
400 # global $as_val. Take advantage of shells that can avoid forks. The arguments
401 # must be portable across $(()) and expr.
402 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
407 else
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412 fi # as_fn_arith
413
414
415 # as_fn_error STATUS ERROR [LINENO LOG_FD]
416 # ----------------------------------------
417 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419 # script with STATUS, using 1 if that was 0.
420 as_fn_error ()
421 {
422 as_status=$1; test $as_status -eq 0 && as_status=1
423 if test "$4"; then
424 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
426 fi
427 $as_echo "$as_me: error: $2" >&2
428 as_fn_exit $as_status
429 } # as_fn_error
430
431 if expr a : '\(a\)' >/dev/null 2>&1 &&
432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
433 as_expr=expr
434 else
435 as_expr=false
436 fi
437
438 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
439 as_basename=basename
440 else
441 as_basename=false
442 fi
443
444 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
445 as_dirname=dirname
446 else
447 as_dirname=false
448 fi
449
450 as_me=`$as_basename -- "$0" ||
451 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452 X"$0" : 'X\(//\)$' \| \
453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
454 $as_echo X/"$0" |
455 sed '/^.*\/\([^/][^/]*\)\/*$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\/\)$/{
460 s//\1/
461 q
462 }
463 /^X\/\(\/\).*/{
464 s//\1/
465 q
466 }
467 s/.*/./; q'`
468
469 # Avoid depending upon Character Ranges.
470 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473 as_cr_digits='0123456789'
474 as_cr_alnum=$as_cr_Letters$as_cr_digits
475
476
477 as_lineno_1=$LINENO as_lineno_1a=$LINENO
478 as_lineno_2=$LINENO as_lineno_2a=$LINENO
479 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
482 sed -n '
483 p
484 /[$]LINENO/=
485 ' <$as_myself |
486 sed '
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512 ECHO_C= ECHO_N= ECHO_T=
513 case `echo -n x` in #(((((
514 -n*)
515 case `echo 'xy\c'` in
516 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
517 xy) ECHO_C='\c';;
518 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
519 ECHO_T=' ';;
520 esac;;
521 *)
522 ECHO_N='-n';;
523 esac
524
525 rm -f conf$$ conf$$.exe conf$$.file
526 if test -d conf$$.dir; then
527 rm -f conf$$.dir/conf$$.file
528 else
529 rm -f conf$$.dir
530 mkdir conf$$.dir 2>/dev/null
531 fi
532 if (echo >conf$$.file) 2>/dev/null; then
533 if ln -s conf$$.file conf$$ 2>/dev/null; then
534 as_ln_s='ln -s'
535 # ... but there are two gotchas:
536 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538 # In both cases, we have to default to `cp -pR'.
539 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
540 as_ln_s='cp -pR'
541 elif ln conf$$.file conf$$ 2>/dev/null; then
542 as_ln_s=ln
543 else
544 as_ln_s='cp -pR'
545 fi
546 else
547 as_ln_s='cp -pR'
548 fi
549 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550 rmdir conf$$.dir 2>/dev/null
551
552 if mkdir -p . 2>/dev/null; then
553 as_mkdir_p='mkdir -p "$as_dir"'
554 else
555 test -d ./-p && rmdir ./-p
556 as_mkdir_p=false
557 fi
558
559 as_test_x='test -x'
560 as_executable_p=as_fn_executable_p
561
562 # Sed expression to map a string onto a valid CPP name.
563 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
564
565 # Sed expression to map a string onto a valid variable name.
566 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
567
568 SHELL=${CONFIG_SHELL-/bin/sh}
569
570
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
573
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
590
591 # Identity of this package.
592 PACKAGE_NAME='fontconfig'
593 PACKAGE_TARNAME='fontconfig'
594 PACKAGE_VERSION='2.11.0'
595 PACKAGE_STRING='fontconfig 2.11.0'
596 PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig'
597 PACKAGE_URL=''
598
599 # Factoring default headers for most tests.
600 ac_includes_default="\
601 #include <stdio.h>
602 #ifdef HAVE_SYS_TYPES_H
603 # include <sys/types.h>
604 #endif
605 #ifdef HAVE_SYS_STAT_H
606 # include <sys/stat.h>
607 #endif
608 #ifdef STDC_HEADERS
609 # include <stdlib.h>
610 # include <stddef.h>
611 #else
612 # ifdef HAVE_STDLIB_H
613 # include <stdlib.h>
614 # endif
615 #endif
616 #ifdef HAVE_STRING_H
617 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618 # include <memory.h>
619 # endif
620 # include <string.h>
621 #endif
622 #ifdef HAVE_STRINGS_H
623 # include <strings.h>
624 #endif
625 #ifdef HAVE_INTTYPES_H
626 # include <inttypes.h>
627 #endif
628 #ifdef HAVE_STDINT_H
629 # include <stdint.h>
630 #endif
631 #ifdef HAVE_UNISTD_H
632 # include <unistd.h>
633 #endif"
634
635 ac_header_list=
636 ac_subst_vars='am__EXEEXT_FALSE
637 am__EXEEXT_TRUE
638 LTLIBOBJS
639 LIBOBJS
640 PKGCONFIG_REQUIRES_PRIVATELY
641 PKGCONFIG_REQUIRES
642 DOCMAN3
643 ENABLE_DOCS_FALSE
644 ENABLE_DOCS_TRUE
645 USEDOCBOOK_FALSE
646 USEDOCBOOK_TRUE
647 HASDOCBOOK
648 HAVE_PTHREAD_FALSE
649 HAVE_PTHREAD_TRUE
650 PTHREAD_CFLAGS
651 PTHREAD_LIBS
652 PTHREAD_CC
653 ax_pthread_config
654 XMLDIR
655 CONFIGDIR
656 BASECONFIGDIR
657 TEMPLATEDIR
658 FC_FONTDATE
659 FC_CACHEDIR
660 fc_cachedir
661 FC_FONTPATH
662 FC_ADD_FONTS
663 FC_DEFAULT_FONTS
664 LIBXML2_LIBS
665 LIBXML2_CFLAGS
666 HAVE_XMLPARSE_H
667 EXPAT_LIBS
668 EXPAT_CFLAGS
669 FREETYPE_LIBS
670 FREETYPE_CFLAGS
671 ICONV_LIBS
672 ICONV_CFLAGS
673 ENABLE_SHARED_FALSE
674 ENABLE_SHARED_TRUE
675 CROSS_COMPILING_FALSE
676 CROSS_COMPILING_TRUE
677 EXEEXT_FOR_BUILD
678 CC_FOR_BUILD
679 WARN_CFLAGS
680 MS_LIB_AVAILABLE_FALSE
681 MS_LIB_AVAILABLE_TRUE
682 ms_librarian
683 OS_WIN32_FALSE
684 OS_WIN32_TRUE
685 RM
686 GPERF
687 GIT
688 pkgconfigdir
689 PKG_CONFIG_LIBDIR
690 PKG_CONFIG_PATH
691 PKG_CONFIG
692 OTOOL64
693 OTOOL
694 LIPO
695 NMEDIT
696 DSYMUTIL
697 MANIFEST_TOOL
698 RANLIB
699 ac_ct_AR
700 AR
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 SED
707 LIBTOOL
708 OBJDUMP
709 DLLTOOL
710 AS
711 host_os
712 host_vendor
713 host_cpu
714 host
715 build_os
716 build_vendor
717 build_cpu
718 build
719 LN_S
720 EGREP
721 GREP
722 CPP
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 LIBT_CURRENT_MINUS_AGE
741 LIBT_VERSION_INFO
742 LIBT_REVISION
743 LIBT_CURRENT
744 AM_BACKSLASH
745 AM_DEFAULT_VERBOSITY
746 AM_DEFAULT_V
747 AM_V
748 am__untar
749 am__tar
750 AMTAR
751 am__leading_dot
752 SET_MAKE
753 AWK
754 mkdir_p
755 MKDIR_P
756 INSTALL_STRIP_PROGRAM
757 STRIP
758 install_sh
759 MAKEINFO
760 AUTOHEADER
761 AUTOMAKE
762 AUTOCONF
763 ACLOCAL
764 VERSION
765 PACKAGE
766 CYGPATH_W
767 am__isrc
768 INSTALL_DATA
769 INSTALL_SCRIPT
770 INSTALL_PROGRAM
771 target_alias
772 host_alias
773 build_alias
774 LIBS
775 ECHO_T
776 ECHO_N
777 ECHO_C
778 DEFS
779 mandir
780 localedir
781 libdir
782 psdir
783 pdfdir
784 dvidir
785 htmldir
786 infodir
787 docdir
788 oldincludedir
789 includedir
790 localstatedir
791 sharedstatedir
792 sysconfdir
793 datadir
794 datarootdir
795 libexecdir
796 sbindir
797 bindir
798 program_transform_name
799 prefix
800 exec_prefix
801 PACKAGE_URL
802 PACKAGE_BUGREPORT
803 PACKAGE_STRING
804 PACKAGE_VERSION
805 PACKAGE_TARNAME
806 PACKAGE_NAME
807 PATH_SEPARATOR
808 SHELL'
809 ac_subst_files=''
810 ac_user_opts='
811 enable_option_checking
812 enable_silent_rules
813 enable_dependency_tracking
814 enable_largefile
815 enable_shared
816 enable_static
817 with_pic
818 enable_fast_install
819 with_gnu_ld
820 with_sysroot
821 enable_libtool_lock
822 with_pkgconfigdir
823 with_arch
824 enable_iconv
825 with_libiconv
826 with_libiconv_includes
827 with_libiconv_lib
828 with_expat
829 with_expat_includes
830 with_expat_lib
831 enable_libxml2
832 with_default_fonts
833 with_add_fonts
834 with_cache_dir
835 with_templatedir
836 with_baseconfigdir
837 with_configdir
838 with_xmldir
839 enable_docs
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CC
845 CFLAGS
846 LDFLAGS
847 LIBS
848 CPPFLAGS
849 CPP
850 PKG_CONFIG
851 PKG_CONFIG_PATH
852 PKG_CONFIG_LIBDIR
853 CC_FOR_BUILD
854 FREETYPE_CFLAGS
855 FREETYPE_LIBS
856 EXPAT_CFLAGS
857 EXPAT_LIBS
858 LIBXML2_CFLAGS
859 LIBXML2_LIBS'
860
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_libraries=NONE
883
884 # Installation directory options.
885 # These are left unexpanded so users can "make install exec_prefix=/foo"
886 # and all the variables that are supposed to be based on exec_prefix
887 # by default will actually change.
888 # Use braces instead of parens because sh, perl, etc. also accept them.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974 "enable_$ac_useropt"
975 "*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
980
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
985
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
990
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000 "enable_$ac_useropt"
1001 "*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204 "with_$ac_useropt"
1205 "*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
1210
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220 "with_$ac_useropt"
1221 "*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1247 ;;
1248
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1265 ;;
1266
1267 esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1273 fi
1274
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
1281 fi
1282
1283 # Check all directory arguments for consistency.
1284 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1288 do
1289 eval ac_val=\$$ac_var
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
1303
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343 $as_echo X"$as_myself" |
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
1380 # Remove unnecessary trailing slashes from srcdir.
1381 # Double slashes in file names in object file debugging info
1382 # mess up M-x gdb in Emacs.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
1400 \`configure' configures fontconfig 2.11.0 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
1414 -q, --quiet, --silent do not print \`checking ...' messages
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462 System types:
1463 --build=BUILD configure for building on BUILD [guessed]
1464 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of fontconfig 2.11.0:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-silent-rules less verbose build output (undo: "make V=1")
1479 --disable-silent-rules verbose build output (undo: "make V=0")
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --disable-largefile omit support for large files
1485 --enable-shared[=PKGS] build shared libraries [default=yes]
1486 --enable-static[=PKGS] build static libraries [default=yes]
1487 --enable-fast-install[=PKGS]
1488 optimize for fast installation [default=yes]
1489 --disable-libtool-lock avoid locking (might break parallel builds)
1490 --enable-iconv Use iconv to support non-Unicode SFNT name
1491 --enable-libxml2 Use libxml2 instead of Expat
1492 --disable-docs Don't build and install documentation
1493
1494 Optional Packages:
1495 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1498 both]
1499 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1500 --with-sysroot=DIR Search for dependent libraries within DIR
1501 (or the compiler's sysroot if not specified).
1502 --with-pkgconfigdir pkg-config installation directory
1503 ['${libdir}/pkgconfig']
1504 --with-arch=ARCH Force architecture to ARCH
1505 --with-libiconv=DIR Use libiconv in DIR
1506 --with-libiconv-includes=DIR
1507 Use libiconv includes in DIR
1508 --with-libiconv-lib=DIR Use libiconv library in DIR
1509 --with-expat=DIR Use Expat in DIR
1510 --with-expat-includes=DIR
1511 Use Expat includes in DIR
1512 --with-expat-lib=DIR
1513 --with-default-fonts=DIR
1514 Use fonts from DIR when config is busted
1515 --with-add-fonts=DIR1,DIR2,...
1516 Find additional fonts in DIR1,DIR2,...
1517 --with-cache-dir=DIR Use DIR to store cache files
1518 [default=LOCALSTATEDIR/cache/fontconfig]
1519 --with-templatedir=DIR Use DIR to store the configuration template files
1520 [default=DATADIR/fontconfig/conf.avail]
1521 --with-baseconfigdir=DIR
1522 Use DIR to store the base configuration files
1523 [default=SYSCONFDIR/fonts]
1524 --with-configdir=DIR Use DIR to store active configuration files
1525 [default=BASECONFIGDIR/conf.d]
1526 --with-xmldir=DIR Use DIR to store XML schema files
1527 [default=DATADIR/xml/fontconfig]
1528
1529 Some influential environment variables:
1530 CC C compiler command
1531 CFLAGS C compiler flags
1532 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1533 nonstandard directory <lib dir>
1534 LIBS libraries to pass to the linker, e.g. -l<library>
1535 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1536 you have headers in a nonstandard directory <include dir>
1537 CPP C preprocessor
1538 PKG_CONFIG path to pkg-config utility
1539 PKG_CONFIG_PATH
1540 directories to add to pkg-config's search path
1541 PKG_CONFIG_LIBDIR
1542 path overriding pkg-config's built-in search path
1543 CC_FOR_BUILD
1544 build system C compiler
1545 FREETYPE_CFLAGS
1546 C compiler flags for FREETYPE, overriding pkg-config
1547 FREETYPE_LIBS
1548 linker flags for FREETYPE, overriding pkg-config
1549 EXPAT_CFLAGS
1550 C compiler flags for EXPAT, overriding pkg-config
1551 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1552 LIBXML2_CFLAGS
1553 C compiler flags for LIBXML2, overriding pkg-config
1554 LIBXML2_LIBS
1555 linker flags for LIBXML2, overriding pkg-config
1556
1557 Use these variables to override the choices made by `configure' or to help
1558 it to find libraries and programs with nonstandard names/locations.
1559
1560 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1561 _ACEOF
1562 ac_status=$?
1563 fi
1564
1565 if test "$ac_init_help" = "recursive"; then
1566 # If there are subdirs, report their specific --help.
1567 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1568 test -d "$ac_dir" ||
1569 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1570 continue
1571 ac_builddir=.
1572
1573 case "$ac_dir" in
1574 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1575 *)
1576 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1577 # A ".." for each directory in $ac_dir_suffix.
1578 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1579 case $ac_top_builddir_sub in
1580 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1581 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1582 esac ;;
1583 esac
1584 ac_abs_top_builddir=$ac_pwd
1585 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1586 # for backward compatibility:
1587 ac_top_builddir=$ac_top_build_prefix
1588
1589 case $srcdir in
1590 .) # We are building in place.
1591 ac_srcdir=.
1592 ac_top_srcdir=$ac_top_builddir_sub
1593 ac_abs_top_srcdir=$ac_pwd ;;
1594 [\\/]* | ?:[\\/]* ) # Absolute name.
1595 ac_srcdir=$srcdir$ac_dir_suffix;
1596 ac_top_srcdir=$srcdir
1597 ac_abs_top_srcdir=$srcdir ;;
1598 *) # Relative name.
1599 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1600 ac_top_srcdir=$ac_top_build_prefix$srcdir
1601 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1602 esac
1603 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1604
1605 cd "$ac_dir" || { ac_status=$?; continue; }
1606 # Check for guested configure.
1607 if test -f "$ac_srcdir/configure.gnu"; then
1608 echo &&
1609 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1610 elif test -f "$ac_srcdir/configure"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure" --help=recursive
1613 else
1614 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1615 fi || ac_status=$?
1616 cd "$ac_pwd" || { ac_status=$?; break; }
1617 done
1618 fi
1619
1620 test -n "$ac_init_help" && exit $ac_status
1621 if $ac_init_version; then
1622 cat <<\_ACEOF
1623 fontconfig configure 2.11.0
1624 generated by GNU Autoconf 2.69
1625
1626 Copyright (C) 2012 Free Software Foundation, Inc.
1627 This configure script is free software; the Free Software Foundation
1628 gives unlimited permission to copy, distribute and modify it.
1629 _ACEOF
1630 exit
1631 fi
1632
1633 ## ------------------------ ##
1634 ## Autoconf initialization. ##
1635 ## ------------------------ ##
1636
1637 # ac_fn_c_try_compile LINENO
1638 # --------------------------
1639 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1640 ac_fn_c_try_compile ()
1641 {
1642 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1643 rm -f conftest.$ac_objext
1644 if { { ac_try="$ac_compile"
1645 case "(($ac_try" in
1646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1648 esac
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_compile") 2>conftest.err
1652 ac_status=$?
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1657 fi
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } && {
1660 test -z "$ac_c_werror_flag" ||
1661 test ! -s conftest.err
1662 } && test -s conftest.$ac_objext; then :
1663 ac_retval=0
1664 else
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1667
1668 ac_retval=1
1669 fi
1670 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1671 as_fn_set_status $ac_retval
1672
1673 } # ac_fn_c_try_compile
1674
1675 # ac_fn_c_try_cpp LINENO
1676 # ----------------------
1677 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1678 ac_fn_c_try_cpp ()
1679 {
1680 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1681 if { { ac_try="$ac_cpp conftest.$ac_ext"
1682 case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685 esac
1686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687 $as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } > conftest.i && {
1697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 }; then :
1700 ac_retval=0
1701 else
1702 $as_echo "$as_me: failed program was:" >&5
1703 sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706 fi
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1709
1710 } # ac_fn_c_try_cpp
1711
1712 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1715 # the include files in INCLUDES and setting the cache variable VAR
1716 # accordingly.
1717 ac_fn_c_check_header_mongrel ()
1718 {
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if eval \${$3+:} false; then :
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1722 $as_echo_n "checking for $2... " >&6; }
1723 if eval \${$3+:} false; then :
1724 $as_echo_n "(cached) " >&6
1725 fi
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1729 else
1730 # Is the header compilable?
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1732 $as_echo_n "checking $2 usability... " >&6; }
1733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1734 /* end confdefs.h. */
1735 $4
1736 #include <$2>
1737 _ACEOF
1738 if ac_fn_c_try_compile "$LINENO"; then :
1739 ac_header_compiler=yes
1740 else
1741 ac_header_compiler=no
1742 fi
1743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1745 $as_echo "$ac_header_compiler" >&6; }
1746
1747 # Is the header present?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1749 $as_echo_n "checking $2 presence... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 #include <$2>
1753 _ACEOF
1754 if ac_fn_c_try_cpp "$LINENO"; then :
1755 ac_header_preproc=yes
1756 else
1757 ac_header_preproc=no
1758 fi
1759 rm -f conftest.err conftest.i conftest.$ac_ext
1760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1761 $as_echo "$ac_header_preproc" >&6; }
1762
1763 # So? What about this header?
1764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1765 yes:no: )
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1767 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1769 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1770 ;;
1771 no:yes:* )
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1773 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1775 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1777 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1779 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1781 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1782 ( $as_echo "## ---------------------------------------------------------------------------- ##
1783 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1784 ## ---------------------------------------------------------------------------- ##"
1785 ) | sed "s/^/$as_me: WARNING: /" >&2
1786 ;;
1787 esac
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1789 $as_echo_n "checking for $2... " >&6; }
1790 if eval \${$3+:} false; then :
1791 $as_echo_n "(cached) " >&6
1792 else
1793 eval "$3=\$ac_header_compiler"
1794 fi
1795 eval ac_res=\$$3
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 fi
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800
1801 } # ac_fn_c_check_header_mongrel
1802
1803 # ac_fn_c_try_run LINENO
1804 # ----------------------
1805 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1806 # that executables *can* be run.
1807 ac_fn_c_try_run ()
1808 {
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 if { { ac_try="$ac_link"
1811 case "(($ac_try" in
1812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1814 esac
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_link") 2>&5
1818 ac_status=$?
1819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1820 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1821 { { case "(($ac_try" in
1822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1824 esac
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_try") 2>&5
1828 ac_status=$?
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; }; }; then :
1831 ac_retval=0
1832 else
1833 $as_echo "$as_me: program exited with status $ac_status" >&5
1834 $as_echo "$as_me: failed program was:" >&5
1835 sed 's/^/| /' conftest.$ac_ext >&5
1836
1837 ac_retval=$ac_status
1838 fi
1839 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1842
1843 } # ac_fn_c_try_run
1844
1845 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1846 # -------------------------------------------------------
1847 # Tests whether HEADER exists and can be compiled using the include files in
1848 # INCLUDES, setting the cache variable VAR accordingly.
1849 ac_fn_c_check_header_compile ()
1850 {
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
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 else
1857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1858 /* end confdefs.h. */
1859 $4
1860 #include <$2>
1861 _ACEOF
1862 if ac_fn_c_try_compile "$LINENO"; then :
1863 eval "$3=yes"
1864 else
1865 eval "$3=no"
1866 fi
1867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1868 fi
1869 eval ac_res=\$$3
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1871 $as_echo "$ac_res" >&6; }
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873
1874 } # ac_fn_c_check_header_compile
1875
1876 # ac_fn_c_try_link LINENO
1877 # -----------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_c_try_link ()
1880 {
1881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1882 rm -f conftest.$ac_objext conftest$ac_exeext
1883 if { { ac_try="$ac_link"
1884 case "(($ac_try" in
1885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1887 esac
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>conftest.err
1891 ac_status=$?
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1896 fi
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && {
1899 test -z "$ac_c_werror_flag" ||
1900 test ! -s conftest.err
1901 } && test -s conftest$ac_exeext && {
1902 test "$cross_compiling" = yes ||
1903 test -x conftest$ac_exeext
1904 }; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911 fi
1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914 # interfere with the next link command; also delete a directory that is
1915 # left behind by Apple's compiler. We do this before executing the actions.
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1919
1920 } # ac_fn_c_try_link
1921
1922 # ac_fn_c_check_func LINENO FUNC VAR
1923 # ----------------------------------
1924 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1925 ac_fn_c_check_func ()
1926 {
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if eval \${$3+:} false; then :
1931 $as_echo_n "(cached) " >&6
1932 else
1933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1934 /* end confdefs.h. */
1935 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1937 #define $2 innocuous_$2
1938
1939 /* System header to define __stub macros and hopefully few prototypes,
1940 which can conflict with char $2 (); below.
1941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1942 <limits.h> exists even on freestanding compilers. */
1943
1944 #ifdef __STDC__
1945 # include <limits.h>
1946 #else
1947 # include <assert.h>
1948 #endif
1949
1950 #undef $2
1951
1952 /* Override any GCC internal prototype to avoid an error.
1953 Use char because int might match the return type of a GCC
1954 builtin and then its argument prototype would still apply. */
1955 #ifdef __cplusplus
1956 extern "C"
1957 #endif
1958 char $2 ();
1959 /* The GNU C library defines this for functions which it implements
1960 to always fail with ENOSYS. Some functions are actually named
1961 something starting with __ and the normal name is an alias. */
1962 #if defined __stub_$2 || defined __stub___$2
1963 choke me
1964 #endif
1965
1966 int
1967 main ()
1968 {
1969 return $2 ();
1970 ;
1971 return 0;
1972 }
1973 _ACEOF
1974 if ac_fn_c_try_link "$LINENO"; then :
1975 eval "$3=yes"
1976 else
1977 eval "$3=no"
1978 fi
1979 rm -f core conftest.err conftest.$ac_objext \
1980 conftest$ac_exeext conftest.$ac_ext
1981 fi
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1986
1987 } # ac_fn_c_check_func
1988
1989 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1990 # -------------------------------------------
1991 # Tests whether TYPE exists after having included INCLUDES, setting cache
1992 # variable VAR accordingly.
1993 ac_fn_c_check_type ()
1994 {
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2000 else
2001 eval "$3=no"
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003 /* end confdefs.h. */
2004 $4
2005 int
2006 main ()
2007 {
2008 if (sizeof ($2))
2009 return 0;
2010 ;
2011 return 0;
2012 }
2013 _ACEOF
2014 if ac_fn_c_try_compile "$LINENO"; then :
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 $4
2018 int
2019 main ()
2020 {
2021 if (sizeof (($2)))
2022 return 0;
2023 ;
2024 return 0;
2025 }
2026 _ACEOF
2027 if ac_fn_c_try_compile "$LINENO"; then :
2028
2029 else
2030 eval "$3=yes"
2031 fi
2032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2033 fi
2034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2035 fi
2036 eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038 $as_echo "$ac_res" >&6; }
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040
2041 } # ac_fn_c_check_type
2042
2043 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2044 # --------------------------------------------
2045 # Tries to find the compile-time value of EXPR in a program that includes
2046 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2047 # computed
2048 ac_fn_c_compute_int ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if test "$cross_compiling" = yes; then
2052 # Depending upon the size, compute the lo and hi bounds.
2053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2054 /* end confdefs.h. */
2055 $4
2056 int
2057 main ()
2058 {
2059 static int test_array [1 - 2 * !(($2) >= 0)];
2060 test_array [0] = 0;
2061 return test_array [0];
2062
2063 ;
2064 return 0;
2065 }
2066 _ACEOF
2067 if ac_fn_c_try_compile "$LINENO"; then :
2068 ac_lo=0 ac_mid=0
2069 while :; do
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 int
2074 main ()
2075 {
2076 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2077 test_array [0] = 0;
2078 return test_array [0];
2079
2080 ;
2081 return 0;
2082 }
2083 _ACEOF
2084 if ac_fn_c_try_compile "$LINENO"; then :
2085 ac_hi=$ac_mid; break
2086 else
2087 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2088 if test $ac_lo -le $ac_mid; then
2089 ac_lo= ac_hi=
2090 break
2091 fi
2092 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2093 fi
2094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2095 done
2096 else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098 /* end confdefs.h. */
2099 $4
2100 int
2101 main ()
2102 {
2103 static int test_array [1 - 2 * !(($2) < 0)];
2104 test_array [0] = 0;
2105 return test_array [0];
2106
2107 ;
2108 return 0;
2109 }
2110 _ACEOF
2111 if ac_fn_c_try_compile "$LINENO"; then :
2112 ac_hi=-1 ac_mid=-1
2113 while :; do
2114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2115 /* end confdefs.h. */
2116 $4
2117 int
2118 main ()
2119 {
2120 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2121 test_array [0] = 0;
2122 return test_array [0];
2123
2124 ;
2125 return 0;
2126 }
2127 _ACEOF
2128 if ac_fn_c_try_compile "$LINENO"; then :
2129 ac_lo=$ac_mid; break
2130 else
2131 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2132 if test $ac_mid -le $ac_hi; then
2133 ac_lo= ac_hi=
2134 break
2135 fi
2136 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2137 fi
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2139 done
2140 else
2141 ac_lo= ac_hi=
2142 fi
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 fi
2145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2146 # Binary search between lo and hi bounds.
2147 while test "x$ac_lo" != "x$ac_hi"; do
2148 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150 /* end confdefs.h. */
2151 $4
2152 int
2153 main ()
2154 {
2155 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2156 test_array [0] = 0;
2157 return test_array [0];
2158
2159 ;
2160 return 0;
2161 }
2162 _ACEOF
2163 if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid
2165 else
2166 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 case $ac_lo in #((
2171 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2172 '') ac_retval=1 ;;
2173 esac
2174 else
2175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176 /* end confdefs.h. */
2177 $4
2178 static long int longval () { return $2; }
2179 static unsigned long int ulongval () { return $2; }
2180 #include <stdio.h>
2181 #include <stdlib.h>
2182 int
2183 main ()
2184 {
2185
2186 FILE *f = fopen ("conftest.val", "w");
2187 if (! f)
2188 return 1;
2189 if (($2) < 0)
2190 {
2191 long int i = longval ();
2192 if (i != ($2))
2193 return 1;
2194 fprintf (f, "%ld", i);
2195 }
2196 else
2197 {
2198 unsigned long int i = ulongval ();
2199 if (i != ($2))
2200 return 1;
2201 fprintf (f, "%lu", i);
2202 }
2203 /* Do not output a trailing newline, as this causes \r\n confusion
2204 on some platforms. */
2205 return ferror (f) || fclose (f) != 0;
2206
2207 ;
2208 return 0;
2209 }
2210 _ACEOF
2211 if ac_fn_c_try_run "$LINENO"; then :
2212 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2213 else
2214 ac_retval=1
2215 fi
2216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2217 conftest.$ac_objext conftest.beam conftest.$ac_ext
2218 rm -f conftest.val
2219
2220 fi
2221 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2222 as_fn_set_status $ac_retval
2223
2224 } # ac_fn_c_compute_int
2225
2226 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2227 # ----------------------------------------------------
2228 # Tries to find if the field MEMBER exists in type AGGR, after including
2229 # INCLUDES, setting cache variable VAR accordingly.
2230 ac_fn_c_check_member ()
2231 {
2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2234 $as_echo_n "checking for $2.$3... " >&6; }
2235 if eval \${$4+:} false; then :
2236 $as_echo_n "(cached) " >&6
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $5
2241 int
2242 main ()
2243 {
2244 static $2 ac_aggr;
2245 if (ac_aggr.$3)
2246 return 0;
2247 ;
2248 return 0;
2249 }
2250 _ACEOF
2251 if ac_fn_c_try_compile "$LINENO"; then :
2252 eval "$4=yes"
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255 /* end confdefs.h. */
2256 $5
2257 int
2258 main ()
2259 {
2260 static $2 ac_aggr;
2261 if (sizeof ac_aggr.$3)
2262 return 0;
2263 ;
2264 return 0;
2265 }
2266 _ACEOF
2267 if ac_fn_c_try_compile "$LINENO"; then :
2268 eval "$4=yes"
2269 else
2270 eval "$4=no"
2271 fi
2272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2273 fi
2274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2275 fi
2276 eval ac_res=\$$4
2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2278 $as_echo "$ac_res" >&6; }
2279 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2280
2281 } # ac_fn_c_check_member
2282 cat >config.log <<_ACEOF
2283 This file contains any messages produced by compilers while
2284 running configure, to aid debugging if configure makes a mistake.
2285
2286 It was created by fontconfig $as_me 2.11.0, which was
2287 generated by GNU Autoconf 2.69. Invocation command line was
2288
2289 $ $0 $@
2290
2291 _ACEOF
2292 exec 5>>config.log
2293 {
2294 cat <<_ASUNAME
2295 ## --------- ##
2296 ## Platform. ##
2297 ## --------- ##
2298
2299 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2300 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2301 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2302 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2303 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2304
2305 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2306 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2307
2308 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2309 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2310 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2311 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2312 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2313 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2314 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2315
2316 _ASUNAME
2317
2318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2319 for as_dir in $PATH
2320 do
2321 IFS=$as_save_IFS
2322 test -z "$as_dir" && as_dir=.
2323 $as_echo "PATH: $as_dir"
2324 done
2325 IFS=$as_save_IFS
2326
2327 } >&5
2328
2329 cat >&5 <<_ACEOF
2330
2331
2332 ## ----------- ##
2333 ## Core tests. ##
2334 ## ----------- ##
2335
2336 _ACEOF
2337
2338
2339 # Keep a trace of the command line.
2340 # Strip out --no-create and --no-recursion so they do not pile up.
2341 # Strip out --silent because we don't want to record it for future runs.
2342 # Also quote any args containing shell meta-characters.
2343 # Make two passes to allow for proper duplicate-argument suppression.
2344 ac_configure_args=
2345 ac_configure_args0=
2346 ac_configure_args1=
2347 ac_must_keep_next=false
2348 for ac_pass in 1 2
2349 do
2350 for ac_arg
2351 do
2352 case $ac_arg in
2353 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2354 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2355 | -silent | --silent | --silen | --sile | --sil)
2356 continue ;;
2357 *\'*)
2358 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2359 esac
2360 case $ac_pass in
2361 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2362 2)
2363 as_fn_append ac_configure_args1 " '$ac_arg'"
2364 if test $ac_must_keep_next = true; then
2365 ac_must_keep_next=false # Got value, back to normal.
2366 else
2367 case $ac_arg in
2368 *=* | --config-cache | -C | -disable-* | --disable-* \
2369 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2370 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2371 | -with-* | --with-* | -without-* | --without-* | --x)
2372 case "$ac_configure_args0 " in
2373 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2374 esac
2375 ;;
2376 -* ) ac_must_keep_next=true ;;
2377 esac
2378 fi
2379 as_fn_append ac_configure_args " '$ac_arg'"
2380 ;;
2381 esac
2382 done
2383 done
2384 { ac_configure_args0=; unset ac_configure_args0;}
2385 { ac_configure_args1=; unset ac_configure_args1;}
2386
2387 # When interrupted or exit'd, cleanup temporary files, and complete
2388 # config.log. We remove comments because anyway the quotes in there
2389 # would cause problems or look ugly.
2390 # WARNING: Use '\'' to represent an apostrophe within the trap.
2391 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2392 trap 'exit_status=$?
2393 # Save into config.log some information that might help in debugging.
2394 {
2395 echo
2396
2397 $as_echo "## ---------------- ##
2398 ## Cache variables. ##
2399 ## ---------------- ##"
2400 echo
2401 # The following way of writing the cache mishandles newlines in values,
2402 (
2403 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2404 eval ac_val=\$$ac_var
2405 case $ac_val in #(
2406 *${as_nl}*)
2407 case $ac_var in #(
2408 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2409 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2410 esac
2411 case $ac_var in #(
2412 _ | IFS | as_nl) ;; #(
2413 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2414 *) { eval $ac_var=; unset $ac_var;} ;;
2415 esac ;;
2416 esac
2417 done
2418 (set) 2>&1 |
2419 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2420 *${as_nl}ac_space=\ *)
2421 sed -n \
2422 "s/'\''/'\''\\\\'\'''\''/g;
2423 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2424 ;; #(
2425 *)
2426 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2427 ;;
2428 esac |
2429 sort
2430 )
2431 echo
2432
2433 $as_echo "## ----------------- ##
2434 ## Output variables. ##
2435 ## ----------------- ##"
2436 echo
2437 for ac_var in $ac_subst_vars
2438 do
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2446
2447 if test -n "$ac_subst_files"; then
2448 $as_echo "## ------------------- ##
2449 ## File substitutions. ##
2450 ## ------------------- ##"
2451 echo
2452 for ac_var in $ac_subst_files
2453 do
2454 eval ac_val=\$$ac_var
2455 case $ac_val in
2456 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2457 esac
2458 $as_echo "$ac_var='\''$ac_val'\''"
2459 done | sort
2460 echo
2461 fi
2462
2463 if test -s confdefs.h; then
2464 $as_echo "## ----------- ##
2465 ## confdefs.h. ##
2466 ## ----------- ##"
2467 echo
2468 cat confdefs.h
2469 echo
2470 fi
2471 test "$ac_signal" != 0 &&
2472 $as_echo "$as_me: caught signal $ac_signal"
2473 $as_echo "$as_me: exit $exit_status"
2474 } >&5
2475 rm -f core *.core core.conftest.* &&
2476 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2477 exit $exit_status
2478 ' 0
2479 for ac_signal in 1 2 13 15; do
2480 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2481 done
2482 ac_signal=0
2483
2484 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2485 rm -f -r conftest* confdefs.h
2486
2487 $as_echo "/* confdefs.h */" > confdefs.h
2488
2489 # Predefined preprocessor variables.
2490
2491 cat >>confdefs.h <<_ACEOF
2492 #define PACKAGE_NAME "$PACKAGE_NAME"
2493 _ACEOF
2494
2495 cat >>confdefs.h <<_ACEOF
2496 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2497 _ACEOF
2498
2499 cat >>confdefs.h <<_ACEOF
2500 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2501 _ACEOF
2502
2503 cat >>confdefs.h <<_ACEOF
2504 #define PACKAGE_STRING "$PACKAGE_STRING"
2505 _ACEOF
2506
2507 cat >>confdefs.h <<_ACEOF
2508 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2509 _ACEOF
2510
2511 cat >>confdefs.h <<_ACEOF
2512 #define PACKAGE_URL "$PACKAGE_URL"
2513 _ACEOF
2514
2515
2516 # Let the site file select an alternate cache file if it wants to.
2517 # Prefer an explicitly selected file to automatically selected ones.
2518 ac_site_file1=NONE
2519 ac_site_file2=NONE
2520 if test -n "$CONFIG_SITE"; then
2521 # We do not want a PATH search for config.site.
2522 case $CONFIG_SITE in #((
2523 -*) ac_site_file1=./$CONFIG_SITE;;
2524 */*) ac_site_file1=$CONFIG_SITE;;
2525 *) ac_site_file1=./$CONFIG_SITE;;
2526 esac
2527 elif test "x$prefix" != xNONE; then
2528 ac_site_file1=$prefix/share/config.site
2529 ac_site_file2=$prefix/etc/config.site
2530 else
2531 ac_site_file1=$ac_default_prefix/share/config.site
2532 ac_site_file2=$ac_default_prefix/etc/config.site
2533 fi
2534 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2535 do
2536 test "x$ac_site_file" = xNONE && continue
2537 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2539 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2540 sed 's/^/| /' "$ac_site_file" >&5
2541 . "$ac_site_file" \
2542 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2543 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2544 as_fn_error $? "failed to load site script $ac_site_file
2545 See \`config.log' for more details" "$LINENO" 5; }
2546 fi
2547 done
2548
2549 if test -r "$cache_file"; then
2550 # Some versions of bash will fail to source /dev/null (special files
2551 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2552 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2554 $as_echo "$as_me: loading cache $cache_file" >&6;}
2555 case $cache_file in
2556 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2557 *) . "./$cache_file";;
2558 esac
2559 fi
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2562 $as_echo "$as_me: creating cache $cache_file" >&6;}
2563 >$cache_file
2564 fi
2565
2566 as_fn_append ac_header_list " stdlib.h"
2567 as_fn_append ac_header_list " unistd.h"
2568 as_fn_append ac_header_list " sys/param.h"
2569 # Check that the precious variables saved in the cache have kept the same
2570 # value.
2571 ac_cache_corrupted=false
2572 for ac_var in $ac_precious_vars; do
2573 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2574 eval ac_new_set=\$ac_env_${ac_var}_set
2575 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2576 eval ac_new_val=\$ac_env_${ac_var}_value
2577 case $ac_old_set,$ac_new_set in
2578 set,)
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2580 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2581 ac_cache_corrupted=: ;;
2582 ,set)
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2584 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2585 ac_cache_corrupted=: ;;
2586 ,);;
2587 *)
2588 if test "x$ac_old_val" != "x$ac_new_val"; then
2589 # differences in whitespace do not lead to failure.
2590 ac_old_val_w=`echo x $ac_old_val`
2591 ac_new_val_w=`echo x $ac_new_val`
2592 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2594 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2595 ac_cache_corrupted=:
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2598 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2599 eval $ac_var=\$ac_old_val
2600 fi
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2602 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2604 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2605 fi;;
2606 esac
2607 # Pass precious variables to config.status.
2608 if test "$ac_new_set" = set; then
2609 case $ac_new_val in
2610 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2611 *) ac_arg=$ac_var=$ac_new_val ;;
2612 esac
2613 case " $ac_configure_args " in
2614 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2615 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2616 esac
2617 fi
2618 done
2619 if $ac_cache_corrupted; then
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2621 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2623 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2624 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2625 fi
2626 ## -------------------- ##
2627 ## Main body of script. ##
2628 ## -------------------- ##
2629
2630 ac_ext=c
2631 ac_cpp='$CPP $CPPFLAGS'
2632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2635
2636
2637 am__api_version='1.13'
2638
2639 ac_aux_dir=
2640 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2641 if test -f "$ac_dir/install-sh"; then
2642 ac_aux_dir=$ac_dir
2643 ac_install_sh="$ac_aux_dir/install-sh -c"
2644 break
2645 elif test -f "$ac_dir/install.sh"; then
2646 ac_aux_dir=$ac_dir
2647 ac_install_sh="$ac_aux_dir/install.sh -c"
2648 break
2649 elif test -f "$ac_dir/shtool"; then
2650 ac_aux_dir=$ac_dir
2651 ac_install_sh="$ac_aux_dir/shtool install -c"
2652 break
2653 fi
2654 done
2655 if test -z "$ac_aux_dir"; then
2656 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2657 fi
2658
2659 # These three variables are undocumented and unsupported,
2660 # and are intended to be withdrawn in a future Autoconf release.
2661 # They can cause serious problems if a builder's source tree is in a directory
2662 # whose full name contains unusual characters.
2663 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2664 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2665 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2666
2667
2668 # Find a good install program. We prefer a C program (faster),
2669 # so one script is as good as another. But avoid the broken or
2670 # incompatible versions:
2671 # SysV /etc/install, /usr/sbin/install
2672 # SunOS /usr/etc/install
2673 # IRIX /sbin/install
2674 # AIX /bin/install
2675 # AmigaOS /C/install, which installs bootblocks on floppy discs
2676 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2677 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2678 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2679 # OS/2's system install, which has a completely different semantic
2680 # ./install, which can be erroneously created by make from ./install.sh.
2681 # Reject install programs that cannot install multiple files.
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2683 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2684 if test -z "$INSTALL"; then
2685 if ${ac_cv_path_install+:} false; then :
2686 $as_echo_n "(cached) " >&6
2687 else
2688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2689 for as_dir in $PATH
2690 do
2691 IFS=$as_save_IFS
2692 test -z "$as_dir" && as_dir=.
2693 # Account for people who put trailing slashes in PATH elements.
2694 case $as_dir/ in #((
2695 ./ | .// | /[cC]/* | \
2696 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2697 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2698 /usr/ucb/* ) ;;
2699 *)
2700 # OSF1 and SCO ODT 3.0 have their own names for install.
2701 # Don't use installbsd from OSF since it installs stuff as root
2702 # by default.
2703 for ac_prog in ginstall scoinst install; do
2704 for ac_exec_ext in '' $ac_executable_extensions; do
2705 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2706 if test $ac_prog = install &&
2707 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2708 # AIX install. It has an incompatible calling convention.
2709 :
2710 elif test $ac_prog = install &&
2711 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2712 # program-specific install script used by HP pwplus--don't use.
2713 :
2714 else
2715 rm -rf conftest.one conftest.two conftest.dir
2716 echo one > conftest.one
2717 echo two > conftest.two
2718 mkdir conftest.dir
2719 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2720 test -s conftest.one && test -s conftest.two &&
2721 test -s conftest.dir/conftest.one &&
2722 test -s conftest.dir/conftest.two
2723 then
2724 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2725 break 3
2726 fi
2727 fi
2728 fi
2729 done
2730 done
2731 ;;
2732 esac
2733
2734 done
2735 IFS=$as_save_IFS
2736
2737 rm -rf conftest.one conftest.two conftest.dir
2738
2739 fi
2740 if test "${ac_cv_path_install+set}" = set; then
2741 INSTALL=$ac_cv_path_install
2742 else
2743 # As a last resort, use the slow shell script. Don't cache a
2744 # value for INSTALL within a source directory, because that will
2745 # break other packages using the cache if that directory is
2746 # removed, or if the value is a relative name.
2747 INSTALL=$ac_install_sh
2748 fi
2749 fi
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2751 $as_echo "$INSTALL" >&6; }
2752
2753 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2754 # It thinks the first close brace ends the variable substitution.
2755 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2756
2757 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2758
2759 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2760
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2762 $as_echo_n "checking whether build environment is sane... " >&6; }
2763 # Reject unsafe characters in $srcdir or the absolute working directory
2764 # name. Accept space and tab only in the latter.
2765 am_lf='
2766 '
2767 case `pwd` in
2768 *[\\\"\#\$\&\'\`$am_lf]*)
2769 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2770 esac
2771 case $srcdir in
2772 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2773 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2774 esac
2775
2776 # Do 'set' in a subshell so we don't clobber the current shell's
2777 # arguments. Must try -L first in case configure is actually a
2778 # symlink; some systems play weird games with the mod time of symlinks
2779 # (eg FreeBSD returns the mod time of the symlink's containing
2780 # directory).
2781 if (
2782 am_has_slept=no
2783 for am_try in 1 2; do
2784 echo "timestamp, slept: $am_has_slept" > conftest.file
2785 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2786 if test "$*" = "X"; then
2787 # -L didn't work.
2788 set X `ls -t "$srcdir/configure" conftest.file`
2789 fi
2790 if test "$*" != "X $srcdir/configure conftest.file" \
2791 && test "$*" != "X conftest.file $srcdir/configure"; then
2792
2793 # If neither matched, then we have a broken ls. This can happen
2794 # if, for instance, CONFIG_SHELL is bash and it inherits a
2795 # broken ls alias from the environment. This has actually
2796 # happened. Such a system could not be considered "sane".
2797 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2798 alias in your environment" "$LINENO" 5
2799 fi
2800 if test "$2" = conftest.file || test $am_try -eq 2; then
2801 break
2802 fi
2803 # Just in case.
2804 sleep 1
2805 am_has_slept=yes
2806 done
2807 test "$2" = conftest.file
2808 )
2809 then
2810 # Ok.
2811 :
2812 else
2813 as_fn_error $? "newly created file is older than distributed files!
2814 Check your system clock" "$LINENO" 5
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2817 $as_echo "yes" >&6; }
2818 # If we didn't sleep, we still need to ensure time stamps of config.status and
2819 # generated files are strictly newer.
2820 am_sleep_pid=
2821 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2822 ( sleep 1 ) &
2823 am_sleep_pid=$!
2824 fi
2825
2826 rm -f conftest.file
2827
2828 test "$program_prefix" != NONE &&
2829 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2830 # Use a double $ so make ignores it.
2831 test "$program_suffix" != NONE &&
2832 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2833 # Double any \ or $.
2834 # By default was `s,x,x', remove it if useless.
2835 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2836 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2837
2838 # expand $ac_aux_dir to an absolute path
2839 am_aux_dir=`cd $ac_aux_dir && pwd`
2840
2841 if test x"${MISSING+set}" != xset; then
2842 case $am_aux_dir in
2843 *\ * | *\ *)
2844 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2845 *)
2846 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2847 esac
2848 fi
2849 # Use eval to expand $SHELL
2850 if eval "$MISSING --is-lightweight"; then
2851 am_missing_run="$MISSING "
2852 else
2853 am_missing_run=
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2855 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2856 fi
2857
2858 if test x"${install_sh}" != xset; then
2859 case $am_aux_dir in
2860 *\ * | *\ *)
2861 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2862 *)
2863 install_sh="\${SHELL} $am_aux_dir/install-sh"
2864 esac
2865 fi
2866
2867 # Installed binaries are usually stripped using 'strip' when the user
2868 # run "make install-strip". However 'strip' might not be the right
2869 # tool to use in cross-compilation environments, therefore Automake
2870 # will honor the 'STRIP' environment variable to overrule this program.
2871 if test "$cross_compiling" != no; then
2872 if test -n "$ac_tool_prefix"; then
2873 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874 set dummy ${ac_tool_prefix}strip; ac_word=$2
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876 $as_echo_n "checking for $ac_word... " >&6; }
2877 if ${ac_cv_prog_STRIP+:} false; then :
2878 $as_echo_n "(cached) " >&6
2879 else
2880 if test -n "$STRIP"; then
2881 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886 IFS=$as_save_IFS
2887 test -z "$as_dir" && as_dir=.
2888 for ac_exec_ext in '' $ac_executable_extensions; do
2889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2892 break 2
2893 fi
2894 done
2895 done
2896 IFS=$as_save_IFS
2897
2898 fi
2899 fi
2900 STRIP=$ac_cv_prog_STRIP
2901 if test -n "$STRIP"; then
2902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2903 $as_echo "$STRIP" >&6; }
2904 else
2905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906 $as_echo "no" >&6; }
2907 fi
2908
2909
2910 fi
2911 if test -z "$ac_cv_prog_STRIP"; then
2912 ac_ct_STRIP=$STRIP
2913 # Extract the first word of "strip", so it can be a program name with args.
2914 set dummy strip; ac_word=$2
2915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916 $as_echo_n "checking for $ac_word... " >&6; }
2917 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2918 $as_echo_n "(cached) " >&6
2919 else
2920 if test -n "$ac_ct_STRIP"; then
2921 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2922 else
2923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2924 for as_dir in $PATH
2925 do
2926 IFS=$as_save_IFS
2927 test -z "$as_dir" && as_dir=.
2928 for ac_exec_ext in '' $ac_executable_extensions; do
2929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2930 ac_cv_prog_ac_ct_STRIP="strip"
2931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2932 break 2
2933 fi
2934 done
2935 done
2936 IFS=$as_save_IFS
2937
2938 fi
2939 fi
2940 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941 if test -n "$ac_ct_STRIP"; then
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2943 $as_echo "$ac_ct_STRIP" >&6; }
2944 else
2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946 $as_echo "no" >&6; }
2947 fi
2948
2949 if test "x$ac_ct_STRIP" = x; then
2950 STRIP=":"
2951 else
2952 case $cross_compiling:$ac_tool_warned in
2953 yes:)
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956 ac_tool_warned=yes ;;
2957 esac
2958 STRIP=$ac_ct_STRIP
2959 fi
2960 else
2961 STRIP="$ac_cv_prog_STRIP"
2962 fi
2963
2964 fi
2965 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2966
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2968 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2969 if test -z "$MKDIR_P"; then
2970 if ${ac_cv_path_mkdir+:} false; then :
2971 $as_echo_n "(cached) " >&6
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_prog in mkdir gmkdir; do
2979 for ac_exec_ext in '' $ac_executable_extensions; do
2980 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2981 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2982 'mkdir (GNU coreutils) '* | \
2983 'mkdir (coreutils) '* | \
2984 'mkdir (fileutils) '4.1*)
2985 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2986 break 3;;
2987 esac
2988 done
2989 done
2990 done
2991 IFS=$as_save_IFS
2992
2993 fi
2994
2995 test -d ./--version && rmdir ./--version
2996 if test "${ac_cv_path_mkdir+set}" = set; then
2997 MKDIR_P="$ac_cv_path_mkdir -p"
2998 else
2999 # As a last resort, use the slow shell script. Don't cache a
3000 # value for MKDIR_P within a source directory, because that will
3001 # break other packages using the cache if that directory is
3002 # removed, or if the value is a relative name.
3003 MKDIR_P="$ac_install_sh -d"
3004 fi
3005 fi
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3007 $as_echo "$MKDIR_P" >&6; }
3008
3009 for ac_prog in gawk mawk nawk awk
3010 do
3011 # Extract the first word of "$ac_prog", so it can be a program name with args.
3012 set dummy $ac_prog; ac_word=$2
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3014 $as_echo_n "checking for $ac_word... " >&6; }
3015 if ${ac_cv_prog_AWK+:} false; then :
3016 $as_echo_n "(cached) " >&6
3017 else
3018 if test -n "$AWK"; then
3019 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3020 else
3021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3022 for as_dir in $PATH
3023 do
3024 IFS=$as_save_IFS
3025 test -z "$as_dir" && as_dir=.
3026 for ac_exec_ext in '' $ac_executable_extensions; do
3027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3028 ac_cv_prog_AWK="$ac_prog"
3029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3030 break 2
3031 fi
3032 done
3033 done
3034 IFS=$as_save_IFS
3035
3036 fi
3037 fi
3038 AWK=$ac_cv_prog_AWK
3039 if test -n "$AWK"; then
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3041 $as_echo "$AWK" >&6; }
3042 else
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3044 $as_echo "no" >&6; }
3045 fi
3046
3047
3048 test -n "$AWK" && break
3049 done
3050
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3052 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3053 set x ${MAKE-make}
3054 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3055 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3056 $as_echo_n "(cached) " >&6
3057 else
3058 cat >conftest.make <<\_ACEOF
3059 SHELL = /bin/sh
3060 all:
3061 @echo '@@@%%%=$(MAKE)=@@@%%%'
3062 _ACEOF
3063 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3064 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3065 *@@@%%%=?*=@@@%%%*)
3066 eval ac_cv_prog_make_${ac_make}_set=yes;;
3067 *)
3068 eval ac_cv_prog_make_${ac_make}_set=no;;
3069 esac
3070 rm -f conftest.make
3071 fi
3072 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3074 $as_echo "yes" >&6; }
3075 SET_MAKE=
3076 else
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; }
3079 SET_MAKE="MAKE=${MAKE-make}"
3080 fi
3081
3082 rm -rf .tst 2>/dev/null
3083 mkdir .tst 2>/dev/null
3084 if test -d .tst; then
3085 am__leading_dot=.
3086 else
3087 am__leading_dot=_
3088 fi
3089 rmdir .tst 2>/dev/null
3090
3091 # Check whether --enable-silent-rules was given.
3092 if test "${enable_silent_rules+set}" = set; then :
3093 enableval=$enable_silent_rules;
3094 fi
3095
3096 case $enable_silent_rules in # (((
3097 yes) AM_DEFAULT_VERBOSITY=0;;
3098 no) AM_DEFAULT_VERBOSITY=1;;
3099 *) AM_DEFAULT_VERBOSITY=1;;
3100 esac
3101 am_make=${MAKE-make}
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3103 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3104 if ${am_cv_make_support_nested_variables+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if $as_echo 'TRUE=$(BAR$(V))
3108 BAR0=false
3109 BAR1=true
3110 V=1
3111 am__doit:
3112 @$(TRUE)
3113 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3114 am_cv_make_support_nested_variables=yes
3115 else
3116 am_cv_make_support_nested_variables=no
3117 fi
3118 fi
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3120 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3121 if test $am_cv_make_support_nested_variables = yes; then
3122 AM_V='$(V)'
3123 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3124 else
3125 AM_V=$AM_DEFAULT_VERBOSITY
3126 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3127 fi
3128 AM_BACKSLASH='\'
3129
3130 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3131 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3132 # is not polluted with repeated "-I."
3133 am__isrc=' -I$(srcdir)'
3134 # test to see if srcdir already configured
3135 if test -f $srcdir/config.status; then
3136 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3137 fi
3138 fi
3139
3140 # test whether we have cygpath
3141 if test -z "$CYGPATH_W"; then
3142 if (cygpath --version) >/dev/null 2>/dev/null; then
3143 CYGPATH_W='cygpath -w'
3144 else
3145 CYGPATH_W=echo
3146 fi
3147 fi
3148
3149
3150 # Define the identity of the package.
3151 PACKAGE='fontconfig'
3152 VERSION='2.11.0'
3153
3154
3155 cat >>confdefs.h <<_ACEOF
3156 #define PACKAGE "$PACKAGE"
3157 _ACEOF
3158
3159
3160 cat >>confdefs.h <<_ACEOF
3161 #define VERSION "$VERSION"
3162 _ACEOF
3163
3164 # Some tools Automake needs.
3165
3166 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3167
3168
3169 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3170
3171
3172 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3173
3174
3175 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3176
3177
3178 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3179
3180 # For better backward compatibility. To be removed once Automake 1.9.x
3181 # dies out for good. For more background, see:
3182 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3183 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3184 mkdir_p='$(MKDIR_P)'
3185
3186 # We need awk for the "check" target. The system "awk" is bad on
3187 # some platforms.
3188 # Always define AMTAR for backward compatibility. Yes, it's still used
3189 # in the wild :-( We should find a proper way to deprecate it ...
3190 AMTAR='$${TAR-tar}'
3191
3192
3193 # We'll loop over all known methods to create a tar archive until one works.
3194 _am_tools='gnutar pax cpio none'
3195
3196 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3197
3198
3199
3200
3201
3202
3203 # Check whether --enable-silent-rules was given.
3204 if test "${enable_silent_rules+set}" = set; then :
3205 enableval=$enable_silent_rules;
3206 fi
3207
3208 case $enable_silent_rules in # (((
3209 yes) AM_DEFAULT_VERBOSITY=0;;
3210 no) AM_DEFAULT_VERBOSITY=1;;
3211 *) AM_DEFAULT_VERBOSITY=0;;
3212 esac
3213 am_make=${MAKE-make}
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3215 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3216 if ${am_cv_make_support_nested_variables+:} false; then :
3217 $as_echo_n "(cached) " >&6
3218 else
3219 if $as_echo 'TRUE=$(BAR$(V))
3220 BAR0=false
3221 BAR1=true
3222 V=1
3223 am__doit:
3224 @$(TRUE)
3225 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3226 am_cv_make_support_nested_variables=yes
3227 else
3228 am_cv_make_support_nested_variables=no
3229 fi
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3232 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3233 if test $am_cv_make_support_nested_variables = yes; then
3234 AM_V='$(V)'
3235 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3236 else
3237 AM_V=$AM_DEFAULT_VERBOSITY
3238 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3239 fi
3240 AM_BACKSLASH='\'
3241
3242
3243
3244 LIBT_CURRENT=9
3245 LIBT_REVISION=0
3246
3247
3248 LIBT_AGE=8
3249
3250 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
3251
3252
3253 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
3254
3255
3256 PKGCONFIG_REQUIRES=
3257 PKGCONFIG_REQUIRES_PRIVATELY=
3258
3259
3260 ac_config_headers="$ac_config_headers config.h"
3261
3262
3263
3264 ac_ext=c
3265 ac_cpp='$CPP $CPPFLAGS'
3266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3269 if test -n "$ac_tool_prefix"; then
3270 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3271 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3273 $as_echo_n "checking for $ac_word... " >&6; }
3274 if ${ac_cv_prog_CC+:} false; then :
3275 $as_echo_n "(cached) " >&6
3276 else
3277 if test -n "$CC"; then
3278 ac_cv_prog_CC="$CC" # Let the user override the test.
3279 else
3280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3281 for as_dir in $PATH
3282 do
3283 IFS=$as_save_IFS
3284 test -z "$as_dir" && as_dir=.
3285 for ac_exec_ext in '' $ac_executable_extensions; do
3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3287 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3289 break 2
3290 fi
3291 done
3292 done
3293 IFS=$as_save_IFS
3294
3295 fi
3296 fi
3297 CC=$ac_cv_prog_CC
3298 if test -n "$CC"; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3300 $as_echo "$CC" >&6; }
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 fi
3305
3306
3307 fi
3308 if test -z "$ac_cv_prog_CC"; then
3309 ac_ct_CC=$CC
3310 # Extract the first word of "gcc", so it can be a program name with args.
3311 set dummy gcc; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if test -n "$ac_ct_CC"; then
3318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3322 do
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_ac_ct_CC="gcc"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3330 fi
3331 done
3332 done
3333 IFS=$as_save_IFS
3334
3335 fi
3336 fi
3337 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3338 if test -n "$ac_ct_CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3340 $as_echo "$ac_ct_CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3344 fi
3345
3346 if test "x$ac_ct_CC" = x; then
3347 CC=""
3348 else
3349 case $cross_compiling:$ac_tool_warned in
3350 yes:)
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3352 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3353 ac_tool_warned=yes ;;
3354 esac
3355 CC=$ac_ct_CC
3356 fi
3357 else
3358 CC="$ac_cv_prog_CC"
3359 fi
3360
3361 if test -z "$CC"; then
3362 if test -n "$ac_tool_prefix"; then
3363 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3364 set dummy ${ac_tool_prefix}cc; ac_word=$2
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3366 $as_echo_n "checking for $ac_word... " >&6; }
3367 if ${ac_cv_prog_CC+:} false; then :
3368 $as_echo_n "(cached) " >&6
3369 else
3370 if test -n "$CC"; then
3371 ac_cv_prog_CC="$CC" # Let the user override the test.
3372 else
3373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3374 for as_dir in $PATH
3375 do
3376 IFS=$as_save_IFS
3377 test -z "$as_dir" && as_dir=.
3378 for ac_exec_ext in '' $ac_executable_extensions; do
3379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3380 ac_cv_prog_CC="${ac_tool_prefix}cc"
3381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3382 break 2
3383 fi
3384 done
3385 done
3386 IFS=$as_save_IFS
3387
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3393 $as_echo "$CC" >&6; }
3394 else
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 fi
3398
3399
3400 fi
3401 fi
3402 if test -z "$CC"; then
3403 # Extract the first word of "cc", so it can be a program name with args.
3404 set dummy cc; ac_word=$2
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3406 $as_echo_n "checking for $ac_word... " >&6; }
3407 if ${ac_cv_prog_CC+:} false; then :
3408 $as_echo_n "(cached) " >&6
3409 else
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC="$CC" # Let the user override the test.
3412 else
3413 ac_prog_rejected=no
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3421 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3422 ac_prog_rejected=yes
3423 continue
3424 fi
3425 ac_cv_prog_CC="cc"
3426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427 break 2
3428 fi
3429 done
3430 done
3431 IFS=$as_save_IFS
3432
3433 if test $ac_prog_rejected = yes; then
3434 # We found a bogon in the path, so make sure we never use it.
3435 set dummy $ac_cv_prog_CC
3436 shift
3437 if test $# != 0; then
3438 # We chose a different compiler from the bogus one.
3439 # However, it has the same basename, so the bogon will be chosen
3440 # first if we set CC to just the basename; use the full file name.
3441 shift
3442 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3443 fi
3444 fi
3445 fi
3446 fi
3447 CC=$ac_cv_prog_CC
3448 if test -n "$CC"; then
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3450 $as_echo "$CC" >&6; }
3451 else
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3453 $as_echo "no" >&6; }
3454 fi
3455
3456
3457 fi
3458 if test -z "$CC"; then
3459 if test -n "$ac_tool_prefix"; then
3460 for ac_prog in cl.exe
3461 do
3462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_prog_CC+:} false; then :
3467 $as_echo_n "(cached) " >&6
3468 else
3469 if test -n "$CC"; then
3470 ac_cv_prog_CC="$CC" # Let the user override the test.
3471 else
3472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3473 for as_dir in $PATH
3474 do
3475 IFS=$as_save_IFS
3476 test -z "$as_dir" && as_dir=.
3477 for ac_exec_ext in '' $ac_executable_extensions; do
3478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3479 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3481 break 2
3482 fi
3483 done
3484 done
3485 IFS=$as_save_IFS
3486
3487 fi
3488 fi
3489 CC=$ac_cv_prog_CC
3490 if test -n "$CC"; then
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3492 $as_echo "$CC" >&6; }
3493 else
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3495 $as_echo "no" >&6; }
3496 fi
3497
3498
3499 test -n "$CC" && break
3500 done
3501 fi
3502 if test -z "$CC"; then
3503 ac_ct_CC=$CC
3504 for ac_prog in cl.exe
3505 do
3506 # Extract the first word of "$ac_prog", so it can be a program name with args.
3507 set dummy $ac_prog; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3518 do
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_prog_ac_ct_CC="$ac_prog"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3526 fi
3527 done
3528 done
3529 IFS=$as_save_IFS
3530
3531 fi
3532 fi
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536 $as_echo "$ac_ct_CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3540 fi
3541
3542
3543 test -n "$ac_ct_CC" && break
3544 done
3545
3546 if test "x$ac_ct_CC" = x; then
3547 CC=""
3548 else
3549 case $cross_compiling:$ac_tool_warned in
3550 yes:)
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3554 esac
3555 CC=$ac_ct_CC
3556 fi
3557 fi
3558
3559 fi
3560
3561
3562 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3564 as_fn_error $? "no acceptable C compiler found in \$PATH
3565 See \`config.log' for more details" "$LINENO" 5; }
3566
3567 # Provide some information about the compiler.
3568 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3569 set X $ac_compile
3570 ac_compiler=$2
3571 for ac_option in --version -v -V -qversion; do
3572 { { ac_try="$ac_compiler $ac_option >&5"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3580 ac_status=$?
3581 if test -s conftest.err; then
3582 sed '10a\
3583 ... rest of stderr output deleted ...
3584 10q' conftest.err >conftest.er1
3585 cat conftest.er1 >&5
3586 fi
3587 rm -f conftest.er1 conftest.err
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }
3590 done
3591
3592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3593 /* end confdefs.h. */
3594
3595 int
3596 main ()
3597 {
3598
3599 ;
3600 return 0;
3601 }
3602 _ACEOF
3603 ac_clean_files_save=$ac_clean_files
3604 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3605 # Try to create an executable without -o first, disregard a.out.
3606 # It will help us diagnose broken compilers, and finding out an intuition
3607 # of exeext.
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3609 $as_echo_n "checking whether the C compiler works... " >&6; }
3610 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3611
3612 # The possible output files:
3613 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3614
3615 ac_rmfiles=
3616 for ac_file in $ac_files
3617 do
3618 case $ac_file in
3619 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3620 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3621 esac
3622 done
3623 rm -f $ac_rmfiles
3624
3625 if { { ac_try="$ac_link_default"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_link_default") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3637 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3638 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3639 # so that the user can short-circuit this test for compilers unknown to
3640 # Autoconf.
3641 for ac_file in $ac_files ''
3642 do
3643 test -f "$ac_file" || continue
3644 case $ac_file in
3645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3646 ;;
3647 [ab].out )
3648 # We found the default executable, but exeext='' is most
3649 # certainly right.
3650 break;;
3651 *.* )
3652 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3653 then :; else
3654 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3655 fi
3656 # We set ac_cv_exeext here because the later test for it is not
3657 # safe: cross compilers may not add the suffix if given an `-o'
3658 # argument, so we may need to know it at that point already.
3659 # Even if this section looks crufty: it has the advantage of
3660 # actually working.
3661 break;;
3662 * )
3663 break;;
3664 esac
3665 done
3666 test "$ac_cv_exeext" = no && ac_cv_exeext=
3667
3668 else
3669 ac_file=''
3670 fi
3671 if test -z "$ac_file"; then :
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3673 $as_echo "no" >&6; }
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3676
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error 77 "C compiler cannot create executables
3680 See \`config.log' for more details" "$LINENO" 5; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3683 $as_echo "yes" >&6; }
3684 fi
3685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3686 $as_echo_n "checking for C compiler default output file name... " >&6; }
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3688 $as_echo "$ac_file" >&6; }
3689 ac_exeext=$ac_cv_exeext
3690
3691 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3692 ac_clean_files=$ac_clean_files_save
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3694 $as_echo_n "checking for suffix of executables... " >&6; }
3695 if { { ac_try="$ac_link"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701 $as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_link") 2>&5
3703 ac_status=$?
3704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3705 test $ac_status = 0; }; then :
3706 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3707 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3708 # work properly (i.e., refer to `conftest.exe'), while it won't with
3709 # `rm'.
3710 for ac_file in conftest.exe conftest conftest.*; do
3711 test -f "$ac_file" || continue
3712 case $ac_file in
3713 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3714 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3715 break;;
3716 * ) break;;
3717 esac
3718 done
3719 else
3720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3722 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3723 See \`config.log' for more details" "$LINENO" 5; }
3724 fi
3725 rm -f conftest conftest$ac_cv_exeext
3726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3727 $as_echo "$ac_cv_exeext" >&6; }
3728
3729 rm -f conftest.$ac_ext
3730 EXEEXT=$ac_cv_exeext
3731 ac_exeext=$EXEEXT
3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3733 /* end confdefs.h. */
3734 #include <stdio.h>
3735 int
3736 main ()
3737 {
3738 FILE *f = fopen ("conftest.out", "w");
3739 return ferror (f) || fclose (f) != 0;
3740
3741 ;
3742 return 0;
3743 }
3744 _ACEOF
3745 ac_clean_files="$ac_clean_files conftest.out"
3746 # Check that the compiler produces executables we can run. If not, either
3747 # the compiler is broken, or we cross compile.
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3749 $as_echo_n "checking whether we are cross compiling... " >&6; }
3750 if test "$cross_compiling" != yes; then
3751 { { ac_try="$ac_link"
3752 case "(($ac_try" in
3753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3754 *) ac_try_echo=$ac_try;;
3755 esac
3756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3757 $as_echo "$ac_try_echo"; } >&5
3758 (eval "$ac_link") 2>&5
3759 ac_status=$?
3760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3761 test $ac_status = 0; }
3762 if { ac_try='./conftest$ac_cv_exeext'
3763 { { case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766 esac
3767 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3768 $as_echo "$ac_try_echo"; } >&5
3769 (eval "$ac_try") 2>&5
3770 ac_status=$?
3771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3772 test $ac_status = 0; }; }; then
3773 cross_compiling=no
3774 else
3775 if test "$cross_compiling" = maybe; then
3776 cross_compiling=yes
3777 else
3778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3779 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3780 as_fn_error $? "cannot run C compiled programs.
3781 If you meant to cross compile, use \`--host'.
3782 See \`config.log' for more details" "$LINENO" 5; }
3783 fi
3784 fi
3785 fi
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3787 $as_echo "$cross_compiling" >&6; }
3788
3789 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3790 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3792 $as_echo_n "checking for suffix of object files... " >&6; }
3793 if ${ac_cv_objext+:} false; then :
3794 $as_echo_n "(cached) " >&6
3795 else
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798
3799 int
3800 main ()
3801 {
3802
3803 ;
3804 return 0;
3805 }
3806 _ACEOF
3807 rm -f conftest.o conftest.obj
3808 if { { ac_try="$ac_compile"
3809 case "(($ac_try" in
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3812 esac
3813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3814 $as_echo "$ac_try_echo"; } >&5
3815 (eval "$ac_compile") 2>&5
3816 ac_status=$?
3817 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3818 test $ac_status = 0; }; then :
3819 for ac_file in conftest.o conftest.obj conftest.*; do
3820 test -f "$ac_file" || continue;
3821 case $ac_file in
3822 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3823 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3824 break;;
3825 esac
3826 done
3827 else
3828 $as_echo "$as_me: failed program was:" >&5
3829 sed 's/^/| /' conftest.$ac_ext >&5
3830
3831 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3832 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3833 as_fn_error $? "cannot compute suffix of object files: cannot compile
3834 See \`config.log' for more details" "$LINENO" 5; }
3835 fi
3836 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3837 fi
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3839 $as_echo "$ac_cv_objext" >&6; }
3840 OBJEXT=$ac_cv_objext
3841 ac_objext=$OBJEXT
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3843 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3844 if ${ac_cv_c_compiler_gnu+:} false; then :
3845 $as_echo_n "(cached) " >&6
3846 else
3847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3848 /* end confdefs.h. */
3849
3850 int
3851 main ()
3852 {
3853 #ifndef __GNUC__
3854 choke me
3855 #endif
3856
3857 ;
3858 return 0;
3859 }
3860 _ACEOF
3861 if ac_fn_c_try_compile "$LINENO"; then :
3862 ac_compiler_gnu=yes
3863 else
3864 ac_compiler_gnu=no
3865 fi
3866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3867 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3868
3869 fi
3870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3871 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3872 if test $ac_compiler_gnu = yes; then
3873 GCC=yes
3874 else
3875 GCC=
3876 fi
3877 ac_test_CFLAGS=${CFLAGS+set}
3878 ac_save_CFLAGS=$CFLAGS
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3880 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3881 if ${ac_cv_prog_cc_g+:} false; then :
3882 $as_echo_n "(cached) " >&6
3883 else
3884 ac_save_c_werror_flag=$ac_c_werror_flag
3885 ac_c_werror_flag=yes
3886 ac_cv_prog_cc_g=no
3887 CFLAGS="-g"
3888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3889 /* end confdefs.h. */
3890
3891 int
3892 main ()
3893 {
3894
3895 ;
3896 return 0;
3897 }
3898 _ACEOF
3899 if ac_fn_c_try_compile "$LINENO"; then :
3900 ac_cv_prog_cc_g=yes
3901 else
3902 CFLAGS=""
3903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3904 /* end confdefs.h. */
3905
3906 int
3907 main ()
3908 {
3909
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 if ac_fn_c_try_compile "$LINENO"; then :
3915
3916 else
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3918 CFLAGS="-g"
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main ()
3924 {
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 if ac_fn_c_try_compile "$LINENO"; then :
3931 ac_cv_prog_cc_g=yes
3932 fi
3933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3934 fi
3935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3936 fi
3937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3938 ac_c_werror_flag=$ac_save_c_werror_flag
3939 fi
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3941 $as_echo "$ac_cv_prog_cc_g" >&6; }
3942 if test "$ac_test_CFLAGS" = set; then
3943 CFLAGS=$ac_save_CFLAGS
3944 elif test $ac_cv_prog_cc_g = yes; then
3945 if test "$GCC" = yes; then
3946 CFLAGS="-g -O2"
3947 else
3948 CFLAGS="-g"
3949 fi
3950 else
3951 if test "$GCC" = yes; then
3952 CFLAGS="-O2"
3953 else
3954 CFLAGS=
3955 fi
3956 fi
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3958 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3959 if ${ac_cv_prog_cc_c89+:} false; then :
3960 $as_echo_n "(cached) " >&6
3961 else
3962 ac_cv_prog_cc_c89=no
3963 ac_save_CC=$CC
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965 /* end confdefs.h. */
3966 #include <stdarg.h>
3967 #include <stdio.h>
3968 struct stat;
3969 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3970 struct buf { int x; };
3971 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3972 static char *e (p, i)
3973 char **p;
3974 int i;
3975 {
3976 return p[i];
3977 }
3978 static char *f (char * (*g) (char **, int), char **p, ...)
3979 {
3980 char *s;
3981 va_list v;
3982 va_start (v,p);
3983 s = g (p, va_arg (v,int));
3984 va_end (v);
3985 return s;
3986 }
3987
3988 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3989 function prototypes and stuff, but not '\xHH' hex character constants.
3990 These don't provoke an error unfortunately, instead are silently treated
3991 as 'x'. The following induces an error, until -std is added to get
3992 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3993 array size at least. It's necessary to write '\x00'==0 to get something
3994 that's true only with -std. */
3995 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3996
3997 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3998 inside strings and character constants. */
3999 #define FOO(x) 'x'
4000 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4001
4002 int test (int i, double x);
4003 struct s1 {int (*f) (int a);};
4004 struct s2 {int (*f) (double a);};
4005 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4006 int argc;
4007 char **argv;
4008 int
4009 main ()
4010 {
4011 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4012 ;
4013 return 0;
4014 }
4015 _ACEOF
4016 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4017 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4018 do
4019 CC="$ac_save_CC $ac_arg"
4020 if ac_fn_c_try_compile "$LINENO"; then :
4021 ac_cv_prog_cc_c89=$ac_arg
4022 fi
4023 rm -f core conftest.err conftest.$ac_objext
4024 test "x$ac_cv_prog_cc_c89" != "xno" && break
4025 done
4026 rm -f conftest.$ac_ext
4027 CC=$ac_save_CC
4028
4029 fi
4030 # AC_CACHE_VAL
4031 case "x$ac_cv_prog_cc_c89" in
4032 x)
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4034 $as_echo "none needed" >&6; } ;;
4035 xno)
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4037 $as_echo "unsupported" >&6; } ;;
4038 *)
4039 CC="$CC $ac_cv_prog_cc_c89"
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4041 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4042 esac
4043 if test "x$ac_cv_prog_cc_c89" != xno; then :
4044
4045 fi
4046
4047 ac_ext=c
4048 ac_cpp='$CPP $CPPFLAGS'
4049 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4050 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4051 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4052 DEPDIR="${am__leading_dot}deps"
4053
4054 ac_config_commands="$ac_config_commands depfiles"
4055
4056
4057 am_make=${MAKE-make}
4058 cat > confinc << 'END'
4059 am__doit:
4060 @echo this is the am__doit target
4061 .PHONY: am__doit
4062 END
4063 # If we don't find an include directive, just comment out the code.
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4065 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4066 am__include="#"
4067 am__quote=
4068 _am_result=none
4069 # First try GNU make style include.
4070 echo "include confinc" > confmf
4071 # Ignore all kinds of additional output from 'make'.
4072 case `$am_make -s -f confmf 2> /dev/null` in #(
4073 *the\ am__doit\ target*)
4074 am__include=include
4075 am__quote=
4076 _am_result=GNU
4077 ;;
4078 esac
4079 # Now try BSD make style include.
4080 if test "$am__include" = "#"; then
4081 echo '.include "confinc"' > confmf
4082 case `$am_make -s -f confmf 2> /dev/null` in #(
4083 *the\ am__doit\ target*)
4084 am__include=.include
4085 am__quote="\""
4086 _am_result=BSD
4087 ;;
4088 esac
4089 fi
4090
4091
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4093 $as_echo "$_am_result" >&6; }
4094 rm -f confinc confmf
4095
4096 # Check whether --enable-dependency-tracking was given.
4097 if test "${enable_dependency_tracking+set}" = set; then :
4098 enableval=$enable_dependency_tracking;
4099 fi
4100
4101 if test "x$enable_dependency_tracking" != xno; then
4102 am_depcomp="$ac_aux_dir/depcomp"
4103 AMDEPBACKSLASH='\'
4104 am__nodep='_no'
4105 fi
4106 if test "x$enable_dependency_tracking" != xno; then
4107 AMDEP_TRUE=
4108 AMDEP_FALSE='#'
4109 else
4110 AMDEP_TRUE='#'
4111 AMDEP_FALSE=
4112 fi
4113
4114
4115
4116 depcc="$CC" am_compiler_list=
4117
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4119 $as_echo_n "checking dependency style of $depcc... " >&6; }
4120 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4124 # We make a subdir and do the tests there. Otherwise we can end up
4125 # making bogus files that we don't know about and never remove. For
4126 # instance it was reported that on HP-UX the gcc test will end up
4127 # making a dummy file named 'D' -- because '-MD' means "put the output
4128 # in D".
4129 rm -rf conftest.dir
4130 mkdir conftest.dir
4131 # Copy depcomp to subdir because otherwise we won't find it if we're
4132 # using a relative directory.
4133 cp "$am_depcomp" conftest.dir
4134 cd conftest.dir
4135 # We will build objects and dependencies in a subdirectory because
4136 # it helps to detect inapplicable dependency modes. For instance
4137 # both Tru64's cc and ICC support -MD to output dependencies as a
4138 # side effect of compilation, but ICC will put the dependencies in
4139 # the current directory while Tru64 will put them in the object
4140 # directory.
4141 mkdir sub
4142
4143 am_cv_CC_dependencies_compiler_type=none
4144 if test "$am_compiler_list" = ""; then
4145 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4146 fi
4147 am__universal=false
4148 case " $depcc " in #(
4149 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4150 esac
4151
4152 for depmode in $am_compiler_list; do
4153 # Setup a source with many dependencies, because some compilers
4154 # like to wrap large dependency lists on column 80 (with \), and
4155 # we should not choose a depcomp mode which is confused by this.
4156 #
4157 # We need to recreate these files for each test, as the compiler may
4158 # overwrite some of them when testing with obscure command lines.
4159 # This happens at least with the AIX C compiler.
4160 : > sub/conftest.c
4161 for i in 1 2 3 4 5 6; do
4162 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4163 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4164 # Solaris 10 /bin/sh.
4165 echo '/* dummy */' > sub/conftst$i.h
4166 done
4167 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4168
4169 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4170 # mode. It turns out that the SunPro C++ compiler does not properly
4171 # handle '-M -o', and we need to detect this. Also, some Intel
4172 # versions had trouble with output in subdirs.
4173 am__obj=sub/conftest.${OBJEXT-o}
4174 am__minus_obj="-o $am__obj"
4175 case $depmode in
4176 gcc)
4177 # This depmode causes a compiler race in universal mode.
4178 test "$am__universal" = false || continue
4179 ;;
4180 nosideeffect)
4181 # After this tag, mechanisms are not by side-effect, so they'll
4182 # only be used when explicitly requested.
4183 if test "x$enable_dependency_tracking" = xyes; then
4184 continue
4185 else
4186 break
4187 fi
4188 ;;
4189 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4190 # This compiler won't grok '-c -o', but also, the minuso test has
4191 # not run yet. These depmodes are late enough in the game, and
4192 # so weak that their functioning should not be impacted.
4193 am__obj=conftest.${OBJEXT-o}
4194 am__minus_obj=
4195 ;;
4196 none) break ;;
4197 esac
4198 if depmode=$depmode \
4199 source=sub/conftest.c object=$am__obj \
4200 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4201 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4202 >/dev/null 2>conftest.err &&
4203 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4204 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4205 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4206 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4207 # icc doesn't choke on unknown options, it will just issue warnings
4208 # or remarks (even with -Werror). So we grep stderr for any message
4209 # that says an option was ignored or not supported.
4210 # When given -MP, icc 7.0 and 7.1 complain thusly:
4211 # icc: Command line warning: ignoring option '-M'; no argument required
4212 # The diagnosis changed in icc 8.0:
4213 # icc: Command line remark: option '-MP' not supported
4214 if (grep 'ignoring option' conftest.err ||
4215 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4216 am_cv_CC_dependencies_compiler_type=$depmode
4217 break
4218 fi
4219 fi
4220 done
4221
4222 cd ..
4223 rm -rf conftest.dir
4224 else
4225 am_cv_CC_dependencies_compiler_type=none
4226 fi
4227
4228 fi
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4230 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4231 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4232
4233 if
4234 test "x$enable_dependency_tracking" != xno \
4235 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4236 am__fastdepCC_TRUE=
4237 am__fastdepCC_FALSE='#'
4238 else
4239 am__fastdepCC_TRUE='#'
4240 am__fastdepCC_FALSE=
4241 fi
4242
4243
4244
4245 ac_ext=c
4246 ac_cpp='$CPP $CPPFLAGS'
4247 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4248 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4249 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4251 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4252 # On Suns, sometimes $CPP names a directory.
4253 if test -n "$CPP" && test -d "$CPP"; then
4254 CPP=
4255 fi
4256 if test -z "$CPP"; then
4257 if ${ac_cv_prog_CPP+:} false; then :
4258 $as_echo_n "(cached) " >&6
4259 else
4260 # Double quotes because CPP needs to be expanded
4261 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4262 do
4263 ac_preproc_ok=false
4264 for ac_c_preproc_warn_flag in '' yes
4265 do
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error" is here to catch this case.
4272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4274 #ifdef __STDC__
4275 # include <limits.h>
4276 #else
4277 # include <assert.h>
4278 #endif
4279 Syntax error
4280 _ACEOF
4281 if ac_fn_c_try_cpp "$LINENO"; then :
4282
4283 else
4284 # Broken: fails on valid input.
4285 continue
4286 fi
4287 rm -f conftest.err conftest.i conftest.$ac_ext
4288
4289 # OK, works on sane cases. Now check whether nonexistent headers
4290 # can be detected and how.
4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4294 _ACEOF
4295 if ac_fn_c_try_cpp "$LINENO"; then :
4296 # Broken: success on invalid input.
4297 continue
4298 else
4299 # Passes both tests.
4300 ac_preproc_ok=:
4301 break
4302 fi
4303 rm -f conftest.err conftest.i conftest.$ac_ext
4304
4305 done
4306 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4307 rm -f conftest.i conftest.err conftest.$ac_ext
4308 if $ac_preproc_ok; then :
4309 break
4310 fi
4311
4312 done
4313 ac_cv_prog_CPP=$CPP
4314
4315 fi
4316 CPP=$ac_cv_prog_CPP
4317 else
4318 ac_cv_prog_CPP=$CPP
4319 fi
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4321 $as_echo "$CPP" >&6; }
4322 ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4324 do
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #ifdef __STDC__
4334 # include <limits.h>
4335 #else
4336 # include <assert.h>
4337 #endif
4338 Syntax error
4339 _ACEOF
4340 if ac_fn_c_try_cpp "$LINENO"; then :
4341
4342 else
4343 # Broken: fails on valid input.
4344 continue
4345 fi
4346 rm -f conftest.err conftest.i conftest.$ac_ext
4347
4348 # OK, works on sane cases. Now check whether nonexistent headers
4349 # can be detected and how.
4350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4351 /* end confdefs.h. */
4352 #include <ac_nonexistent.h>
4353 _ACEOF
4354 if ac_fn_c_try_cpp "$LINENO"; then :
4355 # Broken: success on invalid input.
4356 continue
4357 else
4358 # Passes both tests.
4359 ac_preproc_ok=:
4360 break
4361 fi
4362 rm -f conftest.err conftest.i conftest.$ac_ext
4363
4364 done
4365 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4366 rm -f conftest.i conftest.err conftest.$ac_ext
4367 if $ac_preproc_ok; then :
4368
4369 else
4370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4371 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4372 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4373 See \`config.log' for more details" "$LINENO" 5; }
4374 fi
4375
4376 ac_ext=c
4377 ac_cpp='$CPP $CPPFLAGS'
4378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4381
4382
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4384 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4385 if ${ac_cv_path_GREP+:} false; then :
4386 $as_echo_n "(cached) " >&6
4387 else
4388 if test -z "$GREP"; then
4389 ac_path_GREP_found=false
4390 # Loop through the user's path and test for each of PROGNAME-LIST
4391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4392 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4393 do
4394 IFS=$as_save_IFS
4395 test -z "$as_dir" && as_dir=.
4396 for ac_prog in grep ggrep; do
4397 for ac_exec_ext in '' $ac_executable_extensions; do
4398 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4399 as_fn_executable_p "$ac_path_GREP" || continue
4400 # Check for GNU ac_path_GREP and select it if it is found.
4401 # Check for GNU $ac_path_GREP
4402 case `"$ac_path_GREP" --version 2>&1` in
4403 *GNU*)
4404 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4405 *)
4406 ac_count=0
4407 $as_echo_n 0123456789 >"conftest.in"
4408 while :
4409 do
4410 cat "conftest.in" "conftest.in" >"conftest.tmp"
4411 mv "conftest.tmp" "conftest.in"
4412 cp "conftest.in" "conftest.nl"
4413 $as_echo 'GREP' >> "conftest.nl"
4414 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4415 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4416 as_fn_arith $ac_count + 1 && ac_count=$as_val
4417 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4418 # Best one so far, save it but keep looking for a better one
4419 ac_cv_path_GREP="$ac_path_GREP"
4420 ac_path_GREP_max=$ac_count
4421 fi
4422 # 10*(2^10) chars as input seems more than enough
4423 test $ac_count -gt 10 && break
4424 done
4425 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4426 esac
4427
4428 $ac_path_GREP_found && break 3
4429 done
4430 done
4431 done
4432 IFS=$as_save_IFS
4433 if test -z "$ac_cv_path_GREP"; then
4434 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4435 fi
4436 else
4437 ac_cv_path_GREP=$GREP
4438 fi
4439
4440 fi
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4442 $as_echo "$ac_cv_path_GREP" >&6; }
4443 GREP="$ac_cv_path_GREP"
4444
4445
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4447 $as_echo_n "checking for egrep... " >&6; }
4448 if ${ac_cv_path_EGREP+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4451 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4452 then ac_cv_path_EGREP="$GREP -E"
4453 else
4454 if test -z "$EGREP"; then
4455 ac_path_EGREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459 do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in egrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_EGREP" || continue
4466 # Check for GNU ac_path_EGREP and select it if it is found.
4467 # Check for GNU $ac_path_EGREP
4468 case `"$ac_path_EGREP" --version 2>&1` in
4469 *GNU*)
4470 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4471 *)
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4475 do
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'EGREP' >> "conftest.nl"
4480 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_EGREP="$ac_path_EGREP"
4486 ac_path_EGREP_max=$ac_count
4487 fi
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492 esac
4493
4494 $ac_path_EGREP_found && break 3
4495 done
4496 done
4497 done
4498 IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_EGREP"; then
4500 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 fi
4502 else
4503 ac_cv_path_EGREP=$EGREP
4504 fi
4505
4506 fi
4507 fi
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4509 $as_echo "$ac_cv_path_EGREP" >&6; }
4510 EGREP="$ac_cv_path_EGREP"
4511
4512
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4514 $as_echo_n "checking for ANSI C header files... " >&6; }
4515 if ${ac_cv_header_stdc+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* end confdefs.h. */
4520 #include <stdlib.h>
4521 #include <stdarg.h>
4522 #include <string.h>
4523 #include <float.h>
4524
4525 int
4526 main ()
4527 {
4528
4529 ;
4530 return 0;
4531 }
4532 _ACEOF
4533 if ac_fn_c_try_compile "$LINENO"; then :
4534 ac_cv_header_stdc=yes
4535 else
4536 ac_cv_header_stdc=no
4537 fi
4538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539
4540 if test $ac_cv_header_stdc = yes; then
4541 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4543 /* end confdefs.h. */
4544 #include <string.h>
4545
4546 _ACEOF
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "memchr" >/dev/null 2>&1; then :
4549
4550 else
4551 ac_cv_header_stdc=no
4552 fi
4553 rm -f conftest*
4554
4555 fi
4556
4557 if test $ac_cv_header_stdc = yes; then
4558 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4560 /* end confdefs.h. */
4561 #include <stdlib.h>
4562
4563 _ACEOF
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "free" >/dev/null 2>&1; then :
4566
4567 else
4568 ac_cv_header_stdc=no
4569 fi
4570 rm -f conftest*
4571
4572 fi
4573
4574 if test $ac_cv_header_stdc = yes; then
4575 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4576 if test "$cross_compiling" = yes; then :
4577 :
4578 else
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <ctype.h>
4582 #include <stdlib.h>
4583 #if ((' ' & 0x0FF) == 0x020)
4584 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4585 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4586 #else
4587 # define ISLOWER(c) \
4588 (('a' <= (c) && (c) <= 'i') \
4589 || ('j' <= (c) && (c) <= 'r') \
4590 || ('s' <= (c) && (c) <= 'z'))
4591 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4592 #endif
4593
4594 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4595 int
4596 main ()
4597 {
4598 int i;
4599 for (i = 0; i < 256; i++)
4600 if (XOR (islower (i), ISLOWER (i))
4601 || toupper (i) != TOUPPER (i))
4602 return 2;
4603 return 0;
4604 }
4605 _ACEOF
4606 if ac_fn_c_try_run "$LINENO"; then :
4607
4608 else
4609 ac_cv_header_stdc=no
4610 fi
4611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4612 conftest.$ac_objext conftest.beam conftest.$ac_ext
4613 fi
4614
4615 fi
4616 fi
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4618 $as_echo "$ac_cv_header_stdc" >&6; }
4619 if test $ac_cv_header_stdc = yes; then
4620
4621 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4622
4623 fi
4624
4625 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4626 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4627 inttypes.h stdint.h unistd.h
4628 do :
4629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4630 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4631 "
4632 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4633 cat >>confdefs.h <<_ACEOF
4634 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4635 _ACEOF
4636
4637 fi
4638
4639 done
4640
4641
4642
4643 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4644 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4645 MINIX=yes
4646 else
4647 MINIX=
4648 fi
4649
4650
4651 if test "$MINIX" = yes; then
4652
4653 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4654
4655
4656 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4657
4658
4659 $as_echo "#define _MINIX 1" >>confdefs.h
4660
4661 fi
4662
4663
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4665 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4666 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4667 $as_echo_n "(cached) " >&6
4668 else
4669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4670 /* end confdefs.h. */
4671
4672 # define __EXTENSIONS__ 1
4673 $ac_includes_default
4674 int
4675 main ()
4676 {
4677
4678 ;
4679 return 0;
4680 }
4681 _ACEOF
4682 if ac_fn_c_try_compile "$LINENO"; then :
4683 ac_cv_safe_to_define___extensions__=yes
4684 else
4685 ac_cv_safe_to_define___extensions__=no
4686 fi
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4690 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4691 test $ac_cv_safe_to_define___extensions__ = yes &&
4692 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4693
4694 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4695
4696 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4697
4698 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4699
4700 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4701
4702
4703 # Check whether --enable-largefile was given.
4704 if test "${enable_largefile+set}" = set; then :
4705 enableval=$enable_largefile;
4706 fi
4707
4708 if test "$enable_largefile" != no; then
4709
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4711 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4712 if ${ac_cv_sys_largefile_CC+:} false; then :
4713 $as_echo_n "(cached) " >&6
4714 else
4715 ac_cv_sys_largefile_CC=no
4716 if test "$GCC" != yes; then
4717 ac_save_CC=$CC
4718 while :; do
4719 # IRIX 6.2 and later do not support large files by default,
4720 # so use the C compiler's -n32 option if that helps.
4721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4723 #include <sys/types.h>
4724 /* Check that off_t can represent 2**63 - 1 correctly.
4725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4726 since some C++ compilers masquerading as C compilers
4727 incorrectly reject 9223372036854775807. */
4728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4730 && LARGE_OFF_T % 2147483647 == 1)
4731 ? 1 : -1];
4732 int
4733 main ()
4734 {
4735
4736 ;
4737 return 0;
4738 }
4739 _ACEOF
4740 if ac_fn_c_try_compile "$LINENO"; then :
4741 break
4742 fi
4743 rm -f core conftest.err conftest.$ac_objext
4744 CC="$CC -n32"
4745 if ac_fn_c_try_compile "$LINENO"; then :
4746 ac_cv_sys_largefile_CC=' -n32'; break
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext
4749 break
4750 done
4751 CC=$ac_save_CC
4752 rm -f conftest.$ac_ext
4753 fi
4754 fi
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4756 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4757 if test "$ac_cv_sys_largefile_CC" != no; then
4758 CC=$CC$ac_cv_sys_largefile_CC
4759 fi
4760
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4762 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4763 if ${ac_cv_sys_file_offset_bits+:} false; then :
4764 $as_echo_n "(cached) " >&6
4765 else
4766 while :; do
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4769 #include <sys/types.h>
4770 /* Check that off_t can represent 2**63 - 1 correctly.
4771 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4772 since some C++ compilers masquerading as C compilers
4773 incorrectly reject 9223372036854775807. */
4774 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4775 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4776 && LARGE_OFF_T % 2147483647 == 1)
4777 ? 1 : -1];
4778 int
4779 main ()
4780 {
4781
4782 ;
4783 return 0;
4784 }
4785 _ACEOF
4786 if ac_fn_c_try_compile "$LINENO"; then :
4787 ac_cv_sys_file_offset_bits=no; break
4788 fi
4789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #define _FILE_OFFSET_BITS 64
4793 #include <sys/types.h>
4794 /* Check that off_t can represent 2**63 - 1 correctly.
4795 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4796 since some C++ compilers masquerading as C compilers
4797 incorrectly reject 9223372036854775807. */
4798 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4799 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4800 && LARGE_OFF_T % 2147483647 == 1)
4801 ? 1 : -1];
4802 int
4803 main ()
4804 {
4805
4806 ;
4807 return 0;
4808 }
4809 _ACEOF
4810 if ac_fn_c_try_compile "$LINENO"; then :
4811 ac_cv_sys_file_offset_bits=64; break
4812 fi
4813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4814 ac_cv_sys_file_offset_bits=unknown
4815 break
4816 done
4817 fi
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4819 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4820 case $ac_cv_sys_file_offset_bits in #(
4821 no | unknown) ;;
4822 *)
4823 cat >>confdefs.h <<_ACEOF
4824 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4825 _ACEOF
4826 ;;
4827 esac
4828 rm -rf conftest*
4829 if test $ac_cv_sys_file_offset_bits = unknown; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4831 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4832 if ${ac_cv_sys_large_files+:} false; then :
4833 $as_echo_n "(cached) " >&6
4834 else
4835 while :; do
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h. */
4838 #include <sys/types.h>
4839 /* Check that off_t can represent 2**63 - 1 correctly.
4840 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4841 since some C++ compilers masquerading as C compilers
4842 incorrectly reject 9223372036854775807. */
4843 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4844 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4845 && LARGE_OFF_T % 2147483647 == 1)
4846 ? 1 : -1];
4847 int
4848 main ()
4849 {
4850
4851 ;
4852 return 0;
4853 }
4854 _ACEOF
4855 if ac_fn_c_try_compile "$LINENO"; then :
4856 ac_cv_sys_large_files=no; break
4857 fi
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4860 /* end confdefs.h. */
4861 #define _LARGE_FILES 1
4862 #include <sys/types.h>
4863 /* Check that off_t can represent 2**63 - 1 correctly.
4864 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4865 since some C++ compilers masquerading as C compilers
4866 incorrectly reject 9223372036854775807. */
4867 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4868 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4869 && LARGE_OFF_T % 2147483647 == 1)
4870 ? 1 : -1];
4871 int
4872 main ()
4873 {
4874
4875 ;
4876 return 0;
4877 }
4878 _ACEOF
4879 if ac_fn_c_try_compile "$LINENO"; then :
4880 ac_cv_sys_large_files=1; break
4881 fi
4882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4883 ac_cv_sys_large_files=unknown
4884 break
4885 done
4886 fi
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4888 $as_echo "$ac_cv_sys_large_files" >&6; }
4889 case $ac_cv_sys_large_files in #(
4890 no | unknown) ;;
4891 *)
4892 cat >>confdefs.h <<_ACEOF
4893 #define _LARGE_FILES $ac_cv_sys_large_files
4894 _ACEOF
4895 ;;
4896 esac
4897 rm -rf conftest*
4898 fi
4899
4900
4901 fi
4902
4903
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4905 $as_echo_n "checking whether ln -s works... " >&6; }
4906 LN_S=$as_ln_s
4907 if test "$LN_S" = "ln -s"; then
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4909 $as_echo "yes" >&6; }
4910 else
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4912 $as_echo "no, using $LN_S" >&6; }
4913 fi
4914
4915 # Make sure we can run config.sub.
4916 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4917 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4918
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4920 $as_echo_n "checking build system type... " >&6; }
4921 if ${ac_cv_build+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 ac_build_alias=$build_alias
4925 test "x$ac_build_alias" = x &&
4926 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4927 test "x$ac_build_alias" = x &&
4928 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4929 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4930 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4931
4932 fi
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4934 $as_echo "$ac_cv_build" >&6; }
4935 case $ac_cv_build in
4936 *-*-*) ;;
4937 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4938 esac
4939 build=$ac_cv_build
4940 ac_save_IFS=$IFS; IFS='-'
4941 set x $ac_cv_build
4942 shift
4943 build_cpu=$1
4944 build_vendor=$2
4945 shift; shift
4946 # Remember, the first character of IFS is used to create $*,
4947 # except with old shells:
4948 build_os=$*
4949 IFS=$ac_save_IFS
4950 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4951
4952
4953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4954 $as_echo_n "checking host system type... " >&6; }
4955 if ${ac_cv_host+:} false; then :
4956 $as_echo_n "(cached) " >&6
4957 else
4958 if test "x$host_alias" = x; then
4959 ac_cv_host=$ac_cv_build
4960 else
4961 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4962 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4963 fi
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4967 $as_echo "$ac_cv_host" >&6; }
4968 case $ac_cv_host in
4969 *-*-*) ;;
4970 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4971 esac
4972 host=$ac_cv_host
4973 ac_save_IFS=$IFS; IFS='-'
4974 set x $ac_cv_host
4975 shift
4976 host_cpu=$1
4977 host_vendor=$2
4978 shift; shift
4979 # Remember, the first character of IFS is used to create $*,
4980 # except with old shells:
4981 host_os=$*
4982 IFS=$ac_save_IFS
4983 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4984
4985
4986 enable_win32_dll=yes
4987
4988 case $host in
4989 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
4990 if test -n "$ac_tool_prefix"; then
4991 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4992 set dummy ${ac_tool_prefix}as; ac_word=$2
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994 $as_echo_n "checking for $ac_word... " >&6; }
4995 if ${ac_cv_prog_AS+:} false; then :
4996 $as_echo_n "(cached) " >&6
4997 else
4998 if test -n "$AS"; then
4999 ac_cv_prog_AS="$AS" # Let the user override the test.
5000 else
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5002 for as_dir in $PATH
5003 do
5004 IFS=$as_save_IFS
5005 test -z "$as_dir" && as_dir=.
5006 for ac_exec_ext in '' $ac_executable_extensions; do
5007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008 ac_cv_prog_AS="${ac_tool_prefix}as"
5009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5010 break 2
5011 fi
5012 done
5013 done
5014 IFS=$as_save_IFS
5015
5016 fi
5017 fi
5018 AS=$ac_cv_prog_AS
5019 if test -n "$AS"; then
5020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5021 $as_echo "$AS" >&6; }
5022 else
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024 $as_echo "no" >&6; }
5025 fi
5026
5027
5028 fi
5029 if test -z "$ac_cv_prog_AS"; then
5030 ac_ct_AS=$AS
5031 # Extract the first word of "as", so it can be a program name with args.
5032 set dummy as; ac_word=$2
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034 $as_echo_n "checking for $ac_word... " >&6; }
5035 if ${ac_cv_prog_ac_ct_AS+:} false; then :
5036 $as_echo_n "(cached) " >&6
5037 else
5038 if test -n "$ac_ct_AS"; then
5039 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5040 else
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048 ac_cv_prog_ac_ct_AS="as"
5049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 fi
5057 fi
5058 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5059 if test -n "$ac_ct_AS"; then
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5061 $as_echo "$ac_ct_AS" >&6; }
5062 else
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064 $as_echo "no" >&6; }
5065 fi
5066
5067 if test "x$ac_ct_AS" = x; then
5068 AS="false"
5069 else
5070 case $cross_compiling:$ac_tool_warned in
5071 yes:)
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074 ac_tool_warned=yes ;;
5075 esac
5076 AS=$ac_ct_AS
5077 fi
5078 else
5079 AS="$ac_cv_prog_AS"
5080 fi
5081
5082 if test -n "$ac_tool_prefix"; then
5083 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5084 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; }
5087 if ${ac_cv_prog_DLLTOOL+:} false; then :
5088 $as_echo_n "(cached) " >&6
5089 else
5090 if test -n "$DLLTOOL"; then
5091 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104 done
5105 done
5106 IFS=$as_save_IFS
5107
5108 fi
5109 fi
5110 DLLTOOL=$ac_cv_prog_DLLTOOL
5111 if test -n "$DLLTOOL"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5113 $as_echo "$DLLTOOL" >&6; }
5114 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 $as_echo "no" >&6; }
5117 fi
5118
5119
5120 fi
5121 if test -z "$ac_cv_prog_DLLTOOL"; then
5122 ac_ct_DLLTOOL=$DLLTOOL
5123 # Extract the first word of "dlltool", so it can be a program name with args.
5124 set dummy dlltool; ac_word=$2
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 $as_echo_n "checking for $ac_word... " >&6; }
5127 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5128 $as_echo_n "(cached) " >&6
5129 else
5130 if test -n "$ac_ct_DLLTOOL"; then
5131 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5132 else
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 for as_dir in $PATH
5135 do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144 done
5145 done
5146 IFS=$as_save_IFS
5147
5148 fi
5149 fi
5150 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5151 if test -n "$ac_ct_DLLTOOL"; then
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5153 $as_echo "$ac_ct_DLLTOOL" >&6; }
5154 else
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5156 $as_echo "no" >&6; }
5157 fi
5158
5159 if test "x$ac_ct_DLLTOOL" = x; then
5160 DLLTOOL="false"
5161 else
5162 case $cross_compiling:$ac_tool_warned in
5163 yes:)
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5166 ac_tool_warned=yes ;;
5167 esac
5168 DLLTOOL=$ac_ct_DLLTOOL
5169 fi
5170 else
5171 DLLTOOL="$ac_cv_prog_DLLTOOL"
5172 fi
5173
5174 if test -n "$ac_tool_prefix"; then
5175 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5176 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_prog_OBJDUMP+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$OBJDUMP"; then
5183 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5184 else
5185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5186 for as_dir in $PATH
5187 do
5188 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196 done
5197 done
5198 IFS=$as_save_IFS
5199
5200 fi
5201 fi
5202 OBJDUMP=$ac_cv_prog_OBJDUMP
5203 if test -n "$OBJDUMP"; then
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5205 $as_echo "$OBJDUMP" >&6; }
5206 else
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208 $as_echo "no" >&6; }
5209 fi
5210
5211
5212 fi
5213 if test -z "$ac_cv_prog_OBJDUMP"; then
5214 ac_ct_OBJDUMP=$OBJDUMP
5215 # Extract the first word of "objdump", so it can be a program name with args.
5216 set dummy objdump; ac_word=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5220 $as_echo_n "(cached) " >&6
5221 else
5222 if test -n "$ac_ct_OBJDUMP"; then
5223 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5224 else
5225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5226 for as_dir in $PATH
5227 do
5228 IFS=$as_save_IFS
5229 test -z "$as_dir" && as_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5232 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 break 2
5235 fi
5236 done
5237 done
5238 IFS=$as_save_IFS
5239
5240 fi
5241 fi
5242 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5243 if test -n "$ac_ct_OBJDUMP"; then
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5245 $as_echo "$ac_ct_OBJDUMP" >&6; }
5246 else
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5248 $as_echo "no" >&6; }
5249 fi
5250
5251 if test "x$ac_ct_OBJDUMP" = x; then
5252 OBJDUMP="false"
5253 else
5254 case $cross_compiling:$ac_tool_warned in
5255 yes:)
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258 ac_tool_warned=yes ;;
5259 esac
5260 OBJDUMP=$ac_ct_OBJDUMP
5261 fi
5262 else
5263 OBJDUMP="$ac_cv_prog_OBJDUMP"
5264 fi
5265
5266 ;;
5267 esac
5268
5269 test -z "$AS" && AS=as
5270
5271
5272
5273
5274
5275 test -z "$DLLTOOL" && DLLTOOL=dlltool
5276
5277
5278
5279
5280
5281 test -z "$OBJDUMP" && OBJDUMP=objdump
5282
5283
5284
5285
5286
5287
5288
5289 case `pwd` in
5290 *\ * | *\ *)
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5292 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5293 esac
5294
5295
5296
5297 macro_version='2.4.2'
5298 macro_revision='1.3337'
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312 ltmain="$ac_aux_dir/ltmain.sh"
5313
5314 # Backslashify metacharacters that are still active within
5315 # double-quoted strings.
5316 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5317
5318 # Same as above, but do not quote variable references.
5319 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5320
5321 # Sed substitution to delay expansion of an escaped shell variable in a
5322 # double_quote_subst'ed string.
5323 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5324
5325 # Sed substitution to delay expansion of an escaped single quote.
5326 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5327
5328 # Sed substitution to avoid accidental globbing in evaled expressions
5329 no_glob_subst='s/\*/\\\*/g'
5330
5331 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5332 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5333 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5334
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5336 $as_echo_n "checking how to print strings... " >&6; }
5337 # Test print first, because it will be a builtin if present.
5338 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5339 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5340 ECHO='print -r --'
5341 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5342 ECHO='printf %s\n'
5343 else
5344 # Use this function as a fallback that always works.
5345 func_fallback_echo ()
5346 {
5347 eval 'cat <<_LTECHO_EOF
5348 $1
5349 _LTECHO_EOF'
5350 }
5351 ECHO='func_fallback_echo'
5352 fi
5353
5354 # func_echo_all arg...
5355 # Invoke $ECHO with all args, space-separated.
5356 func_echo_all ()
5357 {
5358 $ECHO ""
5359 }
5360
5361 case "$ECHO" in
5362 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5363 $as_echo "printf" >&6; } ;;
5364 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5365 $as_echo "print -r" >&6; } ;;
5366 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5367 $as_echo "cat" >&6; } ;;
5368 esac
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5384 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5385 if ${ac_cv_path_SED+:} false; then :
5386 $as_echo_n "(cached) " >&6
5387 else
5388 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5389 for ac_i in 1 2 3 4 5 6 7; do
5390 ac_script="$ac_script$as_nl$ac_script"
5391 done
5392 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5393 { ac_script=; unset ac_script;}
5394 if test -z "$SED"; then
5395 ac_path_SED_found=false
5396 # Loop through the user's path and test for each of PROGNAME-LIST
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398 for as_dir in $PATH
5399 do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
5402 for ac_prog in sed gsed; do
5403 for ac_exec_ext in '' $ac_executable_extensions; do
5404 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5405 as_fn_executable_p "$ac_path_SED" || continue
5406 # Check for GNU ac_path_SED and select it if it is found.
5407 # Check for GNU $ac_path_SED
5408 case `"$ac_path_SED" --version 2>&1` in
5409 *GNU*)
5410 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5411 *)
5412 ac_count=0
5413 $as_echo_n 0123456789 >"conftest.in"
5414 while :
5415 do
5416 cat "conftest.in" "conftest.in" >"conftest.tmp"
5417 mv "conftest.tmp" "conftest.in"
5418 cp "conftest.in" "conftest.nl"
5419 $as_echo '' >> "conftest.nl"
5420 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5421 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5422 as_fn_arith $ac_count + 1 && ac_count=$as_val
5423 if test $ac_count -gt ${ac_path_SED_max-0}; then
5424 # Best one so far, save it but keep looking for a better one
5425 ac_cv_path_SED="$ac_path_SED"
5426 ac_path_SED_max=$ac_count
5427 fi
5428 # 10*(2^10) chars as input seems more than enough
5429 test $ac_count -gt 10 && break
5430 done
5431 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5432 esac
5433
5434 $ac_path_SED_found && break 3
5435 done
5436 done
5437 done
5438 IFS=$as_save_IFS
5439 if test -z "$ac_cv_path_SED"; then
5440 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5441 fi
5442 else
5443 ac_cv_path_SED=$SED
5444 fi
5445
5446 fi
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5448 $as_echo "$ac_cv_path_SED" >&6; }
5449 SED="$ac_cv_path_SED"
5450 rm -f conftest.sed
5451
5452 test -z "$SED" && SED=sed
5453 Xsed="$SED -e 1s/^X//"
5454
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5466 $as_echo_n "checking for fgrep... " >&6; }
5467 if ${ac_cv_path_FGREP+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5471 then ac_cv_path_FGREP="$GREP -F"
5472 else
5473 if test -z "$FGREP"; then
5474 ac_path_FGREP_found=false
5475 # Loop through the user's path and test for each of PROGNAME-LIST
5476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5477 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5478 do
5479 IFS=$as_save_IFS
5480 test -z "$as_dir" && as_dir=.
5481 for ac_prog in fgrep; do
5482 for ac_exec_ext in '' $ac_executable_extensions; do
5483 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5484 as_fn_executable_p "$ac_path_FGREP" || continue
5485 # Check for GNU ac_path_FGREP and select it if it is found.
5486 # Check for GNU $ac_path_FGREP
5487 case `"$ac_path_FGREP" --version 2>&1` in
5488 *GNU*)
5489 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5490 *)
5491 ac_count=0
5492 $as_echo_n 0123456789 >"conftest.in"
5493 while :
5494 do
5495 cat "conftest.in" "conftest.in" >"conftest.tmp"
5496 mv "conftest.tmp" "conftest.in"
5497 cp "conftest.in" "conftest.nl"
5498 $as_echo 'FGREP' >> "conftest.nl"
5499 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5500 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5501 as_fn_arith $ac_count + 1 && ac_count=$as_val
5502 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5503 # Best one so far, save it but keep looking for a better one
5504 ac_cv_path_FGREP="$ac_path_FGREP"
5505 ac_path_FGREP_max=$ac_count
5506 fi
5507 # 10*(2^10) chars as input seems more than enough
5508 test $ac_count -gt 10 && break
5509 done
5510 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5511 esac
5512
5513 $ac_path_FGREP_found && break 3
5514 done
5515 done
5516 done
5517 IFS=$as_save_IFS
5518 if test -z "$ac_cv_path_FGREP"; then
5519 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5520 fi
5521 else
5522 ac_cv_path_FGREP=$FGREP
5523 fi
5524
5525 fi
5526 fi
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5528 $as_echo "$ac_cv_path_FGREP" >&6; }
5529 FGREP="$ac_cv_path_FGREP"
5530
5531
5532 test -z "$GREP" && GREP=grep
5533
5534
5535
5536
5537
5538
5539
5540
5541
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551
5552 # Check whether --with-gnu-ld was given.
5553 if test "${with_gnu_ld+set}" = set; then :
5554 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5555 else
5556 with_gnu_ld=no
5557 fi
5558
5559 ac_prog=ld
5560 if test "$GCC" = yes; then
5561 # Check if gcc -print-prog-name=ld gives a path.
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5563 $as_echo_n "checking for ld used by $CC... " >&6; }
5564 case $host in
5565 *-*-mingw*)
5566 # gcc leaves a trailing carriage return which upsets mingw
5567 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5568 *)
5569 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5570 esac
5571 case $ac_prog in
5572 # Accept absolute paths.
5573 [\\/]* | ?:[\\/]*)
5574 re_direlt='/[^/][^/]*/\.\./'
5575 # Canonicalize the pathname of ld
5576 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5577 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5578 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5579 done
5580 test -z "$LD" && LD="$ac_prog"
5581 ;;
5582 "")
5583 # If it fails, then pretend we aren't using GCC.
5584 ac_prog=ld
5585 ;;
5586 *)
5587 # If it is relative, then search for the first ld in PATH.
5588 with_gnu_ld=unknown
5589 ;;
5590 esac
5591 elif test "$with_gnu_ld" = yes; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5593 $as_echo_n "checking for GNU ld... " >&6; }
5594 else
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5596 $as_echo_n "checking for non-GNU ld... " >&6; }
5597 fi
5598 if ${lt_cv_path_LD+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600 else
5601 if test -z "$LD"; then
5602 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5603 for ac_dir in $PATH; do
5604 IFS="$lt_save_ifs"
5605 test -z "$ac_dir" && ac_dir=.
5606 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5607 lt_cv_path_LD="$ac_dir/$ac_prog"
5608 # Check to see if the program is GNU ld. I'd rather use --version,
5609 # but apparently some variants of GNU ld only accept -v.
5610 # Break only if it was the GNU/non-GNU ld that we prefer.
5611 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5612 *GNU* | *'with BFD'*)
5613 test "$with_gnu_ld" != no && break
5614 ;;
5615 *)
5616 test "$with_gnu_ld" != yes && break
5617 ;;
5618 esac
5619 fi
5620 done
5621 IFS="$lt_save_ifs"
5622 else
5623 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5624 fi
5625 fi
5626
5627 LD="$lt_cv_path_LD"
5628 if test -n "$LD"; then
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5630 $as_echo "$LD" >&6; }
5631 else
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; }
5634 fi
5635 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5637 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5638 if ${lt_cv_prog_gnu_ld+:} false; then :
5639 $as_echo_n "(cached) " >&6
5640 else
5641 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5642 case `$LD -v 2>&1 </dev/null` in
5643 *GNU* | *'with BFD'*)
5644 lt_cv_prog_gnu_ld=yes
5645 ;;
5646 *)
5647 lt_cv_prog_gnu_ld=no
5648 ;;
5649 esac
5650 fi
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5652 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5653 with_gnu_ld=$lt_cv_prog_gnu_ld
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5664 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5665 if ${lt_cv_path_NM+:} false; then :
5666 $as_echo_n "(cached) " >&6
5667 else
5668 if test -n "$NM"; then
5669 # Let the user override the test.
5670 lt_cv_path_NM="$NM"
5671 else
5672 lt_nm_to_check="${ac_tool_prefix}nm"
5673 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5674 lt_nm_to_check="$lt_nm_to_check nm"
5675 fi
5676 for lt_tmp_nm in $lt_nm_to_check; do
5677 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5678 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5679 IFS="$lt_save_ifs"
5680 test -z "$ac_dir" && ac_dir=.
5681 tmp_nm="$ac_dir/$lt_tmp_nm"
5682 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5683 # Check to see if the nm accepts a BSD-compat flag.
5684 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5685 # nm: unknown option "B" ignored
5686 # Tru64's nm complains that /dev/null is an invalid object file
5687 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5688 */dev/null* | *'Invalid file or object type'*)
5689 lt_cv_path_NM="$tmp_nm -B"
5690 break
5691 ;;
5692 *)
5693 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5694 */dev/null*)
5695 lt_cv_path_NM="$tmp_nm -p"
5696 break
5697 ;;
5698 *)
5699 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5700 continue # so that we can try to find one that supports BSD flags
5701 ;;
5702 esac
5703 ;;
5704 esac
5705 fi
5706 done
5707 IFS="$lt_save_ifs"
5708 done
5709 : ${lt_cv_path_NM=no}
5710 fi
5711 fi
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5713 $as_echo "$lt_cv_path_NM" >&6; }
5714 if test "$lt_cv_path_NM" != "no"; then
5715 NM="$lt_cv_path_NM"
5716 else
5717 # Didn't find any BSD compatible name lister, look for dumpbin.
5718 if test -n "$DUMPBIN"; then :
5719 # Let the user override the test.
5720 else
5721 if test -n "$ac_tool_prefix"; then
5722 for ac_prog in dumpbin "link -dump"
5723 do
5724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5727 $as_echo_n "checking for $ac_word... " >&6; }
5728 if ${ac_cv_prog_DUMPBIN+:} false; then :
5729 $as_echo_n "(cached) " >&6
5730 else
5731 if test -n "$DUMPBIN"; then
5732 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5733 else
5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5735 for as_dir in $PATH
5736 do
5737 IFS=$as_save_IFS
5738 test -z "$as_dir" && as_dir=.
5739 for ac_exec_ext in '' $ac_executable_extensions; do
5740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5741 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5743 break 2
5744 fi
5745 done
5746 done
5747 IFS=$as_save_IFS
5748
5749 fi
5750 fi
5751 DUMPBIN=$ac_cv_prog_DUMPBIN
5752 if test -n "$DUMPBIN"; then
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5754 $as_echo "$DUMPBIN" >&6; }
5755 else
5756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5757 $as_echo "no" >&6; }
5758 fi
5759
5760
5761 test -n "$DUMPBIN" && break
5762 done
5763 fi
5764 if test -z "$DUMPBIN"; then
5765 ac_ct_DUMPBIN=$DUMPBIN
5766 for ac_prog in dumpbin "link -dump"
5767 do
5768 # Extract the first word of "$ac_prog", so it can be a program name with args.
5769 set dummy $ac_prog; ac_word=$2
5770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5771 $as_echo_n "checking for $ac_word... " >&6; }
5772 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5773 $as_echo_n "(cached) " >&6
5774 else
5775 if test -n "$ac_ct_DUMPBIN"; then
5776 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781 IFS=$as_save_IFS
5782 test -z "$as_dir" && as_dir=.
5783 for ac_exec_ext in '' $ac_executable_extensions; do
5784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5787 break 2
5788 fi
5789 done
5790 done
5791 IFS=$as_save_IFS
5792
5793 fi
5794 fi
5795 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5796 if test -n "$ac_ct_DUMPBIN"; then
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5798 $as_echo "$ac_ct_DUMPBIN" >&6; }
5799 else
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5801 $as_echo "no" >&6; }
5802 fi
5803
5804
5805 test -n "$ac_ct_DUMPBIN" && break
5806 done
5807
5808 if test "x$ac_ct_DUMPBIN" = x; then
5809 DUMPBIN=":"
5810 else
5811 case $cross_compiling:$ac_tool_warned in
5812 yes:)
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5815 ac_tool_warned=yes ;;
5816 esac
5817 DUMPBIN=$ac_ct_DUMPBIN
5818 fi
5819 fi
5820
5821 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5822 *COFF*)
5823 DUMPBIN="$DUMPBIN -symbols"
5824 ;;
5825 *)
5826 DUMPBIN=:
5827 ;;
5828 esac
5829 fi
5830
5831 if test "$DUMPBIN" != ":"; then
5832 NM="$DUMPBIN"
5833 fi
5834 fi
5835 test -z "$NM" && NM=nm
5836
5837
5838
5839
5840
5841
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5843 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5844 if ${lt_cv_nm_interface+:} false; then :
5845 $as_echo_n "(cached) " >&6
5846 else
5847 lt_cv_nm_interface="BSD nm"
5848 echo "int some_variable = 0;" > conftest.$ac_ext
5849 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5850 (eval "$ac_compile" 2>conftest.err)
5851 cat conftest.err >&5
5852 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5853 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5854 cat conftest.err >&5
5855 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5856 cat conftest.out >&5
5857 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5858 lt_cv_nm_interface="MS dumpbin"
5859 fi
5860 rm -f conftest*
5861 fi
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5863 $as_echo "$lt_cv_nm_interface" >&6; }
5864
5865 # find the maximum length of command line arguments
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5867 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5868 if ${lt_cv_sys_max_cmd_len+:} false; then :
5869 $as_echo_n "(cached) " >&6
5870 else
5871 i=0
5872 teststring="ABCD"
5873
5874 case $build_os in
5875 msdosdjgpp*)
5876 # On DJGPP, this test can blow up pretty badly due to problems in libc
5877 # (any single argument exceeding 2000 bytes causes a buffer overrun
5878 # during glob expansion). Even if it were fixed, the result of this
5879 # check would be larger than it should be.
5880 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5881 ;;
5882
5883 gnu*)
5884 # Under GNU Hurd, this test is not required because there is
5885 # no limit to the length of command line arguments.
5886 # Libtool will interpret -1 as no limit whatsoever
5887 lt_cv_sys_max_cmd_len=-1;
5888 ;;
5889
5890 cygwin* | mingw* | cegcc*)
5891 # On Win9x/ME, this test blows up -- it succeeds, but takes
5892 # about 5 minutes as the teststring grows exponentially.
5893 # Worse, since 9x/ME are not pre-emptively multitasking,
5894 # you end up with a "frozen" computer, even though with patience
5895 # the test eventually succeeds (with a max line length of 256k).
5896 # Instead, let's just punt: use the minimum linelength reported by
5897 # all of the supported platforms: 8192 (on NT/2K/XP).
5898 lt_cv_sys_max_cmd_len=8192;
5899 ;;
5900
5901 mint*)
5902 # On MiNT this can take a long time and run out of memory.
5903 lt_cv_sys_max_cmd_len=8192;
5904 ;;
5905
5906 amigaos*)
5907 # On AmigaOS with pdksh, this test takes hours, literally.
5908 # So we just punt and use a minimum line length of 8192.
5909 lt_cv_sys_max_cmd_len=8192;
5910 ;;
5911
5912 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5913 # This has been around since 386BSD, at least. Likely further.
5914 if test -x /sbin/sysctl; then
5915 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5916 elif test -x /usr/sbin/sysctl; then
5917 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5918 else
5919 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5920 fi
5921 # And add a safety zone
5922 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5923 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5924 ;;
5925
5926 interix*)
5927 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5928 lt_cv_sys_max_cmd_len=196608
5929 ;;
5930
5931 os2*)
5932 # The test takes a long time on OS/2.
5933 lt_cv_sys_max_cmd_len=8192
5934 ;;
5935
5936 osf*)
5937 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5938 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5939 # nice to cause kernel panics so lets avoid the loop below.
5940 # First set a reasonable default.
5941 lt_cv_sys_max_cmd_len=16384
5942 #
5943 if test -x /sbin/sysconfig; then
5944 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5945 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5946 esac
5947 fi
5948 ;;
5949 sco3.2v5*)
5950 lt_cv_sys_max_cmd_len=102400
5951 ;;
5952 sysv5* | sco5v6* | sysv4.2uw2*)
5953 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5954 if test -n "$kargmax"; then
5955 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5956 else
5957 lt_cv_sys_max_cmd_len=32768
5958 fi
5959 ;;
5960 *)
5961 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5962 if test -n "$lt_cv_sys_max_cmd_len"; then
5963 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5964 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5965 else
5966 # Make teststring a little bigger before we do anything with it.
5967 # a 1K string should be a reasonable start.
5968 for i in 1 2 3 4 5 6 7 8 ; do
5969 teststring=$teststring$teststring
5970 done
5971 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5972 # If test is not a shell built-in, we'll probably end up computing a
5973 # maximum length that is only half of the actual maximum length, but
5974 # we can't tell.
5975 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5976 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5977 test $i != 17 # 1/2 MB should be enough
5978 do
5979 i=`expr $i + 1`
5980 teststring=$teststring$teststring
5981 done
5982 # Only check the string length outside the loop.
5983 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5984 teststring=
5985 # Add a significant safety factor because C++ compilers can tack on
5986 # massive amounts of additional arguments before passing them to the
5987 # linker. It appears as though 1/2 is a usable value.
5988 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5989 fi
5990 ;;
5991 esac
5992
5993 fi
5994
5995 if test -n $lt_cv_sys_max_cmd_len ; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5997 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5998 else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6000 $as_echo "none" >&6; }
6001 fi
6002 max_cmd_len=$lt_cv_sys_max_cmd_len
6003
6004
6005
6006
6007
6008
6009 : ${CP="cp -f"}
6010 : ${MV="mv -f"}
6011 : ${RM="rm -f"}
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6014 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6015 # Try some XSI features
6016 xsi_shell=no
6017 ( _lt_dummy="a/b/c"
6018 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6019 = c,a/b,b/c, \
6020 && eval 'test $(( 1 + 1 )) -eq 2 \
6021 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6022 && xsi_shell=yes
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6024 $as_echo "$xsi_shell" >&6; }
6025
6026
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6028 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6029 lt_shell_append=no
6030 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6031 >/dev/null 2>&1 \
6032 && lt_shell_append=yes
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6034 $as_echo "$lt_shell_append" >&6; }
6035
6036
6037 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6038 lt_unset=unset
6039 else
6040 lt_unset=false
6041 fi
6042
6043
6044
6045
6046
6047 # test EBCDIC or ASCII
6048 case `echo X|tr X '\101'` in
6049 A) # ASCII based system
6050 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6051 lt_SP2NL='tr \040 \012'
6052 lt_NL2SP='tr \015\012 \040\040'
6053 ;;
6054 *) # EBCDIC based system
6055 lt_SP2NL='tr \100 \n'
6056 lt_NL2SP='tr \r\n \100\100'
6057 ;;
6058 esac
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6069 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6070 if ${lt_cv_to_host_file_cmd+:} false; then :
6071 $as_echo_n "(cached) " >&6
6072 else
6073 case $host in
6074 *-*-mingw* )
6075 case $build in
6076 *-*-mingw* ) # actually msys
6077 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6078 ;;
6079 *-*-cygwin* )
6080 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6081 ;;
6082 * ) # otherwise, assume *nix
6083 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6084 ;;
6085 esac
6086 ;;
6087 *-*-cygwin* )
6088 case $build in
6089 *-*-mingw* ) # actually msys
6090 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6091 ;;
6092 *-*-cygwin* )
6093 lt_cv_to_host_file_cmd=func_convert_file_noop
6094 ;;
6095 * ) # otherwise, assume *nix
6096 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6097 ;;
6098 esac
6099 ;;
6100 * ) # unhandled hosts (and "normal" native builds)
6101 lt_cv_to_host_file_cmd=func_convert_file_noop
6102 ;;
6103 esac
6104
6105 fi
6106
6107 to_host_file_cmd=$lt_cv_to_host_file_cmd
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6109 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6110
6111
6112
6113
6114
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6116 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6117 if ${lt_cv_to_tool_file_cmd+:} false; then :
6118 $as_echo_n "(cached) " >&6
6119 else
6120 #assume ordinary cross tools, or native build.
6121 lt_cv_to_tool_file_cmd=func_convert_file_noop
6122 case $host in
6123 *-*-mingw* )
6124 case $build in
6125 *-*-mingw* ) # actually msys
6126 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6127 ;;
6128 esac
6129 ;;
6130 esac
6131
6132 fi
6133
6134 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6136 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6137
6138
6139
6140
6141
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6143 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6144 if ${lt_cv_ld_reload_flag+:} false; then :
6145 $as_echo_n "(cached) " >&6
6146 else
6147 lt_cv_ld_reload_flag='-r'
6148 fi
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6150 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6151 reload_flag=$lt_cv_ld_reload_flag
6152 case $reload_flag in
6153 "" | " "*) ;;
6154 *) reload_flag=" $reload_flag" ;;
6155 esac
6156 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6157 case $host_os in
6158 cygwin* | mingw* | pw32* | cegcc*)
6159 if test "$GCC" != yes; then
6160 reload_cmds=false
6161 fi
6162 ;;
6163 darwin*)
6164 if test "$GCC" = yes; then
6165 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6166 else
6167 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6168 fi
6169 ;;
6170 esac
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180 if test -n "$ac_tool_prefix"; then
6181 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6182 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6184 $as_echo_n "checking for $ac_word... " >&6; }
6185 if ${ac_cv_prog_OBJDUMP+:} false; then :
6186 $as_echo_n "(cached) " >&6
6187 else
6188 if test -n "$OBJDUMP"; then
6189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6190 else
6191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192 for as_dir in $PATH
6193 do
6194 IFS=$as_save_IFS
6195 test -z "$as_dir" && as_dir=.
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6198 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6200 break 2
6201 fi
6202 done
6203 done
6204 IFS=$as_save_IFS
6205
6206 fi
6207 fi
6208 OBJDUMP=$ac_cv_prog_OBJDUMP
6209 if test -n "$OBJDUMP"; then
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6211 $as_echo "$OBJDUMP" >&6; }
6212 else
6213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6214 $as_echo "no" >&6; }
6215 fi
6216
6217
6218 fi
6219 if test -z "$ac_cv_prog_OBJDUMP"; then
6220 ac_ct_OBJDUMP=$OBJDUMP
6221 # Extract the first word of "objdump", so it can be a program name with args.
6222 set dummy objdump; ac_word=$2
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224 $as_echo_n "checking for $ac_word... " >&6; }
6225 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6226 $as_echo_n "(cached) " >&6
6227 else
6228 if test -n "$ac_ct_OBJDUMP"; then
6229 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6230 else
6231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 for as_dir in $PATH
6233 do
6234 IFS=$as_save_IFS
6235 test -z "$as_dir" && as_dir=.
6236 for ac_exec_ext in '' $ac_executable_extensions; do
6237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240 break 2
6241 fi
6242 done
6243 done
6244 IFS=$as_save_IFS
6245
6246 fi
6247 fi
6248 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6249 if test -n "$ac_ct_OBJDUMP"; then
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6251 $as_echo "$ac_ct_OBJDUMP" >&6; }
6252 else
6253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254 $as_echo "no" >&6; }
6255 fi
6256
6257 if test "x$ac_ct_OBJDUMP" = x; then
6258 OBJDUMP="false"
6259 else
6260 case $cross_compiling:$ac_tool_warned in
6261 yes:)
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6264 ac_tool_warned=yes ;;
6265 esac
6266 OBJDUMP=$ac_ct_OBJDUMP
6267 fi
6268 else
6269 OBJDUMP="$ac_cv_prog_OBJDUMP"
6270 fi
6271
6272 test -z "$OBJDUMP" && OBJDUMP=objdump
6273
6274
6275
6276
6277
6278
6279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6280 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6281 if ${lt_cv_deplibs_check_method+:} false; then :
6282 $as_echo_n "(cached) " >&6
6283 else
6284 lt_cv_file_magic_cmd='$MAGIC_CMD'
6285 lt_cv_file_magic_test_file=
6286 lt_cv_deplibs_check_method='unknown'
6287 # Need to set the preceding variable on all platforms that support
6288 # interlibrary dependencies.
6289 # 'none' -- dependencies not supported.
6290 # `unknown' -- same as none, but documents that we really don't know.
6291 # 'pass_all' -- all dependencies passed with no checks.
6292 # 'test_compile' -- check by making test program.
6293 # 'file_magic [[regex]]' -- check by looking for files in library path
6294 # which responds to the $file_magic_cmd with a given extended regex.
6295 # If you have `file' or equivalent on your system and you're not sure
6296 # whether `pass_all' will *always* work, you probably want this one.
6297
6298 case $host_os in
6299 aix[4-9]*)
6300 lt_cv_deplibs_check_method=pass_all
6301 ;;
6302
6303 beos*)
6304 lt_cv_deplibs_check_method=pass_all
6305 ;;
6306
6307 bsdi[45]*)
6308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6309 lt_cv_file_magic_cmd='/usr/bin/file -L'
6310 lt_cv_file_magic_test_file=/shlib/libc.so
6311 ;;
6312
6313 cygwin*)
6314 # func_win32_libid is a shell function defined in ltmain.sh
6315 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6316 lt_cv_file_magic_cmd='func_win32_libid'
6317 ;;
6318
6319 mingw* | pw32*)
6320 # Base MSYS/MinGW do not provide the 'file' command needed by
6321 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6322 # unless we find 'file', for example because we are cross-compiling.
6323 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6324 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6325 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6326 lt_cv_file_magic_cmd='func_win32_libid'
6327 else
6328 # Keep this pattern in sync with the one in func_win32_libid.
6329 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6330 lt_cv_file_magic_cmd='$OBJDUMP -f'
6331 fi
6332 ;;
6333
6334 cegcc*)
6335 # use the weaker test based on 'objdump'. See mingw*.
6336 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6337 lt_cv_file_magic_cmd='$OBJDUMP -f'
6338 ;;
6339
6340 darwin* | rhapsody*)
6341 lt_cv_deplibs_check_method=pass_all
6342 ;;
6343
6344 freebsd* | dragonfly*)
6345 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6346 case $host_cpu in
6347 i*86 )
6348 # Not sure whether the presence of OpenBSD here was a mistake.
6349 # Let's accept both of them until this is cleared up.
6350 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6351 lt_cv_file_magic_cmd=/usr/bin/file
6352 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6353 ;;
6354 esac
6355 else
6356 lt_cv_deplibs_check_method=pass_all
6357 fi
6358 ;;
6359
6360 gnu*)
6361 lt_cv_deplibs_check_method=pass_all
6362 ;;
6363
6364 haiku*)
6365 lt_cv_deplibs_check_method=pass_all
6366 ;;
6367
6368 hpux10.20* | hpux11*)
6369 lt_cv_file_magic_cmd=/usr/bin/file
6370 case $host_cpu in
6371 ia64*)
6372 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6373 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6374 ;;
6375 hppa*64*)
6376 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6377 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6378 ;;
6379 *)
6380 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6381 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6382 ;;
6383 esac
6384 ;;
6385
6386 interix[3-9]*)
6387 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6389 ;;
6390
6391 irix5* | irix6* | nonstopux*)
6392 case $LD in
6393 *-32|*"-32 ") libmagic=32-bit;;
6394 *-n32|*"-n32 ") libmagic=N32;;
6395 *-64|*"-64 ") libmagic=64-bit;;
6396 *) libmagic=never-match;;
6397 esac
6398 lt_cv_deplibs_check_method=pass_all
6399 ;;
6400
6401 # This must be glibc/ELF.
6402 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6403 lt_cv_deplibs_check_method=pass_all
6404 ;;
6405
6406 netbsd*)
6407 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6408 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6409 else
6410 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6411 fi
6412 ;;
6413
6414 newos6*)
6415 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6416 lt_cv_file_magic_cmd=/usr/bin/file
6417 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6418 ;;
6419
6420 *nto* | *qnx*)
6421 lt_cv_deplibs_check_method=pass_all
6422 ;;
6423
6424 openbsd*)
6425 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6426 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6427 else
6428 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6429 fi
6430 ;;
6431
6432 osf3* | osf4* | osf5*)
6433 lt_cv_deplibs_check_method=pass_all
6434 ;;
6435
6436 rdos*)
6437 lt_cv_deplibs_check_method=pass_all
6438 ;;
6439
6440 solaris*)
6441 lt_cv_deplibs_check_method=pass_all
6442 ;;
6443
6444 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6445 lt_cv_deplibs_check_method=pass_all
6446 ;;
6447
6448 sysv4 | sysv4.3*)
6449 case $host_vendor in
6450 motorola)
6451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6452 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6453 ;;
6454 ncr)
6455 lt_cv_deplibs_check_method=pass_all
6456 ;;
6457 sequent)
6458 lt_cv_file_magic_cmd='/bin/file'
6459 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6460 ;;
6461 sni)
6462 lt_cv_file_magic_cmd='/bin/file'
6463 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6464 lt_cv_file_magic_test_file=/lib/libc.so
6465 ;;
6466 siemens)
6467 lt_cv_deplibs_check_method=pass_all
6468 ;;
6469 pc)
6470 lt_cv_deplibs_check_method=pass_all
6471 ;;
6472 esac
6473 ;;
6474
6475 tpf*)
6476 lt_cv_deplibs_check_method=pass_all
6477 ;;
6478 esac
6479
6480 fi
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6482 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6483
6484 file_magic_glob=
6485 want_nocaseglob=no
6486 if test "$build" = "$host"; then
6487 case $host_os in
6488 mingw* | pw32*)
6489 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6490 want_nocaseglob=yes
6491 else
6492 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6493 fi
6494 ;;
6495 esac
6496 fi
6497
6498 file_magic_cmd=$lt_cv_file_magic_cmd
6499 deplibs_check_method=$lt_cv_deplibs_check_method
6500 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6501
6502
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523 if test -n "$ac_tool_prefix"; then
6524 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6525 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6527 $as_echo_n "checking for $ac_word... " >&6; }
6528 if ${ac_cv_prog_DLLTOOL+:} false; then :
6529 $as_echo_n "(cached) " >&6
6530 else
6531 if test -n "$DLLTOOL"; then
6532 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6533 else
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6535 for as_dir in $PATH
6536 do
6537 IFS=$as_save_IFS
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6541 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 break 2
6544 fi
6545 done
6546 done
6547 IFS=$as_save_IFS
6548
6549 fi
6550 fi
6551 DLLTOOL=$ac_cv_prog_DLLTOOL
6552 if test -n "$DLLTOOL"; then
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6554 $as_echo "$DLLTOOL" >&6; }
6555 else
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6557 $as_echo "no" >&6; }
6558 fi
6559
6560
6561 fi
6562 if test -z "$ac_cv_prog_DLLTOOL"; then
6563 ac_ct_DLLTOOL=$DLLTOOL
6564 # Extract the first word of "dlltool", so it can be a program name with args.
6565 set dummy dlltool; ac_word=$2
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6567 $as_echo_n "checking for $ac_word... " >&6; }
6568 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6569 $as_echo_n "(cached) " >&6
6570 else
6571 if test -n "$ac_ct_DLLTOOL"; then
6572 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6573 else
6574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575 for as_dir in $PATH
6576 do
6577 IFS=$as_save_IFS
6578 test -z "$as_dir" && as_dir=.
6579 for ac_exec_ext in '' $ac_executable_extensions; do
6580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6581 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6583 break 2
6584 fi
6585 done
6586 done
6587 IFS=$as_save_IFS
6588
6589 fi
6590 fi
6591 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6592 if test -n "$ac_ct_DLLTOOL"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6594 $as_echo "$ac_ct_DLLTOOL" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6598 fi
6599
6600 if test "x$ac_ct_DLLTOOL" = x; then
6601 DLLTOOL="false"
6602 else
6603 case $cross_compiling:$ac_tool_warned in
6604 yes:)
6605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6606 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6607 ac_tool_warned=yes ;;
6608 esac
6609 DLLTOOL=$ac_ct_DLLTOOL
6610 fi
6611 else
6612 DLLTOOL="$ac_cv_prog_DLLTOOL"
6613 fi
6614
6615 test -z "$DLLTOOL" && DLLTOOL=dlltool
6616
6617
6618
6619
6620
6621
6622
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6624 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6625 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6626 $as_echo_n "(cached) " >&6
6627 else
6628 lt_cv_sharedlib_from_linklib_cmd='unknown'
6629
6630 case $host_os in
6631 cygwin* | mingw* | pw32* | cegcc*)
6632 # two different shell functions defined in ltmain.sh
6633 # decide which to use based on capabilities of $DLLTOOL
6634 case `$DLLTOOL --help 2>&1` in
6635 *--identify-strict*)
6636 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6637 ;;
6638 *)
6639 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6640 ;;
6641 esac
6642 ;;
6643 *)
6644 # fallback: assume linklib IS sharedlib
6645 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6646 ;;
6647 esac
6648
6649 fi
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6651 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6652 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6653 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6654
6655
6656
6657
6658
6659
6660
6661 if test -n "$ac_tool_prefix"; then
6662 for ac_prog in ar
6663 do
6664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6665 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_AR+:} false; then :
6669 $as_echo_n "(cached) " >&6
6670 else
6671 if test -n "$AR"; then
6672 ac_cv_prog_AR="$AR" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 AR=$ac_cv_prog_AR
6692 if test -n "$AR"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6694 $as_echo "$AR" >&6; }
6695 else
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6698 fi
6699
6700
6701 test -n "$AR" && break
6702 done
6703 fi
6704 if test -z "$AR"; then
6705 ac_ct_AR=$AR
6706 for ac_prog in ar
6707 do
6708 # Extract the first word of "$ac_prog", so it can be a program name with args.
6709 set dummy $ac_prog; ac_word=$2
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6711 $as_echo_n "checking for $ac_word... " >&6; }
6712 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6713 $as_echo_n "(cached) " >&6
6714 else
6715 if test -n "$ac_ct_AR"; then
6716 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6717 else
6718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6719 for as_dir in $PATH
6720 do
6721 IFS=$as_save_IFS
6722 test -z "$as_dir" && as_dir=.
6723 for ac_exec_ext in '' $ac_executable_extensions; do
6724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6725 ac_cv_prog_ac_ct_AR="$ac_prog"
6726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6727 break 2
6728 fi
6729 done
6730 done
6731 IFS=$as_save_IFS
6732
6733 fi
6734 fi
6735 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6736 if test -n "$ac_ct_AR"; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6738 $as_echo "$ac_ct_AR" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6741 $as_echo "no" >&6; }
6742 fi
6743
6744
6745 test -n "$ac_ct_AR" && break
6746 done
6747
6748 if test "x$ac_ct_AR" = x; then
6749 AR="false"
6750 else
6751 case $cross_compiling:$ac_tool_warned in
6752 yes:)
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6755 ac_tool_warned=yes ;;
6756 esac
6757 AR=$ac_ct_AR
6758 fi
6759 fi
6760
6761 : ${AR=ar}
6762 : ${AR_FLAGS=cru}
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6775 $as_echo_n "checking for archiver @FILE support... " >&6; }
6776 if ${lt_cv_ar_at_file+:} false; then :
6777 $as_echo_n "(cached) " >&6
6778 else
6779 lt_cv_ar_at_file=no
6780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6781 /* end confdefs.h. */
6782
6783 int
6784 main ()
6785 {
6786
6787 ;
6788 return 0;
6789 }
6790 _ACEOF
6791 if ac_fn_c_try_compile "$LINENO"; then :
6792 echo conftest.$ac_objext > conftest.lst
6793 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6794 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6795 (eval $lt_ar_try) 2>&5
6796 ac_status=$?
6797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6798 test $ac_status = 0; }
6799 if test "$ac_status" -eq 0; then
6800 # Ensure the archiver fails upon bogus file names.
6801 rm -f conftest.$ac_objext libconftest.a
6802 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6803 (eval $lt_ar_try) 2>&5
6804 ac_status=$?
6805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6806 test $ac_status = 0; }
6807 if test "$ac_status" -ne 0; then
6808 lt_cv_ar_at_file=@
6809 fi
6810 fi
6811 rm -f conftest.* libconftest.a
6812
6813 fi
6814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6815
6816 fi
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6818 $as_echo "$lt_cv_ar_at_file" >&6; }
6819
6820 if test "x$lt_cv_ar_at_file" = xno; then
6821 archiver_list_spec=
6822 else
6823 archiver_list_spec=$lt_cv_ar_at_file
6824 fi
6825
6826
6827
6828
6829
6830
6831
6832 if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6834 set dummy ${ac_tool_prefix}strip; ac_word=$2
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if ${ac_cv_prog_STRIP+:} false; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6840 if test -n "$STRIP"; then
6841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 STRIP=$ac_cv_prog_STRIP
6861 if test -n "$STRIP"; then
6862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6863 $as_echo "$STRIP" >&6; }
6864 else
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869
6870 fi
6871 if test -z "$ac_cv_prog_STRIP"; then
6872 ac_ct_STRIP=$STRIP
6873 # Extract the first word of "strip", so it can be a program name with args.
6874 set dummy strip; ac_word=$2
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6878 $as_echo_n "(cached) " >&6
6879 else
6880 if test -n "$ac_ct_STRIP"; then
6881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6890 ac_cv_prog_ac_ct_STRIP="strip"
6891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6901 if test -n "$ac_ct_STRIP"; then
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6903 $as_echo "$ac_ct_STRIP" >&6; }
6904 else
6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909 if test "x$ac_ct_STRIP" = x; then
6910 STRIP=":"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 STRIP=$ac_ct_STRIP
6919 fi
6920 else
6921 STRIP="$ac_cv_prog_STRIP"
6922 fi
6923
6924 test -z "$STRIP" && STRIP=:
6925
6926
6927
6928
6929
6930
6931 if test -n "$ac_tool_prefix"; then
6932 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6933 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6935 $as_echo_n "checking for $ac_word... " >&6; }
6936 if ${ac_cv_prog_RANLIB+:} false; then :
6937 $as_echo_n "(cached) " >&6
6938 else
6939 if test -n "$RANLIB"; then
6940 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6941 else
6942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943 for as_dir in $PATH
6944 do
6945 IFS=$as_save_IFS
6946 test -z "$as_dir" && as_dir=.
6947 for ac_exec_ext in '' $ac_executable_extensions; do
6948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6949 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 break 2
6952 fi
6953 done
6954 done
6955 IFS=$as_save_IFS
6956
6957 fi
6958 fi
6959 RANLIB=$ac_cv_prog_RANLIB
6960 if test -n "$RANLIB"; then
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6962 $as_echo "$RANLIB" >&6; }
6963 else
6964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6965 $as_echo "no" >&6; }
6966 fi
6967
6968
6969 fi
6970 if test -z "$ac_cv_prog_RANLIB"; then
6971 ac_ct_RANLIB=$RANLIB
6972 # Extract the first word of "ranlib", so it can be a program name with args.
6973 set dummy ranlib; ac_word=$2
6974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6975 $as_echo_n "checking for $ac_word... " >&6; }
6976 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978 else
6979 if test -n "$ac_ct_RANLIB"; then
6980 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6981 else
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983 for as_dir in $PATH
6984 do
6985 IFS=$as_save_IFS
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6989 ac_cv_prog_ac_ct_RANLIB="ranlib"
6990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6991 break 2
6992 fi
6993 done
6994 done
6995 IFS=$as_save_IFS
6996
6997 fi
6998 fi
6999 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7000 if test -n "$ac_ct_RANLIB"; then
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7002 $as_echo "$ac_ct_RANLIB" >&6; }
7003 else
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7005 $as_echo "no" >&6; }
7006 fi
7007
7008 if test "x$ac_ct_RANLIB" = x; then
7009 RANLIB=":"
7010 else
7011 case $cross_compiling:$ac_tool_warned in
7012 yes:)
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7015 ac_tool_warned=yes ;;
7016 esac
7017 RANLIB=$ac_ct_RANLIB
7018 fi
7019 else
7020 RANLIB="$ac_cv_prog_RANLIB"
7021 fi
7022
7023 test -z "$RANLIB" && RANLIB=:
7024
7025
7026
7027
7028
7029
7030 # Determine commands to create old-style static archives.
7031 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7032 old_postinstall_cmds='chmod 644 $oldlib'
7033 old_postuninstall_cmds=
7034
7035 if test -n "$RANLIB"; then
7036 case $host_os in
7037 openbsd*)
7038 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7039 ;;
7040 *)
7041 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7042 ;;
7043 esac
7044 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7045 fi
7046
7047 case $host_os in
7048 darwin*)
7049 lock_old_archive_extraction=yes ;;
7050 *)
7051 lock_old_archive_extraction=no ;;
7052 esac
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092 # If no C compiler was specified, use CC.
7093 LTCC=${LTCC-"$CC"}
7094
7095 # If no C compiler flags were specified, use CFLAGS.
7096 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7097
7098 # Allow CC to be a program name with arguments.
7099 compiler=$CC
7100
7101
7102 # Check for command to grab the raw symbol name followed by C symbol from nm.
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7104 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7105 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108
7109 # These are sane defaults that work on at least a few old systems.
7110 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7111
7112 # Character class describing NM global symbol codes.
7113 symcode='[BCDEGRST]'
7114
7115 # Regexp to match symbols that can be accessed directly from C.
7116 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7117
7118 # Define system-specific variables.
7119 case $host_os in
7120 aix*)
7121 symcode='[BCDT]'
7122 ;;
7123 cygwin* | mingw* | pw32* | cegcc*)
7124 symcode='[ABCDGISTW]'
7125 ;;
7126 hpux*)
7127 if test "$host_cpu" = ia64; then
7128 symcode='[ABCDEGRST]'
7129 fi
7130 ;;
7131 irix* | nonstopux*)
7132 symcode='[BCDEGRST]'
7133 ;;
7134 osf*)
7135 symcode='[BCDEGQRST]'
7136 ;;
7137 solaris*)
7138 symcode='[BDRT]'
7139 ;;
7140 sco3.2v5*)
7141 symcode='[DT]'
7142 ;;
7143 sysv4.2uw2*)
7144 symcode='[DT]'
7145 ;;
7146 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7147 symcode='[ABDT]'
7148 ;;
7149 sysv4)
7150 symcode='[DFNSTU]'
7151 ;;
7152 esac
7153
7154 # If we're using GNU nm, then use its standard symbol codes.
7155 case `$NM -V 2>&1` in
7156 *GNU* | *'with BFD'*)
7157 symcode='[ABCDGIRSTW]' ;;
7158 esac
7159
7160 # Transform an extracted symbol line into a proper C declaration.
7161 # Some systems (esp. on ia64) link data and code symbols differently,
7162 # so use this general approach.
7163 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7164
7165 # Transform an extracted symbol line into symbol name and symbol address
7166 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7167 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'"
7168
7169 # Handle CRLF in mingw tool chain
7170 opt_cr=
7171 case $build_os in
7172 mingw*)
7173 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7174 ;;
7175 esac
7176
7177 # Try without a prefix underscore, then with it.
7178 for ac_symprfx in "" "_"; do
7179
7180 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7181 symxfrm="\\1 $ac_symprfx\\2 \\2"
7182
7183 # Write the raw and C identifiers.
7184 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7185 # Fake it for dumpbin and say T for any non-static function
7186 # and D for any global variable.
7187 # Also find C++ and __fastcall symbols from MSVC++,
7188 # which start with @ or ?.
7189 lt_cv_sys_global_symbol_pipe="$AWK '"\
7190 " {last_section=section; section=\$ 3};"\
7191 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7192 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7193 " \$ 0!~/External *\|/{next};"\
7194 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7195 " {if(hide[section]) next};"\
7196 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7197 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7198 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7199 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7200 " ' prfx=^$ac_symprfx"
7201 else
7202 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7203 fi
7204 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7205
7206 # Check to see that the pipe works correctly.
7207 pipe_works=no
7208
7209 rm -f conftest*
7210 cat > conftest.$ac_ext <<_LT_EOF
7211 #ifdef __cplusplus
7212 extern "C" {
7213 #endif
7214 char nm_test_var;
7215 void nm_test_func(void);
7216 void nm_test_func(void){}
7217 #ifdef __cplusplus
7218 }
7219 #endif
7220 int main(){nm_test_var='a';nm_test_func();return(0);}
7221 _LT_EOF
7222
7223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7224 (eval $ac_compile) 2>&5
7225 ac_status=$?
7226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7227 test $ac_status = 0; }; then
7228 # Now try to grab the symbols.
7229 nlist=conftest.nm
7230 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7231 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7232 ac_status=$?
7233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7234 test $ac_status = 0; } && test -s "$nlist"; then
7235 # Try sorting and uniquifying the output.
7236 if sort "$nlist" | uniq > "$nlist"T; then
7237 mv -f "$nlist"T "$nlist"
7238 else
7239 rm -f "$nlist"T
7240 fi
7241
7242 # Make sure that we snagged all the symbols we need.
7243 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7244 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7245 cat <<_LT_EOF > conftest.$ac_ext
7246 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7247 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7248 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7249 relocations are performed -- see ld's documentation on pseudo-relocs. */
7250 # define LT_DLSYM_CONST
7251 #elif defined(__osf__)
7252 /* This system does not cope well with relocations in const data. */
7253 # define LT_DLSYM_CONST
7254 #else
7255 # define LT_DLSYM_CONST const
7256 #endif
7257
7258 #ifdef __cplusplus
7259 extern "C" {
7260 #endif
7261
7262 _LT_EOF
7263 # Now generate the symbol file.
7264 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7265
7266 cat <<_LT_EOF >> conftest.$ac_ext
7267
7268 /* The mapping between symbol names and symbols. */
7269 LT_DLSYM_CONST struct {
7270 const char *name;
7271 void *address;
7272 }
7273 lt__PROGRAM__LTX_preloaded_symbols[] =
7274 {
7275 { "@PROGRAM@", (void *) 0 },
7276 _LT_EOF
7277 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7278 cat <<\_LT_EOF >> conftest.$ac_ext
7279 {0, (void *) 0}
7280 };
7281
7282 /* This works around a problem in FreeBSD linker */
7283 #ifdef FREEBSD_WORKAROUND
7284 static const void *lt_preloaded_setup() {
7285 return lt__PROGRAM__LTX_preloaded_symbols;
7286 }
7287 #endif
7288
7289 #ifdef __cplusplus
7290 }
7291 #endif
7292 _LT_EOF
7293 # Now try linking the two files.
7294 mv conftest.$ac_objext conftstm.$ac_objext
7295 lt_globsym_save_LIBS=$LIBS
7296 lt_globsym_save_CFLAGS=$CFLAGS
7297 LIBS="conftstm.$ac_objext"
7298 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7300 (eval $ac_link) 2>&5
7301 ac_status=$?
7302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7303 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7304 pipe_works=yes
7305 fi
7306 LIBS=$lt_globsym_save_LIBS
7307 CFLAGS=$lt_globsym_save_CFLAGS
7308 else
7309 echo "cannot find nm_test_func in $nlist" >&5
7310 fi
7311 else
7312 echo "cannot find nm_test_var in $nlist" >&5
7313 fi
7314 else
7315 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7316 fi
7317 else
7318 echo "$progname: failed program was:" >&5
7319 cat conftest.$ac_ext >&5
7320 fi
7321 rm -rf conftest* conftst*
7322
7323 # Do not use the global_symbol_pipe unless it works.
7324 if test "$pipe_works" = yes; then
7325 break
7326 else
7327 lt_cv_sys_global_symbol_pipe=
7328 fi
7329 done
7330
7331 fi
7332
7333 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7334 lt_cv_sys_global_symbol_to_cdecl=
7335 fi
7336 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7338 $as_echo "failed" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7341 $as_echo "ok" >&6; }
7342 fi
7343
7344 # Response file support.
7345 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7346 nm_file_list_spec='@'
7347 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7348 nm_file_list_spec='@'
7349 fi
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7378 $as_echo_n "checking for sysroot... " >&6; }
7379
7380 # Check whether --with-sysroot was given.
7381 if test "${with_sysroot+set}" = set; then :
7382 withval=$with_sysroot;
7383 else
7384 with_sysroot=no
7385 fi
7386
7387
7388 lt_sysroot=
7389 case ${with_sysroot} in #(
7390 yes)
7391 if test "$GCC" = yes; then
7392 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7393 fi
7394 ;; #(
7395 /*)
7396 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7397 ;; #(
7398 no|'')
7399 ;; #(
7400 *)
7401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7402 $as_echo "${with_sysroot}" >&6; }
7403 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7404 ;;
7405 esac
7406
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7408 $as_echo "${lt_sysroot:-no}" >&6; }
7409
7410
7411
7412
7413
7414 # Check whether --enable-libtool-lock was given.
7415 if test "${enable_libtool_lock+set}" = set; then :
7416 enableval=$enable_libtool_lock;
7417 fi
7418
7419 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7420
7421 # Some flags need to be propagated to the compiler or linker for good
7422 # libtool support.
7423 case $host in
7424 ia64-*-hpux*)
7425 # Find out which ABI we are using.
7426 echo 'int i;' > conftest.$ac_ext
7427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7428 (eval $ac_compile) 2>&5
7429 ac_status=$?
7430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7431 test $ac_status = 0; }; then
7432 case `/usr/bin/file conftest.$ac_objext` in
7433 *ELF-32*)
7434 HPUX_IA64_MODE="32"
7435 ;;
7436 *ELF-64*)
7437 HPUX_IA64_MODE="64"
7438 ;;
7439 esac
7440 fi
7441 rm -rf conftest*
7442 ;;
7443 *-*-irix6*)
7444 # Find out which ABI we are using.
7445 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7446 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7447 (eval $ac_compile) 2>&5
7448 ac_status=$?
7449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7450 test $ac_status = 0; }; then
7451 if test "$lt_cv_prog_gnu_ld" = yes; then
7452 case `/usr/bin/file conftest.$ac_objext` in
7453 *32-bit*)
7454 LD="${LD-ld} -melf32bsmip"
7455 ;;
7456 *N32*)
7457 LD="${LD-ld} -melf32bmipn32"
7458 ;;
7459 *64-bit*)
7460 LD="${LD-ld} -melf64bmip"
7461 ;;
7462 esac
7463 else
7464 case `/usr/bin/file conftest.$ac_objext` in
7465 *32-bit*)
7466 LD="${LD-ld} -32"
7467 ;;
7468 *N32*)
7469 LD="${LD-ld} -n32"
7470 ;;
7471 *64-bit*)
7472 LD="${LD-ld} -64"
7473 ;;
7474 esac
7475 fi
7476 fi
7477 rm -rf conftest*
7478 ;;
7479
7480 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7481 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7482 # Find out which ABI we are using.
7483 echo 'int i;' > conftest.$ac_ext
7484 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7485 (eval $ac_compile) 2>&5
7486 ac_status=$?
7487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7488 test $ac_status = 0; }; then
7489 case `/usr/bin/file conftest.o` in
7490 *32-bit*)
7491 case $host in
7492 x86_64-*kfreebsd*-gnu)
7493 LD="${LD-ld} -m elf_i386_fbsd"
7494 ;;
7495 x86_64-*linux*)
7496 LD="${LD-ld} -m elf_i386"
7497 ;;
7498 ppc64-*linux*|powerpc64-*linux*)
7499 LD="${LD-ld} -m elf32ppclinux"
7500 ;;
7501 s390x-*linux*)
7502 LD="${LD-ld} -m elf_s390"
7503 ;;
7504 sparc64-*linux*)
7505 LD="${LD-ld} -m elf32_sparc"
7506 ;;
7507 esac
7508 ;;
7509 *64-bit*)
7510 case $host in
7511 x86_64-*kfreebsd*-gnu)
7512 LD="${LD-ld} -m elf_x86_64_fbsd"
7513 ;;
7514 x86_64-*linux*)
7515 LD="${LD-ld} -m elf_x86_64"
7516 ;;
7517 ppc*-*linux*|powerpc*-*linux*)
7518 LD="${LD-ld} -m elf64ppc"
7519 ;;
7520 s390*-*linux*|s390*-*tpf*)
7521 LD="${LD-ld} -m elf64_s390"
7522 ;;
7523 sparc*-*linux*)
7524 LD="${LD-ld} -m elf64_sparc"
7525 ;;
7526 esac
7527 ;;
7528 esac
7529 fi
7530 rm -rf conftest*
7531 ;;
7532
7533 *-*-sco3.2v5*)
7534 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7535 SAVE_CFLAGS="$CFLAGS"
7536 CFLAGS="$CFLAGS -belf"
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7538 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7539 if ${lt_cv_cc_needs_belf+:} false; then :
7540 $as_echo_n "(cached) " >&6
7541 else
7542 ac_ext=c
7543 ac_cpp='$CPP $CPPFLAGS'
7544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7547
7548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7549 /* end confdefs.h. */
7550
7551 int
7552 main ()
7553 {
7554
7555 ;
7556 return 0;
7557 }
7558 _ACEOF
7559 if ac_fn_c_try_link "$LINENO"; then :
7560 lt_cv_cc_needs_belf=yes
7561 else
7562 lt_cv_cc_needs_belf=no
7563 fi
7564 rm -f core conftest.err conftest.$ac_objext \
7565 conftest$ac_exeext conftest.$ac_ext
7566 ac_ext=c
7567 ac_cpp='$CPP $CPPFLAGS'
7568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7571
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7574 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7575 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7576 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7577 CFLAGS="$SAVE_CFLAGS"
7578 fi
7579 ;;
7580 *-*solaris*)
7581 # Find out which ABI we are using.
7582 echo 'int i;' > conftest.$ac_ext
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7584 (eval $ac_compile) 2>&5
7585 ac_status=$?
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; }; then
7588 case `/usr/bin/file conftest.o` in
7589 *64-bit*)
7590 case $lt_cv_prog_gnu_ld in
7591 yes*)
7592 case $host in
7593 i?86-*-solaris*)
7594 LD="${LD-ld} -m elf_x86_64"
7595 ;;
7596 sparc*-*-solaris*)
7597 LD="${LD-ld} -m elf64_sparc"
7598 ;;
7599 esac
7600 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7601 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7602 LD="${LD-ld}_sol2"
7603 fi
7604 ;;
7605 *)
7606 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7607 LD="${LD-ld} -64"
7608 fi
7609 ;;
7610 esac
7611 ;;
7612 esac
7613 fi
7614 rm -rf conftest*
7615 ;;
7616 esac
7617
7618 need_locks="$enable_libtool_lock"
7619
7620 if test -n "$ac_tool_prefix"; then
7621 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7622 set dummy ${ac_tool_prefix}mt; ac_word=$2
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7624 $as_echo_n "checking for $ac_word... " >&6; }
7625 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7626 $as_echo_n "(cached) " >&6
7627 else
7628 if test -n "$MANIFEST_TOOL"; then
7629 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7630 else
7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7632 for as_dir in $PATH
7633 do
7634 IFS=$as_save_IFS
7635 test -z "$as_dir" && as_dir=.
7636 for ac_exec_ext in '' $ac_executable_extensions; do
7637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7638 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7640 break 2
7641 fi
7642 done
7643 done
7644 IFS=$as_save_IFS
7645
7646 fi
7647 fi
7648 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7649 if test -n "$MANIFEST_TOOL"; then
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7651 $as_echo "$MANIFEST_TOOL" >&6; }
7652 else
7653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7654 $as_echo "no" >&6; }
7655 fi
7656
7657
7658 fi
7659 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7660 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7661 # Extract the first word of "mt", so it can be a program name with args.
7662 set dummy mt; ac_word=$2
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7664 $as_echo_n "checking for $ac_word... " >&6; }
7665 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7666 $as_echo_n "(cached) " >&6
7667 else
7668 if test -n "$ac_ct_MANIFEST_TOOL"; then
7669 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7670 else
7671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7672 for as_dir in $PATH
7673 do
7674 IFS=$as_save_IFS
7675 test -z "$as_dir" && as_dir=.
7676 for ac_exec_ext in '' $ac_executable_extensions; do
7677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7678 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7680 break 2
7681 fi
7682 done
7683 done
7684 IFS=$as_save_IFS
7685
7686 fi
7687 fi
7688 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7689 if test -n "$ac_ct_MANIFEST_TOOL"; then
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7691 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7692 else
7693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7694 $as_echo "no" >&6; }
7695 fi
7696
7697 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7698 MANIFEST_TOOL=":"
7699 else
7700 case $cross_compiling:$ac_tool_warned in
7701 yes:)
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7704 ac_tool_warned=yes ;;
7705 esac
7706 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7707 fi
7708 else
7709 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7710 fi
7711
7712 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7714 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7715 if ${lt_cv_path_mainfest_tool+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 lt_cv_path_mainfest_tool=no
7719 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7720 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7721 cat conftest.err >&5
7722 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7723 lt_cv_path_mainfest_tool=yes
7724 fi
7725 rm -f conftest*
7726 fi
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7728 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7729 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7730 MANIFEST_TOOL=:
7731 fi
7732
7733
7734
7735
7736
7737
7738 case $host_os in
7739 rhapsody* | darwin*)
7740 if test -n "$ac_tool_prefix"; then
7741 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7742 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 if test -n "$DSYMUTIL"; then
7749 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7761 fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766 fi
7767 fi
7768 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7769 if test -n "$DSYMUTIL"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7771 $as_echo "$DSYMUTIL" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7775 fi
7776
7777
7778 fi
7779 if test -z "$ac_cv_prog_DSYMUTIL"; then
7780 ac_ct_DSYMUTIL=$DSYMUTIL
7781 # Extract the first word of "dsymutil", so it can be a program name with args.
7782 set dummy dsymutil; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 if test -n "$ac_ct_DSYMUTIL"; then
7789 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7793 do
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7801 fi
7802 done
7803 done
7804 IFS=$as_save_IFS
7805
7806 fi
7807 fi
7808 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7809 if test -n "$ac_ct_DSYMUTIL"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7811 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7812 else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7815 fi
7816
7817 if test "x$ac_ct_DSYMUTIL" = x; then
7818 DSYMUTIL=":"
7819 else
7820 case $cross_compiling:$ac_tool_warned in
7821 yes:)
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7824 ac_tool_warned=yes ;;
7825 esac
7826 DSYMUTIL=$ac_ct_DSYMUTIL
7827 fi
7828 else
7829 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7830 fi
7831
7832 if test -n "$ac_tool_prefix"; then
7833 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7834 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7836 $as_echo_n "checking for $ac_word... " >&6; }
7837 if ${ac_cv_prog_NMEDIT+:} false; then :
7838 $as_echo_n "(cached) " >&6
7839 else
7840 if test -n "$NMEDIT"; then
7841 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7842 else
7843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7844 for as_dir in $PATH
7845 do
7846 IFS=$as_save_IFS
7847 test -z "$as_dir" && as_dir=.
7848 for ac_exec_ext in '' $ac_executable_extensions; do
7849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7850 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7851 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7852 break 2
7853 fi
7854 done
7855 done
7856 IFS=$as_save_IFS
7857
7858 fi
7859 fi
7860 NMEDIT=$ac_cv_prog_NMEDIT
7861 if test -n "$NMEDIT"; then
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7863 $as_echo "$NMEDIT" >&6; }
7864 else
7865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7866 $as_echo "no" >&6; }
7867 fi
7868
7869
7870 fi
7871 if test -z "$ac_cv_prog_NMEDIT"; then
7872 ac_ct_NMEDIT=$NMEDIT
7873 # Extract the first word of "nmedit", so it can be a program name with args.
7874 set dummy nmedit; ac_word=$2
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7876 $as_echo_n "checking for $ac_word... " >&6; }
7877 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7878 $as_echo_n "(cached) " >&6
7879 else
7880 if test -n "$ac_ct_NMEDIT"; then
7881 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7882 else
7883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7884 for as_dir in $PATH
7885 do
7886 IFS=$as_save_IFS
7887 test -z "$as_dir" && as_dir=.
7888 for ac_exec_ext in '' $ac_executable_extensions; do
7889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7890 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7892 break 2
7893 fi
7894 done
7895 done
7896 IFS=$as_save_IFS
7897
7898 fi
7899 fi
7900 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7901 if test -n "$ac_ct_NMEDIT"; then
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7903 $as_echo "$ac_ct_NMEDIT" >&6; }
7904 else
7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7906 $as_echo "no" >&6; }
7907 fi
7908
7909 if test "x$ac_ct_NMEDIT" = x; then
7910 NMEDIT=":"
7911 else
7912 case $cross_compiling:$ac_tool_warned in
7913 yes:)
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7916 ac_tool_warned=yes ;;
7917 esac
7918 NMEDIT=$ac_ct_NMEDIT
7919 fi
7920 else
7921 NMEDIT="$ac_cv_prog_NMEDIT"
7922 fi
7923
7924 if test -n "$ac_tool_prefix"; then
7925 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7926 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7928 $as_echo_n "checking for $ac_word... " >&6; }
7929 if ${ac_cv_prog_LIPO+:} false; then :
7930 $as_echo_n "(cached) " >&6
7931 else
7932 if test -n "$LIPO"; then
7933 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7934 else
7935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7936 for as_dir in $PATH
7937 do
7938 IFS=$as_save_IFS
7939 test -z "$as_dir" && as_dir=.
7940 for ac_exec_ext in '' $ac_executable_extensions; do
7941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7942 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7944 break 2
7945 fi
7946 done
7947 done
7948 IFS=$as_save_IFS
7949
7950 fi
7951 fi
7952 LIPO=$ac_cv_prog_LIPO
7953 if test -n "$LIPO"; then
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7955 $as_echo "$LIPO" >&6; }
7956 else
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7958 $as_echo "no" >&6; }
7959 fi
7960
7961
7962 fi
7963 if test -z "$ac_cv_prog_LIPO"; then
7964 ac_ct_LIPO=$LIPO
7965 # Extract the first word of "lipo", so it can be a program name with args.
7966 set dummy lipo; ac_word=$2
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7968 $as_echo_n "checking for $ac_word... " >&6; }
7969 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7970 $as_echo_n "(cached) " >&6
7971 else
7972 if test -n "$ac_ct_LIPO"; then
7973 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7974 else
7975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7976 for as_dir in $PATH
7977 do
7978 IFS=$as_save_IFS
7979 test -z "$as_dir" && as_dir=.
7980 for ac_exec_ext in '' $ac_executable_extensions; do
7981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7982 ac_cv_prog_ac_ct_LIPO="lipo"
7983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7984 break 2
7985 fi
7986 done
7987 done
7988 IFS=$as_save_IFS
7989
7990 fi
7991 fi
7992 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7993 if test -n "$ac_ct_LIPO"; then
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7995 $as_echo "$ac_ct_LIPO" >&6; }
7996 else
7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7998 $as_echo "no" >&6; }
7999 fi
8000
8001 if test "x$ac_ct_LIPO" = x; then
8002 LIPO=":"
8003 else
8004 case $cross_compiling:$ac_tool_warned in
8005 yes:)
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8007 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8008 ac_tool_warned=yes ;;
8009 esac
8010 LIPO=$ac_ct_LIPO
8011 fi
8012 else
8013 LIPO="$ac_cv_prog_LIPO"
8014 fi
8015
8016 if test -n "$ac_tool_prefix"; then
8017 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8018 set dummy ${ac_tool_prefix}otool; ac_word=$2
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8020 $as_echo_n "checking for $ac_word... " >&6; }
8021 if ${ac_cv_prog_OTOOL+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023 else
8024 if test -n "$OTOOL"; then
8025 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8026 else
8027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8028 for as_dir in $PATH
8029 do
8030 IFS=$as_save_IFS
8031 test -z "$as_dir" && as_dir=.
8032 for ac_exec_ext in '' $ac_executable_extensions; do
8033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8034 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8036 break 2
8037 fi
8038 done
8039 done
8040 IFS=$as_save_IFS
8041
8042 fi
8043 fi
8044 OTOOL=$ac_cv_prog_OTOOL
8045 if test -n "$OTOOL"; then
8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8047 $as_echo "$OTOOL" >&6; }
8048 else
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }
8051 fi
8052
8053
8054 fi
8055 if test -z "$ac_cv_prog_OTOOL"; then
8056 ac_ct_OTOOL=$OTOOL
8057 # Extract the first word of "otool", so it can be a program name with args.
8058 set dummy otool; ac_word=$2
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8060 $as_echo_n "checking for $ac_word... " >&6; }
8061 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8062 $as_echo_n "(cached) " >&6
8063 else
8064 if test -n "$ac_ct_OTOOL"; then
8065 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8066 else
8067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8068 for as_dir in $PATH
8069 do
8070 IFS=$as_save_IFS
8071 test -z "$as_dir" && as_dir=.
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_ac_ct_OTOOL="otool"
8075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082 fi
8083 fi
8084 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8085 if test -n "$ac_ct_OTOOL"; then
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8087 $as_echo "$ac_ct_OTOOL" >&6; }
8088 else
8089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8090 $as_echo "no" >&6; }
8091 fi
8092
8093 if test "x$ac_ct_OTOOL" = x; then
8094 OTOOL=":"
8095 else
8096 case $cross_compiling:$ac_tool_warned in
8097 yes:)
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8099 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8100 ac_tool_warned=yes ;;
8101 esac
8102 OTOOL=$ac_ct_OTOOL
8103 fi
8104 else
8105 OTOOL="$ac_cv_prog_OTOOL"
8106 fi
8107
8108 if test -n "$ac_tool_prefix"; then
8109 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8110 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8112 $as_echo_n "checking for $ac_word... " >&6; }
8113 if ${ac_cv_prog_OTOOL64+:} false; then :
8114 $as_echo_n "(cached) " >&6
8115 else
8116 if test -n "$OTOOL64"; then
8117 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8118 else
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8121 do
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8129 fi
8130 done
8131 done
8132 IFS=$as_save_IFS
8133
8134 fi
8135 fi
8136 OTOOL64=$ac_cv_prog_OTOOL64
8137 if test -n "$OTOOL64"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8139 $as_echo "$OTOOL64" >&6; }
8140 else
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8142 $as_echo "no" >&6; }
8143 fi
8144
8145
8146 fi
8147 if test -z "$ac_cv_prog_OTOOL64"; then
8148 ac_ct_OTOOL64=$OTOOL64
8149 # Extract the first word of "otool64", so it can be a program name with args.
8150 set dummy otool64; ac_word=$2
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8152 $as_echo_n "checking for $ac_word... " >&6; }
8153 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 if test -n "$ac_ct_OTOOL64"; then
8157 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8158 else
8159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8160 for as_dir in $PATH
8161 do
8162 IFS=$as_save_IFS
8163 test -z "$as_dir" && as_dir=.
8164 for ac_exec_ext in '' $ac_executable_extensions; do
8165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8166 ac_cv_prog_ac_ct_OTOOL64="otool64"
8167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8168 break 2
8169 fi
8170 done
8171 done
8172 IFS=$as_save_IFS
8173
8174 fi
8175 fi
8176 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8177 if test -n "$ac_ct_OTOOL64"; then
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8179 $as_echo "$ac_ct_OTOOL64" >&6; }
8180 else
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8182 $as_echo "no" >&6; }
8183 fi
8184
8185 if test "x$ac_ct_OTOOL64" = x; then
8186 OTOOL64=":"
8187 else
8188 case $cross_compiling:$ac_tool_warned in
8189 yes:)
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8191 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8192 ac_tool_warned=yes ;;
8193 esac
8194 OTOOL64=$ac_ct_OTOOL64
8195 fi
8196 else
8197 OTOOL64="$ac_cv_prog_OTOOL64"
8198 fi
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210
8211
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8227 $as_echo_n "checking for -single_module linker flag... " >&6; }
8228 if ${lt_cv_apple_cc_single_mod+:} false; then :
8229 $as_echo_n "(cached) " >&6
8230 else
8231 lt_cv_apple_cc_single_mod=no
8232 if test -z "${LT_MULTI_MODULE}"; then
8233 # By default we will add the -single_module flag. You can override
8234 # by either setting the environment variable LT_MULTI_MODULE
8235 # non-empty at configure time, or by adding -multi_module to the
8236 # link flags.
8237 rm -rf libconftest.dylib*
8238 echo "int foo(void){return 1;}" > conftest.c
8239 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8240 -dynamiclib -Wl,-single_module conftest.c" >&5
8241 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8242 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8243 _lt_result=$?
8244 # If there is a non-empty error log, and "single_module"
8245 # appears in it, assume the flag caused a linker warning
8246 if test -s conftest.err && $GREP single_module conftest.err; then
8247 cat conftest.err >&5
8248 # Otherwise, if the output was created with a 0 exit code from
8249 # the compiler, it worked.
8250 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
8251 lt_cv_apple_cc_single_mod=yes
8252 else
8253 cat conftest.err >&5
8254 fi
8255 rm -rf libconftest.dylib*
8256 rm -f conftest.*
8257 fi
8258 fi
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8260 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8261
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8263 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8264 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 lt_cv_ld_exported_symbols_list=no
8268 save_LDFLAGS=$LDFLAGS
8269 echo "_main" > conftest.sym
8270 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273
8274 int
8275 main ()
8276 {
8277
8278 ;
8279 return 0;
8280 }
8281 _ACEOF
8282 if ac_fn_c_try_link "$LINENO"; then :
8283 lt_cv_ld_exported_symbols_list=yes
8284 else
8285 lt_cv_ld_exported_symbols_list=no
8286 fi
8287 rm -f core conftest.err conftest.$ac_objext \
8288 conftest$ac_exeext conftest.$ac_ext
8289 LDFLAGS="$save_LDFLAGS"
8290
8291 fi
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8293 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8294
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8296 $as_echo_n "checking for -force_load linker flag... " >&6; }
8297 if ${lt_cv_ld_force_load+:} false; then :
8298 $as_echo_n "(cached) " >&6
8299 else
8300 lt_cv_ld_force_load=no
8301 cat > conftest.c << _LT_EOF
8302 int forced_loaded() { return 2;}
8303 _LT_EOF
8304 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8305 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8306 echo "$AR cru libconftest.a conftest.o" >&5
8307 $AR cru libconftest.a conftest.o 2>&5
8308 echo "$RANLIB libconftest.a" >&5
8309 $RANLIB libconftest.a 2>&5
8310 cat > conftest.c << _LT_EOF
8311 int main() { return 0;}
8312 _LT_EOF
8313 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8314 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8315 _lt_result=$?
8316 if test -s conftest.err && $GREP force_load conftest.err; then
8317 cat conftest.err >&5
8318 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
8319 lt_cv_ld_force_load=yes
8320 else
8321 cat conftest.err >&5
8322 fi
8323 rm -f conftest.err libconftest.a conftest conftest.c
8324 rm -rf conftest.dSYM
8325
8326 fi
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8328 $as_echo "$lt_cv_ld_force_load" >&6; }
8329 case $host_os in
8330 rhapsody* | darwin1.[012])
8331 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8332 darwin1.*)
8333 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8334 darwin*) # darwin 5.x on
8335 # if running on 10.5 or later, the deployment target defaults
8336 # to the OS version, if on x86, and 10.4, the deployment
8337 # target defaults to 10.4. Don't you love it?
8338 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8339 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8340 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8341 10.[012]*)
8342 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8343 10.*)
8344 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8345 esac
8346 ;;
8347 esac
8348 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8349 _lt_dar_single_mod='$single_module'
8350 fi
8351 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8352 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8353 else
8354 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8355 fi
8356 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8357 _lt_dsymutil='~$DSYMUTIL $lib || :'
8358 else
8359 _lt_dsymutil=
8360 fi
8361 ;;
8362 esac
8363
8364 for ac_header in dlfcn.h
8365 do :
8366 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8367 "
8368 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8369 cat >>confdefs.h <<_ACEOF
8370 #define HAVE_DLFCN_H 1
8371 _ACEOF
8372
8373 fi
8374
8375 done
8376
8377
8378
8379
8380
8381 # Set options
8382
8383
8384
8385 enable_dlopen=no
8386
8387
8388
8389 # Check whether --enable-shared was given.
8390 if test "${enable_shared+set}" = set; then :
8391 enableval=$enable_shared; p=${PACKAGE-default}
8392 case $enableval in
8393 yes) enable_shared=yes ;;
8394 no) enable_shared=no ;;
8395 *)
8396 enable_shared=no
8397 # Look at the argument we got. We use all the common list separators.
8398 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8399 for pkg in $enableval; do
8400 IFS="$lt_save_ifs"
8401 if test "X$pkg" = "X$p"; then
8402 enable_shared=yes
8403 fi
8404 done
8405 IFS="$lt_save_ifs"
8406 ;;
8407 esac
8408 else
8409 enable_shared=yes
8410 fi
8411
8412
8413
8414
8415
8416
8417
8418
8419
8420 # Check whether --enable-static was given.
8421 if test "${enable_static+set}" = set; then :
8422 enableval=$enable_static; p=${PACKAGE-default}
8423 case $enableval in
8424 yes) enable_static=yes ;;
8425 no) enable_static=no ;;
8426 *)
8427 enable_static=no
8428 # Look at the argument we got. We use all the common list separators.
8429 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8430 for pkg in $enableval; do
8431 IFS="$lt_save_ifs"
8432 if test "X$pkg" = "X$p"; then
8433 enable_static=yes
8434 fi
8435 done
8436 IFS="$lt_save_ifs"
8437 ;;
8438 esac
8439 else
8440 enable_static=yes
8441 fi
8442
8443
8444
8445
8446
8447
8448
8449
8450
8451
8452 # Check whether --with-pic was given.
8453 if test "${with_pic+set}" = set; then :
8454 withval=$with_pic; lt_p=${PACKAGE-default}
8455 case $withval in
8456 yes|no) pic_mode=$withval ;;
8457 *)
8458 pic_mode=default
8459 # Look at the argument we got. We use all the common list separators.
8460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8461 for lt_pkg in $withval; do
8462 IFS="$lt_save_ifs"
8463 if test "X$lt_pkg" = "X$lt_p"; then
8464 pic_mode=yes
8465 fi
8466 done
8467 IFS="$lt_save_ifs"
8468 ;;
8469 esac
8470 else
8471 pic_mode=default
8472 fi
8473
8474
8475 test -z "$pic_mode" && pic_mode=default
8476
8477
8478
8479
8480
8481
8482
8483 # Check whether --enable-fast-install was given.
8484 if test "${enable_fast_install+set}" = set; then :
8485 enableval=$enable_fast_install; p=${PACKAGE-default}
8486 case $enableval in
8487 yes) enable_fast_install=yes ;;
8488 no) enable_fast_install=no ;;
8489 *)
8490 enable_fast_install=no
8491 # Look at the argument we got. We use all the common list separators.
8492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8493 for pkg in $enableval; do
8494 IFS="$lt_save_ifs"
8495 if test "X$pkg" = "X$p"; then
8496 enable_fast_install=yes
8497 fi
8498 done
8499 IFS="$lt_save_ifs"
8500 ;;
8501 esac
8502 else
8503 enable_fast_install=yes
8504 fi
8505
8506
8507
8508
8509
8510
8511
8512
8513
8514
8515
8516 # This can be used to rebuild libtool when needed
8517 LIBTOOL_DEPS="$ltmain"
8518
8519 # Always use our own libtool.
8520 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8521
8522
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533
8534
8535
8536
8537
8538
8539
8540
8541
8542
8543
8544
8545
8546
8547
8548
8549
8550
8551 test -z "$LN_S" && LN_S="ln -s"
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566 if test -n "${ZSH_VERSION+set}" ; then
8567 setopt NO_GLOB_SUBST
8568 fi
8569
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8571 $as_echo_n "checking for objdir... " >&6; }
8572 if ${lt_cv_objdir+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 rm -f .libs 2>/dev/null
8576 mkdir .libs 2>/dev/null
8577 if test -d .libs; then
8578 lt_cv_objdir=.libs
8579 else
8580 # MS-DOS does not allow filenames that begin with a dot.
8581 lt_cv_objdir=_libs
8582 fi
8583 rmdir .libs 2>/dev/null
8584 fi
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8586 $as_echo "$lt_cv_objdir" >&6; }
8587 objdir=$lt_cv_objdir
8588
8589
8590
8591
8592
8593 cat >>confdefs.h <<_ACEOF
8594 #define LT_OBJDIR "$lt_cv_objdir/"
8595 _ACEOF
8596
8597
8598
8599
8600 case $host_os in
8601 aix3*)
8602 # AIX sometimes has problems with the GCC collect2 program. For some
8603 # reason, if we set the COLLECT_NAMES environment variable, the problems
8604 # vanish in a puff of smoke.
8605 if test "X${COLLECT_NAMES+set}" != Xset; then
8606 COLLECT_NAMES=
8607 export COLLECT_NAMES
8608 fi
8609 ;;
8610 esac
8611
8612 # Global variables:
8613 ofile=libtool
8614 can_build_shared=yes
8615
8616 # All known linkers require a `.a' archive for static linking (except MSVC,
8617 # which needs '.lib').
8618 libext=a
8619
8620 with_gnu_ld="$lt_cv_prog_gnu_ld"
8621
8622 old_CC="$CC"
8623 old_CFLAGS="$CFLAGS"
8624
8625 # Set sane defaults for various variables
8626 test -z "$CC" && CC=cc
8627 test -z "$LTCC" && LTCC=$CC
8628 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8629 test -z "$LD" && LD=ld
8630 test -z "$ac_objext" && ac_objext=o
8631
8632 for cc_temp in $compiler""; do
8633 case $cc_temp in
8634 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8635 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8636 \-*) ;;
8637 *) break;;
8638 esac
8639 done
8640 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8641
8642
8643 # Only perform the check for file, if the check method requires it
8644 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8645 case $deplibs_check_method in
8646 file_magic*)
8647 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8649 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8650 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8651 $as_echo_n "(cached) " >&6
8652 else
8653 case $MAGIC_CMD in
8654 [\\/*] | ?:[\\/]*)
8655 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8656 ;;
8657 *)
8658 lt_save_MAGIC_CMD="$MAGIC_CMD"
8659 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8660 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8661 for ac_dir in $ac_dummy; do
8662 IFS="$lt_save_ifs"
8663 test -z "$ac_dir" && ac_dir=.
8664 if test -f $ac_dir/${ac_tool_prefix}file; then
8665 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8666 if test -n "$file_magic_test_file"; then
8667 case $deplibs_check_method in
8668 "file_magic "*)
8669 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8670 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8671 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8672 $EGREP "$file_magic_regex" > /dev/null; then
8673 :
8674 else
8675 cat <<_LT_EOF 1>&2
8676
8677 *** Warning: the command libtool uses to detect shared libraries,
8678 *** $file_magic_cmd, produces output that libtool cannot recognize.
8679 *** The result is that libtool may fail to recognize shared libraries
8680 *** as such. This will affect the creation of libtool libraries that
8681 *** depend on shared libraries, but programs linked with such libtool
8682 *** libraries will work regardless of this problem. Nevertheless, you
8683 *** may want to report the problem to your system manager and/or to
8684 *** bug-libtool@gnu.org
8685
8686 _LT_EOF
8687 fi ;;
8688 esac
8689 fi
8690 break
8691 fi
8692 done
8693 IFS="$lt_save_ifs"
8694 MAGIC_CMD="$lt_save_MAGIC_CMD"
8695 ;;
8696 esac
8697 fi
8698
8699 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8700 if test -n "$MAGIC_CMD"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8702 $as_echo "$MAGIC_CMD" >&6; }
8703 else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8706 fi
8707
8708
8709
8710
8711
8712 if test -z "$lt_cv_path_MAGIC_CMD"; then
8713 if test -n "$ac_tool_prefix"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8715 $as_echo_n "checking for file... " >&6; }
8716 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8717 $as_echo_n "(cached) " >&6
8718 else
8719 case $MAGIC_CMD in
8720 [\\/*] | ?:[\\/]*)
8721 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8722 ;;
8723 *)
8724 lt_save_MAGIC_CMD="$MAGIC_CMD"
8725 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8726 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8727 for ac_dir in $ac_dummy; do
8728 IFS="$lt_save_ifs"
8729 test -z "$ac_dir" && ac_dir=.
8730 if test -f $ac_dir/file; then
8731 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8732 if test -n "$file_magic_test_file"; then
8733 case $deplibs_check_method in
8734 "file_magic "*)
8735 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8736 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8737 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8738 $EGREP "$file_magic_regex" > /dev/null; then
8739 :
8740 else
8741 cat <<_LT_EOF 1>&2
8742
8743 *** Warning: the command libtool uses to detect shared libraries,
8744 *** $file_magic_cmd, produces output that libtool cannot recognize.
8745 *** The result is that libtool may fail to recognize shared libraries
8746 *** as such. This will affect the creation of libtool libraries that
8747 *** depend on shared libraries, but programs linked with such libtool
8748 *** libraries will work regardless of this problem. Nevertheless, you
8749 *** may want to report the problem to your system manager and/or to
8750 *** bug-libtool@gnu.org
8751
8752 _LT_EOF
8753 fi ;;
8754 esac
8755 fi
8756 break
8757 fi
8758 done
8759 IFS="$lt_save_ifs"
8760 MAGIC_CMD="$lt_save_MAGIC_CMD"
8761 ;;
8762 esac
8763 fi
8764
8765 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8766 if test -n "$MAGIC_CMD"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8768 $as_echo "$MAGIC_CMD" >&6; }
8769 else
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8771 $as_echo "no" >&6; }
8772 fi
8773
8774
8775 else
8776 MAGIC_CMD=:
8777 fi
8778 fi
8779
8780 fi
8781 ;;
8782 esac
8783
8784 # Use C for the default configuration in the libtool script
8785
8786 lt_save_CC="$CC"
8787 ac_ext=c
8788 ac_cpp='$CPP $CPPFLAGS'
8789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8792
8793
8794 # Source file extension for C test sources.
8795 ac_ext=c
8796
8797 # Object file extension for compiled C test sources.
8798 objext=o
8799 objext=$objext
8800
8801 # Code to be used in simple compile tests
8802 lt_simple_compile_test_code="int some_variable = 0;"
8803
8804 # Code to be used in simple link tests
8805 lt_simple_link_test_code='int main(){return(0);}'
8806
8807
8808
8809
8810
8811
8812
8813 # If no C compiler was specified, use CC.
8814 LTCC=${LTCC-"$CC"}
8815
8816 # If no C compiler flags were specified, use CFLAGS.
8817 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8818
8819 # Allow CC to be a program name with arguments.
8820 compiler=$CC
8821
8822 # Save the default compiler, since it gets overwritten when the other
8823 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8824 compiler_DEFAULT=$CC
8825
8826 # save warnings/boilerplate of simple test code
8827 ac_outfile=conftest.$ac_objext
8828 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8829 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8830 _lt_compiler_boilerplate=`cat conftest.err`
8831 $RM conftest*
8832
8833 ac_outfile=conftest.$ac_objext
8834 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8835 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8836 _lt_linker_boilerplate=`cat conftest.err`
8837 $RM -r conftest*
8838
8839
8840 ## CAVEAT EMPTOR:
8841 ## There is no encapsulation within the following macros, do not change
8842 ## the running order or otherwise move them around unless you know exactly
8843 ## what you are doing...
8844 if test -n "$compiler"; then
8845
8846 lt_prog_compiler_no_builtin_flag=
8847
8848 if test "$GCC" = yes; then
8849 case $cc_basename in
8850 nvcc*)
8851 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8852 *)
8853 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8854 esac
8855
8856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8857 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8858 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8859 $as_echo_n "(cached) " >&6
8860 else
8861 lt_cv_prog_compiler_rtti_exceptions=no
8862 ac_outfile=conftest.$ac_objext
8863 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8864 lt_compiler_flag="-fno-rtti -fno-exceptions"
8865 # Insert the option either (1) after the last *FLAGS variable, or
8866 # (2) before a word containing "conftest.", or (3) at the end.
8867 # Note that $ac_compile itself does not contain backslashes and begins
8868 # with a dollar sign (not a hyphen), so the echo should work correctly.
8869 # The option is referenced via a variable to avoid confusing sed.
8870 lt_compile=`echo "$ac_compile" | $SED \
8871 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8872 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8873 -e 's:$: $lt_compiler_flag:'`
8874 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8875 (eval "$lt_compile" 2>conftest.err)
8876 ac_status=$?
8877 cat conftest.err >&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 if (exit $ac_status) && test -s "$ac_outfile"; then
8880 # The compiler can only warn and ignore the option if not recognized
8881 # So say no if there are warnings other than the usual output.
8882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8883 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8884 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8885 lt_cv_prog_compiler_rtti_exceptions=yes
8886 fi
8887 fi
8888 $RM conftest*
8889
8890 fi
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8892 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8893
8894 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8895 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8896 else
8897 :
8898 fi
8899
8900 fi
8901
8902
8903
8904
8905
8906
8907 lt_prog_compiler_wl=
8908 lt_prog_compiler_pic=
8909 lt_prog_compiler_static=
8910
8911
8912 if test "$GCC" = yes; then
8913 lt_prog_compiler_wl='-Wl,'
8914 lt_prog_compiler_static='-static'
8915
8916 case $host_os in
8917 aix*)
8918 # All AIX code is PIC.
8919 if test "$host_cpu" = ia64; then
8920 # AIX 5 now supports IA64 processor
8921 lt_prog_compiler_static='-Bstatic'
8922 fi
8923 ;;
8924
8925 amigaos*)
8926 case $host_cpu in
8927 powerpc)
8928 # see comment about AmigaOS4 .so support
8929 lt_prog_compiler_pic='-fPIC'
8930 ;;
8931 m68k)
8932 # FIXME: we need at least 68020 code to build shared libraries, but
8933 # adding the `-m68020' flag to GCC prevents building anything better,
8934 # like `-m68040'.
8935 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8936 ;;
8937 esac
8938 ;;
8939
8940 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8941 # PIC is the default for these OSes.
8942 ;;
8943
8944 mingw* | cygwin* | pw32* | os2* | cegcc*)
8945 # This hack is so that the source file can tell whether it is being
8946 # built for inclusion in a dll (and should export symbols for example).
8947 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8948 # (--disable-auto-import) libraries
8949 lt_prog_compiler_pic='-DDLL_EXPORT'
8950 ;;
8951
8952 darwin* | rhapsody*)
8953 # PIC is the default on this platform
8954 # Common symbols not allowed in MH_DYLIB files
8955 lt_prog_compiler_pic='-fno-common'
8956 ;;
8957
8958 haiku*)
8959 # PIC is the default for Haiku.
8960 # The "-static" flag exists, but is broken.
8961 lt_prog_compiler_static=
8962 ;;
8963
8964 hpux*)
8965 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8966 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8967 # sets the default TLS model and affects inlining.
8968 case $host_cpu in
8969 hppa*64*)
8970 # +Z the default
8971 ;;
8972 *)
8973 lt_prog_compiler_pic='-fPIC'
8974 ;;
8975 esac
8976 ;;
8977
8978 interix[3-9]*)
8979 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8980 # Instead, we relocate shared libraries at runtime.
8981 ;;
8982
8983 msdosdjgpp*)
8984 # Just because we use GCC doesn't mean we suddenly get shared libraries
8985 # on systems that don't support them.
8986 lt_prog_compiler_can_build_shared=no
8987 enable_shared=no
8988 ;;
8989
8990 *nto* | *qnx*)
8991 # QNX uses GNU C++, but need to define -shared option too, otherwise
8992 # it will coredump.
8993 lt_prog_compiler_pic='-fPIC -shared'
8994 ;;
8995
8996 sysv4*MP*)
8997 if test -d /usr/nec; then
8998 lt_prog_compiler_pic=-Kconform_pic
8999 fi
9000 ;;
9001
9002 *)
9003 lt_prog_compiler_pic='-fPIC'
9004 ;;
9005 esac
9006
9007 case $cc_basename in
9008 nvcc*) # Cuda Compiler Driver 2.2
9009 lt_prog_compiler_wl='-Xlinker '
9010 if test -n "$lt_prog_compiler_pic"; then
9011 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9012 fi
9013 ;;
9014 esac
9015 else
9016 # PORTME Check for flag to pass linker flags through the system compiler.
9017 case $host_os in
9018 aix*)
9019 lt_prog_compiler_wl='-Wl,'
9020 if test "$host_cpu" = ia64; then
9021 # AIX 5 now supports IA64 processor
9022 lt_prog_compiler_static='-Bstatic'
9023 else
9024 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9025 fi
9026 ;;
9027
9028 mingw* | cygwin* | pw32* | os2* | cegcc*)
9029 # This hack is so that the source file can tell whether it is being
9030 # built for inclusion in a dll (and should export symbols for example).
9031 lt_prog_compiler_pic='-DDLL_EXPORT'
9032 ;;
9033
9034 hpux9* | hpux10* | hpux11*)
9035 lt_prog_compiler_wl='-Wl,'
9036 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9037 # not for PA HP-UX.
9038 case $host_cpu in
9039 hppa*64*|ia64*)
9040 # +Z the default
9041 ;;
9042 *)
9043 lt_prog_compiler_pic='+Z'
9044 ;;
9045 esac
9046 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9047 lt_prog_compiler_static='${wl}-a ${wl}archive'
9048 ;;
9049
9050 irix5* | irix6* | nonstopux*)
9051 lt_prog_compiler_wl='-Wl,'
9052 # PIC (with -KPIC) is the default.
9053 lt_prog_compiler_static='-non_shared'
9054 ;;
9055
9056 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9057 case $cc_basename in
9058 # old Intel for x86_64 which still supported -KPIC.
9059 ecc*)
9060 lt_prog_compiler_wl='-Wl,'
9061 lt_prog_compiler_pic='-KPIC'
9062 lt_prog_compiler_static='-static'
9063 ;;
9064 # icc used to be incompatible with GCC.
9065 # ICC 10 doesn't accept -KPIC any more.
9066 icc* | ifort*)
9067 lt_prog_compiler_wl='-Wl,'
9068 lt_prog_compiler_pic='-fPIC'
9069 lt_prog_compiler_static='-static'
9070 ;;
9071 # Lahey Fortran 8.1.
9072 lf95*)
9073 lt_prog_compiler_wl='-Wl,'
9074 lt_prog_compiler_pic='--shared'
9075 lt_prog_compiler_static='--static'
9076 ;;
9077 nagfor*)
9078 # NAG Fortran compiler
9079 lt_prog_compiler_wl='-Wl,-Wl,,'
9080 lt_prog_compiler_pic='-PIC'
9081 lt_prog_compiler_static='-Bstatic'
9082 ;;
9083 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9084 # Portland Group compilers (*not* the Pentium gcc compiler,
9085 # which looks to be a dead project)
9086 lt_prog_compiler_wl='-Wl,'
9087 lt_prog_compiler_pic='-fpic'
9088 lt_prog_compiler_static='-Bstatic'
9089 ;;
9090 ccc*)
9091 lt_prog_compiler_wl='-Wl,'
9092 # All Alpha code is PIC.
9093 lt_prog_compiler_static='-non_shared'
9094 ;;
9095 xl* | bgxl* | bgf* | mpixl*)
9096 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9097 lt_prog_compiler_wl='-Wl,'
9098 lt_prog_compiler_pic='-qpic'
9099 lt_prog_compiler_static='-qstaticlink'
9100 ;;
9101 *)
9102 case `$CC -V 2>&1 | sed 5q` in
9103 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9104 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9105 lt_prog_compiler_pic='-KPIC'
9106 lt_prog_compiler_static='-Bstatic'
9107 lt_prog_compiler_wl=''
9108 ;;
9109 *Sun\ F* | *Sun*Fortran*)
9110 lt_prog_compiler_pic='-KPIC'
9111 lt_prog_compiler_static='-Bstatic'
9112 lt_prog_compiler_wl='-Qoption ld '
9113 ;;
9114 *Sun\ C*)
9115 # Sun C 5.9
9116 lt_prog_compiler_pic='-KPIC'
9117 lt_prog_compiler_static='-Bstatic'
9118 lt_prog_compiler_wl='-Wl,'
9119 ;;
9120 *Intel*\ [CF]*Compiler*)
9121 lt_prog_compiler_wl='-Wl,'
9122 lt_prog_compiler_pic='-fPIC'
9123 lt_prog_compiler_static='-static'
9124 ;;
9125 *Portland\ Group*)
9126 lt_prog_compiler_wl='-Wl,'
9127 lt_prog_compiler_pic='-fpic'
9128 lt_prog_compiler_static='-Bstatic'
9129 ;;
9130 esac
9131 ;;
9132 esac
9133 ;;
9134
9135 newsos6)
9136 lt_prog_compiler_pic='-KPIC'
9137 lt_prog_compiler_static='-Bstatic'
9138 ;;
9139
9140 *nto* | *qnx*)
9141 # QNX uses GNU C++, but need to define -shared option too, otherwise
9142 # it will coredump.
9143 lt_prog_compiler_pic='-fPIC -shared'
9144 ;;
9145
9146 osf3* | osf4* | osf5*)
9147 lt_prog_compiler_wl='-Wl,'
9148 # All OSF/1 code is PIC.
9149 lt_prog_compiler_static='-non_shared'
9150 ;;
9151
9152 rdos*)
9153 lt_prog_compiler_static='-non_shared'
9154 ;;
9155
9156 solaris*)
9157 lt_prog_compiler_pic='-KPIC'
9158 lt_prog_compiler_static='-Bstatic'
9159 case $cc_basename in
9160 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9161 lt_prog_compiler_wl='-Qoption ld ';;
9162 *)
9163 lt_prog_compiler_wl='-Wl,';;
9164 esac
9165 ;;
9166
9167 sunos4*)
9168 lt_prog_compiler_wl='-Qoption ld '
9169 lt_prog_compiler_pic='-PIC'
9170 lt_prog_compiler_static='-Bstatic'
9171 ;;
9172
9173 sysv4 | sysv4.2uw2* | sysv4.3*)
9174 lt_prog_compiler_wl='-Wl,'
9175 lt_prog_compiler_pic='-KPIC'
9176 lt_prog_compiler_static='-Bstatic'
9177 ;;
9178
9179 sysv4*MP*)
9180 if test -d /usr/nec ;then
9181 lt_prog_compiler_pic='-Kconform_pic'
9182 lt_prog_compiler_static='-Bstatic'
9183 fi
9184 ;;
9185
9186 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9187 lt_prog_compiler_wl='-Wl,'
9188 lt_prog_compiler_pic='-KPIC'
9189 lt_prog_compiler_static='-Bstatic'
9190 ;;
9191
9192 unicos*)
9193 lt_prog_compiler_wl='-Wl,'
9194 lt_prog_compiler_can_build_shared=no
9195 ;;
9196
9197 uts4*)
9198 lt_prog_compiler_pic='-pic'
9199 lt_prog_compiler_static='-Bstatic'
9200 ;;
9201
9202 *)
9203 lt_prog_compiler_can_build_shared=no
9204 ;;
9205 esac
9206 fi
9207
9208 case $host_os in
9209 # For platforms which do not support PIC, -DPIC is meaningless:
9210 *djgpp*)
9211 lt_prog_compiler_pic=
9212 ;;
9213 *)
9214 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9215 ;;
9216 esac
9217
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9219 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9220 if ${lt_cv_prog_compiler_pic+:} false; then :
9221 $as_echo_n "(cached) " >&6
9222 else
9223 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9224 fi
9225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9226 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9227 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9228
9229 #
9230 # Check to make sure the PIC flag actually works.
9231 #
9232 if test -n "$lt_prog_compiler_pic"; then
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9234 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9235 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 lt_cv_prog_compiler_pic_works=no
9239 ac_outfile=conftest.$ac_objext
9240 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9241 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9242 # Insert the option either (1) after the last *FLAGS variable, or
9243 # (2) before a word containing "conftest.", or (3) at the end.
9244 # Note that $ac_compile itself does not contain backslashes and begins
9245 # with a dollar sign (not a hyphen), so the echo should work correctly.
9246 # The option is referenced via a variable to avoid confusing sed.
9247 lt_compile=`echo "$ac_compile" | $SED \
9248 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9249 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9250 -e 's:$: $lt_compiler_flag:'`
9251 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9252 (eval "$lt_compile" 2>conftest.err)
9253 ac_status=$?
9254 cat conftest.err >&5
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 if (exit $ac_status) && test -s "$ac_outfile"; then
9257 # The compiler can only warn and ignore the option if not recognized
9258 # So say no if there are warnings other than the usual output.
9259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9260 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9261 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9262 lt_cv_prog_compiler_pic_works=yes
9263 fi
9264 fi
9265 $RM conftest*
9266
9267 fi
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9269 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9270
9271 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9272 case $lt_prog_compiler_pic in
9273 "" | " "*) ;;
9274 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9275 esac
9276 else
9277 lt_prog_compiler_pic=
9278 lt_prog_compiler_can_build_shared=no
9279 fi
9280
9281 fi
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293 #
9294 # Check to make sure the static flag actually works.
9295 #
9296 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9298 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9299 if ${lt_cv_prog_compiler_static_works+:} false; then :
9300 $as_echo_n "(cached) " >&6
9301 else
9302 lt_cv_prog_compiler_static_works=no
9303 save_LDFLAGS="$LDFLAGS"
9304 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9305 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9306 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9307 # The linker can only warn and ignore the option if not recognized
9308 # So say no if there are warnings
9309 if test -s conftest.err; then
9310 # Append any errors to the config.log.
9311 cat conftest.err 1>&5
9312 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9313 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9314 if diff conftest.exp conftest.er2 >/dev/null; then
9315 lt_cv_prog_compiler_static_works=yes
9316 fi
9317 else
9318 lt_cv_prog_compiler_static_works=yes
9319 fi
9320 fi
9321 $RM -r conftest*
9322 LDFLAGS="$save_LDFLAGS"
9323
9324 fi
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9326 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9327
9328 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9329 :
9330 else
9331 lt_prog_compiler_static=
9332 fi
9333
9334
9335
9336
9337
9338
9339
9340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9341 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9342 if ${lt_cv_prog_compiler_c_o+:} false; then :
9343 $as_echo_n "(cached) " >&6
9344 else
9345 lt_cv_prog_compiler_c_o=no
9346 $RM -r conftest 2>/dev/null
9347 mkdir conftest
9348 cd conftest
9349 mkdir out
9350 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9351
9352 lt_compiler_flag="-o out/conftest2.$ac_objext"
9353 # Insert the option either (1) after the last *FLAGS variable, or
9354 # (2) before a word containing "conftest.", or (3) at the end.
9355 # Note that $ac_compile itself does not contain backslashes and begins
9356 # with a dollar sign (not a hyphen), so the echo should work correctly.
9357 lt_compile=`echo "$ac_compile" | $SED \
9358 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9359 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9360 -e 's:$: $lt_compiler_flag:'`
9361 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9362 (eval "$lt_compile" 2>out/conftest.err)
9363 ac_status=$?
9364 cat out/conftest.err >&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9367 then
9368 # The compiler can only warn and ignore the option if not recognized
9369 # So say no if there are warnings
9370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9371 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9372 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9373 lt_cv_prog_compiler_c_o=yes
9374 fi
9375 fi
9376 chmod u+w . 2>&5
9377 $RM conftest*
9378 # SGI C++ compiler will create directory out/ii_files/ for
9379 # template instantiation
9380 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9381 $RM out/* && rmdir out
9382 cd ..
9383 $RM -r conftest
9384 $RM conftest*
9385
9386 fi
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9388 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9389
9390
9391
9392
9393
9394
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9396 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9397 if ${lt_cv_prog_compiler_c_o+:} false; then :
9398 $as_echo_n "(cached) " >&6
9399 else
9400 lt_cv_prog_compiler_c_o=no
9401 $RM -r conftest 2>/dev/null
9402 mkdir conftest
9403 cd conftest
9404 mkdir out
9405 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9406
9407 lt_compiler_flag="-o out/conftest2.$ac_objext"
9408 # Insert the option either (1) after the last *FLAGS variable, or
9409 # (2) before a word containing "conftest.", or (3) at the end.
9410 # Note that $ac_compile itself does not contain backslashes and begins
9411 # with a dollar sign (not a hyphen), so the echo should work correctly.
9412 lt_compile=`echo "$ac_compile" | $SED \
9413 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9414 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9415 -e 's:$: $lt_compiler_flag:'`
9416 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9417 (eval "$lt_compile" 2>out/conftest.err)
9418 ac_status=$?
9419 cat out/conftest.err >&5
9420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9421 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9422 then
9423 # The compiler can only warn and ignore the option if not recognized
9424 # So say no if there are warnings
9425 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9426 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9427 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9428 lt_cv_prog_compiler_c_o=yes
9429 fi
9430 fi
9431 chmod u+w . 2>&5
9432 $RM conftest*
9433 # SGI C++ compiler will create directory out/ii_files/ for
9434 # template instantiation
9435 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9436 $RM out/* && rmdir out
9437 cd ..
9438 $RM -r conftest
9439 $RM conftest*
9440
9441 fi
9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9443 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9444
9445
9446
9447
9448 hard_links="nottested"
9449 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9450 # do not overwrite the value of need_locks provided by the user
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9452 $as_echo_n "checking if we can lock with hard links... " >&6; }
9453 hard_links=yes
9454 $RM conftest*
9455 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9456 touch conftest.a
9457 ln conftest.a conftest.b 2>&5 || hard_links=no
9458 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9460 $as_echo "$hard_links" >&6; }
9461 if test "$hard_links" = no; then
9462 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9463 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9464 need_locks=warn
9465 fi
9466 else
9467 need_locks=no
9468 fi
9469
9470
9471
9472
9473
9474
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9476 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9477
9478 runpath_var=
9479 allow_undefined_flag=
9480 always_export_symbols=no
9481 archive_cmds=
9482 archive_expsym_cmds=
9483 compiler_needs_object=no
9484 enable_shared_with_static_runtimes=no
9485 export_dynamic_flag_spec=
9486 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9487 hardcode_automatic=no
9488 hardcode_direct=no
9489 hardcode_direct_absolute=no
9490 hardcode_libdir_flag_spec=
9491 hardcode_libdir_separator=
9492 hardcode_minus_L=no
9493 hardcode_shlibpath_var=unsupported
9494 inherit_rpath=no
9495 link_all_deplibs=unknown
9496 module_cmds=
9497 module_expsym_cmds=
9498 old_archive_from_new_cmds=
9499 old_archive_from_expsyms_cmds=
9500 thread_safe_flag_spec=
9501 whole_archive_flag_spec=
9502 # include_expsyms should be a list of space-separated symbols to be *always*
9503 # included in the symbol list
9504 include_expsyms=
9505 # exclude_expsyms can be an extended regexp of symbols to exclude
9506 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9507 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9508 # as well as any symbol that contains `d'.
9509 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9510 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9511 # platforms (ab)use it in PIC code, but their linkers get confused if
9512 # the symbol is explicitly referenced. Since portable code cannot
9513 # rely on this symbol name, it's probably fine to never include it in
9514 # preloaded symbol tables.
9515 # Exclude shared library initialization/finalization symbols.
9516 extract_expsyms_cmds=
9517
9518 case $host_os in
9519 cygwin* | mingw* | pw32* | cegcc*)
9520 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9521 # When not using gcc, we currently assume that we are using
9522 # Microsoft Visual C++.
9523 if test "$GCC" != yes; then
9524 with_gnu_ld=no
9525 fi
9526 ;;
9527 interix*)
9528 # we just hope/assume this is gcc and not c89 (= MSVC++)
9529 with_gnu_ld=yes
9530 ;;
9531 openbsd*)
9532 with_gnu_ld=no
9533 ;;
9534 esac
9535
9536 ld_shlibs=yes
9537
9538 # On some targets, GNU ld is compatible enough with the native linker
9539 # that we're better off using the native interface for both.
9540 lt_use_gnu_ld_interface=no
9541 if test "$with_gnu_ld" = yes; then
9542 case $host_os in
9543 aix*)
9544 # The AIX port of GNU ld has always aspired to compatibility
9545 # with the native linker. However, as the warning in the GNU ld
9546 # block says, versions before 2.19.5* couldn't really create working
9547 # shared libraries, regardless of the interface used.
9548 case `$LD -v 2>&1` in
9549 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9550 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9551 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9552 *)
9553 lt_use_gnu_ld_interface=yes
9554 ;;
9555 esac
9556 ;;
9557 *)
9558 lt_use_gnu_ld_interface=yes
9559 ;;
9560 esac
9561 fi
9562
9563 if test "$lt_use_gnu_ld_interface" = yes; then
9564 # If archive_cmds runs LD, not CC, wlarc should be empty
9565 wlarc='${wl}'
9566
9567 # Set some defaults for GNU ld with shared library support. These
9568 # are reset later if shared libraries are not supported. Putting them
9569 # here allows them to be overridden if necessary.
9570 runpath_var=LD_RUN_PATH
9571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9572 export_dynamic_flag_spec='${wl}--export-dynamic'
9573 # ancient GNU ld didn't support --whole-archive et. al.
9574 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9575 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9576 else
9577 whole_archive_flag_spec=
9578 fi
9579 supports_anon_versioning=no
9580 case `$LD -v 2>&1` in
9581 *GNU\ gold*) supports_anon_versioning=yes ;;
9582 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9583 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9584 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9585 *\ 2.11.*) ;; # other 2.11 versions
9586 *) supports_anon_versioning=yes ;;
9587 esac
9588
9589 # See if GNU ld supports shared libraries.
9590 case $host_os in
9591 aix[3-9]*)
9592 # On AIX/PPC, the GNU linker is very broken
9593 if test "$host_cpu" != ia64; then
9594 ld_shlibs=no
9595 cat <<_LT_EOF 1>&2
9596
9597 *** Warning: the GNU linker, at least up to release 2.19, is reported
9598 *** to be unable to reliably create shared libraries on AIX.
9599 *** Therefore, libtool is disabling shared libraries support. If you
9600 *** really care for shared libraries, you may want to install binutils
9601 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9602 *** You will then need to restart the configuration process.
9603
9604 _LT_EOF
9605 fi
9606 ;;
9607
9608 amigaos*)
9609 case $host_cpu in
9610 powerpc)
9611 # see comment about AmigaOS4 .so support
9612 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9613 archive_expsym_cmds=''
9614 ;;
9615 m68k)
9616 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)'
9617 hardcode_libdir_flag_spec='-L$libdir'
9618 hardcode_minus_L=yes
9619 ;;
9620 esac
9621 ;;
9622
9623 beos*)
9624 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9625 allow_undefined_flag=unsupported
9626 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
9627 # support --undefined. This deserves some investigation. FIXME
9628 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9629 else
9630 ld_shlibs=no
9631 fi
9632 ;;
9633
9634 cygwin* | mingw* | pw32* | cegcc*)
9635 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9636 # as there is no search path for DLLs.
9637 hardcode_libdir_flag_spec='-L$libdir'
9638 export_dynamic_flag_spec='${wl}--export-all-symbols'
9639 allow_undefined_flag=unsupported
9640 always_export_symbols=no
9641 enable_shared_with_static_runtimes=yes
9642 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'
9643 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9644
9645 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9646 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9647 # If the export-symbols file already is a .def file (1st line
9648 # is EXPORTS), use it as is; otherwise, prepend...
9649 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9650 cp $export_symbols $output_objdir/$soname.def;
9651 else
9652 echo EXPORTS > $output_objdir/$soname.def;
9653 cat $export_symbols >> $output_objdir/$soname.def;
9654 fi~
9655 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9656 else
9657 ld_shlibs=no
9658 fi
9659 ;;
9660
9661 haiku*)
9662 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9663 link_all_deplibs=yes
9664 ;;
9665
9666 interix[3-9]*)
9667 hardcode_direct=no
9668 hardcode_shlibpath_var=no
9669 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9670 export_dynamic_flag_spec='${wl}-E'
9671 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9672 # Instead, shared libraries are loaded at an image base (0x10000000 by
9673 # default) and relocated if they conflict, which is a slow very memory
9674 # consuming and fragmenting process. To avoid this, we pick a random,
9675 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9676 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9677 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9678 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'
9679 ;;
9680
9681 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9682 tmp_diet=no
9683 if test "$host_os" = linux-dietlibc; then
9684 case $cc_basename in
9685 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9686 esac
9687 fi
9688 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9689 && test "$tmp_diet" = no
9690 then
9691 tmp_addflag=' $pic_flag'
9692 tmp_sharedflag='-shared'
9693 case $cc_basename,$host_cpu in
9694 pgcc*) # Portland Group C compiler
9695 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'
9696 tmp_addflag=' $pic_flag'
9697 ;;
9698 pgf77* | pgf90* | pgf95* | pgfortran*)
9699 # Portland Group f77 and f90 compilers
9700 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'
9701 tmp_addflag=' $pic_flag -Mnomain' ;;
9702 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9703 tmp_addflag=' -i_dynamic' ;;
9704 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9705 tmp_addflag=' -i_dynamic -nofor_main' ;;
9706 ifc* | ifort*) # Intel Fortran compiler
9707 tmp_addflag=' -nofor_main' ;;
9708 lf95*) # Lahey Fortran 8.1
9709 whole_archive_flag_spec=
9710 tmp_sharedflag='--shared' ;;
9711 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9712 tmp_sharedflag='-qmkshrobj'
9713 tmp_addflag= ;;
9714 nvcc*) # Cuda Compiler Driver 2.2
9715 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'
9716 compiler_needs_object=yes
9717 ;;
9718 esac
9719 case `$CC -V 2>&1 | sed 5q` in
9720 *Sun\ C*) # Sun C 5.9
9721 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'
9722 compiler_needs_object=yes
9723 tmp_sharedflag='-G' ;;
9724 *Sun\ F*) # Sun Fortran 8.3
9725 tmp_sharedflag='-G' ;;
9726 esac
9727 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9728
9729 if test "x$supports_anon_versioning" = xyes; then
9730 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9731 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9732 echo "local: *; };" >> $output_objdir/$libname.ver~
9733 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9734 fi
9735
9736 case $cc_basename in
9737 xlf* | bgf* | bgxlf* | mpixlf*)
9738 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9739 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9740 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9741 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9742 if test "x$supports_anon_versioning" = xyes; then
9743 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9744 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9745 echo "local: *; };" >> $output_objdir/$libname.ver~
9746 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9747 fi
9748 ;;
9749 esac
9750 else
9751 ld_shlibs=no
9752 fi
9753 ;;
9754
9755 netbsd*)
9756 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9757 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9758 wlarc=
9759 else
9760 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9761 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9762 fi
9763 ;;
9764
9765 solaris*)
9766 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9767 ld_shlibs=no
9768 cat <<_LT_EOF 1>&2
9769
9770 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9771 *** create shared libraries on Solaris systems. Therefore, libtool
9772 *** is disabling shared libraries support. We urge you to upgrade GNU
9773 *** binutils to release 2.9.1 or newer. Another option is to modify
9774 *** your PATH or compiler configuration so that the native linker is
9775 *** used, and then restart.
9776
9777 _LT_EOF
9778 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9779 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9780 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9781 else
9782 ld_shlibs=no
9783 fi
9784 ;;
9785
9786 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9787 case `$LD -v 2>&1` in
9788 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9789 ld_shlibs=no
9790 cat <<_LT_EOF 1>&2
9791
9792 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9793 *** reliably create shared libraries on SCO systems. Therefore, libtool
9794 *** is disabling shared libraries support. We urge you to upgrade GNU
9795 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9796 *** your PATH or compiler configuration so that the native linker is
9797 *** used, and then restart.
9798
9799 _LT_EOF
9800 ;;
9801 *)
9802 # For security reasons, it is highly recommended that you always
9803 # use absolute paths for naming shared libraries, and exclude the
9804 # DT_RUNPATH tag from executables and libraries. But doing so
9805 # requires that you compile everything twice, which is a pain.
9806 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9807 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9808 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9809 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9810 else
9811 ld_shlibs=no
9812 fi
9813 ;;
9814 esac
9815 ;;
9816
9817 sunos4*)
9818 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9819 wlarc=
9820 hardcode_direct=yes
9821 hardcode_shlibpath_var=no
9822 ;;
9823
9824 *)
9825 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9826 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9828 else
9829 ld_shlibs=no
9830 fi
9831 ;;
9832 esac
9833
9834 if test "$ld_shlibs" = no; then
9835 runpath_var=
9836 hardcode_libdir_flag_spec=
9837 export_dynamic_flag_spec=
9838 whole_archive_flag_spec=
9839 fi
9840 else
9841 # PORTME fill in a description of your system's linker (not GNU ld)
9842 case $host_os in
9843 aix3*)
9844 allow_undefined_flag=unsupported
9845 always_export_symbols=yes
9846 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'
9847 # Note: this linker hardcodes the directories in LIBPATH if there
9848 # are no directories specified by -L.
9849 hardcode_minus_L=yes
9850 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9851 # Neither direct hardcoding nor static linking is supported with a
9852 # broken collect2.
9853 hardcode_direct=unsupported
9854 fi
9855 ;;
9856
9857 aix[4-9]*)
9858 if test "$host_cpu" = ia64; then
9859 # On IA64, the linker does run time linking by default, so we don't
9860 # have to do anything special.
9861 aix_use_runtimelinking=no
9862 exp_sym_flag='-Bexport'
9863 no_entry_flag=""
9864 else
9865 # If we're using GNU nm, then we don't want the "-C" option.
9866 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9867 # Also, AIX nm treats weak defined symbols like other global
9868 # defined symbols, whereas GNU nm marks them as "W".
9869 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9870 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'
9871 else
9872 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'
9873 fi
9874 aix_use_runtimelinking=no
9875
9876 # Test if we are trying to use run time linking or normal
9877 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9878 # need to do runtime linking.
9879 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9880 for ld_flag in $LDFLAGS; do
9881 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9882 aix_use_runtimelinking=yes
9883 break
9884 fi
9885 done
9886 ;;
9887 esac
9888
9889 exp_sym_flag='-bexport'
9890 no_entry_flag='-bnoentry'
9891 fi
9892
9893 # When large executables or shared objects are built, AIX ld can
9894 # have problems creating the table of contents. If linking a library
9895 # or program results in "error TOC overflow" add -mminimal-toc to
9896 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9897 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9898
9899 archive_cmds=''
9900 hardcode_direct=yes
9901 hardcode_direct_absolute=yes
9902 hardcode_libdir_separator=':'
9903 link_all_deplibs=yes
9904 file_list_spec='${wl}-f,'
9905
9906 if test "$GCC" = yes; then
9907 case $host_os in aix4.[012]|aix4.[012].*)
9908 # We only want to do this on AIX 4.2 and lower, the check
9909 # below for broken collect2 doesn't work under 4.3+
9910 collect2name=`${CC} -print-prog-name=collect2`
9911 if test -f "$collect2name" &&
9912 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9913 then
9914 # We have reworked collect2
9915 :
9916 else
9917 # We have old collect2
9918 hardcode_direct=unsupported
9919 # It fails to find uninstalled libraries when the uninstalled
9920 # path is not listed in the libpath. Setting hardcode_minus_L
9921 # to unsupported forces relinking
9922 hardcode_minus_L=yes
9923 hardcode_libdir_flag_spec='-L$libdir'
9924 hardcode_libdir_separator=
9925 fi
9926 ;;
9927 esac
9928 shared_flag='-shared'
9929 if test "$aix_use_runtimelinking" = yes; then
9930 shared_flag="$shared_flag "'${wl}-G'
9931 fi
9932 else
9933 # not using gcc
9934 if test "$host_cpu" = ia64; then
9935 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9936 # chokes on -Wl,-G. The following line is correct:
9937 shared_flag='-G'
9938 else
9939 if test "$aix_use_runtimelinking" = yes; then
9940 shared_flag='${wl}-G'
9941 else
9942 shared_flag='${wl}-bM:SRE'
9943 fi
9944 fi
9945 fi
9946
9947 export_dynamic_flag_spec='${wl}-bexpall'
9948 # It seems that -bexpall does not export symbols beginning with
9949 # underscore (_), so it is better to generate a list of symbols to export.
9950 always_export_symbols=yes
9951 if test "$aix_use_runtimelinking" = yes; then
9952 # Warning - without using the other runtime loading flags (-brtl),
9953 # -berok will link without error, but may produce a broken library.
9954 allow_undefined_flag='-berok'
9955 # Determine the default libpath from the value encoded in an
9956 # empty executable.
9957 if test "${lt_cv_aix_libpath+set}" = set; then
9958 aix_libpath=$lt_cv_aix_libpath
9959 else
9960 if ${lt_cv_aix_libpath_+:} false; then :
9961 $as_echo_n "(cached) " >&6
9962 else
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964 /* end confdefs.h. */
9965
9966 int
9967 main ()
9968 {
9969
9970 ;
9971 return 0;
9972 }
9973 _ACEOF
9974 if ac_fn_c_try_link "$LINENO"; then :
9975
9976 lt_aix_libpath_sed='
9977 /Import File Strings/,/^$/ {
9978 /^0/ {
9979 s/^0 *\([^ ]*\) *$/\1/
9980 p
9981 }
9982 }'
9983 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9984 # Check for a 64-bit object if we didn't find anything.
9985 if test -z "$lt_cv_aix_libpath_"; then
9986 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9987 fi
9988 fi
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 if test -z "$lt_cv_aix_libpath_"; then
9992 lt_cv_aix_libpath_="/usr/lib:/lib"
9993 fi
9994
9995 fi
9996
9997 aix_libpath=$lt_cv_aix_libpath_
9998 fi
9999
10000 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10001 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"
10002 else
10003 if test "$host_cpu" = ia64; then
10004 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10005 allow_undefined_flag="-z nodefs"
10006 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"
10007 else
10008 # Determine the default libpath from the value encoded in an
10009 # empty executable.
10010 if test "${lt_cv_aix_libpath+set}" = set; then
10011 aix_libpath=$lt_cv_aix_libpath
10012 else
10013 if ${lt_cv_aix_libpath_+:} false; then :
10014 $as_echo_n "(cached) " >&6
10015 else
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017 /* end confdefs.h. */
10018
10019 int
10020 main ()
10021 {
10022
10023 ;
10024 return 0;
10025 }
10026 _ACEOF
10027 if ac_fn_c_try_link "$LINENO"; then :
10028
10029 lt_aix_libpath_sed='
10030 /Import File Strings/,/^$/ {
10031 /^0/ {
10032 s/^0 *\([^ ]*\) *$/\1/
10033 p
10034 }
10035 }'
10036 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10037 # Check for a 64-bit object if we didn't find anything.
10038 if test -z "$lt_cv_aix_libpath_"; then
10039 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10040 fi
10041 fi
10042 rm -f core conftest.err conftest.$ac_objext \
10043 conftest$ac_exeext conftest.$ac_ext
10044 if test -z "$lt_cv_aix_libpath_"; then
10045 lt_cv_aix_libpath_="/usr/lib:/lib"
10046 fi
10047
10048 fi
10049
10050 aix_libpath=$lt_cv_aix_libpath_
10051 fi
10052
10053 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10054 # Warning - without using the other run time loading flags,
10055 # -berok will link without error, but may produce a broken library.
10056 no_undefined_flag=' ${wl}-bernotok'
10057 allow_undefined_flag=' ${wl}-berok'
10058 if test "$with_gnu_ld" = yes; then
10059 # We only use this code for GNU lds that support --whole-archive.
10060 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10061 else
10062 # Exported symbols can be pulled into shared objects from archives
10063 whole_archive_flag_spec='$convenience'
10064 fi
10065 archive_cmds_need_lc=yes
10066 # This is similar to how AIX traditionally builds its shared libraries.
10067 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'
10068 fi
10069 fi
10070 ;;
10071
10072 amigaos*)
10073 case $host_cpu in
10074 powerpc)
10075 # see comment about AmigaOS4 .so support
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10077 archive_expsym_cmds=''
10078 ;;
10079 m68k)
10080 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)'
10081 hardcode_libdir_flag_spec='-L$libdir'
10082 hardcode_minus_L=yes
10083 ;;
10084 esac
10085 ;;
10086
10087 bsdi[45]*)
10088 export_dynamic_flag_spec=-rdynamic
10089 ;;
10090
10091 cygwin* | mingw* | pw32* | cegcc*)
10092 # When not using gcc, we currently assume that we are using
10093 # Microsoft Visual C++.
10094 # hardcode_libdir_flag_spec is actually meaningless, as there is
10095 # no search path for DLLs.
10096 case $cc_basename in
10097 cl*)
10098 # Native MSVC
10099 hardcode_libdir_flag_spec=' '
10100 allow_undefined_flag=unsupported
10101 always_export_symbols=yes
10102 file_list_spec='@'
10103 # Tell ltmain to make .lib files, not .a files.
10104 libext=lib
10105 # Tell ltmain to make .dll files, not .so files.
10106 shrext_cmds=".dll"
10107 # FIXME: Setting linknames here is a bad hack.
10108 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10109 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10110 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10111 else
10112 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10113 fi~
10114 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10115 linknames='
10116 # The linker will not automatically build a static lib if we build a DLL.
10117 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10118 enable_shared_with_static_runtimes=yes
10119 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10120 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10121 # Don't use ranlib
10122 old_postinstall_cmds='chmod 644 $oldlib'
10123 postlink_cmds='lt_outputfile="@OUTPUT@"~
10124 lt_tool_outputfile="@TOOL_OUTPUT@"~
10125 case $lt_outputfile in
10126 *.exe|*.EXE) ;;
10127 *)
10128 lt_outputfile="$lt_outputfile.exe"
10129 lt_tool_outputfile="$lt_tool_outputfile.exe"
10130 ;;
10131 esac~
10132 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10133 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10134 $RM "$lt_outputfile.manifest";
10135 fi'
10136 ;;
10137 *)
10138 # Assume MSVC wrapper
10139 hardcode_libdir_flag_spec=' '
10140 allow_undefined_flag=unsupported
10141 # Tell ltmain to make .lib files, not .a files.
10142 libext=lib
10143 # Tell ltmain to make .dll files, not .so files.
10144 shrext_cmds=".dll"
10145 # FIXME: Setting linknames here is a bad hack.
10146 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10147 # The linker will automatically build a .lib file if we build a DLL.
10148 old_archive_from_new_cmds='true'
10149 # FIXME: Should let the user specify the lib program.
10150 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10151 enable_shared_with_static_runtimes=yes
10152 ;;
10153 esac
10154 ;;
10155
10156 darwin* | rhapsody*)
10157
10158
10159 archive_cmds_need_lc=no
10160 hardcode_direct=no
10161 hardcode_automatic=yes
10162 hardcode_shlibpath_var=unsupported
10163 if test "$lt_cv_ld_force_load" = "yes"; then
10164 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\"`'
10165
10166 else
10167 whole_archive_flag_spec=''
10168 fi
10169 link_all_deplibs=yes
10170 allow_undefined_flag="$_lt_dar_allow_undefined"
10171 case $cc_basename in
10172 ifort*) _lt_dar_can_shared=yes ;;
10173 *) _lt_dar_can_shared=$GCC ;;
10174 esac
10175 if test "$_lt_dar_can_shared" = "yes"; then
10176 output_verbose_link_cmd=func_echo_all
10177 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10178 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10179 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}"
10180 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}"
10181
10182 else
10183 ld_shlibs=no
10184 fi
10185
10186 ;;
10187
10188 dgux*)
10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10190 hardcode_libdir_flag_spec='-L$libdir'
10191 hardcode_shlibpath_var=no
10192 ;;
10193
10194 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10195 # support. Future versions do this automatically, but an explicit c++rt0.o
10196 # does not break anything, and helps significantly (at the cost of a little
10197 # extra space).
10198 freebsd2.2*)
10199 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10200 hardcode_libdir_flag_spec='-R$libdir'
10201 hardcode_direct=yes
10202 hardcode_shlibpath_var=no
10203 ;;
10204
10205 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10206 freebsd2.*)
10207 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10208 hardcode_direct=yes
10209 hardcode_minus_L=yes
10210 hardcode_shlibpath_var=no
10211 ;;
10212
10213 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10214 freebsd* | dragonfly*)
10215 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10216 hardcode_libdir_flag_spec='-R$libdir'
10217 hardcode_direct=yes
10218 hardcode_shlibpath_var=no
10219 ;;
10220
10221 hpux9*)
10222 if test "$GCC" = yes; then
10223 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'
10224 else
10225 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'
10226 fi
10227 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10228 hardcode_libdir_separator=:
10229 hardcode_direct=yes
10230
10231 # hardcode_minus_L: Not really in the search PATH,
10232 # but as the default location of the library.
10233 hardcode_minus_L=yes
10234 export_dynamic_flag_spec='${wl}-E'
10235 ;;
10236
10237 hpux10*)
10238 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10239 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10240 else
10241 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10242 fi
10243 if test "$with_gnu_ld" = no; then
10244 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10245 hardcode_libdir_separator=:
10246 hardcode_direct=yes
10247 hardcode_direct_absolute=yes
10248 export_dynamic_flag_spec='${wl}-E'
10249 # hardcode_minus_L: Not really in the search PATH,
10250 # but as the default location of the library.
10251 hardcode_minus_L=yes
10252 fi
10253 ;;
10254
10255 hpux11*)
10256 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10257 case $host_cpu in
10258 hppa*64*)
10259 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10260 ;;
10261 ia64*)
10262 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10263 ;;
10264 *)
10265 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10266 ;;
10267 esac
10268 else
10269 case $host_cpu in
10270 hppa*64*)
10271 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10272 ;;
10273 ia64*)
10274 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10275 ;;
10276 *)
10277
10278 # Older versions of the 11.00 compiler do not understand -b yet
10279 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10281 $as_echo_n "checking if $CC understands -b... " >&6; }
10282 if ${lt_cv_prog_compiler__b+:} false; then :
10283 $as_echo_n "(cached) " >&6
10284 else
10285 lt_cv_prog_compiler__b=no
10286 save_LDFLAGS="$LDFLAGS"
10287 LDFLAGS="$LDFLAGS -b"
10288 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10289 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10290 # The linker can only warn and ignore the option if not recognized
10291 # So say no if there are warnings
10292 if test -s conftest.err; then
10293 # Append any errors to the config.log.
10294 cat conftest.err 1>&5
10295 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10296 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10297 if diff conftest.exp conftest.er2 >/dev/null; then
10298 lt_cv_prog_compiler__b=yes
10299 fi
10300 else
10301 lt_cv_prog_compiler__b=yes
10302 fi
10303 fi
10304 $RM -r conftest*
10305 LDFLAGS="$save_LDFLAGS"
10306
10307 fi
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10309 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10310
10311 if test x"$lt_cv_prog_compiler__b" = xyes; then
10312 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10313 else
10314 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10315 fi
10316
10317 ;;
10318 esac
10319 fi
10320 if test "$with_gnu_ld" = no; then
10321 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10322 hardcode_libdir_separator=:
10323
10324 case $host_cpu in
10325 hppa*64*|ia64*)
10326 hardcode_direct=no
10327 hardcode_shlibpath_var=no
10328 ;;
10329 *)
10330 hardcode_direct=yes
10331 hardcode_direct_absolute=yes
10332 export_dynamic_flag_spec='${wl}-E'
10333
10334 # hardcode_minus_L: Not really in the search PATH,
10335 # but as the default location of the library.
10336 hardcode_minus_L=yes
10337 ;;
10338 esac
10339 fi
10340 ;;
10341
10342 irix5* | irix6* | nonstopux*)
10343 if test "$GCC" = yes; then
10344 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'
10345 # Try to use the -exported_symbol ld option, if it does not
10346 # work, assume that -exports_file does not work either and
10347 # implicitly export all symbols.
10348 # This should be the same for all languages, so no per-tag cache variable.
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10350 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10351 if ${lt_cv_irix_exported_symbol+:} false; then :
10352 $as_echo_n "(cached) " >&6
10353 else
10354 save_LDFLAGS="$LDFLAGS"
10355 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10357 /* end confdefs.h. */
10358 int foo (void) { return 0; }
10359 _ACEOF
10360 if ac_fn_c_try_link "$LINENO"; then :
10361 lt_cv_irix_exported_symbol=yes
10362 else
10363 lt_cv_irix_exported_symbol=no
10364 fi
10365 rm -f core conftest.err conftest.$ac_objext \
10366 conftest$ac_exeext conftest.$ac_ext
10367 LDFLAGS="$save_LDFLAGS"
10368 fi
10369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10370 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10371 if test "$lt_cv_irix_exported_symbol" = yes; then
10372 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'
10373 fi
10374 else
10375 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'
10376 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'
10377 fi
10378 archive_cmds_need_lc='no'
10379 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10380 hardcode_libdir_separator=:
10381 inherit_rpath=yes
10382 link_all_deplibs=yes
10383 ;;
10384
10385 netbsd*)
10386 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10387 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10388 else
10389 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10390 fi
10391 hardcode_libdir_flag_spec='-R$libdir'
10392 hardcode_direct=yes
10393 hardcode_shlibpath_var=no
10394 ;;
10395
10396 newsos6)
10397 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10398 hardcode_direct=yes
10399 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10400 hardcode_libdir_separator=:
10401 hardcode_shlibpath_var=no
10402 ;;
10403
10404 *nto* | *qnx*)
10405 ;;
10406
10407 openbsd*)
10408 if test -f /usr/libexec/ld.so; then
10409 hardcode_direct=yes
10410 hardcode_shlibpath_var=no
10411 hardcode_direct_absolute=yes
10412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10413 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10414 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10415 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10416 export_dynamic_flag_spec='${wl}-E'
10417 else
10418 case $host_os in
10419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10420 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10421 hardcode_libdir_flag_spec='-R$libdir'
10422 ;;
10423 *)
10424 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10425 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10426 ;;
10427 esac
10428 fi
10429 else
10430 ld_shlibs=no
10431 fi
10432 ;;
10433
10434 os2*)
10435 hardcode_libdir_flag_spec='-L$libdir'
10436 hardcode_minus_L=yes
10437 allow_undefined_flag=unsupported
10438 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'
10439 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10440 ;;
10441
10442 osf3*)
10443 if test "$GCC" = yes; then
10444 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10445 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'
10446 else
10447 allow_undefined_flag=' -expect_unresolved \*'
10448 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'
10449 fi
10450 archive_cmds_need_lc='no'
10451 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10452 hardcode_libdir_separator=:
10453 ;;
10454
10455 osf4* | osf5*) # as osf3* with the addition of -msym flag
10456 if test "$GCC" = yes; then
10457 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10458 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'
10459 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10460 else
10461 allow_undefined_flag=' -expect_unresolved \*'
10462 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'
10463 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~
10464 $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'
10465
10466 # Both c and cxx compiler support -rpath directly
10467 hardcode_libdir_flag_spec='-rpath $libdir'
10468 fi
10469 archive_cmds_need_lc='no'
10470 hardcode_libdir_separator=:
10471 ;;
10472
10473 solaris*)
10474 no_undefined_flag=' -z defs'
10475 if test "$GCC" = yes; then
10476 wlarc='${wl}'
10477 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10478 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10479 $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'
10480 else
10481 case `$CC -V 2>&1` in
10482 *"Compilers 5.0"*)
10483 wlarc=''
10484 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10485 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10486 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10487 ;;
10488 *)
10489 wlarc='${wl}'
10490 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10491 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10492 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10493 ;;
10494 esac
10495 fi
10496 hardcode_libdir_flag_spec='-R$libdir'
10497 hardcode_shlibpath_var=no
10498 case $host_os in
10499 solaris2.[0-5] | solaris2.[0-5].*) ;;
10500 *)
10501 # The compiler driver will combine and reorder linker options,
10502 # but understands `-z linker_flag'. GCC discards it without `$wl',
10503 # but is careful enough not to reorder.
10504 # Supported since Solaris 2.6 (maybe 2.5.1?)
10505 if test "$GCC" = yes; then
10506 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10507 else
10508 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10509 fi
10510 ;;
10511 esac
10512 link_all_deplibs=yes
10513 ;;
10514
10515 sunos4*)
10516 if test "x$host_vendor" = xsequent; then
10517 # Use $CC to link under sequent, because it throws in some extra .o
10518 # files that make .init and .fini sections work.
10519 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10520 else
10521 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10522 fi
10523 hardcode_libdir_flag_spec='-L$libdir'
10524 hardcode_direct=yes
10525 hardcode_minus_L=yes
10526 hardcode_shlibpath_var=no
10527 ;;
10528
10529 sysv4)
10530 case $host_vendor in
10531 sni)
10532 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10533 hardcode_direct=yes # is this really true???
10534 ;;
10535 siemens)
10536 ## LD is ld it makes a PLAMLIB
10537 ## CC just makes a GrossModule.
10538 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10539 reload_cmds='$CC -r -o $output$reload_objs'
10540 hardcode_direct=no
10541 ;;
10542 motorola)
10543 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10544 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10545 ;;
10546 esac
10547 runpath_var='LD_RUN_PATH'
10548 hardcode_shlibpath_var=no
10549 ;;
10550
10551 sysv4.3*)
10552 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10553 hardcode_shlibpath_var=no
10554 export_dynamic_flag_spec='-Bexport'
10555 ;;
10556
10557 sysv4*MP*)
10558 if test -d /usr/nec; then
10559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10560 hardcode_shlibpath_var=no
10561 runpath_var=LD_RUN_PATH
10562 hardcode_runpath_var=yes
10563 ld_shlibs=yes
10564 fi
10565 ;;
10566
10567 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10568 no_undefined_flag='${wl}-z,text'
10569 archive_cmds_need_lc=no
10570 hardcode_shlibpath_var=no
10571 runpath_var='LD_RUN_PATH'
10572
10573 if test "$GCC" = yes; then
10574 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10575 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10576 else
10577 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10578 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10579 fi
10580 ;;
10581
10582 sysv5* | sco3.2v5* | sco5v6*)
10583 # Note: We can NOT use -z defs as we might desire, because we do not
10584 # link with -lc, and that would cause any symbols used from libc to
10585 # always be unresolved, which means just about no library would
10586 # ever link correctly. If we're not using GNU ld we use -z text
10587 # though, which does catch some bad symbols but isn't as heavy-handed
10588 # as -z defs.
10589 no_undefined_flag='${wl}-z,text'
10590 allow_undefined_flag='${wl}-z,nodefs'
10591 archive_cmds_need_lc=no
10592 hardcode_shlibpath_var=no
10593 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10594 hardcode_libdir_separator=':'
10595 link_all_deplibs=yes
10596 export_dynamic_flag_spec='${wl}-Bexport'
10597 runpath_var='LD_RUN_PATH'
10598
10599 if test "$GCC" = yes; then
10600 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10601 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10602 else
10603 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10605 fi
10606 ;;
10607
10608 uts4*)
10609 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10610 hardcode_libdir_flag_spec='-L$libdir'
10611 hardcode_shlibpath_var=no
10612 ;;
10613
10614 *)
10615 ld_shlibs=no
10616 ;;
10617 esac
10618
10619 if test x$host_vendor = xsni; then
10620 case $host in
10621 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10622 export_dynamic_flag_spec='${wl}-Blargedynsym'
10623 ;;
10624 esac
10625 fi
10626 fi
10627
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10629 $as_echo "$ld_shlibs" >&6; }
10630 test "$ld_shlibs" = no && can_build_shared=no
10631
10632 with_gnu_ld=$with_gnu_ld
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648 #
10649 # Do we need to explicitly link libc?
10650 #
10651 case "x$archive_cmds_need_lc" in
10652 x|xyes)
10653 # Assume -lc should be added
10654 archive_cmds_need_lc=yes
10655
10656 if test "$enable_shared" = yes && test "$GCC" = yes; then
10657 case $archive_cmds in
10658 *'~'*)
10659 # FIXME: we may have to deal with multi-command sequences.
10660 ;;
10661 '$CC '*)
10662 # Test whether the compiler implicitly links with -lc since on some
10663 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10664 # to ld, don't add -lc before -lgcc.
10665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10666 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10667 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10668 $as_echo_n "(cached) " >&6
10669 else
10670 $RM conftest*
10671 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10672
10673 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10674 (eval $ac_compile) 2>&5
10675 ac_status=$?
10676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10677 test $ac_status = 0; } 2>conftest.err; then
10678 soname=conftest
10679 lib=conftest
10680 libobjs=conftest.$ac_objext
10681 deplibs=
10682 wl=$lt_prog_compiler_wl
10683 pic_flag=$lt_prog_compiler_pic
10684 compiler_flags=-v
10685 linker_flags=-v
10686 verstring=
10687 output_objdir=.
10688 libname=conftest
10689 lt_save_allow_undefined_flag=$allow_undefined_flag
10690 allow_undefined_flag=
10691 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10692 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10693 ac_status=$?
10694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10695 test $ac_status = 0; }
10696 then
10697 lt_cv_archive_cmds_need_lc=no
10698 else
10699 lt_cv_archive_cmds_need_lc=yes
10700 fi
10701 allow_undefined_flag=$lt_save_allow_undefined_flag
10702 else
10703 cat conftest.err 1>&5
10704 fi
10705 $RM conftest*
10706
10707 fi
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10709 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10710 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10711 ;;
10712 esac
10713 fi
10714 ;;
10715 esac
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729
10730
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756
10757
10758
10759
10760
10761
10762
10763
10764
10765
10766
10767
10768
10769
10770
10771
10772
10773
10774
10775
10776
10777
10778
10779
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10869 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10870
10871 if test "$GCC" = yes; then
10872 case $host_os in
10873 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10874 *) lt_awk_arg="/^libraries:/" ;;
10875 esac
10876 case $host_os in
10877 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10878 *) lt_sed_strip_eq="s,=/,/,g" ;;
10879 esac
10880 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10881 case $lt_search_path_spec in
10882 *\;*)
10883 # if the path contains ";" then we assume it to be the separator
10884 # otherwise default to the standard path separator (i.e. ":") - it is
10885 # assumed that no part of a normal pathname contains ";" but that should
10886 # okay in the real world where ";" in dirpaths is itself problematic.
10887 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10888 ;;
10889 *)
10890 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10891 ;;
10892 esac
10893 # Ok, now we have the path, separated by spaces, we can step through it
10894 # and add multilib dir if necessary.
10895 lt_tmp_lt_search_path_spec=
10896 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10897 for lt_sys_path in $lt_search_path_spec; do
10898 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10899 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10900 else
10901 test -d "$lt_sys_path" && \
10902 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10903 fi
10904 done
10905 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10906 BEGIN {RS=" "; FS="/|\n";} {
10907 lt_foo="";
10908 lt_count=0;
10909 for (lt_i = NF; lt_i > 0; lt_i--) {
10910 if ($lt_i != "" && $lt_i != ".") {
10911 if ($lt_i == "..") {
10912 lt_count++;
10913 } else {
10914 if (lt_count == 0) {
10915 lt_foo="/" $lt_i lt_foo;
10916 } else {
10917 lt_count--;
10918 }
10919 }
10920 }
10921 }
10922 if (lt_foo != "") { lt_freq[lt_foo]++; }
10923 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10924 }'`
10925 # AWK program above erroneously prepends '/' to C:/dos/paths
10926 # for these hosts.
10927 case $host_os in
10928 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10929 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10930 esac
10931 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10932 else
10933 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10934 fi
10935 library_names_spec=
10936 libname_spec='lib$name'
10937 soname_spec=
10938 shrext_cmds=".so"
10939 postinstall_cmds=
10940 postuninstall_cmds=
10941 finish_cmds=
10942 finish_eval=
10943 shlibpath_var=
10944 shlibpath_overrides_runpath=unknown
10945 version_type=none
10946 dynamic_linker="$host_os ld.so"
10947 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10948 need_lib_prefix=unknown
10949 hardcode_into_libs=no
10950
10951 # when you set need_version to no, make sure it does not cause -set_version
10952 # flags to be left without arguments
10953 need_version=unknown
10954
10955 case $host_os in
10956 aix3*)
10957 version_type=linux # correct to gnu/linux during the next big refactor
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10959 shlibpath_var=LIBPATH
10960
10961 # AIX 3 has no versioning support, so we append a major version to the name.
10962 soname_spec='${libname}${release}${shared_ext}$major'
10963 ;;
10964
10965 aix[4-9]*)
10966 version_type=linux # correct to gnu/linux during the next big refactor
10967 need_lib_prefix=no
10968 need_version=no
10969 hardcode_into_libs=yes
10970 if test "$host_cpu" = ia64; then
10971 # AIX 5 supports IA64
10972 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10973 shlibpath_var=LD_LIBRARY_PATH
10974 else
10975 # With GCC up to 2.95.x, collect2 would create an import file
10976 # for dependence libraries. The import file would start with
10977 # the line `#! .'. This would cause the generated library to
10978 # depend on `.', always an invalid library. This was fixed in
10979 # development snapshots of GCC prior to 3.0.
10980 case $host_os in
10981 aix4 | aix4.[01] | aix4.[01].*)
10982 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10983 echo ' yes '
10984 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10985 :
10986 else
10987 can_build_shared=no
10988 fi
10989 ;;
10990 esac
10991 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10992 # soname into executable. Probably we can add versioning support to
10993 # collect2, so additional links can be useful in future.
10994 if test "$aix_use_runtimelinking" = yes; then
10995 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10996 # instead of lib<name>.a to let people know that these are not
10997 # typical AIX shared libraries.
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999 else
11000 # We preserve .a as extension for shared libraries through AIX4.2
11001 # and later when we are not doing run time linking.
11002 library_names_spec='${libname}${release}.a $libname.a'
11003 soname_spec='${libname}${release}${shared_ext}$major'
11004 fi
11005 shlibpath_var=LIBPATH
11006 fi
11007 ;;
11008
11009 amigaos*)
11010 case $host_cpu in
11011 powerpc)
11012 # Since July 2007 AmigaOS4 officially supports .so libraries.
11013 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11014 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11015 ;;
11016 m68k)
11017 library_names_spec='$libname.ixlibrary $libname.a'
11018 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11019 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'
11020 ;;
11021 esac
11022 ;;
11023
11024 beos*)
11025 library_names_spec='${libname}${shared_ext}'
11026 dynamic_linker="$host_os ld.so"
11027 shlibpath_var=LIBRARY_PATH
11028 ;;
11029
11030 bsdi[45]*)
11031 version_type=linux # correct to gnu/linux during the next big refactor
11032 need_version=no
11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11034 soname_spec='${libname}${release}${shared_ext}$major'
11035 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11036 shlibpath_var=LD_LIBRARY_PATH
11037 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11038 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11039 # the default ld.so.conf also contains /usr/contrib/lib and
11040 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11041 # libtool to hard-code these into programs
11042 ;;
11043
11044 cygwin* | mingw* | pw32* | cegcc*)
11045 version_type=windows
11046 shrext_cmds=".dll"
11047 need_version=no
11048 need_lib_prefix=no
11049
11050 case $GCC,$cc_basename in
11051 yes,*)
11052 # gcc
11053 library_names_spec='$libname.dll.a'
11054 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11055 postinstall_cmds='base_file=`basename \${file}`~
11056 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11057 dldir=$destdir/`dirname \$dlpath`~
11058 test -d \$dldir || mkdir -p \$dldir~
11059 $install_prog $dir/$dlname \$dldir/$dlname~
11060 chmod a+x \$dldir/$dlname~
11061 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11062 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11063 fi'
11064 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11065 dlpath=$dir/\$dldll~
11066 $RM \$dlpath'
11067 shlibpath_overrides_runpath=yes
11068
11069 case $host_os in
11070 cygwin*)
11071 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11072 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11073
11074 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11075 ;;
11076 mingw* | cegcc*)
11077 # MinGW DLLs use traditional 'lib' prefix
11078 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11079 ;;
11080 pw32*)
11081 # pw32 DLLs use 'pw' prefix rather than 'lib'
11082 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11083 ;;
11084 esac
11085 dynamic_linker='Win32 ld.exe'
11086 ;;
11087
11088 *,cl*)
11089 # Native MSVC
11090 libname_spec='$name'
11091 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11092 library_names_spec='${libname}.dll.lib'
11093
11094 case $build_os in
11095 mingw*)
11096 sys_lib_search_path_spec=
11097 lt_save_ifs=$IFS
11098 IFS=';'
11099 for lt_path in $LIB
11100 do
11101 IFS=$lt_save_ifs
11102 # Let DOS variable expansion print the short 8.3 style file name.
11103 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11104 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11105 done
11106 IFS=$lt_save_ifs
11107 # Convert to MSYS style.
11108 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11109 ;;
11110 cygwin*)
11111 # Convert to unix form, then to dos form, then back to unix form
11112 # but this time dos style (no spaces!) so that the unix form looks
11113 # like /cygdrive/c/PROGRA~1:/cygdr...
11114 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11115 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11116 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11117 ;;
11118 *)
11119 sys_lib_search_path_spec="$LIB"
11120 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11121 # It is most probably a Windows format PATH.
11122 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11123 else
11124 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11125 fi
11126 # FIXME: find the short name or the path components, as spaces are
11127 # common. (e.g. "Program Files" -> "PROGRA~1")
11128 ;;
11129 esac
11130
11131 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11132 postinstall_cmds='base_file=`basename \${file}`~
11133 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11134 dldir=$destdir/`dirname \$dlpath`~
11135 test -d \$dldir || mkdir -p \$dldir~
11136 $install_prog $dir/$dlname \$dldir/$dlname'
11137 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11138 dlpath=$dir/\$dldll~
11139 $RM \$dlpath'
11140 shlibpath_overrides_runpath=yes
11141 dynamic_linker='Win32 link.exe'
11142 ;;
11143
11144 *)
11145 # Assume MSVC wrapper
11146 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11147 dynamic_linker='Win32 ld.exe'
11148 ;;
11149 esac
11150 # FIXME: first we should search . and the directory the executable is in
11151 shlibpath_var=PATH
11152 ;;
11153
11154 darwin* | rhapsody*)
11155 dynamic_linker="$host_os dyld"
11156 version_type=darwin
11157 need_lib_prefix=no
11158 need_version=no
11159 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11160 soname_spec='${libname}${release}${major}$shared_ext'
11161 shlibpath_overrides_runpath=yes
11162 shlibpath_var=DYLD_LIBRARY_PATH
11163 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11164
11165 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11166 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11167 ;;
11168
11169 dgux*)
11170 version_type=linux # correct to gnu/linux during the next big refactor
11171 need_lib_prefix=no
11172 need_version=no
11173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11174 soname_spec='${libname}${release}${shared_ext}$major'
11175 shlibpath_var=LD_LIBRARY_PATH
11176 ;;
11177
11178 freebsd* | dragonfly*)
11179 # DragonFly does not have aout. When/if they implement a new
11180 # versioning mechanism, adjust this.
11181 if test -x /usr/bin/objformat; then
11182 objformat=`/usr/bin/objformat`
11183 else
11184 case $host_os in
11185 freebsd[23].*) objformat=aout ;;
11186 *) objformat=elf ;;
11187 esac
11188 fi
11189 version_type=freebsd-$objformat
11190 case $version_type in
11191 freebsd-elf*)
11192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11193 need_version=no
11194 need_lib_prefix=no
11195 ;;
11196 freebsd-*)
11197 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11198 need_version=yes
11199 ;;
11200 esac
11201 shlibpath_var=LD_LIBRARY_PATH
11202 case $host_os in
11203 freebsd2.*)
11204 shlibpath_overrides_runpath=yes
11205 ;;
11206 freebsd3.[01]* | freebsdelf3.[01]*)
11207 shlibpath_overrides_runpath=yes
11208 hardcode_into_libs=yes
11209 ;;
11210 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11211 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11212 shlibpath_overrides_runpath=no
11213 hardcode_into_libs=yes
11214 ;;
11215 *) # from 4.6 on, and DragonFly
11216 shlibpath_overrides_runpath=yes
11217 hardcode_into_libs=yes
11218 ;;
11219 esac
11220 ;;
11221
11222 gnu*)
11223 version_type=linux # correct to gnu/linux during the next big refactor
11224 need_lib_prefix=no
11225 need_version=no
11226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11227 soname_spec='${libname}${release}${shared_ext}$major'
11228 shlibpath_var=LD_LIBRARY_PATH
11229 shlibpath_overrides_runpath=no
11230 hardcode_into_libs=yes
11231 ;;
11232
11233 haiku*)
11234 version_type=linux # correct to gnu/linux during the next big refactor
11235 need_lib_prefix=no
11236 need_version=no
11237 dynamic_linker="$host_os runtime_loader"
11238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11239 soname_spec='${libname}${release}${shared_ext}$major'
11240 shlibpath_var=LIBRARY_PATH
11241 shlibpath_overrides_runpath=yes
11242 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11243 hardcode_into_libs=yes
11244 ;;
11245
11246 hpux9* | hpux10* | hpux11*)
11247 # Give a soname corresponding to the major version so that dld.sl refuses to
11248 # link against other versions.
11249 version_type=sunos
11250 need_lib_prefix=no
11251 need_version=no
11252 case $host_cpu in
11253 ia64*)
11254 shrext_cmds='.so'
11255 hardcode_into_libs=yes
11256 dynamic_linker="$host_os dld.so"
11257 shlibpath_var=LD_LIBRARY_PATH
11258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11260 soname_spec='${libname}${release}${shared_ext}$major'
11261 if test "X$HPUX_IA64_MODE" = X32; then
11262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11263 else
11264 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11265 fi
11266 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11267 ;;
11268 hppa*64*)
11269 shrext_cmds='.sl'
11270 hardcode_into_libs=yes
11271 dynamic_linker="$host_os dld.sl"
11272 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11273 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11274 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275 soname_spec='${libname}${release}${shared_ext}$major'
11276 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11277 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11278 ;;
11279 *)
11280 shrext_cmds='.sl'
11281 dynamic_linker="$host_os dld.sl"
11282 shlibpath_var=SHLIB_PATH
11283 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11285 soname_spec='${libname}${release}${shared_ext}$major'
11286 ;;
11287 esac
11288 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11289 postinstall_cmds='chmod 555 $lib'
11290 # or fails outright, so override atomically:
11291 install_override_mode=555
11292 ;;
11293
11294 interix[3-9]*)
11295 version_type=linux # correct to gnu/linux during the next big refactor
11296 need_lib_prefix=no
11297 need_version=no
11298 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11299 soname_spec='${libname}${release}${shared_ext}$major'
11300 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11301 shlibpath_var=LD_LIBRARY_PATH
11302 shlibpath_overrides_runpath=no
11303 hardcode_into_libs=yes
11304 ;;
11305
11306 irix5* | irix6* | nonstopux*)
11307 case $host_os in
11308 nonstopux*) version_type=nonstopux ;;
11309 *)
11310 if test "$lt_cv_prog_gnu_ld" = yes; then
11311 version_type=linux # correct to gnu/linux during the next big refactor
11312 else
11313 version_type=irix
11314 fi ;;
11315 esac
11316 need_lib_prefix=no
11317 need_version=no
11318 soname_spec='${libname}${release}${shared_ext}$major'
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11320 case $host_os in
11321 irix5* | nonstopux*)
11322 libsuff= shlibsuff=
11323 ;;
11324 *)
11325 case $LD in # libtool.m4 will add one of these switches to LD
11326 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11327 libsuff= shlibsuff= libmagic=32-bit;;
11328 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11329 libsuff=32 shlibsuff=N32 libmagic=N32;;
11330 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11331 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11332 *) libsuff= shlibsuff= libmagic=never-match;;
11333 esac
11334 ;;
11335 esac
11336 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11337 shlibpath_overrides_runpath=no
11338 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11339 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11340 hardcode_into_libs=yes
11341 ;;
11342
11343 # No shared lib support for Linux oldld, aout, or coff.
11344 linux*oldld* | linux*aout* | linux*coff*)
11345 dynamic_linker=no
11346 ;;
11347
11348 # This must be glibc/ELF.
11349 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11350 version_type=linux # correct to gnu/linux during the next big refactor
11351 need_lib_prefix=no
11352 need_version=no
11353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 soname_spec='${libname}${release}${shared_ext}$major'
11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11356 shlibpath_var=LD_LIBRARY_PATH
11357 shlibpath_overrides_runpath=no
11358
11359 # Some binutils ld are patched to set DT_RUNPATH
11360 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11361 $as_echo_n "(cached) " >&6
11362 else
11363 lt_cv_shlibpath_overrides_runpath=no
11364 save_LDFLAGS=$LDFLAGS
11365 save_libdir=$libdir
11366 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11367 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11369 /* end confdefs.h. */
11370
11371 int
11372 main ()
11373 {
11374
11375 ;
11376 return 0;
11377 }
11378 _ACEOF
11379 if ac_fn_c_try_link "$LINENO"; then :
11380 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11381 lt_cv_shlibpath_overrides_runpath=yes
11382 fi
11383 fi
11384 rm -f core conftest.err conftest.$ac_objext \
11385 conftest$ac_exeext conftest.$ac_ext
11386 LDFLAGS=$save_LDFLAGS
11387 libdir=$save_libdir
11388
11389 fi
11390
11391 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11392
11393 # This implies no fast_install, which is unacceptable.
11394 # Some rework will be needed to allow for fast_install
11395 # before this can be enabled.
11396 hardcode_into_libs=yes
11397
11398 # Add ABI-specific directories to the system library path.
11399 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
11400
11401 # Append ld.so.conf contents to the search path
11402 if test -f /etc/ld.so.conf; then
11403 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' ' '`
11404 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
11405
11406 fi
11407
11408 # We used to test for /lib/ld.so.1 and disable shared libraries on
11409 # powerpc, because MkLinux only supported shared libraries with the
11410 # GNU dynamic linker. Since this was broken with cross compilers,
11411 # most powerpc-linux boxes support dynamic linking these days and
11412 # people can always --disable-shared, the test was removed, and we
11413 # assume the GNU/Linux dynamic linker is in use.
11414 dynamic_linker='GNU/Linux ld.so'
11415 ;;
11416
11417 netbsd*)
11418 version_type=sunos
11419 need_lib_prefix=no
11420 need_version=no
11421 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11423 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11424 dynamic_linker='NetBSD (a.out) ld.so'
11425 else
11426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11427 soname_spec='${libname}${release}${shared_ext}$major'
11428 dynamic_linker='NetBSD ld.elf_so'
11429 fi
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=yes
11432 hardcode_into_libs=yes
11433 ;;
11434
11435 newsos6)
11436 version_type=linux # correct to gnu/linux during the next big refactor
11437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11438 shlibpath_var=LD_LIBRARY_PATH
11439 shlibpath_overrides_runpath=yes
11440 ;;
11441
11442 *nto* | *qnx*)
11443 version_type=qnx
11444 need_lib_prefix=no
11445 need_version=no
11446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11447 soname_spec='${libname}${release}${shared_ext}$major'
11448 shlibpath_var=LD_LIBRARY_PATH
11449 shlibpath_overrides_runpath=no
11450 hardcode_into_libs=yes
11451 dynamic_linker='ldqnx.so'
11452 ;;
11453
11454 openbsd*)
11455 version_type=sunos
11456 sys_lib_dlsearch_path_spec="/usr/lib"
11457 need_lib_prefix=no
11458 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11459 case $host_os in
11460 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11461 *) need_version=no ;;
11462 esac
11463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11464 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11465 shlibpath_var=LD_LIBRARY_PATH
11466 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11467 case $host_os in
11468 openbsd2.[89] | openbsd2.[89].*)
11469 shlibpath_overrides_runpath=no
11470 ;;
11471 *)
11472 shlibpath_overrides_runpath=yes
11473 ;;
11474 esac
11475 else
11476 shlibpath_overrides_runpath=yes
11477 fi
11478 ;;
11479
11480 os2*)
11481 libname_spec='$name'
11482 shrext_cmds=".dll"
11483 need_lib_prefix=no
11484 library_names_spec='$libname${shared_ext} $libname.a'
11485 dynamic_linker='OS/2 ld.exe'
11486 shlibpath_var=LIBPATH
11487 ;;
11488
11489 osf3* | osf4* | osf5*)
11490 version_type=osf
11491 need_lib_prefix=no
11492 need_version=no
11493 soname_spec='${libname}${release}${shared_ext}$major'
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11495 shlibpath_var=LD_LIBRARY_PATH
11496 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11497 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11498 ;;
11499
11500 rdos*)
11501 dynamic_linker=no
11502 ;;
11503
11504 solaris*)
11505 version_type=linux # correct to gnu/linux during the next big refactor
11506 need_lib_prefix=no
11507 need_version=no
11508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11509 soname_spec='${libname}${release}${shared_ext}$major'
11510 shlibpath_var=LD_LIBRARY_PATH
11511 shlibpath_overrides_runpath=yes
11512 hardcode_into_libs=yes
11513 # ldd complains unless libraries are executable
11514 postinstall_cmds='chmod +x $lib'
11515 ;;
11516
11517 sunos4*)
11518 version_type=sunos
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11520 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=yes
11523 if test "$with_gnu_ld" = yes; then
11524 need_lib_prefix=no
11525 fi
11526 need_version=yes
11527 ;;
11528
11529 sysv4 | sysv4.3*)
11530 version_type=linux # correct to gnu/linux during the next big refactor
11531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11532 soname_spec='${libname}${release}${shared_ext}$major'
11533 shlibpath_var=LD_LIBRARY_PATH
11534 case $host_vendor in
11535 sni)
11536 shlibpath_overrides_runpath=no
11537 need_lib_prefix=no
11538 runpath_var=LD_RUN_PATH
11539 ;;
11540 siemens)
11541 need_lib_prefix=no
11542 ;;
11543 motorola)
11544 need_lib_prefix=no
11545 need_version=no
11546 shlibpath_overrides_runpath=no
11547 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11548 ;;
11549 esac
11550 ;;
11551
11552 sysv4*MP*)
11553 if test -d /usr/nec ;then
11554 version_type=linux # correct to gnu/linux during the next big refactor
11555 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11556 soname_spec='$libname${shared_ext}.$major'
11557 shlibpath_var=LD_LIBRARY_PATH
11558 fi
11559 ;;
11560
11561 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11562 version_type=freebsd-elf
11563 need_lib_prefix=no
11564 need_version=no
11565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 shlibpath_var=LD_LIBRARY_PATH
11568 shlibpath_overrides_runpath=yes
11569 hardcode_into_libs=yes
11570 if test "$with_gnu_ld" = yes; then
11571 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11572 else
11573 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11574 case $host_os in
11575 sco3.2v5*)
11576 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11577 ;;
11578 esac
11579 fi
11580 sys_lib_dlsearch_path_spec='/usr/lib'
11581 ;;
11582
11583 tpf*)
11584 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11585 version_type=linux # correct to gnu/linux during the next big refactor
11586 need_lib_prefix=no
11587 need_version=no
11588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11589 shlibpath_var=LD_LIBRARY_PATH
11590 shlibpath_overrides_runpath=no
11591 hardcode_into_libs=yes
11592 ;;
11593
11594 uts4*)
11595 version_type=linux # correct to gnu/linux during the next big refactor
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11597 soname_spec='${libname}${release}${shared_ext}$major'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 ;;
11600
11601 *)
11602 dynamic_linker=no
11603 ;;
11604 esac
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11606 $as_echo "$dynamic_linker" >&6; }
11607 test "$dynamic_linker" = no && can_build_shared=no
11608
11609 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11610 if test "$GCC" = yes; then
11611 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11612 fi
11613
11614 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11615 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11616 fi
11617 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11618 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11619 fi
11620
11621
11622
11623
11624
11625
11626
11627
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669
11670
11671
11672
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11713 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11714 hardcode_action=
11715 if test -n "$hardcode_libdir_flag_spec" ||
11716 test -n "$runpath_var" ||
11717 test "X$hardcode_automatic" = "Xyes" ; then
11718
11719 # We can hardcode non-existent directories.
11720 if test "$hardcode_direct" != no &&
11721 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11722 # have to relink, otherwise we might link with an installed library
11723 # when we should be linking with a yet-to-be-installed one
11724 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11725 test "$hardcode_minus_L" != no; then
11726 # Linking always hardcodes the temporary library directory.
11727 hardcode_action=relink
11728 else
11729 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11730 hardcode_action=immediate
11731 fi
11732 else
11733 # We cannot hardcode anything, or else we can only hardcode existing
11734 # directories.
11735 hardcode_action=unsupported
11736 fi
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11738 $as_echo "$hardcode_action" >&6; }
11739
11740 if test "$hardcode_action" = relink ||
11741 test "$inherit_rpath" = yes; then
11742 # Fast installation is not supported
11743 enable_fast_install=no
11744 elif test "$shlibpath_overrides_runpath" = yes ||
11745 test "$enable_shared" = no; then
11746 # Fast installation is not necessary
11747 enable_fast_install=needless
11748 fi
11749
11750
11751
11752
11753
11754
11755 if test "x$enable_dlopen" != xyes; then
11756 enable_dlopen=unknown
11757 enable_dlopen_self=unknown
11758 enable_dlopen_self_static=unknown
11759 else
11760 lt_cv_dlopen=no
11761 lt_cv_dlopen_libs=
11762
11763 case $host_os in
11764 beos*)
11765 lt_cv_dlopen="load_add_on"
11766 lt_cv_dlopen_libs=
11767 lt_cv_dlopen_self=yes
11768 ;;
11769
11770 mingw* | pw32* | cegcc*)
11771 lt_cv_dlopen="LoadLibrary"
11772 lt_cv_dlopen_libs=
11773 ;;
11774
11775 cygwin*)
11776 lt_cv_dlopen="dlopen"
11777 lt_cv_dlopen_libs=
11778 ;;
11779
11780 darwin*)
11781 # if libdl is installed we need to link against it
11782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11784 if ${ac_cv_lib_dl_dlopen+:} false; then :
11785 $as_echo_n "(cached) " >&6
11786 else
11787 ac_check_lib_save_LIBS=$LIBS
11788 LIBS="-ldl $LIBS"
11789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11790 /* end confdefs.h. */
11791
11792 /* Override any GCC internal prototype to avoid an error.
11793 Use char because int might match the return type of a GCC
11794 builtin and then its argument prototype would still apply. */
11795 #ifdef __cplusplus
11796 extern "C"
11797 #endif
11798 char dlopen ();
11799 int
11800 main ()
11801 {
11802 return dlopen ();
11803 ;
11804 return 0;
11805 }
11806 _ACEOF
11807 if ac_fn_c_try_link "$LINENO"; then :
11808 ac_cv_lib_dl_dlopen=yes
11809 else
11810 ac_cv_lib_dl_dlopen=no
11811 fi
11812 rm -f core conftest.err conftest.$ac_objext \
11813 conftest$ac_exeext conftest.$ac_ext
11814 LIBS=$ac_check_lib_save_LIBS
11815 fi
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11818 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11819 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11820 else
11821
11822 lt_cv_dlopen="dyld"
11823 lt_cv_dlopen_libs=
11824 lt_cv_dlopen_self=yes
11825
11826 fi
11827
11828 ;;
11829
11830 *)
11831 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11832 if test "x$ac_cv_func_shl_load" = xyes; then :
11833 lt_cv_dlopen="shl_load"
11834 else
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11836 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11837 if ${ac_cv_lib_dld_shl_load+:} false; then :
11838 $as_echo_n "(cached) " >&6
11839 else
11840 ac_check_lib_save_LIBS=$LIBS
11841 LIBS="-ldld $LIBS"
11842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11843 /* end confdefs.h. */
11844
11845 /* Override any GCC internal prototype to avoid an error.
11846 Use char because int might match the return type of a GCC
11847 builtin and then its argument prototype would still apply. */
11848 #ifdef __cplusplus
11849 extern "C"
11850 #endif
11851 char shl_load ();
11852 int
11853 main ()
11854 {
11855 return shl_load ();
11856 ;
11857 return 0;
11858 }
11859 _ACEOF
11860 if ac_fn_c_try_link "$LINENO"; then :
11861 ac_cv_lib_dld_shl_load=yes
11862 else
11863 ac_cv_lib_dld_shl_load=no
11864 fi
11865 rm -f core conftest.err conftest.$ac_objext \
11866 conftest$ac_exeext conftest.$ac_ext
11867 LIBS=$ac_check_lib_save_LIBS
11868 fi
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11870 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11871 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11872 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11873 else
11874 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11875 if test "x$ac_cv_func_dlopen" = xyes; then :
11876 lt_cv_dlopen="dlopen"
11877 else
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11879 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11880 if ${ac_cv_lib_dl_dlopen+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-ldl $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11887
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char dlopen ();
11895 int
11896 main ()
11897 {
11898 return dlopen ();
11899 ;
11900 return 0;
11901 }
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_dl_dlopen=yes
11905 else
11906 ac_cv_lib_dl_dlopen=no
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11913 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11914 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11915 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11916 else
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11918 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11919 if ${ac_cv_lib_svld_dlopen+:} false; then :
11920 $as_echo_n "(cached) " >&6
11921 else
11922 ac_check_lib_save_LIBS=$LIBS
11923 LIBS="-lsvld $LIBS"
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925 /* end confdefs.h. */
11926
11927 /* Override any GCC internal prototype to avoid an error.
11928 Use char because int might match the return type of a GCC
11929 builtin and then its argument prototype would still apply. */
11930 #ifdef __cplusplus
11931 extern "C"
11932 #endif
11933 char dlopen ();
11934 int
11935 main ()
11936 {
11937 return dlopen ();
11938 ;
11939 return 0;
11940 }
11941 _ACEOF
11942 if ac_fn_c_try_link "$LINENO"; then :
11943 ac_cv_lib_svld_dlopen=yes
11944 else
11945 ac_cv_lib_svld_dlopen=no
11946 fi
11947 rm -f core conftest.err conftest.$ac_objext \
11948 conftest$ac_exeext conftest.$ac_ext
11949 LIBS=$ac_check_lib_save_LIBS
11950 fi
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11952 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11953 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11954 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11955 else
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11957 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11958 if ${ac_cv_lib_dld_dld_link+:} false; then :
11959 $as_echo_n "(cached) " >&6
11960 else
11961 ac_check_lib_save_LIBS=$LIBS
11962 LIBS="-ldld $LIBS"
11963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11964 /* end confdefs.h. */
11965
11966 /* Override any GCC internal prototype to avoid an error.
11967 Use char because int might match the return type of a GCC
11968 builtin and then its argument prototype would still apply. */
11969 #ifdef __cplusplus
11970 extern "C"
11971 #endif
11972 char dld_link ();
11973 int
11974 main ()
11975 {
11976 return dld_link ();
11977 ;
11978 return 0;
11979 }
11980 _ACEOF
11981 if ac_fn_c_try_link "$LINENO"; then :
11982 ac_cv_lib_dld_dld_link=yes
11983 else
11984 ac_cv_lib_dld_dld_link=no
11985 fi
11986 rm -f core conftest.err conftest.$ac_objext \
11987 conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11991 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11992 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11993 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11994 fi
11995
11996
11997 fi
11998
11999
12000 fi
12001
12002
12003 fi
12004
12005
12006 fi
12007
12008
12009 fi
12010
12011 ;;
12012 esac
12013
12014 if test "x$lt_cv_dlopen" != xno; then
12015 enable_dlopen=yes
12016 else
12017 enable_dlopen=no
12018 fi
12019
12020 case $lt_cv_dlopen in
12021 dlopen)
12022 save_CPPFLAGS="$CPPFLAGS"
12023 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12024
12025 save_LDFLAGS="$LDFLAGS"
12026 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12027
12028 save_LIBS="$LIBS"
12029 LIBS="$lt_cv_dlopen_libs $LIBS"
12030
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12032 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12033 if ${lt_cv_dlopen_self+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 if test "$cross_compiling" = yes; then :
12037 lt_cv_dlopen_self=cross
12038 else
12039 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12040 lt_status=$lt_dlunknown
12041 cat > conftest.$ac_ext <<_LT_EOF
12042 #line $LINENO "configure"
12043 #include "confdefs.h"
12044
12045 #if HAVE_DLFCN_H
12046 #include <dlfcn.h>
12047 #endif
12048
12049 #include <stdio.h>
12050
12051 #ifdef RTLD_GLOBAL
12052 # define LT_DLGLOBAL RTLD_GLOBAL
12053 #else
12054 # ifdef DL_GLOBAL
12055 # define LT_DLGLOBAL DL_GLOBAL
12056 # else
12057 # define LT_DLGLOBAL 0
12058 # endif
12059 #endif
12060
12061 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12062 find out it does not work in some platform. */
12063 #ifndef LT_DLLAZY_OR_NOW
12064 # ifdef RTLD_LAZY
12065 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12066 # else
12067 # ifdef DL_LAZY
12068 # define LT_DLLAZY_OR_NOW DL_LAZY
12069 # else
12070 # ifdef RTLD_NOW
12071 # define LT_DLLAZY_OR_NOW RTLD_NOW
12072 # else
12073 # ifdef DL_NOW
12074 # define LT_DLLAZY_OR_NOW DL_NOW
12075 # else
12076 # define LT_DLLAZY_OR_NOW 0
12077 # endif
12078 # endif
12079 # endif
12080 # endif
12081 #endif
12082
12083 /* When -fvisbility=hidden is used, assume the code has been annotated
12084 correspondingly for the symbols needed. */
12085 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12086 int fnord () __attribute__((visibility("default")));
12087 #endif
12088
12089 int fnord () { return 42; }
12090 int main ()
12091 {
12092 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12093 int status = $lt_dlunknown;
12094
12095 if (self)
12096 {
12097 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12098 else
12099 {
12100 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12101 else puts (dlerror ());
12102 }
12103 /* dlclose (self); */
12104 }
12105 else
12106 puts (dlerror ());
12107
12108 return status;
12109 }
12110 _LT_EOF
12111 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12112 (eval $ac_link) 2>&5
12113 ac_status=$?
12114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12115 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12116 (./conftest; exit; ) >&5 2>/dev/null
12117 lt_status=$?
12118 case x$lt_status in
12119 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12120 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12121 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12122 esac
12123 else :
12124 # compilation failed
12125 lt_cv_dlopen_self=no
12126 fi
12127 fi
12128 rm -fr conftest*
12129
12130
12131 fi
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12133 $as_echo "$lt_cv_dlopen_self" >&6; }
12134
12135 if test "x$lt_cv_dlopen_self" = xyes; then
12136 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12138 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12139 if ${lt_cv_dlopen_self_static+:} false; then :
12140 $as_echo_n "(cached) " >&6
12141 else
12142 if test "$cross_compiling" = yes; then :
12143 lt_cv_dlopen_self_static=cross
12144 else
12145 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12146 lt_status=$lt_dlunknown
12147 cat > conftest.$ac_ext <<_LT_EOF
12148 #line $LINENO "configure"
12149 #include "confdefs.h"
12150
12151 #if HAVE_DLFCN_H
12152 #include <dlfcn.h>
12153 #endif
12154
12155 #include <stdio.h>
12156
12157 #ifdef RTLD_GLOBAL
12158 # define LT_DLGLOBAL RTLD_GLOBAL
12159 #else
12160 # ifdef DL_GLOBAL
12161 # define LT_DLGLOBAL DL_GLOBAL
12162 # else
12163 # define LT_DLGLOBAL 0
12164 # endif
12165 #endif
12166
12167 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12168 find out it does not work in some platform. */
12169 #ifndef LT_DLLAZY_OR_NOW
12170 # ifdef RTLD_LAZY
12171 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12172 # else
12173 # ifdef DL_LAZY
12174 # define LT_DLLAZY_OR_NOW DL_LAZY
12175 # else
12176 # ifdef RTLD_NOW
12177 # define LT_DLLAZY_OR_NOW RTLD_NOW
12178 # else
12179 # ifdef DL_NOW
12180 # define LT_DLLAZY_OR_NOW DL_NOW
12181 # else
12182 # define LT_DLLAZY_OR_NOW 0
12183 # endif
12184 # endif
12185 # endif
12186 # endif
12187 #endif
12188
12189 /* When -fvisbility=hidden is used, assume the code has been annotated
12190 correspondingly for the symbols needed. */
12191 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12192 int fnord () __attribute__((visibility("default")));
12193 #endif
12194
12195 int fnord () { return 42; }
12196 int main ()
12197 {
12198 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12199 int status = $lt_dlunknown;
12200
12201 if (self)
12202 {
12203 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12204 else
12205 {
12206 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12207 else puts (dlerror ());
12208 }
12209 /* dlclose (self); */
12210 }
12211 else
12212 puts (dlerror ());
12213
12214 return status;
12215 }
12216 _LT_EOF
12217 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12218 (eval $ac_link) 2>&5
12219 ac_status=$?
12220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12221 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12222 (./conftest; exit; ) >&5 2>/dev/null
12223 lt_status=$?
12224 case x$lt_status in
12225 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12226 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12227 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12228 esac
12229 else :
12230 # compilation failed
12231 lt_cv_dlopen_self_static=no
12232 fi
12233 fi
12234 rm -fr conftest*
12235
12236
12237 fi
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12239 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12240 fi
12241
12242 CPPFLAGS="$save_CPPFLAGS"
12243 LDFLAGS="$save_LDFLAGS"
12244 LIBS="$save_LIBS"
12245 ;;
12246 esac
12247
12248 case $lt_cv_dlopen_self in
12249 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12250 *) enable_dlopen_self=unknown ;;
12251 esac
12252
12253 case $lt_cv_dlopen_self_static in
12254 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12255 *) enable_dlopen_self_static=unknown ;;
12256 esac
12257 fi
12258
12259
12260
12261
12262
12263
12264
12265
12266
12267
12268
12269
12270
12271
12272
12273
12274
12275 striplib=
12276 old_striplib=
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12278 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12279 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12280 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12281 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12283 $as_echo "yes" >&6; }
12284 else
12285 # FIXME - insert some real tests, host_os isn't really good enough
12286 case $host_os in
12287 darwin*)
12288 if test -n "$STRIP" ; then
12289 striplib="$STRIP -x"
12290 old_striplib="$STRIP -S"
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12292 $as_echo "yes" >&6; }
12293 else
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12295 $as_echo "no" >&6; }
12296 fi
12297 ;;
12298 *)
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12300 $as_echo "no" >&6; }
12301 ;;
12302 esac
12303 fi
12304
12305
12306
12307
12308
12309
12310
12311
12312
12313
12314
12315
12316 # Report which library types will actually be built
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12318 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12320 $as_echo "$can_build_shared" >&6; }
12321
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12323 $as_echo_n "checking whether to build shared libraries... " >&6; }
12324 test "$can_build_shared" = "no" && enable_shared=no
12325
12326 # On AIX, shared libraries and static libraries use the same namespace, and
12327 # are all built from PIC.
12328 case $host_os in
12329 aix3*)
12330 test "$enable_shared" = yes && enable_static=no
12331 if test -n "$RANLIB"; then
12332 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12333 postinstall_cmds='$RANLIB $lib'
12334 fi
12335 ;;
12336
12337 aix[4-9]*)
12338 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12339 test "$enable_shared" = yes && enable_static=no
12340 fi
12341 ;;
12342 esac
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12344 $as_echo "$enable_shared" >&6; }
12345
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12347 $as_echo_n "checking whether to build static libraries... " >&6; }
12348 # Make sure either enable_shared or enable_static is yes.
12349 test "$enable_shared" = yes || enable_static=yes
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12351 $as_echo "$enable_static" >&6; }
12352
12353
12354
12355
12356 fi
12357 ac_ext=c
12358 ac_cpp='$CPP $CPPFLAGS'
12359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12362
12363 CC="$lt_save_CC"
12364
12365
12366
12367
12368
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379 ac_config_commands="$ac_config_commands libtool"
12380
12381
12382
12383
12384 # Only expand once:
12385
12386
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
12388 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
12389 set x ${MAKE-make}
12390 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
12391 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
12392 $as_echo_n "(cached) " >&6
12393 else
12394 cat >conftest.make <<\_ACEOF
12395 SHELL = /bin/sh
12396 all:
12397 @echo '@@@%%%=$(MAKE)=@@@%%%'
12398 _ACEOF
12399 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12400 case `${MAKE-make} -f conftest.make 2>/dev/null` in
12401 *@@@%%%=?*=@@@%%%*)
12402 eval ac_cv_prog_make_${ac_make}_set=yes;;
12403 *)
12404 eval ac_cv_prog_make_${ac_make}_set=no;;
12405 esac
12406 rm -f conftest.make
12407 fi
12408 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12410 $as_echo "yes" >&6; }
12411 SET_MAKE=
12412 else
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12414 $as_echo "no" >&6; }
12415 SET_MAKE="MAKE=${MAKE-make}"
12416 fi
12417
12418
12419
12420
12421
12422
12423
12424
12425 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
12426 if test -n "$ac_tool_prefix"; then
12427 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
12428 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12430 $as_echo_n "checking for $ac_word... " >&6; }
12431 if ${ac_cv_path_PKG_CONFIG+:} false; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 case $PKG_CONFIG in
12435 [\\/]* | ?:[\\/]*)
12436 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12437 ;;
12438 *)
12439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12440 for as_dir in $PATH
12441 do
12442 IFS=$as_save_IFS
12443 test -z "$as_dir" && as_dir=.
12444 for ac_exec_ext in '' $ac_executable_extensions; do
12445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12446 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12448 break 2
12449 fi
12450 done
12451 done
12452 IFS=$as_save_IFS
12453
12454 ;;
12455 esac
12456 fi
12457 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12458 if test -n "$PKG_CONFIG"; then
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12460 $as_echo "$PKG_CONFIG" >&6; }
12461 else
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12463 $as_echo "no" >&6; }
12464 fi
12465
12466
12467 fi
12468 if test -z "$ac_cv_path_PKG_CONFIG"; then
12469 ac_pt_PKG_CONFIG=$PKG_CONFIG
12470 # Extract the first word of "pkg-config", so it can be a program name with args.
12471 set dummy pkg-config; ac_word=$2
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12473 $as_echo_n "checking for $ac_word... " >&6; }
12474 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
12475 $as_echo_n "(cached) " >&6
12476 else
12477 case $ac_pt_PKG_CONFIG in
12478 [\\/]* | ?:[\\/]*)
12479 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
12480 ;;
12481 *)
12482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12483 for as_dir in $PATH
12484 do
12485 IFS=$as_save_IFS
12486 test -z "$as_dir" && as_dir=.
12487 for ac_exec_ext in '' $ac_executable_extensions; do
12488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12489 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12491 break 2
12492 fi
12493 done
12494 done
12495 IFS=$as_save_IFS
12496
12497 ;;
12498 esac
12499 fi
12500 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
12501 if test -n "$ac_pt_PKG_CONFIG"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
12503 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
12504 else
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12506 $as_echo "no" >&6; }
12507 fi
12508
12509 if test "x$ac_pt_PKG_CONFIG" = x; then
12510 PKG_CONFIG=""
12511 else
12512 case $cross_compiling:$ac_tool_warned in
12513 yes:)
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12515 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12516 ac_tool_warned=yes ;;
12517 esac
12518 PKG_CONFIG=$ac_pt_PKG_CONFIG
12519 fi
12520 else
12521 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
12522 fi
12523
12524 fi
12525 if test -n "$PKG_CONFIG"; then
12526 _pkg_min_version=0.9.0
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
12528 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
12529 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12531 $as_echo "yes" >&6; }
12532 else
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12534 $as_echo "no" >&6; }
12535 PKG_CONFIG=""
12536 fi
12537 fi
12538
12539
12540
12541 # Check whether --with-pkgconfigdir was given.
12542 if test "${with_pkgconfigdir+set}" = set; then :
12543 withval=$with_pkgconfigdir;
12544 else
12545 with_pkgconfigdir='${libdir}/pkgconfig'
12546 fi
12547
12548 pkgconfigdir=$with_pkgconfigdir
12549
12550
12551
12552
12553
12554
12555 GIT=${GIT-"${am_missing_run}git"}
12556
12557
12558 GPERF=${GPERF-"${am_missing_run}gperf"}
12559
12560
12561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
12562 $as_echo_n "checking for RM macro... " >&6; }
12563 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
12564 if test "x$_predefined_rm" = "x"; then
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
12566 $as_echo "no predefined RM" >&6; }
12567 # Extract the first word of "rm", so it can be a program name with args.
12568 set dummy rm; ac_word=$2
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12570 $as_echo_n "checking for $ac_word... " >&6; }
12571 if ${ac_cv_prog_RM+:} false; then :
12572 $as_echo_n "(cached) " >&6
12573 else
12574 if test -n "$RM"; then
12575 ac_cv_prog_RM="$RM" # Let the user override the test.
12576 else
12577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12578 for as_dir in $PATH
12579 do
12580 IFS=$as_save_IFS
12581 test -z "$as_dir" && as_dir=.
12582 for ac_exec_ext in '' $ac_executable_extensions; do
12583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12584 ac_cv_prog_RM="rm -f"
12585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12586 break 2
12587 fi
12588 done
12589 done
12590 IFS=$as_save_IFS
12591
12592 fi
12593 fi
12594 RM=$ac_cv_prog_RM
12595 if test -n "$RM"; then
12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
12597 $as_echo "$RM" >&6; }
12598 else
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12600 $as_echo "no" >&6; }
12601 fi
12602
12603
12604 else
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
12606 $as_echo "$_predefined_rm" >&6; }
12607 fi
12608
12609
12610 case "$host" in
12611 *-*-mingw*)
12612 os_win32=yes
12613 ;;
12614 *)
12615 os_win32=no
12616 esac
12617 if test "$os_win32" = "yes"; then
12618 OS_WIN32_TRUE=
12619 OS_WIN32_FALSE='#'
12620 else
12621 OS_WIN32_TRUE='#'
12622 OS_WIN32_FALSE=
12623 fi
12624
12625
12626 if test "$os_win32" = "yes"; then
12627 # Extract the first word of "lib.exe", so it can be a program name with args.
12628 set dummy lib.exe; ac_word=$2
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630 $as_echo_n "checking for $ac_word... " >&6; }
12631 if ${ac_cv_prog_ms_librarian+:} false; then :
12632 $as_echo_n "(cached) " >&6
12633 else
12634 if test -n "$ms_librarian"; then
12635 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
12636 else
12637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638 for as_dir in $PATH
12639 do
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
12643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12644 ac_cv_prog_ms_librarian="yes"
12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12647 fi
12648 done
12649 done
12650 IFS=$as_save_IFS
12651
12652 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
12653 fi
12654 fi
12655 ms_librarian=$ac_cv_prog_ms_librarian
12656 if test -n "$ms_librarian"; then
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
12658 $as_echo "$ms_librarian" >&6; }
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12661 $as_echo "no" >&6; }
12662 fi
12663
12664
12665 fi
12666 if test x$ms_librarian = xyes; then
12667 MS_LIB_AVAILABLE_TRUE=
12668 MS_LIB_AVAILABLE_FALSE='#'
12669 else
12670 MS_LIB_AVAILABLE_TRUE='#'
12671 MS_LIB_AVAILABLE_FALSE=
12672 fi
12673
12674
12675 WARN_CFLAGS=""
12676 if test "x$GCC" = "xyes"; then
12677 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
12678 -Wmissing-prototypes -Wmissing-declarations \
12679 -Wnested-externs -fno-strict-aliasing"
12680
12681 cat >>confdefs.h <<_ACEOF
12682 #define HAVE_WARNING_CPP_DIRECTIVE 1
12683 _ACEOF
12684
12685 fi
12686
12687
12688
12689
12690 # Put a plausible default for CC_FOR_BUILD in Makefile.
12691 if test -z "$CC_FOR_BUILD"; then
12692 if test "x$cross_compiling" = "xno"; then
12693 CC_FOR_BUILD='$(CC)'
12694 else
12695 CC_FOR_BUILD=gcc
12696 fi
12697 fi
12698
12699 # Also set EXEEXT_FOR_BUILD.
12700 if test "x$cross_compiling" = "xno"; then
12701 EXEEXT_FOR_BUILD='$(EXEEXT)'
12702 else
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
12704 $as_echo_n "checking for build system executable suffix... " >&6; }
12705 if ${bfd_cv_build_exeext+:} false; then :
12706 $as_echo_n "(cached) " >&6
12707 else
12708 rm -f conftest*
12709 echo 'int main () { return 0; }' > conftest.c
12710 bfd_cv_build_exeext=
12711 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
12712 for file in conftest.*; do
12713 case $file in
12714 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
12715 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
12716 esac
12717 done
12718 rm -f conftest*
12719 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
12720 fi
12721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
12722 $as_echo "$bfd_cv_build_exeext" >&6; }
12723 EXEEXT_FOR_BUILD=""
12724 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
12725 fi
12726
12727
12728 if test $cross_compiling = yes; then
12729 CROSS_COMPILING_TRUE=
12730 CROSS_COMPILING_FALSE='#'
12731 else
12732 CROSS_COMPILING_TRUE='#'
12733 CROSS_COMPILING_FALSE=
12734 fi
12735
12736 if test "$enable_shared" = "yes"; then
12737 ENABLE_SHARED_TRUE=
12738 ENABLE_SHARED_FALSE='#'
12739 else
12740 ENABLE_SHARED_TRUE='#'
12741 ENABLE_SHARED_FALSE=
12742 fi
12743
12744
12745
12746
12747 # Check whether --with-arch was given.
12748 if test "${with_arch+set}" = set; then :
12749 withval=$with_arch; arch="$withval"
12750 else
12751 arch=auto
12752 fi
12753
12754
12755 if test "x$arch" != xauto; then
12756
12757 cat >>confdefs.h <<_ACEOF
12758 #define FC_ARCHITECTURE "$arch"
12759 _ACEOF
12760
12761 fi
12762
12763
12764
12765 # Checks for header files.
12766 ac_header_dirent=no
12767 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
12768 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
12770 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
12771 if eval \${$as_ac_Header+:} false; then :
12772 $as_echo_n "(cached) " >&6
12773 else
12774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12775 /* end confdefs.h. */
12776 #include <sys/types.h>
12777 #include <$ac_hdr>
12778
12779 int
12780 main ()
12781 {
12782 if ((DIR *) 0)
12783 return 0;
12784 ;
12785 return 0;
12786 }
12787 _ACEOF
12788 if ac_fn_c_try_compile "$LINENO"; then :
12789 eval "$as_ac_Header=yes"
12790 else
12791 eval "$as_ac_Header=no"
12792 fi
12793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12794 fi
12795 eval ac_res=\$$as_ac_Header
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
12797 $as_echo "$ac_res" >&6; }
12798 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12799 cat >>confdefs.h <<_ACEOF
12800 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
12801 _ACEOF
12802
12803 ac_header_dirent=$ac_hdr; break
12804 fi
12805
12806 done
12807 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
12808 if test $ac_header_dirent = dirent.h; then
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12810 $as_echo_n "checking for library containing opendir... " >&6; }
12811 if ${ac_cv_search_opendir+:} false; then :
12812 $as_echo_n "(cached) " >&6
12813 else
12814 ac_func_search_save_LIBS=$LIBS
12815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12816 /* end confdefs.h. */
12817
12818 /* Override any GCC internal prototype to avoid an error.
12819 Use char because int might match the return type of a GCC
12820 builtin and then its argument prototype would still apply. */
12821 #ifdef __cplusplus
12822 extern "C"
12823 #endif
12824 char opendir ();
12825 int
12826 main ()
12827 {
12828 return opendir ();
12829 ;
12830 return 0;
12831 }
12832 _ACEOF
12833 for ac_lib in '' dir; do
12834 if test -z "$ac_lib"; then
12835 ac_res="none required"
12836 else
12837 ac_res=-l$ac_lib
12838 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12839 fi
12840 if ac_fn_c_try_link "$LINENO"; then :
12841 ac_cv_search_opendir=$ac_res
12842 fi
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext
12845 if ${ac_cv_search_opendir+:} false; then :
12846 break
12847 fi
12848 done
12849 if ${ac_cv_search_opendir+:} false; then :
12850
12851 else
12852 ac_cv_search_opendir=no
12853 fi
12854 rm conftest.$ac_ext
12855 LIBS=$ac_func_search_save_LIBS
12856 fi
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12858 $as_echo "$ac_cv_search_opendir" >&6; }
12859 ac_res=$ac_cv_search_opendir
12860 if test "$ac_res" != no; then :
12861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12862
12863 fi
12864
12865 else
12866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
12867 $as_echo_n "checking for library containing opendir... " >&6; }
12868 if ${ac_cv_search_opendir+:} false; then :
12869 $as_echo_n "(cached) " >&6
12870 else
12871 ac_func_search_save_LIBS=$LIBS
12872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12873 /* end confdefs.h. */
12874
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char opendir ();
12882 int
12883 main ()
12884 {
12885 return opendir ();
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 for ac_lib in '' x; do
12891 if test -z "$ac_lib"; then
12892 ac_res="none required"
12893 else
12894 ac_res=-l$ac_lib
12895 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12896 fi
12897 if ac_fn_c_try_link "$LINENO"; then :
12898 ac_cv_search_opendir=$ac_res
12899 fi
12900 rm -f core conftest.err conftest.$ac_objext \
12901 conftest$ac_exeext
12902 if ${ac_cv_search_opendir+:} false; then :
12903 break
12904 fi
12905 done
12906 if ${ac_cv_search_opendir+:} false; then :
12907
12908 else
12909 ac_cv_search_opendir=no
12910 fi
12911 rm conftest.$ac_ext
12912 LIBS=$ac_func_search_save_LIBS
12913 fi
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
12915 $as_echo "$ac_cv_search_opendir" >&6; }
12916 ac_res=$ac_cv_search_opendir
12917 if test "$ac_res" != no; then :
12918 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12919
12920 fi
12921
12922 fi
12923
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12925 $as_echo_n "checking for ANSI C header files... " >&6; }
12926 if ${ac_cv_header_stdc+:} false; then :
12927 $as_echo_n "(cached) " >&6
12928 else
12929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930 /* end confdefs.h. */
12931 #include <stdlib.h>
12932 #include <stdarg.h>
12933 #include <string.h>
12934 #include <float.h>
12935
12936 int
12937 main ()
12938 {
12939
12940 ;
12941 return 0;
12942 }
12943 _ACEOF
12944 if ac_fn_c_try_compile "$LINENO"; then :
12945 ac_cv_header_stdc=yes
12946 else
12947 ac_cv_header_stdc=no
12948 fi
12949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12950
12951 if test $ac_cv_header_stdc = yes; then
12952 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954 /* end confdefs.h. */
12955 #include <string.h>
12956
12957 _ACEOF
12958 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12959 $EGREP "memchr" >/dev/null 2>&1; then :
12960
12961 else
12962 ac_cv_header_stdc=no
12963 fi
12964 rm -f conftest*
12965
12966 fi
12967
12968 if test $ac_cv_header_stdc = yes; then
12969 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12971 /* end confdefs.h. */
12972 #include <stdlib.h>
12973
12974 _ACEOF
12975 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12976 $EGREP "free" >/dev/null 2>&1; then :
12977
12978 else
12979 ac_cv_header_stdc=no
12980 fi
12981 rm -f conftest*
12982
12983 fi
12984
12985 if test $ac_cv_header_stdc = yes; then
12986 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12987 if test "$cross_compiling" = yes; then :
12988 :
12989 else
12990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12991 /* end confdefs.h. */
12992 #include <ctype.h>
12993 #include <stdlib.h>
12994 #if ((' ' & 0x0FF) == 0x020)
12995 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12996 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12997 #else
12998 # define ISLOWER(c) \
12999 (('a' <= (c) && (c) <= 'i') \
13000 || ('j' <= (c) && (c) <= 'r') \
13001 || ('s' <= (c) && (c) <= 'z'))
13002 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13003 #endif
13004
13005 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13006 int
13007 main ()
13008 {
13009 int i;
13010 for (i = 0; i < 256; i++)
13011 if (XOR (islower (i), ISLOWER (i))
13012 || toupper (i) != TOUPPER (i))
13013 return 2;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_run "$LINENO"; then :
13018
13019 else
13020 ac_cv_header_stdc=no
13021 fi
13022 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13023 conftest.$ac_objext conftest.beam conftest.$ac_ext
13024 fi
13025
13026 fi
13027 fi
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13029 $as_echo "$ac_cv_header_stdc" >&6; }
13030 if test $ac_cv_header_stdc = yes; then
13031
13032 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13033
13034 fi
13035
13036 for ac_header in fcntl.h regex.h stdlib.h string.h unistd.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
13037 do :
13038 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13039 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13040 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13041 cat >>confdefs.h <<_ACEOF
13042 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13043 _ACEOF
13044
13045 fi
13046
13047 done
13048
13049 # ------ AX CREATE STDINT H -------------------------------------
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13051 $as_echo_n "checking for stdint types... " >&6; }
13052 ac_stdint_h=`echo src/fcstdint.h`
13053 # try to shortcircuit - if the default include path of the compiler
13054 # can find a "stdint.h" header then we assume that all compilers can.
13055 if ${ac_cv_header_stdint_t+:} false; then :
13056 $as_echo_n "(cached) " >&6
13057 else
13058
13059 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13060 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13061 old_CFLAGS="$CFLAGS" ; CFLAGS=""
13062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13063 /* end confdefs.h. */
13064 #include <stdint.h>
13065 int
13066 main ()
13067 {
13068 int_least32_t v = 0;
13069 ;
13070 return 0;
13071 }
13072 _ACEOF
13073 if ac_fn_c_try_compile "$LINENO"; then :
13074 ac_cv_stdint_result="(assuming C99 compatible system)"
13075 ac_cv_header_stdint_t="stdint.h";
13076 else
13077 ac_cv_header_stdint_t=""
13078 fi
13079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13080 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13081 CFLAGS="-std=c99"
13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13083 /* end confdefs.h. */
13084 #include <stdint.h>
13085 int
13086 main ()
13087 {
13088 int_least32_t v = 0;
13089 ;
13090 return 0;
13091 }
13092 _ACEOF
13093 if ac_fn_c_try_compile "$LINENO"; then :
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13095 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13096 fi
13097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13098 fi
13099 CXXFLAGS="$old_CXXFLAGS"
13100 CPPFLAGS="$old_CPPFLAGS"
13101 CFLAGS="$old_CFLAGS"
13102 fi
13103
13104
13105 v="... $ac_cv_header_stdint_h"
13106 if test "$ac_stdint_h" = "stdint.h" ; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13108 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13109 elif test "$ac_stdint_h" = "inttypes.h" ; then
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13111 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13112 elif test "_$ac_cv_header_stdint_t" = "_" ; then
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
13114 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
13115 else
13116 ac_cv_header_stdint="$ac_cv_header_stdint_t"
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
13118 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
13119 fi
13120
13121 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
13122
13123
13124 inttype_headers=`echo | sed -e 's/,/ /g'`
13125
13126 ac_cv_stdint_result="(no helpful system typedefs seen)"
13127
13128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13129 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13130 if ${ac_cv_header_stdint_x+:} false; then :
13131 $as_echo_n "(cached) " >&6
13132 else
13133
13134 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13136 $as_echo "(..)" >&6; }
13137 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
13138 do
13139 unset ac_cv_type_uintptr_t
13140 unset ac_cv_type_uint64_t
13141 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
13142 "
13143 if test "x$ac_cv_type_uintptr_t" = xyes; then :
13144 ac_cv_header_stdint_x=$i
13145 else
13146 continue
13147 fi
13148
13149 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13150 "
13151 if test "x$ac_cv_type_uint64_t" = xyes; then :
13152 and64="/uint64_t"
13153 else
13154 and64=""
13155 fi
13156
13157 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
13158 break
13159 done
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
13161 $as_echo_n "checking for stdint uintptr_t... " >&6; }
13162
13163 fi
13164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
13165 $as_echo "$ac_cv_header_stdint_x" >&6; }
13166
13167
13168 if test "_$ac_cv_header_stdint_x" = "_" ; then
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13171 $as_echo_n "checking for stdint uint32_t... " >&6; }
13172 if ${ac_cv_header_stdint_o+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174 else
13175
13176 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13178 $as_echo "(..)" >&6; }
13179 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
13180 do
13181 unset ac_cv_type_uint32_t
13182 unset ac_cv_type_uint64_t
13183 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
13184 "
13185 if test "x$ac_cv_type_uint32_t" = xyes; then :
13186 ac_cv_header_stdint_o=$i
13187 else
13188 continue
13189 fi
13190
13191 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
13192 "
13193 if test "x$ac_cv_type_uint64_t" = xyes; then :
13194 and64="/uint64_t"
13195 else
13196 and64=""
13197 fi
13198
13199 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
13200 break
13201 break;
13202 done
13203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
13204 $as_echo_n "checking for stdint uint32_t... " >&6; }
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
13208 $as_echo "$ac_cv_header_stdint_o" >&6; }
13209
13210 fi
13211
13212 if test "_$ac_cv_header_stdint_x" = "_" ; then
13213 if test "_$ac_cv_header_stdint_o" = "_" ; then
13214
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13216 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13217 if ${ac_cv_header_stdint_u+:} false; then :
13218 $as_echo_n "(cached) " >&6
13219 else
13220
13221 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13223 $as_echo "(..)" >&6; }
13224 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
13225 unset ac_cv_type_u_int32_t
13226 unset ac_cv_type_u_int64_t
13227 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
13228 "
13229 if test "x$ac_cv_type_u_int32_t" = xyes; then :
13230 ac_cv_header_stdint_u=$i
13231 else
13232 continue
13233 fi
13234
13235 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
13236 "
13237 if test "x$ac_cv_type_u_int64_t" = xyes; then :
13238 and64="/u_int64_t"
13239 else
13240 and64=""
13241 fi
13242
13243 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
13244 break
13245 break;
13246 done
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
13248 $as_echo_n "checking for stdint u_int32_t... " >&6; }
13249
13250 fi
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
13252 $as_echo "$ac_cv_header_stdint_u" >&6; }
13253
13254 fi fi
13255
13256 if test "_$ac_cv_header_stdint_x" = "_" ; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
13258 $as_echo_n "checking for stdint datatype model... " >&6; }
13259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
13260 $as_echo "(..)" >&6; }
13261
13262 # The cast to long int works around a bug in the HP C Compiler
13263 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13264 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13265 # This bug is HP SR number 8606223364.
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
13267 $as_echo_n "checking size of char... " >&6; }
13268 if ${ac_cv_sizeof_char+:} false; then :
13269 $as_echo_n "(cached) " >&6
13270 else
13271 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
13272
13273 else
13274 if test "$ac_cv_type_char" = yes; then
13275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13276 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13277 as_fn_error 77 "cannot compute sizeof (char)
13278 See \`config.log' for more details" "$LINENO" 5; }
13279 else
13280 ac_cv_sizeof_char=0
13281 fi
13282 fi
13283
13284 fi
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
13286 $as_echo "$ac_cv_sizeof_char" >&6; }
13287
13288
13289
13290 cat >>confdefs.h <<_ACEOF
13291 #define SIZEOF_CHAR $ac_cv_sizeof_char
13292 _ACEOF
13293
13294
13295 # The cast to long int works around a bug in the HP C Compiler
13296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13298 # This bug is HP SR number 8606223364.
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
13300 $as_echo_n "checking size of short... " >&6; }
13301 if ${ac_cv_sizeof_short+:} false; then :
13302 $as_echo_n "(cached) " >&6
13303 else
13304 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
13305
13306 else
13307 if test "$ac_cv_type_short" = yes; then
13308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13310 as_fn_error 77 "cannot compute sizeof (short)
13311 See \`config.log' for more details" "$LINENO" 5; }
13312 else
13313 ac_cv_sizeof_short=0
13314 fi
13315 fi
13316
13317 fi
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
13319 $as_echo "$ac_cv_sizeof_short" >&6; }
13320
13321
13322
13323 cat >>confdefs.h <<_ACEOF
13324 #define SIZEOF_SHORT $ac_cv_sizeof_short
13325 _ACEOF
13326
13327
13328 # The cast to long int works around a bug in the HP C Compiler
13329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13331 # This bug is HP SR number 8606223364.
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
13333 $as_echo_n "checking size of int... " >&6; }
13334 if ${ac_cv_sizeof_int+:} false; then :
13335 $as_echo_n "(cached) " >&6
13336 else
13337 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
13338
13339 else
13340 if test "$ac_cv_type_int" = yes; then
13341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13343 as_fn_error 77 "cannot compute sizeof (int)
13344 See \`config.log' for more details" "$LINENO" 5; }
13345 else
13346 ac_cv_sizeof_int=0
13347 fi
13348 fi
13349
13350 fi
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
13352 $as_echo "$ac_cv_sizeof_int" >&6; }
13353
13354
13355
13356 cat >>confdefs.h <<_ACEOF
13357 #define SIZEOF_INT $ac_cv_sizeof_int
13358 _ACEOF
13359
13360
13361 # The cast to long int works around a bug in the HP C Compiler
13362 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13363 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13364 # This bug is HP SR number 8606223364.
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
13366 $as_echo_n "checking size of long... " >&6; }
13367 if ${ac_cv_sizeof_long+:} false; then :
13368 $as_echo_n "(cached) " >&6
13369 else
13370 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
13371
13372 else
13373 if test "$ac_cv_type_long" = yes; then
13374 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13375 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13376 as_fn_error 77 "cannot compute sizeof (long)
13377 See \`config.log' for more details" "$LINENO" 5; }
13378 else
13379 ac_cv_sizeof_long=0
13380 fi
13381 fi
13382
13383 fi
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
13385 $as_echo "$ac_cv_sizeof_long" >&6; }
13386
13387
13388
13389 cat >>confdefs.h <<_ACEOF
13390 #define SIZEOF_LONG $ac_cv_sizeof_long
13391 _ACEOF
13392
13393
13394 # The cast to long int works around a bug in the HP C Compiler
13395 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13396 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13397 # This bug is HP SR number 8606223364.
13398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
13399 $as_echo_n "checking size of void*... " >&6; }
13400 if ${ac_cv_sizeof_voidp+:} false; then :
13401 $as_echo_n "(cached) " >&6
13402 else
13403 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
13404
13405 else
13406 if test "$ac_cv_type_voidp" = yes; then
13407 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13408 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13409 as_fn_error 77 "cannot compute sizeof (void*)
13410 See \`config.log' for more details" "$LINENO" 5; }
13411 else
13412 ac_cv_sizeof_voidp=0
13413 fi
13414 fi
13415
13416 fi
13417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
13418 $as_echo "$ac_cv_sizeof_voidp" >&6; }
13419
13420
13421
13422 cat >>confdefs.h <<_ACEOF
13423 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
13424 _ACEOF
13425
13426
13427 ac_cv_char_data_model=""
13428 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
13429 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
13430 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
13431 ac_cv_long_data_model=""
13432 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
13433 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
13434 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
13436 $as_echo_n "checking data model... " >&6; }
13437 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
13438 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
13439 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
13440 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
13441 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
13442 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
13443 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
13444 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
13445 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
13446 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
13447 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
13448 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
13449 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
13450 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
13451 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
13452 222/*|333/*|444/*|666/*|888/*) :
13453 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
13454 *) ac_cv_data_model="none" ; n="very unusual model" ;;
13455 esac
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
13457 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
13458
13459 fi
13460
13461 if test "_$ac_cv_header_stdint_x" != "_" ; then
13462 ac_cv_header_stdint="$ac_cv_header_stdint_x"
13463 elif test "_$ac_cv_header_stdint_o" != "_" ; then
13464 ac_cv_header_stdint="$ac_cv_header_stdint_o"
13465 elif test "_$ac_cv_header_stdint_u" != "_" ; then
13466 ac_cv_header_stdint="$ac_cv_header_stdint_u"
13467 else
13468 ac_cv_header_stdint="stddef.h"
13469 fi
13470
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
13472 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
13474 $as_echo "($ac_cv_header_stdint)" >&6; }
13475 unset ac_cv_type_int_least32_t
13476 unset ac_cv_type_int_fast32_t
13477 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
13478 "
13479 if test "x$ac_cv_type_int_least32_t" = xyes; then :
13480
13481 fi
13482
13483 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
13484 "
13485 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
13486
13487 fi
13488
13489 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
13490 "
13491 if test "x$ac_cv_type_intmax_t" = xyes; then :
13492
13493 fi
13494
13495
13496 fi # shortcircut to system "stdint.h"
13497 # ------------------ PREPARE VARIABLES ------------------------------
13498 if test "$GCC" = "yes" ; then
13499 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
13500 else
13501 ac_cv_stdint_message="using $CC"
13502 fi
13503
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
13505 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
13506
13507 # ----------------- DONE inttypes.h checks START header -------------
13508 ac_config_commands="$ac_config_commands $ac_stdint_h"
13509
13510
13511
13512 # Checks for typedefs, structures, and compiler characteristics.
13513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
13514 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
13515 if ${ac_cv_c_const+:} false; then :
13516 $as_echo_n "(cached) " >&6
13517 else
13518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13519 /* end confdefs.h. */
13520
13521 int
13522 main ()
13523 {
13524
13525 #ifndef __cplusplus
13526 /* Ultrix mips cc rejects this sort of thing. */
13527 typedef int charset[2];
13528 const charset cs = { 0, 0 };
13529 /* SunOS 4.1.1 cc rejects this. */
13530 char const *const *pcpcc;
13531 char **ppc;
13532 /* NEC SVR4.0.2 mips cc rejects this. */
13533 struct point {int x, y;};
13534 static struct point const zero = {0,0};
13535 /* AIX XL C 1.02.0.0 rejects this.
13536 It does not let you subtract one const X* pointer from another in
13537 an arm of an if-expression whose if-part is not a constant
13538 expression */
13539 const char *g = "string";
13540 pcpcc = &g + (g ? g-g : 0);
13541 /* HPUX 7.0 cc rejects these. */
13542 ++pcpcc;
13543 ppc = (char**) pcpcc;
13544 pcpcc = (char const *const *) ppc;
13545 { /* SCO 3.2v4 cc rejects this sort of thing. */
13546 char tx;
13547 char *t = &tx;
13548 char const *s = 0 ? (char *) 0 : (char const *) 0;
13549
13550 *t++ = 0;
13551 if (s) return 0;
13552 }
13553 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
13554 int x[] = {25, 17};
13555 const int *foo = &x[0];
13556 ++foo;
13557 }
13558 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
13559 typedef const int *iptr;
13560 iptr p = 0;
13561 ++p;
13562 }
13563 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
13564 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
13565 struct s { int j; const int *ap[3]; } bx;
13566 struct s *b = &bx; b->j = 5;
13567 }
13568 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
13569 const int foo = 10;
13570 if (!foo) return 0;
13571 }
13572 return !cs[0] && !zero.x;
13573 #endif
13574
13575 ;
13576 return 0;
13577 }
13578 _ACEOF
13579 if ac_fn_c_try_compile "$LINENO"; then :
13580 ac_cv_c_const=yes
13581 else
13582 ac_cv_c_const=no
13583 fi
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 fi
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
13587 $as_echo "$ac_cv_c_const" >&6; }
13588 if test $ac_cv_c_const = no; then
13589
13590 $as_echo "#define const /**/" >>confdefs.h
13591
13592 fi
13593
13594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
13595 $as_echo_n "checking for inline... " >&6; }
13596 if ${ac_cv_c_inline+:} false; then :
13597 $as_echo_n "(cached) " >&6
13598 else
13599 ac_cv_c_inline=no
13600 for ac_kw in inline __inline__ __inline; do
13601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13602 /* end confdefs.h. */
13603 #ifndef __cplusplus
13604 typedef int foo_t;
13605 static $ac_kw foo_t static_foo () {return 0; }
13606 $ac_kw foo_t foo () {return 0; }
13607 #endif
13608
13609 _ACEOF
13610 if ac_fn_c_try_compile "$LINENO"; then :
13611 ac_cv_c_inline=$ac_kw
13612 fi
13613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13614 test "$ac_cv_c_inline" != no && break
13615 done
13616
13617 fi
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
13619 $as_echo "$ac_cv_c_inline" >&6; }
13620
13621 case $ac_cv_c_inline in
13622 inline | yes) ;;
13623 *)
13624 case $ac_cv_c_inline in
13625 no) ac_val=;;
13626 *) ac_val=$ac_cv_c_inline;;
13627 esac
13628 cat >>confdefs.h <<_ACEOF
13629 #ifndef __cplusplus
13630 #define inline $ac_val
13631 #endif
13632 _ACEOF
13633 ;;
13634 esac
13635
13636
13637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
13638 $as_echo_n "checking for flexible array members... " >&6; }
13639 if ${ac_cv_c_flexmember+:} false; then :
13640 $as_echo_n "(cached) " >&6
13641 else
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13644 #include <stdlib.h>
13645 #include <stdio.h>
13646 #include <stddef.h>
13647 struct s { int n; double d[]; };
13648 int
13649 main ()
13650 {
13651 int m = getchar ();
13652 struct s *p = malloc (offsetof (struct s, d)
13653 + m * sizeof (double));
13654 p->d[0] = 0.0;
13655 return p->d != (double *) NULL;
13656 ;
13657 return 0;
13658 }
13659 _ACEOF
13660 if ac_fn_c_try_compile "$LINENO"; then :
13661 ac_cv_c_flexmember=yes
13662 else
13663 ac_cv_c_flexmember=no
13664 fi
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 fi
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
13668 $as_echo "$ac_cv_c_flexmember" >&6; }
13669 if test $ac_cv_c_flexmember = yes; then
13670
13671 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
13672
13673 else
13674 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
13675
13676 fi
13677
13678 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
13679 if test "x$ac_cv_type_pid_t" = xyes; then :
13680
13681 else
13682
13683 cat >>confdefs.h <<_ACEOF
13684 #define pid_t int
13685 _ACEOF
13686
13687 fi
13688
13689
13690 # Checks for library functions.
13691 for ac_func in vprintf
13692 do :
13693 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
13694 if test "x$ac_cv_func_vprintf" = xyes; then :
13695 cat >>confdefs.h <<_ACEOF
13696 #define HAVE_VPRINTF 1
13697 _ACEOF
13698
13699 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
13700 if test "x$ac_cv_func__doprnt" = xyes; then :
13701
13702 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
13703
13704 fi
13705
13706 fi
13707 done
13708
13709
13710
13711
13712
13713 for ac_header in $ac_header_list
13714 do :
13715 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13716 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13717 "
13718 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13719 cat >>confdefs.h <<_ACEOF
13720 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13721 _ACEOF
13722
13723 fi
13724
13725 done
13726
13727
13728
13729
13730
13731
13732
13733
13734 for ac_func in getpagesize
13735 do :
13736 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13737 if test "x$ac_cv_func_getpagesize" = xyes; then :
13738 cat >>confdefs.h <<_ACEOF
13739 #define HAVE_GETPAGESIZE 1
13740 _ACEOF
13741
13742 fi
13743 done
13744
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13746 $as_echo_n "checking for working mmap... " >&6; }
13747 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
13748 $as_echo_n "(cached) " >&6
13749 else
13750 if test "$cross_compiling" = yes; then :
13751 ac_cv_func_mmap_fixed_mapped=no
13752 else
13753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13754 /* end confdefs.h. */
13755 $ac_includes_default
13756 /* malloc might have been renamed as rpl_malloc. */
13757 #undef malloc
13758
13759 /* Thanks to Mike Haertel and Jim Avera for this test.
13760 Here is a matrix of mmap possibilities:
13761 mmap private not fixed
13762 mmap private fixed at somewhere currently unmapped
13763 mmap private fixed at somewhere already mapped
13764 mmap shared not fixed
13765 mmap shared fixed at somewhere currently unmapped
13766 mmap shared fixed at somewhere already mapped
13767 For private mappings, we should verify that changes cannot be read()
13768 back from the file, nor mmap's back from the file at a different
13769 address. (There have been systems where private was not correctly
13770 implemented like the infamous i386 svr4.0, and systems where the
13771 VM page cache was not coherent with the file system buffer cache
13772 like early versions of FreeBSD and possibly contemporary NetBSD.)
13773 For shared mappings, we should conversely verify that changes get
13774 propagated back to all the places they're supposed to be.
13775
13776 Grep wants private fixed already mapped.
13777 The main things grep needs to know about mmap are:
13778 * does it exist and is it safe to write into the mmap'd area
13779 * how to use it (BSD variants) */
13780
13781 #include <fcntl.h>
13782 #include <sys/mman.h>
13783
13784 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13785 char *malloc ();
13786 #endif
13787
13788 /* This mess was copied from the GNU getpagesize.h. */
13789 #ifndef HAVE_GETPAGESIZE
13790 # ifdef _SC_PAGESIZE
13791 # define getpagesize() sysconf(_SC_PAGESIZE)
13792 # else /* no _SC_PAGESIZE */
13793 # ifdef HAVE_SYS_PARAM_H
13794 # include <sys/param.h>
13795 # ifdef EXEC_PAGESIZE
13796 # define getpagesize() EXEC_PAGESIZE
13797 # else /* no EXEC_PAGESIZE */
13798 # ifdef NBPG
13799 # define getpagesize() NBPG * CLSIZE
13800 # ifndef CLSIZE
13801 # define CLSIZE 1
13802 # endif /* no CLSIZE */
13803 # else /* no NBPG */
13804 # ifdef NBPC
13805 # define getpagesize() NBPC
13806 # else /* no NBPC */
13807 # ifdef PAGESIZE
13808 # define getpagesize() PAGESIZE
13809 # endif /* PAGESIZE */
13810 # endif /* no NBPC */
13811 # endif /* no NBPG */
13812 # endif /* no EXEC_PAGESIZE */
13813 # else /* no HAVE_SYS_PARAM_H */
13814 # define getpagesize() 8192 /* punt totally */
13815 # endif /* no HAVE_SYS_PARAM_H */
13816 # endif /* no _SC_PAGESIZE */
13817
13818 #endif /* no HAVE_GETPAGESIZE */
13819
13820 int
13821 main ()
13822 {
13823 char *data, *data2, *data3;
13824 const char *cdata2;
13825 int i, pagesize;
13826 int fd, fd2;
13827
13828 pagesize = getpagesize ();
13829
13830 /* First, make a file with some known garbage in it. */
13831 data = (char *) malloc (pagesize);
13832 if (!data)
13833 return 1;
13834 for (i = 0; i < pagesize; ++i)
13835 *(data + i) = rand ();
13836 umask (0);
13837 fd = creat ("conftest.mmap", 0600);
13838 if (fd < 0)
13839 return 2;
13840 if (write (fd, data, pagesize) != pagesize)
13841 return 3;
13842 close (fd);
13843
13844 /* Next, check that the tail of a page is zero-filled. File must have
13845 non-zero length, otherwise we risk SIGBUS for entire page. */
13846 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13847 if (fd2 < 0)
13848 return 4;
13849 cdata2 = "";
13850 if (write (fd2, cdata2, 1) != 1)
13851 return 5;
13852 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13853 if (data2 == MAP_FAILED)
13854 return 6;
13855 for (i = 0; i < pagesize; ++i)
13856 if (*(data2 + i))
13857 return 7;
13858 close (fd2);
13859 if (munmap (data2, pagesize))
13860 return 8;
13861
13862 /* Next, try to mmap the file at a fixed address which already has
13863 something else allocated at it. If we can, also make sure that
13864 we see the same garbage. */
13865 fd = open ("conftest.mmap", O_RDWR);
13866 if (fd < 0)
13867 return 9;
13868 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13869 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13870 return 10;
13871 for (i = 0; i < pagesize; ++i)
13872 if (*(data + i) != *(data2 + i))
13873 return 11;
13874
13875 /* Finally, make sure that changes to the mapped area do not
13876 percolate back to the file as seen by read(). (This is a bug on
13877 some variants of i386 svr4.0.) */
13878 for (i = 0; i < pagesize; ++i)
13879 *(data2 + i) = *(data2 + i) + 1;
13880 data3 = (char *) malloc (pagesize);
13881 if (!data3)
13882 return 12;
13883 if (read (fd, data3, pagesize) != pagesize)
13884 return 13;
13885 for (i = 0; i < pagesize; ++i)
13886 if (*(data + i) != *(data3 + i))
13887 return 14;
13888 close (fd);
13889 return 0;
13890 }
13891 _ACEOF
13892 if ac_fn_c_try_run "$LINENO"; then :
13893 ac_cv_func_mmap_fixed_mapped=yes
13894 else
13895 ac_cv_func_mmap_fixed_mapped=no
13896 fi
13897 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13898 conftest.$ac_objext conftest.beam conftest.$ac_ext
13899 fi
13900
13901 fi
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
13903 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
13904 if test $ac_cv_func_mmap_fixed_mapped = yes; then
13905
13906 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
13907
13908 fi
13909 rm -f conftest.mmap conftest.txt
13910
13911 for ac_func in link mkstemp mkostemp _mktemp_s getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r regcomp regerror regexec regfree fstatvfs fstatfs lstat
13912 do :
13913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13914 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13915 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
13916 cat >>confdefs.h <<_ACEOF
13917 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13918 _ACEOF
13919
13920 fi
13921 done
13922
13923
13924 fc_saved_CFLAGS="$CFLAGS"
13925 CFLAGS="$CFLAGS $WARN_CFLAGS -Werror"
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise" >&5
13927 $as_echo_n "checking for posix_fadvise... " >&6; }
13928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13929 /* end confdefs.h. */
13930
13931 #include <fcntl.h>
13932 int main(void) {
13933 return posix_fadvise(0, 0, 0, 0);
13934 }
13935
13936 _ACEOF
13937 if ac_fn_c_try_link "$LINENO"; then :
13938
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13940 $as_echo "yes" >&6; }
13941
13942 $as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13943
13944
13945 else
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13948 fi
13949 rm -f core conftest.err conftest.$ac_objext \
13950 conftest$ac_exeext conftest.$ac_ext
13951 if test "$os_win32" = "no"; then
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scandir" >&5
13953 $as_echo_n "checking for scandir... " >&6; }
13954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13955 /* end confdefs.h. */
13956
13957 #include <dirent.h>
13958 int comp(const struct dirent **, const struct dirent **);
13959 int comp(const struct dirent **a, const struct dirent **b) { return 0; }
13960 int main(void) {
13961 struct dirent **d;
13962 return scandir(".", &d, 0, &comp) >= 0;
13963 }
13964
13965 _ACEOF
13966 if ac_fn_c_try_link "$LINENO"; then :
13967
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13969 $as_echo "yes" >&6; }
13970
13971 $as_echo "#define HAVE_SCANDIR 1" >>confdefs.h
13972
13973
13974 else
13975
13976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13977 /* end confdefs.h. */
13978
13979 #include <dirent.h>
13980 int comp(const void *, const void *);
13981 int comp(const void *a, const void *b) { return 0; }
13982 int main(void) {
13983 struct dirent **d;
13984 return scandir(".", &d, 0, &comp) >= 0;
13985 }
13986
13987 _ACEOF
13988 if ac_fn_c_try_link "$LINENO"; then :
13989
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13991 $as_echo "yes" >&6; }
13992
13993 $as_echo "#define HAVE_SCANDIR_VOID_P 1" >>confdefs.h
13994
13995
13996 else
13997
13998 as_fn_error $? "
13999 *** No scandir function available." "$LINENO" 5
14000
14001 fi
14002 rm -f core conftest.err conftest.$ac_objext \
14003 conftest$ac_exeext conftest.$ac_ext
14004
14005 fi
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 fi
14009 CFLAGS="$fc_saved_CFLAGS"
14010
14011 #
14012 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
14013 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
14014 "
14015 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
14016
14017 cat >>confdefs.h <<_ACEOF
14018 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
14019 _ACEOF
14020
14021
14022 fi
14023 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
14024 "
14025 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
14026
14027 cat >>confdefs.h <<_ACEOF
14028 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
14029 _ACEOF
14030
14031
14032 fi
14033
14034 fi
14035 if test "x$ac_cv_func_fstatfs" = "xyes"; then
14036 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
14037 #ifdef HAVE_SYS_VFS_H
14038 #include <sys/vfs.h>
14039 #endif
14040 #ifdef HAVE_SYS_STATFS_H
14041 #include <sys/statfs.h>
14042 #endif
14043 #ifdef HAVE_SYS_PARAM_H
14044 #include <sys/param.h>
14045 #endif
14046 #ifdef HAVE_SYS_MOUNT_H
14047 #include <sys/mount.h>
14048 #endif
14049 "
14050 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
14051
14052 cat >>confdefs.h <<_ACEOF
14053 #define HAVE_STRUCT_STATFS_F_FLAGS 1
14054 _ACEOF
14055
14056
14057 fi
14058 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
14059 #ifdef HAVE_SYS_VFS_H
14060 #include <sys/vfs.h>
14061 #endif
14062 #ifdef HAVE_SYS_STATFS_H
14063 #include <sys/statfs.h>
14064 #endif
14065 #ifdef HAVE_SYS_PARAM_H
14066 #include <sys/param.h>
14067 #endif
14068 #ifdef HAVE_SYS_MOUNT_H
14069 #include <sys/mount.h>
14070 #endif
14071 "
14072 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
14073
14074 cat >>confdefs.h <<_ACEOF
14075 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
14076 _ACEOF
14077
14078
14079 fi
14080
14081 fi
14082 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
14083 "
14084 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
14085
14086 cat >>confdefs.h <<_ACEOF
14087 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14088 _ACEOF
14089
14090
14091 fi
14092
14093 #
14094 # regex
14095 #
14096 if test "x$ac_cv_func_regcomp" = "xyes" -a "x$ac_cv_func_regerror" = "xyes" -a "x$ac_cv_func_regexec" = "xyes" -a "x$ac_cv_func_regfree"; then
14097
14098 $as_echo "#define USE_REGEX /**/" >>confdefs.h
14099
14100 fi
14101
14102 #
14103 # Checks for iconv
14104 #
14105 # Check whether --enable-iconv was given.
14106 if test "${enable_iconv+set}" = set; then :
14107 enableval=$enable_iconv;
14108 else
14109 enable_iconv=no
14110 fi
14111
14112
14113 # Check whether --with-libiconv was given.
14114 if test "${with_libiconv+set}" = set; then :
14115 withval=$with_libiconv; if test "x$withval" = "xyes"; then
14116 libiconv_prefix=$prefix
14117 else
14118 libiconv_prefix=$withval
14119 fi
14120 else
14121 libiconv_prefix=auto
14122 fi
14123
14124
14125 # Check whether --with-libiconv-includes was given.
14126 if test "${with_libiconv_includes+set}" = set; then :
14127 withval=$with_libiconv_includes; libiconv_includes=$withval
14128 else
14129 libiconv_includes=auto
14130 fi
14131
14132
14133 # Check whether --with-libiconv-lib was given.
14134 if test "${with_libiconv_lib+set}" = set; then :
14135 withval=$with_libiconv_lib; libiconv_lib=$withval
14136 else
14137 libiconv_lib=auto
14138 fi
14139
14140
14141 # if no libiconv,libiconv-includes,libiconv-lib are specified,
14142 # libc's iconv has a priority.
14143 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
14144 libiconv_cflags="-I${libiconv_includes}"
14145 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
14146 libiconv_cflags="-I${libiconv_prefix}/include"
14147 else
14148 libiconv_cflags=""
14149 fi
14150 libiconv_libs=""
14151 if test "x$libiconv_cflags" != "x"; then
14152 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
14153 libiconv_libs="-L${libiconv_lib} -liconv"
14154 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
14155 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
14156 else
14157 libiconv_libs="-liconv"
14158 fi
14159 fi
14160
14161 use_iconv=0
14162 if test "x$enable_iconv" != "xno"; then
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
14164 $as_echo_n "checking for a usable iconv... " >&6; }
14165 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
14166 iconvsaved_CFLAGS="$CFLAGS"
14167 iconvsaved_LIBS="$LIBS"
14168 CFLAGS="$CFLAGS $libiconv_cflags"
14169 LIBS="$LIBS $libiconv_libs"
14170
14171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 #include <iconv.h>
14174 int
14175 main ()
14176 {
14177 iconv_open ("from", "to");
14178 ;
14179 return 0;
14180 }
14181 _ACEOF
14182 if ac_fn_c_try_link "$LINENO"; then :
14183 iconv_type="libiconv"
14184 use_iconv=1
14185 ICONV_CFLAGS="$libiconv_cflags"
14186 ICONV_LIBS="$libiconv_libs"
14187
14188 else
14189 use_iconv=0
14190 fi
14191 rm -f core conftest.err conftest.$ac_objext \
14192 conftest$ac_exeext conftest.$ac_ext
14193
14194 CFLAGS="$iconvsaved_CFLAGS"
14195 LIBS="$iconvsaved_LIBS"
14196 fi
14197 if test "x$use_iconv" = "x0"; then
14198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <iconv.h>
14201 int
14202 main ()
14203 {
14204 iconv_open ("from", "to");
14205 ;
14206 return 0;
14207 }
14208 _ACEOF
14209 if ac_fn_c_try_link "$LINENO"; then :
14210 iconv_type="libc"
14211 use_iconv=1
14212 else
14213 iconv_type="not found"
14214 use_iconv=0
14215 fi
14216 rm -f core conftest.err conftest.$ac_objext \
14217 conftest$ac_exeext conftest.$ac_ext
14218 fi
14219
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
14221 $as_echo "$iconv_type" >&6; }
14222
14223
14224 fi
14225
14226 cat >>confdefs.h <<_ACEOF
14227 #define USE_ICONV $use_iconv
14228 _ACEOF
14229
14230 #
14231 # Checks for FreeType
14232 #
14233
14234 pkg_failed=no
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
14236 $as_echo_n "checking for FREETYPE... " >&6; }
14237
14238 if test -n "$FREETYPE_CFLAGS"; then
14239 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
14240 elif test -n "$PKG_CONFIG"; then
14241 if test -n "$PKG_CONFIG" && \
14242 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14243 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14244 ac_status=$?
14245 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14246 test $ac_status = 0; }; then
14247 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
14248 test "x$?" != "x0" && pkg_failed=yes
14249 else
14250 pkg_failed=yes
14251 fi
14252 else
14253 pkg_failed=untried
14254 fi
14255 if test -n "$FREETYPE_LIBS"; then
14256 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
14257 elif test -n "$PKG_CONFIG"; then
14258 if test -n "$PKG_CONFIG" && \
14259 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
14260 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
14261 ac_status=$?
14262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14263 test $ac_status = 0; }; then
14264 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
14265 test "x$?" != "x0" && pkg_failed=yes
14266 else
14267 pkg_failed=yes
14268 fi
14269 else
14270 pkg_failed=untried
14271 fi
14272
14273
14274
14275 if test $pkg_failed = yes; then
14276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14277 $as_echo "no" >&6; }
14278
14279 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14280 _pkg_short_errors_supported=yes
14281 else
14282 _pkg_short_errors_supported=no
14283 fi
14284 if test $_pkg_short_errors_supported = yes; then
14285 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
14286 else
14287 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
14288 fi
14289 # Put the nasty error message in config.log where it belongs
14290 echo "$FREETYPE_PKG_ERRORS" >&5
14291
14292 as_fn_error $? "Package requirements (freetype2) were not met:
14293
14294 $FREETYPE_PKG_ERRORS
14295
14296 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14297 installed software in a non-standard prefix.
14298
14299 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14300 and FREETYPE_LIBS to avoid the need to call pkg-config.
14301 See the pkg-config man page for more details." "$LINENO" 5
14302 elif test $pkg_failed = untried; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14304 $as_echo "no" >&6; }
14305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14307 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14308 is in your PATH or set the PKG_CONFIG environment variable to the full
14309 path to pkg-config.
14310
14311 Alternatively, you may set the environment variables FREETYPE_CFLAGS
14312 and FREETYPE_LIBS to avoid the need to call pkg-config.
14313 See the pkg-config man page for more details.
14314
14315 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14316 See \`config.log' for more details" "$LINENO" 5; }
14317 else
14318 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
14319 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14321 $as_echo "yes" >&6; }
14322
14323 fi
14324 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
14325
14326
14327
14328
14329 fontconfig_save_libs="$LIBS"
14330 fontconfig_save_cflags="$CFLAGS"
14331 LIBS="$LIBS $FREETYPE_LIBS"
14332 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
14333 for ac_func in FT_Get_Next_Char FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Select_Size
14334 do :
14335 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14336 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14337 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14338 cat >>confdefs.h <<_ACEOF
14339 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14340 _ACEOF
14341
14342 fi
14343 done
14344
14345 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
14346 #include FT_FREETYPE_H
14347 "
14348 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
14349 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
14350 else
14351 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
14352 fi
14353
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
14357 _ACEOF
14358
14359 CFLAGS="$fontconfig_save_cflags"
14360 LIBS="$fontconfig_save_libs"
14361
14362 #
14363 # Check expat configuration
14364 #
14365
14366 # Check whether --with-expat was given.
14367 if test "${with_expat+set}" = set; then :
14368 withval=$with_expat; expat_prefix=$withval
14369 else
14370 expat_prefix=auto
14371 fi
14372
14373
14374 # Check whether --with-expat-includes was given.
14375 if test "${with_expat_includes+set}" = set; then :
14376 withval=$with_expat_includes; expat_includes=$withval
14377 else
14378 expat_includes=auto
14379 fi
14380
14381
14382 # Check whether --with-expat-lib was given.
14383 if test "${with_expat_lib+set}" = set; then :
14384 withval=$with_expat_lib; expat_lib=$withval
14385 else
14386 expat_lib=auto
14387 fi
14388
14389
14390 if test "$enable_libxml2" != "yes"; then
14391 use_pkgconfig_for_expat=yes
14392 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
14393
14394 pkg_failed=no
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
14396 $as_echo_n "checking for EXPAT... " >&6; }
14397
14398 if test -n "$EXPAT_CFLAGS"; then
14399 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
14400 elif test -n "$PKG_CONFIG"; then
14401 if test -n "$PKG_CONFIG" && \
14402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14403 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14404 ac_status=$?
14405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14406 test $ac_status = 0; }; then
14407 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
14408 test "x$?" != "x0" && pkg_failed=yes
14409 else
14410 pkg_failed=yes
14411 fi
14412 else
14413 pkg_failed=untried
14414 fi
14415 if test -n "$EXPAT_LIBS"; then
14416 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
14417 elif test -n "$PKG_CONFIG"; then
14418 if test -n "$PKG_CONFIG" && \
14419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
14420 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
14421 ac_status=$?
14422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14423 test $ac_status = 0; }; then
14424 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
14425 test "x$?" != "x0" && pkg_failed=yes
14426 else
14427 pkg_failed=yes
14428 fi
14429 else
14430 pkg_failed=untried
14431 fi
14432
14433
14434
14435 if test $pkg_failed = yes; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14437 $as_echo "no" >&6; }
14438
14439 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14440 _pkg_short_errors_supported=yes
14441 else
14442 _pkg_short_errors_supported=no
14443 fi
14444 if test $_pkg_short_errors_supported = yes; then
14445 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
14446 else
14447 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
14448 fi
14449 # Put the nasty error message in config.log where it belongs
14450 echo "$EXPAT_PKG_ERRORS" >&5
14451
14452 use_pkgconfig_for_expat=no
14453 elif test $pkg_failed = untried; then
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14455 $as_echo "no" >&6; }
14456 use_pkgconfig_for_expat=no
14457 else
14458 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
14459 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14461 $as_echo "yes" >&6; }
14462
14463 fi
14464 else
14465 use_pkgconfig_for_expat=no
14466 fi
14467 if test "x$use_pkgconfig_for_expat" = "xno"; then
14468 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
14469 EXPAT_CFLAGS="-I${expat_includes}"
14470 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
14471 EXPAT_CFLAGS="-I${expat_prefix}/include"
14472 else
14473 EXPAT_CFLAGS=""
14474 fi
14475 if test "$expat_lib" != "auto"; then
14476 EXPAT_LIBS="-L${expat_lib} -lexpat"
14477 elif test "$expat_prefix" != "auto"; then
14478 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
14479 else
14480 EXPAT_LIBS="-lexpat"
14481 fi
14482 else
14483 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
14484 fi
14485
14486 expatsaved_CPPFLAGS="$CPPFLAGS"
14487 expatsaved_LIBS="$LIBS"
14488 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
14489 LIBS="$LIBS $EXPAT_LIBS"
14490
14491 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
14492 if test "x$ac_cv_header_expat_h" = xyes; then :
14493
14494 fi
14495
14496
14497 if test "$ac_cv_header_expat_h" = "no"; then
14498 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
14499 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
14500
14501 fi
14502
14503
14504 if test "$ac_cv_header_xmlparse_h" = "yes"; then
14505 HAVE_XMLPARSE_H=1
14506
14507
14508 cat >>confdefs.h <<_ACEOF
14509 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
14510 _ACEOF
14511
14512 else
14513 as_fn_error $? "
14514 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14515 fi
14516 fi
14517 for ac_func in XML_SetDoctypeDeclHandler
14518 do :
14519 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
14520 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
14521 cat >>confdefs.h <<_ACEOF
14522 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
14523 _ACEOF
14524
14525 fi
14526 done
14527
14528 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
14529 as_fn_error $? "
14530 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
14531 fi
14532 CPPFLAGS="$expatsaved_CPPFLAGS"
14533 LIBS="$expatsaved_LIBS"
14534
14535
14536
14537 fi
14538
14539 #
14540 # Check libxml2 configuration
14541 #
14542 # Check whether --enable-libxml2 was given.
14543 if test "${enable_libxml2+set}" = set; then :
14544 enableval=$enable_libxml2;
14545 fi
14546
14547
14548 if test "$enable_libxml2" = "yes"; then
14549
14550 pkg_failed=no
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
14552 $as_echo_n "checking for LIBXML2... " >&6; }
14553
14554 if test -n "$LIBXML2_CFLAGS"; then
14555 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
14556 elif test -n "$PKG_CONFIG"; then
14557 if test -n "$PKG_CONFIG" && \
14558 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14559 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14560 ac_status=$?
14561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14562 test $ac_status = 0; }; then
14563 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
14564 test "x$?" != "x0" && pkg_failed=yes
14565 else
14566 pkg_failed=yes
14567 fi
14568 else
14569 pkg_failed=untried
14570 fi
14571 if test -n "$LIBXML2_LIBS"; then
14572 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
14573 elif test -n "$PKG_CONFIG"; then
14574 if test -n "$PKG_CONFIG" && \
14575 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
14576 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
14577 ac_status=$?
14578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14579 test $ac_status = 0; }; then
14580 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
14581 test "x$?" != "x0" && pkg_failed=yes
14582 else
14583 pkg_failed=yes
14584 fi
14585 else
14586 pkg_failed=untried
14587 fi
14588
14589
14590
14591 if test $pkg_failed = yes; then
14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14593 $as_echo "no" >&6; }
14594
14595 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14596 _pkg_short_errors_supported=yes
14597 else
14598 _pkg_short_errors_supported=no
14599 fi
14600 if test $_pkg_short_errors_supported = yes; then
14601 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14602 else
14603 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
14604 fi
14605 # Put the nasty error message in config.log where it belongs
14606 echo "$LIBXML2_PKG_ERRORS" >&5
14607
14608 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
14609
14610 $LIBXML2_PKG_ERRORS
14611
14612 Consider adjusting the PKG_CONFIG_PATH environment variable if you
14613 installed software in a non-standard prefix.
14614
14615 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14616 and LIBXML2_LIBS to avoid the need to call pkg-config.
14617 See the pkg-config man page for more details." "$LINENO" 5
14618 elif test $pkg_failed = untried; then
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14620 $as_echo "no" >&6; }
14621 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14622 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14623 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14624 is in your PATH or set the PKG_CONFIG environment variable to the full
14625 path to pkg-config.
14626
14627 Alternatively, you may set the environment variables LIBXML2_CFLAGS
14628 and LIBXML2_LIBS to avoid the need to call pkg-config.
14629 See the pkg-config man page for more details.
14630
14631 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
14632 See \`config.log' for more details" "$LINENO" 5; }
14633 else
14634 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
14635 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14637 $as_echo "yes" >&6; }
14638
14639 fi
14640 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0"
14641
14642 cat >>confdefs.h <<_ACEOF
14643 #define ENABLE_LIBXML2 1
14644 _ACEOF
14645
14646
14647
14648
14649
14650 fc_saved_CFLAGS="$CFLAGS"
14651 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
14653 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
14654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14655 /* end confdefs.h. */
14656
14657 #include <libxml/xmlversion.h>
14658 #if !defined(LIBXML_SAX1_ENABLED)
14659 # include "error: No SAX1 support in libxml2"
14660 #endif
14661
14662 _ACEOF
14663 if ac_fn_c_try_compile "$LINENO"; then :
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14665 $as_echo "found" >&6; }
14666 else
14667 as_fn_error $? "
14668 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
14669 fi
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 CFLAGS="$fc_saved_CFLAGS"
14672 fi
14673
14674 #
14675 # Set default font directory
14676 #
14677
14678
14679 # Check whether --with-default-fonts was given.
14680 if test "${with_default_fonts+set}" = set; then :
14681 withval=$with_default_fonts; default_fonts="$withval"
14682 else
14683 default_fonts=yes
14684 fi
14685
14686
14687 case "$default_fonts" in
14688 yes)
14689 if test "$os_win32" = "yes"; then
14690 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
14691
14692 cat >>confdefs.h <<_ACEOF
14693 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
14694 _ACEOF
14695
14696 else
14697 FC_DEFAULT_FONTS="/usr/share/fonts"
14698
14699 cat >>confdefs.h <<_ACEOF
14700 #define FC_DEFAULT_FONTS "/usr/share/fonts"
14701 _ACEOF
14702
14703 fi
14704 ;;
14705 *)
14706 FC_DEFAULT_FONTS="$default_fonts"
14707
14708 cat >>confdefs.h <<_ACEOF
14709 #define FC_DEFAULT_FONTS "$default_fonts"
14710 _ACEOF
14711
14712 ;;
14713 esac
14714
14715
14716
14717 #
14718 # Add more fonts if available. By default, add only the directories
14719 # with outline fonts; those with bitmaps can be added as desired in
14720 # local.conf or ~/.fonts.conf
14721 #
14722
14723 # Check whether --with-add-fonts was given.
14724 if test "${with_add_fonts+set}" = set; then :
14725 withval=$with_add_fonts; add_fonts="$withval"
14726 else
14727 add_fonts=yes
14728 fi
14729
14730
14731 case "$add_fonts" in
14732 yes)
14733 FC_ADD_FONTS=""
14734 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
14735 case x"$FC_ADD_FONTS" in
14736 x)
14737 sub="$dir/fonts"
14738 if test -d "$sub"; then
14739 case x$FC_ADD_FONTS in
14740 x)
14741 FC_ADD_FONTS="$sub"
14742 ;;
14743 *)
14744 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
14745 ;;
14746 esac
14747 fi
14748 ;;
14749 esac
14750 done
14751
14752 cat >>confdefs.h <<_ACEOF
14753 #define FC_ADD_FONTS "$add_fonts"
14754 _ACEOF
14755
14756 ;;
14757 no)
14758 FC_ADD_FONTS=""
14759 ;;
14760 *)
14761 FC_ADD_FONTS="$add_fonts"
14762
14763 cat >>confdefs.h <<_ACEOF
14764 #define FC_ADD_FONTS "$add_fonts"
14765 _ACEOF
14766
14767 ;;
14768 esac
14769
14770
14771
14772 FC_FONTPATH=""
14773
14774 case "$FC_ADD_FONTS" in
14775 "")
14776 ;;
14777 *)
14778 FC_FONTPATH=`echo $FC_ADD_FONTS |
14779 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
14780 ;;
14781 esac
14782
14783
14784
14785 #
14786 # Set default cache directory path
14787 #
14788
14789 # Check whether --with-cache-dir was given.
14790 if test "${with_cache_dir+set}" = set; then :
14791 withval=$with_cache_dir; fc_cachedir="$withval"
14792 else
14793 fc_cachedir=yes
14794 fi
14795
14796
14797 case $fc_cachedir in
14798 no|yes)
14799 if test "$os_win32" = "yes"; then
14800 fc_cachedir="WINDOWSTEMPDIR_FONTCONFIG_CACHE"
14801 else
14802 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
14803 fi
14804 ;;
14805 *)
14806 ;;
14807 esac
14808
14809 FC_CACHEDIR=${fc_cachedir}
14810
14811
14812 FC_FONTDATE=`LC_ALL=C date`
14813
14814
14815
14816 #
14817 # Set configuration paths
14818 #
14819
14820
14821 # Check whether --with-templatedir was given.
14822 if test "${with_templatedir+set}" = set; then :
14823 withval=$with_templatedir; templatedir="$withval"
14824 else
14825 templatedir=yes
14826 fi
14827
14828
14829 # Check whether --with-baseconfigdir was given.
14830 if test "${with_baseconfigdir+set}" = set; then :
14831 withval=$with_baseconfigdir; baseconfigdir="$withval"
14832 else
14833 baseconfigdir=yes
14834 fi
14835
14836
14837 # Check whether --with-configdir was given.
14838 if test "${with_configdir+set}" = set; then :
14839 withval=$with_configdir; configdir="$withval"
14840 else
14841 configdir=yes
14842 fi
14843
14844
14845 # Check whether --with-xmldir was given.
14846 if test "${with_xmldir+set}" = set; then :
14847 withval=$with_xmldir; xmldir="$withval"
14848 else
14849 xmldir=yes
14850 fi
14851
14852
14853 case "$templatedir" in
14854 no|yes)
14855 templatedir='${datadir}'/fontconfig/conf.avail
14856 ;;
14857 *)
14858 ;;
14859 esac
14860 case "$baseconfigdir" in
14861 no|yes)
14862 baseconfigdir='${sysconfdir}'/fonts
14863 ;;
14864 *)
14865 ;;
14866 esac
14867 case "$configdir" in
14868 no|yes)
14869 configdir='${BASECONFIGDIR}'/conf.d
14870 ;;
14871 *)
14872 ;;
14873 esac
14874 case "$xmldir" in
14875 no|yes)
14876 xmldir='${datadir}'/xml/fontconfig
14877 ;;
14878 *)
14879 ;;
14880 esac
14881
14882 TEMPLATEDIR=${templatedir}
14883 BASECONFIGDIR=${baseconfigdir}
14884 CONFIGDIR=${configdir}
14885 XMLDIR=${xmldir}
14886
14887
14888
14889
14890
14891
14892
14893 #
14894 # Thread-safety primitives
14895 #
14896
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
14898 $as_echo_n "checking for Intel atomic primitives... " >&6; }
14899 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
14900 $as_echo_n "(cached) " >&6
14901 else
14902
14903 fc_cv_have_intel_atomic_primitives=false
14904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14905 /* end confdefs.h. */
14906
14907 void memory_barrier (void) { __sync_synchronize (); }
14908 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
14909 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
14910 void mutex_unlock (int *m) { __sync_lock_release (m); }
14911
14912 int
14913 main ()
14914 {
14915
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 if ac_fn_c_try_link "$LINENO"; then :
14921 fc_cv_have_intel_atomic_primitives=true
14922
14923 fi
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926
14927 fi
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
14929 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
14930 if $fc_cv_have_intel_atomic_primitives; then
14931
14932 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
14933
14934 fi
14935
14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
14937 $as_echo_n "checking for Solaris atomic operations... " >&6; }
14938 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
14939 $as_echo_n "(cached) " >&6
14940 else
14941
14942 fc_cv_have_solaris_atomic_ops=false
14943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14944 /* end confdefs.h. */
14945
14946 #include <atomic.h>
14947 /* This requires Solaris Studio 12.2 or newer: */
14948 #include <mbarrier.h>
14949 void memory_barrier (void) { __machine_rw_barrier (); }
14950 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
14951 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
14952
14953 int
14954 main ()
14955 {
14956
14957 ;
14958 return 0;
14959 }
14960 _ACEOF
14961 if ac_fn_c_try_link "$LINENO"; then :
14962 fc_cv_have_solaris_atomic_ops=true
14963
14964 fi
14965 rm -f core conftest.err conftest.$ac_objext \
14966 conftest$ac_exeext conftest.$ac_ext
14967
14968 fi
14969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
14970 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
14971 if $fc_cv_have_solaris_atomic_ops; then
14972
14973 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
14974
14975 fi
14976
14977 if test "$os_win32" = no && ! $have_pthread; then
14978 for ac_header in sched.h
14979 do :
14980 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
14981 if test "x$ac_cv_header_sched_h" = xyes; then :
14982 cat >>confdefs.h <<_ACEOF
14983 #define HAVE_SCHED_H 1
14984 _ACEOF
14985
14986 fi
14987
14988 done
14989
14990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
14991 $as_echo_n "checking for library containing sched_yield... " >&6; }
14992 if ${ac_cv_search_sched_yield+:} false; then :
14993 $as_echo_n "(cached) " >&6
14994 else
14995 ac_func_search_save_LIBS=$LIBS
14996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14997 /* end confdefs.h. */
14998
14999 /* Override any GCC internal prototype to avoid an error.
15000 Use char because int might match the return type of a GCC
15001 builtin and then its argument prototype would still apply. */
15002 #ifdef __cplusplus
15003 extern "C"
15004 #endif
15005 char sched_yield ();
15006 int
15007 main ()
15008 {
15009 return sched_yield ();
15010 ;
15011 return 0;
15012 }
15013 _ACEOF
15014 for ac_lib in '' rt; do
15015 if test -z "$ac_lib"; then
15016 ac_res="none required"
15017 else
15018 ac_res=-l$ac_lib
15019 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15020 fi
15021 if ac_fn_c_try_link "$LINENO"; then :
15022 ac_cv_search_sched_yield=$ac_res
15023 fi
15024 rm -f core conftest.err conftest.$ac_objext \
15025 conftest$ac_exeext
15026 if ${ac_cv_search_sched_yield+:} false; then :
15027 break
15028 fi
15029 done
15030 if ${ac_cv_search_sched_yield+:} false; then :
15031
15032 else
15033 ac_cv_search_sched_yield=no
15034 fi
15035 rm conftest.$ac_ext
15036 LIBS=$ac_func_search_save_LIBS
15037 fi
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15039 $as_echo "$ac_cv_search_sched_yield" >&6; }
15040 ac_res=$ac_cv_search_sched_yield
15041 if test "$ac_res" != no; then :
15042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15043
15044 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
15045
15046 fi
15047
15048 fi
15049
15050 have_pthread=false
15051 if test "$os_win32" = no; then
15052
15053
15054 ac_ext=c
15055 ac_cpp='$CPP $CPPFLAGS'
15056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15059
15060 ax_pthread_ok=no
15061
15062 # We used to check for pthread.h first, but this fails if pthread.h
15063 # requires special compiler flags (e.g. on True64 or Sequent).
15064 # It gets checked for in the link test anyway.
15065
15066 # First of all, check if the user has set any of the PTHREAD_LIBS,
15067 # etcetera environment variables, and if threads linking works using
15068 # them:
15069 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15070 save_CFLAGS="$CFLAGS"
15071 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15072 save_LIBS="$LIBS"
15073 LIBS="$PTHREAD_LIBS $LIBS"
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15075 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15078
15079 /* Override any GCC internal prototype to avoid an error.
15080 Use char because int might match the return type of a GCC
15081 builtin and then its argument prototype would still apply. */
15082 #ifdef __cplusplus
15083 extern "C"
15084 #endif
15085 char pthread_join ();
15086 int
15087 main ()
15088 {
15089 return pthread_join ();
15090 ;
15091 return 0;
15092 }
15093 _ACEOF
15094 if ac_fn_c_try_link "$LINENO"; then :
15095 ax_pthread_ok=yes
15096 fi
15097 rm -f core conftest.err conftest.$ac_objext \
15098 conftest$ac_exeext conftest.$ac_ext
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15100 $as_echo "$ax_pthread_ok" >&6; }
15101 if test x"$ax_pthread_ok" = xno; then
15102 PTHREAD_LIBS=""
15103 PTHREAD_CFLAGS=""
15104 fi
15105 LIBS="$save_LIBS"
15106 CFLAGS="$save_CFLAGS"
15107 fi
15108
15109 # We must check for the threads library under a number of different
15110 # names; the ordering is very important because some systems
15111 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
15112 # libraries is broken (non-POSIX).
15113
15114 # Create a list of thread flags to try. Items starting with a "-" are
15115 # C compiler flags, and other items are library names, except for "none"
15116 # which indicates that we try without any flags at all, and "pthread-config"
15117 # which is a program returning the flags for the Pth emulation library.
15118
15119 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
15120
15121 # The ordering *is* (sometimes) important. Some notes on the
15122 # individual items follow:
15123
15124 # pthreads: AIX (must check this before -lpthread)
15125 # none: in case threads are in libc; should be tried before -Kthread and
15126 # other compiler flags to prevent continual compiler warnings
15127 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
15128 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
15129 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
15130 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
15131 # -pthreads: Solaris/gcc
15132 # -mthreads: Mingw32/gcc, Lynx/gcc
15133 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
15134 # doesn't hurt to check since this sometimes defines pthreads too;
15135 # also defines -D_REENTRANT)
15136 # ... -mt is also the pthreads flag for HP/aCC
15137 # pthread: Linux, etcetera
15138 # --thread-safe: KAI C++
15139 # pthread-config: use pthread-config program (for GNU Pth library)
15140
15141 case ${host_os} in
15142 solaris*)
15143
15144 # On Solaris (at least, for some versions), libc contains stubbed
15145 # (non-functional) versions of the pthreads routines, so link-based
15146 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
15147 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
15148 # a function called by this macro, so we could check for that, but
15149 # who knows whether they'll stub that too in a future libc.) So,
15150 # we'll just look for -pthreads and -lpthread first:
15151
15152 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
15153 ;;
15154
15155 darwin*)
15156 ax_pthread_flags="-pthread $ax_pthread_flags"
15157 ;;
15158 esac
15159
15160 if test x"$ax_pthread_ok" = xno; then
15161 for flag in $ax_pthread_flags; do
15162
15163 case $flag in
15164 none)
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
15166 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
15167 ;;
15168
15169 -*)
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
15171 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
15172 PTHREAD_CFLAGS="$flag"
15173 ;;
15174
15175 pthread-config)
15176 # Extract the first word of "pthread-config", so it can be a program name with args.
15177 set dummy pthread-config; ac_word=$2
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15179 $as_echo_n "checking for $ac_word... " >&6; }
15180 if ${ac_cv_prog_ax_pthread_config+:} false; then :
15181 $as_echo_n "(cached) " >&6
15182 else
15183 if test -n "$ax_pthread_config"; then
15184 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
15185 else
15186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15187 for as_dir in $PATH
15188 do
15189 IFS=$as_save_IFS
15190 test -z "$as_dir" && as_dir=.
15191 for ac_exec_ext in '' $ac_executable_extensions; do
15192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15193 ac_cv_prog_ax_pthread_config="yes"
15194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15195 break 2
15196 fi
15197 done
15198 done
15199 IFS=$as_save_IFS
15200
15201 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
15202 fi
15203 fi
15204 ax_pthread_config=$ac_cv_prog_ax_pthread_config
15205 if test -n "$ax_pthread_config"; then
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
15207 $as_echo "$ax_pthread_config" >&6; }
15208 else
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15210 $as_echo "no" >&6; }
15211 fi
15212
15213
15214 if test x"$ax_pthread_config" = xno; then continue; fi
15215 PTHREAD_CFLAGS="`pthread-config --cflags`"
15216 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
15217 ;;
15218
15219 *)
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
15221 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
15222 PTHREAD_LIBS="-l$flag"
15223 ;;
15224 esac
15225
15226 save_LIBS="$LIBS"
15227 save_CFLAGS="$CFLAGS"
15228 LIBS="$PTHREAD_LIBS $LIBS"
15229 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15230
15231 # Check for various functions. We must include pthread.h,
15232 # since some functions may be macros. (On the Sequent, we
15233 # need a special flag -Kthread to make this header compile.)
15234 # We check for pthread_join because it is in -lpthread on IRIX
15235 # while pthread_create is in libc. We check for pthread_attr_init
15236 # due to DEC craziness with -lpthreads. We check for
15237 # pthread_cleanup_push because it is one of the few pthread
15238 # functions on Solaris that doesn't have a non-functional libc stub.
15239 # We try pthread_create on general principles.
15240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15241 /* end confdefs.h. */
15242 #include <pthread.h>
15243 static void routine(void *a) { a = 0; }
15244 static void *start_routine(void *a) { return a; }
15245 int
15246 main ()
15247 {
15248 pthread_t th; pthread_attr_t attr;
15249 pthread_create(&th, 0, start_routine, 0);
15250 pthread_join(th, 0);
15251 pthread_attr_init(&attr);
15252 pthread_cleanup_push(routine, 0);
15253 pthread_cleanup_pop(0) /* ; */
15254 ;
15255 return 0;
15256 }
15257 _ACEOF
15258 if ac_fn_c_try_link "$LINENO"; then :
15259 ax_pthread_ok=yes
15260 fi
15261 rm -f core conftest.err conftest.$ac_objext \
15262 conftest$ac_exeext conftest.$ac_ext
15263
15264 LIBS="$save_LIBS"
15265 CFLAGS="$save_CFLAGS"
15266
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15268 $as_echo "$ax_pthread_ok" >&6; }
15269 if test "x$ax_pthread_ok" = xyes; then
15270 break;
15271 fi
15272
15273 PTHREAD_LIBS=""
15274 PTHREAD_CFLAGS=""
15275 done
15276 fi
15277
15278 # Various other checks:
15279 if test "x$ax_pthread_ok" = xyes; then
15280 save_LIBS="$LIBS"
15281 LIBS="$PTHREAD_LIBS $LIBS"
15282 save_CFLAGS="$CFLAGS"
15283 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15284
15285 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
15287 $as_echo_n "checking for joinable pthread attribute... " >&6; }
15288 attr_name=unknown
15289 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <pthread.h>
15293 int
15294 main ()
15295 {
15296 int attr = $attr; return attr /* ; */
15297 ;
15298 return 0;
15299 }
15300 _ACEOF
15301 if ac_fn_c_try_link "$LINENO"; then :
15302 attr_name=$attr; break
15303 fi
15304 rm -f core conftest.err conftest.$ac_objext \
15305 conftest$ac_exeext conftest.$ac_ext
15306 done
15307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
15308 $as_echo "$attr_name" >&6; }
15309 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
15310
15311 cat >>confdefs.h <<_ACEOF
15312 #define PTHREAD_CREATE_JOINABLE $attr_name
15313 _ACEOF
15314
15315 fi
15316
15317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
15318 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
15319 flag=no
15320 case ${host_os} in
15321 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
15322 osf* | hpux*) flag="-D_REENTRANT";;
15323 solaris*)
15324 if test "$GCC" = "yes"; then
15325 flag="-D_REENTRANT"
15326 else
15327 flag="-mt -D_REENTRANT"
15328 fi
15329 ;;
15330 esac
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
15332 $as_echo "${flag}" >&6; }
15333 if test "x$flag" != xno; then
15334 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
15335 fi
15336
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
15338 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
15339 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
15340 $as_echo_n "(cached) " >&6
15341 else
15342
15343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15344 /* end confdefs.h. */
15345
15346 #include <pthread.h>
15347 int
15348 main ()
15349 {
15350 int i = PTHREAD_PRIO_INHERIT;
15351 ;
15352 return 0;
15353 }
15354 _ACEOF
15355 if ac_fn_c_try_link "$LINENO"; then :
15356 ax_cv_PTHREAD_PRIO_INHERIT=yes
15357 else
15358 ax_cv_PTHREAD_PRIO_INHERIT=no
15359 fi
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362
15363 fi
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
15365 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
15366 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
15367
15368 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
15369
15370 fi
15371
15372 LIBS="$save_LIBS"
15373 CFLAGS="$save_CFLAGS"
15374
15375 # More AIX lossage: must compile with xlc_r or cc_r
15376 if test x"$GCC" != xyes; then
15377 for ac_prog in xlc_r cc_r
15378 do
15379 # Extract the first word of "$ac_prog", so it can be a program name with args.
15380 set dummy $ac_prog; ac_word=$2
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15382 $as_echo_n "checking for $ac_word... " >&6; }
15383 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
15384 $as_echo_n "(cached) " >&6
15385 else
15386 if test -n "$PTHREAD_CC"; then
15387 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
15388 else
15389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15390 for as_dir in $PATH
15391 do
15392 IFS=$as_save_IFS
15393 test -z "$as_dir" && as_dir=.
15394 for ac_exec_ext in '' $ac_executable_extensions; do
15395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15396 ac_cv_prog_PTHREAD_CC="$ac_prog"
15397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15398 break 2
15399 fi
15400 done
15401 done
15402 IFS=$as_save_IFS
15403
15404 fi
15405 fi
15406 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
15407 if test -n "$PTHREAD_CC"; then
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
15409 $as_echo "$PTHREAD_CC" >&6; }
15410 else
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15412 $as_echo "no" >&6; }
15413 fi
15414
15415
15416 test -n "$PTHREAD_CC" && break
15417 done
15418 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
15419
15420 else
15421 PTHREAD_CC=$CC
15422 fi
15423 else
15424 PTHREAD_CC="$CC"
15425 fi
15426
15427
15428
15429
15430
15431 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
15432 if test x"$ax_pthread_ok" = xyes; then
15433 have_pthread=true
15434 :
15435 else
15436 ax_pthread_ok=no
15437
15438 fi
15439 ac_ext=c
15440 ac_cpp='$CPP $CPPFLAGS'
15441 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15442 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15443 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15444
15445
15446 fi
15447 if $have_pthread; then
15448 LIBS="$PTHREAD_LIBS $LIBS"
15449 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15450 CC="$PTHREAD_CC"
15451
15452 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
15453
15454 fi
15455 if $have_pthread; then
15456 HAVE_PTHREAD_TRUE=
15457 HAVE_PTHREAD_FALSE='#'
15458 else
15459 HAVE_PTHREAD_TRUE='#'
15460 HAVE_PTHREAD_FALSE=
15461 fi
15462
15463
15464
15465
15466 #
15467 # Let people not build/install docs if they don't have docbook
15468 #
15469
15470 # Extract the first word of "docbook2html", so it can be a program name with args.
15471 set dummy docbook2html; ac_word=$2
15472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15473 $as_echo_n "checking for $ac_word... " >&6; }
15474 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
15475 $as_echo_n "(cached) " >&6
15476 else
15477 if test -n "$HASDOCBOOK"; then
15478 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
15479 else
15480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15481 for as_dir in $PATH
15482 do
15483 IFS=$as_save_IFS
15484 test -z "$as_dir" && as_dir=.
15485 for ac_exec_ext in '' $ac_executable_extensions; do
15486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15487 ac_cv_prog_HASDOCBOOK="yes"
15488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15489 break 2
15490 fi
15491 done
15492 done
15493 IFS=$as_save_IFS
15494
15495 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
15496 fi
15497 fi
15498 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
15499 if test -n "$HASDOCBOOK"; then
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
15501 $as_echo "$HASDOCBOOK" >&6; }
15502 else
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15504 $as_echo "no" >&6; }
15505 fi
15506
15507
15508
15509 if test "x$HASDOCBOOK" = xyes; then
15510 USEDOCBOOK_TRUE=
15511 USEDOCBOOK_FALSE='#'
15512 else
15513 USEDOCBOOK_TRUE='#'
15514 USEDOCBOOK_FALSE=
15515 fi
15516
15517
15518 default_docs="yes"
15519 #
15520 # Check if docs exist or can be created
15521 #
15522 if test x$HASDOCBOOK = xno; then
15523 if test -f $srcdir/doc/fonts-conf.5; then
15524 :
15525 else
15526 default_docs="no"
15527 fi
15528 fi
15529
15530 # Check whether --enable-docs was given.
15531 if test "${enable_docs+set}" = set; then :
15532 enableval=$enable_docs;
15533 else
15534 enable_docs=$default_docs
15535 fi
15536
15537
15538 if test "x$enable_docs" = xyes; then
15539 ENABLE_DOCS_TRUE=
15540 ENABLE_DOCS_FALSE='#'
15541 else
15542 ENABLE_DOCS_TRUE='#'
15543 ENABLE_DOCS_FALSE=
15544 fi
15545
15546
15547 if test "x$enable_docs" = xyes; then
15548 tmp=funcs.$$
15549 cat $srcdir/doc/*.fncs | awk '
15550 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
15551 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
15552 /^@@/ { done = 0; }' > $tmp
15553 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
15554 echo DOCMAN3 $DOCMAN3
15555 rm -f $tmp
15556 else
15557 DOCMAN3=""
15558 fi
15559
15560
15561
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
15563 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
15564 if ${ac_cv_c_bigendian+:} false; then :
15565 $as_echo_n "(cached) " >&6
15566 else
15567 ac_cv_c_bigendian=unknown
15568 # See if we're dealing with a universal compiler.
15569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15570 /* end confdefs.h. */
15571 #ifndef __APPLE_CC__
15572 not a universal capable compiler
15573 #endif
15574 typedef int dummy;
15575
15576 _ACEOF
15577 if ac_fn_c_try_compile "$LINENO"; then :
15578
15579 # Check for potential -arch flags. It is not universal unless
15580 # there are at least two -arch flags with different values.
15581 ac_arch=
15582 ac_prev=
15583 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15584 if test -n "$ac_prev"; then
15585 case $ac_word in
15586 i?86 | x86_64 | ppc | ppc64)
15587 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15588 ac_arch=$ac_word
15589 else
15590 ac_cv_c_bigendian=universal
15591 break
15592 fi
15593 ;;
15594 esac
15595 ac_prev=
15596 elif test "x$ac_word" = "x-arch"; then
15597 ac_prev=arch
15598 fi
15599 done
15600 fi
15601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15602 if test $ac_cv_c_bigendian = unknown; then
15603 # See if sys/param.h defines the BYTE_ORDER macro.
15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15605 /* end confdefs.h. */
15606 #include <sys/types.h>
15607 #include <sys/param.h>
15608
15609 int
15610 main ()
15611 {
15612 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15613 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15614 && LITTLE_ENDIAN)
15615 bogus endian macros
15616 #endif
15617
15618 ;
15619 return 0;
15620 }
15621 _ACEOF
15622 if ac_fn_c_try_compile "$LINENO"; then :
15623 # It does; now see whether it defined to BIG_ENDIAN or not.
15624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15625 /* end confdefs.h. */
15626 #include <sys/types.h>
15627 #include <sys/param.h>
15628
15629 int
15630 main ()
15631 {
15632 #if BYTE_ORDER != BIG_ENDIAN
15633 not big endian
15634 #endif
15635
15636 ;
15637 return 0;
15638 }
15639 _ACEOF
15640 if ac_fn_c_try_compile "$LINENO"; then :
15641 ac_cv_c_bigendian=yes
15642 else
15643 ac_cv_c_bigendian=no
15644 fi
15645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15646 fi
15647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15648 fi
15649 if test $ac_cv_c_bigendian = unknown; then
15650 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15652 /* end confdefs.h. */
15653 #include <limits.h>
15654
15655 int
15656 main ()
15657 {
15658 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15659 bogus endian macros
15660 #endif
15661
15662 ;
15663 return 0;
15664 }
15665 _ACEOF
15666 if ac_fn_c_try_compile "$LINENO"; then :
15667 # It does; now see whether it defined to _BIG_ENDIAN or not.
15668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15669 /* end confdefs.h. */
15670 #include <limits.h>
15671
15672 int
15673 main ()
15674 {
15675 #ifndef _BIG_ENDIAN
15676 not big endian
15677 #endif
15678
15679 ;
15680 return 0;
15681 }
15682 _ACEOF
15683 if ac_fn_c_try_compile "$LINENO"; then :
15684 ac_cv_c_bigendian=yes
15685 else
15686 ac_cv_c_bigendian=no
15687 fi
15688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15689 fi
15690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15691 fi
15692 if test $ac_cv_c_bigendian = unknown; then
15693 # Compile a test program.
15694 if test "$cross_compiling" = yes; then :
15695 # Try to guess by grepping values from an object file.
15696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15697 /* end confdefs.h. */
15698 short int ascii_mm[] =
15699 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15700 short int ascii_ii[] =
15701 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15702 int use_ascii (int i) {
15703 return ascii_mm[i] + ascii_ii[i];
15704 }
15705 short int ebcdic_ii[] =
15706 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15707 short int ebcdic_mm[] =
15708 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15709 int use_ebcdic (int i) {
15710 return ebcdic_mm[i] + ebcdic_ii[i];
15711 }
15712 extern int foo;
15713
15714 int
15715 main ()
15716 {
15717 return use_ascii (foo) == use_ebcdic (foo);
15718 ;
15719 return 0;
15720 }
15721 _ACEOF
15722 if ac_fn_c_try_compile "$LINENO"; then :
15723 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15724 ac_cv_c_bigendian=yes
15725 fi
15726 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15727 if test "$ac_cv_c_bigendian" = unknown; then
15728 ac_cv_c_bigendian=no
15729 else
15730 # finding both strings is unlikely to happen, but who knows?
15731 ac_cv_c_bigendian=unknown
15732 fi
15733 fi
15734 fi
15735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15736 else
15737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15738 /* end confdefs.h. */
15739 $ac_includes_default
15740 int
15741 main ()
15742 {
15743
15744 /* Are we little or big endian? From Harbison&Steele. */
15745 union
15746 {
15747 long int l;
15748 char c[sizeof (long int)];
15749 } u;
15750 u.l = 1;
15751 return u.c[sizeof (long int) - 1] == 1;
15752
15753 ;
15754 return 0;
15755 }
15756 _ACEOF
15757 if ac_fn_c_try_run "$LINENO"; then :
15758 ac_cv_c_bigendian=no
15759 else
15760 ac_cv_c_bigendian=yes
15761 fi
15762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15763 conftest.$ac_objext conftest.beam conftest.$ac_ext
15764 fi
15765
15766 fi
15767 fi
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
15769 $as_echo "$ac_cv_c_bigendian" >&6; }
15770 case $ac_cv_c_bigendian in #(
15771 yes)
15772 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
15773 ;; #(
15774 no)
15775 ;; #(
15776 universal)
15777
15778 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15779
15780 ;; #(
15781 *)
15782 as_fn_error $? "unknown endianness
15783 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
15784 esac
15785
15786 # The cast to long int works around a bug in the HP C Compiler
15787 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15788 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15789 # This bug is HP SR number 8606223364.
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15791 $as_echo_n "checking size of void *... " >&6; }
15792 if ${ac_cv_sizeof_void_p+:} false; then :
15793 $as_echo_n "(cached) " >&6
15794 else
15795 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15796
15797 else
15798 if test "$ac_cv_type_void_p" = yes; then
15799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15801 as_fn_error 77 "cannot compute sizeof (void *)
15802 See \`config.log' for more details" "$LINENO" 5; }
15803 else
15804 ac_cv_sizeof_void_p=0
15805 fi
15806 fi
15807
15808 fi
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15810 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15811
15812
15813
15814 cat >>confdefs.h <<_ACEOF
15815 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15816 _ACEOF
15817
15818
15819 # The cast to long int works around a bug in the HP C Compiler,
15820 # see AC_CHECK_SIZEOF for more information.
15821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
15822 $as_echo_n "checking alignment of double... " >&6; }
15823 if ${ac_cv_alignof_double+:} false; then :
15824 $as_echo_n "(cached) " >&6
15825 else
15826 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
15827 #ifndef offsetof
15828 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
15829 #endif
15830 typedef struct { char x; double y; } ac__type_alignof_;"; then :
15831
15832 else
15833 if test "$ac_cv_type_double" = yes; then
15834 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15836 as_fn_error 77 "cannot compute alignment of double
15837 See \`config.log' for more details" "$LINENO" 5; }
15838 else
15839 ac_cv_alignof_double=0
15840 fi
15841 fi
15842
15843 fi
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
15845 $as_echo "$ac_cv_alignof_double" >&6; }
15846
15847
15848
15849 cat >>confdefs.h <<_ACEOF
15850 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
15851 _ACEOF
15852
15853
15854
15855
15856
15857
15858
15859
15860 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-case/Makefile src/Makefile conf.d/Makefile fc-cache/Makefile fc-cat/Makefile fc-list/Makefile fc-match/Makefile fc-pattern/Makefile fc-query/Makefile fc-scan/Makefile fc-validate/Makefile doc/Makefile doc/version.sgml test/Makefile fontconfig.spec fontconfig.pc fontconfig-zip"
15861
15862 cat >confcache <<\_ACEOF
15863 # This file is a shell script that caches the results of configure
15864 # tests run on this system so they can be shared between configure
15865 # scripts and configure runs, see configure's option --config-cache.
15866 # It is not useful on other systems. If it contains results you don't
15867 # want to keep, you may remove or edit it.
15868 #
15869 # config.status only pays attention to the cache file if you give it
15870 # the --recheck option to rerun configure.
15871 #
15872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15874 # following values.
15875
15876 _ACEOF
15877
15878 # The following way of writing the cache mishandles newlines in values,
15879 # but we know of no workaround that is simple, portable, and efficient.
15880 # So, we kill variables containing newlines.
15881 # Ultrix sh set writes to stderr and can't be redirected directly,
15882 # and sets the high bit in the cache file unless we assign to the vars.
15883 (
15884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15885 eval ac_val=\$$ac_var
15886 case $ac_val in #(
15887 *${as_nl}*)
15888 case $ac_var in #(
15889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15890 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15891 esac
15892 case $ac_var in #(
15893 _ | IFS | as_nl) ;; #(
15894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15895 *) { eval $ac_var=; unset $ac_var;} ;;
15896 esac ;;
15897 esac
15898 done
15899
15900 (set) 2>&1 |
15901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15902 *${as_nl}ac_space=\ *)
15903 # `set' does not quote correctly, so add quotes: double-quote
15904 # substitution turns \\\\ into \\, and sed turns \\ into \.
15905 sed -n \
15906 "s/'/'\\\\''/g;
15907 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15908 ;; #(
15909 *)
15910 # `set' quotes correctly as required by POSIX, so do not add quotes.
15911 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15912 ;;
15913 esac |
15914 sort
15915 ) |
15916 sed '
15917 /^ac_cv_env_/b end
15918 t clear
15919 :clear
15920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15921 t end
15922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15923 :end' >>confcache
15924 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15925 if test -w "$cache_file"; then
15926 if test "x$cache_file" != "x/dev/null"; then
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15928 $as_echo "$as_me: updating cache $cache_file" >&6;}
15929 if test ! -f "$cache_file" || test -h "$cache_file"; then
15930 cat confcache >"$cache_file"
15931 else
15932 case $cache_file in #(
15933 */* | ?:*)
15934 mv -f confcache "$cache_file"$$ &&
15935 mv -f "$cache_file"$$ "$cache_file" ;; #(
15936 *)
15937 mv -f confcache "$cache_file" ;;
15938 esac
15939 fi
15940 fi
15941 else
15942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15943 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15944 fi
15945 fi
15946 rm -f confcache
15947
15948 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15949 # Let make expand exec_prefix.
15950 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15951
15952 DEFS=-DHAVE_CONFIG_H
15953
15954 ac_libobjs=
15955 ac_ltlibobjs=
15956 U=
15957 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15958 # 1. Remove the extension, and $U if already installed.
15959 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15960 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15961 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15962 # will be set to the directory where LIBOBJS objects are built.
15963 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15964 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15965 done
15966 LIBOBJS=$ac_libobjs
15967
15968 LTLIBOBJS=$ac_ltlibobjs
15969
15970
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
15972 $as_echo_n "checking that generated files are newer than configure... " >&6; }
15973 if test -n "$am_sleep_pid"; then
15974 # Hide warnings about reused PIDs.
15975 wait $am_sleep_pid 2>/dev/null
15976 fi
15977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
15978 $as_echo "done" >&6; }
15979 if test -n "$EXEEXT"; then
15980 am__EXEEXT_TRUE=
15981 am__EXEEXT_FALSE='#'
15982 else
15983 am__EXEEXT_TRUE='#'
15984 am__EXEEXT_FALSE=
15985 fi
15986
15987 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
15988 as_fn_error $? "conditional \"AMDEP\" was never defined.
15989 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15990 fi
15991 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
15992 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
15993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15994 fi
15995 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
15996 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
15997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
15998 fi
15999 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
16000 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
16001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16002 fi
16003 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16004 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16006 fi
16007 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
16008 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
16009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16010 fi
16011 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
16012 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
16013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16014 fi
16015 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
16016 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
16017 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16018 fi
16019 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
16020 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
16021 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16022 fi
16023
16024
16025 : "${CONFIG_STATUS=./config.status}"
16026 ac_write_fail=0
16027 ac_clean_files_save=$ac_clean_files
16028 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16030 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
16031 as_write_fail=0
16032 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
16033 #! $SHELL
16034 # Generated by $as_me.
16035 # Run this file to recreate the current configuration.
16036 # Compiler output produced by configure, useful for debugging
16037 # configure, is in config.log if it exists.
16038
16039 debug=false
16040 ac_cs_recheck=false
16041 ac_cs_silent=false
16042
16043 SHELL=\${CONFIG_SHELL-$SHELL}
16044 export SHELL
16045 _ASEOF
16046 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16047 ## -------------------- ##
16048 ## M4sh Initialization. ##
16049 ## -------------------- ##
16050
16051 # Be more Bourne compatible
16052 DUALCASE=1; export DUALCASE # for MKS sh
16053 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16054 emulate sh
16055 NULLCMD=:
16056 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
16057 # is contrary to our usage. Disable this feature.
16058 alias -g '${1+"$@"}'='"$@"'
16059 setopt NO_GLOB_SUBST
16060 else
16061 case `(set -o) 2>/dev/null` in #(
16062 *posix*) :
16063 set -o posix ;; #(
16064 *) :
16065 ;;
16066 esac
16067 fi
16068
16069
16070 as_nl='
16071 '
16072 export as_nl
16073 # Printing a long string crashes Solaris 7 /usr/bin/printf.
16074 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
16075 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
16076 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
16077 # Prefer a ksh shell builtin over an external printf program on Solaris,
16078 # but without wasting forks for bash or zsh.
16079 if test -z "$BASH_VERSION$ZSH_VERSION" \
16080 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
16081 as_echo='print -r --'
16082 as_echo_n='print -rn --'
16083 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
16084 as_echo='printf %s\n'
16085 as_echo_n='printf %s'
16086 else
16087 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
16088 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
16089 as_echo_n='/usr/ucb/echo -n'
16090 else
16091 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
16092 as_echo_n_body='eval
16093 arg=$1;
16094 case $arg in #(
16095 *"$as_nl"*)
16096 expr "X$arg" : "X\\(.*\\)$as_nl";
16097 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
16098 esac;
16099 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
16100 '
16101 export as_echo_n_body
16102 as_echo_n='sh -c $as_echo_n_body as_echo'
16103 fi
16104 export as_echo_body
16105 as_echo='sh -c $as_echo_body as_echo'
16106 fi
16107
16108 # The user is always right.
16109 if test "${PATH_SEPARATOR+set}" != set; then
16110 PATH_SEPARATOR=:
16111 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16112 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16113 PATH_SEPARATOR=';'
16114 }
16115 fi
16116
16117
16118 # IFS
16119 # We need space, tab and new line, in precisely that order. Quoting is
16120 # there to prevent editors from complaining about space-tab.
16121 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
16122 # splitting by setting IFS to empty value.)
16123 IFS=" "" $as_nl"
16124
16125 # Find who we are. Look in the path if we contain no directory separator.
16126 as_myself=
16127 case $0 in #((
16128 *[\\/]* ) as_myself=$0 ;;
16129 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16131 do
16132 IFS=$as_save_IFS
16133 test -z "$as_dir" && as_dir=.
16134 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
16135 done
16136 IFS=$as_save_IFS
16137
16138 ;;
16139 esac
16140 # We did not find ourselves, most probably we were run as `sh COMMAND'
16141 # in which case we are not to be found in the path.
16142 if test "x$as_myself" = x; then
16143 as_myself=$0
16144 fi
16145 if test ! -f "$as_myself"; then
16146 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
16147 exit 1
16148 fi
16149
16150 # Unset variables that we do not need and which cause bugs (e.g. in
16151 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
16152 # suppresses any "Segmentation fault" message there. '((' could
16153 # trigger a bug in pdksh 5.2.14.
16154 for as_var in BASH_ENV ENV MAIL MAILPATH
16155 do eval test x\${$as_var+set} = xset \
16156 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16157 done
16158 PS1='$ '
16159 PS2='> '
16160 PS4='+ '
16161
16162 # NLS nuisances.
16163 LC_ALL=C
16164 export LC_ALL
16165 LANGUAGE=C
16166 export LANGUAGE
16167
16168 # CDPATH.
16169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16170
16171
16172 # as_fn_error STATUS ERROR [LINENO LOG_FD]
16173 # ----------------------------------------
16174 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16175 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16176 # script with STATUS, using 1 if that was 0.
16177 as_fn_error ()
16178 {
16179 as_status=$1; test $as_status -eq 0 && as_status=1
16180 if test "$4"; then
16181 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
16182 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
16183 fi
16184 $as_echo "$as_me: error: $2" >&2
16185 as_fn_exit $as_status
16186 } # as_fn_error
16187
16188
16189 # as_fn_set_status STATUS
16190 # -----------------------
16191 # Set $? to STATUS, without forking.
16192 as_fn_set_status ()
16193 {
16194 return $1
16195 } # as_fn_set_status
16196
16197 # as_fn_exit STATUS
16198 # -----------------
16199 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16200 as_fn_exit ()
16201 {
16202 set +e
16203 as_fn_set_status $1
16204 exit $1
16205 } # as_fn_exit
16206
16207 # as_fn_unset VAR
16208 # ---------------
16209 # Portably unset VAR.
16210 as_fn_unset ()
16211 {
16212 { eval $1=; unset $1;}
16213 }
16214 as_unset=as_fn_unset
16215 # as_fn_append VAR VALUE
16216 # ----------------------
16217 # Append the text in VALUE to the end of the definition contained in VAR. Take
16218 # advantage of any shell optimizations that allow amortized linear growth over
16219 # repeated appends, instead of the typical quadratic growth present in naive
16220 # implementations.
16221 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
16222 eval 'as_fn_append ()
16223 {
16224 eval $1+=\$2
16225 }'
16226 else
16227 as_fn_append ()
16228 {
16229 eval $1=\$$1\$2
16230 }
16231 fi # as_fn_append
16232
16233 # as_fn_arith ARG...
16234 # ------------------
16235 # Perform arithmetic evaluation on the ARGs, and store the result in the
16236 # global $as_val. Take advantage of shells that can avoid forks. The arguments
16237 # must be portable across $(()) and expr.
16238 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
16239 eval 'as_fn_arith ()
16240 {
16241 as_val=$(( $* ))
16242 }'
16243 else
16244 as_fn_arith ()
16245 {
16246 as_val=`expr "$@" || test $? -eq 1`
16247 }
16248 fi # as_fn_arith
16249
16250
16251 if expr a : '\(a\)' >/dev/null 2>&1 &&
16252 test "X`expr 00001 : '.*\(...\)'`" = X001; then
16253 as_expr=expr
16254 else
16255 as_expr=false
16256 fi
16257
16258 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
16259 as_basename=basename
16260 else
16261 as_basename=false
16262 fi
16263
16264 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16265 as_dirname=dirname
16266 else
16267 as_dirname=false
16268 fi
16269
16270 as_me=`$as_basename -- "$0" ||
16271 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16272 X"$0" : 'X\(//\)$' \| \
16273 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
16274 $as_echo X/"$0" |
16275 sed '/^.*\/\([^/][^/]*\)\/*$/{
16276 s//\1/
16277 q
16278 }
16279 /^X\/\(\/\/\)$/{
16280 s//\1/
16281 q
16282 }
16283 /^X\/\(\/\).*/{
16284 s//\1/
16285 q
16286 }
16287 s/.*/./; q'`
16288
16289 # Avoid depending upon Character Ranges.
16290 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16291 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16292 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16293 as_cr_digits='0123456789'
16294 as_cr_alnum=$as_cr_Letters$as_cr_digits
16295
16296 ECHO_C= ECHO_N= ECHO_T=
16297 case `echo -n x` in #(((((
16298 -n*)
16299 case `echo 'xy\c'` in
16300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
16301 xy) ECHO_C='\c';;
16302 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16303 ECHO_T=' ';;
16304 esac;;
16305 *)
16306 ECHO_N='-n';;
16307 esac
16308
16309 rm -f conf$$ conf$$.exe conf$$.file
16310 if test -d conf$$.dir; then
16311 rm -f conf$$.dir/conf$$.file
16312 else
16313 rm -f conf$$.dir
16314 mkdir conf$$.dir 2>/dev/null
16315 fi
16316 if (echo >conf$$.file) 2>/dev/null; then
16317 if ln -s conf$$.file conf$$ 2>/dev/null; then
16318 as_ln_s='ln -s'
16319 # ... but there are two gotchas:
16320 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16321 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
16322 # In both cases, we have to default to `cp -pR'.
16323 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
16324 as_ln_s='cp -pR'
16325 elif ln conf$$.file conf$$ 2>/dev/null; then
16326 as_ln_s=ln
16327 else
16328 as_ln_s='cp -pR'
16329 fi
16330 else
16331 as_ln_s='cp -pR'
16332 fi
16333 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16334 rmdir conf$$.dir 2>/dev/null
16335
16336
16337 # as_fn_mkdir_p
16338 # -------------
16339 # Create "$as_dir" as a directory, including parents if necessary.
16340 as_fn_mkdir_p ()
16341 {
16342
16343 case $as_dir in #(
16344 -*) as_dir=./$as_dir;;
16345 esac
16346 test -d "$as_dir" || eval $as_mkdir_p || {
16347 as_dirs=
16348 while :; do
16349 case $as_dir in #(
16350 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
16351 *) as_qdir=$as_dir;;
16352 esac
16353 as_dirs="'$as_qdir' $as_dirs"
16354 as_dir=`$as_dirname -- "$as_dir" ||
16355 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16356 X"$as_dir" : 'X\(//\)[^/]' \| \
16357 X"$as_dir" : 'X\(//\)$' \| \
16358 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
16359 $as_echo X"$as_dir" |
16360 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16361 s//\1/
16362 q
16363 }
16364 /^X\(\/\/\)[^/].*/{
16365 s//\1/
16366 q
16367 }
16368 /^X\(\/\/\)$/{
16369 s//\1/
16370 q
16371 }
16372 /^X\(\/\).*/{
16373 s//\1/
16374 q
16375 }
16376 s/.*/./; q'`
16377 test -d "$as_dir" && break
16378 done
16379 test -z "$as_dirs" || eval "mkdir $as_dirs"
16380 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
16381
16382
16383 } # as_fn_mkdir_p
16384 if mkdir -p . 2>/dev/null; then
16385 as_mkdir_p='mkdir -p "$as_dir"'
16386 else
16387 test -d ./-p && rmdir ./-p
16388 as_mkdir_p=false
16389 fi
16390
16391
16392 # as_fn_executable_p FILE
16393 # -----------------------
16394 # Test if FILE is an executable regular file.
16395 as_fn_executable_p ()
16396 {
16397 test -f "$1" && test -x "$1"
16398 } # as_fn_executable_p
16399 as_test_x='test -x'
16400 as_executable_p=as_fn_executable_p
16401
16402 # Sed expression to map a string onto a valid CPP name.
16403 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16404
16405 # Sed expression to map a string onto a valid variable name.
16406 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16407
16408
16409 exec 6>&1
16410 ## ----------------------------------- ##
16411 ## Main body of $CONFIG_STATUS script. ##
16412 ## ----------------------------------- ##
16413 _ASEOF
16414 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
16415
16416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417 # Save the log message, to keep $0 and so on meaningful, and to
16418 # report actual input values of CONFIG_FILES etc. instead of their
16419 # values after options handling.
16420 ac_log="
16421 This file was extended by fontconfig $as_me 2.11.0, which was
16422 generated by GNU Autoconf 2.69. Invocation command line was
16423
16424 CONFIG_FILES = $CONFIG_FILES
16425 CONFIG_HEADERS = $CONFIG_HEADERS
16426 CONFIG_LINKS = $CONFIG_LINKS
16427 CONFIG_COMMANDS = $CONFIG_COMMANDS
16428 $ $0 $@
16429
16430 on `(hostname || uname -n) 2>/dev/null | sed 1q`
16431 "
16432
16433 _ACEOF
16434
16435 case $ac_config_files in *"
16436 "*) set x $ac_config_files; shift; ac_config_files=$*;;
16437 esac
16438
16439 case $ac_config_headers in *"
16440 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16441 esac
16442
16443
16444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16445 # Files that config.status was made for.
16446 config_files="$ac_config_files"
16447 config_headers="$ac_config_headers"
16448 config_commands="$ac_config_commands"
16449
16450 _ACEOF
16451
16452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16453 ac_cs_usage="\
16454 \`$as_me' instantiates files and other configuration actions
16455 from templates according to the current configuration. Unless the files
16456 and actions are specified as TAGs, all are instantiated by default.
16457
16458 Usage: $0 [OPTION]... [TAG]...
16459
16460 -h, --help print this help, then exit
16461 -V, --version print version number and configuration settings, then exit
16462 --config print configuration, then exit
16463 -q, --quiet, --silent
16464 do not print progress messages
16465 -d, --debug don't remove temporary files
16466 --recheck update $as_me by reconfiguring in the same conditions
16467 --file=FILE[:TEMPLATE]
16468 instantiate the configuration file FILE
16469 --header=FILE[:TEMPLATE]
16470 instantiate the configuration header FILE
16471
16472 Configuration files:
16473 $config_files
16474
16475 Configuration headers:
16476 $config_headers
16477
16478 Configuration commands:
16479 $config_commands
16480
16481 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
16482
16483 _ACEOF
16484 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16485 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16486 ac_cs_version="\\
16487 fontconfig config.status 2.11.0
16488 configured by $0, generated by GNU Autoconf 2.69,
16489 with options \\"\$ac_cs_config\\"
16490
16491 Copyright (C) 2012 Free Software Foundation, Inc.
16492 This config.status script is free software; the Free Software Foundation
16493 gives unlimited permission to copy, distribute and modify it."
16494
16495 ac_pwd='$ac_pwd'
16496 srcdir='$srcdir'
16497 INSTALL='$INSTALL'
16498 MKDIR_P='$MKDIR_P'
16499 AWK='$AWK'
16500 test -n "\$AWK" || AWK=awk
16501 _ACEOF
16502
16503 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16504 # The default lists apply if the user does not specify any file.
16505 ac_need_defaults=:
16506 while test $# != 0
16507 do
16508 case $1 in
16509 --*=?*)
16510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16511 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16512 ac_shift=:
16513 ;;
16514 --*=)
16515 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16516 ac_optarg=
16517 ac_shift=:
16518 ;;
16519 *)
16520 ac_option=$1
16521 ac_optarg=$2
16522 ac_shift=shift
16523 ;;
16524 esac
16525
16526 case $ac_option in
16527 # Handling of the options.
16528 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16529 ac_cs_recheck=: ;;
16530 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16531 $as_echo "$ac_cs_version"; exit ;;
16532 --config | --confi | --conf | --con | --co | --c )
16533 $as_echo "$ac_cs_config"; exit ;;
16534 --debug | --debu | --deb | --de | --d | -d )
16535 debug=: ;;
16536 --file | --fil | --fi | --f )
16537 $ac_shift
16538 case $ac_optarg in
16539 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16540 '') as_fn_error $? "missing file argument" ;;
16541 esac
16542 as_fn_append CONFIG_FILES " '$ac_optarg'"
16543 ac_need_defaults=false;;
16544 --header | --heade | --head | --hea )
16545 $ac_shift
16546 case $ac_optarg in
16547 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16548 esac
16549 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16550 ac_need_defaults=false;;
16551 --he | --h)
16552 # Conflict between --help and --header
16553 as_fn_error $? "ambiguous option: \`$1'
16554 Try \`$0 --help' for more information.";;
16555 --help | --hel | -h )
16556 $as_echo "$ac_cs_usage"; exit ;;
16557 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16558 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16559 ac_cs_silent=: ;;
16560
16561 # This is an error.
16562 -*) as_fn_error $? "unrecognized option: \`$1'
16563 Try \`$0 --help' for more information." ;;
16564
16565 *) as_fn_append ac_config_targets " $1"
16566 ac_need_defaults=false ;;
16567
16568 esac
16569 shift
16570 done
16571
16572 ac_configure_extra_args=
16573
16574 if $ac_cs_silent; then
16575 exec 6>/dev/null
16576 ac_configure_extra_args="$ac_configure_extra_args --silent"
16577 fi
16578
16579 _ACEOF
16580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16581 if \$ac_cs_recheck; then
16582 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16583 shift
16584 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16585 CONFIG_SHELL='$SHELL'
16586 export CONFIG_SHELL
16587 exec "\$@"
16588 fi
16589
16590 _ACEOF
16591 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16592 exec 5>>config.log
16593 {
16594 echo
16595 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16596 ## Running $as_me. ##
16597 _ASBOX
16598 $as_echo "$ac_log"
16599 } >&5
16600
16601 _ACEOF
16602 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16603 #
16604 # INIT-COMMANDS
16605 #
16606 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
16607
16608
16609 # The HP-UX ksh and POSIX shell print the target directory to stdout
16610 # if CDPATH is set.
16611 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
16612
16613 sed_quote_subst='$sed_quote_subst'
16614 double_quote_subst='$double_quote_subst'
16615 delay_variable_subst='$delay_variable_subst'
16616 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
16617 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
16618 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
16619 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
16620 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
16621 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
16622 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
16623 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
16624 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
16625 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
16626 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
16627 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
16628 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
16629 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
16630 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
16631 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
16632 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
16633 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
16634 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
16635 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
16636 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
16637 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
16638 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
16639 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
16640 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
16641 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
16642 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
16643 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
16644 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
16645 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
16646 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
16647 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
16648 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
16649 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
16650 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
16651 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
16652 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
16653 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
16654 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
16655 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
16656 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
16657 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
16658 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
16659 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
16660 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
16661 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
16662 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16663 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16664 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
16665 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
16666 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
16667 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
16668 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
16669 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
16670 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
16671 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
16672 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
16673 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"`'
16674 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
16675 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
16676 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
16677 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
16678 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
16679 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
16680 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
16681 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
16682 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
16683 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
16684 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
16685 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
16686 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
16687 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
16688 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
16689 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
16690 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
16691 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
16692 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16693 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
16694 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
16695 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
16696 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
16697 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
16698 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
16699 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
16700 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
16701 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16702 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
16703 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
16704 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
16705 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
16706 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
16707 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
16708 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
16709 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
16710 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
16711 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
16712 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
16713 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
16714 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
16715 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
16716 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
16717 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
16718 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
16719 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
16720 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
16721 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
16722 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
16723 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
16724 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
16725 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
16726 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
16727 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
16728 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
16729 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
16730 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
16731 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
16732 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
16733 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
16734 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
16735 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
16736 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
16737 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
16738 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
16739 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
16740 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
16741 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
16742 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
16743 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
16744 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
16745 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
16746 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
16747
16748 LTCC='$LTCC'
16749 LTCFLAGS='$LTCFLAGS'
16750 compiler='$compiler_DEFAULT'
16751
16752 # A function that is used when there is no print builtin or printf.
16753 func_fallback_echo ()
16754 {
16755 eval 'cat <<_LTECHO_EOF
16756 \$1
16757 _LTECHO_EOF'
16758 }
16759
16760 # Quote evaled strings.
16761 for var in AS \
16762 DLLTOOL \
16763 OBJDUMP \
16764 SHELL \
16765 ECHO \
16766 PATH_SEPARATOR \
16767 SED \
16768 GREP \
16769 EGREP \
16770 FGREP \
16771 LD \
16772 NM \
16773 LN_S \
16774 lt_SP2NL \
16775 lt_NL2SP \
16776 reload_flag \
16777 deplibs_check_method \
16778 file_magic_cmd \
16779 file_magic_glob \
16780 want_nocaseglob \
16781 sharedlib_from_linklib_cmd \
16782 AR \
16783 AR_FLAGS \
16784 archiver_list_spec \
16785 STRIP \
16786 RANLIB \
16787 CC \
16788 CFLAGS \
16789 compiler \
16790 lt_cv_sys_global_symbol_pipe \
16791 lt_cv_sys_global_symbol_to_cdecl \
16792 lt_cv_sys_global_symbol_to_c_name_address \
16793 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
16794 nm_file_list_spec \
16795 lt_prog_compiler_no_builtin_flag \
16796 lt_prog_compiler_pic \
16797 lt_prog_compiler_wl \
16798 lt_prog_compiler_static \
16799 lt_cv_prog_compiler_c_o \
16800 need_locks \
16801 MANIFEST_TOOL \
16802 DSYMUTIL \
16803 NMEDIT \
16804 LIPO \
16805 OTOOL \
16806 OTOOL64 \
16807 shrext_cmds \
16808 export_dynamic_flag_spec \
16809 whole_archive_flag_spec \
16810 compiler_needs_object \
16811 with_gnu_ld \
16812 allow_undefined_flag \
16813 no_undefined_flag \
16814 hardcode_libdir_flag_spec \
16815 hardcode_libdir_separator \
16816 exclude_expsyms \
16817 include_expsyms \
16818 file_list_spec \
16819 variables_saved_for_relink \
16820 libname_spec \
16821 library_names_spec \
16822 soname_spec \
16823 install_override_mode \
16824 finish_eval \
16825 old_striplib \
16826 striplib; do
16827 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16828 *[\\\\\\\`\\"\\\$]*)
16829 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
16830 ;;
16831 *)
16832 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16833 ;;
16834 esac
16835 done
16836
16837 # Double-quote double-evaled strings.
16838 for var in reload_cmds \
16839 old_postinstall_cmds \
16840 old_postuninstall_cmds \
16841 old_archive_cmds \
16842 extract_expsyms_cmds \
16843 old_archive_from_new_cmds \
16844 old_archive_from_expsyms_cmds \
16845 archive_cmds \
16846 archive_expsym_cmds \
16847 module_cmds \
16848 module_expsym_cmds \
16849 export_symbols_cmds \
16850 prelink_cmds \
16851 postlink_cmds \
16852 postinstall_cmds \
16853 postuninstall_cmds \
16854 finish_cmds \
16855 sys_lib_search_path_spec \
16856 sys_lib_dlsearch_path_spec; do
16857 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
16858 *[\\\\\\\`\\"\\\$]*)
16859 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
16860 ;;
16861 *)
16862 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
16863 ;;
16864 esac
16865 done
16866
16867 ac_aux_dir='$ac_aux_dir'
16868 xsi_shell='$xsi_shell'
16869 lt_shell_append='$lt_shell_append'
16870
16871 # See if we are running on zsh, and set the options which allow our
16872 # commands through without removal of \ escapes INIT.
16873 if test -n "\${ZSH_VERSION+set}" ; then
16874 setopt NO_GLOB_SUBST
16875 fi
16876
16877
16878 PACKAGE='$PACKAGE'
16879 VERSION='$VERSION'
16880 TIMESTAMP='$TIMESTAMP'
16881 RM='$RM'
16882 ofile='$ofile'
16883
16884
16885
16886 # variables for create stdint.h replacement
16887 PACKAGE="$PACKAGE"
16888 VERSION="$VERSION"
16889 ac_stdint_h="$ac_stdint_h"
16890 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
16891 ac_cv_stdint_message="$ac_cv_stdint_message"
16892 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
16893 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
16894 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
16895 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
16896 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
16897 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
16898 ac_cv_char_data_model="$ac_cv_char_data_model"
16899 ac_cv_long_data_model="$ac_cv_long_data_model"
16900 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
16901 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
16902 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
16903
16904
16905 _ACEOF
16906
16907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16908
16909 # Handling of arguments.
16910 for ac_config_target in $ac_config_targets
16911 do
16912 case $ac_config_target in
16913 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
16914 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
16915 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
16916 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
16917 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
16918 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
16919 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
16920 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
16921 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
16922 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
16923 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
16924 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
16925 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
16926 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
16927 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
16928 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
16929 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
16930 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
16931 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
16932 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
16933 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
16934 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
16935 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
16936 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
16937 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
16938
16939 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16940 esac
16941 done
16942
16943
16944 # If the user did not use the arguments to specify the items to instantiate,
16945 # then the envvar interface is used. Set only those that are not.
16946 # We use the long form for the default assignment because of an extremely
16947 # bizarre bug on SunOS 4.1.3.
16948 if $ac_need_defaults; then
16949 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16950 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16951 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
16952 fi
16953
16954 # Have a temporary directory for convenience. Make it in the build tree
16955 # simply because there is no reason against having it here, and in addition,
16956 # creating and moving files from /tmp can sometimes cause problems.
16957 # Hook for its removal unless debugging.
16958 # Note that there is a small window in which the directory will not be cleaned:
16959 # after its creation but before its name has been assigned to `$tmp'.
16960 $debug ||
16961 {
16962 tmp= ac_tmp=
16963 trap 'exit_status=$?
16964 : "${ac_tmp:=$tmp}"
16965 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16966 ' 0
16967 trap 'as_fn_exit 1' 1 2 13 15
16968 }
16969 # Create a (secure) tmp directory for tmp files.
16970
16971 {
16972 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16973 test -d "$tmp"
16974 } ||
16975 {
16976 tmp=./conf$$-$RANDOM
16977 (umask 077 && mkdir "$tmp")
16978 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16979 ac_tmp=$tmp
16980
16981 # Set up the scripts for CONFIG_FILES section.
16982 # No need to generate them if there are no CONFIG_FILES.
16983 # This happens for instance with `./config.status config.h'.
16984 if test -n "$CONFIG_FILES"; then
16985
16986
16987 ac_cr=`echo X | tr X '\015'`
16988 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16989 # But we know of no other shell where ac_cr would be empty at this
16990 # point, so we can use a bashism as a fallback.
16991 if test "x$ac_cr" = x; then
16992 eval ac_cr=\$\'\\r\'
16993 fi
16994 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16995 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16996 ac_cs_awk_cr='\\r'
16997 else
16998 ac_cs_awk_cr=$ac_cr
16999 fi
17000
17001 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17002 _ACEOF
17003
17004
17005 {
17006 echo "cat >conf$$subs.awk <<_ACEOF" &&
17007 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17008 echo "_ACEOF"
17009 } >conf$$subs.sh ||
17010 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17011 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
17012 ac_delim='%!_!# '
17013 for ac_last_try in false false false false false :; do
17014 . ./conf$$subs.sh ||
17015 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17016
17017 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17018 if test $ac_delim_n = $ac_delim_num; then
17019 break
17020 elif $ac_last_try; then
17021 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17022 else
17023 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17024 fi
17025 done
17026 rm -f conf$$subs.sh
17027
17028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17029 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
17030 _ACEOF
17031 sed -n '
17032 h
17033 s/^/S["/; s/!.*/"]=/
17034 p
17035 g
17036 s/^[^!]*!//
17037 :repl
17038 t repl
17039 s/'"$ac_delim"'$//
17040 t delim
17041 :nl
17042 h
17043 s/\(.\{148\}\)..*/\1/
17044 t more1
17045 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17046 p
17047 n
17048 b repl
17049 :more1
17050 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17051 p
17052 g
17053 s/.\{148\}//
17054 t nl
17055 :delim
17056 h
17057 s/\(.\{148\}\)..*/\1/
17058 t more2
17059 s/["\\]/\\&/g; s/^/"/; s/$/"/
17060 p
17061 b
17062 :more2
17063 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17064 p
17065 g
17066 s/.\{148\}//
17067 t delim
17068 ' <conf$$subs.awk | sed '
17069 /^[^""]/{
17070 N
17071 s/\n//
17072 }
17073 ' >>$CONFIG_STATUS || ac_write_fail=1
17074 rm -f conf$$subs.awk
17075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17076 _ACAWK
17077 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
17078 for (key in S) S_is_set[key] = 1
17079 FS = ""
17080
17081 }
17082 {
17083 line = $ 0
17084 nfields = split(line, field, "@")
17085 substed = 0
17086 len = length(field[1])
17087 for (i = 2; i < nfields; i++) {
17088 key = field[i]
17089 keylen = length(key)
17090 if (S_is_set[key]) {
17091 value = S[key]
17092 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17093 len += length(value) + length(field[++i])
17094 substed = 1
17095 } else
17096 len += 1 + keylen
17097 }
17098
17099 print line
17100 }
17101
17102 _ACAWK
17103 _ACEOF
17104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17105 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17106 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17107 else
17108 cat
17109 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17110 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
17111 _ACEOF
17112
17113 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17114 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
17115 # trailing colons and then remove the whole line if VPATH becomes empty
17116 # (actually we leave an empty line to preserve line numbers).
17117 if test "x$srcdir" = x.; then
17118 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17119 h
17120 s///
17121 s/^/:/
17122 s/[ ]*$/:/
17123 s/:\$(srcdir):/:/g
17124 s/:\${srcdir}:/:/g
17125 s/:@srcdir@:/:/g
17126 s/^:*//
17127 s/:*$//
17128 x
17129 s/\(=[ ]*\).*/\1/
17130 G
17131 s/\n//
17132 s/^[^=]*=[ ]*$//
17133 }'
17134 fi
17135
17136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17137 fi # test -n "$CONFIG_FILES"
17138
17139 # Set up the scripts for CONFIG_HEADERS section.
17140 # No need to generate them if there are no CONFIG_HEADERS.
17141 # This happens for instance with `./config.status Makefile'.
17142 if test -n "$CONFIG_HEADERS"; then
17143 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
17144 BEGIN {
17145 _ACEOF
17146
17147 # Transform confdefs.h into an awk script `defines.awk', embedded as
17148 # here-document in config.status, that substitutes the proper values into
17149 # config.h.in to produce config.h.
17150
17151 # Create a delimiter string that does not exist in confdefs.h, to ease
17152 # handling of long lines.
17153 ac_delim='%!_!# '
17154 for ac_last_try in false false :; do
17155 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17156 if test -z "$ac_tt"; then
17157 break
17158 elif $ac_last_try; then
17159 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
17160 else
17161 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17162 fi
17163 done
17164
17165 # For the awk script, D is an array of macro values keyed by name,
17166 # likewise P contains macro parameters if any. Preserve backslash
17167 # newline sequences.
17168
17169 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17170 sed -n '
17171 s/.\{148\}/&'"$ac_delim"'/g
17172 t rset
17173 :rset
17174 s/^[ ]*#[ ]*define[ ][ ]*/ /
17175 t def
17176 d
17177 :def
17178 s/\\$//
17179 t bsnl
17180 s/["\\]/\\&/g
17181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17182 D["\1"]=" \3"/p
17183 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17184 d
17185 :bsnl
17186 s/["\\]/\\&/g
17187 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17188 D["\1"]=" \3\\\\\\n"\\/p
17189 t cont
17190 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17191 t cont
17192 d
17193 :cont
17194 n
17195 s/.\{148\}/&'"$ac_delim"'/g
17196 t clear
17197 :clear
17198 s/\\$//
17199 t bsnlc
17200 s/["\\]/\\&/g; s/^/"/; s/$/"/p
17201 d
17202 :bsnlc
17203 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17204 b cont
17205 ' <confdefs.h | sed '
17206 s/'"$ac_delim"'/"\\\
17207 "/g' >>$CONFIG_STATUS || ac_write_fail=1
17208
17209 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17210 for (key in D) D_is_set[key] = 1
17211 FS = ""
17212 }
17213 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17214 line = \$ 0
17215 split(line, arg, " ")
17216 if (arg[1] == "#") {
17217 defundef = arg[2]
17218 mac1 = arg[3]
17219 } else {
17220 defundef = substr(arg[1], 2)
17221 mac1 = arg[2]
17222 }
17223 split(mac1, mac2, "(") #)
17224 macro = mac2[1]
17225 prefix = substr(line, 1, index(line, defundef) - 1)
17226 if (D_is_set[macro]) {
17227 # Preserve the white space surrounding the "#".
17228 print prefix "define", macro P[macro] D[macro]
17229 next
17230 } else {
17231 # Replace #undef with comments. This is necessary, for example,
17232 # in the case of _POSIX_SOURCE, which is predefined and required
17233 # on some systems where configure will not decide to define it.
17234 if (defundef == "undef") {
17235 print "/*", prefix defundef, macro, "*/"
17236 next
17237 }
17238 }
17239 }
17240 { print }
17241 _ACAWK
17242 _ACEOF
17243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17244 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
17245 fi # test -n "$CONFIG_HEADERS"
17246
17247
17248 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
17249 shift
17250 for ac_tag
17251 do
17252 case $ac_tag in
17253 :[FHLC]) ac_mode=$ac_tag; continue;;
17254 esac
17255 case $ac_mode$ac_tag in
17256 :[FHL]*:*);;
17257 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
17258 :[FH]-) ac_tag=-:-;;
17259 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17260 esac
17261 ac_save_IFS=$IFS
17262 IFS=:
17263 set x $ac_tag
17264 IFS=$ac_save_IFS
17265 shift
17266 ac_file=$1
17267 shift
17268
17269 case $ac_mode in
17270 :L) ac_source=$1;;
17271 :[FH])
17272 ac_file_inputs=
17273 for ac_f
17274 do
17275 case $ac_f in
17276 -) ac_f="$ac_tmp/stdin";;
17277 *) # Look for the file first in the build tree, then in the source tree
17278 # (if the path is not absolute). The absolute path cannot be DOS-style,
17279 # because $ac_f cannot contain `:'.
17280 test -f "$ac_f" ||
17281 case $ac_f in
17282 [\\/$]*) false;;
17283 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17284 esac ||
17285 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
17286 esac
17287 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
17288 as_fn_append ac_file_inputs " '$ac_f'"
17289 done
17290
17291 # Let's still pretend it is `configure' which instantiates (i.e., don't
17292 # use $as_me), people would be surprised to read:
17293 # /* config.h. Generated by config.status. */
17294 configure_input='Generated from '`
17295 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
17296 `' by configure.'
17297 if test x"$ac_file" != x-; then
17298 configure_input="$ac_file. $configure_input"
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17300 $as_echo "$as_me: creating $ac_file" >&6;}
17301 fi
17302 # Neutralize special characters interpreted by sed in replacement strings.
17303 case $configure_input in #(
17304 *\&* | *\|* | *\\* )
17305 ac_sed_conf_input=`$as_echo "$configure_input" |
17306 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17307 *) ac_sed_conf_input=$configure_input;;
17308 esac
17309
17310 case $ac_tag in
17311 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17312 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
17313 esac
17314 ;;
17315 esac
17316
17317 ac_dir=`$as_dirname -- "$ac_file" ||
17318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17319 X"$ac_file" : 'X\(//\)[^/]' \| \
17320 X"$ac_file" : 'X\(//\)$' \| \
17321 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
17322 $as_echo X"$ac_file" |
17323 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17324 s//\1/
17325 q
17326 }
17327 /^X\(\/\/\)[^/].*/{
17328 s//\1/
17329 q
17330 }
17331 /^X\(\/\/\)$/{
17332 s//\1/
17333 q
17334 }
17335 /^X\(\/\).*/{
17336 s//\1/
17337 q
17338 }
17339 s/.*/./; q'`
17340 as_dir="$ac_dir"; as_fn_mkdir_p
17341 ac_builddir=.
17342
17343 case "$ac_dir" in
17344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17345 *)
17346 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
17347 # A ".." for each directory in $ac_dir_suffix.
17348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
17349 case $ac_top_builddir_sub in
17350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17352 esac ;;
17353 esac
17354 ac_abs_top_builddir=$ac_pwd
17355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
17356 # for backward compatibility:
17357 ac_top_builddir=$ac_top_build_prefix
17358
17359 case $srcdir in
17360 .) # We are building in place.
17361 ac_srcdir=.
17362 ac_top_srcdir=$ac_top_builddir_sub
17363 ac_abs_top_srcdir=$ac_pwd ;;
17364 [\\/]* | ?:[\\/]* ) # Absolute name.
17365 ac_srcdir=$srcdir$ac_dir_suffix;
17366 ac_top_srcdir=$srcdir
17367 ac_abs_top_srcdir=$srcdir ;;
17368 *) # Relative name.
17369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17370 ac_top_srcdir=$ac_top_build_prefix$srcdir
17371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
17372 esac
17373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
17374
17375
17376 case $ac_mode in
17377 :F)
17378 #
17379 # CONFIG_FILE
17380 #
17381
17382 case $INSTALL in
17383 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
17384 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
17385 esac
17386 ac_MKDIR_P=$MKDIR_P
17387 case $MKDIR_P in
17388 [\\/$]* | ?:[\\/]* ) ;;
17389 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17390 esac
17391 _ACEOF
17392
17393 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17394 # If the template does not know about datarootdir, expand it.
17395 # FIXME: This hack should be removed a few years after 2.60.
17396 ac_datarootdir_hack=; ac_datarootdir_seen=
17397 ac_sed_dataroot='
17398 /datarootdir/ {
17399 p
17400 q
17401 }
17402 /@datadir@/p
17403 /@docdir@/p
17404 /@infodir@/p
17405 /@localedir@/p
17406 /@mandir@/p'
17407 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
17408 *datarootdir*) ac_datarootdir_seen=yes;;
17409 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17411 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
17412 _ACEOF
17413 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17414 ac_datarootdir_hack='
17415 s&@datadir@&$datadir&g
17416 s&@docdir@&$docdir&g
17417 s&@infodir@&$infodir&g
17418 s&@localedir@&$localedir&g
17419 s&@mandir@&$mandir&g
17420 s&\\\${datarootdir}&$datarootdir&g' ;;
17421 esac
17422 _ACEOF
17423
17424 # Neutralize VPATH when `$srcdir' = `.'.
17425 # Shell code in configure.ac might set extrasub.
17426 # FIXME: do we really want to maintain this feature?
17427 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17428 ac_sed_extra="$ac_vpsub
17429 $extrasub
17430 _ACEOF
17431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17432 :t
17433 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
17434 s|@configure_input@|$ac_sed_conf_input|;t t
17435 s&@top_builddir@&$ac_top_builddir_sub&;t t
17436 s&@top_build_prefix@&$ac_top_build_prefix&;t t
17437 s&@srcdir@&$ac_srcdir&;t t
17438 s&@abs_srcdir@&$ac_abs_srcdir&;t t
17439 s&@top_srcdir@&$ac_top_srcdir&;t t
17440 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17441 s&@builddir@&$ac_builddir&;t t
17442 s&@abs_builddir@&$ac_abs_builddir&;t t
17443 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17444 s&@INSTALL@&$ac_INSTALL&;t t
17445 s&@MKDIR_P@&$ac_MKDIR_P&;t t
17446 $ac_datarootdir_hack
17447 "
17448 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17449 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17450
17451 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
17452 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17453 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17454 "$ac_tmp/out"`; test -z "$ac_out"; } &&
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17456 which seems to be undefined. Please make sure it is defined" >&5
17457 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
17458 which seems to be undefined. Please make sure it is defined" >&2;}
17459
17460 rm -f "$ac_tmp/stdin"
17461 case $ac_file in
17462 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17463 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
17464 esac \
17465 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17466 ;;
17467 :H)
17468 #
17469 # CONFIG_HEADER
17470 #
17471 if test x"$ac_file" != x-; then
17472 {
17473 $as_echo "/* $configure_input */" \
17474 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17475 } >"$ac_tmp/config.h" \
17476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17477 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17479 $as_echo "$as_me: $ac_file is unchanged" >&6;}
17480 else
17481 rm -f "$ac_file"
17482 mv "$ac_tmp/config.h" "$ac_file" \
17483 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17484 fi
17485 else
17486 $as_echo "/* $configure_input */" \
17487 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17488 || as_fn_error $? "could not create -" "$LINENO" 5
17489 fi
17490 # Compute "$ac_file"'s index in $config_headers.
17491 _am_arg="$ac_file"
17492 _am_stamp_count=1
17493 for _am_header in $config_headers :; do
17494 case $_am_header in
17495 $_am_arg | $_am_arg:* )
17496 break ;;
17497 * )
17498 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
17499 esac
17500 done
17501 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
17502 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17503 X"$_am_arg" : 'X\(//\)[^/]' \| \
17504 X"$_am_arg" : 'X\(//\)$' \| \
17505 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
17506 $as_echo X"$_am_arg" |
17507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17508 s//\1/
17509 q
17510 }
17511 /^X\(\/\/\)[^/].*/{
17512 s//\1/
17513 q
17514 }
17515 /^X\(\/\/\)$/{
17516 s//\1/
17517 q
17518 }
17519 /^X\(\/\).*/{
17520 s//\1/
17521 q
17522 }
17523 s/.*/./; q'`/stamp-h$_am_stamp_count
17524 ;;
17525
17526 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17527 $as_echo "$as_me: executing $ac_file commands" >&6;}
17528 ;;
17529 esac
17530
17531
17532 case $ac_file$ac_mode in
17533 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
17534 # Older Autoconf quotes --file arguments for eval, but not when files
17535 # are listed without --file. Let's play safe and only enable the eval
17536 # if we detect the quoting.
17537 case $CONFIG_FILES in
17538 *\'*) eval set x "$CONFIG_FILES" ;;
17539 *) set x $CONFIG_FILES ;;
17540 esac
17541 shift
17542 for mf
17543 do
17544 # Strip MF so we end up with the name of the file.
17545 mf=`echo "$mf" | sed -e 's/:.*$//'`
17546 # Check whether this is an Automake generated Makefile or not.
17547 # We used to match only the files named 'Makefile.in', but
17548 # some people rename them; so instead we look at the file content.
17549 # Grep'ing the first line is not enough: some people post-process
17550 # each Makefile.in and add a new line on top of each file to say so.
17551 # Grep'ing the whole file is not good either: AIX grep has a line
17552 # limit of 2048, but all sed's we know have understand at least 4000.
17553 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
17554 dirpart=`$as_dirname -- "$mf" ||
17555 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17556 X"$mf" : 'X\(//\)[^/]' \| \
17557 X"$mf" : 'X\(//\)$' \| \
17558 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
17559 $as_echo X"$mf" |
17560 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17561 s//\1/
17562 q
17563 }
17564 /^X\(\/\/\)[^/].*/{
17565 s//\1/
17566 q
17567 }
17568 /^X\(\/\/\)$/{
17569 s//\1/
17570 q
17571 }
17572 /^X\(\/\).*/{
17573 s//\1/
17574 q
17575 }
17576 s/.*/./; q'`
17577 else
17578 continue
17579 fi
17580 # Extract the definition of DEPDIR, am__include, and am__quote
17581 # from the Makefile without running 'make'.
17582 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
17583 test -z "$DEPDIR" && continue
17584 am__include=`sed -n 's/^am__include = //p' < "$mf"`
17585 test -z "$am__include" && continue
17586 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
17587 # Find all dependency output files, they are included files with
17588 # $(DEPDIR) in their names. We invoke sed twice because it is the
17589 # simplest approach to changing $(DEPDIR) to its actual value in the
17590 # expansion.
17591 for file in `sed -n "
17592 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
17593 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
17594 # Make sure the directory exists.
17595 test -f "$dirpart/$file" && continue
17596 fdir=`$as_dirname -- "$file" ||
17597 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17598 X"$file" : 'X\(//\)[^/]' \| \
17599 X"$file" : 'X\(//\)$' \| \
17600 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
17601 $as_echo X"$file" |
17602 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17603 s//\1/
17604 q
17605 }
17606 /^X\(\/\/\)[^/].*/{
17607 s//\1/
17608 q
17609 }
17610 /^X\(\/\/\)$/{
17611 s//\1/
17612 q
17613 }
17614 /^X\(\/\).*/{
17615 s//\1/
17616 q
17617 }
17618 s/.*/./; q'`
17619 as_dir=$dirpart/$fdir; as_fn_mkdir_p
17620 # echo "creating $dirpart/$file"
17621 echo '# dummy' > "$dirpart/$file"
17622 done
17623 done
17624 }
17625 ;;
17626 "libtool":C)
17627
17628 # See if we are running on zsh, and set the options which allow our
17629 # commands through without removal of \ escapes.
17630 if test -n "${ZSH_VERSION+set}" ; then
17631 setopt NO_GLOB_SUBST
17632 fi
17633
17634 cfgfile="${ofile}T"
17635 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
17636 $RM "$cfgfile"
17637
17638 cat <<_LT_EOF >> "$cfgfile"
17639 #! $SHELL
17640
17641 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
17642 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
17643 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17644 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
17645 #
17646 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
17647 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
17648 # Foundation, Inc.
17649 # Written by Gordon Matzigkeit, 1996
17650 #
17651 # This file is part of GNU Libtool.
17652 #
17653 # GNU Libtool is free software; you can redistribute it and/or
17654 # modify it under the terms of the GNU General Public License as
17655 # published by the Free Software Foundation; either version 2 of
17656 # the License, or (at your option) any later version.
17657 #
17658 # As a special exception to the GNU General Public License,
17659 # if you distribute this file as part of a program or library that
17660 # is built using GNU Libtool, you may include this file under the
17661 # same distribution terms that you use for the rest of that program.
17662 #
17663 # GNU Libtool is distributed in the hope that it will be useful,
17664 # but WITHOUT ANY WARRANTY; without even the implied warranty of
17665 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17666 # GNU General Public License for more details.
17667 #
17668 # You should have received a copy of the GNU General Public License
17669 # along with GNU Libtool; see the file COPYING. If not, a copy
17670 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
17671 # obtained by writing to the Free Software Foundation, Inc.,
17672 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17673
17674
17675 # The names of the tagged configurations supported by this script.
17676 available_tags=""
17677
17678 # ### BEGIN LIBTOOL CONFIG
17679
17680 # Assembler program.
17681 AS=$lt_AS
17682
17683 # DLL creation program.
17684 DLLTOOL=$lt_DLLTOOL
17685
17686 # Object dumper program.
17687 OBJDUMP=$lt_OBJDUMP
17688
17689 # Which release of libtool.m4 was used?
17690 macro_version=$macro_version
17691 macro_revision=$macro_revision
17692
17693 # Whether or not to build shared libraries.
17694 build_libtool_libs=$enable_shared
17695
17696 # Whether or not to build static libraries.
17697 build_old_libs=$enable_static
17698
17699 # What type of objects to build.
17700 pic_mode=$pic_mode
17701
17702 # Whether or not to optimize for fast installation.
17703 fast_install=$enable_fast_install
17704
17705 # Shell to use when invoking shell scripts.
17706 SHELL=$lt_SHELL
17707
17708 # An echo program that protects backslashes.
17709 ECHO=$lt_ECHO
17710
17711 # The PATH separator for the build system.
17712 PATH_SEPARATOR=$lt_PATH_SEPARATOR
17713
17714 # The host system.
17715 host_alias=$host_alias
17716 host=$host
17717 host_os=$host_os
17718
17719 # The build system.
17720 build_alias=$build_alias
17721 build=$build
17722 build_os=$build_os
17723
17724 # A sed program that does not truncate output.
17725 SED=$lt_SED
17726
17727 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
17728 Xsed="\$SED -e 1s/^X//"
17729
17730 # A grep program that handles long lines.
17731 GREP=$lt_GREP
17732
17733 # An ERE matcher.
17734 EGREP=$lt_EGREP
17735
17736 # A literal string matcher.
17737 FGREP=$lt_FGREP
17738
17739 # A BSD- or MS-compatible name lister.
17740 NM=$lt_NM
17741
17742 # Whether we need soft or hard links.
17743 LN_S=$lt_LN_S
17744
17745 # What is the maximum length of a command?
17746 max_cmd_len=$max_cmd_len
17747
17748 # Object file suffix (normally "o").
17749 objext=$ac_objext
17750
17751 # Executable file suffix (normally "").
17752 exeext=$exeext
17753
17754 # whether the shell understands "unset".
17755 lt_unset=$lt_unset
17756
17757 # turn spaces into newlines.
17758 SP2NL=$lt_lt_SP2NL
17759
17760 # turn newlines into spaces.
17761 NL2SP=$lt_lt_NL2SP
17762
17763 # convert \$build file names to \$host format.
17764 to_host_file_cmd=$lt_cv_to_host_file_cmd
17765
17766 # convert \$build files to toolchain format.
17767 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
17768
17769 # Method to check whether dependent libraries are shared objects.
17770 deplibs_check_method=$lt_deplibs_check_method
17771
17772 # Command to use when deplibs_check_method = "file_magic".
17773 file_magic_cmd=$lt_file_magic_cmd
17774
17775 # How to find potential files when deplibs_check_method = "file_magic".
17776 file_magic_glob=$lt_file_magic_glob
17777
17778 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
17779 want_nocaseglob=$lt_want_nocaseglob
17780
17781 # Command to associate shared and link libraries.
17782 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
17783
17784 # The archiver.
17785 AR=$lt_AR
17786
17787 # Flags to create an archive.
17788 AR_FLAGS=$lt_AR_FLAGS
17789
17790 # How to feed a file listing to the archiver.
17791 archiver_list_spec=$lt_archiver_list_spec
17792
17793 # A symbol stripping program.
17794 STRIP=$lt_STRIP
17795
17796 # Commands used to install an old-style archive.
17797 RANLIB=$lt_RANLIB
17798 old_postinstall_cmds=$lt_old_postinstall_cmds
17799 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17800
17801 # Whether to use a lock for old archive extraction.
17802 lock_old_archive_extraction=$lock_old_archive_extraction
17803
17804 # A C compiler.
17805 LTCC=$lt_CC
17806
17807 # LTCC compiler flags.
17808 LTCFLAGS=$lt_CFLAGS
17809
17810 # Take the output of nm and produce a listing of raw symbols and C names.
17811 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17812
17813 # Transform the output of nm in a proper C declaration.
17814 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17815
17816 # Transform the output of nm in a C name address pair.
17817 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17818
17819 # Transform the output of nm in a C name address pair when lib prefix is needed.
17820 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
17821
17822 # Specify filename containing input files for \$NM.
17823 nm_file_list_spec=$lt_nm_file_list_spec
17824
17825 # The root where to search for dependent libraries,and in which our libraries should be installed.
17826 lt_sysroot=$lt_sysroot
17827
17828 # The name of the directory that contains temporary libtool files.
17829 objdir=$objdir
17830
17831 # Used to examine libraries when file_magic_cmd begins with "file".
17832 MAGIC_CMD=$MAGIC_CMD
17833
17834 # Must we lock files when doing compilation?
17835 need_locks=$lt_need_locks
17836
17837 # Manifest tool.
17838 MANIFEST_TOOL=$lt_MANIFEST_TOOL
17839
17840 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
17841 DSYMUTIL=$lt_DSYMUTIL
17842
17843 # Tool to change global to local symbols on Mac OS X.
17844 NMEDIT=$lt_NMEDIT
17845
17846 # Tool to manipulate fat objects and archives on Mac OS X.
17847 LIPO=$lt_LIPO
17848
17849 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
17850 OTOOL=$lt_OTOOL
17851
17852 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
17853 OTOOL64=$lt_OTOOL64
17854
17855 # Old archive suffix (normally "a").
17856 libext=$libext
17857
17858 # Shared library suffix (normally ".so").
17859 shrext_cmds=$lt_shrext_cmds
17860
17861 # The commands to extract the exported symbol list from a shared archive.
17862 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17863
17864 # Variables whose values should be saved in libtool wrapper scripts and
17865 # restored at link time.
17866 variables_saved_for_relink=$lt_variables_saved_for_relink
17867
17868 # Do we need the "lib" prefix for modules?
17869 need_lib_prefix=$need_lib_prefix
17870
17871 # Do we need a version for libraries?
17872 need_version=$need_version
17873
17874 # Library versioning type.
17875 version_type=$version_type
17876
17877 # Shared library runtime path variable.
17878 runpath_var=$runpath_var
17879
17880 # Shared library path variable.
17881 shlibpath_var=$shlibpath_var
17882
17883 # Is shlibpath searched before the hard-coded library search path?
17884 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17885
17886 # Format of library name prefix.
17887 libname_spec=$lt_libname_spec
17888
17889 # List of archive names. First name is the real one, the rest are links.
17890 # The last name is the one that the linker finds with -lNAME
17891 library_names_spec=$lt_library_names_spec
17892
17893 # The coded name of the library, if different from the real name.
17894 soname_spec=$lt_soname_spec
17895
17896 # Permission mode override for installation of shared libraries.
17897 install_override_mode=$lt_install_override_mode
17898
17899 # Command to use after installation of a shared archive.
17900 postinstall_cmds=$lt_postinstall_cmds
17901
17902 # Command to use after uninstallation of a shared archive.
17903 postuninstall_cmds=$lt_postuninstall_cmds
17904
17905 # Commands used to finish a libtool library installation in a directory.
17906 finish_cmds=$lt_finish_cmds
17907
17908 # As "finish_cmds", except a single script fragment to be evaled but
17909 # not shown.
17910 finish_eval=$lt_finish_eval
17911
17912 # Whether we should hardcode library paths into libraries.
17913 hardcode_into_libs=$hardcode_into_libs
17914
17915 # Compile-time system search path for libraries.
17916 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17917
17918 # Run-time system search path for libraries.
17919 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17920
17921 # Whether dlopen is supported.
17922 dlopen_support=$enable_dlopen
17923
17924 # Whether dlopen of programs is supported.
17925 dlopen_self=$enable_dlopen_self
17926
17927 # Whether dlopen of statically linked programs is supported.
17928 dlopen_self_static=$enable_dlopen_self_static
17929
17930 # Commands to strip libraries.
17931 old_striplib=$lt_old_striplib
17932 striplib=$lt_striplib
17933
17934
17935 # The linker used to build libraries.
17936 LD=$lt_LD
17937
17938 # How to create reloadable object files.
17939 reload_flag=$lt_reload_flag
17940 reload_cmds=$lt_reload_cmds
17941
17942 # Commands used to build an old-style archive.
17943 old_archive_cmds=$lt_old_archive_cmds
17944
17945 # A language specific compiler.
17946 CC=$lt_compiler
17947
17948 # Is the compiler the GNU compiler?
17949 with_gcc=$GCC
17950
17951 # Compiler flag to turn off builtin functions.
17952 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
17953
17954 # Additional compiler flags for building library objects.
17955 pic_flag=$lt_lt_prog_compiler_pic
17956
17957 # How to pass a linker flag through the compiler.
17958 wl=$lt_lt_prog_compiler_wl
17959
17960 # Compiler flag to prevent dynamic linking.
17961 link_static_flag=$lt_lt_prog_compiler_static
17962
17963 # Does compiler simultaneously support -c and -o options?
17964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
17965
17966 # Whether or not to add -lc for building shared libraries.
17967 build_libtool_need_lc=$archive_cmds_need_lc
17968
17969 # Whether or not to disallow shared libs when runtime libs are static.
17970 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
17971
17972 # Compiler flag to allow reflexive dlopens.
17973 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
17974
17975 # Compiler flag to generate shared objects directly from archives.
17976 whole_archive_flag_spec=$lt_whole_archive_flag_spec
17977
17978 # Whether the compiler copes with passing no objects directly.
17979 compiler_needs_object=$lt_compiler_needs_object
17980
17981 # Create an old-style archive from a shared archive.
17982 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
17983
17984 # Create a temporary old-style archive to link instead of a shared archive.
17985 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
17986
17987 # Commands used to build a shared archive.
17988 archive_cmds=$lt_archive_cmds
17989 archive_expsym_cmds=$lt_archive_expsym_cmds
17990
17991 # Commands used to build a loadable module if different from building
17992 # a shared archive.
17993 module_cmds=$lt_module_cmds
17994 module_expsym_cmds=$lt_module_expsym_cmds
17995
17996 # Whether we are building with GNU ld or not.
17997 with_gnu_ld=$lt_with_gnu_ld
17998
17999 # Flag that allows shared libraries with undefined symbols to be built.
18000 allow_undefined_flag=$lt_allow_undefined_flag
18001
18002 # Flag that enforces no undefined symbols.
18003 no_undefined_flag=$lt_no_undefined_flag
18004
18005 # Flag to hardcode \$libdir into a binary during linking.
18006 # This must work even if \$libdir does not exist
18007 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
18008
18009 # Whether we need a single "-rpath" flag with a separated argument.
18010 hardcode_libdir_separator=$lt_hardcode_libdir_separator
18011
18012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18013 # DIR into the resulting binary.
18014 hardcode_direct=$hardcode_direct
18015
18016 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
18017 # DIR into the resulting binary and the resulting library dependency is
18018 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
18019 # library is relocated.
18020 hardcode_direct_absolute=$hardcode_direct_absolute
18021
18022 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
18023 # into the resulting binary.
18024 hardcode_minus_L=$hardcode_minus_L
18025
18026 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
18027 # into the resulting binary.
18028 hardcode_shlibpath_var=$hardcode_shlibpath_var
18029
18030 # Set to "yes" if building a shared library automatically hardcodes DIR
18031 # into the library and all subsequent libraries and executables linked
18032 # against it.
18033 hardcode_automatic=$hardcode_automatic
18034
18035 # Set to yes if linker adds runtime paths of dependent libraries
18036 # to runtime path list.
18037 inherit_rpath=$inherit_rpath
18038
18039 # Whether libtool must link a program against all its dependency libraries.
18040 link_all_deplibs=$link_all_deplibs
18041
18042 # Set to "yes" if exported symbols are required.
18043 always_export_symbols=$always_export_symbols
18044
18045 # The commands to list exported symbols.
18046 export_symbols_cmds=$lt_export_symbols_cmds
18047
18048 # Symbols that should not be listed in the preloaded symbols.
18049 exclude_expsyms=$lt_exclude_expsyms
18050
18051 # Symbols that must always be exported.
18052 include_expsyms=$lt_include_expsyms
18053
18054 # Commands necessary for linking programs (against libraries) with templates.
18055 prelink_cmds=$lt_prelink_cmds
18056
18057 # Commands necessary for finishing linking programs.
18058 postlink_cmds=$lt_postlink_cmds
18059
18060 # Specify filename containing input files.
18061 file_list_spec=$lt_file_list_spec
18062
18063 # How to hardcode a shared library path into an executable.
18064 hardcode_action=$hardcode_action
18065
18066 # ### END LIBTOOL CONFIG
18067
18068 _LT_EOF
18069
18070 case $host_os in
18071 aix3*)
18072 cat <<\_LT_EOF >> "$cfgfile"
18073 # AIX sometimes has problems with the GCC collect2 program. For some
18074 # reason, if we set the COLLECT_NAMES environment variable, the problems
18075 # vanish in a puff of smoke.
18076 if test "X${COLLECT_NAMES+set}" != Xset; then
18077 COLLECT_NAMES=
18078 export COLLECT_NAMES
18079 fi
18080 _LT_EOF
18081 ;;
18082 esac
18083
18084
18085 ltmain="$ac_aux_dir/ltmain.sh"
18086
18087
18088 # We use sed instead of cat because bash on DJGPP gets confused if
18089 # if finds mixed CR/LF and LF-only lines. Since sed operates in
18090 # text mode, it properly converts lines to CR/LF. This bash problem
18091 # is reportedly fixed, but why not run on old versions too?
18092 sed '$q' "$ltmain" >> "$cfgfile" \
18093 || (rm -f "$cfgfile"; exit 1)
18094
18095 if test x"$xsi_shell" = xyes; then
18096 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
18097 func_dirname ()\
18098 {\
18099 \ case ${1} in\
18100 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18101 \ * ) func_dirname_result="${3}" ;;\
18102 \ esac\
18103 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
18104 && mv -f "$cfgfile.tmp" "$cfgfile" \
18105 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18106 test 0 -eq $? || _lt_function_replace_fail=:
18107
18108
18109 sed -e '/^func_basename ()$/,/^} # func_basename /c\
18110 func_basename ()\
18111 {\
18112 \ func_basename_result="${1##*/}"\
18113 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
18114 && mv -f "$cfgfile.tmp" "$cfgfile" \
18115 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18116 test 0 -eq $? || _lt_function_replace_fail=:
18117
18118
18119 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
18120 func_dirname_and_basename ()\
18121 {\
18122 \ case ${1} in\
18123 \ */*) func_dirname_result="${1%/*}${2}" ;;\
18124 \ * ) func_dirname_result="${3}" ;;\
18125 \ esac\
18126 \ func_basename_result="${1##*/}"\
18127 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
18128 && mv -f "$cfgfile.tmp" "$cfgfile" \
18129 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18130 test 0 -eq $? || _lt_function_replace_fail=:
18131
18132
18133 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
18134 func_stripname ()\
18135 {\
18136 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
18137 \ # positional parameters, so assign one to ordinary parameter first.\
18138 \ func_stripname_result=${3}\
18139 \ func_stripname_result=${func_stripname_result#"${1}"}\
18140 \ func_stripname_result=${func_stripname_result%"${2}"}\
18141 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
18142 && mv -f "$cfgfile.tmp" "$cfgfile" \
18143 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18144 test 0 -eq $? || _lt_function_replace_fail=:
18145
18146
18147 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
18148 func_split_long_opt ()\
18149 {\
18150 \ func_split_long_opt_name=${1%%=*}\
18151 \ func_split_long_opt_arg=${1#*=}\
18152 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
18153 && mv -f "$cfgfile.tmp" "$cfgfile" \
18154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18155 test 0 -eq $? || _lt_function_replace_fail=:
18156
18157
18158 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
18159 func_split_short_opt ()\
18160 {\
18161 \ func_split_short_opt_arg=${1#??}\
18162 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
18163 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
18164 && mv -f "$cfgfile.tmp" "$cfgfile" \
18165 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18166 test 0 -eq $? || _lt_function_replace_fail=:
18167
18168
18169 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
18170 func_lo2o ()\
18171 {\
18172 \ case ${1} in\
18173 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
18174 \ *) func_lo2o_result=${1} ;;\
18175 \ esac\
18176 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
18177 && mv -f "$cfgfile.tmp" "$cfgfile" \
18178 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18179 test 0 -eq $? || _lt_function_replace_fail=:
18180
18181
18182 sed -e '/^func_xform ()$/,/^} # func_xform /c\
18183 func_xform ()\
18184 {\
18185 func_xform_result=${1%.*}.lo\
18186 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
18187 && mv -f "$cfgfile.tmp" "$cfgfile" \
18188 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18189 test 0 -eq $? || _lt_function_replace_fail=:
18190
18191
18192 sed -e '/^func_arith ()$/,/^} # func_arith /c\
18193 func_arith ()\
18194 {\
18195 func_arith_result=$(( $* ))\
18196 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
18197 && mv -f "$cfgfile.tmp" "$cfgfile" \
18198 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18199 test 0 -eq $? || _lt_function_replace_fail=:
18200
18201
18202 sed -e '/^func_len ()$/,/^} # func_len /c\
18203 func_len ()\
18204 {\
18205 func_len_result=${#1}\
18206 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
18207 && mv -f "$cfgfile.tmp" "$cfgfile" \
18208 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18209 test 0 -eq $? || _lt_function_replace_fail=:
18210
18211 fi
18212
18213 if test x"$lt_shell_append" = xyes; then
18214 sed -e '/^func_append ()$/,/^} # func_append /c\
18215 func_append ()\
18216 {\
18217 eval "${1}+=\\${2}"\
18218 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
18219 && mv -f "$cfgfile.tmp" "$cfgfile" \
18220 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18221 test 0 -eq $? || _lt_function_replace_fail=:
18222
18223
18224 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
18225 func_append_quoted ()\
18226 {\
18227 \ func_quote_for_eval "${2}"\
18228 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
18229 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
18230 && mv -f "$cfgfile.tmp" "$cfgfile" \
18231 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18232 test 0 -eq $? || _lt_function_replace_fail=:
18233
18234
18235 # Save a `func_append' function call where possible by direct use of '+='
18236 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
18237 && mv -f "$cfgfile.tmp" "$cfgfile" \
18238 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18239 test 0 -eq $? || _lt_function_replace_fail=:
18240 else
18241 # Save a `func_append' function call even when '+=' is not available
18242 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
18243 && mv -f "$cfgfile.tmp" "$cfgfile" \
18244 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
18245 test 0 -eq $? || _lt_function_replace_fail=:
18246 fi
18247
18248 if test x"$_lt_function_replace_fail" = x":"; then
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
18250 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
18251 fi
18252
18253
18254 mv -f "$cfgfile" "$ofile" ||
18255 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
18256 chmod +x "$ofile"
18257
18258 ;;
18259 "$ac_stdint_h":C)
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
18261 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
18262 ac_stdint=$tmp/_stdint.h
18263
18264 echo "#ifndef" $_ac_stdint_h >$ac_stdint
18265 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
18266 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
18267 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
18268 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
18269 if test "_$ac_cv_header_stdint_t" != "_" ; then
18270 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
18271 echo "#include <stdint.h>" >>$ac_stdint
18272 echo "#endif" >>$ac_stdint
18273 echo "#endif" >>$ac_stdint
18274 else
18275
18276 cat >>$ac_stdint <<STDINT_EOF
18277
18278 /* ................... shortcircuit part ........................... */
18279
18280 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
18281 #include <stdint.h>
18282 #else
18283 #include <stddef.h>
18284
18285 /* .................... configured part ............................ */
18286
18287 STDINT_EOF
18288
18289 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
18290 if test "_$ac_cv_header_stdint_x" != "_" ; then
18291 ac_header="$ac_cv_header_stdint_x"
18292 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
18293 else
18294 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
18295 fi
18296
18297 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
18298 if test "_$ac_cv_header_stdint_o" != "_" ; then
18299 ac_header="$ac_cv_header_stdint_o"
18300 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
18301 else
18302 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
18303 fi
18304
18305 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
18306 if test "_$ac_cv_header_stdint_u" != "_" ; then
18307 ac_header="$ac_cv_header_stdint_u"
18308 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
18309 else
18310 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
18311 fi
18312
18313 echo "" >>$ac_stdint
18314
18315 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
18316 echo "#include <$ac_header>" >>$ac_stdint
18317 echo "" >>$ac_stdint
18318 fi fi
18319
18320 echo "/* which 64bit typedef has been found */" >>$ac_stdint
18321 if test "$ac_cv_type_uint64_t" = "yes" ; then
18322 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
18323 else
18324 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
18325 fi
18326 if test "$ac_cv_type_u_int64_t" = "yes" ; then
18327 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
18328 else
18329 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
18330 fi
18331 echo "" >>$ac_stdint
18332
18333 echo "/* which type model has been detected */" >>$ac_stdint
18334 if test "_$ac_cv_char_data_model" != "_" ; then
18335 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
18336 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
18337 else
18338 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
18339 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
18340 fi
18341 echo "" >>$ac_stdint
18342
18343 echo "/* whether int_least types were detected */" >>$ac_stdint
18344 if test "$ac_cv_type_int_least32_t" = "yes"; then
18345 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
18346 else
18347 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
18348 fi
18349 echo "/* whether int_fast types were detected */" >>$ac_stdint
18350 if test "$ac_cv_type_int_fast32_t" = "yes"; then
18351 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
18352 else
18353 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
18354 fi
18355 echo "/* whether intmax_t type was detected */" >>$ac_stdint
18356 if test "$ac_cv_type_intmax_t" = "yes"; then
18357 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
18358 else
18359 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
18360 fi
18361 echo "" >>$ac_stdint
18362
18363 cat >>$ac_stdint <<STDINT_EOF
18364 /* .................... detections part ............................ */
18365
18366 /* whether we need to define bitspecific types from compiler base types */
18367 #ifndef _STDINT_HEADER_INTPTR
18368 #ifndef _STDINT_HEADER_UINT32
18369 #ifndef _STDINT_HEADER_U_INT32
18370 #define _STDINT_NEED_INT_MODEL_T
18371 #else
18372 #define _STDINT_HAVE_U_INT_TYPES
18373 #endif
18374 #endif
18375 #endif
18376
18377 #ifdef _STDINT_HAVE_U_INT_TYPES
18378 #undef _STDINT_NEED_INT_MODEL_T
18379 #endif
18380
18381 #ifdef _STDINT_CHAR_MODEL
18382 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
18383 #ifndef _STDINT_BYTE_MODEL
18384 #define _STDINT_BYTE_MODEL 12
18385 #endif
18386 #endif
18387 #endif
18388
18389 #ifndef _STDINT_HAVE_INT_LEAST32_T
18390 #define _STDINT_NEED_INT_LEAST_T
18391 #endif
18392
18393 #ifndef _STDINT_HAVE_INT_FAST32_T
18394 #define _STDINT_NEED_INT_FAST_T
18395 #endif
18396
18397 #ifndef _STDINT_HEADER_INTPTR
18398 #define _STDINT_NEED_INTPTR_T
18399 #ifndef _STDINT_HAVE_INTMAX_T
18400 #define _STDINT_NEED_INTMAX_T
18401 #endif
18402 #endif
18403
18404
18405 /* .................... definition part ............................ */
18406
18407 /* some system headers have good uint64_t */
18408 #ifndef _HAVE_UINT64_T
18409 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
18410 #define _HAVE_UINT64_T
18411 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
18412 #define _HAVE_UINT64_T
18413 typedef u_int64_t uint64_t;
18414 #endif
18415 #endif
18416
18417 #ifndef _HAVE_UINT64_T
18418 /* .. here are some common heuristics using compiler runtime specifics */
18419 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
18420 #define _HAVE_UINT64_T
18421 #define _HAVE_LONGLONG_UINT64_T
18422 typedef long long int64_t;
18423 typedef unsigned long long uint64_t;
18424
18425 #elif !defined __STRICT_ANSI__
18426 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
18427 #define _HAVE_UINT64_T
18428 typedef __int64 int64_t;
18429 typedef unsigned __int64 uint64_t;
18430
18431 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
18432 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
18433 #if !defined _NO_LONGLONG
18434 #define _HAVE_UINT64_T
18435 #define _HAVE_LONGLONG_UINT64_T
18436 typedef long long int64_t;
18437 typedef unsigned long long uint64_t;
18438 #endif
18439
18440 #elif defined __alpha || (defined __mips && defined _ABIN32)
18441 #if !defined _NO_LONGLONG
18442 typedef long int64_t;
18443 typedef unsigned long uint64_t;
18444 #endif
18445 /* compiler/cpu type to define int64_t */
18446 #endif
18447 #endif
18448 #endif
18449
18450 #if defined _STDINT_HAVE_U_INT_TYPES
18451 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
18452 typedef u_int8_t uint8_t;
18453 typedef u_int16_t uint16_t;
18454 typedef u_int32_t uint32_t;
18455
18456 /* glibc compatibility */
18457 #ifndef __int8_t_defined
18458 #define __int8_t_defined
18459 #endif
18460 #endif
18461
18462 #ifdef _STDINT_NEED_INT_MODEL_T
18463 /* we must guess all the basic types. Apart from byte-adressable system, */
18464 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
18465 /* (btw, those nibble-addressable systems are way off, or so we assume) */
18466
18467
18468 #if defined _STDINT_BYTE_MODEL
18469 #if _STDINT_LONG_MODEL+0 == 242
18470 /* 2:4:2 = IP16 = a normal 16-bit system */
18471 typedef unsigned char uint8_t;
18472 typedef unsigned short uint16_t;
18473 typedef unsigned long uint32_t;
18474 #ifndef __int8_t_defined
18475 #define __int8_t_defined
18476 typedef char int8_t;
18477 typedef short int16_t;
18478 typedef long int32_t;
18479 #endif
18480 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
18481 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
18482 /* 4:4:4 = ILP32 = a normal 32-bit system */
18483 typedef unsigned char uint8_t;
18484 typedef unsigned short uint16_t;
18485 typedef unsigned int uint32_t;
18486 #ifndef __int8_t_defined
18487 #define __int8_t_defined
18488 typedef char int8_t;
18489 typedef short int16_t;
18490 typedef int int32_t;
18491 #endif
18492 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
18493 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
18494 /* 4:8:8 = LP64 = a normal 64-bit system */
18495 typedef unsigned char uint8_t;
18496 typedef unsigned short uint16_t;
18497 typedef unsigned int uint32_t;
18498 #ifndef __int8_t_defined
18499 #define __int8_t_defined
18500 typedef char int8_t;
18501 typedef short int16_t;
18502 typedef int int32_t;
18503 #endif
18504 /* this system has a "long" of 64bit */
18505 #ifndef _HAVE_UINT64_T
18506 #define _HAVE_UINT64_T
18507 typedef unsigned long uint64_t;
18508 typedef long int64_t;
18509 #endif
18510 #elif _STDINT_LONG_MODEL+0 == 448
18511 /* LLP64 a 64-bit system derived from a 32-bit system */
18512 typedef unsigned char uint8_t;
18513 typedef unsigned short uint16_t;
18514 typedef unsigned int uint32_t;
18515 #ifndef __int8_t_defined
18516 #define __int8_t_defined
18517 typedef char int8_t;
18518 typedef short int16_t;
18519 typedef int int32_t;
18520 #endif
18521 /* assuming the system has a "long long" */
18522 #ifndef _HAVE_UINT64_T
18523 #define _HAVE_UINT64_T
18524 #define _HAVE_LONGLONG_UINT64_T
18525 typedef unsigned long long uint64_t;
18526 typedef long long int64_t;
18527 #endif
18528 #else
18529 #define _STDINT_NO_INT32_T
18530 #endif
18531 #else
18532 #define _STDINT_NO_INT8_T
18533 #define _STDINT_NO_INT32_T
18534 #endif
18535 #endif
18536
18537 /*
18538 * quote from SunOS-5.8 sys/inttypes.h:
18539 * Use at your own risk. As of February 1996, the committee is squarely
18540 * behind the fixed sized types; the "least" and "fast" types are still being
18541 * discussed. The probability that the "fast" types may be removed before
18542 * the standard is finalized is high enough that they are not currently
18543 * implemented.
18544 */
18545
18546 #if defined _STDINT_NEED_INT_LEAST_T
18547 typedef int8_t int_least8_t;
18548 typedef int16_t int_least16_t;
18549 typedef int32_t int_least32_t;
18550 #ifdef _HAVE_UINT64_T
18551 typedef int64_t int_least64_t;
18552 #endif
18553
18554 typedef uint8_t uint_least8_t;
18555 typedef uint16_t uint_least16_t;
18556 typedef uint32_t uint_least32_t;
18557 #ifdef _HAVE_UINT64_T
18558 typedef uint64_t uint_least64_t;
18559 #endif
18560 /* least types */
18561 #endif
18562
18563 #if defined _STDINT_NEED_INT_FAST_T
18564 typedef int8_t int_fast8_t;
18565 typedef int int_fast16_t;
18566 typedef int32_t int_fast32_t;
18567 #ifdef _HAVE_UINT64_T
18568 typedef int64_t int_fast64_t;
18569 #endif
18570
18571 typedef uint8_t uint_fast8_t;
18572 typedef unsigned uint_fast16_t;
18573 typedef uint32_t uint_fast32_t;
18574 #ifdef _HAVE_UINT64_T
18575 typedef uint64_t uint_fast64_t;
18576 #endif
18577 /* fast types */
18578 #endif
18579
18580 #ifdef _STDINT_NEED_INTMAX_T
18581 #ifdef _HAVE_UINT64_T
18582 typedef int64_t intmax_t;
18583 typedef uint64_t uintmax_t;
18584 #else
18585 typedef long intmax_t;
18586 typedef unsigned long uintmax_t;
18587 #endif
18588 #endif
18589
18590 #ifdef _STDINT_NEED_INTPTR_T
18591 #ifndef __intptr_t_defined
18592 #define __intptr_t_defined
18593 /* we encourage using "long" to store pointer values, never use "int" ! */
18594 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
18595 typedef unsigned int uintptr_t;
18596 typedef int intptr_t;
18597 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
18598 typedef unsigned long uintptr_t;
18599 typedef long intptr_t;
18600 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
18601 typedef uint64_t uintptr_t;
18602 typedef int64_t intptr_t;
18603 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
18604 typedef unsigned long uintptr_t;
18605 typedef long intptr_t;
18606 #endif
18607 #endif
18608 #endif
18609
18610 /* The ISO C99 standard specifies that in C++ implementations these
18611 should only be defined if explicitly requested. */
18612 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
18613 #ifndef UINT32_C
18614
18615 /* Signed. */
18616 # define INT8_C(c) c
18617 # define INT16_C(c) c
18618 # define INT32_C(c) c
18619 # ifdef _HAVE_LONGLONG_UINT64_T
18620 # define INT64_C(c) c ## L
18621 # else
18622 # define INT64_C(c) c ## LL
18623 # endif
18624
18625 /* Unsigned. */
18626 # define UINT8_C(c) c ## U
18627 # define UINT16_C(c) c ## U
18628 # define UINT32_C(c) c ## U
18629 # ifdef _HAVE_LONGLONG_UINT64_T
18630 # define UINT64_C(c) c ## UL
18631 # else
18632 # define UINT64_C(c) c ## ULL
18633 # endif
18634
18635 /* Maximal type. */
18636 # ifdef _HAVE_LONGLONG_UINT64_T
18637 # define INTMAX_C(c) c ## L
18638 # define UINTMAX_C(c) c ## UL
18639 # else
18640 # define INTMAX_C(c) c ## LL
18641 # define UINTMAX_C(c) c ## ULL
18642 # endif
18643
18644 /* literalnumbers */
18645 #endif
18646 #endif
18647
18648 /* These limits are merily those of a two complement byte-oriented system */
18649
18650 /* Minimum of signed integral types. */
18651 # define INT8_MIN (-128)
18652 # define INT16_MIN (-32767-1)
18653 # define INT32_MIN (-2147483647-1)
18654 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
18655 /* Maximum of signed integral types. */
18656 # define INT8_MAX (127)
18657 # define INT16_MAX (32767)
18658 # define INT32_MAX (2147483647)
18659 # define INT64_MAX (__INT64_C(9223372036854775807))
18660
18661 /* Maximum of unsigned integral types. */
18662 # define UINT8_MAX (255)
18663 # define UINT16_MAX (65535)
18664 # define UINT32_MAX (4294967295U)
18665 # define UINT64_MAX (__UINT64_C(18446744073709551615))
18666
18667 /* Minimum of signed integral types having a minimum size. */
18668 # define INT_LEAST8_MIN INT8_MIN
18669 # define INT_LEAST16_MIN INT16_MIN
18670 # define INT_LEAST32_MIN INT32_MIN
18671 # define INT_LEAST64_MIN INT64_MIN
18672 /* Maximum of signed integral types having a minimum size. */
18673 # define INT_LEAST8_MAX INT8_MAX
18674 # define INT_LEAST16_MAX INT16_MAX
18675 # define INT_LEAST32_MAX INT32_MAX
18676 # define INT_LEAST64_MAX INT64_MAX
18677
18678 /* Maximum of unsigned integral types having a minimum size. */
18679 # define UINT_LEAST8_MAX UINT8_MAX
18680 # define UINT_LEAST16_MAX UINT16_MAX
18681 # define UINT_LEAST32_MAX UINT32_MAX
18682 # define UINT_LEAST64_MAX UINT64_MAX
18683
18684 /* shortcircuit*/
18685 #endif
18686 /* once */
18687 #endif
18688 #endif
18689 STDINT_EOF
18690 fi
18691 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
18692 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
18693 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
18694 else
18695 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
18696 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18697 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
18698 X"$ac_stdint_h" : 'X\(//\)$' \| \
18699 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
18700 $as_echo X"$ac_stdint_h" |
18701 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18702 s//\1/
18703 q
18704 }
18705 /^X\(\/\/\)[^/].*/{
18706 s//\1/
18707 q
18708 }
18709 /^X\(\/\/\)$/{
18710 s//\1/
18711 q
18712 }
18713 /^X\(\/\).*/{
18714 s//\1/
18715 q
18716 }
18717 s/.*/./; q'`
18718 as_dir="$ac_dir"; as_fn_mkdir_p
18719 rm -f $ac_stdint_h
18720 mv $ac_stdint $ac_stdint_h
18721 fi
18722 ;;
18723
18724 esac
18725 done # for ac_tag
18726
18727
18728 as_fn_exit 0
18729 _ACEOF
18730 ac_clean_files=$ac_clean_files_save
18731
18732 test $ac_write_fail = 0 ||
18733 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18734
18735
18736 # configure is writing to config.log, and then calls config.status.
18737 # config.status does its own redirection, appending to config.log.
18738 # Unfortunately, on DOS this fails, as config.log is still kept open
18739 # by configure, so config.status won't be able to write to it; its
18740 # output is simply discarded. So we exec the FD to /dev/null,
18741 # effectively closing config.log, so it can be properly (re)opened and
18742 # appended to by config.status. When coming back to configure, we
18743 # need to make the FD available again.
18744 if test "$no_create" != yes; then
18745 ac_cs_success=:
18746 ac_config_status_args=
18747 test "$silent" = yes &&
18748 ac_config_status_args="$ac_config_status_args --quiet"
18749 exec 5>/dev/null
18750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
18751 exec 5>>config.log
18752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18753 # would make configure fail if this is the last instruction.
18754 $ac_cs_success || as_fn_exit 1
18755 fi
18756 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
18757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18758 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
18759 fi
18760
18761