configure revision 1.1.1.7 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.12.4.
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.12.4'
595 PACKAGE_STRING='fontconfig 2.12.4'
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 PREFERRED_HINTING
665 LIBXML2_LIBS
666 LIBXML2_CFLAGS
667 HAVE_XMLPARSE_H
668 EXPAT_LIBS
669 EXPAT_CFLAGS
670 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE
671 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE
672 FREETYPE_LIBS
673 FREETYPE_CFLAGS
674 ICONV_LIBS
675 ICONV_CFLAGS
676 ENABLE_SHARED_FALSE
677 ENABLE_SHARED_TRUE
678 CROSS_COMPILING_FALSE
679 CROSS_COMPILING_TRUE
680 EXEEXT_FOR_BUILD
681 CC_FOR_BUILD
682 WARN_CFLAGS
683 MS_LIB_AVAILABLE_FALSE
684 MS_LIB_AVAILABLE_TRUE
685 ms_librarian
686 OS_WIN32_FALSE
687 OS_WIN32_TRUE
688 LIBT_CURRENT_MINUS_AGE
689 LIBT_VERSION_INFO
690 LIBT_REVISION
691 LIBT_CURRENT
692 LT_SYS_LIBRARY_PATH
693 OTOOL64
694 OTOOL
695 LIPO
696 NMEDIT
697 DSYMUTIL
698 MANIFEST_TOOL
699 RANLIB
700 ac_ct_AR
701 AR
702 NM
703 ac_ct_DUMPBIN
704 DUMPBIN
705 LD
706 FGREP
707 SED
708 host_os
709 host_vendor
710 host_cpu
711 host
712 build_os
713 build_vendor
714 build_cpu
715 build
716 LIBTOOL
717 OBJDUMP
718 DLLTOOL
719 AS
720 RM
721 HAVE_PYTHON_FALSE
722 HAVE_PYTHON_TRUE
723 pkgpyexecdir
724 pyexecdir
725 pkgpythondir
726 pythondir
727 PYTHON_PLATFORM
728 PYTHON_EXEC_PREFIX
729 PYTHON_PREFIX
730 PYTHON_VERSION
731 PYTHON
732 GPERF
733 GIT
734 pkgconfigdir
735 PKG_CONFIG_LIBDIR
736 PKG_CONFIG_PATH
737 PKG_CONFIG
738 LN_S
739 EGREP
740 GREP
741 CPP
742 am__fastdepCC_FALSE
743 am__fastdepCC_TRUE
744 CCDEPMODE
745 am__nodep
746 AMDEPBACKSLASH
747 AMDEP_FALSE
748 AMDEP_TRUE
749 am__quote
750 am__include
751 DEPDIR
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
758 CC
759 AM_BACKSLASH
760 AM_DEFAULT_VERBOSITY
761 AM_DEFAULT_V
762 AM_V
763 am__untar
764 am__tar
765 AMTAR
766 am__leading_dot
767 SET_MAKE
768 AWK
769 mkdir_p
770 MKDIR_P
771 INSTALL_STRIP_PROGRAM
772 STRIP
773 install_sh
774 MAKEINFO
775 AUTOHEADER
776 AUTOMAKE
777 AUTOCONF
778 ACLOCAL
779 VERSION
780 PACKAGE
781 CYGPATH_W
782 am__isrc
783 INSTALL_DATA
784 INSTALL_SCRIPT
785 INSTALL_PROGRAM
786 target_alias
787 host_alias
788 build_alias
789 LIBS
790 ECHO_T
791 ECHO_N
792 ECHO_C
793 DEFS
794 mandir
795 localedir
796 libdir
797 psdir
798 pdfdir
799 dvidir
800 htmldir
801 infodir
802 docdir
803 oldincludedir
804 includedir
805 localstatedir
806 sharedstatedir
807 sysconfdir
808 datadir
809 datarootdir
810 libexecdir
811 sbindir
812 bindir
813 program_transform_name
814 prefix
815 exec_prefix
816 PACKAGE_URL
817 PACKAGE_BUGREPORT
818 PACKAGE_STRING
819 PACKAGE_VERSION
820 PACKAGE_TARNAME
821 PACKAGE_NAME
822 PATH_SEPARATOR
823 SHELL'
824 ac_subst_files=''
825 ac_user_opts='
826 enable_option_checking
827 enable_silent_rules
828 enable_dependency_tracking
829 enable_largefile
830 with_pkgconfigdir
831 enable_static
832 enable_shared
833 with_pic
834 enable_fast_install
835 with_aix_soname
836 with_gnu_ld
837 with_sysroot
838 enable_libtool_lock
839 with_arch
840 enable_iconv
841 with_libiconv
842 with_libiconv_includes
843 with_libiconv_lib
844 with_expat
845 with_expat_includes
846 with_expat_lib
847 enable_libxml2
848 with_default_hinting
849 with_default_fonts
850 with_add_fonts
851 with_cache_dir
852 with_templatedir
853 with_baseconfigdir
854 with_configdir
855 with_xmldir
856 enable_docs
857 '
858 ac_precious_vars='build_alias
859 host_alias
860 target_alias
861 CC
862 CFLAGS
863 LDFLAGS
864 LIBS
865 CPPFLAGS
866 CPP
867 PKG_CONFIG
868 PKG_CONFIG_PATH
869 PKG_CONFIG_LIBDIR
870 PYTHON
871 LT_SYS_LIBRARY_PATH
872 CC_FOR_BUILD
873 FREETYPE_CFLAGS
874 FREETYPE_LIBS
875 EXPAT_CFLAGS
876 EXPAT_LIBS
877 LIBXML2_CFLAGS
878 LIBXML2_LIBS'
879
880
881 # Initialize some variables set by options.
882 ac_init_help=
883 ac_init_version=false
884 ac_unrecognized_opts=
885 ac_unrecognized_sep=
886 # The variables have the same names as the options, with
887 # dashes changed to underlines.
888 cache_file=/dev/null
889 exec_prefix=NONE
890 no_create=
891 no_recursion=
892 prefix=NONE
893 program_prefix=NONE
894 program_suffix=NONE
895 program_transform_name=s,x,x,
896 silent=
897 site=
898 srcdir=
899 verbose=
900 x_includes=NONE
901 x_libraries=NONE
902
903 # Installation directory options.
904 # These are left unexpanded so users can "make install exec_prefix=/foo"
905 # and all the variables that are supposed to be based on exec_prefix
906 # by default will actually change.
907 # Use braces instead of parens because sh, perl, etc. also accept them.
908 # (The list follows the same order as the GNU Coding Standards.)
909 bindir='${exec_prefix}/bin'
910 sbindir='${exec_prefix}/sbin'
911 libexecdir='${exec_prefix}/libexec'
912 datarootdir='${prefix}/share'
913 datadir='${datarootdir}'
914 sysconfdir='${prefix}/etc'
915 sharedstatedir='${prefix}/com'
916 localstatedir='${prefix}/var'
917 includedir='${prefix}/include'
918 oldincludedir='/usr/include'
919 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
920 infodir='${datarootdir}/info'
921 htmldir='${docdir}'
922 dvidir='${docdir}'
923 pdfdir='${docdir}'
924 psdir='${docdir}'
925 libdir='${exec_prefix}/lib'
926 localedir='${datarootdir}/locale'
927 mandir='${datarootdir}/man'
928
929 ac_prev=
930 ac_dashdash=
931 for ac_option
932 do
933 # If the previous option needs an argument, assign it.
934 if test -n "$ac_prev"; then
935 eval $ac_prev=\$ac_option
936 ac_prev=
937 continue
938 fi
939
940 case $ac_option in
941 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
942 *=) ac_optarg= ;;
943 *) ac_optarg=yes ;;
944 esac
945
946 # Accept the important Cygnus configure options, so we can diagnose typos.
947
948 case $ac_dashdash$ac_option in
949 --)
950 ac_dashdash=yes ;;
951
952 -bindir | --bindir | --bindi | --bind | --bin | --bi)
953 ac_prev=bindir ;;
954 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
955 bindir=$ac_optarg ;;
956
957 -build | --build | --buil | --bui | --bu)
958 ac_prev=build_alias ;;
959 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
960 build_alias=$ac_optarg ;;
961
962 -cache-file | --cache-file | --cache-fil | --cache-fi \
963 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
964 ac_prev=cache_file ;;
965 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
966 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
967 cache_file=$ac_optarg ;;
968
969 --config-cache | -C)
970 cache_file=config.cache ;;
971
972 -datadir | --datadir | --datadi | --datad)
973 ac_prev=datadir ;;
974 -datadir=* | --datadir=* | --datadi=* | --datad=*)
975 datadir=$ac_optarg ;;
976
977 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
978 | --dataroo | --dataro | --datar)
979 ac_prev=datarootdir ;;
980 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
981 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
982 datarootdir=$ac_optarg ;;
983
984 -disable-* | --disable-*)
985 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
986 # Reject names that are not valid shell variable names.
987 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
988 as_fn_error $? "invalid feature name: $ac_useropt"
989 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in
992 *"
993 "enable_$ac_useropt"
994 "*) ;;
995 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
996 ac_unrecognized_sep=', ';;
997 esac
998 eval enable_$ac_useropt=no ;;
999
1000 -docdir | --docdir | --docdi | --doc | --do)
1001 ac_prev=docdir ;;
1002 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1003 docdir=$ac_optarg ;;
1004
1005 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1006 ac_prev=dvidir ;;
1007 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1008 dvidir=$ac_optarg ;;
1009
1010 -enable-* | --enable-*)
1011 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1014 as_fn_error $? "invalid feature name: $ac_useropt"
1015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019 "enable_$ac_useropt"
1020 "*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1218 as_fn_error $? "invalid package name: $ac_useropt"
1219 ac_useropt_orig=$ac_useropt
1220 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1221 case $ac_user_opts in
1222 *"
1223 "with_$ac_useropt"
1224 "*) ;;
1225 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1226 ac_unrecognized_sep=', ';;
1227 esac
1228 eval with_$ac_useropt=\$ac_optarg ;;
1229
1230 -without-* | --without-*)
1231 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1232 # Reject names that are not valid shell variable names.
1233 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1234 as_fn_error $? "invalid package name: $ac_useropt"
1235 ac_useropt_orig=$ac_useropt
1236 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1237 case $ac_user_opts in
1238 *"
1239 "with_$ac_useropt"
1240 "*) ;;
1241 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1242 ac_unrecognized_sep=', ';;
1243 esac
1244 eval with_$ac_useropt=no ;;
1245
1246 --x)
1247 # Obsolete; use --with-x.
1248 with_x=yes ;;
1249
1250 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1251 | --x-incl | --x-inc | --x-in | --x-i)
1252 ac_prev=x_includes ;;
1253 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1254 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1255 x_includes=$ac_optarg ;;
1256
1257 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1258 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1259 ac_prev=x_libraries ;;
1260 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1261 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1262 x_libraries=$ac_optarg ;;
1263
1264 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1265 Try \`$0 --help' for more information"
1266 ;;
1267
1268 *=*)
1269 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1270 # Reject names that are not valid shell variable names.
1271 case $ac_envvar in #(
1272 '' | [0-9]* | *[!_$as_cr_alnum]* )
1273 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1274 esac
1275 eval $ac_envvar=\$ac_optarg
1276 export $ac_envvar ;;
1277
1278 *)
1279 # FIXME: should be removed in autoconf 3.0.
1280 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1281 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1282 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1283 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1284 ;;
1285
1286 esac
1287 done
1288
1289 if test -n "$ac_prev"; then
1290 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1291 as_fn_error $? "missing argument to $ac_option"
1292 fi
1293
1294 if test -n "$ac_unrecognized_opts"; then
1295 case $enable_option_checking in
1296 no) ;;
1297 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1298 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1299 esac
1300 fi
1301
1302 # Check all directory arguments for consistency.
1303 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1304 datadir sysconfdir sharedstatedir localstatedir includedir \
1305 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1306 libdir localedir mandir
1307 do
1308 eval ac_val=\$$ac_var
1309 # Remove trailing slashes.
1310 case $ac_val in
1311 */ )
1312 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1313 eval $ac_var=\$ac_val;;
1314 esac
1315 # Be sure to have absolute directory names.
1316 case $ac_val in
1317 [\\/$]* | ?:[\\/]* ) continue;;
1318 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1319 esac
1320 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1321 done
1322
1323 # There might be people who depend on the old broken behavior: `$host'
1324 # used to hold the argument of --host etc.
1325 # FIXME: To remove some day.
1326 build=$build_alias
1327 host=$host_alias
1328 target=$target_alias
1329
1330 # FIXME: To remove some day.
1331 if test "x$host_alias" != x; then
1332 if test "x$build_alias" = x; then
1333 cross_compiling=maybe
1334 elif test "x$build_alias" != "x$host_alias"; then
1335 cross_compiling=yes
1336 fi
1337 fi
1338
1339 ac_tool_prefix=
1340 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1341
1342 test "$silent" = yes && exec 6>/dev/null
1343
1344
1345 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1346 ac_ls_di=`ls -di .` &&
1347 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1348 as_fn_error $? "working directory cannot be determined"
1349 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1350 as_fn_error $? "pwd does not report name of working directory"
1351
1352
1353 # Find the source files, if location was not specified.
1354 if test -z "$srcdir"; then
1355 ac_srcdir_defaulted=yes
1356 # Try the directory containing this script, then the parent directory.
1357 ac_confdir=`$as_dirname -- "$as_myself" ||
1358 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1359 X"$as_myself" : 'X\(//\)[^/]' \| \
1360 X"$as_myself" : 'X\(//\)$' \| \
1361 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1362 $as_echo X"$as_myself" |
1363 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 s//\1/
1365 q
1366 }
1367 /^X\(\/\/\)[^/].*/{
1368 s//\1/
1369 q
1370 }
1371 /^X\(\/\/\)$/{
1372 s//\1/
1373 q
1374 }
1375 /^X\(\/\).*/{
1376 s//\1/
1377 q
1378 }
1379 s/.*/./; q'`
1380 srcdir=$ac_confdir
1381 if test ! -r "$srcdir/$ac_unique_file"; then
1382 srcdir=..
1383 fi
1384 else
1385 ac_srcdir_defaulted=no
1386 fi
1387 if test ! -r "$srcdir/$ac_unique_file"; then
1388 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1389 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1390 fi
1391 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1392 ac_abs_confdir=`(
1393 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1394 pwd)`
1395 # When building in place, set srcdir=.
1396 if test "$ac_abs_confdir" = "$ac_pwd"; then
1397 srcdir=.
1398 fi
1399 # Remove unnecessary trailing slashes from srcdir.
1400 # Double slashes in file names in object file debugging info
1401 # mess up M-x gdb in Emacs.
1402 case $srcdir in
1403 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1404 esac
1405 for ac_var in $ac_precious_vars; do
1406 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1407 eval ac_env_${ac_var}_value=\$${ac_var}
1408 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1409 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1410 done
1411
1412 #
1413 # Report the --help message.
1414 #
1415 if test "$ac_init_help" = "long"; then
1416 # Omit some internal or obsolete options to make the list less imposing.
1417 # This message is too long to be a string in the A/UX 3.1 sh.
1418 cat <<_ACEOF
1419 \`configure' configures fontconfig 2.12.4 to adapt to many kinds of systems.
1420
1421 Usage: $0 [OPTION]... [VAR=VALUE]...
1422
1423 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1424 VAR=VALUE. See below for descriptions of some of the useful variables.
1425
1426 Defaults for the options are specified in brackets.
1427
1428 Configuration:
1429 -h, --help display this help and exit
1430 --help=short display options specific to this package
1431 --help=recursive display the short help of all the included packages
1432 -V, --version display version information and exit
1433 -q, --quiet, --silent do not print \`checking ...' messages
1434 --cache-file=FILE cache test results in FILE [disabled]
1435 -C, --config-cache alias for \`--cache-file=config.cache'
1436 -n, --no-create do not create output files
1437 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1438
1439 Installation directories:
1440 --prefix=PREFIX install architecture-independent files in PREFIX
1441 [$ac_default_prefix]
1442 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1443 [PREFIX]
1444
1445 By default, \`make install' will install all the files in
1446 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1447 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1448 for instance \`--prefix=\$HOME'.
1449
1450 For better control, use the options below.
1451
1452 Fine tuning of the installation directories:
1453 --bindir=DIR user executables [EPREFIX/bin]
1454 --sbindir=DIR system admin executables [EPREFIX/sbin]
1455 --libexecdir=DIR program executables [EPREFIX/libexec]
1456 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1457 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1458 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1459 --libdir=DIR object code libraries [EPREFIX/lib]
1460 --includedir=DIR C header files [PREFIX/include]
1461 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1462 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1463 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1464 --infodir=DIR info documentation [DATAROOTDIR/info]
1465 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1466 --mandir=DIR man documentation [DATAROOTDIR/man]
1467 --docdir=DIR documentation root [DATAROOTDIR/doc/fontconfig]
1468 --htmldir=DIR html documentation [DOCDIR]
1469 --dvidir=DIR dvi documentation [DOCDIR]
1470 --pdfdir=DIR pdf documentation [DOCDIR]
1471 --psdir=DIR ps documentation [DOCDIR]
1472 _ACEOF
1473
1474 cat <<\_ACEOF
1475
1476 Program names:
1477 --program-prefix=PREFIX prepend PREFIX to installed program names
1478 --program-suffix=SUFFIX append SUFFIX to installed program names
1479 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1480
1481 System types:
1482 --build=BUILD configure for building on BUILD [guessed]
1483 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1484 _ACEOF
1485 fi
1486
1487 if test -n "$ac_init_help"; then
1488 case $ac_init_help in
1489 short | recursive ) echo "Configuration of fontconfig 2.12.4:";;
1490 esac
1491 cat <<\_ACEOF
1492
1493 Optional Features:
1494 --disable-option-checking ignore unrecognized --enable/--with options
1495 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1496 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1497 --enable-silent-rules less verbose build output (undo: "make V=1")
1498 --disable-silent-rules verbose build output (undo: "make V=0")
1499 --enable-dependency-tracking
1500 do not reject slow dependency extractors
1501 --disable-dependency-tracking
1502 speeds up one-time build
1503 --disable-largefile omit support for large files
1504 --enable-static[=PKGS] build static libraries [default=no]
1505 --enable-shared[=PKGS] build shared libraries [default=yes]
1506 --enable-fast-install[=PKGS]
1507 optimize for fast installation [default=yes]
1508 --disable-libtool-lock avoid locking (might break parallel builds)
1509 --enable-iconv Use iconv to support non-Unicode SFNT name
1510 --enable-libxml2 Use libxml2 instead of Expat
1511 --disable-docs Don't build and install documentation
1512
1513 Optional Packages:
1514 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1515 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1516 --with-pkgconfigdir pkg-config installation directory
1517 ['${libdir}/pkgconfig']
1518 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1519 both]
1520 --with-aix-soname=aix|svr4|both
1521 shared library versioning (aka "SONAME") variant to
1522 provide on AIX, [default=aix].
1523 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1524 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1525 compiler's sysroot if not specified).
1526 --with-arch=ARCH Force architecture to ARCH
1527 --with-libiconv=DIR Use libiconv in DIR
1528 --with-libiconv-includes=DIR
1529 Use libiconv includes in DIR
1530 --with-libiconv-lib=DIR Use libiconv library in DIR
1531 --with-expat=DIR Use Expat in DIR
1532 --with-expat-includes=DIR
1533 Use Expat includes in DIR
1534 --with-expat-lib=DIR
1535 --with-default-hinting=NAME
1536 Enable your preferred hinting configuration
1537 (none/slight/medium/full) [default=slight]
1538 --with-default-fonts=DIR
1539 Use fonts from DIR when config is busted
1540 --with-add-fonts=DIR1,DIR2,...
1541 Find additional fonts in DIR1,DIR2,...
1542 --with-cache-dir=DIR Use DIR to store cache files
1543 [default=LOCALSTATEDIR/cache/fontconfig]
1544 --with-templatedir=DIR Use DIR to store the configuration template files
1545 [default=DATADIR/fontconfig/conf.avail]
1546 --with-baseconfigdir=DIR
1547 Use DIR to store the base configuration files
1548 [default=SYSCONFDIR/fonts]
1549 --with-configdir=DIR Use DIR to store active configuration files
1550 [default=BASECONFIGDIR/conf.d]
1551 --with-xmldir=DIR Use DIR to store XML schema files
1552 [default=DATADIR/xml/fontconfig]
1553
1554 Some influential environment variables:
1555 CC C compiler command
1556 CFLAGS C compiler flags
1557 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1558 nonstandard directory <lib dir>
1559 LIBS libraries to pass to the linker, e.g. -l<library>
1560 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1561 you have headers in a nonstandard directory <include dir>
1562 CPP C preprocessor
1563 PKG_CONFIG path to pkg-config utility
1564 PKG_CONFIG_PATH
1565 directories to add to pkg-config's search path
1566 PKG_CONFIG_LIBDIR
1567 path overriding pkg-config's built-in search path
1568 PYTHON the Python interpreter
1569 LT_SYS_LIBRARY_PATH
1570 User-defined run-time library search path.
1571 CC_FOR_BUILD
1572 build system C compiler
1573 FREETYPE_CFLAGS
1574 C compiler flags for FREETYPE, overriding pkg-config
1575 FREETYPE_LIBS
1576 linker flags for FREETYPE, overriding pkg-config
1577 EXPAT_CFLAGS
1578 C compiler flags for EXPAT, overriding pkg-config
1579 EXPAT_LIBS linker flags for EXPAT, overriding pkg-config
1580 LIBXML2_CFLAGS
1581 C compiler flags for LIBXML2, overriding pkg-config
1582 LIBXML2_LIBS
1583 linker flags for LIBXML2, overriding pkg-config
1584
1585 Use these variables to override the choices made by `configure' or to help
1586 it to find libraries and programs with nonstandard names/locations.
1587
1588 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1589 _ACEOF
1590 ac_status=$?
1591 fi
1592
1593 if test "$ac_init_help" = "recursive"; then
1594 # If there are subdirs, report their specific --help.
1595 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1596 test -d "$ac_dir" ||
1597 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1598 continue
1599 ac_builddir=.
1600
1601 case "$ac_dir" in
1602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1603 *)
1604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1605 # A ".." for each directory in $ac_dir_suffix.
1606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1607 case $ac_top_builddir_sub in
1608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1610 esac ;;
1611 esac
1612 ac_abs_top_builddir=$ac_pwd
1613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1614 # for backward compatibility:
1615 ac_top_builddir=$ac_top_build_prefix
1616
1617 case $srcdir in
1618 .) # We are building in place.
1619 ac_srcdir=.
1620 ac_top_srcdir=$ac_top_builddir_sub
1621 ac_abs_top_srcdir=$ac_pwd ;;
1622 [\\/]* | ?:[\\/]* ) # Absolute name.
1623 ac_srcdir=$srcdir$ac_dir_suffix;
1624 ac_top_srcdir=$srcdir
1625 ac_abs_top_srcdir=$srcdir ;;
1626 *) # Relative name.
1627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1628 ac_top_srcdir=$ac_top_build_prefix$srcdir
1629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1630 esac
1631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1632
1633 cd "$ac_dir" || { ac_status=$?; continue; }
1634 # Check for guested configure.
1635 if test -f "$ac_srcdir/configure.gnu"; then
1636 echo &&
1637 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1638 elif test -f "$ac_srcdir/configure"; then
1639 echo &&
1640 $SHELL "$ac_srcdir/configure" --help=recursive
1641 else
1642 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1643 fi || ac_status=$?
1644 cd "$ac_pwd" || { ac_status=$?; break; }
1645 done
1646 fi
1647
1648 test -n "$ac_init_help" && exit $ac_status
1649 if $ac_init_version; then
1650 cat <<\_ACEOF
1651 fontconfig configure 2.12.4
1652 generated by GNU Autoconf 2.69
1653
1654 Copyright (C) 2012 Free Software Foundation, Inc.
1655 This configure script is free software; the Free Software Foundation
1656 gives unlimited permission to copy, distribute and modify it.
1657 _ACEOF
1658 exit
1659 fi
1660
1661 ## ------------------------ ##
1662 ## Autoconf initialization. ##
1663 ## ------------------------ ##
1664
1665 # ac_fn_c_try_compile LINENO
1666 # --------------------------
1667 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_compile ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 rm -f conftest.$ac_objext
1672 if { { ac_try="$ac_compile"
1673 case "(($ac_try" in
1674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1675 *) ac_try_echo=$ac_try;;
1676 esac
1677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1678 $as_echo "$ac_try_echo"; } >&5
1679 (eval "$ac_compile") 2>conftest.err
1680 ac_status=$?
1681 if test -s conftest.err; then
1682 grep -v '^ *+' conftest.err >conftest.er1
1683 cat conftest.er1 >&5
1684 mv -f conftest.er1 conftest.err
1685 fi
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && {
1688 test -z "$ac_c_werror_flag" ||
1689 test ! -s conftest.err
1690 } && test -s conftest.$ac_objext; then :
1691 ac_retval=0
1692 else
1693 $as_echo "$as_me: failed program was:" >&5
1694 sed 's/^/| /' conftest.$ac_ext >&5
1695
1696 ac_retval=1
1697 fi
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1699 as_fn_set_status $ac_retval
1700
1701 } # ac_fn_c_try_compile
1702
1703 # ac_fn_c_try_cpp LINENO
1704 # ----------------------
1705 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1706 ac_fn_c_try_cpp ()
1707 {
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_cpp conftest.$ac_ext"
1710 case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713 esac
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1717 ac_status=$?
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1722 fi
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } > conftest.i && {
1725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 }; then :
1728 ac_retval=0
1729 else
1730 $as_echo "$as_me: failed program was:" >&5
1731 sed 's/^/| /' conftest.$ac_ext >&5
1732
1733 ac_retval=1
1734 fi
1735 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1736 as_fn_set_status $ac_retval
1737
1738 } # ac_fn_c_try_cpp
1739
1740 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1741 # -------------------------------------------------------
1742 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1743 # the include files in INCLUDES and setting the cache variable VAR
1744 # accordingly.
1745 ac_fn_c_check_header_mongrel ()
1746 {
1747 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1748 if eval \${$3+:} false; then :
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753 fi
1754 eval ac_res=\$$3
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1756 $as_echo "$ac_res" >&6; }
1757 else
1758 # Is the header compilable?
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1760 $as_echo_n "checking $2 usability... " >&6; }
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1763 $4
1764 #include <$2>
1765 _ACEOF
1766 if ac_fn_c_try_compile "$LINENO"; then :
1767 ac_header_compiler=yes
1768 else
1769 ac_header_compiler=no
1770 fi
1771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1773 $as_echo "$ac_header_compiler" >&6; }
1774
1775 # Is the header present?
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1777 $as_echo_n "checking $2 presence... " >&6; }
1778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779 /* end confdefs.h. */
1780 #include <$2>
1781 _ACEOF
1782 if ac_fn_c_try_cpp "$LINENO"; then :
1783 ac_header_preproc=yes
1784 else
1785 ac_header_preproc=no
1786 fi
1787 rm -f conftest.err conftest.i conftest.$ac_ext
1788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1789 $as_echo "$ac_header_preproc" >&6; }
1790
1791 # So? What about this header?
1792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1793 yes:no: )
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1795 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1797 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1798 ;;
1799 no:yes:* )
1800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1801 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1803 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1805 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1807 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1809 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1810 ( $as_echo "## ---------------------------------------------------------------------------- ##
1811 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1812 ## ---------------------------------------------------------------------------- ##"
1813 ) | sed "s/^/$as_me: WARNING: /" >&2
1814 ;;
1815 esac
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817 $as_echo_n "checking for $2... " >&6; }
1818 if eval \${$3+:} false; then :
1819 $as_echo_n "(cached) " >&6
1820 else
1821 eval "$3=\$ac_header_compiler"
1822 fi
1823 eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825 $as_echo "$ac_res" >&6; }
1826 fi
1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1828
1829 } # ac_fn_c_check_header_mongrel
1830
1831 # ac_fn_c_try_run LINENO
1832 # ----------------------
1833 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1834 # that executables *can* be run.
1835 ac_fn_c_try_run ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if { { ac_try="$ac_link"
1839 case "(($ac_try" in
1840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1841 *) ac_try_echo=$ac_try;;
1842 esac
1843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1844 $as_echo "$ac_try_echo"; } >&5
1845 (eval "$ac_link") 2>&5
1846 ac_status=$?
1847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1848 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1849 { { case "(($ac_try" in
1850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1851 *) ac_try_echo=$ac_try;;
1852 esac
1853 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_try") 2>&5
1856 ac_status=$?
1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1858 test $ac_status = 0; }; }; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: program exited with status $ac_status" >&5
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=$ac_status
1866 fi
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 as_fn_set_status $ac_retval
1870
1871 } # ac_fn_c_try_run
1872
1873 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists and can be compiled using the include files in
1876 # INCLUDES, setting the cache variable VAR accordingly.
1877 ac_fn_c_check_header_compile ()
1878 {
1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881 $as_echo_n "checking for $2... " >&6; }
1882 if eval \${$3+:} false; then :
1883 $as_echo_n "(cached) " >&6
1884 else
1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886 /* end confdefs.h. */
1887 $4
1888 #include <$2>
1889 _ACEOF
1890 if ac_fn_c_try_compile "$LINENO"; then :
1891 eval "$3=yes"
1892 else
1893 eval "$3=no"
1894 fi
1895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1901
1902 } # ac_fn_c_check_header_compile
1903
1904 # ac_fn_c_try_link LINENO
1905 # -----------------------
1906 # Try to link conftest.$ac_ext, and return whether this succeeded.
1907 ac_fn_c_try_link ()
1908 {
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 rm -f conftest.$ac_objext conftest$ac_exeext
1911 if { { ac_try="$ac_link"
1912 case "(($ac_try" in
1913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1914 *) ac_try_echo=$ac_try;;
1915 esac
1916 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1917 $as_echo "$ac_try_echo"; } >&5
1918 (eval "$ac_link") 2>conftest.err
1919 ac_status=$?
1920 if test -s conftest.err; then
1921 grep -v '^ *+' conftest.err >conftest.er1
1922 cat conftest.er1 >&5
1923 mv -f conftest.er1 conftest.err
1924 fi
1925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1926 test $ac_status = 0; } && {
1927 test -z "$ac_c_werror_flag" ||
1928 test ! -s conftest.err
1929 } && test -s conftest$ac_exeext && {
1930 test "$cross_compiling" = yes ||
1931 test -x conftest$ac_exeext
1932 }; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: failed program was:" >&5
1936 sed 's/^/| /' conftest.$ac_ext >&5
1937
1938 ac_retval=1
1939 fi
1940 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1941 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1942 # interfere with the next link command; also delete a directory that is
1943 # left behind by Apple's compiler. We do this before executing the actions.
1944 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1947
1948 } # ac_fn_c_try_link
1949
1950 # ac_fn_c_check_func LINENO FUNC VAR
1951 # ----------------------------------
1952 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1953 ac_fn_c_check_func ()
1954 {
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1957 $as_echo_n "checking for $2... " >&6; }
1958 if eval \${$3+:} false; then :
1959 $as_echo_n "(cached) " >&6
1960 else
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1965 #define $2 innocuous_$2
1966
1967 /* System header to define __stub macros and hopefully few prototypes,
1968 which can conflict with char $2 (); below.
1969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1970 <limits.h> exists even on freestanding compilers. */
1971
1972 #ifdef __STDC__
1973 # include <limits.h>
1974 #else
1975 # include <assert.h>
1976 #endif
1977
1978 #undef $2
1979
1980 /* Override any GCC internal prototype to avoid an error.
1981 Use char because int might match the return type of a GCC
1982 builtin and then its argument prototype would still apply. */
1983 #ifdef __cplusplus
1984 extern "C"
1985 #endif
1986 char $2 ();
1987 /* The GNU C library defines this for functions which it implements
1988 to always fail with ENOSYS. Some functions are actually named
1989 something starting with __ and the normal name is an alias. */
1990 #if defined __stub_$2 || defined __stub___$2
1991 choke me
1992 #endif
1993
1994 int
1995 main ()
1996 {
1997 return $2 ();
1998 ;
1999 return 0;
2000 }
2001 _ACEOF
2002 if ac_fn_c_try_link "$LINENO"; then :
2003 eval "$3=yes"
2004 else
2005 eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext \
2008 conftest$ac_exeext conftest.$ac_ext
2009 fi
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2014
2015 } # ac_fn_c_check_func
2016
2017 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2018 # ---------------------------------------------
2019 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2020 # accordingly.
2021 ac_fn_c_check_decl ()
2022 {
2023 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2024 as_decl_name=`echo $2|sed 's/ *(.*//'`
2025 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2027 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2028 if eval \${$3+:} false; then :
2029 $as_echo_n "(cached) " >&6
2030 else
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2033 $4
2034 int
2035 main ()
2036 {
2037 #ifndef $as_decl_name
2038 #ifdef __cplusplus
2039 (void) $as_decl_use;
2040 #else
2041 (void) $as_decl_name;
2042 #endif
2043 #endif
2044
2045 ;
2046 return 0;
2047 }
2048 _ACEOF
2049 if ac_fn_c_try_compile "$LINENO"; then :
2050 eval "$3=yes"
2051 else
2052 eval "$3=no"
2053 fi
2054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060
2061 } # ac_fn_c_check_decl
2062
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if eval \${$3+:} false; then :
2073 $as_echo_n "(cached) " >&6
2074 else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 if (sizeof ($2))
2083 return 0;
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof (($2)))
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102
2103 else
2104 eval "$3=yes"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115 } # ac_fn_c_check_type
2116
2117 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2118 # --------------------------------------------
2119 # Tries to find the compile-time value of EXPR in a program that includes
2120 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2121 # computed
2122 ac_fn_c_compute_int ()
2123 {
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2125 if test "$cross_compiling" = yes; then
2126 # Depending upon the size, compute the lo and hi bounds.
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128 /* end confdefs.h. */
2129 $4
2130 int
2131 main ()
2132 {
2133 static int test_array [1 - 2 * !(($2) >= 0)];
2134 test_array [0] = 0;
2135 return test_array [0];
2136
2137 ;
2138 return 0;
2139 }
2140 _ACEOF
2141 if ac_fn_c_try_compile "$LINENO"; then :
2142 ac_lo=0 ac_mid=0
2143 while :; do
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2146 $4
2147 int
2148 main ()
2149 {
2150 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2151 test_array [0] = 0;
2152 return test_array [0];
2153
2154 ;
2155 return 0;
2156 }
2157 _ACEOF
2158 if ac_fn_c_try_compile "$LINENO"; then :
2159 ac_hi=$ac_mid; break
2160 else
2161 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2162 if test $ac_lo -le $ac_mid; then
2163 ac_lo= ac_hi=
2164 break
2165 fi
2166 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2167 fi
2168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2169 done
2170 else
2171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2172 /* end confdefs.h. */
2173 $4
2174 int
2175 main ()
2176 {
2177 static int test_array [1 - 2 * !(($2) < 0)];
2178 test_array [0] = 0;
2179 return test_array [0];
2180
2181 ;
2182 return 0;
2183 }
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2186 ac_hi=-1 ac_mid=-1
2187 while :; do
2188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2189 /* end confdefs.h. */
2190 $4
2191 int
2192 main ()
2193 {
2194 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2195 test_array [0] = 0;
2196 return test_array [0];
2197
2198 ;
2199 return 0;
2200 }
2201 _ACEOF
2202 if ac_fn_c_try_compile "$LINENO"; then :
2203 ac_lo=$ac_mid; break
2204 else
2205 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2206 if test $ac_mid -le $ac_hi; then
2207 ac_lo= ac_hi=
2208 break
2209 fi
2210 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2211 fi
2212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2213 done
2214 else
2215 ac_lo= ac_hi=
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 fi
2219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2220 # Binary search between lo and hi bounds.
2221 while test "x$ac_lo" != "x$ac_hi"; do
2222 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2225 $4
2226 int
2227 main ()
2228 {
2229 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2230 test_array [0] = 0;
2231 return test_array [0];
2232
2233 ;
2234 return 0;
2235 }
2236 _ACEOF
2237 if ac_fn_c_try_compile "$LINENO"; then :
2238 ac_hi=$ac_mid
2239 else
2240 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2241 fi
2242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 done
2244 case $ac_lo in #((
2245 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2246 '') ac_retval=1 ;;
2247 esac
2248 else
2249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2250 /* end confdefs.h. */
2251 $4
2252 static long int longval () { return $2; }
2253 static unsigned long int ulongval () { return $2; }
2254 #include <stdio.h>
2255 #include <stdlib.h>
2256 int
2257 main ()
2258 {
2259
2260 FILE *f = fopen ("conftest.val", "w");
2261 if (! f)
2262 return 1;
2263 if (($2) < 0)
2264 {
2265 long int i = longval ();
2266 if (i != ($2))
2267 return 1;
2268 fprintf (f, "%ld", i);
2269 }
2270 else
2271 {
2272 unsigned long int i = ulongval ();
2273 if (i != ($2))
2274 return 1;
2275 fprintf (f, "%lu", i);
2276 }
2277 /* Do not output a trailing newline, as this causes \r\n confusion
2278 on some platforms. */
2279 return ferror (f) || fclose (f) != 0;
2280
2281 ;
2282 return 0;
2283 }
2284 _ACEOF
2285 if ac_fn_c_try_run "$LINENO"; then :
2286 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2287 else
2288 ac_retval=1
2289 fi
2290 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2291 conftest.$ac_objext conftest.beam conftest.$ac_ext
2292 rm -f conftest.val
2293
2294 fi
2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2296 as_fn_set_status $ac_retval
2297
2298 } # ac_fn_c_compute_int
2299
2300 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2301 # ----------------------------------------------------
2302 # Tries to find if the field MEMBER exists in type AGGR, after including
2303 # INCLUDES, setting cache variable VAR accordingly.
2304 ac_fn_c_check_member ()
2305 {
2306 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2308 $as_echo_n "checking for $2.$3... " >&6; }
2309 if eval \${$4+:} false; then :
2310 $as_echo_n "(cached) " >&6
2311 else
2312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2313 /* end confdefs.h. */
2314 $5
2315 int
2316 main ()
2317 {
2318 static $2 ac_aggr;
2319 if (ac_aggr.$3)
2320 return 0;
2321 ;
2322 return 0;
2323 }
2324 _ACEOF
2325 if ac_fn_c_try_compile "$LINENO"; then :
2326 eval "$4=yes"
2327 else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329 /* end confdefs.h. */
2330 $5
2331 int
2332 main ()
2333 {
2334 static $2 ac_aggr;
2335 if (sizeof ac_aggr.$3)
2336 return 0;
2337 ;
2338 return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342 eval "$4=yes"
2343 else
2344 eval "$4=no"
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2349 fi
2350 eval ac_res=\$$4
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2352 $as_echo "$ac_res" >&6; }
2353 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2354
2355 } # ac_fn_c_check_member
2356 cat >config.log <<_ACEOF
2357 This file contains any messages produced by compilers while
2358 running configure, to aid debugging if configure makes a mistake.
2359
2360 It was created by fontconfig $as_me 2.12.4, which was
2361 generated by GNU Autoconf 2.69. Invocation command line was
2362
2363 $ $0 $@
2364
2365 _ACEOF
2366 exec 5>>config.log
2367 {
2368 cat <<_ASUNAME
2369 ## --------- ##
2370 ## Platform. ##
2371 ## --------- ##
2372
2373 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2374 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2375 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2376 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2377 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2378
2379 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2380 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2381
2382 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2383 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2384 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2385 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2386 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2387 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2388 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2389
2390 _ASUNAME
2391
2392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2393 for as_dir in $PATH
2394 do
2395 IFS=$as_save_IFS
2396 test -z "$as_dir" && as_dir=.
2397 $as_echo "PATH: $as_dir"
2398 done
2399 IFS=$as_save_IFS
2400
2401 } >&5
2402
2403 cat >&5 <<_ACEOF
2404
2405
2406 ## ----------- ##
2407 ## Core tests. ##
2408 ## ----------- ##
2409
2410 _ACEOF
2411
2412
2413 # Keep a trace of the command line.
2414 # Strip out --no-create and --no-recursion so they do not pile up.
2415 # Strip out --silent because we don't want to record it for future runs.
2416 # Also quote any args containing shell meta-characters.
2417 # Make two passes to allow for proper duplicate-argument suppression.
2418 ac_configure_args=
2419 ac_configure_args0=
2420 ac_configure_args1=
2421 ac_must_keep_next=false
2422 for ac_pass in 1 2
2423 do
2424 for ac_arg
2425 do
2426 case $ac_arg in
2427 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2428 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2429 | -silent | --silent | --silen | --sile | --sil)
2430 continue ;;
2431 *\'*)
2432 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2433 esac
2434 case $ac_pass in
2435 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2436 2)
2437 as_fn_append ac_configure_args1 " '$ac_arg'"
2438 if test $ac_must_keep_next = true; then
2439 ac_must_keep_next=false # Got value, back to normal.
2440 else
2441 case $ac_arg in
2442 *=* | --config-cache | -C | -disable-* | --disable-* \
2443 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2444 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2445 | -with-* | --with-* | -without-* | --without-* | --x)
2446 case "$ac_configure_args0 " in
2447 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2448 esac
2449 ;;
2450 -* ) ac_must_keep_next=true ;;
2451 esac
2452 fi
2453 as_fn_append ac_configure_args " '$ac_arg'"
2454 ;;
2455 esac
2456 done
2457 done
2458 { ac_configure_args0=; unset ac_configure_args0;}
2459 { ac_configure_args1=; unset ac_configure_args1;}
2460
2461 # When interrupted or exit'd, cleanup temporary files, and complete
2462 # config.log. We remove comments because anyway the quotes in there
2463 # would cause problems or look ugly.
2464 # WARNING: Use '\'' to represent an apostrophe within the trap.
2465 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2466 trap 'exit_status=$?
2467 # Save into config.log some information that might help in debugging.
2468 {
2469 echo
2470
2471 $as_echo "## ---------------- ##
2472 ## Cache variables. ##
2473 ## ---------------- ##"
2474 echo
2475 # The following way of writing the cache mishandles newlines in values,
2476 (
2477 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2478 eval ac_val=\$$ac_var
2479 case $ac_val in #(
2480 *${as_nl}*)
2481 case $ac_var in #(
2482 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2483 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2484 esac
2485 case $ac_var in #(
2486 _ | IFS | as_nl) ;; #(
2487 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2488 *) { eval $ac_var=; unset $ac_var;} ;;
2489 esac ;;
2490 esac
2491 done
2492 (set) 2>&1 |
2493 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2494 *${as_nl}ac_space=\ *)
2495 sed -n \
2496 "s/'\''/'\''\\\\'\'''\''/g;
2497 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2498 ;; #(
2499 *)
2500 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2501 ;;
2502 esac |
2503 sort
2504 )
2505 echo
2506
2507 $as_echo "## ----------------- ##
2508 ## Output variables. ##
2509 ## ----------------- ##"
2510 echo
2511 for ac_var in $ac_subst_vars
2512 do
2513 eval ac_val=\$$ac_var
2514 case $ac_val in
2515 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2516 esac
2517 $as_echo "$ac_var='\''$ac_val'\''"
2518 done | sort
2519 echo
2520
2521 if test -n "$ac_subst_files"; then
2522 $as_echo "## ------------------- ##
2523 ## File substitutions. ##
2524 ## ------------------- ##"
2525 echo
2526 for ac_var in $ac_subst_files
2527 do
2528 eval ac_val=\$$ac_var
2529 case $ac_val in
2530 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2531 esac
2532 $as_echo "$ac_var='\''$ac_val'\''"
2533 done | sort
2534 echo
2535 fi
2536
2537 if test -s confdefs.h; then
2538 $as_echo "## ----------- ##
2539 ## confdefs.h. ##
2540 ## ----------- ##"
2541 echo
2542 cat confdefs.h
2543 echo
2544 fi
2545 test "$ac_signal" != 0 &&
2546 $as_echo "$as_me: caught signal $ac_signal"
2547 $as_echo "$as_me: exit $exit_status"
2548 } >&5
2549 rm -f core *.core core.conftest.* &&
2550 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2551 exit $exit_status
2552 ' 0
2553 for ac_signal in 1 2 13 15; do
2554 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2555 done
2556 ac_signal=0
2557
2558 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2559 rm -f -r conftest* confdefs.h
2560
2561 $as_echo "/* confdefs.h */" > confdefs.h
2562
2563 # Predefined preprocessor variables.
2564
2565 cat >>confdefs.h <<_ACEOF
2566 #define PACKAGE_NAME "$PACKAGE_NAME"
2567 _ACEOF
2568
2569 cat >>confdefs.h <<_ACEOF
2570 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2571 _ACEOF
2572
2573 cat >>confdefs.h <<_ACEOF
2574 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2575 _ACEOF
2576
2577 cat >>confdefs.h <<_ACEOF
2578 #define PACKAGE_STRING "$PACKAGE_STRING"
2579 _ACEOF
2580
2581 cat >>confdefs.h <<_ACEOF
2582 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2583 _ACEOF
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_URL "$PACKAGE_URL"
2587 _ACEOF
2588
2589
2590 # Let the site file select an alternate cache file if it wants to.
2591 # Prefer an explicitly selected file to automatically selected ones.
2592 ac_site_file1=NONE
2593 ac_site_file2=NONE
2594 if test -n "$CONFIG_SITE"; then
2595 # We do not want a PATH search for config.site.
2596 case $CONFIG_SITE in #((
2597 -*) ac_site_file1=./$CONFIG_SITE;;
2598 */*) ac_site_file1=$CONFIG_SITE;;
2599 *) ac_site_file1=./$CONFIG_SITE;;
2600 esac
2601 elif test "x$prefix" != xNONE; then
2602 ac_site_file1=$prefix/share/config.site
2603 ac_site_file2=$prefix/etc/config.site
2604 else
2605 ac_site_file1=$ac_default_prefix/share/config.site
2606 ac_site_file2=$ac_default_prefix/etc/config.site
2607 fi
2608 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2609 do
2610 test "x$ac_site_file" = xNONE && continue
2611 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2613 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2614 sed 's/^/| /' "$ac_site_file" >&5
2615 . "$ac_site_file" \
2616 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2617 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2618 as_fn_error $? "failed to load site script $ac_site_file
2619 See \`config.log' for more details" "$LINENO" 5; }
2620 fi
2621 done
2622
2623 if test -r "$cache_file"; then
2624 # Some versions of bash will fail to source /dev/null (special files
2625 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2626 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2628 $as_echo "$as_me: loading cache $cache_file" >&6;}
2629 case $cache_file in
2630 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2631 *) . "./$cache_file";;
2632 esac
2633 fi
2634 else
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2636 $as_echo "$as_me: creating cache $cache_file" >&6;}
2637 >$cache_file
2638 fi
2639
2640 as_fn_append ac_header_list " stdlib.h"
2641 as_fn_append ac_header_list " unistd.h"
2642 as_fn_append ac_header_list " sys/param.h"
2643 # Check that the precious variables saved in the cache have kept the same
2644 # value.
2645 ac_cache_corrupted=false
2646 for ac_var in $ac_precious_vars; do
2647 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2648 eval ac_new_set=\$ac_env_${ac_var}_set
2649 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2650 eval ac_new_val=\$ac_env_${ac_var}_value
2651 case $ac_old_set,$ac_new_set in
2652 set,)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2654 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2655 ac_cache_corrupted=: ;;
2656 ,set)
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2658 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2659 ac_cache_corrupted=: ;;
2660 ,);;
2661 *)
2662 if test "x$ac_old_val" != "x$ac_new_val"; then
2663 # differences in whitespace do not lead to failure.
2664 ac_old_val_w=`echo x $ac_old_val`
2665 ac_new_val_w=`echo x $ac_new_val`
2666 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2668 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2669 ac_cache_corrupted=:
2670 else
2671 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2672 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2673 eval $ac_var=\$ac_old_val
2674 fi
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2676 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2678 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2679 fi;;
2680 esac
2681 # Pass precious variables to config.status.
2682 if test "$ac_new_set" = set; then
2683 case $ac_new_val in
2684 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2685 *) ac_arg=$ac_var=$ac_new_val ;;
2686 esac
2687 case " $ac_configure_args " in
2688 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2689 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2690 esac
2691 fi
2692 done
2693 if $ac_cache_corrupted; then
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2695 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2697 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2698 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2699 fi
2700 ## -------------------- ##
2701 ## Main body of script. ##
2702 ## -------------------- ##
2703
2704 ac_ext=c
2705 ac_cpp='$CPP $CPPFLAGS'
2706 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2707 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2708 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2709
2710
2711 am__api_version='1.15'
2712
2713 ac_aux_dir=
2714 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2715 if test -f "$ac_dir/install-sh"; then
2716 ac_aux_dir=$ac_dir
2717 ac_install_sh="$ac_aux_dir/install-sh -c"
2718 break
2719 elif test -f "$ac_dir/install.sh"; then
2720 ac_aux_dir=$ac_dir
2721 ac_install_sh="$ac_aux_dir/install.sh -c"
2722 break
2723 elif test -f "$ac_dir/shtool"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/shtool install -c"
2726 break
2727 fi
2728 done
2729 if test -z "$ac_aux_dir"; then
2730 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2731 fi
2732
2733 # These three variables are undocumented and unsupported,
2734 # and are intended to be withdrawn in a future Autoconf release.
2735 # They can cause serious problems if a builder's source tree is in a directory
2736 # whose full name contains unusual characters.
2737 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2738 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2739 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2740
2741
2742 # Find a good install program. We prefer a C program (faster),
2743 # so one script is as good as another. But avoid the broken or
2744 # incompatible versions:
2745 # SysV /etc/install, /usr/sbin/install
2746 # SunOS /usr/etc/install
2747 # IRIX /sbin/install
2748 # AIX /bin/install
2749 # AmigaOS /C/install, which installs bootblocks on floppy discs
2750 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2751 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2752 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2753 # OS/2's system install, which has a completely different semantic
2754 # ./install, which can be erroneously created by make from ./install.sh.
2755 # Reject install programs that cannot install multiple files.
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2757 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2758 if test -z "$INSTALL"; then
2759 if ${ac_cv_path_install+:} false; then :
2760 $as_echo_n "(cached) " >&6
2761 else
2762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763 for as_dir in $PATH
2764 do
2765 IFS=$as_save_IFS
2766 test -z "$as_dir" && as_dir=.
2767 # Account for people who put trailing slashes in PATH elements.
2768 case $as_dir/ in #((
2769 ./ | .// | /[cC]/* | \
2770 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2771 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2772 /usr/ucb/* ) ;;
2773 *)
2774 # OSF1 and SCO ODT 3.0 have their own names for install.
2775 # Don't use installbsd from OSF since it installs stuff as root
2776 # by default.
2777 for ac_prog in ginstall scoinst install; do
2778 for ac_exec_ext in '' $ac_executable_extensions; do
2779 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2780 if test $ac_prog = install &&
2781 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2782 # AIX install. It has an incompatible calling convention.
2783 :
2784 elif test $ac_prog = install &&
2785 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2786 # program-specific install script used by HP pwplus--don't use.
2787 :
2788 else
2789 rm -rf conftest.one conftest.two conftest.dir
2790 echo one > conftest.one
2791 echo two > conftest.two
2792 mkdir conftest.dir
2793 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2794 test -s conftest.one && test -s conftest.two &&
2795 test -s conftest.dir/conftest.one &&
2796 test -s conftest.dir/conftest.two
2797 then
2798 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2799 break 3
2800 fi
2801 fi
2802 fi
2803 done
2804 done
2805 ;;
2806 esac
2807
2808 done
2809 IFS=$as_save_IFS
2810
2811 rm -rf conftest.one conftest.two conftest.dir
2812
2813 fi
2814 if test "${ac_cv_path_install+set}" = set; then
2815 INSTALL=$ac_cv_path_install
2816 else
2817 # As a last resort, use the slow shell script. Don't cache a
2818 # value for INSTALL within a source directory, because that will
2819 # break other packages using the cache if that directory is
2820 # removed, or if the value is a relative name.
2821 INSTALL=$ac_install_sh
2822 fi
2823 fi
2824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2825 $as_echo "$INSTALL" >&6; }
2826
2827 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2828 # It thinks the first close brace ends the variable substitution.
2829 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2830
2831 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2832
2833 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2834
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2836 $as_echo_n "checking whether build environment is sane... " >&6; }
2837 # Reject unsafe characters in $srcdir or the absolute working directory
2838 # name. Accept space and tab only in the latter.
2839 am_lf='
2840 '
2841 case `pwd` in
2842 *[\\\"\#\$\&\'\`$am_lf]*)
2843 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2844 esac
2845 case $srcdir in
2846 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2847 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2848 esac
2849
2850 # Do 'set' in a subshell so we don't clobber the current shell's
2851 # arguments. Must try -L first in case configure is actually a
2852 # symlink; some systems play weird games with the mod time of symlinks
2853 # (eg FreeBSD returns the mod time of the symlink's containing
2854 # directory).
2855 if (
2856 am_has_slept=no
2857 for am_try in 1 2; do
2858 echo "timestamp, slept: $am_has_slept" > conftest.file
2859 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2860 if test "$*" = "X"; then
2861 # -L didn't work.
2862 set X `ls -t "$srcdir/configure" conftest.file`
2863 fi
2864 if test "$*" != "X $srcdir/configure conftest.file" \
2865 && test "$*" != "X conftest.file $srcdir/configure"; then
2866
2867 # If neither matched, then we have a broken ls. This can happen
2868 # if, for instance, CONFIG_SHELL is bash and it inherits a
2869 # broken ls alias from the environment. This has actually
2870 # happened. Such a system could not be considered "sane".
2871 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2872 alias in your environment" "$LINENO" 5
2873 fi
2874 if test "$2" = conftest.file || test $am_try -eq 2; then
2875 break
2876 fi
2877 # Just in case.
2878 sleep 1
2879 am_has_slept=yes
2880 done
2881 test "$2" = conftest.file
2882 )
2883 then
2884 # Ok.
2885 :
2886 else
2887 as_fn_error $? "newly created file is older than distributed files!
2888 Check your system clock" "$LINENO" 5
2889 fi
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2891 $as_echo "yes" >&6; }
2892 # If we didn't sleep, we still need to ensure time stamps of config.status and
2893 # generated files are strictly newer.
2894 am_sleep_pid=
2895 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2896 ( sleep 1 ) &
2897 am_sleep_pid=$!
2898 fi
2899
2900 rm -f conftest.file
2901
2902 test "$program_prefix" != NONE &&
2903 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2904 # Use a double $ so make ignores it.
2905 test "$program_suffix" != NONE &&
2906 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2907 # Double any \ or $.
2908 # By default was `s,x,x', remove it if useless.
2909 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2910 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2911
2912 # Expand $ac_aux_dir to an absolute path.
2913 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2914
2915 if test x"${MISSING+set}" != xset; then
2916 case $am_aux_dir in
2917 *\ * | *\ *)
2918 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2919 *)
2920 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2921 esac
2922 fi
2923 # Use eval to expand $SHELL
2924 if eval "$MISSING --is-lightweight"; then
2925 am_missing_run="$MISSING "
2926 else
2927 am_missing_run=
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2929 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2930 fi
2931
2932 if test x"${install_sh+set}" != xset; then
2933 case $am_aux_dir in
2934 *\ * | *\ *)
2935 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2936 *)
2937 install_sh="\${SHELL} $am_aux_dir/install-sh"
2938 esac
2939 fi
2940
2941 # Installed binaries are usually stripped using 'strip' when the user
2942 # run "make install-strip". However 'strip' might not be the right
2943 # tool to use in cross-compilation environments, therefore Automake
2944 # will honor the 'STRIP' environment variable to overrule this program.
2945 if test "$cross_compiling" != no; then
2946 if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2948 set dummy ${ac_tool_prefix}strip; ac_word=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_STRIP+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test -n "$STRIP"; then
2955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2956 else
2957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958 for as_dir in $PATH
2959 do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
2962 for ac_exec_ext in '' $ac_executable_extensions; do
2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2966 break 2
2967 fi
2968 done
2969 done
2970 IFS=$as_save_IFS
2971
2972 fi
2973 fi
2974 STRIP=$ac_cv_prog_STRIP
2975 if test -n "$STRIP"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2977 $as_echo "$STRIP" >&6; }
2978 else
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2981 fi
2982
2983
2984 fi
2985 if test -z "$ac_cv_prog_STRIP"; then
2986 ac_ct_STRIP=$STRIP
2987 # Extract the first word of "strip", so it can be a program name with args.
2988 set dummy strip; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$ac_ct_STRIP"; then
2995 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
2999 do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_ac_ct_STRIP="strip"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3007 fi
3008 done
3009 done
3010 IFS=$as_save_IFS
3011
3012 fi
3013 fi
3014 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3015 if test -n "$ac_ct_STRIP"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3017 $as_echo "$ac_ct_STRIP" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 fi
3022
3023 if test "x$ac_ct_STRIP" = x; then
3024 STRIP=":"
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027 yes:)
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3030 ac_tool_warned=yes ;;
3031 esac
3032 STRIP=$ac_ct_STRIP
3033 fi
3034 else
3035 STRIP="$ac_cv_prog_STRIP"
3036 fi
3037
3038 fi
3039 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3040
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3042 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3043 if test -z "$MKDIR_P"; then
3044 if ${ac_cv_path_mkdir+:} false; then :
3045 $as_echo_n "(cached) " >&6
3046 else
3047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3048 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3049 do
3050 IFS=$as_save_IFS
3051 test -z "$as_dir" && as_dir=.
3052 for ac_prog in mkdir gmkdir; do
3053 for ac_exec_ext in '' $ac_executable_extensions; do
3054 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3055 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3056 'mkdir (GNU coreutils) '* | \
3057 'mkdir (coreutils) '* | \
3058 'mkdir (fileutils) '4.1*)
3059 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3060 break 3;;
3061 esac
3062 done
3063 done
3064 done
3065 IFS=$as_save_IFS
3066
3067 fi
3068
3069 test -d ./--version && rmdir ./--version
3070 if test "${ac_cv_path_mkdir+set}" = set; then
3071 MKDIR_P="$ac_cv_path_mkdir -p"
3072 else
3073 # As a last resort, use the slow shell script. Don't cache a
3074 # value for MKDIR_P within a source directory, because that will
3075 # break other packages using the cache if that directory is
3076 # removed, or if the value is a relative name.
3077 MKDIR_P="$ac_install_sh -d"
3078 fi
3079 fi
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3081 $as_echo "$MKDIR_P" >&6; }
3082
3083 for ac_prog in gawk mawk nawk awk
3084 do
3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
3086 set dummy $ac_prog; ac_word=$2
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3088 $as_echo_n "checking for $ac_word... " >&6; }
3089 if ${ac_cv_prog_AWK+:} false; then :
3090 $as_echo_n "(cached) " >&6
3091 else
3092 if test -n "$AWK"; then
3093 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3094 else
3095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3096 for as_dir in $PATH
3097 do
3098 IFS=$as_save_IFS
3099 test -z "$as_dir" && as_dir=.
3100 for ac_exec_ext in '' $ac_executable_extensions; do
3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3102 ac_cv_prog_AWK="$ac_prog"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106 done
3107 done
3108 IFS=$as_save_IFS
3109
3110 fi
3111 fi
3112 AWK=$ac_cv_prog_AWK
3113 if test -n "$AWK"; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3115 $as_echo "$AWK" >&6; }
3116 else
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3118 $as_echo "no" >&6; }
3119 fi
3120
3121
3122 test -n "$AWK" && break
3123 done
3124
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3126 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3127 set x ${MAKE-make}
3128 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3129 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3130 $as_echo_n "(cached) " >&6
3131 else
3132 cat >conftest.make <<\_ACEOF
3133 SHELL = /bin/sh
3134 all:
3135 @echo '@@@%%%=$(MAKE)=@@@%%%'
3136 _ACEOF
3137 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3138 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3139 *@@@%%%=?*=@@@%%%*)
3140 eval ac_cv_prog_make_${ac_make}_set=yes;;
3141 *)
3142 eval ac_cv_prog_make_${ac_make}_set=no;;
3143 esac
3144 rm -f conftest.make
3145 fi
3146 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3148 $as_echo "yes" >&6; }
3149 SET_MAKE=
3150 else
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; }
3153 SET_MAKE="MAKE=${MAKE-make}"
3154 fi
3155
3156 rm -rf .tst 2>/dev/null
3157 mkdir .tst 2>/dev/null
3158 if test -d .tst; then
3159 am__leading_dot=.
3160 else
3161 am__leading_dot=_
3162 fi
3163 rmdir .tst 2>/dev/null
3164
3165 # Check whether --enable-silent-rules was given.
3166 if test "${enable_silent_rules+set}" = set; then :
3167 enableval=$enable_silent_rules;
3168 fi
3169
3170 case $enable_silent_rules in # (((
3171 yes) AM_DEFAULT_VERBOSITY=0;;
3172 no) AM_DEFAULT_VERBOSITY=1;;
3173 *) AM_DEFAULT_VERBOSITY=1;;
3174 esac
3175 am_make=${MAKE-make}
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3177 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3178 if ${am_cv_make_support_nested_variables+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 if $as_echo 'TRUE=$(BAR$(V))
3182 BAR0=false
3183 BAR1=true
3184 V=1
3185 am__doit:
3186 @$(TRUE)
3187 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3188 am_cv_make_support_nested_variables=yes
3189 else
3190 am_cv_make_support_nested_variables=no
3191 fi
3192 fi
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3194 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3195 if test $am_cv_make_support_nested_variables = yes; then
3196 AM_V='$(V)'
3197 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3198 else
3199 AM_V=$AM_DEFAULT_VERBOSITY
3200 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3201 fi
3202 AM_BACKSLASH='\'
3203
3204 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3205 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3206 # is not polluted with repeated "-I."
3207 am__isrc=' -I$(srcdir)'
3208 # test to see if srcdir already configured
3209 if test -f $srcdir/config.status; then
3210 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3211 fi
3212 fi
3213
3214 # test whether we have cygpath
3215 if test -z "$CYGPATH_W"; then
3216 if (cygpath --version) >/dev/null 2>/dev/null; then
3217 CYGPATH_W='cygpath -w'
3218 else
3219 CYGPATH_W=echo
3220 fi
3221 fi
3222
3223
3224 # Define the identity of the package.
3225 PACKAGE='fontconfig'
3226 VERSION='2.12.4'
3227
3228
3229 cat >>confdefs.h <<_ACEOF
3230 #define PACKAGE "$PACKAGE"
3231 _ACEOF
3232
3233
3234 cat >>confdefs.h <<_ACEOF
3235 #define VERSION "$VERSION"
3236 _ACEOF
3237
3238 # Some tools Automake needs.
3239
3240 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3241
3242
3243 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3244
3245
3246 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3247
3248
3249 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3250
3251
3252 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3253
3254 # For better backward compatibility. To be removed once Automake 1.9.x
3255 # dies out for good. For more background, see:
3256 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3257 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3258 mkdir_p='$(MKDIR_P)'
3259
3260 # We need awk for the "check" target (and possibly the TAP driver). The
3261 # system "awk" is bad on some platforms.
3262 # Always define AMTAR for backward compatibility. Yes, it's still used
3263 # in the wild :-( We should find a proper way to deprecate it ...
3264 AMTAR='$${TAR-tar}'
3265
3266
3267 # We'll loop over all known methods to create a tar archive until one works.
3268 _am_tools='gnutar pax cpio none'
3269
3270 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3271
3272
3273
3274
3275
3276
3277 # POSIX will say in a future version that running "rm -f" with no argument
3278 # is OK; and we want to be able to make that assumption in our Makefile
3279 # recipes. So use an aggressive probe to check that the usage we want is
3280 # actually supported "in the wild" to an acceptable degree.
3281 # See automake bug#10828.
3282 # To make any issue more visible, cause the running configure to be aborted
3283 # by default if the 'rm' program in use doesn't match our expectations; the
3284 # user can still override this though.
3285 if rm -f && rm -fr && rm -rf; then : OK; else
3286 cat >&2 <<'END'
3287 Oops!
3288
3289 Your 'rm' program seems unable to run without file operands specified
3290 on the command line, even when the '-f' option is present. This is contrary
3291 to the behaviour of most rm programs out there, and not conforming with
3292 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3293
3294 Please tell bug-automake@gnu.org about your system, including the value
3295 of your $PATH and any error possibly output before this message. This
3296 can help us improve future automake versions.
3297
3298 END
3299 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3300 echo 'Configuration will proceed anyway, since you have set the' >&2
3301 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3302 echo >&2
3303 else
3304 cat >&2 <<'END'
3305 Aborting the configuration process, to ensure you take notice of the issue.
3306
3307 You can download and install GNU coreutils to get an 'rm' implementation
3308 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3309
3310 If you want to complete the configuration process using your problematic
3311 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3312 to "yes", and re-run configure.
3313
3314 END
3315 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3316 fi
3317 fi
3318
3319 # Check whether --enable-silent-rules was given.
3320 if test "${enable_silent_rules+set}" = set; then :
3321 enableval=$enable_silent_rules;
3322 fi
3323
3324 case $enable_silent_rules in # (((
3325 yes) AM_DEFAULT_VERBOSITY=0;;
3326 no) AM_DEFAULT_VERBOSITY=1;;
3327 *) AM_DEFAULT_VERBOSITY=0;;
3328 esac
3329 am_make=${MAKE-make}
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3331 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3332 if ${am_cv_make_support_nested_variables+:} false; then :
3333 $as_echo_n "(cached) " >&6
3334 else
3335 if $as_echo 'TRUE=$(BAR$(V))
3336 BAR0=false
3337 BAR1=true
3338 V=1
3339 am__doit:
3340 @$(TRUE)
3341 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3342 am_cv_make_support_nested_variables=yes
3343 else
3344 am_cv_make_support_nested_variables=no
3345 fi
3346 fi
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3348 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3349 if test $am_cv_make_support_nested_variables = yes; then
3350 AM_V='$(V)'
3351 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3352 else
3353 AM_V=$AM_DEFAULT_VERBOSITY
3354 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3355 fi
3356 AM_BACKSLASH='\'
3357
3358
3359
3360 ac_config_headers="$ac_config_headers config.h"
3361
3362
3363
3364 ac_ext=c
3365 ac_cpp='$CPP $CPPFLAGS'
3366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3367 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3369 if test -n "$ac_tool_prefix"; then
3370 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3371 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3373 $as_echo_n "checking for $ac_word... " >&6; }
3374 if ${ac_cv_prog_CC+:} false; then :
3375 $as_echo_n "(cached) " >&6
3376 else
3377 if test -n "$CC"; then
3378 ac_cv_prog_CC="$CC" # Let the user override the test.
3379 else
3380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3381 for as_dir in $PATH
3382 do
3383 IFS=$as_save_IFS
3384 test -z "$as_dir" && as_dir=.
3385 for ac_exec_ext in '' $ac_executable_extensions; do
3386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3387 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3389 break 2
3390 fi
3391 done
3392 done
3393 IFS=$as_save_IFS
3394
3395 fi
3396 fi
3397 CC=$ac_cv_prog_CC
3398 if test -n "$CC"; then
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3400 $as_echo "$CC" >&6; }
3401 else
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3403 $as_echo "no" >&6; }
3404 fi
3405
3406
3407 fi
3408 if test -z "$ac_cv_prog_CC"; then
3409 ac_ct_CC=$CC
3410 # Extract the first word of "gcc", so it can be a program name with args.
3411 set dummy gcc; ac_word=$2
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3413 $as_echo_n "checking for $ac_word... " >&6; }
3414 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3415 $as_echo_n "(cached) " >&6
3416 else
3417 if test -n "$ac_ct_CC"; then
3418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3419 else
3420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3421 for as_dir in $PATH
3422 do
3423 IFS=$as_save_IFS
3424 test -z "$as_dir" && as_dir=.
3425 for ac_exec_ext in '' $ac_executable_extensions; do
3426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3427 ac_cv_prog_ac_ct_CC="gcc"
3428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3429 break 2
3430 fi
3431 done
3432 done
3433 IFS=$as_save_IFS
3434
3435 fi
3436 fi
3437 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3438 if test -n "$ac_ct_CC"; then
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3440 $as_echo "$ac_ct_CC" >&6; }
3441 else
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3443 $as_echo "no" >&6; }
3444 fi
3445
3446 if test "x$ac_ct_CC" = x; then
3447 CC=""
3448 else
3449 case $cross_compiling:$ac_tool_warned in
3450 yes:)
3451 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3452 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3453 ac_tool_warned=yes ;;
3454 esac
3455 CC=$ac_ct_CC
3456 fi
3457 else
3458 CC="$ac_cv_prog_CC"
3459 fi
3460
3461 if test -z "$CC"; then
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}cc; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if ${ac_cv_prog_CC+:} false; then :
3468 $as_echo_n "(cached) " >&6
3469 else
3470 if test -n "$CC"; then
3471 ac_cv_prog_CC="$CC" # Let the user override the test.
3472 else
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3474 for as_dir in $PATH
3475 do
3476 IFS=$as_save_IFS
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3480 ac_cv_prog_CC="${ac_tool_prefix}cc"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 break 2
3483 fi
3484 done
3485 done
3486 IFS=$as_save_IFS
3487
3488 fi
3489 fi
3490 CC=$ac_cv_prog_CC
3491 if test -n "$CC"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3493 $as_echo "$CC" >&6; }
3494 else
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3497 fi
3498
3499
3500 fi
3501 fi
3502 if test -z "$CC"; then
3503 # Extract the first word of "cc", so it can be a program name with args.
3504 set dummy cc; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_prog_CC+:} false; then :
3508 $as_echo_n "(cached) " >&6
3509 else
3510 if test -n "$CC"; then
3511 ac_cv_prog_CC="$CC" # Let the user override the test.
3512 else
3513 ac_prog_rejected=no
3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3515 for as_dir in $PATH
3516 do
3517 IFS=$as_save_IFS
3518 test -z "$as_dir" && as_dir=.
3519 for ac_exec_ext in '' $ac_executable_extensions; do
3520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3521 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3522 ac_prog_rejected=yes
3523 continue
3524 fi
3525 ac_cv_prog_CC="cc"
3526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3527 break 2
3528 fi
3529 done
3530 done
3531 IFS=$as_save_IFS
3532
3533 if test $ac_prog_rejected = yes; then
3534 # We found a bogon in the path, so make sure we never use it.
3535 set dummy $ac_cv_prog_CC
3536 shift
3537 if test $# != 0; then
3538 # We chose a different compiler from the bogus one.
3539 # However, it has the same basename, so the bogon will be chosen
3540 # first if we set CC to just the basename; use the full file name.
3541 shift
3542 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3543 fi
3544 fi
3545 fi
3546 fi
3547 CC=$ac_cv_prog_CC
3548 if test -n "$CC"; then
3549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3550 $as_echo "$CC" >&6; }
3551 else
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3553 $as_echo "no" >&6; }
3554 fi
3555
3556
3557 fi
3558 if test -z "$CC"; then
3559 if test -n "$ac_tool_prefix"; then
3560 for ac_prog in cl.exe
3561 do
3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3563 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3565 $as_echo_n "checking for $ac_word... " >&6; }
3566 if ${ac_cv_prog_CC+:} false; then :
3567 $as_echo_n "(cached) " >&6
3568 else
3569 if test -n "$CC"; then
3570 ac_cv_prog_CC="$CC" # Let the user override the test.
3571 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH
3574 do
3575 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3581 break 2
3582 fi
3583 done
3584 done
3585 IFS=$as_save_IFS
3586
3587 fi
3588 fi
3589 CC=$ac_cv_prog_CC
3590 if test -n "$CC"; then
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3592 $as_echo "$CC" >&6; }
3593 else
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3595 $as_echo "no" >&6; }
3596 fi
3597
3598
3599 test -n "$CC" && break
3600 done
3601 fi
3602 if test -z "$CC"; then
3603 ac_ct_CC=$CC
3604 for ac_prog in cl.exe
3605 do
3606 # Extract the first word of "$ac_prog", so it can be a program name with args.
3607 set dummy $ac_prog; ac_word=$2
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3609 $as_echo_n "checking for $ac_word... " >&6; }
3610 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 if test -n "$ac_ct_CC"; then
3614 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3615 else
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH
3618 do
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_exec_ext in '' $ac_executable_extensions; do
3622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3623 ac_cv_prog_ac_ct_CC="$ac_prog"
3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3625 break 2
3626 fi
3627 done
3628 done
3629 IFS=$as_save_IFS
3630
3631 fi
3632 fi
3633 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3634 if test -n "$ac_ct_CC"; then
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3636 $as_echo "$ac_ct_CC" >&6; }
3637 else
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3639 $as_echo "no" >&6; }
3640 fi
3641
3642
3643 test -n "$ac_ct_CC" && break
3644 done
3645
3646 if test "x$ac_ct_CC" = x; then
3647 CC=""
3648 else
3649 case $cross_compiling:$ac_tool_warned in
3650 yes:)
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3653 ac_tool_warned=yes ;;
3654 esac
3655 CC=$ac_ct_CC
3656 fi
3657 fi
3658
3659 fi
3660
3661
3662 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3664 as_fn_error $? "no acceptable C compiler found in \$PATH
3665 See \`config.log' for more details" "$LINENO" 5; }
3666
3667 # Provide some information about the compiler.
3668 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3669 set X $ac_compile
3670 ac_compiler=$2
3671 for ac_option in --version -v -V -qversion; do
3672 { { ac_try="$ac_compiler $ac_option >&5"
3673 case "(($ac_try" in
3674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3675 *) ac_try_echo=$ac_try;;
3676 esac
3677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3678 $as_echo "$ac_try_echo"; } >&5
3679 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3680 ac_status=$?
3681 if test -s conftest.err; then
3682 sed '10a\
3683 ... rest of stderr output deleted ...
3684 10q' conftest.err >conftest.er1
3685 cat conftest.er1 >&5
3686 fi
3687 rm -f conftest.er1 conftest.err
3688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3689 test $ac_status = 0; }
3690 done
3691
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3694
3695 int
3696 main ()
3697 {
3698
3699 ;
3700 return 0;
3701 }
3702 _ACEOF
3703 ac_clean_files_save=$ac_clean_files
3704 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3705 # Try to create an executable without -o first, disregard a.out.
3706 # It will help us diagnose broken compilers, and finding out an intuition
3707 # of exeext.
3708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3709 $as_echo_n "checking whether the C compiler works... " >&6; }
3710 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3711
3712 # The possible output files:
3713 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3714
3715 ac_rmfiles=
3716 for ac_file in $ac_files
3717 do
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3720 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3721 esac
3722 done
3723 rm -f $ac_rmfiles
3724
3725 if { { ac_try="$ac_link_default"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3731 $as_echo "$ac_try_echo"; } >&5
3732 (eval "$ac_link_default") 2>&5
3733 ac_status=$?
3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3735 test $ac_status = 0; }; then :
3736 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3737 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3738 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3739 # so that the user can short-circuit this test for compilers unknown to
3740 # Autoconf.
3741 for ac_file in $ac_files ''
3742 do
3743 test -f "$ac_file" || continue
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3746 ;;
3747 [ab].out )
3748 # We found the default executable, but exeext='' is most
3749 # certainly right.
3750 break;;
3751 *.* )
3752 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3753 then :; else
3754 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3755 fi
3756 # We set ac_cv_exeext here because the later test for it is not
3757 # safe: cross compilers may not add the suffix if given an `-o'
3758 # argument, so we may need to know it at that point already.
3759 # Even if this section looks crufty: it has the advantage of
3760 # actually working.
3761 break;;
3762 * )
3763 break;;
3764 esac
3765 done
3766 test "$ac_cv_exeext" = no && ac_cv_exeext=
3767
3768 else
3769 ac_file=''
3770 fi
3771 if test -z "$ac_file"; then :
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773 $as_echo "no" >&6; }
3774 $as_echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3776
3777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3778 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3779 as_fn_error 77 "C compiler cannot create executables
3780 See \`config.log' for more details" "$LINENO" 5; }
3781 else
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3783 $as_echo "yes" >&6; }
3784 fi
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3786 $as_echo_n "checking for C compiler default output file name... " >&6; }
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3788 $as_echo "$ac_file" >&6; }
3789 ac_exeext=$ac_cv_exeext
3790
3791 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3792 ac_clean_files=$ac_clean_files_save
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3794 $as_echo_n "checking for suffix of executables... " >&6; }
3795 if { { ac_try="$ac_link"
3796 case "(($ac_try" in
3797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3798 *) ac_try_echo=$ac_try;;
3799 esac
3800 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3801 $as_echo "$ac_try_echo"; } >&5
3802 (eval "$ac_link") 2>&5
3803 ac_status=$?
3804 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3805 test $ac_status = 0; }; then :
3806 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3807 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3808 # work properly (i.e., refer to `conftest.exe'), while it won't with
3809 # `rm'.
3810 for ac_file in conftest.exe conftest conftest.*; do
3811 test -f "$ac_file" || continue
3812 case $ac_file in
3813 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3814 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3815 break;;
3816 * ) break;;
3817 esac
3818 done
3819 else
3820 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3821 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3822 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3823 See \`config.log' for more details" "$LINENO" 5; }
3824 fi
3825 rm -f conftest conftest$ac_cv_exeext
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3827 $as_echo "$ac_cv_exeext" >&6; }
3828
3829 rm -f conftest.$ac_ext
3830 EXEEXT=$ac_cv_exeext
3831 ac_exeext=$EXEEXT
3832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* end confdefs.h. */
3834 #include <stdio.h>
3835 int
3836 main ()
3837 {
3838 FILE *f = fopen ("conftest.out", "w");
3839 return ferror (f) || fclose (f) != 0;
3840
3841 ;
3842 return 0;
3843 }
3844 _ACEOF
3845 ac_clean_files="$ac_clean_files conftest.out"
3846 # Check that the compiler produces executables we can run. If not, either
3847 # the compiler is broken, or we cross compile.
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3849 $as_echo_n "checking whether we are cross compiling... " >&6; }
3850 if test "$cross_compiling" != yes; then
3851 { { ac_try="$ac_link"
3852 case "(($ac_try" in
3853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3854 *) ac_try_echo=$ac_try;;
3855 esac
3856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3857 $as_echo "$ac_try_echo"; } >&5
3858 (eval "$ac_link") 2>&5
3859 ac_status=$?
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 if { ac_try='./conftest$ac_cv_exeext'
3863 { { case "(($ac_try" in
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3866 esac
3867 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3868 $as_echo "$ac_try_echo"; } >&5
3869 (eval "$ac_try") 2>&5
3870 ac_status=$?
3871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3872 test $ac_status = 0; }; }; then
3873 cross_compiling=no
3874 else
3875 if test "$cross_compiling" = maybe; then
3876 cross_compiling=yes
3877 else
3878 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3879 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3880 as_fn_error $? "cannot run C compiled programs.
3881 If you meant to cross compile, use \`--host'.
3882 See \`config.log' for more details" "$LINENO" 5; }
3883 fi
3884 fi
3885 fi
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3887 $as_echo "$cross_compiling" >&6; }
3888
3889 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3890 ac_clean_files=$ac_clean_files_save
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3892 $as_echo_n "checking for suffix of object files... " >&6; }
3893 if ${ac_cv_objext+:} false; then :
3894 $as_echo_n "(cached) " >&6
3895 else
3896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3897 /* end confdefs.h. */
3898
3899 int
3900 main ()
3901 {
3902
3903 ;
3904 return 0;
3905 }
3906 _ACEOF
3907 rm -f conftest.o conftest.obj
3908 if { { ac_try="$ac_compile"
3909 case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912 esac
3913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914 $as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_compile") 2>&5
3916 ac_status=$?
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }; then :
3919 for ac_file in conftest.o conftest.obj conftest.*; do
3920 test -f "$ac_file" || continue;
3921 case $ac_file in
3922 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3923 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3924 break;;
3925 esac
3926 done
3927 else
3928 $as_echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error $? "cannot compute suffix of object files: cannot compile
3934 See \`config.log' for more details" "$LINENO" 5; }
3935 fi
3936 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3937 fi
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3939 $as_echo "$ac_cv_objext" >&6; }
3940 OBJEXT=$ac_cv_objext
3941 ac_objext=$OBJEXT
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3943 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3944 if ${ac_cv_c_compiler_gnu+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3948 /* end confdefs.h. */
3949
3950 int
3951 main ()
3952 {
3953 #ifndef __GNUC__
3954 choke me
3955 #endif
3956
3957 ;
3958 return 0;
3959 }
3960 _ACEOF
3961 if ac_fn_c_try_compile "$LINENO"; then :
3962 ac_compiler_gnu=yes
3963 else
3964 ac_compiler_gnu=no
3965 fi
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3967 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3968
3969 fi
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3971 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3972 if test $ac_compiler_gnu = yes; then
3973 GCC=yes
3974 else
3975 GCC=
3976 fi
3977 ac_test_CFLAGS=${CFLAGS+set}
3978 ac_save_CFLAGS=$CFLAGS
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3980 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3981 if ${ac_cv_prog_cc_g+:} false; then :
3982 $as_echo_n "(cached) " >&6
3983 else
3984 ac_save_c_werror_flag=$ac_c_werror_flag
3985 ac_c_werror_flag=yes
3986 ac_cv_prog_cc_g=no
3987 CFLAGS="-g"
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989 /* end confdefs.h. */
3990
3991 int
3992 main ()
3993 {
3994
3995 ;
3996 return 0;
3997 }
3998 _ACEOF
3999 if ac_fn_c_try_compile "$LINENO"; then :
4000 ac_cv_prog_cc_g=yes
4001 else
4002 CFLAGS=""
4003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4004 /* end confdefs.h. */
4005
4006 int
4007 main ()
4008 {
4009
4010 ;
4011 return 0;
4012 }
4013 _ACEOF
4014 if ac_fn_c_try_compile "$LINENO"; then :
4015
4016 else
4017 ac_c_werror_flag=$ac_save_c_werror_flag
4018 CFLAGS="-g"
4019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4020 /* end confdefs.h. */
4021
4022 int
4023 main ()
4024 {
4025
4026 ;
4027 return 0;
4028 }
4029 _ACEOF
4030 if ac_fn_c_try_compile "$LINENO"; then :
4031 ac_cv_prog_cc_g=yes
4032 fi
4033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4034 fi
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4036 fi
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 ac_c_werror_flag=$ac_save_c_werror_flag
4039 fi
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4041 $as_echo "$ac_cv_prog_cc_g" >&6; }
4042 if test "$ac_test_CFLAGS" = set; then
4043 CFLAGS=$ac_save_CFLAGS
4044 elif test $ac_cv_prog_cc_g = yes; then
4045 if test "$GCC" = yes; then
4046 CFLAGS="-g -O2"
4047 else
4048 CFLAGS="-g"
4049 fi
4050 else
4051 if test "$GCC" = yes; then
4052 CFLAGS="-O2"
4053 else
4054 CFLAGS=
4055 fi
4056 fi
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4058 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4059 if ${ac_cv_prog_cc_c89+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 ac_cv_prog_cc_c89=no
4063 ac_save_CC=$CC
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4066 #include <stdarg.h>
4067 #include <stdio.h>
4068 struct stat;
4069 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4070 struct buf { int x; };
4071 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4072 static char *e (p, i)
4073 char **p;
4074 int i;
4075 {
4076 return p[i];
4077 }
4078 static char *f (char * (*g) (char **, int), char **p, ...)
4079 {
4080 char *s;
4081 va_list v;
4082 va_start (v,p);
4083 s = g (p, va_arg (v,int));
4084 va_end (v);
4085 return s;
4086 }
4087
4088 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4089 function prototypes and stuff, but not '\xHH' hex character constants.
4090 These don't provoke an error unfortunately, instead are silently treated
4091 as 'x'. The following induces an error, until -std is added to get
4092 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4093 array size at least. It's necessary to write '\x00'==0 to get something
4094 that's true only with -std. */
4095 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4096
4097 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4098 inside strings and character constants. */
4099 #define FOO(x) 'x'
4100 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4101
4102 int test (int i, double x);
4103 struct s1 {int (*f) (int a);};
4104 struct s2 {int (*f) (double a);};
4105 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4106 int argc;
4107 char **argv;
4108 int
4109 main ()
4110 {
4111 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4112 ;
4113 return 0;
4114 }
4115 _ACEOF
4116 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4117 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4118 do
4119 CC="$ac_save_CC $ac_arg"
4120 if ac_fn_c_try_compile "$LINENO"; then :
4121 ac_cv_prog_cc_c89=$ac_arg
4122 fi
4123 rm -f core conftest.err conftest.$ac_objext
4124 test "x$ac_cv_prog_cc_c89" != "xno" && break
4125 done
4126 rm -f conftest.$ac_ext
4127 CC=$ac_save_CC
4128
4129 fi
4130 # AC_CACHE_VAL
4131 case "x$ac_cv_prog_cc_c89" in
4132 x)
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4134 $as_echo "none needed" >&6; } ;;
4135 xno)
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4137 $as_echo "unsupported" >&6; } ;;
4138 *)
4139 CC="$CC $ac_cv_prog_cc_c89"
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4141 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4142 esac
4143 if test "x$ac_cv_prog_cc_c89" != xno; then :
4144
4145 fi
4146
4147 ac_ext=c
4148 ac_cpp='$CPP $CPPFLAGS'
4149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4151 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4152
4153 ac_ext=c
4154 ac_cpp='$CPP $CPPFLAGS'
4155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4159 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4160 if ${am_cv_prog_cc_c_o+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4165
4166 int
4167 main ()
4168 {
4169
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 # Make sure it works both with $CC and with simple cc.
4175 # Following AC_PROG_CC_C_O, we do the test twice because some
4176 # compilers refuse to overwrite an existing .o file with -o,
4177 # though they will create one.
4178 am_cv_prog_cc_c_o=yes
4179 for am_i in 1 2; do
4180 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4181 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4182 ac_status=$?
4183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4184 (exit $ac_status); } \
4185 && test -f conftest2.$ac_objext; then
4186 : OK
4187 else
4188 am_cv_prog_cc_c_o=no
4189 break
4190 fi
4191 done
4192 rm -f core conftest*
4193 unset am_i
4194 fi
4195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4196 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4197 if test "$am_cv_prog_cc_c_o" != yes; then
4198 # Losing compiler, so override with the script.
4199 # FIXME: It is wrong to rewrite CC.
4200 # But if we don't then we get into trouble of one sort or another.
4201 # A longer-term fix would be to have automake use am__CC in this case,
4202 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4203 CC="$am_aux_dir/compile $CC"
4204 fi
4205 ac_ext=c
4206 ac_cpp='$CPP $CPPFLAGS'
4207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4210
4211 DEPDIR="${am__leading_dot}deps"
4212
4213 ac_config_commands="$ac_config_commands depfiles"
4214
4215
4216 am_make=${MAKE-make}
4217 cat > confinc << 'END'
4218 am__doit:
4219 @echo this is the am__doit target
4220 .PHONY: am__doit
4221 END
4222 # If we don't find an include directive, just comment out the code.
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4224 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4225 am__include="#"
4226 am__quote=
4227 _am_result=none
4228 # First try GNU make style include.
4229 echo "include confinc" > confmf
4230 # Ignore all kinds of additional output from 'make'.
4231 case `$am_make -s -f confmf 2> /dev/null` in #(
4232 *the\ am__doit\ target*)
4233 am__include=include
4234 am__quote=
4235 _am_result=GNU
4236 ;;
4237 esac
4238 # Now try BSD make style include.
4239 if test "$am__include" = "#"; then
4240 echo '.include "confinc"' > confmf
4241 case `$am_make -s -f confmf 2> /dev/null` in #(
4242 *the\ am__doit\ target*)
4243 am__include=.include
4244 am__quote="\""
4245 _am_result=BSD
4246 ;;
4247 esac
4248 fi
4249
4250
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4252 $as_echo "$_am_result" >&6; }
4253 rm -f confinc confmf
4254
4255 # Check whether --enable-dependency-tracking was given.
4256 if test "${enable_dependency_tracking+set}" = set; then :
4257 enableval=$enable_dependency_tracking;
4258 fi
4259
4260 if test "x$enable_dependency_tracking" != xno; then
4261 am_depcomp="$ac_aux_dir/depcomp"
4262 AMDEPBACKSLASH='\'
4263 am__nodep='_no'
4264 fi
4265 if test "x$enable_dependency_tracking" != xno; then
4266 AMDEP_TRUE=
4267 AMDEP_FALSE='#'
4268 else
4269 AMDEP_TRUE='#'
4270 AMDEP_FALSE=
4271 fi
4272
4273
4274
4275 depcc="$CC" am_compiler_list=
4276
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4278 $as_echo_n "checking dependency style of $depcc... " >&6; }
4279 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4280 $as_echo_n "(cached) " >&6
4281 else
4282 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4283 # We make a subdir and do the tests there. Otherwise we can end up
4284 # making bogus files that we don't know about and never remove. For
4285 # instance it was reported that on HP-UX the gcc test will end up
4286 # making a dummy file named 'D' -- because '-MD' means "put the output
4287 # in D".
4288 rm -rf conftest.dir
4289 mkdir conftest.dir
4290 # Copy depcomp to subdir because otherwise we won't find it if we're
4291 # using a relative directory.
4292 cp "$am_depcomp" conftest.dir
4293 cd conftest.dir
4294 # We will build objects and dependencies in a subdirectory because
4295 # it helps to detect inapplicable dependency modes. For instance
4296 # both Tru64's cc and ICC support -MD to output dependencies as a
4297 # side effect of compilation, but ICC will put the dependencies in
4298 # the current directory while Tru64 will put them in the object
4299 # directory.
4300 mkdir sub
4301
4302 am_cv_CC_dependencies_compiler_type=none
4303 if test "$am_compiler_list" = ""; then
4304 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4305 fi
4306 am__universal=false
4307 case " $depcc " in #(
4308 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4309 esac
4310
4311 for depmode in $am_compiler_list; do
4312 # Setup a source with many dependencies, because some compilers
4313 # like to wrap large dependency lists on column 80 (with \), and
4314 # we should not choose a depcomp mode which is confused by this.
4315 #
4316 # We need to recreate these files for each test, as the compiler may
4317 # overwrite some of them when testing with obscure command lines.
4318 # This happens at least with the AIX C compiler.
4319 : > sub/conftest.c
4320 for i in 1 2 3 4 5 6; do
4321 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4322 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4323 # Solaris 10 /bin/sh.
4324 echo '/* dummy */' > sub/conftst$i.h
4325 done
4326 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4327
4328 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4329 # mode. It turns out that the SunPro C++ compiler does not properly
4330 # handle '-M -o', and we need to detect this. Also, some Intel
4331 # versions had trouble with output in subdirs.
4332 am__obj=sub/conftest.${OBJEXT-o}
4333 am__minus_obj="-o $am__obj"
4334 case $depmode in
4335 gcc)
4336 # This depmode causes a compiler race in universal mode.
4337 test "$am__universal" = false || continue
4338 ;;
4339 nosideeffect)
4340 # After this tag, mechanisms are not by side-effect, so they'll
4341 # only be used when explicitly requested.
4342 if test "x$enable_dependency_tracking" = xyes; then
4343 continue
4344 else
4345 break
4346 fi
4347 ;;
4348 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4349 # This compiler won't grok '-c -o', but also, the minuso test has
4350 # not run yet. These depmodes are late enough in the game, and
4351 # so weak that their functioning should not be impacted.
4352 am__obj=conftest.${OBJEXT-o}
4353 am__minus_obj=
4354 ;;
4355 none) break ;;
4356 esac
4357 if depmode=$depmode \
4358 source=sub/conftest.c object=$am__obj \
4359 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4360 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4361 >/dev/null 2>conftest.err &&
4362 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4363 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4364 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4365 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4366 # icc doesn't choke on unknown options, it will just issue warnings
4367 # or remarks (even with -Werror). So we grep stderr for any message
4368 # that says an option was ignored or not supported.
4369 # When given -MP, icc 7.0 and 7.1 complain thusly:
4370 # icc: Command line warning: ignoring option '-M'; no argument required
4371 # The diagnosis changed in icc 8.0:
4372 # icc: Command line remark: option '-MP' not supported
4373 if (grep 'ignoring option' conftest.err ||
4374 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4375 am_cv_CC_dependencies_compiler_type=$depmode
4376 break
4377 fi
4378 fi
4379 done
4380
4381 cd ..
4382 rm -rf conftest.dir
4383 else
4384 am_cv_CC_dependencies_compiler_type=none
4385 fi
4386
4387 fi
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4389 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4390 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4391
4392 if
4393 test "x$enable_dependency_tracking" != xno \
4394 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4395 am__fastdepCC_TRUE=
4396 am__fastdepCC_FALSE='#'
4397 else
4398 am__fastdepCC_TRUE='#'
4399 am__fastdepCC_FALSE=
4400 fi
4401
4402
4403
4404 ac_ext=c
4405 ac_cpp='$CPP $CPPFLAGS'
4406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4411 # On Suns, sometimes $CPP names a directory.
4412 if test -n "$CPP" && test -d "$CPP"; then
4413 CPP=
4414 fi
4415 if test -z "$CPP"; then
4416 if ${ac_cv_prog_CPP+:} false; then :
4417 $as_echo_n "(cached) " >&6
4418 else
4419 # Double quotes because CPP needs to be expanded
4420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4421 do
4422 ac_preproc_ok=false
4423 for ac_c_preproc_warn_flag in '' yes
4424 do
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4432 /* end confdefs.h. */
4433 #ifdef __STDC__
4434 # include <limits.h>
4435 #else
4436 # include <assert.h>
4437 #endif
4438 Syntax error
4439 _ACEOF
4440 if ac_fn_c_try_cpp "$LINENO"; then :
4441
4442 else
4443 # Broken: fails on valid input.
4444 continue
4445 fi
4446 rm -f conftest.err conftest.i conftest.$ac_ext
4447
4448 # OK, works on sane cases. Now check whether nonexistent headers
4449 # can be detected and how.
4450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451 /* end confdefs.h. */
4452 #include <ac_nonexistent.h>
4453 _ACEOF
4454 if ac_fn_c_try_cpp "$LINENO"; then :
4455 # Broken: success on invalid input.
4456 continue
4457 else
4458 # Passes both tests.
4459 ac_preproc_ok=:
4460 break
4461 fi
4462 rm -f conftest.err conftest.i conftest.$ac_ext
4463
4464 done
4465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4466 rm -f conftest.i conftest.err conftest.$ac_ext
4467 if $ac_preproc_ok; then :
4468 break
4469 fi
4470
4471 done
4472 ac_cv_prog_CPP=$CPP
4473
4474 fi
4475 CPP=$ac_cv_prog_CPP
4476 else
4477 ac_cv_prog_CPP=$CPP
4478 fi
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4480 $as_echo "$CPP" >&6; }
4481 ac_preproc_ok=false
4482 for ac_c_preproc_warn_flag in '' yes
4483 do
4484 # Use a header file that comes with gcc, so configuring glibc
4485 # with a fresh cross-compiler works.
4486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4487 # <limits.h> exists even on freestanding compilers.
4488 # On the NeXT, cc -E runs the code through the compiler's parser,
4489 # not just through cpp. "Syntax error" is here to catch this case.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4491 /* end confdefs.h. */
4492 #ifdef __STDC__
4493 # include <limits.h>
4494 #else
4495 # include <assert.h>
4496 #endif
4497 Syntax error
4498 _ACEOF
4499 if ac_fn_c_try_cpp "$LINENO"; then :
4500
4501 else
4502 # Broken: fails on valid input.
4503 continue
4504 fi
4505 rm -f conftest.err conftest.i conftest.$ac_ext
4506
4507 # OK, works on sane cases. Now check whether nonexistent headers
4508 # can be detected and how.
4509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4510 /* end confdefs.h. */
4511 #include <ac_nonexistent.h>
4512 _ACEOF
4513 if ac_fn_c_try_cpp "$LINENO"; then :
4514 # Broken: success on invalid input.
4515 continue
4516 else
4517 # Passes both tests.
4518 ac_preproc_ok=:
4519 break
4520 fi
4521 rm -f conftest.err conftest.i conftest.$ac_ext
4522
4523 done
4524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4525 rm -f conftest.i conftest.err conftest.$ac_ext
4526 if $ac_preproc_ok; then :
4527
4528 else
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4532 See \`config.log' for more details" "$LINENO" 5; }
4533 fi
4534
4535 ac_ext=c
4536 ac_cpp='$CPP $CPPFLAGS'
4537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4540
4541
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4544 if ${ac_cv_path_GREP+:} false; then :
4545 $as_echo_n "(cached) " >&6
4546 else
4547 if test -z "$GREP"; then
4548 ac_path_GREP_found=false
4549 # Loop through the user's path and test for each of PROGNAME-LIST
4550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4552 do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
4555 for ac_prog in grep ggrep; do
4556 for ac_exec_ext in '' $ac_executable_extensions; do
4557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4558 as_fn_executable_p "$ac_path_GREP" || continue
4559 # Check for GNU ac_path_GREP and select it if it is found.
4560 # Check for GNU $ac_path_GREP
4561 case `"$ac_path_GREP" --version 2>&1` in
4562 *GNU*)
4563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4564 *)
4565 ac_count=0
4566 $as_echo_n 0123456789 >"conftest.in"
4567 while :
4568 do
4569 cat "conftest.in" "conftest.in" >"conftest.tmp"
4570 mv "conftest.tmp" "conftest.in"
4571 cp "conftest.in" "conftest.nl"
4572 $as_echo 'GREP' >> "conftest.nl"
4573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4575 as_fn_arith $ac_count + 1 && ac_count=$as_val
4576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4577 # Best one so far, save it but keep looking for a better one
4578 ac_cv_path_GREP="$ac_path_GREP"
4579 ac_path_GREP_max=$ac_count
4580 fi
4581 # 10*(2^10) chars as input seems more than enough
4582 test $ac_count -gt 10 && break
4583 done
4584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4585 esac
4586
4587 $ac_path_GREP_found && break 3
4588 done
4589 done
4590 done
4591 IFS=$as_save_IFS
4592 if test -z "$ac_cv_path_GREP"; then
4593 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4594 fi
4595 else
4596 ac_cv_path_GREP=$GREP
4597 fi
4598
4599 fi
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4601 $as_echo "$ac_cv_path_GREP" >&6; }
4602 GREP="$ac_cv_path_GREP"
4603
4604
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4606 $as_echo_n "checking for egrep... " >&6; }
4607 if ${ac_cv_path_EGREP+:} false; then :
4608 $as_echo_n "(cached) " >&6
4609 else
4610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4611 then ac_cv_path_EGREP="$GREP -E"
4612 else
4613 if test -z "$EGREP"; then
4614 ac_path_EGREP_found=false
4615 # Loop through the user's path and test for each of PROGNAME-LIST
4616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4618 do
4619 IFS=$as_save_IFS
4620 test -z "$as_dir" && as_dir=.
4621 for ac_prog in egrep; do
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4624 as_fn_executable_p "$ac_path_EGREP" || continue
4625 # Check for GNU ac_path_EGREP and select it if it is found.
4626 # Check for GNU $ac_path_EGREP
4627 case `"$ac_path_EGREP" --version 2>&1` in
4628 *GNU*)
4629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4630 *)
4631 ac_count=0
4632 $as_echo_n 0123456789 >"conftest.in"
4633 while :
4634 do
4635 cat "conftest.in" "conftest.in" >"conftest.tmp"
4636 mv "conftest.tmp" "conftest.in"
4637 cp "conftest.in" "conftest.nl"
4638 $as_echo 'EGREP' >> "conftest.nl"
4639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4641 as_fn_arith $ac_count + 1 && ac_count=$as_val
4642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4643 # Best one so far, save it but keep looking for a better one
4644 ac_cv_path_EGREP="$ac_path_EGREP"
4645 ac_path_EGREP_max=$ac_count
4646 fi
4647 # 10*(2^10) chars as input seems more than enough
4648 test $ac_count -gt 10 && break
4649 done
4650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4651 esac
4652
4653 $ac_path_EGREP_found && break 3
4654 done
4655 done
4656 done
4657 IFS=$as_save_IFS
4658 if test -z "$ac_cv_path_EGREP"; then
4659 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4660 fi
4661 else
4662 ac_cv_path_EGREP=$EGREP
4663 fi
4664
4665 fi
4666 fi
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4668 $as_echo "$ac_cv_path_EGREP" >&6; }
4669 EGREP="$ac_cv_path_EGREP"
4670
4671
4672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4673 $as_echo_n "checking for ANSI C header files... " >&6; }
4674 if ${ac_cv_header_stdc+:} false; then :
4675 $as_echo_n "(cached) " >&6
4676 else
4677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4678 /* end confdefs.h. */
4679 #include <stdlib.h>
4680 #include <stdarg.h>
4681 #include <string.h>
4682 #include <float.h>
4683
4684 int
4685 main ()
4686 {
4687
4688 ;
4689 return 0;
4690 }
4691 _ACEOF
4692 if ac_fn_c_try_compile "$LINENO"; then :
4693 ac_cv_header_stdc=yes
4694 else
4695 ac_cv_header_stdc=no
4696 fi
4697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4698
4699 if test $ac_cv_header_stdc = yes; then
4700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4702 /* end confdefs.h. */
4703 #include <string.h>
4704
4705 _ACEOF
4706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4707 $EGREP "memchr" >/dev/null 2>&1; then :
4708
4709 else
4710 ac_cv_header_stdc=no
4711 fi
4712 rm -f conftest*
4713
4714 fi
4715
4716 if test $ac_cv_header_stdc = yes; then
4717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4720 #include <stdlib.h>
4721
4722 _ACEOF
4723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4724 $EGREP "free" >/dev/null 2>&1; then :
4725
4726 else
4727 ac_cv_header_stdc=no
4728 fi
4729 rm -f conftest*
4730
4731 fi
4732
4733 if test $ac_cv_header_stdc = yes; then
4734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4735 if test "$cross_compiling" = yes; then :
4736 :
4737 else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739 /* end confdefs.h. */
4740 #include <ctype.h>
4741 #include <stdlib.h>
4742 #if ((' ' & 0x0FF) == 0x020)
4743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4745 #else
4746 # define ISLOWER(c) \
4747 (('a' <= (c) && (c) <= 'i') \
4748 || ('j' <= (c) && (c) <= 'r') \
4749 || ('s' <= (c) && (c) <= 'z'))
4750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4751 #endif
4752
4753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4754 int
4755 main ()
4756 {
4757 int i;
4758 for (i = 0; i < 256; i++)
4759 if (XOR (islower (i), ISLOWER (i))
4760 || toupper (i) != TOUPPER (i))
4761 return 2;
4762 return 0;
4763 }
4764 _ACEOF
4765 if ac_fn_c_try_run "$LINENO"; then :
4766
4767 else
4768 ac_cv_header_stdc=no
4769 fi
4770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4771 conftest.$ac_objext conftest.beam conftest.$ac_ext
4772 fi
4773
4774 fi
4775 fi
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4777 $as_echo "$ac_cv_header_stdc" >&6; }
4778 if test $ac_cv_header_stdc = yes; then
4779
4780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4781
4782 fi
4783
4784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4786 inttypes.h stdint.h unistd.h
4787 do :
4788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4790 "
4791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4792 cat >>confdefs.h <<_ACEOF
4793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4794 _ACEOF
4795
4796 fi
4797
4798 done
4799
4800
4801
4802 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4803 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4804 MINIX=yes
4805 else
4806 MINIX=
4807 fi
4808
4809
4810 if test "$MINIX" = yes; then
4811
4812 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4813
4814
4815 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4816
4817
4818 $as_echo "#define _MINIX 1" >>confdefs.h
4819
4820 fi
4821
4822
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4824 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4825 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4826 $as_echo_n "(cached) " >&6
4827 else
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4830
4831 # define __EXTENSIONS__ 1
4832 $ac_includes_default
4833 int
4834 main ()
4835 {
4836
4837 ;
4838 return 0;
4839 }
4840 _ACEOF
4841 if ac_fn_c_try_compile "$LINENO"; then :
4842 ac_cv_safe_to_define___extensions__=yes
4843 else
4844 ac_cv_safe_to_define___extensions__=no
4845 fi
4846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4847 fi
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4849 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4850 test $ac_cv_safe_to_define___extensions__ = yes &&
4851 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4852
4853 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4854
4855 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4856
4857 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4858
4859 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4860
4861
4862 # Check whether --enable-largefile was given.
4863 if test "${enable_largefile+set}" = set; then :
4864 enableval=$enable_largefile;
4865 fi
4866
4867 if test "$enable_largefile" != no; then
4868
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4870 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4871 if ${ac_cv_sys_largefile_CC+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873 else
4874 ac_cv_sys_largefile_CC=no
4875 if test "$GCC" != yes; then
4876 ac_save_CC=$CC
4877 while :; do
4878 # IRIX 6.2 and later do not support large files by default,
4879 # so use the C compiler's -n32 option if that helps.
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882 #include <sys/types.h>
4883 /* Check that off_t can represent 2**63 - 1 correctly.
4884 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4885 since some C++ compilers masquerading as C compilers
4886 incorrectly reject 9223372036854775807. */
4887 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4888 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4889 && LARGE_OFF_T % 2147483647 == 1)
4890 ? 1 : -1];
4891 int
4892 main ()
4893 {
4894
4895 ;
4896 return 0;
4897 }
4898 _ACEOF
4899 if ac_fn_c_try_compile "$LINENO"; then :
4900 break
4901 fi
4902 rm -f core conftest.err conftest.$ac_objext
4903 CC="$CC -n32"
4904 if ac_fn_c_try_compile "$LINENO"; then :
4905 ac_cv_sys_largefile_CC=' -n32'; break
4906 fi
4907 rm -f core conftest.err conftest.$ac_objext
4908 break
4909 done
4910 CC=$ac_save_CC
4911 rm -f conftest.$ac_ext
4912 fi
4913 fi
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4915 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4916 if test "$ac_cv_sys_largefile_CC" != no; then
4917 CC=$CC$ac_cv_sys_largefile_CC
4918 fi
4919
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4921 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4922 if ${ac_cv_sys_file_offset_bits+:} false; then :
4923 $as_echo_n "(cached) " >&6
4924 else
4925 while :; do
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #include <sys/types.h>
4929 /* Check that off_t can represent 2**63 - 1 correctly.
4930 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4931 since some C++ compilers masquerading as C compilers
4932 incorrectly reject 9223372036854775807. */
4933 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4934 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4935 && LARGE_OFF_T % 2147483647 == 1)
4936 ? 1 : -1];
4937 int
4938 main ()
4939 {
4940
4941 ;
4942 return 0;
4943 }
4944 _ACEOF
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_sys_file_offset_bits=no; break
4947 fi
4948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #define _FILE_OFFSET_BITS 64
4952 #include <sys/types.h>
4953 /* Check that off_t can represent 2**63 - 1 correctly.
4954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4955 since some C++ compilers masquerading as C compilers
4956 incorrectly reject 9223372036854775807. */
4957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4959 && LARGE_OFF_T % 2147483647 == 1)
4960 ? 1 : -1];
4961 int
4962 main ()
4963 {
4964
4965 ;
4966 return 0;
4967 }
4968 _ACEOF
4969 if ac_fn_c_try_compile "$LINENO"; then :
4970 ac_cv_sys_file_offset_bits=64; break
4971 fi
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 ac_cv_sys_file_offset_bits=unknown
4974 break
4975 done
4976 fi
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4978 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4979 case $ac_cv_sys_file_offset_bits in #(
4980 no | unknown) ;;
4981 *)
4982 cat >>confdefs.h <<_ACEOF
4983 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4984 _ACEOF
4985 ;;
4986 esac
4987 rm -rf conftest*
4988 if test $ac_cv_sys_file_offset_bits = unknown; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4990 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4991 if ${ac_cv_sys_large_files+:} false; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 while :; do
4995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4996 /* end confdefs.h. */
4997 #include <sys/types.h>
4998 /* Check that off_t can represent 2**63 - 1 correctly.
4999 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5000 since some C++ compilers masquerading as C compilers
5001 incorrectly reject 9223372036854775807. */
5002 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5003 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5004 && LARGE_OFF_T % 2147483647 == 1)
5005 ? 1 : -1];
5006 int
5007 main ()
5008 {
5009
5010 ;
5011 return 0;
5012 }
5013 _ACEOF
5014 if ac_fn_c_try_compile "$LINENO"; then :
5015 ac_cv_sys_large_files=no; break
5016 fi
5017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5019 /* end confdefs.h. */
5020 #define _LARGE_FILES 1
5021 #include <sys/types.h>
5022 /* Check that off_t can represent 2**63 - 1 correctly.
5023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5024 since some C++ compilers masquerading as C compilers
5025 incorrectly reject 9223372036854775807. */
5026 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5028 && LARGE_OFF_T % 2147483647 == 1)
5029 ? 1 : -1];
5030 int
5031 main ()
5032 {
5033
5034 ;
5035 return 0;
5036 }
5037 _ACEOF
5038 if ac_fn_c_try_compile "$LINENO"; then :
5039 ac_cv_sys_large_files=1; break
5040 fi
5041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5042 ac_cv_sys_large_files=unknown
5043 break
5044 done
5045 fi
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5047 $as_echo "$ac_cv_sys_large_files" >&6; }
5048 case $ac_cv_sys_large_files in #(
5049 no | unknown) ;;
5050 *)
5051 cat >>confdefs.h <<_ACEOF
5052 #define _LARGE_FILES $ac_cv_sys_large_files
5053 _ACEOF
5054 ;;
5055 esac
5056 rm -rf conftest*
5057 fi
5058
5059
5060 fi
5061
5062
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5064 $as_echo_n "checking whether ln -s works... " >&6; }
5065 LN_S=$as_ln_s
5066 if test "$LN_S" = "ln -s"; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5068 $as_echo "yes" >&6; }
5069 else
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5071 $as_echo "no, using $LN_S" >&6; }
5072 fi
5073
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5075 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5076 set x ${MAKE-make}
5077 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5078 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 cat >conftest.make <<\_ACEOF
5082 SHELL = /bin/sh
5083 all:
5084 @echo '@@@%%%=$(MAKE)=@@@%%%'
5085 _ACEOF
5086 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5087 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5088 *@@@%%%=?*=@@@%%%*)
5089 eval ac_cv_prog_make_${ac_make}_set=yes;;
5090 *)
5091 eval ac_cv_prog_make_${ac_make}_set=no;;
5092 esac
5093 rm -f conftest.make
5094 fi
5095 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5097 $as_echo "yes" >&6; }
5098 SET_MAKE=
5099 else
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5102 SET_MAKE="MAKE=${MAKE-make}"
5103 fi
5104
5105
5106
5107
5108
5109
5110
5111
5112 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5113 if test -n "$ac_tool_prefix"; then
5114 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5115 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 case $PKG_CONFIG in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5124 ;;
5125 *)
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 ;;
5142 esac
5143 fi
5144 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5145 if test -n "$PKG_CONFIG"; then
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5147 $as_echo "$PKG_CONFIG" >&6; }
5148 else
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5150 $as_echo "no" >&6; }
5151 fi
5152
5153
5154 fi
5155 if test -z "$ac_cv_path_PKG_CONFIG"; then
5156 ac_pt_PKG_CONFIG=$PKG_CONFIG
5157 # Extract the first word of "pkg-config", so it can be a program name with args.
5158 set dummy pkg-config; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5162 $as_echo_n "(cached) " >&6
5163 else
5164 case $ac_pt_PKG_CONFIG in
5165 [\\/]* | ?:[\\/]*)
5166 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5167 ;;
5168 *)
5169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 for as_dir in $PATH
5171 do
5172 IFS=$as_save_IFS
5173 test -z "$as_dir" && as_dir=.
5174 for ac_exec_ext in '' $ac_executable_extensions; do
5175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 break 2
5179 fi
5180 done
5181 done
5182 IFS=$as_save_IFS
5183
5184 ;;
5185 esac
5186 fi
5187 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5188 if test -n "$ac_pt_PKG_CONFIG"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5190 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5191 else
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5194 fi
5195
5196 if test "x$ac_pt_PKG_CONFIG" = x; then
5197 PKG_CONFIG=""
5198 else
5199 case $cross_compiling:$ac_tool_warned in
5200 yes:)
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5203 ac_tool_warned=yes ;;
5204 esac
5205 PKG_CONFIG=$ac_pt_PKG_CONFIG
5206 fi
5207 else
5208 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5209 fi
5210
5211 fi
5212 if test -n "$PKG_CONFIG"; then
5213 _pkg_min_version=0.9.0
5214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5215 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5216 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5218 $as_echo "yes" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5222 PKG_CONFIG=""
5223 fi
5224 fi
5225
5226
5227
5228 # Check whether --with-pkgconfigdir was given.
5229 if test "${with_pkgconfigdir+set}" = set; then :
5230 withval=$with_pkgconfigdir;
5231 else
5232 with_pkgconfigdir='${libdir}/pkgconfig'
5233 fi
5234
5235 pkgconfigdir=$with_pkgconfigdir
5236
5237
5238
5239
5240
5241
5242 GIT=${GIT-"${am_missing_run}git"}
5243
5244
5245 GPERF=${GPERF-"${am_missing_run}gperf"}
5246
5247
5248
5249
5250
5251
5252
5253 # Find any Python interpreter.
5254 if test -z "$PYTHON"; then
5255 for ac_prog in python python2 python3 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
5256 do
5257 # Extract the first word of "$ac_prog", so it can be a program name with args.
5258 set dummy $ac_prog; ac_word=$2
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5260 $as_echo_n "checking for $ac_word... " >&6; }
5261 if ${ac_cv_path_PYTHON+:} false; then :
5262 $as_echo_n "(cached) " >&6
5263 else
5264 case $PYTHON in
5265 [\\/]* | ?:[\\/]*)
5266 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5267 ;;
5268 *)
5269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5270 for as_dir in $PATH
5271 do
5272 IFS=$as_save_IFS
5273 test -z "$as_dir" && as_dir=.
5274 for ac_exec_ext in '' $ac_executable_extensions; do
5275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5276 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5278 break 2
5279 fi
5280 done
5281 done
5282 IFS=$as_save_IFS
5283
5284 ;;
5285 esac
5286 fi
5287 PYTHON=$ac_cv_path_PYTHON
5288 if test -n "$PYTHON"; then
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5290 $as_echo "$PYTHON" >&6; }
5291 else
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5293 $as_echo "no" >&6; }
5294 fi
5295
5296
5297 test -n "$PYTHON" && break
5298 done
5299 test -n "$PYTHON" || PYTHON=":"
5300
5301 fi
5302 am_display_PYTHON=python
5303
5304
5305 if test "$PYTHON" = :; then
5306 :
5307 else
5308
5309
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5311 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5312 if ${am_cv_python_version+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314 else
5315 am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5316 fi
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5318 $as_echo "$am_cv_python_version" >&6; }
5319 PYTHON_VERSION=$am_cv_python_version
5320
5321
5322
5323 PYTHON_PREFIX='${prefix}'
5324
5325 PYTHON_EXEC_PREFIX='${exec_prefix}'
5326
5327
5328
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5330 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5331 if ${am_cv_python_platform+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333 else
5334 am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5335 fi
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5337 $as_echo "$am_cv_python_platform" >&6; }
5338 PYTHON_PLATFORM=$am_cv_python_platform
5339
5340
5341 # Just factor out some code duplication.
5342 am_python_setup_sysconfig="\
5343 import sys
5344 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5345 # with python 3.x. See automake bug#10227.
5346 try:
5347 import sysconfig
5348 except ImportError:
5349 can_use_sysconfig = 0
5350 else:
5351 can_use_sysconfig = 1
5352 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5353 # <https://github.com/pypa/virtualenv/issues/118>
5354 try:
5355 from platform import python_implementation
5356 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5357 can_use_sysconfig = 0
5358 except ImportError:
5359 pass"
5360
5361
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5363 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5364 if ${am_cv_python_pythondir+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366 else
5367 if test "x$prefix" = xNONE
5368 then
5369 am_py_prefix=$ac_default_prefix
5370 else
5371 am_py_prefix=$prefix
5372 fi
5373 am_cv_python_pythondir=`$PYTHON -c "
5374 $am_python_setup_sysconfig
5375 if can_use_sysconfig:
5376 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5377 else:
5378 from distutils import sysconfig
5379 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5380 sys.stdout.write(sitedir)"`
5381 case $am_cv_python_pythondir in
5382 $am_py_prefix*)
5383 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5384 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5385 ;;
5386 *)
5387 case $am_py_prefix in
5388 /usr|/System*) ;;
5389 *)
5390 am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5391 ;;
5392 esac
5393 ;;
5394 esac
5395
5396 fi
5397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5398 $as_echo "$am_cv_python_pythondir" >&6; }
5399 pythondir=$am_cv_python_pythondir
5400
5401
5402
5403 pkgpythondir=\${pythondir}/$PACKAGE
5404
5405
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5407 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5408 if ${am_cv_python_pyexecdir+:} false; then :
5409 $as_echo_n "(cached) " >&6
5410 else
5411 if test "x$exec_prefix" = xNONE
5412 then
5413 am_py_exec_prefix=$am_py_prefix
5414 else
5415 am_py_exec_prefix=$exec_prefix
5416 fi
5417 am_cv_python_pyexecdir=`$PYTHON -c "
5418 $am_python_setup_sysconfig
5419 if can_use_sysconfig:
5420 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5421 else:
5422 from distutils import sysconfig
5423 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5424 sys.stdout.write(sitedir)"`
5425 case $am_cv_python_pyexecdir in
5426 $am_py_exec_prefix*)
5427 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5428 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5429 ;;
5430 *)
5431 case $am_py_exec_prefix in
5432 /usr|/System*) ;;
5433 *)
5434 am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5435 ;;
5436 esac
5437 ;;
5438 esac
5439
5440 fi
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5442 $as_echo "$am_cv_python_pyexecdir" >&6; }
5443 pyexecdir=$am_cv_python_pyexecdir
5444
5445
5446
5447 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5448
5449
5450
5451 fi
5452
5453
5454 if test "$PYTHON" != :; then
5455 HAVE_PYTHON_TRUE=
5456 HAVE_PYTHON_FALSE='#'
5457 else
5458 HAVE_PYTHON_TRUE='#'
5459 HAVE_PYTHON_FALSE=
5460 fi
5461
5462
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5464 $as_echo_n "checking for RM macro... " >&6; }
5465 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5466 if test "x$_predefined_rm" = "x"; then
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5468 $as_echo "no predefined RM" >&6; }
5469 # Extract the first word of "rm", so it can be a program name with args.
5470 set dummy rm; ac_word=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_RM+:} false; then :
5474 $as_echo_n "(cached) " >&6
5475 else
5476 if test -n "$RM"; then
5477 ac_cv_prog_RM="$RM" # Let the user override the test.
5478 else
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480 for as_dir in $PATH
5481 do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
5484 for ac_exec_ext in '' $ac_executable_extensions; do
5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_RM="rm -f"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5488 break 2
5489 fi
5490 done
5491 done
5492 IFS=$as_save_IFS
5493
5494 fi
5495 fi
5496 RM=$ac_cv_prog_RM
5497 if test -n "$RM"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5499 $as_echo "$RM" >&6; }
5500 else
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 fi
5504
5505
5506 else
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5508 $as_echo "$_predefined_rm" >&6; }
5509 fi
5510
5511
5512 case `pwd` in
5513 *\ * | *\ *)
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5515 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5516 esac
5517
5518
5519
5520 macro_version='2.4.6'
5521 macro_revision='2.4.6'
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533
5534
5535 ltmain=$ac_aux_dir/ltmain.sh
5536
5537 # Make sure we can run config.sub.
5538 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5539 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5540
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5542 $as_echo_n "checking build system type... " >&6; }
5543 if ${ac_cv_build+:} false; then :
5544 $as_echo_n "(cached) " >&6
5545 else
5546 ac_build_alias=$build_alias
5547 test "x$ac_build_alias" = x &&
5548 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5549 test "x$ac_build_alias" = x &&
5550 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5551 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5552 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5553
5554 fi
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5556 $as_echo "$ac_cv_build" >&6; }
5557 case $ac_cv_build in
5558 *-*-*) ;;
5559 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5560 esac
5561 build=$ac_cv_build
5562 ac_save_IFS=$IFS; IFS='-'
5563 set x $ac_cv_build
5564 shift
5565 build_cpu=$1
5566 build_vendor=$2
5567 shift; shift
5568 # Remember, the first character of IFS is used to create $*,
5569 # except with old shells:
5570 build_os=$*
5571 IFS=$ac_save_IFS
5572 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5576 $as_echo_n "checking host system type... " >&6; }
5577 if ${ac_cv_host+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579 else
5580 if test "x$host_alias" = x; then
5581 ac_cv_host=$ac_cv_build
5582 else
5583 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5584 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5585 fi
5586
5587 fi
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5589 $as_echo "$ac_cv_host" >&6; }
5590 case $ac_cv_host in
5591 *-*-*) ;;
5592 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5593 esac
5594 host=$ac_cv_host
5595 ac_save_IFS=$IFS; IFS='-'
5596 set x $ac_cv_host
5597 shift
5598 host_cpu=$1
5599 host_vendor=$2
5600 shift; shift
5601 # Remember, the first character of IFS is used to create $*,
5602 # except with old shells:
5603 host_os=$*
5604 IFS=$ac_save_IFS
5605 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5606
5607
5608 # Backslashify metacharacters that are still active within
5609 # double-quoted strings.
5610 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5611
5612 # Same as above, but do not quote variable references.
5613 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5614
5615 # Sed substitution to delay expansion of an escaped shell variable in a
5616 # double_quote_subst'ed string.
5617 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5618
5619 # Sed substitution to delay expansion of an escaped single quote.
5620 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5621
5622 # Sed substitution to avoid accidental globbing in evaled expressions
5623 no_glob_subst='s/\*/\\\*/g'
5624
5625 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5626 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5627 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5630 $as_echo_n "checking how to print strings... " >&6; }
5631 # Test print first, because it will be a builtin if present.
5632 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5633 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5634 ECHO='print -r --'
5635 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5636 ECHO='printf %s\n'
5637 else
5638 # Use this function as a fallback that always works.
5639 func_fallback_echo ()
5640 {
5641 eval 'cat <<_LTECHO_EOF
5642 $1
5643 _LTECHO_EOF'
5644 }
5645 ECHO='func_fallback_echo'
5646 fi
5647
5648 # func_echo_all arg...
5649 # Invoke $ECHO with all args, space-separated.
5650 func_echo_all ()
5651 {
5652 $ECHO ""
5653 }
5654
5655 case $ECHO in
5656 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5657 $as_echo "printf" >&6; } ;;
5658 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5659 $as_echo "print -r" >&6; } ;;
5660 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5661 $as_echo "cat" >&6; } ;;
5662 esac
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675
5676
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5678 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5679 if ${ac_cv_path_SED+:} false; then :
5680 $as_echo_n "(cached) " >&6
5681 else
5682 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5683 for ac_i in 1 2 3 4 5 6 7; do
5684 ac_script="$ac_script$as_nl$ac_script"
5685 done
5686 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5687 { ac_script=; unset ac_script;}
5688 if test -z "$SED"; then
5689 ac_path_SED_found=false
5690 # Loop through the user's path and test for each of PROGNAME-LIST
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692 for as_dir in $PATH
5693 do
5694 IFS=$as_save_IFS
5695 test -z "$as_dir" && as_dir=.
5696 for ac_prog in sed gsed; do
5697 for ac_exec_ext in '' $ac_executable_extensions; do
5698 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5699 as_fn_executable_p "$ac_path_SED" || continue
5700 # Check for GNU ac_path_SED and select it if it is found.
5701 # Check for GNU $ac_path_SED
5702 case `"$ac_path_SED" --version 2>&1` in
5703 *GNU*)
5704 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5705 *)
5706 ac_count=0
5707 $as_echo_n 0123456789 >"conftest.in"
5708 while :
5709 do
5710 cat "conftest.in" "conftest.in" >"conftest.tmp"
5711 mv "conftest.tmp" "conftest.in"
5712 cp "conftest.in" "conftest.nl"
5713 $as_echo '' >> "conftest.nl"
5714 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5715 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5716 as_fn_arith $ac_count + 1 && ac_count=$as_val
5717 if test $ac_count -gt ${ac_path_SED_max-0}; then
5718 # Best one so far, save it but keep looking for a better one
5719 ac_cv_path_SED="$ac_path_SED"
5720 ac_path_SED_max=$ac_count
5721 fi
5722 # 10*(2^10) chars as input seems more than enough
5723 test $ac_count -gt 10 && break
5724 done
5725 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5726 esac
5727
5728 $ac_path_SED_found && break 3
5729 done
5730 done
5731 done
5732 IFS=$as_save_IFS
5733 if test -z "$ac_cv_path_SED"; then
5734 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5735 fi
5736 else
5737 ac_cv_path_SED=$SED
5738 fi
5739
5740 fi
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5742 $as_echo "$ac_cv_path_SED" >&6; }
5743 SED="$ac_cv_path_SED"
5744 rm -f conftest.sed
5745
5746 test -z "$SED" && SED=sed
5747 Xsed="$SED -e 1s/^X//"
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5760 $as_echo_n "checking for fgrep... " >&6; }
5761 if ${ac_cv_path_FGREP+:} false; then :
5762 $as_echo_n "(cached) " >&6
5763 else
5764 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5765 then ac_cv_path_FGREP="$GREP -F"
5766 else
5767 if test -z "$FGREP"; then
5768 ac_path_FGREP_found=false
5769 # Loop through the user's path and test for each of PROGNAME-LIST
5770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5771 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5772 do
5773 IFS=$as_save_IFS
5774 test -z "$as_dir" && as_dir=.
5775 for ac_prog in fgrep; do
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5778 as_fn_executable_p "$ac_path_FGREP" || continue
5779 # Check for GNU ac_path_FGREP and select it if it is found.
5780 # Check for GNU $ac_path_FGREP
5781 case `"$ac_path_FGREP" --version 2>&1` in
5782 *GNU*)
5783 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5784 *)
5785 ac_count=0
5786 $as_echo_n 0123456789 >"conftest.in"
5787 while :
5788 do
5789 cat "conftest.in" "conftest.in" >"conftest.tmp"
5790 mv "conftest.tmp" "conftest.in"
5791 cp "conftest.in" "conftest.nl"
5792 $as_echo 'FGREP' >> "conftest.nl"
5793 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5794 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5795 as_fn_arith $ac_count + 1 && ac_count=$as_val
5796 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5797 # Best one so far, save it but keep looking for a better one
5798 ac_cv_path_FGREP="$ac_path_FGREP"
5799 ac_path_FGREP_max=$ac_count
5800 fi
5801 # 10*(2^10) chars as input seems more than enough
5802 test $ac_count -gt 10 && break
5803 done
5804 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5805 esac
5806
5807 $ac_path_FGREP_found && break 3
5808 done
5809 done
5810 done
5811 IFS=$as_save_IFS
5812 if test -z "$ac_cv_path_FGREP"; then
5813 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5814 fi
5815 else
5816 ac_cv_path_FGREP=$FGREP
5817 fi
5818
5819 fi
5820 fi
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5822 $as_echo "$ac_cv_path_FGREP" >&6; }
5823 FGREP="$ac_cv_path_FGREP"
5824
5825
5826 test -z "$GREP" && GREP=grep
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844
5845
5846 # Check whether --with-gnu-ld was given.
5847 if test "${with_gnu_ld+set}" = set; then :
5848 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5849 else
5850 with_gnu_ld=no
5851 fi
5852
5853 ac_prog=ld
5854 if test yes = "$GCC"; then
5855 # Check if gcc -print-prog-name=ld gives a path.
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5857 $as_echo_n "checking for ld used by $CC... " >&6; }
5858 case $host in
5859 *-*-mingw*)
5860 # gcc leaves a trailing carriage return, which upsets mingw
5861 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5862 *)
5863 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5864 esac
5865 case $ac_prog in
5866 # Accept absolute paths.
5867 [\\/]* | ?:[\\/]*)
5868 re_direlt='/[^/][^/]*/\.\./'
5869 # Canonicalize the pathname of ld
5870 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5871 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5872 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5873 done
5874 test -z "$LD" && LD=$ac_prog
5875 ;;
5876 "")
5877 # If it fails, then pretend we aren't using GCC.
5878 ac_prog=ld
5879 ;;
5880 *)
5881 # If it is relative, then search for the first ld in PATH.
5882 with_gnu_ld=unknown
5883 ;;
5884 esac
5885 elif test yes = "$with_gnu_ld"; then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5887 $as_echo_n "checking for GNU ld... " >&6; }
5888 else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5890 $as_echo_n "checking for non-GNU ld... " >&6; }
5891 fi
5892 if ${lt_cv_path_LD+:} false; then :
5893 $as_echo_n "(cached) " >&6
5894 else
5895 if test -z "$LD"; then
5896 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5897 for ac_dir in $PATH; do
5898 IFS=$lt_save_ifs
5899 test -z "$ac_dir" && ac_dir=.
5900 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5901 lt_cv_path_LD=$ac_dir/$ac_prog
5902 # Check to see if the program is GNU ld. I'd rather use --version,
5903 # but apparently some variants of GNU ld only accept -v.
5904 # Break only if it was the GNU/non-GNU ld that we prefer.
5905 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5906 *GNU* | *'with BFD'*)
5907 test no != "$with_gnu_ld" && break
5908 ;;
5909 *)
5910 test yes != "$with_gnu_ld" && break
5911 ;;
5912 esac
5913 fi
5914 done
5915 IFS=$lt_save_ifs
5916 else
5917 lt_cv_path_LD=$LD # Let the user override the test with a path.
5918 fi
5919 fi
5920
5921 LD=$lt_cv_path_LD
5922 if test -n "$LD"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5924 $as_echo "$LD" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5928 fi
5929 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5931 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5932 if ${lt_cv_prog_gnu_ld+:} false; then :
5933 $as_echo_n "(cached) " >&6
5934 else
5935 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5936 case `$LD -v 2>&1 </dev/null` in
5937 *GNU* | *'with BFD'*)
5938 lt_cv_prog_gnu_ld=yes
5939 ;;
5940 *)
5941 lt_cv_prog_gnu_ld=no
5942 ;;
5943 esac
5944 fi
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5946 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5947 with_gnu_ld=$lt_cv_prog_gnu_ld
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5958 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5959 if ${lt_cv_path_NM+:} false; then :
5960 $as_echo_n "(cached) " >&6
5961 else
5962 if test -n "$NM"; then
5963 # Let the user override the test.
5964 lt_cv_path_NM=$NM
5965 else
5966 lt_nm_to_check=${ac_tool_prefix}nm
5967 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5968 lt_nm_to_check="$lt_nm_to_check nm"
5969 fi
5970 for lt_tmp_nm in $lt_nm_to_check; do
5971 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5972 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5973 IFS=$lt_save_ifs
5974 test -z "$ac_dir" && ac_dir=.
5975 tmp_nm=$ac_dir/$lt_tmp_nm
5976 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5977 # Check to see if the nm accepts a BSD-compat flag.
5978 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5979 # nm: unknown option "B" ignored
5980 # Tru64's nm complains that /dev/null is an invalid object file
5981 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5982 case $build_os in
5983 mingw*) lt_bad_file=conftest.nm/nofile ;;
5984 *) lt_bad_file=/dev/null ;;
5985 esac
5986 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5987 *$lt_bad_file* | *'Invalid file or object type'*)
5988 lt_cv_path_NM="$tmp_nm -B"
5989 break 2
5990 ;;
5991 *)
5992 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5993 */dev/null*)
5994 lt_cv_path_NM="$tmp_nm -p"
5995 break 2
5996 ;;
5997 *)
5998 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5999 continue # so that we can try to find one that supports BSD flags
6000 ;;
6001 esac
6002 ;;
6003 esac
6004 fi
6005 done
6006 IFS=$lt_save_ifs
6007 done
6008 : ${lt_cv_path_NM=no}
6009 fi
6010 fi
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6012 $as_echo "$lt_cv_path_NM" >&6; }
6013 if test no != "$lt_cv_path_NM"; then
6014 NM=$lt_cv_path_NM
6015 else
6016 # Didn't find any BSD compatible name lister, look for dumpbin.
6017 if test -n "$DUMPBIN"; then :
6018 # Let the user override the test.
6019 else
6020 if test -n "$ac_tool_prefix"; then
6021 for ac_prog in dumpbin "link -dump"
6022 do
6023 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6024 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6026 $as_echo_n "checking for $ac_word... " >&6; }
6027 if ${ac_cv_prog_DUMPBIN+:} false; then :
6028 $as_echo_n "(cached) " >&6
6029 else
6030 if test -n "$DUMPBIN"; then
6031 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6032 else
6033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034 for as_dir in $PATH
6035 do
6036 IFS=$as_save_IFS
6037 test -z "$as_dir" && as_dir=.
6038 for ac_exec_ext in '' $ac_executable_extensions; do
6039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6040 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6042 break 2
6043 fi
6044 done
6045 done
6046 IFS=$as_save_IFS
6047
6048 fi
6049 fi
6050 DUMPBIN=$ac_cv_prog_DUMPBIN
6051 if test -n "$DUMPBIN"; then
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6053 $as_echo "$DUMPBIN" >&6; }
6054 else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056 $as_echo "no" >&6; }
6057 fi
6058
6059
6060 test -n "$DUMPBIN" && break
6061 done
6062 fi
6063 if test -z "$DUMPBIN"; then
6064 ac_ct_DUMPBIN=$DUMPBIN
6065 for ac_prog in dumpbin "link -dump"
6066 do
6067 # Extract the first word of "$ac_prog", so it can be a program name with args.
6068 set dummy $ac_prog; ac_word=$2
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6070 $as_echo_n "checking for $ac_word... " >&6; }
6071 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6072 $as_echo_n "(cached) " >&6
6073 else
6074 if test -n "$ac_ct_DUMPBIN"; then
6075 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6076 else
6077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6078 for as_dir in $PATH
6079 do
6080 IFS=$as_save_IFS
6081 test -z "$as_dir" && as_dir=.
6082 for ac_exec_ext in '' $ac_executable_extensions; do
6083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6084 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6086 break 2
6087 fi
6088 done
6089 done
6090 IFS=$as_save_IFS
6091
6092 fi
6093 fi
6094 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6095 if test -n "$ac_ct_DUMPBIN"; then
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6097 $as_echo "$ac_ct_DUMPBIN" >&6; }
6098 else
6099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6100 $as_echo "no" >&6; }
6101 fi
6102
6103
6104 test -n "$ac_ct_DUMPBIN" && break
6105 done
6106
6107 if test "x$ac_ct_DUMPBIN" = x; then
6108 DUMPBIN=":"
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 DUMPBIN=$ac_ct_DUMPBIN
6117 fi
6118 fi
6119
6120 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6121 *COFF*)
6122 DUMPBIN="$DUMPBIN -symbols -headers"
6123 ;;
6124 *)
6125 DUMPBIN=:
6126 ;;
6127 esac
6128 fi
6129
6130 if test : != "$DUMPBIN"; then
6131 NM=$DUMPBIN
6132 fi
6133 fi
6134 test -z "$NM" && NM=nm
6135
6136
6137
6138
6139
6140
6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6142 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6143 if ${lt_cv_nm_interface+:} false; then :
6144 $as_echo_n "(cached) " >&6
6145 else
6146 lt_cv_nm_interface="BSD nm"
6147 echo "int some_variable = 0;" > conftest.$ac_ext
6148 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6149 (eval "$ac_compile" 2>conftest.err)
6150 cat conftest.err >&5
6151 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6152 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6153 cat conftest.err >&5
6154 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6155 cat conftest.out >&5
6156 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6157 lt_cv_nm_interface="MS dumpbin"
6158 fi
6159 rm -f conftest*
6160 fi
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6162 $as_echo "$lt_cv_nm_interface" >&6; }
6163
6164 # find the maximum length of command line arguments
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6166 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6167 if ${lt_cv_sys_max_cmd_len+:} false; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 i=0
6171 teststring=ABCD
6172
6173 case $build_os in
6174 msdosdjgpp*)
6175 # On DJGPP, this test can blow up pretty badly due to problems in libc
6176 # (any single argument exceeding 2000 bytes causes a buffer overrun
6177 # during glob expansion). Even if it were fixed, the result of this
6178 # check would be larger than it should be.
6179 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6180 ;;
6181
6182 gnu*)
6183 # Under GNU Hurd, this test is not required because there is
6184 # no limit to the length of command line arguments.
6185 # Libtool will interpret -1 as no limit whatsoever
6186 lt_cv_sys_max_cmd_len=-1;
6187 ;;
6188
6189 cygwin* | mingw* | cegcc*)
6190 # On Win9x/ME, this test blows up -- it succeeds, but takes
6191 # about 5 minutes as the teststring grows exponentially.
6192 # Worse, since 9x/ME are not pre-emptively multitasking,
6193 # you end up with a "frozen" computer, even though with patience
6194 # the test eventually succeeds (with a max line length of 256k).
6195 # Instead, let's just punt: use the minimum linelength reported by
6196 # all of the supported platforms: 8192 (on NT/2K/XP).
6197 lt_cv_sys_max_cmd_len=8192;
6198 ;;
6199
6200 mint*)
6201 # On MiNT this can take a long time and run out of memory.
6202 lt_cv_sys_max_cmd_len=8192;
6203 ;;
6204
6205 amigaos*)
6206 # On AmigaOS with pdksh, this test takes hours, literally.
6207 # So we just punt and use a minimum line length of 8192.
6208 lt_cv_sys_max_cmd_len=8192;
6209 ;;
6210
6211 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6212 # This has been around since 386BSD, at least. Likely further.
6213 if test -x /sbin/sysctl; then
6214 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6215 elif test -x /usr/sbin/sysctl; then
6216 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6217 else
6218 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6219 fi
6220 # And add a safety zone
6221 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6222 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6223 ;;
6224
6225 interix*)
6226 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6227 lt_cv_sys_max_cmd_len=196608
6228 ;;
6229
6230 os2*)
6231 # The test takes a long time on OS/2.
6232 lt_cv_sys_max_cmd_len=8192
6233 ;;
6234
6235 osf*)
6236 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6237 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6238 # nice to cause kernel panics so lets avoid the loop below.
6239 # First set a reasonable default.
6240 lt_cv_sys_max_cmd_len=16384
6241 #
6242 if test -x /sbin/sysconfig; then
6243 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6244 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6245 esac
6246 fi
6247 ;;
6248 sco3.2v5*)
6249 lt_cv_sys_max_cmd_len=102400
6250 ;;
6251 sysv5* | sco5v6* | sysv4.2uw2*)
6252 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6253 if test -n "$kargmax"; then
6254 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6255 else
6256 lt_cv_sys_max_cmd_len=32768
6257 fi
6258 ;;
6259 *)
6260 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6261 if test -n "$lt_cv_sys_max_cmd_len" && \
6262 test undefined != "$lt_cv_sys_max_cmd_len"; then
6263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6265 else
6266 # Make teststring a little bigger before we do anything with it.
6267 # a 1K string should be a reasonable start.
6268 for i in 1 2 3 4 5 6 7 8; do
6269 teststring=$teststring$teststring
6270 done
6271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6272 # If test is not a shell built-in, we'll probably end up computing a
6273 # maximum length that is only half of the actual maximum length, but
6274 # we can't tell.
6275 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6277 test 17 != "$i" # 1/2 MB should be enough
6278 do
6279 i=`expr $i + 1`
6280 teststring=$teststring$teststring
6281 done
6282 # Only check the string length outside the loop.
6283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6284 teststring=
6285 # Add a significant safety factor because C++ compilers can tack on
6286 # massive amounts of additional arguments before passing them to the
6287 # linker. It appears as though 1/2 is a usable value.
6288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6289 fi
6290 ;;
6291 esac
6292
6293 fi
6294
6295 if test -n "$lt_cv_sys_max_cmd_len"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6300 $as_echo "none" >&6; }
6301 fi
6302 max_cmd_len=$lt_cv_sys_max_cmd_len
6303
6304
6305
6306
6307
6308
6309 : ${CP="cp -f"}
6310 : ${MV="mv -f"}
6311 : ${RM="rm -f"}
6312
6313 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6314 lt_unset=unset
6315 else
6316 lt_unset=false
6317 fi
6318
6319
6320
6321
6322
6323 # test EBCDIC or ASCII
6324 case `echo X|tr X '\101'` in
6325 A) # ASCII based system
6326 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6327 lt_SP2NL='tr \040 \012'
6328 lt_NL2SP='tr \015\012 \040\040'
6329 ;;
6330 *) # EBCDIC based system
6331 lt_SP2NL='tr \100 \n'
6332 lt_NL2SP='tr \r\n \100\100'
6333 ;;
6334 esac
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6345 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6346 if ${lt_cv_to_host_file_cmd+:} false; then :
6347 $as_echo_n "(cached) " >&6
6348 else
6349 case $host in
6350 *-*-mingw* )
6351 case $build in
6352 *-*-mingw* ) # actually msys
6353 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6354 ;;
6355 *-*-cygwin* )
6356 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6357 ;;
6358 * ) # otherwise, assume *nix
6359 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6360 ;;
6361 esac
6362 ;;
6363 *-*-cygwin* )
6364 case $build in
6365 *-*-mingw* ) # actually msys
6366 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6367 ;;
6368 *-*-cygwin* )
6369 lt_cv_to_host_file_cmd=func_convert_file_noop
6370 ;;
6371 * ) # otherwise, assume *nix
6372 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6373 ;;
6374 esac
6375 ;;
6376 * ) # unhandled hosts (and "normal" native builds)
6377 lt_cv_to_host_file_cmd=func_convert_file_noop
6378 ;;
6379 esac
6380
6381 fi
6382
6383 to_host_file_cmd=$lt_cv_to_host_file_cmd
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6385 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6386
6387
6388
6389
6390
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6392 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6393 if ${lt_cv_to_tool_file_cmd+:} false; then :
6394 $as_echo_n "(cached) " >&6
6395 else
6396 #assume ordinary cross tools, or native build.
6397 lt_cv_to_tool_file_cmd=func_convert_file_noop
6398 case $host in
6399 *-*-mingw* )
6400 case $build in
6401 *-*-mingw* ) # actually msys
6402 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6403 ;;
6404 esac
6405 ;;
6406 esac
6407
6408 fi
6409
6410 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6412 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6413
6414
6415
6416
6417
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6419 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6420 if ${lt_cv_ld_reload_flag+:} false; then :
6421 $as_echo_n "(cached) " >&6
6422 else
6423 lt_cv_ld_reload_flag='-r'
6424 fi
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6426 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6427 reload_flag=$lt_cv_ld_reload_flag
6428 case $reload_flag in
6429 "" | " "*) ;;
6430 *) reload_flag=" $reload_flag" ;;
6431 esac
6432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6433 case $host_os in
6434 cygwin* | mingw* | pw32* | cegcc*)
6435 if test yes != "$GCC"; then
6436 reload_cmds=false
6437 fi
6438 ;;
6439 darwin*)
6440 if test yes = "$GCC"; then
6441 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6442 else
6443 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6444 fi
6445 ;;
6446 esac
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460 $as_echo_n "checking for $ac_word... " >&6; }
6461 if ${ac_cv_prog_OBJDUMP+:} false; then :
6462 $as_echo_n "(cached) " >&6
6463 else
6464 if test -n "$OBJDUMP"; then
6465 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6466 else
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468 for as_dir in $PATH
6469 do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478 done
6479 done
6480 IFS=$as_save_IFS
6481
6482 fi
6483 fi
6484 OBJDUMP=$ac_cv_prog_OBJDUMP
6485 if test -n "$OBJDUMP"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6487 $as_echo "$OBJDUMP" >&6; }
6488 else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 $as_echo "no" >&6; }
6491 fi
6492
6493
6494 fi
6495 if test -z "$ac_cv_prog_OBJDUMP"; then
6496 ac_ct_OBJDUMP=$OBJDUMP
6497 # Extract the first word of "objdump", so it can be a program name with args.
6498 set dummy objdump; ac_word=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6502 $as_echo_n "(cached) " >&6
6503 else
6504 if test -n "$ac_ct_OBJDUMP"; then
6505 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6506 else
6507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6508 for as_dir in $PATH
6509 do
6510 IFS=$as_save_IFS
6511 test -z "$as_dir" && as_dir=.
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6514 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6516 break 2
6517 fi
6518 done
6519 done
6520 IFS=$as_save_IFS
6521
6522 fi
6523 fi
6524 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6525 if test -n "$ac_ct_OBJDUMP"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6527 $as_echo "$ac_ct_OBJDUMP" >&6; }
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 fi
6532
6533 if test "x$ac_ct_OBJDUMP" = x; then
6534 OBJDUMP="false"
6535 else
6536 case $cross_compiling:$ac_tool_warned in
6537 yes:)
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6540 ac_tool_warned=yes ;;
6541 esac
6542 OBJDUMP=$ac_ct_OBJDUMP
6543 fi
6544 else
6545 OBJDUMP="$ac_cv_prog_OBJDUMP"
6546 fi
6547
6548 test -z "$OBJDUMP" && OBJDUMP=objdump
6549
6550
6551
6552
6553
6554
6555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6556 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6557 if ${lt_cv_deplibs_check_method+:} false; then :
6558 $as_echo_n "(cached) " >&6
6559 else
6560 lt_cv_file_magic_cmd='$MAGIC_CMD'
6561 lt_cv_file_magic_test_file=
6562 lt_cv_deplibs_check_method='unknown'
6563 # Need to set the preceding variable on all platforms that support
6564 # interlibrary dependencies.
6565 # 'none' -- dependencies not supported.
6566 # 'unknown' -- same as none, but documents that we really don't know.
6567 # 'pass_all' -- all dependencies passed with no checks.
6568 # 'test_compile' -- check by making test program.
6569 # 'file_magic [[regex]]' -- check by looking for files in library path
6570 # that responds to the $file_magic_cmd with a given extended regex.
6571 # If you have 'file' or equivalent on your system and you're not sure
6572 # whether 'pass_all' will *always* work, you probably want this one.
6573
6574 case $host_os in
6575 aix[4-9]*)
6576 lt_cv_deplibs_check_method=pass_all
6577 ;;
6578
6579 beos*)
6580 lt_cv_deplibs_check_method=pass_all
6581 ;;
6582
6583 bsdi[45]*)
6584 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6585 lt_cv_file_magic_cmd='/usr/bin/file -L'
6586 lt_cv_file_magic_test_file=/shlib/libc.so
6587 ;;
6588
6589 cygwin*)
6590 # func_win32_libid is a shell function defined in ltmain.sh
6591 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6592 lt_cv_file_magic_cmd='func_win32_libid'
6593 ;;
6594
6595 mingw* | pw32*)
6596 # Base MSYS/MinGW do not provide the 'file' command needed by
6597 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6598 # unless we find 'file', for example because we are cross-compiling.
6599 if ( file / ) >/dev/null 2>&1; then
6600 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6601 lt_cv_file_magic_cmd='func_win32_libid'
6602 else
6603 # Keep this pattern in sync with the one in func_win32_libid.
6604 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6605 lt_cv_file_magic_cmd='$OBJDUMP -f'
6606 fi
6607 ;;
6608
6609 cegcc*)
6610 # use the weaker test based on 'objdump'. See mingw*.
6611 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6612 lt_cv_file_magic_cmd='$OBJDUMP -f'
6613 ;;
6614
6615 darwin* | rhapsody*)
6616 lt_cv_deplibs_check_method=pass_all
6617 ;;
6618
6619 freebsd* | dragonfly*)
6620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6621 case $host_cpu in
6622 i*86 )
6623 # Not sure whether the presence of OpenBSD here was a mistake.
6624 # Let's accept both of them until this is cleared up.
6625 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6626 lt_cv_file_magic_cmd=/usr/bin/file
6627 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6628 ;;
6629 esac
6630 else
6631 lt_cv_deplibs_check_method=pass_all
6632 fi
6633 ;;
6634
6635 haiku*)
6636 lt_cv_deplibs_check_method=pass_all
6637 ;;
6638
6639 hpux10.20* | hpux11*)
6640 lt_cv_file_magic_cmd=/usr/bin/file
6641 case $host_cpu in
6642 ia64*)
6643 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6644 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6645 ;;
6646 hppa*64*)
6647 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]'
6648 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6649 ;;
6650 *)
6651 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6652 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6653 ;;
6654 esac
6655 ;;
6656
6657 interix[3-9]*)
6658 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6659 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6660 ;;
6661
6662 irix5* | irix6* | nonstopux*)
6663 case $LD in
6664 *-32|*"-32 ") libmagic=32-bit;;
6665 *-n32|*"-n32 ") libmagic=N32;;
6666 *-64|*"-64 ") libmagic=64-bit;;
6667 *) libmagic=never-match;;
6668 esac
6669 lt_cv_deplibs_check_method=pass_all
6670 ;;
6671
6672 # This must be glibc/ELF.
6673 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6674 lt_cv_deplibs_check_method=pass_all
6675 ;;
6676
6677 netbsd*)
6678 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6679 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6680 else
6681 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6682 fi
6683 ;;
6684
6685 newos6*)
6686 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6687 lt_cv_file_magic_cmd=/usr/bin/file
6688 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6689 ;;
6690
6691 *nto* | *qnx*)
6692 lt_cv_deplibs_check_method=pass_all
6693 ;;
6694
6695 openbsd* | bitrig*)
6696 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6697 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6698 else
6699 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6700 fi
6701 ;;
6702
6703 osf3* | osf4* | osf5*)
6704 lt_cv_deplibs_check_method=pass_all
6705 ;;
6706
6707 rdos*)
6708 lt_cv_deplibs_check_method=pass_all
6709 ;;
6710
6711 solaris*)
6712 lt_cv_deplibs_check_method=pass_all
6713 ;;
6714
6715 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6716 lt_cv_deplibs_check_method=pass_all
6717 ;;
6718
6719 sysv4 | sysv4.3*)
6720 case $host_vendor in
6721 motorola)
6722 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]'
6723 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6724 ;;
6725 ncr)
6726 lt_cv_deplibs_check_method=pass_all
6727 ;;
6728 sequent)
6729 lt_cv_file_magic_cmd='/bin/file'
6730 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6731 ;;
6732 sni)
6733 lt_cv_file_magic_cmd='/bin/file'
6734 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6735 lt_cv_file_magic_test_file=/lib/libc.so
6736 ;;
6737 siemens)
6738 lt_cv_deplibs_check_method=pass_all
6739 ;;
6740 pc)
6741 lt_cv_deplibs_check_method=pass_all
6742 ;;
6743 esac
6744 ;;
6745
6746 tpf*)
6747 lt_cv_deplibs_check_method=pass_all
6748 ;;
6749 os2*)
6750 lt_cv_deplibs_check_method=pass_all
6751 ;;
6752 esac
6753
6754 fi
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6756 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6757
6758 file_magic_glob=
6759 want_nocaseglob=no
6760 if test "$build" = "$host"; then
6761 case $host_os in
6762 mingw* | pw32*)
6763 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6764 want_nocaseglob=yes
6765 else
6766 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6767 fi
6768 ;;
6769 esac
6770 fi
6771
6772 file_magic_cmd=$lt_cv_file_magic_cmd
6773 deplibs_check_method=$lt_cv_deplibs_check_method
6774 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795
6796
6797 if test -n "$ac_tool_prefix"; then
6798 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6799 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6801 $as_echo_n "checking for $ac_word... " >&6; }
6802 if ${ac_cv_prog_DLLTOOL+:} false; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 if test -n "$DLLTOOL"; then
6806 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6807 else
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6809 for as_dir in $PATH
6810 do
6811 IFS=$as_save_IFS
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6815 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6817 break 2
6818 fi
6819 done
6820 done
6821 IFS=$as_save_IFS
6822
6823 fi
6824 fi
6825 DLLTOOL=$ac_cv_prog_DLLTOOL
6826 if test -n "$DLLTOOL"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6828 $as_echo "$DLLTOOL" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6831 $as_echo "no" >&6; }
6832 fi
6833
6834
6835 fi
6836 if test -z "$ac_cv_prog_DLLTOOL"; then
6837 ac_ct_DLLTOOL=$DLLTOOL
6838 # Extract the first word of "dlltool", so it can be a program name with args.
6839 set dummy dlltool; ac_word=$2
6840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6841 $as_echo_n "checking for $ac_word... " >&6; }
6842 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6843 $as_echo_n "(cached) " >&6
6844 else
6845 if test -n "$ac_ct_DLLTOOL"; then
6846 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6847 else
6848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6849 for as_dir in $PATH
6850 do
6851 IFS=$as_save_IFS
6852 test -z "$as_dir" && as_dir=.
6853 for ac_exec_ext in '' $ac_executable_extensions; do
6854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6855 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6857 break 2
6858 fi
6859 done
6860 done
6861 IFS=$as_save_IFS
6862
6863 fi
6864 fi
6865 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6866 if test -n "$ac_ct_DLLTOOL"; then
6867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6868 $as_echo "$ac_ct_DLLTOOL" >&6; }
6869 else
6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6871 $as_echo "no" >&6; }
6872 fi
6873
6874 if test "x$ac_ct_DLLTOOL" = x; then
6875 DLLTOOL="false"
6876 else
6877 case $cross_compiling:$ac_tool_warned in
6878 yes:)
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6880 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6881 ac_tool_warned=yes ;;
6882 esac
6883 DLLTOOL=$ac_ct_DLLTOOL
6884 fi
6885 else
6886 DLLTOOL="$ac_cv_prog_DLLTOOL"
6887 fi
6888
6889 test -z "$DLLTOOL" && DLLTOOL=dlltool
6890
6891
6892
6893
6894
6895
6896
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6898 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6899 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6900 $as_echo_n "(cached) " >&6
6901 else
6902 lt_cv_sharedlib_from_linklib_cmd='unknown'
6903
6904 case $host_os in
6905 cygwin* | mingw* | pw32* | cegcc*)
6906 # two different shell functions defined in ltmain.sh;
6907 # decide which one to use based on capabilities of $DLLTOOL
6908 case `$DLLTOOL --help 2>&1` in
6909 *--identify-strict*)
6910 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6911 ;;
6912 *)
6913 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6914 ;;
6915 esac
6916 ;;
6917 *)
6918 # fallback: assume linklib IS sharedlib
6919 lt_cv_sharedlib_from_linklib_cmd=$ECHO
6920 ;;
6921 esac
6922
6923 fi
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6925 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6926 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6927 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6928
6929
6930
6931
6932
6933
6934
6935 if test -n "$ac_tool_prefix"; then
6936 for ac_prog in ar
6937 do
6938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6939 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6941 $as_echo_n "checking for $ac_word... " >&6; }
6942 if ${ac_cv_prog_AR+:} false; then :
6943 $as_echo_n "(cached) " >&6
6944 else
6945 if test -n "$AR"; then
6946 ac_cv_prog_AR="$AR" # Let the user override the test.
6947 else
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6949 for as_dir in $PATH
6950 do
6951 IFS=$as_save_IFS
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6955 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6957 break 2
6958 fi
6959 done
6960 done
6961 IFS=$as_save_IFS
6962
6963 fi
6964 fi
6965 AR=$ac_cv_prog_AR
6966 if test -n "$AR"; then
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6968 $as_echo "$AR" >&6; }
6969 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6971 $as_echo "no" >&6; }
6972 fi
6973
6974
6975 test -n "$AR" && break
6976 done
6977 fi
6978 if test -z "$AR"; then
6979 ac_ct_AR=$AR
6980 for ac_prog in ar
6981 do
6982 # Extract the first word of "$ac_prog", so it can be a program name with args.
6983 set dummy $ac_prog; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$ac_ct_AR"; then
6990 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6994 do
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_ac_ct_AR="$ac_prog"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7002 fi
7003 done
7004 done
7005 IFS=$as_save_IFS
7006
7007 fi
7008 fi
7009 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7010 if test -n "$ac_ct_AR"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7012 $as_echo "$ac_ct_AR" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7016 fi
7017
7018
7019 test -n "$ac_ct_AR" && break
7020 done
7021
7022 if test "x$ac_ct_AR" = x; then
7023 AR="false"
7024 else
7025 case $cross_compiling:$ac_tool_warned in
7026 yes:)
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7028 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7029 ac_tool_warned=yes ;;
7030 esac
7031 AR=$ac_ct_AR
7032 fi
7033 fi
7034
7035 : ${AR=ar}
7036 : ${AR_FLAGS=cru}
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7049 $as_echo_n "checking for archiver @FILE support... " >&6; }
7050 if ${lt_cv_ar_at_file+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052 else
7053 lt_cv_ar_at_file=no
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7056
7057 int
7058 main ()
7059 {
7060
7061 ;
7062 return 0;
7063 }
7064 _ACEOF
7065 if ac_fn_c_try_compile "$LINENO"; then :
7066 echo conftest.$ac_objext > conftest.lst
7067 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7068 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7069 (eval $lt_ar_try) 2>&5
7070 ac_status=$?
7071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7072 test $ac_status = 0; }
7073 if test 0 -eq "$ac_status"; then
7074 # Ensure the archiver fails upon bogus file names.
7075 rm -f conftest.$ac_objext libconftest.a
7076 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7077 (eval $lt_ar_try) 2>&5
7078 ac_status=$?
7079 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7080 test $ac_status = 0; }
7081 if test 0 -ne "$ac_status"; then
7082 lt_cv_ar_at_file=@
7083 fi
7084 fi
7085 rm -f conftest.* libconftest.a
7086
7087 fi
7088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7089
7090 fi
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7092 $as_echo "$lt_cv_ar_at_file" >&6; }
7093
7094 if test no = "$lt_cv_ar_at_file"; then
7095 archiver_list_spec=
7096 else
7097 archiver_list_spec=$lt_cv_ar_at_file
7098 fi
7099
7100
7101
7102
7103
7104
7105
7106 if test -n "$ac_tool_prefix"; then
7107 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7108 set dummy ${ac_tool_prefix}strip; ac_word=$2
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7110 $as_echo_n "checking for $ac_word... " >&6; }
7111 if ${ac_cv_prog_STRIP+:} false; then :
7112 $as_echo_n "(cached) " >&6
7113 else
7114 if test -n "$STRIP"; then
7115 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7116 else
7117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7118 for as_dir in $PATH
7119 do
7120 IFS=$as_save_IFS
7121 test -z "$as_dir" && as_dir=.
7122 for ac_exec_ext in '' $ac_executable_extensions; do
7123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7124 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7126 break 2
7127 fi
7128 done
7129 done
7130 IFS=$as_save_IFS
7131
7132 fi
7133 fi
7134 STRIP=$ac_cv_prog_STRIP
7135 if test -n "$STRIP"; then
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7137 $as_echo "$STRIP" >&6; }
7138 else
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7140 $as_echo "no" >&6; }
7141 fi
7142
7143
7144 fi
7145 if test -z "$ac_cv_prog_STRIP"; then
7146 ac_ct_STRIP=$STRIP
7147 # Extract the first word of "strip", so it can be a program name with args.
7148 set dummy strip; ac_word=$2
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7150 $as_echo_n "checking for $ac_word... " >&6; }
7151 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7152 $as_echo_n "(cached) " >&6
7153 else
7154 if test -n "$ac_ct_STRIP"; then
7155 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7156 else
7157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7158 for as_dir in $PATH
7159 do
7160 IFS=$as_save_IFS
7161 test -z "$as_dir" && as_dir=.
7162 for ac_exec_ext in '' $ac_executable_extensions; do
7163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7164 ac_cv_prog_ac_ct_STRIP="strip"
7165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 break 2
7167 fi
7168 done
7169 done
7170 IFS=$as_save_IFS
7171
7172 fi
7173 fi
7174 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7175 if test -n "$ac_ct_STRIP"; then
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7177 $as_echo "$ac_ct_STRIP" >&6; }
7178 else
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7180 $as_echo "no" >&6; }
7181 fi
7182
7183 if test "x$ac_ct_STRIP" = x; then
7184 STRIP=":"
7185 else
7186 case $cross_compiling:$ac_tool_warned in
7187 yes:)
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7190 ac_tool_warned=yes ;;
7191 esac
7192 STRIP=$ac_ct_STRIP
7193 fi
7194 else
7195 STRIP="$ac_cv_prog_STRIP"
7196 fi
7197
7198 test -z "$STRIP" && STRIP=:
7199
7200
7201
7202
7203
7204
7205 if test -n "$ac_tool_prefix"; then
7206 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7207 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7209 $as_echo_n "checking for $ac_word... " >&6; }
7210 if ${ac_cv_prog_RANLIB+:} false; then :
7211 $as_echo_n "(cached) " >&6
7212 else
7213 if test -n "$RANLIB"; then
7214 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7215 else
7216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7217 for as_dir in $PATH
7218 do
7219 IFS=$as_save_IFS
7220 test -z "$as_dir" && as_dir=.
7221 for ac_exec_ext in '' $ac_executable_extensions; do
7222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7223 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 break 2
7226 fi
7227 done
7228 done
7229 IFS=$as_save_IFS
7230
7231 fi
7232 fi
7233 RANLIB=$ac_cv_prog_RANLIB
7234 if test -n "$RANLIB"; then
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7236 $as_echo "$RANLIB" >&6; }
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 fi
7241
7242
7243 fi
7244 if test -z "$ac_cv_prog_RANLIB"; then
7245 ac_ct_RANLIB=$RANLIB
7246 # Extract the first word of "ranlib", so it can be a program name with args.
7247 set dummy ranlib; ac_word=$2
7248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7249 $as_echo_n "checking for $ac_word... " >&6; }
7250 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7251 $as_echo_n "(cached) " >&6
7252 else
7253 if test -n "$ac_ct_RANLIB"; then
7254 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7255 else
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 for as_dir in $PATH
7258 do
7259 IFS=$as_save_IFS
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7263 ac_cv_prog_ac_ct_RANLIB="ranlib"
7264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7265 break 2
7266 fi
7267 done
7268 done
7269 IFS=$as_save_IFS
7270
7271 fi
7272 fi
7273 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7274 if test -n "$ac_ct_RANLIB"; then
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7276 $as_echo "$ac_ct_RANLIB" >&6; }
7277 else
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7279 $as_echo "no" >&6; }
7280 fi
7281
7282 if test "x$ac_ct_RANLIB" = x; then
7283 RANLIB=":"
7284 else
7285 case $cross_compiling:$ac_tool_warned in
7286 yes:)
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7289 ac_tool_warned=yes ;;
7290 esac
7291 RANLIB=$ac_ct_RANLIB
7292 fi
7293 else
7294 RANLIB="$ac_cv_prog_RANLIB"
7295 fi
7296
7297 test -z "$RANLIB" && RANLIB=:
7298
7299
7300
7301
7302
7303
7304 # Determine commands to create old-style static archives.
7305 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7306 old_postinstall_cmds='chmod 644 $oldlib'
7307 old_postuninstall_cmds=
7308
7309 if test -n "$RANLIB"; then
7310 case $host_os in
7311 bitrig* | openbsd*)
7312 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7313 ;;
7314 *)
7315 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7316 ;;
7317 esac
7318 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7319 fi
7320
7321 case $host_os in
7322 darwin*)
7323 lock_old_archive_extraction=yes ;;
7324 *)
7325 lock_old_archive_extraction=no ;;
7326 esac
7327
7328
7329
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366 # If no C compiler was specified, use CC.
7367 LTCC=${LTCC-"$CC"}
7368
7369 # If no C compiler flags were specified, use CFLAGS.
7370 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7371
7372 # Allow CC to be a program name with arguments.
7373 compiler=$CC
7374
7375
7376 # Check for command to grab the raw symbol name followed by C symbol from nm.
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7378 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7379 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7380 $as_echo_n "(cached) " >&6
7381 else
7382
7383 # These are sane defaults that work on at least a few old systems.
7384 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7385
7386 # Character class describing NM global symbol codes.
7387 symcode='[BCDEGRST]'
7388
7389 # Regexp to match symbols that can be accessed directly from C.
7390 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7391
7392 # Define system-specific variables.
7393 case $host_os in
7394 aix*)
7395 symcode='[BCDT]'
7396 ;;
7397 cygwin* | mingw* | pw32* | cegcc*)
7398 symcode='[ABCDGISTW]'
7399 ;;
7400 hpux*)
7401 if test ia64 = "$host_cpu"; then
7402 symcode='[ABCDEGRST]'
7403 fi
7404 ;;
7405 irix* | nonstopux*)
7406 symcode='[BCDEGRST]'
7407 ;;
7408 osf*)
7409 symcode='[BCDEGQRST]'
7410 ;;
7411 solaris*)
7412 symcode='[BDRT]'
7413 ;;
7414 sco3.2v5*)
7415 symcode='[DT]'
7416 ;;
7417 sysv4.2uw2*)
7418 symcode='[DT]'
7419 ;;
7420 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7421 symcode='[ABDT]'
7422 ;;
7423 sysv4)
7424 symcode='[DFNSTU]'
7425 ;;
7426 esac
7427
7428 # If we're using GNU nm, then use its standard symbol codes.
7429 case `$NM -V 2>&1` in
7430 *GNU* | *'with BFD'*)
7431 symcode='[ABCDGIRSTW]' ;;
7432 esac
7433
7434 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7435 # Gets list of data symbols to import.
7436 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7437 # Adjust the below global symbol transforms to fixup imported variables.
7438 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7439 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
7440 lt_c_name_lib_hook="\
7441 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
7442 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
7443 else
7444 # Disable hooks by default.
7445 lt_cv_sys_global_symbol_to_import=
7446 lt_cdecl_hook=
7447 lt_c_name_hook=
7448 lt_c_name_lib_hook=
7449 fi
7450
7451 # Transform an extracted symbol line into a proper C declaration.
7452 # Some systems (esp. on ia64) link data and code symbols differently,
7453 # so use this general approach.
7454 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7455 $lt_cdecl_hook\
7456 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7457 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7458
7459 # Transform an extracted symbol line into symbol name and symbol address
7460 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7461 $lt_c_name_hook\
7462 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7463 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
7464
7465 # Transform an extracted symbol line into symbol name with lib prefix and
7466 # symbol address.
7467 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7468 $lt_c_name_lib_hook\
7469 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
7470 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
7471 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
7472
7473 # Handle CRLF in mingw tool chain
7474 opt_cr=
7475 case $build_os in
7476 mingw*)
7477 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478 ;;
7479 esac
7480
7481 # Try without a prefix underscore, then with it.
7482 for ac_symprfx in "" "_"; do
7483
7484 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7485 symxfrm="\\1 $ac_symprfx\\2 \\2"
7486
7487 # Write the raw and C identifiers.
7488 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7489 # Fake it for dumpbin and say T for any non-static function,
7490 # D for any global variable and I for any imported variable.
7491 # Also find C++ and __fastcall symbols from MSVC++,
7492 # which start with @ or ?.
7493 lt_cv_sys_global_symbol_pipe="$AWK '"\
7494 " {last_section=section; section=\$ 3};"\
7495 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7496 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7497 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7498 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7499 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7500 " \$ 0!~/External *\|/{next};"\
7501 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7502 " {if(hide[section]) next};"\
7503 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7504 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7505 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7506 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7507 " ' prfx=^$ac_symprfx"
7508 else
7509 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7510 fi
7511 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7512
7513 # Check to see that the pipe works correctly.
7514 pipe_works=no
7515
7516 rm -f conftest*
7517 cat > conftest.$ac_ext <<_LT_EOF
7518 #ifdef __cplusplus
7519 extern "C" {
7520 #endif
7521 char nm_test_var;
7522 void nm_test_func(void);
7523 void nm_test_func(void){}
7524 #ifdef __cplusplus
7525 }
7526 #endif
7527 int main(){nm_test_var='a';nm_test_func();return(0);}
7528 _LT_EOF
7529
7530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7531 (eval $ac_compile) 2>&5
7532 ac_status=$?
7533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7534 test $ac_status = 0; }; then
7535 # Now try to grab the symbols.
7536 nlist=conftest.nm
7537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7538 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7539 ac_status=$?
7540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7541 test $ac_status = 0; } && test -s "$nlist"; then
7542 # Try sorting and uniquifying the output.
7543 if sort "$nlist" | uniq > "$nlist"T; then
7544 mv -f "$nlist"T "$nlist"
7545 else
7546 rm -f "$nlist"T
7547 fi
7548
7549 # Make sure that we snagged all the symbols we need.
7550 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7551 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7552 cat <<_LT_EOF > conftest.$ac_ext
7553 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7554 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7555 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7556 relocations are performed -- see ld's documentation on pseudo-relocs. */
7557 # define LT_DLSYM_CONST
7558 #elif defined __osf__
7559 /* This system does not cope well with relocations in const data. */
7560 # define LT_DLSYM_CONST
7561 #else
7562 # define LT_DLSYM_CONST const
7563 #endif
7564
7565 #ifdef __cplusplus
7566 extern "C" {
7567 #endif
7568
7569 _LT_EOF
7570 # Now generate the symbol file.
7571 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7572
7573 cat <<_LT_EOF >> conftest.$ac_ext
7574
7575 /* The mapping between symbol names and symbols. */
7576 LT_DLSYM_CONST struct {
7577 const char *name;
7578 void *address;
7579 }
7580 lt__PROGRAM__LTX_preloaded_symbols[] =
7581 {
7582 { "@PROGRAM@", (void *) 0 },
7583 _LT_EOF
7584 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7585 cat <<\_LT_EOF >> conftest.$ac_ext
7586 {0, (void *) 0}
7587 };
7588
7589 /* This works around a problem in FreeBSD linker */
7590 #ifdef FREEBSD_WORKAROUND
7591 static const void *lt_preloaded_setup() {
7592 return lt__PROGRAM__LTX_preloaded_symbols;
7593 }
7594 #endif
7595
7596 #ifdef __cplusplus
7597 }
7598 #endif
7599 _LT_EOF
7600 # Now try linking the two files.
7601 mv conftest.$ac_objext conftstm.$ac_objext
7602 lt_globsym_save_LIBS=$LIBS
7603 lt_globsym_save_CFLAGS=$CFLAGS
7604 LIBS=conftstm.$ac_objext
7605 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7607 (eval $ac_link) 2>&5
7608 ac_status=$?
7609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7610 test $ac_status = 0; } && test -s conftest$ac_exeext; then
7611 pipe_works=yes
7612 fi
7613 LIBS=$lt_globsym_save_LIBS
7614 CFLAGS=$lt_globsym_save_CFLAGS
7615 else
7616 echo "cannot find nm_test_func in $nlist" >&5
7617 fi
7618 else
7619 echo "cannot find nm_test_var in $nlist" >&5
7620 fi
7621 else
7622 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7623 fi
7624 else
7625 echo "$progname: failed program was:" >&5
7626 cat conftest.$ac_ext >&5
7627 fi
7628 rm -rf conftest* conftst*
7629
7630 # Do not use the global_symbol_pipe unless it works.
7631 if test yes = "$pipe_works"; then
7632 break
7633 else
7634 lt_cv_sys_global_symbol_pipe=
7635 fi
7636 done
7637
7638 fi
7639
7640 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7641 lt_cv_sys_global_symbol_to_cdecl=
7642 fi
7643 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7645 $as_echo "failed" >&6; }
7646 else
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7648 $as_echo "ok" >&6; }
7649 fi
7650
7651 # Response file support.
7652 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7653 nm_file_list_spec='@'
7654 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7655 nm_file_list_spec='@'
7656 fi
7657
7658
7659
7660
7661
7662
7663
7664
7665
7666
7667
7668
7669
7670
7671
7672
7673
7674
7675
7676
7677
7678
7679
7680
7681
7682
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692
7693
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7695 $as_echo_n "checking for sysroot... " >&6; }
7696
7697 # Check whether --with-sysroot was given.
7698 if test "${with_sysroot+set}" = set; then :
7699 withval=$with_sysroot;
7700 else
7701 with_sysroot=no
7702 fi
7703
7704
7705 lt_sysroot=
7706 case $with_sysroot in #(
7707 yes)
7708 if test yes = "$GCC"; then
7709 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7710 fi
7711 ;; #(
7712 /*)
7713 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7714 ;; #(
7715 no|'')
7716 ;; #(
7717 *)
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7719 $as_echo "$with_sysroot" >&6; }
7720 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7721 ;;
7722 esac
7723
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7725 $as_echo "${lt_sysroot:-no}" >&6; }
7726
7727
7728
7729
7730
7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7732 $as_echo_n "checking for a working dd... " >&6; }
7733 if ${ac_cv_path_lt_DD+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735 else
7736 printf 0123456789abcdef0123456789abcdef >conftest.i
7737 cat conftest.i conftest.i >conftest2.i
7738 : ${lt_DD:=$DD}
7739 if test -z "$lt_DD"; then
7740 ac_path_lt_DD_found=false
7741 # Loop through the user's path and test for each of PROGNAME-LIST
7742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7743 for as_dir in $PATH
7744 do
7745 IFS=$as_save_IFS
7746 test -z "$as_dir" && as_dir=.
7747 for ac_prog in dd; do
7748 for ac_exec_ext in '' $ac_executable_extensions; do
7749 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7750 as_fn_executable_p "$ac_path_lt_DD" || continue
7751 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7752 cmp -s conftest.i conftest.out \
7753 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7754 fi
7755 $ac_path_lt_DD_found && break 3
7756 done
7757 done
7758 done
7759 IFS=$as_save_IFS
7760 if test -z "$ac_cv_path_lt_DD"; then
7761 :
7762 fi
7763 else
7764 ac_cv_path_lt_DD=$lt_DD
7765 fi
7766
7767 rm -f conftest.i conftest2.i conftest.out
7768 fi
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7770 $as_echo "$ac_cv_path_lt_DD" >&6; }
7771
7772
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7774 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7775 if ${lt_cv_truncate_bin+:} false; then :
7776 $as_echo_n "(cached) " >&6
7777 else
7778 printf 0123456789abcdef0123456789abcdef >conftest.i
7779 cat conftest.i conftest.i >conftest2.i
7780 lt_cv_truncate_bin=
7781 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7782 cmp -s conftest.i conftest.out \
7783 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7784 fi
7785 rm -f conftest.i conftest2.i conftest.out
7786 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7787 fi
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7789 $as_echo "$lt_cv_truncate_bin" >&6; }
7790
7791
7792
7793
7794
7795
7796
7797 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
7798 func_cc_basename ()
7799 {
7800 for cc_temp in $*""; do
7801 case $cc_temp in
7802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7804 \-*) ;;
7805 *) break;;
7806 esac
7807 done
7808 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7809 }
7810
7811 # Check whether --enable-libtool-lock was given.
7812 if test "${enable_libtool_lock+set}" = set; then :
7813 enableval=$enable_libtool_lock;
7814 fi
7815
7816 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7817
7818 # Some flags need to be propagated to the compiler or linker for good
7819 # libtool support.
7820 case $host in
7821 ia64-*-hpux*)
7822 # Find out what ABI is being produced by ac_compile, and set mode
7823 # options accordingly.
7824 echo 'int i;' > conftest.$ac_ext
7825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7826 (eval $ac_compile) 2>&5
7827 ac_status=$?
7828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7829 test $ac_status = 0; }; then
7830 case `/usr/bin/file conftest.$ac_objext` in
7831 *ELF-32*)
7832 HPUX_IA64_MODE=32
7833 ;;
7834 *ELF-64*)
7835 HPUX_IA64_MODE=64
7836 ;;
7837 esac
7838 fi
7839 rm -rf conftest*
7840 ;;
7841 *-*-irix6*)
7842 # Find out what ABI is being produced by ac_compile, and set linker
7843 # options accordingly.
7844 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7846 (eval $ac_compile) 2>&5
7847 ac_status=$?
7848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7849 test $ac_status = 0; }; then
7850 if test yes = "$lt_cv_prog_gnu_ld"; then
7851 case `/usr/bin/file conftest.$ac_objext` in
7852 *32-bit*)
7853 LD="${LD-ld} -melf32bsmip"
7854 ;;
7855 *N32*)
7856 LD="${LD-ld} -melf32bmipn32"
7857 ;;
7858 *64-bit*)
7859 LD="${LD-ld} -melf64bmip"
7860 ;;
7861 esac
7862 else
7863 case `/usr/bin/file conftest.$ac_objext` in
7864 *32-bit*)
7865 LD="${LD-ld} -32"
7866 ;;
7867 *N32*)
7868 LD="${LD-ld} -n32"
7869 ;;
7870 *64-bit*)
7871 LD="${LD-ld} -64"
7872 ;;
7873 esac
7874 fi
7875 fi
7876 rm -rf conftest*
7877 ;;
7878
7879 mips64*-*linux*)
7880 # Find out what ABI is being produced by ac_compile, and set linker
7881 # options accordingly.
7882 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7884 (eval $ac_compile) 2>&5
7885 ac_status=$?
7886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7887 test $ac_status = 0; }; then
7888 emul=elf
7889 case `/usr/bin/file conftest.$ac_objext` in
7890 *32-bit*)
7891 emul="${emul}32"
7892 ;;
7893 *64-bit*)
7894 emul="${emul}64"
7895 ;;
7896 esac
7897 case `/usr/bin/file conftest.$ac_objext` in
7898 *MSB*)
7899 emul="${emul}btsmip"
7900 ;;
7901 *LSB*)
7902 emul="${emul}ltsmip"
7903 ;;
7904 esac
7905 case `/usr/bin/file conftest.$ac_objext` in
7906 *N32*)
7907 emul="${emul}n32"
7908 ;;
7909 esac
7910 LD="${LD-ld} -m $emul"
7911 fi
7912 rm -rf conftest*
7913 ;;
7914
7915 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7916 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7917 # Find out what ABI is being produced by ac_compile, and set linker
7918 # options accordingly. Note that the listed cases only cover the
7919 # situations where additional linker options are needed (such as when
7920 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7921 # vice versa); the common cases where no linker options are needed do
7922 # not appear in the list.
7923 echo 'int i;' > conftest.$ac_ext
7924 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7925 (eval $ac_compile) 2>&5
7926 ac_status=$?
7927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7928 test $ac_status = 0; }; then
7929 case `/usr/bin/file conftest.o` in
7930 *32-bit*)
7931 case $host in
7932 x86_64-*kfreebsd*-gnu)
7933 LD="${LD-ld} -m elf_i386_fbsd"
7934 ;;
7935 x86_64-*linux*)
7936 case `/usr/bin/file conftest.o` in
7937 *x86-64*)
7938 LD="${LD-ld} -m elf32_x86_64"
7939 ;;
7940 *)
7941 LD="${LD-ld} -m elf_i386"
7942 ;;
7943 esac
7944 ;;
7945 powerpc64le-*linux*)
7946 LD="${LD-ld} -m elf32lppclinux"
7947 ;;
7948 powerpc64-*linux*)
7949 LD="${LD-ld} -m elf32ppclinux"
7950 ;;
7951 s390x-*linux*)
7952 LD="${LD-ld} -m elf_s390"
7953 ;;
7954 sparc64-*linux*)
7955 LD="${LD-ld} -m elf32_sparc"
7956 ;;
7957 esac
7958 ;;
7959 *64-bit*)
7960 case $host in
7961 x86_64-*kfreebsd*-gnu)
7962 LD="${LD-ld} -m elf_x86_64_fbsd"
7963 ;;
7964 x86_64-*linux*)
7965 LD="${LD-ld} -m elf_x86_64"
7966 ;;
7967 powerpcle-*linux*)
7968 LD="${LD-ld} -m elf64lppc"
7969 ;;
7970 powerpc-*linux*)
7971 LD="${LD-ld} -m elf64ppc"
7972 ;;
7973 s390*-*linux*|s390*-*tpf*)
7974 LD="${LD-ld} -m elf64_s390"
7975 ;;
7976 sparc*-*linux*)
7977 LD="${LD-ld} -m elf64_sparc"
7978 ;;
7979 esac
7980 ;;
7981 esac
7982 fi
7983 rm -rf conftest*
7984 ;;
7985
7986 *-*-sco3.2v5*)
7987 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7988 SAVE_CFLAGS=$CFLAGS
7989 CFLAGS="$CFLAGS -belf"
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7991 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7992 if ${lt_cv_cc_needs_belf+:} false; then :
7993 $as_echo_n "(cached) " >&6
7994 else
7995 ac_ext=c
7996 ac_cpp='$CPP $CPPFLAGS'
7997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8000
8001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8002 /* end confdefs.h. */
8003
8004 int
8005 main ()
8006 {
8007
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 if ac_fn_c_try_link "$LINENO"; then :
8013 lt_cv_cc_needs_belf=yes
8014 else
8015 lt_cv_cc_needs_belf=no
8016 fi
8017 rm -f core conftest.err conftest.$ac_objext \
8018 conftest$ac_exeext conftest.$ac_ext
8019 ac_ext=c
8020 ac_cpp='$CPP $CPPFLAGS'
8021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8024
8025 fi
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8027 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8028 if test yes != "$lt_cv_cc_needs_belf"; then
8029 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8030 CFLAGS=$SAVE_CFLAGS
8031 fi
8032 ;;
8033 *-*solaris*)
8034 # Find out what ABI is being produced by ac_compile, and set linker
8035 # options accordingly.
8036 echo 'int i;' > conftest.$ac_ext
8037 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8038 (eval $ac_compile) 2>&5
8039 ac_status=$?
8040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8041 test $ac_status = 0; }; then
8042 case `/usr/bin/file conftest.o` in
8043 *64-bit*)
8044 case $lt_cv_prog_gnu_ld in
8045 yes*)
8046 case $host in
8047 i?86-*-solaris*|x86_64-*-solaris*)
8048 LD="${LD-ld} -m elf_x86_64"
8049 ;;
8050 sparc*-*-solaris*)
8051 LD="${LD-ld} -m elf64_sparc"
8052 ;;
8053 esac
8054 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8055 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8056 LD=${LD-ld}_sol2
8057 fi
8058 ;;
8059 *)
8060 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8061 LD="${LD-ld} -64"
8062 fi
8063 ;;
8064 esac
8065 ;;
8066 esac
8067 fi
8068 rm -rf conftest*
8069 ;;
8070 esac
8071
8072 need_locks=$enable_libtool_lock
8073
8074 if test -n "$ac_tool_prefix"; then
8075 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8076 set dummy ${ac_tool_prefix}mt; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 if test -n "$MANIFEST_TOOL"; then
8083 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8084 else
8085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8086 for as_dir in $PATH
8087 do
8088 IFS=$as_save_IFS
8089 test -z "$as_dir" && as_dir=.
8090 for ac_exec_ext in '' $ac_executable_extensions; do
8091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8092 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8094 break 2
8095 fi
8096 done
8097 done
8098 IFS=$as_save_IFS
8099
8100 fi
8101 fi
8102 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8103 if test -n "$MANIFEST_TOOL"; then
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8105 $as_echo "$MANIFEST_TOOL" >&6; }
8106 else
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8108 $as_echo "no" >&6; }
8109 fi
8110
8111
8112 fi
8113 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8114 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8115 # Extract the first word of "mt", so it can be a program name with args.
8116 set dummy mt; ac_word=$2
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8118 $as_echo_n "checking for $ac_word... " >&6; }
8119 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8120 $as_echo_n "(cached) " >&6
8121 else
8122 if test -n "$ac_ct_MANIFEST_TOOL"; then
8123 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8124 else
8125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8126 for as_dir in $PATH
8127 do
8128 IFS=$as_save_IFS
8129 test -z "$as_dir" && as_dir=.
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi
8141 fi
8142 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8143 if test -n "$ac_ct_MANIFEST_TOOL"; then
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8145 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8146 else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148 $as_echo "no" >&6; }
8149 fi
8150
8151 if test "x$ac_ct_MANIFEST_TOOL" = x; then
8152 MANIFEST_TOOL=":"
8153 else
8154 case $cross_compiling:$ac_tool_warned in
8155 yes:)
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8158 ac_tool_warned=yes ;;
8159 esac
8160 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8161 fi
8162 else
8163 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8164 fi
8165
8166 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8168 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8169 if ${lt_cv_path_mainfest_tool+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 lt_cv_path_mainfest_tool=no
8173 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8174 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8175 cat conftest.err >&5
8176 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8177 lt_cv_path_mainfest_tool=yes
8178 fi
8179 rm -f conftest*
8180 fi
8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8182 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8183 if test yes != "$lt_cv_path_mainfest_tool"; then
8184 MANIFEST_TOOL=:
8185 fi
8186
8187
8188
8189
8190
8191
8192 case $host_os in
8193 rhapsody* | darwin*)
8194 if test -n "$ac_tool_prefix"; then
8195 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8196 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8198 $as_echo_n "checking for $ac_word... " >&6; }
8199 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8200 $as_echo_n "(cached) " >&6
8201 else
8202 if test -n "$DSYMUTIL"; then
8203 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8204 else
8205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8206 for as_dir in $PATH
8207 do
8208 IFS=$as_save_IFS
8209 test -z "$as_dir" && as_dir=.
8210 for ac_exec_ext in '' $ac_executable_extensions; do
8211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8212 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8214 break 2
8215 fi
8216 done
8217 done
8218 IFS=$as_save_IFS
8219
8220 fi
8221 fi
8222 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8223 if test -n "$DSYMUTIL"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8225 $as_echo "$DSYMUTIL" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232 fi
8233 if test -z "$ac_cv_prog_DSYMUTIL"; then
8234 ac_ct_DSYMUTIL=$DSYMUTIL
8235 # Extract the first word of "dsymutil", so it can be a program name with args.
8236 set dummy dsymutil; ac_word=$2
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8238 $as_echo_n "checking for $ac_word... " >&6; }
8239 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 if test -n "$ac_ct_DSYMUTIL"; then
8243 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8244 else
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH
8247 do
8248 IFS=$as_save_IFS
8249 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8252 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 break 2
8255 fi
8256 done
8257 done
8258 IFS=$as_save_IFS
8259
8260 fi
8261 fi
8262 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8263 if test -n "$ac_ct_DSYMUTIL"; then
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8265 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8266 else
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8268 $as_echo "no" >&6; }
8269 fi
8270
8271 if test "x$ac_ct_DSYMUTIL" = x; then
8272 DSYMUTIL=":"
8273 else
8274 case $cross_compiling:$ac_tool_warned in
8275 yes:)
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8278 ac_tool_warned=yes ;;
8279 esac
8280 DSYMUTIL=$ac_ct_DSYMUTIL
8281 fi
8282 else
8283 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8284 fi
8285
8286 if test -n "$ac_tool_prefix"; then
8287 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8288 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8290 $as_echo_n "checking for $ac_word... " >&6; }
8291 if ${ac_cv_prog_NMEDIT+:} false; then :
8292 $as_echo_n "(cached) " >&6
8293 else
8294 if test -n "$NMEDIT"; then
8295 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 test -z "$as_dir" && as_dir=.
8302 for ac_exec_ext in '' $ac_executable_extensions; do
8303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8304 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8306 break 2
8307 fi
8308 done
8309 done
8310 IFS=$as_save_IFS
8311
8312 fi
8313 fi
8314 NMEDIT=$ac_cv_prog_NMEDIT
8315 if test -n "$NMEDIT"; then
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8317 $as_echo "$NMEDIT" >&6; }
8318 else
8319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8320 $as_echo "no" >&6; }
8321 fi
8322
8323
8324 fi
8325 if test -z "$ac_cv_prog_NMEDIT"; then
8326 ac_ct_NMEDIT=$NMEDIT
8327 # Extract the first word of "nmedit", so it can be a program name with args.
8328 set dummy nmedit; ac_word=$2
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8330 $as_echo_n "checking for $ac_word... " >&6; }
8331 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8332 $as_echo_n "(cached) " >&6
8333 else
8334 if test -n "$ac_ct_NMEDIT"; then
8335 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8336 else
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338 for as_dir in $PATH
8339 do
8340 IFS=$as_save_IFS
8341 test -z "$as_dir" && as_dir=.
8342 for ac_exec_ext in '' $ac_executable_extensions; do
8343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8344 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8346 break 2
8347 fi
8348 done
8349 done
8350 IFS=$as_save_IFS
8351
8352 fi
8353 fi
8354 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8355 if test -n "$ac_ct_NMEDIT"; then
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8357 $as_echo "$ac_ct_NMEDIT" >&6; }
8358 else
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8360 $as_echo "no" >&6; }
8361 fi
8362
8363 if test "x$ac_ct_NMEDIT" = x; then
8364 NMEDIT=":"
8365 else
8366 case $cross_compiling:$ac_tool_warned in
8367 yes:)
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8369 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8370 ac_tool_warned=yes ;;
8371 esac
8372 NMEDIT=$ac_ct_NMEDIT
8373 fi
8374 else
8375 NMEDIT="$ac_cv_prog_NMEDIT"
8376 fi
8377
8378 if test -n "$ac_tool_prefix"; then
8379 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8380 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8382 $as_echo_n "checking for $ac_word... " >&6; }
8383 if ${ac_cv_prog_LIPO+:} false; then :
8384 $as_echo_n "(cached) " >&6
8385 else
8386 if test -n "$LIPO"; then
8387 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8388 else
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8390 for as_dir in $PATH
8391 do
8392 IFS=$as_save_IFS
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8396 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8398 break 2
8399 fi
8400 done
8401 done
8402 IFS=$as_save_IFS
8403
8404 fi
8405 fi
8406 LIPO=$ac_cv_prog_LIPO
8407 if test -n "$LIPO"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8409 $as_echo "$LIPO" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8413 fi
8414
8415
8416 fi
8417 if test -z "$ac_cv_prog_LIPO"; then
8418 ac_ct_LIPO=$LIPO
8419 # Extract the first word of "lipo", so it can be a program name with args.
8420 set dummy lipo; ac_word=$2
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8422 $as_echo_n "checking for $ac_word... " >&6; }
8423 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8424 $as_echo_n "(cached) " >&6
8425 else
8426 if test -n "$ac_ct_LIPO"; then
8427 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8428 else
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8431 do
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_prog_ac_ct_LIPO="lipo"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8439 fi
8440 done
8441 done
8442 IFS=$as_save_IFS
8443
8444 fi
8445 fi
8446 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8447 if test -n "$ac_ct_LIPO"; then
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8449 $as_echo "$ac_ct_LIPO" >&6; }
8450 else
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8452 $as_echo "no" >&6; }
8453 fi
8454
8455 if test "x$ac_ct_LIPO" = x; then
8456 LIPO=":"
8457 else
8458 case $cross_compiling:$ac_tool_warned in
8459 yes:)
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8462 ac_tool_warned=yes ;;
8463 esac
8464 LIPO=$ac_ct_LIPO
8465 fi
8466 else
8467 LIPO="$ac_cv_prog_LIPO"
8468 fi
8469
8470 if test -n "$ac_tool_prefix"; then
8471 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8472 set dummy ${ac_tool_prefix}otool; ac_word=$2
8473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8474 $as_echo_n "checking for $ac_word... " >&6; }
8475 if ${ac_cv_prog_OTOOL+:} false; then :
8476 $as_echo_n "(cached) " >&6
8477 else
8478 if test -n "$OTOOL"; then
8479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8480 else
8481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 for as_dir in $PATH
8483 do
8484 IFS=$as_save_IFS
8485 test -z "$as_dir" && as_dir=.
8486 for ac_exec_ext in '' $ac_executable_extensions; do
8487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8488 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8490 break 2
8491 fi
8492 done
8493 done
8494 IFS=$as_save_IFS
8495
8496 fi
8497 fi
8498 OTOOL=$ac_cv_prog_OTOOL
8499 if test -n "$OTOOL"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8501 $as_echo "$OTOOL" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8505 fi
8506
8507
8508 fi
8509 if test -z "$ac_cv_prog_OTOOL"; then
8510 ac_ct_OTOOL=$OTOOL
8511 # Extract the first word of "otool", so it can be a program name with args.
8512 set dummy otool; ac_word=$2
8513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8514 $as_echo_n "checking for $ac_word... " >&6; }
8515 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8516 $as_echo_n "(cached) " >&6
8517 else
8518 if test -n "$ac_ct_OTOOL"; then
8519 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8520 else
8521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8522 for as_dir in $PATH
8523 do
8524 IFS=$as_save_IFS
8525 test -z "$as_dir" && as_dir=.
8526 for ac_exec_ext in '' $ac_executable_extensions; do
8527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8528 ac_cv_prog_ac_ct_OTOOL="otool"
8529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8530 break 2
8531 fi
8532 done
8533 done
8534 IFS=$as_save_IFS
8535
8536 fi
8537 fi
8538 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8539 if test -n "$ac_ct_OTOOL"; then
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8541 $as_echo "$ac_ct_OTOOL" >&6; }
8542 else
8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8544 $as_echo "no" >&6; }
8545 fi
8546
8547 if test "x$ac_ct_OTOOL" = x; then
8548 OTOOL=":"
8549 else
8550 case $cross_compiling:$ac_tool_warned in
8551 yes:)
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8554 ac_tool_warned=yes ;;
8555 esac
8556 OTOOL=$ac_ct_OTOOL
8557 fi
8558 else
8559 OTOOL="$ac_cv_prog_OTOOL"
8560 fi
8561
8562 if test -n "$ac_tool_prefix"; then
8563 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8564 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8566 $as_echo_n "checking for $ac_word... " >&6; }
8567 if ${ac_cv_prog_OTOOL64+:} false; then :
8568 $as_echo_n "(cached) " >&6
8569 else
8570 if test -n "$OTOOL64"; then
8571 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8572 else
8573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8574 for as_dir in $PATH
8575 do
8576 IFS=$as_save_IFS
8577 test -z "$as_dir" && as_dir=.
8578 for ac_exec_ext in '' $ac_executable_extensions; do
8579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8580 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 break 2
8583 fi
8584 done
8585 done
8586 IFS=$as_save_IFS
8587
8588 fi
8589 fi
8590 OTOOL64=$ac_cv_prog_OTOOL64
8591 if test -n "$OTOOL64"; then
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8593 $as_echo "$OTOOL64" >&6; }
8594 else
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8596 $as_echo "no" >&6; }
8597 fi
8598
8599
8600 fi
8601 if test -z "$ac_cv_prog_OTOOL64"; then
8602 ac_ct_OTOOL64=$OTOOL64
8603 # Extract the first word of "otool64", so it can be a program name with args.
8604 set dummy otool64; ac_word=$2
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8606 $as_echo_n "checking for $ac_word... " >&6; }
8607 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8608 $as_echo_n "(cached) " >&6
8609 else
8610 if test -n "$ac_ct_OTOOL64"; then
8611 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8612 else
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8614 for as_dir in $PATH
8615 do
8616 IFS=$as_save_IFS
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8620 ac_cv_prog_ac_ct_OTOOL64="otool64"
8621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8622 break 2
8623 fi
8624 done
8625 done
8626 IFS=$as_save_IFS
8627
8628 fi
8629 fi
8630 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8631 if test -n "$ac_ct_OTOOL64"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8633 $as_echo "$ac_ct_OTOOL64" >&6; }
8634 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8637 fi
8638
8639 if test "x$ac_ct_OTOOL64" = x; then
8640 OTOOL64=":"
8641 else
8642 case $cross_compiling:$ac_tool_warned in
8643 yes:)
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8646 ac_tool_warned=yes ;;
8647 esac
8648 OTOOL64=$ac_ct_OTOOL64
8649 fi
8650 else
8651 OTOOL64="$ac_cv_prog_OTOOL64"
8652 fi
8653
8654
8655
8656
8657
8658
8659
8660
8661
8662
8663
8664
8665
8666
8667
8668
8669
8670
8671
8672
8673
8674
8675
8676
8677
8678
8679
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8681 $as_echo_n "checking for -single_module linker flag... " >&6; }
8682 if ${lt_cv_apple_cc_single_mod+:} false; then :
8683 $as_echo_n "(cached) " >&6
8684 else
8685 lt_cv_apple_cc_single_mod=no
8686 if test -z "$LT_MULTI_MODULE"; then
8687 # By default we will add the -single_module flag. You can override
8688 # by either setting the environment variable LT_MULTI_MODULE
8689 # non-empty at configure time, or by adding -multi_module to the
8690 # link flags.
8691 rm -rf libconftest.dylib*
8692 echo "int foo(void){return 1;}" > conftest.c
8693 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694 -dynamiclib -Wl,-single_module conftest.c" >&5
8695 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8696 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8697 _lt_result=$?
8698 # If there is a non-empty error log, and "single_module"
8699 # appears in it, assume the flag caused a linker warning
8700 if test -s conftest.err && $GREP single_module conftest.err; then
8701 cat conftest.err >&5
8702 # Otherwise, if the output was created with a 0 exit code from
8703 # the compiler, it worked.
8704 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8705 lt_cv_apple_cc_single_mod=yes
8706 else
8707 cat conftest.err >&5
8708 fi
8709 rm -rf libconftest.dylib*
8710 rm -f conftest.*
8711 fi
8712 fi
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8714 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8715
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8717 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8718 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8719 $as_echo_n "(cached) " >&6
8720 else
8721 lt_cv_ld_exported_symbols_list=no
8722 save_LDFLAGS=$LDFLAGS
8723 echo "_main" > conftest.sym
8724 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726 /* end confdefs.h. */
8727
8728 int
8729 main ()
8730 {
8731
8732 ;
8733 return 0;
8734 }
8735 _ACEOF
8736 if ac_fn_c_try_link "$LINENO"; then :
8737 lt_cv_ld_exported_symbols_list=yes
8738 else
8739 lt_cv_ld_exported_symbols_list=no
8740 fi
8741 rm -f core conftest.err conftest.$ac_objext \
8742 conftest$ac_exeext conftest.$ac_ext
8743 LDFLAGS=$save_LDFLAGS
8744
8745 fi
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8747 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8748
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8750 $as_echo_n "checking for -force_load linker flag... " >&6; }
8751 if ${lt_cv_ld_force_load+:} false; then :
8752 $as_echo_n "(cached) " >&6
8753 else
8754 lt_cv_ld_force_load=no
8755 cat > conftest.c << _LT_EOF
8756 int forced_loaded() { return 2;}
8757 _LT_EOF
8758 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8759 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8760 echo "$AR cru libconftest.a conftest.o" >&5
8761 $AR cru libconftest.a conftest.o 2>&5
8762 echo "$RANLIB libconftest.a" >&5
8763 $RANLIB libconftest.a 2>&5
8764 cat > conftest.c << _LT_EOF
8765 int main() { return 0;}
8766 _LT_EOF
8767 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8768 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8769 _lt_result=$?
8770 if test -s conftest.err && $GREP force_load conftest.err; then
8771 cat conftest.err >&5
8772 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8773 lt_cv_ld_force_load=yes
8774 else
8775 cat conftest.err >&5
8776 fi
8777 rm -f conftest.err libconftest.a conftest conftest.c
8778 rm -rf conftest.dSYM
8779
8780 fi
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8782 $as_echo "$lt_cv_ld_force_load" >&6; }
8783 case $host_os in
8784 rhapsody* | darwin1.[012])
8785 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8786 darwin1.*)
8787 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8788 darwin*) # darwin 5.x on
8789 # if running on 10.5 or later, the deployment target defaults
8790 # to the OS version, if on x86, and 10.4, the deployment
8791 # target defaults to 10.4. Don't you love it?
8792 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8793 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8794 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8795 10.[012][,.]*)
8796 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8797 10.*)
8798 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8799 esac
8800 ;;
8801 esac
8802 if test yes = "$lt_cv_apple_cc_single_mod"; then
8803 _lt_dar_single_mod='$single_module'
8804 fi
8805 if test yes = "$lt_cv_ld_exported_symbols_list"; then
8806 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8807 else
8808 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8809 fi
8810 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8811 _lt_dsymutil='~$DSYMUTIL $lib || :'
8812 else
8813 _lt_dsymutil=
8814 fi
8815 ;;
8816 esac
8817
8818 # func_munge_path_list VARIABLE PATH
8819 # -----------------------------------
8820 # VARIABLE is name of variable containing _space_ separated list of
8821 # directories to be munged by the contents of PATH, which is string
8822 # having a format:
8823 # "DIR[:DIR]:"
8824 # string "DIR[ DIR]" will be prepended to VARIABLE
8825 # ":DIR[:DIR]"
8826 # string "DIR[ DIR]" will be appended to VARIABLE
8827 # "DIRP[:DIRP]::[DIRA:]DIRA"
8828 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8829 # "DIRA[ DIRA]" will be appended to VARIABLE
8830 # "DIR[:DIR]"
8831 # VARIABLE will be replaced by "DIR[ DIR]"
8832 func_munge_path_list ()
8833 {
8834 case x$2 in
8835 x)
8836 ;;
8837 *:)
8838 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8839 ;;
8840 x:*)
8841 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8842 ;;
8843 *::*)
8844 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8845 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8846 ;;
8847 *)
8848 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8849 ;;
8850 esac
8851 }
8852
8853 for ac_header in dlfcn.h
8854 do :
8855 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8856 "
8857 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8858 cat >>confdefs.h <<_ACEOF
8859 #define HAVE_DLFCN_H 1
8860 _ACEOF
8861
8862 fi
8863
8864 done
8865
8866
8867
8868
8869
8870 # Set options
8871 # Check whether --enable-static was given.
8872 if test "${enable_static+set}" = set; then :
8873 enableval=$enable_static; p=${PACKAGE-default}
8874 case $enableval in
8875 yes) enable_static=yes ;;
8876 no) enable_static=no ;;
8877 *)
8878 enable_static=no
8879 # Look at the argument we got. We use all the common list separators.
8880 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8881 for pkg in $enableval; do
8882 IFS=$lt_save_ifs
8883 if test "X$pkg" = "X$p"; then
8884 enable_static=yes
8885 fi
8886 done
8887 IFS=$lt_save_ifs
8888 ;;
8889 esac
8890 else
8891 enable_static=no
8892 fi
8893
8894
8895
8896
8897
8898
8899
8900 enable_win32_dll=yes
8901
8902 case $host in
8903 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8904 if test -n "$ac_tool_prefix"; then
8905 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8906 set dummy ${ac_tool_prefix}as; ac_word=$2
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8908 $as_echo_n "checking for $ac_word... " >&6; }
8909 if ${ac_cv_prog_AS+:} false; then :
8910 $as_echo_n "(cached) " >&6
8911 else
8912 if test -n "$AS"; then
8913 ac_cv_prog_AS="$AS" # Let the user override the test.
8914 else
8915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8916 for as_dir in $PATH
8917 do
8918 IFS=$as_save_IFS
8919 test -z "$as_dir" && as_dir=.
8920 for ac_exec_ext in '' $ac_executable_extensions; do
8921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8922 ac_cv_prog_AS="${ac_tool_prefix}as"
8923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8924 break 2
8925 fi
8926 done
8927 done
8928 IFS=$as_save_IFS
8929
8930 fi
8931 fi
8932 AS=$ac_cv_prog_AS
8933 if test -n "$AS"; then
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8935 $as_echo "$AS" >&6; }
8936 else
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8938 $as_echo "no" >&6; }
8939 fi
8940
8941
8942 fi
8943 if test -z "$ac_cv_prog_AS"; then
8944 ac_ct_AS=$AS
8945 # Extract the first word of "as", so it can be a program name with args.
8946 set dummy as; ac_word=$2
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8948 $as_echo_n "checking for $ac_word... " >&6; }
8949 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8950 $as_echo_n "(cached) " >&6
8951 else
8952 if test -n "$ac_ct_AS"; then
8953 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8954 else
8955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8956 for as_dir in $PATH
8957 do
8958 IFS=$as_save_IFS
8959 test -z "$as_dir" && as_dir=.
8960 for ac_exec_ext in '' $ac_executable_extensions; do
8961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8962 ac_cv_prog_ac_ct_AS="as"
8963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8964 break 2
8965 fi
8966 done
8967 done
8968 IFS=$as_save_IFS
8969
8970 fi
8971 fi
8972 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8973 if test -n "$ac_ct_AS"; then
8974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8975 $as_echo "$ac_ct_AS" >&6; }
8976 else
8977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8978 $as_echo "no" >&6; }
8979 fi
8980
8981 if test "x$ac_ct_AS" = x; then
8982 AS="false"
8983 else
8984 case $cross_compiling:$ac_tool_warned in
8985 yes:)
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8988 ac_tool_warned=yes ;;
8989 esac
8990 AS=$ac_ct_AS
8991 fi
8992 else
8993 AS="$ac_cv_prog_AS"
8994 fi
8995
8996 if test -n "$ac_tool_prefix"; then
8997 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8998 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9000 $as_echo_n "checking for $ac_word... " >&6; }
9001 if ${ac_cv_prog_DLLTOOL+:} false; then :
9002 $as_echo_n "(cached) " >&6
9003 else
9004 if test -n "$DLLTOOL"; then
9005 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9006 else
9007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 for as_dir in $PATH
9009 do
9010 IFS=$as_save_IFS
9011 test -z "$as_dir" && as_dir=.
9012 for ac_exec_ext in '' $ac_executable_extensions; do
9013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9014 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9016 break 2
9017 fi
9018 done
9019 done
9020 IFS=$as_save_IFS
9021
9022 fi
9023 fi
9024 DLLTOOL=$ac_cv_prog_DLLTOOL
9025 if test -n "$DLLTOOL"; then
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9027 $as_echo "$DLLTOOL" >&6; }
9028 else
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9030 $as_echo "no" >&6; }
9031 fi
9032
9033
9034 fi
9035 if test -z "$ac_cv_prog_DLLTOOL"; then
9036 ac_ct_DLLTOOL=$DLLTOOL
9037 # Extract the first word of "dlltool", so it can be a program name with args.
9038 set dummy dlltool; ac_word=$2
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9040 $as_echo_n "checking for $ac_word... " >&6; }
9041 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9042 $as_echo_n "(cached) " >&6
9043 else
9044 if test -n "$ac_ct_DLLTOOL"; then
9045 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9046 else
9047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9048 for as_dir in $PATH
9049 do
9050 IFS=$as_save_IFS
9051 test -z "$as_dir" && as_dir=.
9052 for ac_exec_ext in '' $ac_executable_extensions; do
9053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9054 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9056 break 2
9057 fi
9058 done
9059 done
9060 IFS=$as_save_IFS
9061
9062 fi
9063 fi
9064 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9065 if test -n "$ac_ct_DLLTOOL"; then
9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9067 $as_echo "$ac_ct_DLLTOOL" >&6; }
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9071 fi
9072
9073 if test "x$ac_ct_DLLTOOL" = x; then
9074 DLLTOOL="false"
9075 else
9076 case $cross_compiling:$ac_tool_warned in
9077 yes:)
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9080 ac_tool_warned=yes ;;
9081 esac
9082 DLLTOOL=$ac_ct_DLLTOOL
9083 fi
9084 else
9085 DLLTOOL="$ac_cv_prog_DLLTOOL"
9086 fi
9087
9088 if test -n "$ac_tool_prefix"; then
9089 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9090 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9092 $as_echo_n "checking for $ac_word... " >&6; }
9093 if ${ac_cv_prog_OBJDUMP+:} false; then :
9094 $as_echo_n "(cached) " >&6
9095 else
9096 if test -n "$OBJDUMP"; then
9097 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9098 else
9099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9100 for as_dir in $PATH
9101 do
9102 IFS=$as_save_IFS
9103 test -z "$as_dir" && as_dir=.
9104 for ac_exec_ext in '' $ac_executable_extensions; do
9105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9106 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 break 2
9109 fi
9110 done
9111 done
9112 IFS=$as_save_IFS
9113
9114 fi
9115 fi
9116 OBJDUMP=$ac_cv_prog_OBJDUMP
9117 if test -n "$OBJDUMP"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9119 $as_echo "$OBJDUMP" >&6; }
9120 else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122 $as_echo "no" >&6; }
9123 fi
9124
9125
9126 fi
9127 if test -z "$ac_cv_prog_OBJDUMP"; then
9128 ac_ct_OBJDUMP=$OBJDUMP
9129 # Extract the first word of "objdump", so it can be a program name with args.
9130 set dummy objdump; ac_word=$2
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9132 $as_echo_n "checking for $ac_word... " >&6; }
9133 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9134 $as_echo_n "(cached) " >&6
9135 else
9136 if test -n "$ac_ct_OBJDUMP"; then
9137 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9138 else
9139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9140 for as_dir in $PATH
9141 do
9142 IFS=$as_save_IFS
9143 test -z "$as_dir" && as_dir=.
9144 for ac_exec_ext in '' $ac_executable_extensions; do
9145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9146 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 break 2
9149 fi
9150 done
9151 done
9152 IFS=$as_save_IFS
9153
9154 fi
9155 fi
9156 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9157 if test -n "$ac_ct_OBJDUMP"; then
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9159 $as_echo "$ac_ct_OBJDUMP" >&6; }
9160 else
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9162 $as_echo "no" >&6; }
9163 fi
9164
9165 if test "x$ac_ct_OBJDUMP" = x; then
9166 OBJDUMP="false"
9167 else
9168 case $cross_compiling:$ac_tool_warned in
9169 yes:)
9170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9172 ac_tool_warned=yes ;;
9173 esac
9174 OBJDUMP=$ac_ct_OBJDUMP
9175 fi
9176 else
9177 OBJDUMP="$ac_cv_prog_OBJDUMP"
9178 fi
9179
9180 ;;
9181 esac
9182
9183 test -z "$AS" && AS=as
9184
9185
9186
9187
9188
9189 test -z "$DLLTOOL" && DLLTOOL=dlltool
9190
9191
9192
9193
9194
9195 test -z "$OBJDUMP" && OBJDUMP=objdump
9196
9197
9198
9199
9200
9201
9202
9203 enable_dlopen=no
9204
9205
9206
9207 # Check whether --enable-shared was given.
9208 if test "${enable_shared+set}" = set; then :
9209 enableval=$enable_shared; p=${PACKAGE-default}
9210 case $enableval in
9211 yes) enable_shared=yes ;;
9212 no) enable_shared=no ;;
9213 *)
9214 enable_shared=no
9215 # Look at the argument we got. We use all the common list separators.
9216 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9217 for pkg in $enableval; do
9218 IFS=$lt_save_ifs
9219 if test "X$pkg" = "X$p"; then
9220 enable_shared=yes
9221 fi
9222 done
9223 IFS=$lt_save_ifs
9224 ;;
9225 esac
9226 else
9227 enable_shared=yes
9228 fi
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238
9239
9240 # Check whether --with-pic was given.
9241 if test "${with_pic+set}" = set; then :
9242 withval=$with_pic; lt_p=${PACKAGE-default}
9243 case $withval in
9244 yes|no) pic_mode=$withval ;;
9245 *)
9246 pic_mode=default
9247 # Look at the argument we got. We use all the common list separators.
9248 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9249 for lt_pkg in $withval; do
9250 IFS=$lt_save_ifs
9251 if test "X$lt_pkg" = "X$lt_p"; then
9252 pic_mode=yes
9253 fi
9254 done
9255 IFS=$lt_save_ifs
9256 ;;
9257 esac
9258 else
9259 pic_mode=default
9260 fi
9261
9262
9263
9264
9265
9266
9267
9268
9269 # Check whether --enable-fast-install was given.
9270 if test "${enable_fast_install+set}" = set; then :
9271 enableval=$enable_fast_install; p=${PACKAGE-default}
9272 case $enableval in
9273 yes) enable_fast_install=yes ;;
9274 no) enable_fast_install=no ;;
9275 *)
9276 enable_fast_install=no
9277 # Look at the argument we got. We use all the common list separators.
9278 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9279 for pkg in $enableval; do
9280 IFS=$lt_save_ifs
9281 if test "X$pkg" = "X$p"; then
9282 enable_fast_install=yes
9283 fi
9284 done
9285 IFS=$lt_save_ifs
9286 ;;
9287 esac
9288 else
9289 enable_fast_install=yes
9290 fi
9291
9292
9293
9294
9295
9296
9297
9298
9299 shared_archive_member_spec=
9300 case $host,$enable_shared in
9301 power*-*-aix[5-9]*,yes)
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9303 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9304
9305 # Check whether --with-aix-soname was given.
9306 if test "${with_aix_soname+set}" = set; then :
9307 withval=$with_aix_soname; case $withval in
9308 aix|svr4|both)
9309 ;;
9310 *)
9311 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9312 ;;
9313 esac
9314 lt_cv_with_aix_soname=$with_aix_soname
9315 else
9316 if ${lt_cv_with_aix_soname+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
9319 lt_cv_with_aix_soname=aix
9320 fi
9321
9322 with_aix_soname=$lt_cv_with_aix_soname
9323 fi
9324
9325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9326 $as_echo "$with_aix_soname" >&6; }
9327 if test aix != "$with_aix_soname"; then
9328 # For the AIX way of multilib, we name the shared archive member
9329 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9330 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9331 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9332 # the AIX toolchain works better with OBJECT_MODE set (default 32).
9333 if test 64 = "${OBJECT_MODE-32}"; then
9334 shared_archive_member_spec=shr_64
9335 else
9336 shared_archive_member_spec=shr
9337 fi
9338 fi
9339 ;;
9340 *)
9341 with_aix_soname=aix
9342 ;;
9343 esac
9344
9345
9346
9347
9348
9349
9350
9351
9352
9353
9354 # This can be used to rebuild libtool when needed
9355 LIBTOOL_DEPS=$ltmain
9356
9357 # Always use our own libtool.
9358 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9359
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374
9375
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386
9387
9388
9389 test -z "$LN_S" && LN_S="ln -s"
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402
9403
9404 if test -n "${ZSH_VERSION+set}"; then
9405 setopt NO_GLOB_SUBST
9406 fi
9407
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9409 $as_echo_n "checking for objdir... " >&6; }
9410 if ${lt_cv_objdir+:} false; then :
9411 $as_echo_n "(cached) " >&6
9412 else
9413 rm -f .libs 2>/dev/null
9414 mkdir .libs 2>/dev/null
9415 if test -d .libs; then
9416 lt_cv_objdir=.libs
9417 else
9418 # MS-DOS does not allow filenames that begin with a dot.
9419 lt_cv_objdir=_libs
9420 fi
9421 rmdir .libs 2>/dev/null
9422 fi
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9424 $as_echo "$lt_cv_objdir" >&6; }
9425 objdir=$lt_cv_objdir
9426
9427
9428
9429
9430
9431 cat >>confdefs.h <<_ACEOF
9432 #define LT_OBJDIR "$lt_cv_objdir/"
9433 _ACEOF
9434
9435
9436
9437
9438 case $host_os in
9439 aix3*)
9440 # AIX sometimes has problems with the GCC collect2 program. For some
9441 # reason, if we set the COLLECT_NAMES environment variable, the problems
9442 # vanish in a puff of smoke.
9443 if test set != "${COLLECT_NAMES+set}"; then
9444 COLLECT_NAMES=
9445 export COLLECT_NAMES
9446 fi
9447 ;;
9448 esac
9449
9450 # Global variables:
9451 ofile=libtool
9452 can_build_shared=yes
9453
9454 # All known linkers require a '.a' archive for static linking (except MSVC,
9455 # which needs '.lib').
9456 libext=a
9457
9458 with_gnu_ld=$lt_cv_prog_gnu_ld
9459
9460 old_CC=$CC
9461 old_CFLAGS=$CFLAGS
9462
9463 # Set sane defaults for various variables
9464 test -z "$CC" && CC=cc
9465 test -z "$LTCC" && LTCC=$CC
9466 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9467 test -z "$LD" && LD=ld
9468 test -z "$ac_objext" && ac_objext=o
9469
9470 func_cc_basename $compiler
9471 cc_basename=$func_cc_basename_result
9472
9473
9474 # Only perform the check for file, if the check method requires it
9475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9476 case $deplibs_check_method in
9477 file_magic*)
9478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9480 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9481 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 case $MAGIC_CMD in
9485 [\\/*] | ?:[\\/]*)
9486 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9487 ;;
9488 *)
9489 lt_save_MAGIC_CMD=$MAGIC_CMD
9490 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492 for ac_dir in $ac_dummy; do
9493 IFS=$lt_save_ifs
9494 test -z "$ac_dir" && ac_dir=.
9495 if test -f "$ac_dir/${ac_tool_prefix}file"; then
9496 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9497 if test -n "$file_magic_test_file"; then
9498 case $deplibs_check_method in
9499 "file_magic "*)
9500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503 $EGREP "$file_magic_regex" > /dev/null; then
9504 :
9505 else
9506 cat <<_LT_EOF 1>&2
9507
9508 *** Warning: the command libtool uses to detect shared libraries,
9509 *** $file_magic_cmd, produces output that libtool cannot recognize.
9510 *** The result is that libtool may fail to recognize shared libraries
9511 *** as such. This will affect the creation of libtool libraries that
9512 *** depend on shared libraries, but programs linked with such libtool
9513 *** libraries will work regardless of this problem. Nevertheless, you
9514 *** may want to report the problem to your system manager and/or to
9515 *** bug-libtool (at] gnu.org
9516
9517 _LT_EOF
9518 fi ;;
9519 esac
9520 fi
9521 break
9522 fi
9523 done
9524 IFS=$lt_save_ifs
9525 MAGIC_CMD=$lt_save_MAGIC_CMD
9526 ;;
9527 esac
9528 fi
9529
9530 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9531 if test -n "$MAGIC_CMD"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533 $as_echo "$MAGIC_CMD" >&6; }
9534 else
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9537 fi
9538
9539
9540
9541
9542
9543 if test -z "$lt_cv_path_MAGIC_CMD"; then
9544 if test -n "$ac_tool_prefix"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9546 $as_echo_n "checking for file... " >&6; }
9547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 case $MAGIC_CMD in
9551 [\\/*] | ?:[\\/]*)
9552 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9553 ;;
9554 *)
9555 lt_save_MAGIC_CMD=$MAGIC_CMD
9556 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9558 for ac_dir in $ac_dummy; do
9559 IFS=$lt_save_ifs
9560 test -z "$ac_dir" && ac_dir=.
9561 if test -f "$ac_dir/file"; then
9562 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9563 if test -n "$file_magic_test_file"; then
9564 case $deplibs_check_method in
9565 "file_magic "*)
9566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9567 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9569 $EGREP "$file_magic_regex" > /dev/null; then
9570 :
9571 else
9572 cat <<_LT_EOF 1>&2
9573
9574 *** Warning: the command libtool uses to detect shared libraries,
9575 *** $file_magic_cmd, produces output that libtool cannot recognize.
9576 *** The result is that libtool may fail to recognize shared libraries
9577 *** as such. This will affect the creation of libtool libraries that
9578 *** depend on shared libraries, but programs linked with such libtool
9579 *** libraries will work regardless of this problem. Nevertheless, you
9580 *** may want to report the problem to your system manager and/or to
9581 *** bug-libtool (at] gnu.org
9582
9583 _LT_EOF
9584 fi ;;
9585 esac
9586 fi
9587 break
9588 fi
9589 done
9590 IFS=$lt_save_ifs
9591 MAGIC_CMD=$lt_save_MAGIC_CMD
9592 ;;
9593 esac
9594 fi
9595
9596 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9597 if test -n "$MAGIC_CMD"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9599 $as_echo "$MAGIC_CMD" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9603 fi
9604
9605
9606 else
9607 MAGIC_CMD=:
9608 fi
9609 fi
9610
9611 fi
9612 ;;
9613 esac
9614
9615 # Use C for the default configuration in the libtool script
9616
9617 lt_save_CC=$CC
9618 ac_ext=c
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9623
9624
9625 # Source file extension for C test sources.
9626 ac_ext=c
9627
9628 # Object file extension for compiled C test sources.
9629 objext=o
9630 objext=$objext
9631
9632 # Code to be used in simple compile tests
9633 lt_simple_compile_test_code="int some_variable = 0;"
9634
9635 # Code to be used in simple link tests
9636 lt_simple_link_test_code='int main(){return(0);}'
9637
9638
9639
9640
9641
9642
9643
9644 # If no C compiler was specified, use CC.
9645 LTCC=${LTCC-"$CC"}
9646
9647 # If no C compiler flags were specified, use CFLAGS.
9648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9649
9650 # Allow CC to be a program name with arguments.
9651 compiler=$CC
9652
9653 # Save the default compiler, since it gets overwritten when the other
9654 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9655 compiler_DEFAULT=$CC
9656
9657 # save warnings/boilerplate of simple test code
9658 ac_outfile=conftest.$ac_objext
9659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9661 _lt_compiler_boilerplate=`cat conftest.err`
9662 $RM conftest*
9663
9664 ac_outfile=conftest.$ac_objext
9665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9667 _lt_linker_boilerplate=`cat conftest.err`
9668 $RM -r conftest*
9669
9670
9671 ## CAVEAT EMPTOR:
9672 ## There is no encapsulation within the following macros, do not change
9673 ## the running order or otherwise move them around unless you know exactly
9674 ## what you are doing...
9675 if test -n "$compiler"; then
9676
9677 lt_prog_compiler_no_builtin_flag=
9678
9679 if test yes = "$GCC"; then
9680 case $cc_basename in
9681 nvcc*)
9682 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9683 *)
9684 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9685 esac
9686
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9688 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9689 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 lt_cv_prog_compiler_rtti_exceptions=no
9693 ac_outfile=conftest.$ac_objext
9694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
9696 # Insert the option either (1) after the last *FLAGS variable, or
9697 # (2) before a word containing "conftest.", or (3) at the end.
9698 # Note that $ac_compile itself does not contain backslashes and begins
9699 # with a dollar sign (not a hyphen), so the echo should work correctly.
9700 # The option is referenced via a variable to avoid confusing sed.
9701 lt_compile=`echo "$ac_compile" | $SED \
9702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704 -e 's:$: $lt_compiler_flag:'`
9705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9706 (eval "$lt_compile" 2>conftest.err)
9707 ac_status=$?
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 if (exit $ac_status) && test -s "$ac_outfile"; then
9711 # The compiler can only warn and ignore the option if not recognized
9712 # So say no if there are warnings other than the usual output.
9713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9716 lt_cv_prog_compiler_rtti_exceptions=yes
9717 fi
9718 fi
9719 $RM conftest*
9720
9721 fi
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9723 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9724
9725 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9727 else
9728 :
9729 fi
9730
9731 fi
9732
9733
9734
9735
9736
9737
9738 lt_prog_compiler_wl=
9739 lt_prog_compiler_pic=
9740 lt_prog_compiler_static=
9741
9742
9743 if test yes = "$GCC"; then
9744 lt_prog_compiler_wl='-Wl,'
9745 lt_prog_compiler_static='-static'
9746
9747 case $host_os in
9748 aix*)
9749 # All AIX code is PIC.
9750 if test ia64 = "$host_cpu"; then
9751 # AIX 5 now supports IA64 processor
9752 lt_prog_compiler_static='-Bstatic'
9753 fi
9754 lt_prog_compiler_pic='-fPIC'
9755 ;;
9756
9757 amigaos*)
9758 case $host_cpu in
9759 powerpc)
9760 # see comment about AmigaOS4 .so support
9761 lt_prog_compiler_pic='-fPIC'
9762 ;;
9763 m68k)
9764 # FIXME: we need at least 68020 code to build shared libraries, but
9765 # adding the '-m68020' flag to GCC prevents building anything better,
9766 # like '-m68040'.
9767 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9768 ;;
9769 esac
9770 ;;
9771
9772 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9773 # PIC is the default for these OSes.
9774 ;;
9775
9776 mingw* | cygwin* | pw32* | os2* | cegcc*)
9777 # This hack is so that the source file can tell whether it is being
9778 # built for inclusion in a dll (and should export symbols for example).
9779 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9780 # (--disable-auto-import) libraries
9781 lt_prog_compiler_pic='-DDLL_EXPORT'
9782 case $host_os in
9783 os2*)
9784 lt_prog_compiler_static='$wl-static'
9785 ;;
9786 esac
9787 ;;
9788
9789 darwin* | rhapsody*)
9790 # PIC is the default on this platform
9791 # Common symbols not allowed in MH_DYLIB files
9792 lt_prog_compiler_pic='-fno-common'
9793 ;;
9794
9795 haiku*)
9796 # PIC is the default for Haiku.
9797 # The "-static" flag exists, but is broken.
9798 lt_prog_compiler_static=
9799 ;;
9800
9801 hpux*)
9802 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9803 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9804 # sets the default TLS model and affects inlining.
9805 case $host_cpu in
9806 hppa*64*)
9807 # +Z the default
9808 ;;
9809 *)
9810 lt_prog_compiler_pic='-fPIC'
9811 ;;
9812 esac
9813 ;;
9814
9815 interix[3-9]*)
9816 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9817 # Instead, we relocate shared libraries at runtime.
9818 ;;
9819
9820 msdosdjgpp*)
9821 # Just because we use GCC doesn't mean we suddenly get shared libraries
9822 # on systems that don't support them.
9823 lt_prog_compiler_can_build_shared=no
9824 enable_shared=no
9825 ;;
9826
9827 *nto* | *qnx*)
9828 # QNX uses GNU C++, but need to define -shared option too, otherwise
9829 # it will coredump.
9830 lt_prog_compiler_pic='-fPIC -shared'
9831 ;;
9832
9833 sysv4*MP*)
9834 if test -d /usr/nec; then
9835 lt_prog_compiler_pic=-Kconform_pic
9836 fi
9837 ;;
9838
9839 *)
9840 lt_prog_compiler_pic='-fPIC'
9841 ;;
9842 esac
9843
9844 case $cc_basename in
9845 nvcc*) # Cuda Compiler Driver 2.2
9846 lt_prog_compiler_wl='-Xlinker '
9847 if test -n "$lt_prog_compiler_pic"; then
9848 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9849 fi
9850 ;;
9851 esac
9852 else
9853 # PORTME Check for flag to pass linker flags through the system compiler.
9854 case $host_os in
9855 aix*)
9856 lt_prog_compiler_wl='-Wl,'
9857 if test ia64 = "$host_cpu"; then
9858 # AIX 5 now supports IA64 processor
9859 lt_prog_compiler_static='-Bstatic'
9860 else
9861 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9862 fi
9863 ;;
9864
9865 darwin* | rhapsody*)
9866 # PIC is the default on this platform
9867 # Common symbols not allowed in MH_DYLIB files
9868 lt_prog_compiler_pic='-fno-common'
9869 case $cc_basename in
9870 nagfor*)
9871 # NAG Fortran compiler
9872 lt_prog_compiler_wl='-Wl,-Wl,,'
9873 lt_prog_compiler_pic='-PIC'
9874 lt_prog_compiler_static='-Bstatic'
9875 ;;
9876 esac
9877 ;;
9878
9879 mingw* | cygwin* | pw32* | os2* | cegcc*)
9880 # This hack is so that the source file can tell whether it is being
9881 # built for inclusion in a dll (and should export symbols for example).
9882 lt_prog_compiler_pic='-DDLL_EXPORT'
9883 case $host_os in
9884 os2*)
9885 lt_prog_compiler_static='$wl-static'
9886 ;;
9887 esac
9888 ;;
9889
9890 hpux9* | hpux10* | hpux11*)
9891 lt_prog_compiler_wl='-Wl,'
9892 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9893 # not for PA HP-UX.
9894 case $host_cpu in
9895 hppa*64*|ia64*)
9896 # +Z the default
9897 ;;
9898 *)
9899 lt_prog_compiler_pic='+Z'
9900 ;;
9901 esac
9902 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9903 lt_prog_compiler_static='$wl-a ${wl}archive'
9904 ;;
9905
9906 irix5* | irix6* | nonstopux*)
9907 lt_prog_compiler_wl='-Wl,'
9908 # PIC (with -KPIC) is the default.
9909 lt_prog_compiler_static='-non_shared'
9910 ;;
9911
9912 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9913 case $cc_basename in
9914 # old Intel for x86_64, which still supported -KPIC.
9915 ecc*)
9916 lt_prog_compiler_wl='-Wl,'
9917 lt_prog_compiler_pic='-KPIC'
9918 lt_prog_compiler_static='-static'
9919 ;;
9920 # icc used to be incompatible with GCC.
9921 # ICC 10 doesn't accept -KPIC any more.
9922 icc* | ifort*)
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-fPIC'
9925 lt_prog_compiler_static='-static'
9926 ;;
9927 # Lahey Fortran 8.1.
9928 lf95*)
9929 lt_prog_compiler_wl='-Wl,'
9930 lt_prog_compiler_pic='--shared'
9931 lt_prog_compiler_static='--static'
9932 ;;
9933 nagfor*)
9934 # NAG Fortran compiler
9935 lt_prog_compiler_wl='-Wl,-Wl,,'
9936 lt_prog_compiler_pic='-PIC'
9937 lt_prog_compiler_static='-Bstatic'
9938 ;;
9939 tcc*)
9940 # Fabrice Bellard et al's Tiny C Compiler
9941 lt_prog_compiler_wl='-Wl,'
9942 lt_prog_compiler_pic='-fPIC'
9943 lt_prog_compiler_static='-static'
9944 ;;
9945 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9946 # Portland Group compilers (*not* the Pentium gcc compiler,
9947 # which looks to be a dead project)
9948 lt_prog_compiler_wl='-Wl,'
9949 lt_prog_compiler_pic='-fpic'
9950 lt_prog_compiler_static='-Bstatic'
9951 ;;
9952 ccc*)
9953 lt_prog_compiler_wl='-Wl,'
9954 # All Alpha code is PIC.
9955 lt_prog_compiler_static='-non_shared'
9956 ;;
9957 xl* | bgxl* | bgf* | mpixl*)
9958 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9959 lt_prog_compiler_wl='-Wl,'
9960 lt_prog_compiler_pic='-qpic'
9961 lt_prog_compiler_static='-qstaticlink'
9962 ;;
9963 *)
9964 case `$CC -V 2>&1 | sed 5q` in
9965 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9966 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9967 lt_prog_compiler_pic='-KPIC'
9968 lt_prog_compiler_static='-Bstatic'
9969 lt_prog_compiler_wl=''
9970 ;;
9971 *Sun\ F* | *Sun*Fortran*)
9972 lt_prog_compiler_pic='-KPIC'
9973 lt_prog_compiler_static='-Bstatic'
9974 lt_prog_compiler_wl='-Qoption ld '
9975 ;;
9976 *Sun\ C*)
9977 # Sun C 5.9
9978 lt_prog_compiler_pic='-KPIC'
9979 lt_prog_compiler_static='-Bstatic'
9980 lt_prog_compiler_wl='-Wl,'
9981 ;;
9982 *Intel*\ [CF]*Compiler*)
9983 lt_prog_compiler_wl='-Wl,'
9984 lt_prog_compiler_pic='-fPIC'
9985 lt_prog_compiler_static='-static'
9986 ;;
9987 *Portland\ Group*)
9988 lt_prog_compiler_wl='-Wl,'
9989 lt_prog_compiler_pic='-fpic'
9990 lt_prog_compiler_static='-Bstatic'
9991 ;;
9992 esac
9993 ;;
9994 esac
9995 ;;
9996
9997 newsos6)
9998 lt_prog_compiler_pic='-KPIC'
9999 lt_prog_compiler_static='-Bstatic'
10000 ;;
10001
10002 *nto* | *qnx*)
10003 # QNX uses GNU C++, but need to define -shared option too, otherwise
10004 # it will coredump.
10005 lt_prog_compiler_pic='-fPIC -shared'
10006 ;;
10007
10008 osf3* | osf4* | osf5*)
10009 lt_prog_compiler_wl='-Wl,'
10010 # All OSF/1 code is PIC.
10011 lt_prog_compiler_static='-non_shared'
10012 ;;
10013
10014 rdos*)
10015 lt_prog_compiler_static='-non_shared'
10016 ;;
10017
10018 solaris*)
10019 lt_prog_compiler_pic='-KPIC'
10020 lt_prog_compiler_static='-Bstatic'
10021 case $cc_basename in
10022 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10023 lt_prog_compiler_wl='-Qoption ld ';;
10024 *)
10025 lt_prog_compiler_wl='-Wl,';;
10026 esac
10027 ;;
10028
10029 sunos4*)
10030 lt_prog_compiler_wl='-Qoption ld '
10031 lt_prog_compiler_pic='-PIC'
10032 lt_prog_compiler_static='-Bstatic'
10033 ;;
10034
10035 sysv4 | sysv4.2uw2* | sysv4.3*)
10036 lt_prog_compiler_wl='-Wl,'
10037 lt_prog_compiler_pic='-KPIC'
10038 lt_prog_compiler_static='-Bstatic'
10039 ;;
10040
10041 sysv4*MP*)
10042 if test -d /usr/nec; then
10043 lt_prog_compiler_pic='-Kconform_pic'
10044 lt_prog_compiler_static='-Bstatic'
10045 fi
10046 ;;
10047
10048 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10049 lt_prog_compiler_wl='-Wl,'
10050 lt_prog_compiler_pic='-KPIC'
10051 lt_prog_compiler_static='-Bstatic'
10052 ;;
10053
10054 unicos*)
10055 lt_prog_compiler_wl='-Wl,'
10056 lt_prog_compiler_can_build_shared=no
10057 ;;
10058
10059 uts4*)
10060 lt_prog_compiler_pic='-pic'
10061 lt_prog_compiler_static='-Bstatic'
10062 ;;
10063
10064 *)
10065 lt_prog_compiler_can_build_shared=no
10066 ;;
10067 esac
10068 fi
10069
10070 case $host_os in
10071 # For platforms that do not support PIC, -DPIC is meaningless:
10072 *djgpp*)
10073 lt_prog_compiler_pic=
10074 ;;
10075 *)
10076 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10077 ;;
10078 esac
10079
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10081 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10082 if ${lt_cv_prog_compiler_pic+:} false; then :
10083 $as_echo_n "(cached) " >&6
10084 else
10085 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10086 fi
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10088 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10089 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10090
10091 #
10092 # Check to make sure the PIC flag actually works.
10093 #
10094 if test -n "$lt_prog_compiler_pic"; then
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10096 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10097 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10098 $as_echo_n "(cached) " >&6
10099 else
10100 lt_cv_prog_compiler_pic_works=no
10101 ac_outfile=conftest.$ac_objext
10102 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10103 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
10104 # Insert the option either (1) after the last *FLAGS variable, or
10105 # (2) before a word containing "conftest.", or (3) at the end.
10106 # Note that $ac_compile itself does not contain backslashes and begins
10107 # with a dollar sign (not a hyphen), so the echo should work correctly.
10108 # The option is referenced via a variable to avoid confusing sed.
10109 lt_compile=`echo "$ac_compile" | $SED \
10110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10112 -e 's:$: $lt_compiler_flag:'`
10113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10114 (eval "$lt_compile" 2>conftest.err)
10115 ac_status=$?
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 if (exit $ac_status) && test -s "$ac_outfile"; then
10119 # The compiler can only warn and ignore the option if not recognized
10120 # So say no if there are warnings other than the usual output.
10121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10122 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10123 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10124 lt_cv_prog_compiler_pic_works=yes
10125 fi
10126 fi
10127 $RM conftest*
10128
10129 fi
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10131 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10132
10133 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10134 case $lt_prog_compiler_pic in
10135 "" | " "*) ;;
10136 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10137 esac
10138 else
10139 lt_prog_compiler_pic=
10140 lt_prog_compiler_can_build_shared=no
10141 fi
10142
10143 fi
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155 #
10156 # Check to make sure the static flag actually works.
10157 #
10158 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10160 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10161 if ${lt_cv_prog_compiler_static_works+:} false; then :
10162 $as_echo_n "(cached) " >&6
10163 else
10164 lt_cv_prog_compiler_static_works=no
10165 save_LDFLAGS=$LDFLAGS
10166 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10167 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10168 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10169 # The linker can only warn and ignore the option if not recognized
10170 # So say no if there are warnings
10171 if test -s conftest.err; then
10172 # Append any errors to the config.log.
10173 cat conftest.err 1>&5
10174 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10175 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10176 if diff conftest.exp conftest.er2 >/dev/null; then
10177 lt_cv_prog_compiler_static_works=yes
10178 fi
10179 else
10180 lt_cv_prog_compiler_static_works=yes
10181 fi
10182 fi
10183 $RM -r conftest*
10184 LDFLAGS=$save_LDFLAGS
10185
10186 fi
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10188 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10189
10190 if test yes = "$lt_cv_prog_compiler_static_works"; then
10191 :
10192 else
10193 lt_prog_compiler_static=
10194 fi
10195
10196
10197
10198
10199
10200
10201
10202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10203 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10204 if ${lt_cv_prog_compiler_c_o+:} false; then :
10205 $as_echo_n "(cached) " >&6
10206 else
10207 lt_cv_prog_compiler_c_o=no
10208 $RM -r conftest 2>/dev/null
10209 mkdir conftest
10210 cd conftest
10211 mkdir out
10212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10213
10214 lt_compiler_flag="-o out/conftest2.$ac_objext"
10215 # Insert the option either (1) after the last *FLAGS variable, or
10216 # (2) before a word containing "conftest.", or (3) at the end.
10217 # Note that $ac_compile itself does not contain backslashes and begins
10218 # with a dollar sign (not a hyphen), so the echo should work correctly.
10219 lt_compile=`echo "$ac_compile" | $SED \
10220 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10221 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10222 -e 's:$: $lt_compiler_flag:'`
10223 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10224 (eval "$lt_compile" 2>out/conftest.err)
10225 ac_status=$?
10226 cat out/conftest.err >&5
10227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10228 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10229 then
10230 # The compiler can only warn and ignore the option if not recognized
10231 # So say no if there are warnings
10232 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10233 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10234 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10235 lt_cv_prog_compiler_c_o=yes
10236 fi
10237 fi
10238 chmod u+w . 2>&5
10239 $RM conftest*
10240 # SGI C++ compiler will create directory out/ii_files/ for
10241 # template instantiation
10242 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10243 $RM out/* && rmdir out
10244 cd ..
10245 $RM -r conftest
10246 $RM conftest*
10247
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10250 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10251
10252
10253
10254
10255
10256
10257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10258 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10259 if ${lt_cv_prog_compiler_c_o+:} false; then :
10260 $as_echo_n "(cached) " >&6
10261 else
10262 lt_cv_prog_compiler_c_o=no
10263 $RM -r conftest 2>/dev/null
10264 mkdir conftest
10265 cd conftest
10266 mkdir out
10267 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10268
10269 lt_compiler_flag="-o out/conftest2.$ac_objext"
10270 # Insert the option either (1) after the last *FLAGS variable, or
10271 # (2) before a word containing "conftest.", or (3) at the end.
10272 # Note that $ac_compile itself does not contain backslashes and begins
10273 # with a dollar sign (not a hyphen), so the echo should work correctly.
10274 lt_compile=`echo "$ac_compile" | $SED \
10275 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10277 -e 's:$: $lt_compiler_flag:'`
10278 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10279 (eval "$lt_compile" 2>out/conftest.err)
10280 ac_status=$?
10281 cat out/conftest.err >&5
10282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10283 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10284 then
10285 # The compiler can only warn and ignore the option if not recognized
10286 # So say no if there are warnings
10287 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10288 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10289 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10290 lt_cv_prog_compiler_c_o=yes
10291 fi
10292 fi
10293 chmod u+w . 2>&5
10294 $RM conftest*
10295 # SGI C++ compiler will create directory out/ii_files/ for
10296 # template instantiation
10297 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10298 $RM out/* && rmdir out
10299 cd ..
10300 $RM -r conftest
10301 $RM conftest*
10302
10303 fi
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10305 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10306
10307
10308
10309
10310 hard_links=nottested
10311 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10312 # do not overwrite the value of need_locks provided by the user
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10314 $as_echo_n "checking if we can lock with hard links... " >&6; }
10315 hard_links=yes
10316 $RM conftest*
10317 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10318 touch conftest.a
10319 ln conftest.a conftest.b 2>&5 || hard_links=no
10320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10322 $as_echo "$hard_links" >&6; }
10323 if test no = "$hard_links"; then
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10325 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10326 need_locks=warn
10327 fi
10328 else
10329 need_locks=no
10330 fi
10331
10332
10333
10334
10335
10336
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10338 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10339
10340 runpath_var=
10341 allow_undefined_flag=
10342 always_export_symbols=no
10343 archive_cmds=
10344 archive_expsym_cmds=
10345 compiler_needs_object=no
10346 enable_shared_with_static_runtimes=no
10347 export_dynamic_flag_spec=
10348 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10349 hardcode_automatic=no
10350 hardcode_direct=no
10351 hardcode_direct_absolute=no
10352 hardcode_libdir_flag_spec=
10353 hardcode_libdir_separator=
10354 hardcode_minus_L=no
10355 hardcode_shlibpath_var=unsupported
10356 inherit_rpath=no
10357 link_all_deplibs=unknown
10358 module_cmds=
10359 module_expsym_cmds=
10360 old_archive_from_new_cmds=
10361 old_archive_from_expsyms_cmds=
10362 thread_safe_flag_spec=
10363 whole_archive_flag_spec=
10364 # include_expsyms should be a list of space-separated symbols to be *always*
10365 # included in the symbol list
10366 include_expsyms=
10367 # exclude_expsyms can be an extended regexp of symbols to exclude
10368 # it will be wrapped by ' (' and ')$', so one must not match beginning or
10369 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10370 # as well as any symbol that contains 'd'.
10371 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10372 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10373 # platforms (ab)use it in PIC code, but their linkers get confused if
10374 # the symbol is explicitly referenced. Since portable code cannot
10375 # rely on this symbol name, it's probably fine to never include it in
10376 # preloaded symbol tables.
10377 # Exclude shared library initialization/finalization symbols.
10378 extract_expsyms_cmds=
10379
10380 case $host_os in
10381 cygwin* | mingw* | pw32* | cegcc*)
10382 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10383 # When not using gcc, we currently assume that we are using
10384 # Microsoft Visual C++.
10385 if test yes != "$GCC"; then
10386 with_gnu_ld=no
10387 fi
10388 ;;
10389 interix*)
10390 # we just hope/assume this is gcc and not c89 (= MSVC++)
10391 with_gnu_ld=yes
10392 ;;
10393 openbsd* | bitrig*)
10394 with_gnu_ld=no
10395 ;;
10396 esac
10397
10398 ld_shlibs=yes
10399
10400 # On some targets, GNU ld is compatible enough with the native linker
10401 # that we're better off using the native interface for both.
10402 lt_use_gnu_ld_interface=no
10403 if test yes = "$with_gnu_ld"; then
10404 case $host_os in
10405 aix*)
10406 # The AIX port of GNU ld has always aspired to compatibility
10407 # with the native linker. However, as the warning in the GNU ld
10408 # block says, versions before 2.19.5* couldn't really create working
10409 # shared libraries, regardless of the interface used.
10410 case `$LD -v 2>&1` in
10411 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10412 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10413 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10414 *)
10415 lt_use_gnu_ld_interface=yes
10416 ;;
10417 esac
10418 ;;
10419 *)
10420 lt_use_gnu_ld_interface=yes
10421 ;;
10422 esac
10423 fi
10424
10425 if test yes = "$lt_use_gnu_ld_interface"; then
10426 # If archive_cmds runs LD, not CC, wlarc should be empty
10427 wlarc='$wl'
10428
10429 # Set some defaults for GNU ld with shared library support. These
10430 # are reset later if shared libraries are not supported. Putting them
10431 # here allows them to be overridden if necessary.
10432 runpath_var=LD_RUN_PATH
10433 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10434 export_dynamic_flag_spec='$wl--export-dynamic'
10435 # ancient GNU ld didn't support --whole-archive et. al.
10436 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10437 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10438 else
10439 whole_archive_flag_spec=
10440 fi
10441 supports_anon_versioning=no
10442 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10443 *GNU\ gold*) supports_anon_versioning=yes ;;
10444 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10445 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10446 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10447 *\ 2.11.*) ;; # other 2.11 versions
10448 *) supports_anon_versioning=yes ;;
10449 esac
10450
10451 # See if GNU ld supports shared libraries.
10452 case $host_os in
10453 aix[3-9]*)
10454 # On AIX/PPC, the GNU linker is very broken
10455 if test ia64 != "$host_cpu"; then
10456 ld_shlibs=no
10457 cat <<_LT_EOF 1>&2
10458
10459 *** Warning: the GNU linker, at least up to release 2.19, is reported
10460 *** to be unable to reliably create shared libraries on AIX.
10461 *** Therefore, libtool is disabling shared libraries support. If you
10462 *** really care for shared libraries, you may want to install binutils
10463 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10464 *** You will then need to restart the configuration process.
10465
10466 _LT_EOF
10467 fi
10468 ;;
10469
10470 amigaos*)
10471 case $host_cpu in
10472 powerpc)
10473 # see comment about AmigaOS4 .so support
10474 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10475 archive_expsym_cmds=''
10476 ;;
10477 m68k)
10478 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)'
10479 hardcode_libdir_flag_spec='-L$libdir'
10480 hardcode_minus_L=yes
10481 ;;
10482 esac
10483 ;;
10484
10485 beos*)
10486 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10487 allow_undefined_flag=unsupported
10488 # Joseph Beckenbach <jrb3 (at] best.com> says some releases of gcc
10489 # support --undefined. This deserves some investigation. FIXME
10490 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10491 else
10492 ld_shlibs=no
10493 fi
10494 ;;
10495
10496 cygwin* | mingw* | pw32* | cegcc*)
10497 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10498 # as there is no search path for DLLs.
10499 hardcode_libdir_flag_spec='-L$libdir'
10500 export_dynamic_flag_spec='$wl--export-all-symbols'
10501 allow_undefined_flag=unsupported
10502 always_export_symbols=no
10503 enable_shared_with_static_runtimes=yes
10504 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'
10505 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10506
10507 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10508 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10509 # If the export-symbols file already is a .def file, use it as
10510 # is; otherwise, prepend EXPORTS...
10511 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
10512 cp $export_symbols $output_objdir/$soname.def;
10513 else
10514 echo EXPORTS > $output_objdir/$soname.def;
10515 cat $export_symbols >> $output_objdir/$soname.def;
10516 fi~
10517 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10518 else
10519 ld_shlibs=no
10520 fi
10521 ;;
10522
10523 haiku*)
10524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10525 link_all_deplibs=yes
10526 ;;
10527
10528 os2*)
10529 hardcode_libdir_flag_spec='-L$libdir'
10530 hardcode_minus_L=yes
10531 allow_undefined_flag=unsupported
10532 shrext_cmds=.dll
10533 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10534 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10535 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10536 $ECHO EXPORTS >> $output_objdir/$libname.def~
10537 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10538 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10539 emximp -o $lib $output_objdir/$libname.def'
10540 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10541 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10542 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10543 $ECHO EXPORTS >> $output_objdir/$libname.def~
10544 prefix_cmds="$SED"~
10545 if test EXPORTS = "`$SED 1q $export_symbols`"; then
10546 prefix_cmds="$prefix_cmds -e 1d";
10547 fi~
10548 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10549 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10550 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10551 emximp -o $lib $output_objdir/$libname.def'
10552 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10553 enable_shared_with_static_runtimes=yes
10554 ;;
10555
10556 interix[3-9]*)
10557 hardcode_direct=no
10558 hardcode_shlibpath_var=no
10559 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10560 export_dynamic_flag_spec='$wl-E'
10561 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10562 # Instead, shared libraries are loaded at an image base (0x10000000 by
10563 # default) and relocated if they conflict, which is a slow very memory
10564 # consuming and fragmenting process. To avoid this, we pick a random,
10565 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10566 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10567 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10568 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'
10569 ;;
10570
10571 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10572 tmp_diet=no
10573 if test linux-dietlibc = "$host_os"; then
10574 case $cc_basename in
10575 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10576 esac
10577 fi
10578 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10579 && test no = "$tmp_diet"
10580 then
10581 tmp_addflag=' $pic_flag'
10582 tmp_sharedflag='-shared'
10583 case $cc_basename,$host_cpu in
10584 pgcc*) # Portland Group C compiler
10585 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'
10586 tmp_addflag=' $pic_flag'
10587 ;;
10588 pgf77* | pgf90* | pgf95* | pgfortran*)
10589 # Portland Group f77 and f90 compilers
10590 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'
10591 tmp_addflag=' $pic_flag -Mnomain' ;;
10592 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10593 tmp_addflag=' -i_dynamic' ;;
10594 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10595 tmp_addflag=' -i_dynamic -nofor_main' ;;
10596 ifc* | ifort*) # Intel Fortran compiler
10597 tmp_addflag=' -nofor_main' ;;
10598 lf95*) # Lahey Fortran 8.1
10599 whole_archive_flag_spec=
10600 tmp_sharedflag='--shared' ;;
10601 nagfor*) # NAGFOR 5.3
10602 tmp_sharedflag='-Wl,-shared' ;;
10603 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10604 tmp_sharedflag='-qmkshrobj'
10605 tmp_addflag= ;;
10606 nvcc*) # Cuda Compiler Driver 2.2
10607 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'
10608 compiler_needs_object=yes
10609 ;;
10610 esac
10611 case `$CC -V 2>&1 | sed 5q` in
10612 *Sun\ C*) # Sun C 5.9
10613 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'
10614 compiler_needs_object=yes
10615 tmp_sharedflag='-G' ;;
10616 *Sun\ F*) # Sun Fortran 8.3
10617 tmp_sharedflag='-G' ;;
10618 esac
10619 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10620
10621 if test yes = "$supports_anon_versioning"; then
10622 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10623 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10624 echo "local: *; };" >> $output_objdir/$libname.ver~
10625 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10626 fi
10627
10628 case $cc_basename in
10629 tcc*)
10630 export_dynamic_flag_spec='-rdynamic'
10631 ;;
10632 xlf* | bgf* | bgxlf* | mpixlf*)
10633 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10634 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10636 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10637 if test yes = "$supports_anon_versioning"; then
10638 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10639 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10640 echo "local: *; };" >> $output_objdir/$libname.ver~
10641 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10642 fi
10643 ;;
10644 esac
10645 else
10646 ld_shlibs=no
10647 fi
10648 ;;
10649
10650 netbsd*)
10651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10652 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10653 wlarc=
10654 else
10655 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10656 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10657 fi
10658 ;;
10659
10660 solaris*)
10661 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10662 ld_shlibs=no
10663 cat <<_LT_EOF 1>&2
10664
10665 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10666 *** create shared libraries on Solaris systems. Therefore, libtool
10667 *** is disabling shared libraries support. We urge you to upgrade GNU
10668 *** binutils to release 2.9.1 or newer. Another option is to modify
10669 *** your PATH or compiler configuration so that the native linker is
10670 *** used, and then restart.
10671
10672 _LT_EOF
10673 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10674 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10675 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10676 else
10677 ld_shlibs=no
10678 fi
10679 ;;
10680
10681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10682 case `$LD -v 2>&1` in
10683 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10684 ld_shlibs=no
10685 cat <<_LT_EOF 1>&2
10686
10687 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10688 *** reliably create shared libraries on SCO systems. Therefore, libtool
10689 *** is disabling shared libraries support. We urge you to upgrade GNU
10690 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10691 *** your PATH or compiler configuration so that the native linker is
10692 *** used, and then restart.
10693
10694 _LT_EOF
10695 ;;
10696 *)
10697 # For security reasons, it is highly recommended that you always
10698 # use absolute paths for naming shared libraries, and exclude the
10699 # DT_RUNPATH tag from executables and libraries. But doing so
10700 # requires that you compile everything twice, which is a pain.
10701 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10702 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10705 else
10706 ld_shlibs=no
10707 fi
10708 ;;
10709 esac
10710 ;;
10711
10712 sunos4*)
10713 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10714 wlarc=
10715 hardcode_direct=yes
10716 hardcode_shlibpath_var=no
10717 ;;
10718
10719 *)
10720 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10721 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10722 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10723 else
10724 ld_shlibs=no
10725 fi
10726 ;;
10727 esac
10728
10729 if test no = "$ld_shlibs"; then
10730 runpath_var=
10731 hardcode_libdir_flag_spec=
10732 export_dynamic_flag_spec=
10733 whole_archive_flag_spec=
10734 fi
10735 else
10736 # PORTME fill in a description of your system's linker (not GNU ld)
10737 case $host_os in
10738 aix3*)
10739 allow_undefined_flag=unsupported
10740 always_export_symbols=yes
10741 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'
10742 # Note: this linker hardcodes the directories in LIBPATH if there
10743 # are no directories specified by -L.
10744 hardcode_minus_L=yes
10745 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10746 # Neither direct hardcoding nor static linking is supported with a
10747 # broken collect2.
10748 hardcode_direct=unsupported
10749 fi
10750 ;;
10751
10752 aix[4-9]*)
10753 if test ia64 = "$host_cpu"; then
10754 # On IA64, the linker does run time linking by default, so we don't
10755 # have to do anything special.
10756 aix_use_runtimelinking=no
10757 exp_sym_flag='-Bexport'
10758 no_entry_flag=
10759 else
10760 # If we're using GNU nm, then we don't want the "-C" option.
10761 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10762 # Without the "-l" option, or with the "-B" option, AIX nm treats
10763 # weak defined symbols like other global defined symbols, whereas
10764 # GNU nm marks them as "W".
10765 # While the 'weak' keyword is ignored in the Export File, we need
10766 # it in the Import File for the 'aix-soname' feature, so we have
10767 # to replace the "-B" option with "-P" for AIX nm.
10768 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10769 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
10770 else
10771 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
10772 fi
10773 aix_use_runtimelinking=no
10774
10775 # Test if we are trying to use run time linking or normal
10776 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10777 # have runtime linking enabled, and use it for executables.
10778 # For shared libraries, we enable/disable runtime linking
10779 # depending on the kind of the shared library created -
10780 # when "with_aix_soname,aix_use_runtimelinking" is:
10781 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
10782 # "aix,yes" lib.so shared, rtl:yes, for executables
10783 # lib.a static archive
10784 # "both,no" lib.so.V(shr.o) shared, rtl:yes
10785 # lib.a(lib.so.V) shared, rtl:no, for executables
10786 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10787 # lib.a(lib.so.V) shared, rtl:no
10788 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
10789 # lib.a static archive
10790 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10791 for ld_flag in $LDFLAGS; do
10792 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10793 aix_use_runtimelinking=yes
10794 break
10795 fi
10796 done
10797 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10798 # With aix-soname=svr4, we create the lib.so.V shared archives only,
10799 # so we don't have lib.a shared libs to link our executables.
10800 # We have to force runtime linking in this case.
10801 aix_use_runtimelinking=yes
10802 LDFLAGS="$LDFLAGS -Wl,-brtl"
10803 fi
10804 ;;
10805 esac
10806
10807 exp_sym_flag='-bexport'
10808 no_entry_flag='-bnoentry'
10809 fi
10810
10811 # When large executables or shared objects are built, AIX ld can
10812 # have problems creating the table of contents. If linking a library
10813 # or program results in "error TOC overflow" add -mminimal-toc to
10814 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10815 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10816
10817 archive_cmds=''
10818 hardcode_direct=yes
10819 hardcode_direct_absolute=yes
10820 hardcode_libdir_separator=':'
10821 link_all_deplibs=yes
10822 file_list_spec='$wl-f,'
10823 case $with_aix_soname,$aix_use_runtimelinking in
10824 aix,*) ;; # traditional, no import file
10825 svr4,* | *,yes) # use import file
10826 # The Import File defines what to hardcode.
10827 hardcode_direct=no
10828 hardcode_direct_absolute=no
10829 ;;
10830 esac
10831
10832 if test yes = "$GCC"; then
10833 case $host_os in aix4.[012]|aix4.[012].*)
10834 # We only want to do this on AIX 4.2 and lower, the check
10835 # below for broken collect2 doesn't work under 4.3+
10836 collect2name=`$CC -print-prog-name=collect2`
10837 if test -f "$collect2name" &&
10838 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10839 then
10840 # We have reworked collect2
10841 :
10842 else
10843 # We have old collect2
10844 hardcode_direct=unsupported
10845 # It fails to find uninstalled libraries when the uninstalled
10846 # path is not listed in the libpath. Setting hardcode_minus_L
10847 # to unsupported forces relinking
10848 hardcode_minus_L=yes
10849 hardcode_libdir_flag_spec='-L$libdir'
10850 hardcode_libdir_separator=
10851 fi
10852 ;;
10853 esac
10854 shared_flag='-shared'
10855 if test yes = "$aix_use_runtimelinking"; then
10856 shared_flag="$shared_flag "'$wl-G'
10857 fi
10858 # Need to ensure runtime linking is disabled for the traditional
10859 # shared library, or the linker may eventually find shared libraries
10860 # /with/ Import File - we do not want to mix them.
10861 shared_flag_aix='-shared'
10862 shared_flag_svr4='-shared $wl-G'
10863 else
10864 # not using gcc
10865 if test ia64 = "$host_cpu"; then
10866 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10867 # chokes on -Wl,-G. The following line is correct:
10868 shared_flag='-G'
10869 else
10870 if test yes = "$aix_use_runtimelinking"; then
10871 shared_flag='$wl-G'
10872 else
10873 shared_flag='$wl-bM:SRE'
10874 fi
10875 shared_flag_aix='$wl-bM:SRE'
10876 shared_flag_svr4='$wl-G'
10877 fi
10878 fi
10879
10880 export_dynamic_flag_spec='$wl-bexpall'
10881 # It seems that -bexpall does not export symbols beginning with
10882 # underscore (_), so it is better to generate a list of symbols to export.
10883 always_export_symbols=yes
10884 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10885 # Warning - without using the other runtime loading flags (-brtl),
10886 # -berok will link without error, but may produce a broken library.
10887 allow_undefined_flag='-berok'
10888 # Determine the default libpath from the value encoded in an
10889 # empty executable.
10890 if test set = "${lt_cv_aix_libpath+set}"; then
10891 aix_libpath=$lt_cv_aix_libpath
10892 else
10893 if ${lt_cv_aix_libpath_+:} false; then :
10894 $as_echo_n "(cached) " >&6
10895 else
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10898
10899 int
10900 main ()
10901 {
10902
10903 ;
10904 return 0;
10905 }
10906 _ACEOF
10907 if ac_fn_c_try_link "$LINENO"; then :
10908
10909 lt_aix_libpath_sed='
10910 /Import File Strings/,/^$/ {
10911 /^0/ {
10912 s/^0 *\([^ ]*\) *$/\1/
10913 p
10914 }
10915 }'
10916 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10917 # Check for a 64-bit object if we didn't find anything.
10918 if test -z "$lt_cv_aix_libpath_"; then
10919 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10920 fi
10921 fi
10922 rm -f core conftest.err conftest.$ac_objext \
10923 conftest$ac_exeext conftest.$ac_ext
10924 if test -z "$lt_cv_aix_libpath_"; then
10925 lt_cv_aix_libpath_=/usr/lib:/lib
10926 fi
10927
10928 fi
10929
10930 aix_libpath=$lt_cv_aix_libpath_
10931 fi
10932
10933 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10934 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
10935 else
10936 if test ia64 = "$host_cpu"; then
10937 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10938 allow_undefined_flag="-z nodefs"
10939 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"
10940 else
10941 # Determine the default libpath from the value encoded in an
10942 # empty executable.
10943 if test set = "${lt_cv_aix_libpath+set}"; then
10944 aix_libpath=$lt_cv_aix_libpath
10945 else
10946 if ${lt_cv_aix_libpath_+:} false; then :
10947 $as_echo_n "(cached) " >&6
10948 else
10949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10950 /* end confdefs.h. */
10951
10952 int
10953 main ()
10954 {
10955
10956 ;
10957 return 0;
10958 }
10959 _ACEOF
10960 if ac_fn_c_try_link "$LINENO"; then :
10961
10962 lt_aix_libpath_sed='
10963 /Import File Strings/,/^$/ {
10964 /^0/ {
10965 s/^0 *\([^ ]*\) *$/\1/
10966 p
10967 }
10968 }'
10969 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10970 # Check for a 64-bit object if we didn't find anything.
10971 if test -z "$lt_cv_aix_libpath_"; then
10972 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10973 fi
10974 fi
10975 rm -f core conftest.err conftest.$ac_objext \
10976 conftest$ac_exeext conftest.$ac_ext
10977 if test -z "$lt_cv_aix_libpath_"; then
10978 lt_cv_aix_libpath_=/usr/lib:/lib
10979 fi
10980
10981 fi
10982
10983 aix_libpath=$lt_cv_aix_libpath_
10984 fi
10985
10986 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10987 # Warning - without using the other run time loading flags,
10988 # -berok will link without error, but may produce a broken library.
10989 no_undefined_flag=' $wl-bernotok'
10990 allow_undefined_flag=' $wl-berok'
10991 if test yes = "$with_gnu_ld"; then
10992 # We only use this code for GNU lds that support --whole-archive.
10993 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10994 else
10995 # Exported symbols can be pulled into shared objects from archives
10996 whole_archive_flag_spec='$convenience'
10997 fi
10998 archive_cmds_need_lc=yes
10999 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
11000 # -brtl affects multiple linker settings, -berok does not and is overridden later
11001 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11002 if test svr4 != "$with_aix_soname"; then
11003 # This is similar to how AIX traditionally builds its shared libraries.
11004 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
11005 fi
11006 if test aix != "$with_aix_soname"; then
11007 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
11008 else
11009 # used by -dlpreopen to get the symbols
11010 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
11011 fi
11012 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11013 fi
11014 fi
11015 ;;
11016
11017 amigaos*)
11018 case $host_cpu in
11019 powerpc)
11020 # see comment about AmigaOS4 .so support
11021 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11022 archive_expsym_cmds=''
11023 ;;
11024 m68k)
11025 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)'
11026 hardcode_libdir_flag_spec='-L$libdir'
11027 hardcode_minus_L=yes
11028 ;;
11029 esac
11030 ;;
11031
11032 bsdi[45]*)
11033 export_dynamic_flag_spec=-rdynamic
11034 ;;
11035
11036 cygwin* | mingw* | pw32* | cegcc*)
11037 # When not using gcc, we currently assume that we are using
11038 # Microsoft Visual C++.
11039 # hardcode_libdir_flag_spec is actually meaningless, as there is
11040 # no search path for DLLs.
11041 case $cc_basename in
11042 cl*)
11043 # Native MSVC
11044 hardcode_libdir_flag_spec=' '
11045 allow_undefined_flag=unsupported
11046 always_export_symbols=yes
11047 file_list_spec='@'
11048 # Tell ltmain to make .lib files, not .a files.
11049 libext=lib
11050 # Tell ltmain to make .dll files, not .so files.
11051 shrext_cmds=.dll
11052 # FIXME: Setting linknames here is a bad hack.
11053 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11054 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
11055 cp "$export_symbols" "$output_objdir/$soname.def";
11056 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11057 else
11058 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11059 fi~
11060 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11061 linknames='
11062 # The linker will not automatically build a static lib if we build a DLL.
11063 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11064 enable_shared_with_static_runtimes=yes
11065 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11066 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11067 # Don't use ranlib
11068 old_postinstall_cmds='chmod 644 $oldlib'
11069 postlink_cmds='lt_outputfile="@OUTPUT@"~
11070 lt_tool_outputfile="@TOOL_OUTPUT@"~
11071 case $lt_outputfile in
11072 *.exe|*.EXE) ;;
11073 *)
11074 lt_outputfile=$lt_outputfile.exe
11075 lt_tool_outputfile=$lt_tool_outputfile.exe
11076 ;;
11077 esac~
11078 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11079 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11080 $RM "$lt_outputfile.manifest";
11081 fi'
11082 ;;
11083 *)
11084 # Assume MSVC wrapper
11085 hardcode_libdir_flag_spec=' '
11086 allow_undefined_flag=unsupported
11087 # Tell ltmain to make .lib files, not .a files.
11088 libext=lib
11089 # Tell ltmain to make .dll files, not .so files.
11090 shrext_cmds=.dll
11091 # FIXME: Setting linknames here is a bad hack.
11092 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11093 # The linker will automatically build a .lib file if we build a DLL.
11094 old_archive_from_new_cmds='true'
11095 # FIXME: Should let the user specify the lib program.
11096 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11097 enable_shared_with_static_runtimes=yes
11098 ;;
11099 esac
11100 ;;
11101
11102 darwin* | rhapsody*)
11103
11104
11105 archive_cmds_need_lc=no
11106 hardcode_direct=no
11107 hardcode_automatic=yes
11108 hardcode_shlibpath_var=unsupported
11109 if test yes = "$lt_cv_ld_force_load"; then
11110 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\"`'
11111
11112 else
11113 whole_archive_flag_spec=''
11114 fi
11115 link_all_deplibs=yes
11116 allow_undefined_flag=$_lt_dar_allow_undefined
11117 case $cc_basename in
11118 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11119 *) _lt_dar_can_shared=$GCC ;;
11120 esac
11121 if test yes = "$_lt_dar_can_shared"; then
11122 output_verbose_link_cmd=func_echo_all
11123 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11124 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11125 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"
11126 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"
11127
11128 else
11129 ld_shlibs=no
11130 fi
11131
11132 ;;
11133
11134 dgux*)
11135 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11136 hardcode_libdir_flag_spec='-L$libdir'
11137 hardcode_shlibpath_var=no
11138 ;;
11139
11140 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11141 # support. Future versions do this automatically, but an explicit c++rt0.o
11142 # does not break anything, and helps significantly (at the cost of a little
11143 # extra space).
11144 freebsd2.2*)
11145 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11146 hardcode_libdir_flag_spec='-R$libdir'
11147 hardcode_direct=yes
11148 hardcode_shlibpath_var=no
11149 ;;
11150
11151 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11152 freebsd2.*)
11153 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11154 hardcode_direct=yes
11155 hardcode_minus_L=yes
11156 hardcode_shlibpath_var=no
11157 ;;
11158
11159 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11160 freebsd* | dragonfly*)
11161 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11162 hardcode_libdir_flag_spec='-R$libdir'
11163 hardcode_direct=yes
11164 hardcode_shlibpath_var=no
11165 ;;
11166
11167 hpux9*)
11168 if test yes = "$GCC"; then
11169 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11170 else
11171 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
11172 fi
11173 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11174 hardcode_libdir_separator=:
11175 hardcode_direct=yes
11176
11177 # hardcode_minus_L: Not really in the search PATH,
11178 # but as the default location of the library.
11179 hardcode_minus_L=yes
11180 export_dynamic_flag_spec='$wl-E'
11181 ;;
11182
11183 hpux10*)
11184 if test yes,no = "$GCC,$with_gnu_ld"; then
11185 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11186 else
11187 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11188 fi
11189 if test no = "$with_gnu_ld"; then
11190 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11191 hardcode_libdir_separator=:
11192 hardcode_direct=yes
11193 hardcode_direct_absolute=yes
11194 export_dynamic_flag_spec='$wl-E'
11195 # hardcode_minus_L: Not really in the search PATH,
11196 # but as the default location of the library.
11197 hardcode_minus_L=yes
11198 fi
11199 ;;
11200
11201 hpux11*)
11202 if test yes,no = "$GCC,$with_gnu_ld"; then
11203 case $host_cpu in
11204 hppa*64*)
11205 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11206 ;;
11207 ia64*)
11208 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11209 ;;
11210 *)
11211 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11212 ;;
11213 esac
11214 else
11215 case $host_cpu in
11216 hppa*64*)
11217 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11218 ;;
11219 ia64*)
11220 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11221 ;;
11222 *)
11223
11224 # Older versions of the 11.00 compiler do not understand -b yet
11225 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11227 $as_echo_n "checking if $CC understands -b... " >&6; }
11228 if ${lt_cv_prog_compiler__b+:} false; then :
11229 $as_echo_n "(cached) " >&6
11230 else
11231 lt_cv_prog_compiler__b=no
11232 save_LDFLAGS=$LDFLAGS
11233 LDFLAGS="$LDFLAGS -b"
11234 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11235 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11236 # The linker can only warn and ignore the option if not recognized
11237 # So say no if there are warnings
11238 if test -s conftest.err; then
11239 # Append any errors to the config.log.
11240 cat conftest.err 1>&5
11241 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11242 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11243 if diff conftest.exp conftest.er2 >/dev/null; then
11244 lt_cv_prog_compiler__b=yes
11245 fi
11246 else
11247 lt_cv_prog_compiler__b=yes
11248 fi
11249 fi
11250 $RM -r conftest*
11251 LDFLAGS=$save_LDFLAGS
11252
11253 fi
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11255 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11256
11257 if test yes = "$lt_cv_prog_compiler__b"; then
11258 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11259 else
11260 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11261 fi
11262
11263 ;;
11264 esac
11265 fi
11266 if test no = "$with_gnu_ld"; then
11267 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11268 hardcode_libdir_separator=:
11269
11270 case $host_cpu in
11271 hppa*64*|ia64*)
11272 hardcode_direct=no
11273 hardcode_shlibpath_var=no
11274 ;;
11275 *)
11276 hardcode_direct=yes
11277 hardcode_direct_absolute=yes
11278 export_dynamic_flag_spec='$wl-E'
11279
11280 # hardcode_minus_L: Not really in the search PATH,
11281 # but as the default location of the library.
11282 hardcode_minus_L=yes
11283 ;;
11284 esac
11285 fi
11286 ;;
11287
11288 irix5* | irix6* | nonstopux*)
11289 if test yes = "$GCC"; then
11290 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'
11291 # Try to use the -exported_symbol ld option, if it does not
11292 # work, assume that -exports_file does not work either and
11293 # implicitly export all symbols.
11294 # This should be the same for all languages, so no per-tag cache variable.
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11296 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11297 if ${lt_cv_irix_exported_symbol+:} false; then :
11298 $as_echo_n "(cached) " >&6
11299 else
11300 save_LDFLAGS=$LDFLAGS
11301 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11304 int foo (void) { return 0; }
11305 _ACEOF
11306 if ac_fn_c_try_link "$LINENO"; then :
11307 lt_cv_irix_exported_symbol=yes
11308 else
11309 lt_cv_irix_exported_symbol=no
11310 fi
11311 rm -f core conftest.err conftest.$ac_objext \
11312 conftest$ac_exeext conftest.$ac_ext
11313 LDFLAGS=$save_LDFLAGS
11314 fi
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11316 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11317 if test yes = "$lt_cv_irix_exported_symbol"; then
11318 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'
11319 fi
11320 else
11321 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'
11322 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'
11323 fi
11324 archive_cmds_need_lc='no'
11325 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11326 hardcode_libdir_separator=:
11327 inherit_rpath=yes
11328 link_all_deplibs=yes
11329 ;;
11330
11331 linux*)
11332 case $cc_basename in
11333 tcc*)
11334 # Fabrice Bellard et al's Tiny C Compiler
11335 ld_shlibs=yes
11336 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11337 ;;
11338 esac
11339 ;;
11340
11341 netbsd*)
11342 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11343 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11344 else
11345 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11346 fi
11347 hardcode_libdir_flag_spec='-R$libdir'
11348 hardcode_direct=yes
11349 hardcode_shlibpath_var=no
11350 ;;
11351
11352 newsos6)
11353 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11354 hardcode_direct=yes
11355 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11356 hardcode_libdir_separator=:
11357 hardcode_shlibpath_var=no
11358 ;;
11359
11360 *nto* | *qnx*)
11361 ;;
11362
11363 openbsd* | bitrig*)
11364 if test -f /usr/libexec/ld.so; then
11365 hardcode_direct=yes
11366 hardcode_shlibpath_var=no
11367 hardcode_direct_absolute=yes
11368 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11369 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11370 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11371 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11372 export_dynamic_flag_spec='$wl-E'
11373 else
11374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11375 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11376 fi
11377 else
11378 ld_shlibs=no
11379 fi
11380 ;;
11381
11382 os2*)
11383 hardcode_libdir_flag_spec='-L$libdir'
11384 hardcode_minus_L=yes
11385 allow_undefined_flag=unsupported
11386 shrext_cmds=.dll
11387 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11388 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11389 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11390 $ECHO EXPORTS >> $output_objdir/$libname.def~
11391 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11392 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11393 emximp -o $lib $output_objdir/$libname.def'
11394 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11395 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11396 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11397 $ECHO EXPORTS >> $output_objdir/$libname.def~
11398 prefix_cmds="$SED"~
11399 if test EXPORTS = "`$SED 1q $export_symbols`"; then
11400 prefix_cmds="$prefix_cmds -e 1d";
11401 fi~
11402 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11403 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11404 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11405 emximp -o $lib $output_objdir/$libname.def'
11406 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11407 enable_shared_with_static_runtimes=yes
11408 ;;
11409
11410 osf3*)
11411 if test yes = "$GCC"; then
11412 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11413 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'
11414 else
11415 allow_undefined_flag=' -expect_unresolved \*'
11416 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'
11417 fi
11418 archive_cmds_need_lc='no'
11419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11420 hardcode_libdir_separator=:
11421 ;;
11422
11423 osf4* | osf5*) # as osf3* with the addition of -msym flag
11424 if test yes = "$GCC"; then
11425 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11426 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'
11427 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11428 else
11429 allow_undefined_flag=' -expect_unresolved \*'
11430 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'
11431 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~
11432 $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'
11433
11434 # Both c and cxx compiler support -rpath directly
11435 hardcode_libdir_flag_spec='-rpath $libdir'
11436 fi
11437 archive_cmds_need_lc='no'
11438 hardcode_libdir_separator=:
11439 ;;
11440
11441 solaris*)
11442 no_undefined_flag=' -z defs'
11443 if test yes = "$GCC"; then
11444 wlarc='$wl'
11445 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11446 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11447 $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'
11448 else
11449 case `$CC -V 2>&1` in
11450 *"Compilers 5.0"*)
11451 wlarc=''
11452 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11453 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11454 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11455 ;;
11456 *)
11457 wlarc='$wl'
11458 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11459 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11460 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11461 ;;
11462 esac
11463 fi
11464 hardcode_libdir_flag_spec='-R$libdir'
11465 hardcode_shlibpath_var=no
11466 case $host_os in
11467 solaris2.[0-5] | solaris2.[0-5].*) ;;
11468 *)
11469 # The compiler driver will combine and reorder linker options,
11470 # but understands '-z linker_flag'. GCC discards it without '$wl',
11471 # but is careful enough not to reorder.
11472 # Supported since Solaris 2.6 (maybe 2.5.1?)
11473 if test yes = "$GCC"; then
11474 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11475 else
11476 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11477 fi
11478 ;;
11479 esac
11480 link_all_deplibs=yes
11481 ;;
11482
11483 sunos4*)
11484 if test sequent = "$host_vendor"; then
11485 # Use $CC to link under sequent, because it throws in some extra .o
11486 # files that make .init and .fini sections work.
11487 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11488 else
11489 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11490 fi
11491 hardcode_libdir_flag_spec='-L$libdir'
11492 hardcode_direct=yes
11493 hardcode_minus_L=yes
11494 hardcode_shlibpath_var=no
11495 ;;
11496
11497 sysv4)
11498 case $host_vendor in
11499 sni)
11500 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11501 hardcode_direct=yes # is this really true???
11502 ;;
11503 siemens)
11504 ## LD is ld it makes a PLAMLIB
11505 ## CC just makes a GrossModule.
11506 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11507 reload_cmds='$CC -r -o $output$reload_objs'
11508 hardcode_direct=no
11509 ;;
11510 motorola)
11511 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11512 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11513 ;;
11514 esac
11515 runpath_var='LD_RUN_PATH'
11516 hardcode_shlibpath_var=no
11517 ;;
11518
11519 sysv4.3*)
11520 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11521 hardcode_shlibpath_var=no
11522 export_dynamic_flag_spec='-Bexport'
11523 ;;
11524
11525 sysv4*MP*)
11526 if test -d /usr/nec; then
11527 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11528 hardcode_shlibpath_var=no
11529 runpath_var=LD_RUN_PATH
11530 hardcode_runpath_var=yes
11531 ld_shlibs=yes
11532 fi
11533 ;;
11534
11535 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11536 no_undefined_flag='$wl-z,text'
11537 archive_cmds_need_lc=no
11538 hardcode_shlibpath_var=no
11539 runpath_var='LD_RUN_PATH'
11540
11541 if test yes = "$GCC"; then
11542 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11543 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11544 else
11545 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11546 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11547 fi
11548 ;;
11549
11550 sysv5* | sco3.2v5* | sco5v6*)
11551 # Note: We CANNOT use -z defs as we might desire, because we do not
11552 # link with -lc, and that would cause any symbols used from libc to
11553 # always be unresolved, which means just about no library would
11554 # ever link correctly. If we're not using GNU ld we use -z text
11555 # though, which does catch some bad symbols but isn't as heavy-handed
11556 # as -z defs.
11557 no_undefined_flag='$wl-z,text'
11558 allow_undefined_flag='$wl-z,nodefs'
11559 archive_cmds_need_lc=no
11560 hardcode_shlibpath_var=no
11561 hardcode_libdir_flag_spec='$wl-R,$libdir'
11562 hardcode_libdir_separator=':'
11563 link_all_deplibs=yes
11564 export_dynamic_flag_spec='$wl-Bexport'
11565 runpath_var='LD_RUN_PATH'
11566
11567 if test yes = "$GCC"; then
11568 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11569 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570 else
11571 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11572 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11573 fi
11574 ;;
11575
11576 uts4*)
11577 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11578 hardcode_libdir_flag_spec='-L$libdir'
11579 hardcode_shlibpath_var=no
11580 ;;
11581
11582 *)
11583 ld_shlibs=no
11584 ;;
11585 esac
11586
11587 if test sni = "$host_vendor"; then
11588 case $host in
11589 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11590 export_dynamic_flag_spec='$wl-Blargedynsym'
11591 ;;
11592 esac
11593 fi
11594 fi
11595
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11597 $as_echo "$ld_shlibs" >&6; }
11598 test no = "$ld_shlibs" && can_build_shared=no
11599
11600 with_gnu_ld=$with_gnu_ld
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616 #
11617 # Do we need to explicitly link libc?
11618 #
11619 case "x$archive_cmds_need_lc" in
11620 x|xyes)
11621 # Assume -lc should be added
11622 archive_cmds_need_lc=yes
11623
11624 if test yes,yes = "$GCC,$enable_shared"; then
11625 case $archive_cmds in
11626 *'~'*)
11627 # FIXME: we may have to deal with multi-command sequences.
11628 ;;
11629 '$CC '*)
11630 # Test whether the compiler implicitly links with -lc since on some
11631 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11632 # to ld, don't add -lc before -lgcc.
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11634 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11635 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11636 $as_echo_n "(cached) " >&6
11637 else
11638 $RM conftest*
11639 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11640
11641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11642 (eval $ac_compile) 2>&5
11643 ac_status=$?
11644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11645 test $ac_status = 0; } 2>conftest.err; then
11646 soname=conftest
11647 lib=conftest
11648 libobjs=conftest.$ac_objext
11649 deplibs=
11650 wl=$lt_prog_compiler_wl
11651 pic_flag=$lt_prog_compiler_pic
11652 compiler_flags=-v
11653 linker_flags=-v
11654 verstring=
11655 output_objdir=.
11656 libname=conftest
11657 lt_save_allow_undefined_flag=$allow_undefined_flag
11658 allow_undefined_flag=
11659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11660 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11661 ac_status=$?
11662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11663 test $ac_status = 0; }
11664 then
11665 lt_cv_archive_cmds_need_lc=no
11666 else
11667 lt_cv_archive_cmds_need_lc=yes
11668 fi
11669 allow_undefined_flag=$lt_save_allow_undefined_flag
11670 else
11671 cat conftest.err 1>&5
11672 fi
11673 $RM conftest*
11674
11675 fi
11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11677 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11678 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11679 ;;
11680 esac
11681 fi
11682 ;;
11683 esac
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
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787
11788
11789
11790
11791
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11837 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11838
11839 if test yes = "$GCC"; then
11840 case $host_os in
11841 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11842 *) lt_awk_arg='/^libraries:/' ;;
11843 esac
11844 case $host_os in
11845 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11846 *) lt_sed_strip_eq='s|=/|/|g' ;;
11847 esac
11848 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11849 case $lt_search_path_spec in
11850 *\;*)
11851 # if the path contains ";" then we assume it to be the separator
11852 # otherwise default to the standard path separator (i.e. ":") - it is
11853 # assumed that no part of a normal pathname contains ";" but that should
11854 # okay in the real world where ";" in dirpaths is itself problematic.
11855 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11856 ;;
11857 *)
11858 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11859 ;;
11860 esac
11861 # Ok, now we have the path, separated by spaces, we can step through it
11862 # and add multilib dir if necessary...
11863 lt_tmp_lt_search_path_spec=
11864 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11865 # ...but if some path component already ends with the multilib dir we assume
11866 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11867 case "$lt_multi_os_dir; $lt_search_path_spec " in
11868 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11869 lt_multi_os_dir=
11870 ;;
11871 esac
11872 for lt_sys_path in $lt_search_path_spec; do
11873 if test -d "$lt_sys_path$lt_multi_os_dir"; then
11874 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11875 elif test -n "$lt_multi_os_dir"; then
11876 test -d "$lt_sys_path" && \
11877 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11878 fi
11879 done
11880 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11881 BEGIN {RS = " "; FS = "/|\n";} {
11882 lt_foo = "";
11883 lt_count = 0;
11884 for (lt_i = NF; lt_i > 0; lt_i--) {
11885 if ($lt_i != "" && $lt_i != ".") {
11886 if ($lt_i == "..") {
11887 lt_count++;
11888 } else {
11889 if (lt_count == 0) {
11890 lt_foo = "/" $lt_i lt_foo;
11891 } else {
11892 lt_count--;
11893 }
11894 }
11895 }
11896 }
11897 if (lt_foo != "") { lt_freq[lt_foo]++; }
11898 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11899 }'`
11900 # AWK program above erroneously prepends '/' to C:/dos/paths
11901 # for these hosts.
11902 case $host_os in
11903 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11904 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11905 esac
11906 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11907 else
11908 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11909 fi
11910 library_names_spec=
11911 libname_spec='lib$name'
11912 soname_spec=
11913 shrext_cmds=.so
11914 postinstall_cmds=
11915 postuninstall_cmds=
11916 finish_cmds=
11917 finish_eval=
11918 shlibpath_var=
11919 shlibpath_overrides_runpath=unknown
11920 version_type=none
11921 dynamic_linker="$host_os ld.so"
11922 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11923 need_lib_prefix=unknown
11924 hardcode_into_libs=no
11925
11926 # when you set need_version to no, make sure it does not cause -set_version
11927 # flags to be left without arguments
11928 need_version=unknown
11929
11930
11931
11932 case $host_os in
11933 aix3*)
11934 version_type=linux # correct to gnu/linux during the next big refactor
11935 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11936 shlibpath_var=LIBPATH
11937
11938 # AIX 3 has no versioning support, so we append a major version to the name.
11939 soname_spec='$libname$release$shared_ext$major'
11940 ;;
11941
11942 aix[4-9]*)
11943 version_type=linux # correct to gnu/linux during the next big refactor
11944 need_lib_prefix=no
11945 need_version=no
11946 hardcode_into_libs=yes
11947 if test ia64 = "$host_cpu"; then
11948 # AIX 5 supports IA64
11949 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11950 shlibpath_var=LD_LIBRARY_PATH
11951 else
11952 # With GCC up to 2.95.x, collect2 would create an import file
11953 # for dependence libraries. The import file would start with
11954 # the line '#! .'. This would cause the generated library to
11955 # depend on '.', always an invalid library. This was fixed in
11956 # development snapshots of GCC prior to 3.0.
11957 case $host_os in
11958 aix4 | aix4.[01] | aix4.[01].*)
11959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11960 echo ' yes '
11961 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11962 :
11963 else
11964 can_build_shared=no
11965 fi
11966 ;;
11967 esac
11968 # Using Import Files as archive members, it is possible to support
11969 # filename-based versioning of shared library archives on AIX. While
11970 # this would work for both with and without runtime linking, it will
11971 # prevent static linking of such archives. So we do filename-based
11972 # shared library versioning with .so extension only, which is used
11973 # when both runtime linking and shared linking is enabled.
11974 # Unfortunately, runtime linking may impact performance, so we do
11975 # not want this to be the default eventually. Also, we use the
11976 # versioned .so libs for executables only if there is the -brtl
11977 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11978 # To allow for filename-based versioning support, we need to create
11979 # libNAME.so.V as an archive file, containing:
11980 # *) an Import File, referring to the versioned filename of the
11981 # archive as well as the shared archive member, telling the
11982 # bitwidth (32 or 64) of that shared object, and providing the
11983 # list of exported symbols of that shared object, eventually
11984 # decorated with the 'weak' keyword
11985 # *) the shared object with the F_LOADONLY flag set, to really avoid
11986 # it being seen by the linker.
11987 # At run time we better use the real file rather than another symlink,
11988 # but for link time we create the symlink libNAME.so -> libNAME.so.V
11989
11990 case $with_aix_soname,$aix_use_runtimelinking in
11991 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11992 # soname into executable. Probably we can add versioning support to
11993 # collect2, so additional links can be useful in future.
11994 aix,yes) # traditional libtool
11995 dynamic_linker='AIX unversionable lib.so'
11996 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11997 # instead of lib<name>.a to let people know that these are not
11998 # typical AIX shared libraries.
11999 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12000 ;;
12001 aix,no) # traditional AIX only
12002 dynamic_linker='AIX lib.a(lib.so.V)'
12003 # We preserve .a as extension for shared libraries through AIX4.2
12004 # and later when we are not doing run time linking.
12005 library_names_spec='$libname$release.a $libname.a'
12006 soname_spec='$libname$release$shared_ext$major'
12007 ;;
12008 svr4,*) # full svr4 only
12009 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12010 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12011 # We do not specify a path in Import Files, so LIBPATH fires.
12012 shlibpath_overrides_runpath=yes
12013 ;;
12014 *,yes) # both, prefer svr4
12015 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12016 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12017 # unpreferred sharedlib libNAME.a needs extra handling
12018 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
12019 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
12020 # We do not specify a path in Import Files, so LIBPATH fires.
12021 shlibpath_overrides_runpath=yes
12022 ;;
12023 *,no) # both, prefer aix
12024 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12025 library_names_spec='$libname$release.a $libname.a'
12026 soname_spec='$libname$release$shared_ext$major'
12027 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12028 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
12029 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
12030 ;;
12031 esac
12032 shlibpath_var=LIBPATH
12033 fi
12034 ;;
12035
12036 amigaos*)
12037 case $host_cpu in
12038 powerpc)
12039 # Since July 2007 AmigaOS4 officially supports .so libraries.
12040 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12041 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12042 ;;
12043 m68k)
12044 library_names_spec='$libname.ixlibrary $libname.a'
12045 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12046 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
12047 ;;
12048 esac
12049 ;;
12050
12051 beos*)
12052 library_names_spec='$libname$shared_ext'
12053 dynamic_linker="$host_os ld.so"
12054 shlibpath_var=LIBRARY_PATH
12055 ;;
12056
12057 bsdi[45]*)
12058 version_type=linux # correct to gnu/linux during the next big refactor
12059 need_version=no
12060 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12061 soname_spec='$libname$release$shared_ext$major'
12062 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12063 shlibpath_var=LD_LIBRARY_PATH
12064 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12065 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12066 # the default ld.so.conf also contains /usr/contrib/lib and
12067 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12068 # libtool to hard-code these into programs
12069 ;;
12070
12071 cygwin* | mingw* | pw32* | cegcc*)
12072 version_type=windows
12073 shrext_cmds=.dll
12074 need_version=no
12075 need_lib_prefix=no
12076
12077 case $GCC,$cc_basename in
12078 yes,*)
12079 # gcc
12080 library_names_spec='$libname.dll.a'
12081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12082 postinstall_cmds='base_file=`basename \$file`~
12083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12084 dldir=$destdir/`dirname \$dlpath`~
12085 test -d \$dldir || mkdir -p \$dldir~
12086 $install_prog $dir/$dlname \$dldir/$dlname~
12087 chmod a+x \$dldir/$dlname~
12088 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12089 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12090 fi'
12091 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12092 dlpath=$dir/\$dldll~
12093 $RM \$dlpath'
12094 shlibpath_overrides_runpath=yes
12095
12096 case $host_os in
12097 cygwin*)
12098 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12099 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12100
12101 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12102 ;;
12103 mingw* | cegcc*)
12104 # MinGW DLLs use traditional 'lib' prefix
12105 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12106 ;;
12107 pw32*)
12108 # pw32 DLLs use 'pw' prefix rather than 'lib'
12109 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12110 ;;
12111 esac
12112 dynamic_linker='Win32 ld.exe'
12113 ;;
12114
12115 *,cl*)
12116 # Native MSVC
12117 libname_spec='$name'
12118 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12119 library_names_spec='$libname.dll.lib'
12120
12121 case $build_os in
12122 mingw*)
12123 sys_lib_search_path_spec=
12124 lt_save_ifs=$IFS
12125 IFS=';'
12126 for lt_path in $LIB
12127 do
12128 IFS=$lt_save_ifs
12129 # Let DOS variable expansion print the short 8.3 style file name.
12130 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12131 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12132 done
12133 IFS=$lt_save_ifs
12134 # Convert to MSYS style.
12135 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12136 ;;
12137 cygwin*)
12138 # Convert to unix form, then to dos form, then back to unix form
12139 # but this time dos style (no spaces!) so that the unix form looks
12140 # like /cygdrive/c/PROGRA~1:/cygdr...
12141 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12142 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12143 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12144 ;;
12145 *)
12146 sys_lib_search_path_spec=$LIB
12147 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12148 # It is most probably a Windows format PATH.
12149 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12150 else
12151 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12152 fi
12153 # FIXME: find the short name or the path components, as spaces are
12154 # common. (e.g. "Program Files" -> "PROGRA~1")
12155 ;;
12156 esac
12157
12158 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12159 postinstall_cmds='base_file=`basename \$file`~
12160 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12161 dldir=$destdir/`dirname \$dlpath`~
12162 test -d \$dldir || mkdir -p \$dldir~
12163 $install_prog $dir/$dlname \$dldir/$dlname'
12164 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12165 dlpath=$dir/\$dldll~
12166 $RM \$dlpath'
12167 shlibpath_overrides_runpath=yes
12168 dynamic_linker='Win32 link.exe'
12169 ;;
12170
12171 *)
12172 # Assume MSVC wrapper
12173 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12174 dynamic_linker='Win32 ld.exe'
12175 ;;
12176 esac
12177 # FIXME: first we should search . and the directory the executable is in
12178 shlibpath_var=PATH
12179 ;;
12180
12181 darwin* | rhapsody*)
12182 dynamic_linker="$host_os dyld"
12183 version_type=darwin
12184 need_lib_prefix=no
12185 need_version=no
12186 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12187 soname_spec='$libname$release$major$shared_ext'
12188 shlibpath_overrides_runpath=yes
12189 shlibpath_var=DYLD_LIBRARY_PATH
12190 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12191
12192 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12193 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12194 ;;
12195
12196 dgux*)
12197 version_type=linux # correct to gnu/linux during the next big refactor
12198 need_lib_prefix=no
12199 need_version=no
12200 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12201 soname_spec='$libname$release$shared_ext$major'
12202 shlibpath_var=LD_LIBRARY_PATH
12203 ;;
12204
12205 freebsd* | dragonfly*)
12206 # DragonFly does not have aout. When/if they implement a new
12207 # versioning mechanism, adjust this.
12208 if test -x /usr/bin/objformat; then
12209 objformat=`/usr/bin/objformat`
12210 else
12211 case $host_os in
12212 freebsd[23].*) objformat=aout ;;
12213 *) objformat=elf ;;
12214 esac
12215 fi
12216 version_type=freebsd-$objformat
12217 case $version_type in
12218 freebsd-elf*)
12219 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12220 soname_spec='$libname$release$shared_ext$major'
12221 need_version=no
12222 need_lib_prefix=no
12223 ;;
12224 freebsd-*)
12225 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12226 need_version=yes
12227 ;;
12228 esac
12229 shlibpath_var=LD_LIBRARY_PATH
12230 case $host_os in
12231 freebsd2.*)
12232 shlibpath_overrides_runpath=yes
12233 ;;
12234 freebsd3.[01]* | freebsdelf3.[01]*)
12235 shlibpath_overrides_runpath=yes
12236 hardcode_into_libs=yes
12237 ;;
12238 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12239 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12240 shlibpath_overrides_runpath=no
12241 hardcode_into_libs=yes
12242 ;;
12243 *) # from 4.6 on, and DragonFly
12244 shlibpath_overrides_runpath=yes
12245 hardcode_into_libs=yes
12246 ;;
12247 esac
12248 ;;
12249
12250 haiku*)
12251 version_type=linux # correct to gnu/linux during the next big refactor
12252 need_lib_prefix=no
12253 need_version=no
12254 dynamic_linker="$host_os runtime_loader"
12255 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12256 soname_spec='$libname$release$shared_ext$major'
12257 shlibpath_var=LIBRARY_PATH
12258 shlibpath_overrides_runpath=no
12259 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12260 hardcode_into_libs=yes
12261 ;;
12262
12263 hpux9* | hpux10* | hpux11*)
12264 # Give a soname corresponding to the major version so that dld.sl refuses to
12265 # link against other versions.
12266 version_type=sunos
12267 need_lib_prefix=no
12268 need_version=no
12269 case $host_cpu in
12270 ia64*)
12271 shrext_cmds='.so'
12272 hardcode_into_libs=yes
12273 dynamic_linker="$host_os dld.so"
12274 shlibpath_var=LD_LIBRARY_PATH
12275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12277 soname_spec='$libname$release$shared_ext$major'
12278 if test 32 = "$HPUX_IA64_MODE"; then
12279 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12280 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12281 else
12282 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12283 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12284 fi
12285 ;;
12286 hppa*64*)
12287 shrext_cmds='.sl'
12288 hardcode_into_libs=yes
12289 dynamic_linker="$host_os dld.sl"
12290 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12291 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12292 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12293 soname_spec='$libname$release$shared_ext$major'
12294 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12295 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12296 ;;
12297 *)
12298 shrext_cmds='.sl'
12299 dynamic_linker="$host_os dld.sl"
12300 shlibpath_var=SHLIB_PATH
12301 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12302 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12303 soname_spec='$libname$release$shared_ext$major'
12304 ;;
12305 esac
12306 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12307 postinstall_cmds='chmod 555 $lib'
12308 # or fails outright, so override atomically:
12309 install_override_mode=555
12310 ;;
12311
12312 interix[3-9]*)
12313 version_type=linux # correct to gnu/linux during the next big refactor
12314 need_lib_prefix=no
12315 need_version=no
12316 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12317 soname_spec='$libname$release$shared_ext$major'
12318 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12319 shlibpath_var=LD_LIBRARY_PATH
12320 shlibpath_overrides_runpath=no
12321 hardcode_into_libs=yes
12322 ;;
12323
12324 irix5* | irix6* | nonstopux*)
12325 case $host_os in
12326 nonstopux*) version_type=nonstopux ;;
12327 *)
12328 if test yes = "$lt_cv_prog_gnu_ld"; then
12329 version_type=linux # correct to gnu/linux during the next big refactor
12330 else
12331 version_type=irix
12332 fi ;;
12333 esac
12334 need_lib_prefix=no
12335 need_version=no
12336 soname_spec='$libname$release$shared_ext$major'
12337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12338 case $host_os in
12339 irix5* | nonstopux*)
12340 libsuff= shlibsuff=
12341 ;;
12342 *)
12343 case $LD in # libtool.m4 will add one of these switches to LD
12344 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12345 libsuff= shlibsuff= libmagic=32-bit;;
12346 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12347 libsuff=32 shlibsuff=N32 libmagic=N32;;
12348 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12349 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12350 *) libsuff= shlibsuff= libmagic=never-match;;
12351 esac
12352 ;;
12353 esac
12354 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12355 shlibpath_overrides_runpath=no
12356 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12357 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12358 hardcode_into_libs=yes
12359 ;;
12360
12361 # No shared lib support for Linux oldld, aout, or coff.
12362 linux*oldld* | linux*aout* | linux*coff*)
12363 dynamic_linker=no
12364 ;;
12365
12366 linux*android*)
12367 version_type=none # Android doesn't support versioned libraries.
12368 need_lib_prefix=no
12369 need_version=no
12370 library_names_spec='$libname$release$shared_ext'
12371 soname_spec='$libname$release$shared_ext'
12372 finish_cmds=
12373 shlibpath_var=LD_LIBRARY_PATH
12374 shlibpath_overrides_runpath=yes
12375
12376 # This implies no fast_install, which is unacceptable.
12377 # Some rework will be needed to allow for fast_install
12378 # before this can be enabled.
12379 hardcode_into_libs=yes
12380
12381 dynamic_linker='Android linker'
12382 # Don't embed -rpath directories since the linker doesn't support them.
12383 hardcode_libdir_flag_spec='-L$libdir'
12384 ;;
12385
12386 # This must be glibc/ELF.
12387 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12388 version_type=linux # correct to gnu/linux during the next big refactor
12389 need_lib_prefix=no
12390 need_version=no
12391 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12392 soname_spec='$libname$release$shared_ext$major'
12393 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12394 shlibpath_var=LD_LIBRARY_PATH
12395 shlibpath_overrides_runpath=no
12396
12397 # Some binutils ld are patched to set DT_RUNPATH
12398 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12399 $as_echo_n "(cached) " >&6
12400 else
12401 lt_cv_shlibpath_overrides_runpath=no
12402 save_LDFLAGS=$LDFLAGS
12403 save_libdir=$libdir
12404 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12405 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408
12409 int
12410 main ()
12411 {
12412
12413 ;
12414 return 0;
12415 }
12416 _ACEOF
12417 if ac_fn_c_try_link "$LINENO"; then :
12418 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12419 lt_cv_shlibpath_overrides_runpath=yes
12420 fi
12421 fi
12422 rm -f core conftest.err conftest.$ac_objext \
12423 conftest$ac_exeext conftest.$ac_ext
12424 LDFLAGS=$save_LDFLAGS
12425 libdir=$save_libdir
12426
12427 fi
12428
12429 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12430
12431 # This implies no fast_install, which is unacceptable.
12432 # Some rework will be needed to allow for fast_install
12433 # before this can be enabled.
12434 hardcode_into_libs=yes
12435
12436 # Add ABI-specific directories to the system library path.
12437 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12438
12439 # Ideally, we could use ldconfig to report *all* directores which are
12440 # searched for libraries, however this is still not possible. Aside from not
12441 # being certain /sbin/ldconfig is available, command
12442 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12443 # even though it is searched at run-time. Try to do the best guess by
12444 # appending ld.so.conf contents (and includes) to the search path.
12445 if test -f /etc/ld.so.conf; then
12446 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' ' '`
12447 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12448 fi
12449
12450 # We used to test for /lib/ld.so.1 and disable shared libraries on
12451 # powerpc, because MkLinux only supported shared libraries with the
12452 # GNU dynamic linker. Since this was broken with cross compilers,
12453 # most powerpc-linux boxes support dynamic linking these days and
12454 # people can always --disable-shared, the test was removed, and we
12455 # assume the GNU/Linux dynamic linker is in use.
12456 dynamic_linker='GNU/Linux ld.so'
12457 ;;
12458
12459 netbsd*)
12460 version_type=sunos
12461 need_lib_prefix=no
12462 need_version=no
12463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12466 dynamic_linker='NetBSD (a.out) ld.so'
12467 else
12468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12469 soname_spec='$libname$release$shared_ext$major'
12470 dynamic_linker='NetBSD ld.elf_so'
12471 fi
12472 shlibpath_var=LD_LIBRARY_PATH
12473 shlibpath_overrides_runpath=yes
12474 hardcode_into_libs=yes
12475 ;;
12476
12477 newsos6)
12478 version_type=linux # correct to gnu/linux during the next big refactor
12479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12480 shlibpath_var=LD_LIBRARY_PATH
12481 shlibpath_overrides_runpath=yes
12482 ;;
12483
12484 *nto* | *qnx*)
12485 version_type=qnx
12486 need_lib_prefix=no
12487 need_version=no
12488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12489 soname_spec='$libname$release$shared_ext$major'
12490 shlibpath_var=LD_LIBRARY_PATH
12491 shlibpath_overrides_runpath=no
12492 hardcode_into_libs=yes
12493 dynamic_linker='ldqnx.so'
12494 ;;
12495
12496 openbsd* | bitrig*)
12497 version_type=sunos
12498 sys_lib_dlsearch_path_spec=/usr/lib
12499 need_lib_prefix=no
12500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12501 need_version=no
12502 else
12503 need_version=yes
12504 fi
12505 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12507 shlibpath_var=LD_LIBRARY_PATH
12508 shlibpath_overrides_runpath=yes
12509 ;;
12510
12511 os2*)
12512 libname_spec='$name'
12513 version_type=windows
12514 shrext_cmds=.dll
12515 need_version=no
12516 need_lib_prefix=no
12517 # OS/2 can only load a DLL with a base name of 8 characters or less.
12518 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12519 v=$($ECHO $release$versuffix | tr -d .-);
12520 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12521 $ECHO $n$v`$shared_ext'
12522 library_names_spec='${libname}_dll.$libext'
12523 dynamic_linker='OS/2 ld.exe'
12524 shlibpath_var=BEGINLIBPATH
12525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12527 postinstall_cmds='base_file=`basename \$file`~
12528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12529 dldir=$destdir/`dirname \$dlpath`~
12530 test -d \$dldir || mkdir -p \$dldir~
12531 $install_prog $dir/$dlname \$dldir/$dlname~
12532 chmod a+x \$dldir/$dlname~
12533 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12534 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12535 fi'
12536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12537 dlpath=$dir/\$dldll~
12538 $RM \$dlpath'
12539 ;;
12540
12541 osf3* | osf4* | osf5*)
12542 version_type=osf
12543 need_lib_prefix=no
12544 need_version=no
12545 soname_spec='$libname$release$shared_ext$major'
12546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12547 shlibpath_var=LD_LIBRARY_PATH
12548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12550 ;;
12551
12552 rdos*)
12553 dynamic_linker=no
12554 ;;
12555
12556 solaris*)
12557 version_type=linux # correct to gnu/linux during the next big refactor
12558 need_lib_prefix=no
12559 need_version=no
12560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12561 soname_spec='$libname$release$shared_ext$major'
12562 shlibpath_var=LD_LIBRARY_PATH
12563 shlibpath_overrides_runpath=yes
12564 hardcode_into_libs=yes
12565 # ldd complains unless libraries are executable
12566 postinstall_cmds='chmod +x $lib'
12567 ;;
12568
12569 sunos4*)
12570 version_type=sunos
12571 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12573 shlibpath_var=LD_LIBRARY_PATH
12574 shlibpath_overrides_runpath=yes
12575 if test yes = "$with_gnu_ld"; then
12576 need_lib_prefix=no
12577 fi
12578 need_version=yes
12579 ;;
12580
12581 sysv4 | sysv4.3*)
12582 version_type=linux # correct to gnu/linux during the next big refactor
12583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12584 soname_spec='$libname$release$shared_ext$major'
12585 shlibpath_var=LD_LIBRARY_PATH
12586 case $host_vendor in
12587 sni)
12588 shlibpath_overrides_runpath=no
12589 need_lib_prefix=no
12590 runpath_var=LD_RUN_PATH
12591 ;;
12592 siemens)
12593 need_lib_prefix=no
12594 ;;
12595 motorola)
12596 need_lib_prefix=no
12597 need_version=no
12598 shlibpath_overrides_runpath=no
12599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12600 ;;
12601 esac
12602 ;;
12603
12604 sysv4*MP*)
12605 if test -d /usr/nec; then
12606 version_type=linux # correct to gnu/linux during the next big refactor
12607 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12608 soname_spec='$libname$shared_ext.$major'
12609 shlibpath_var=LD_LIBRARY_PATH
12610 fi
12611 ;;
12612
12613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12614 version_type=sco
12615 need_lib_prefix=no
12616 need_version=no
12617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12618 soname_spec='$libname$release$shared_ext$major'
12619 shlibpath_var=LD_LIBRARY_PATH
12620 shlibpath_overrides_runpath=yes
12621 hardcode_into_libs=yes
12622 if test yes = "$with_gnu_ld"; then
12623 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12624 else
12625 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12626 case $host_os in
12627 sco3.2v5*)
12628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12629 ;;
12630 esac
12631 fi
12632 sys_lib_dlsearch_path_spec='/usr/lib'
12633 ;;
12634
12635 tpf*)
12636 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12637 version_type=linux # correct to gnu/linux during the next big refactor
12638 need_lib_prefix=no
12639 need_version=no
12640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12641 shlibpath_var=LD_LIBRARY_PATH
12642 shlibpath_overrides_runpath=no
12643 hardcode_into_libs=yes
12644 ;;
12645
12646 uts4*)
12647 version_type=linux # correct to gnu/linux during the next big refactor
12648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12649 soname_spec='$libname$release$shared_ext$major'
12650 shlibpath_var=LD_LIBRARY_PATH
12651 ;;
12652
12653 *)
12654 dynamic_linker=no
12655 ;;
12656 esac
12657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12658 $as_echo "$dynamic_linker" >&6; }
12659 test no = "$dynamic_linker" && can_build_shared=no
12660
12661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12662 if test yes = "$GCC"; then
12663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12664 fi
12665
12666 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12667 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12668 fi
12669
12670 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12671 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12672 fi
12673
12674 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12675 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12676
12677 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12678 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12679
12680 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12681 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12682
12683
12684
12685
12686
12687
12688
12689
12690
12691
12692
12693
12694
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716
12717
12718
12719
12720
12721
12722
12723
12724
12725
12726
12727
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748
12749
12750
12751
12752
12753
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775
12776
12777
12778
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12781 hardcode_action=
12782 if test -n "$hardcode_libdir_flag_spec" ||
12783 test -n "$runpath_var" ||
12784 test yes = "$hardcode_automatic"; then
12785
12786 # We can hardcode non-existent directories.
12787 if test no != "$hardcode_direct" &&
12788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12789 # have to relink, otherwise we might link with an installed library
12790 # when we should be linking with a yet-to-be-installed one
12791 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12792 test no != "$hardcode_minus_L"; then
12793 # Linking always hardcodes the temporary library directory.
12794 hardcode_action=relink
12795 else
12796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12797 hardcode_action=immediate
12798 fi
12799 else
12800 # We cannot hardcode anything, or else we can only hardcode existing
12801 # directories.
12802 hardcode_action=unsupported
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12805 $as_echo "$hardcode_action" >&6; }
12806
12807 if test relink = "$hardcode_action" ||
12808 test yes = "$inherit_rpath"; then
12809 # Fast installation is not supported
12810 enable_fast_install=no
12811 elif test yes = "$shlibpath_overrides_runpath" ||
12812 test no = "$enable_shared"; then
12813 # Fast installation is not necessary
12814 enable_fast_install=needless
12815 fi
12816
12817
12818
12819
12820
12821
12822 if test yes != "$enable_dlopen"; then
12823 enable_dlopen=unknown
12824 enable_dlopen_self=unknown
12825 enable_dlopen_self_static=unknown
12826 else
12827 lt_cv_dlopen=no
12828 lt_cv_dlopen_libs=
12829
12830 case $host_os in
12831 beos*)
12832 lt_cv_dlopen=load_add_on
12833 lt_cv_dlopen_libs=
12834 lt_cv_dlopen_self=yes
12835 ;;
12836
12837 mingw* | pw32* | cegcc*)
12838 lt_cv_dlopen=LoadLibrary
12839 lt_cv_dlopen_libs=
12840 ;;
12841
12842 cygwin*)
12843 lt_cv_dlopen=dlopen
12844 lt_cv_dlopen_libs=
12845 ;;
12846
12847 darwin*)
12848 # if libdl is installed we need to link against it
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12851 if ${ac_cv_lib_dl_dlopen+:} false; then :
12852 $as_echo_n "(cached) " >&6
12853 else
12854 ac_check_lib_save_LIBS=$LIBS
12855 LIBS="-ldl $LIBS"
12856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12858
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12862 #ifdef __cplusplus
12863 extern "C"
12864 #endif
12865 char dlopen ();
12866 int
12867 main ()
12868 {
12869 return dlopen ();
12870 ;
12871 return 0;
12872 }
12873 _ACEOF
12874 if ac_fn_c_try_link "$LINENO"; then :
12875 ac_cv_lib_dl_dlopen=yes
12876 else
12877 ac_cv_lib_dl_dlopen=no
12878 fi
12879 rm -f core conftest.err conftest.$ac_objext \
12880 conftest$ac_exeext conftest.$ac_ext
12881 LIBS=$ac_check_lib_save_LIBS
12882 fi
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12884 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12885 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12886 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12887 else
12888
12889 lt_cv_dlopen=dyld
12890 lt_cv_dlopen_libs=
12891 lt_cv_dlopen_self=yes
12892
12893 fi
12894
12895 ;;
12896
12897 tpf*)
12898 # Don't try to run any link tests for TPF. We know it's impossible
12899 # because TPF is a cross-compiler, and we know how we open DSOs.
12900 lt_cv_dlopen=dlopen
12901 lt_cv_dlopen_libs=
12902 lt_cv_dlopen_self=no
12903 ;;
12904
12905 *)
12906 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12907 if test "x$ac_cv_func_shl_load" = xyes; then :
12908 lt_cv_dlopen=shl_load
12909 else
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12911 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12912 if ${ac_cv_lib_dld_shl_load+:} false; then :
12913 $as_echo_n "(cached) " >&6
12914 else
12915 ac_check_lib_save_LIBS=$LIBS
12916 LIBS="-ldld $LIBS"
12917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12918 /* end confdefs.h. */
12919
12920 /* Override any GCC internal prototype to avoid an error.
12921 Use char because int might match the return type of a GCC
12922 builtin and then its argument prototype would still apply. */
12923 #ifdef __cplusplus
12924 extern "C"
12925 #endif
12926 char shl_load ();
12927 int
12928 main ()
12929 {
12930 return shl_load ();
12931 ;
12932 return 0;
12933 }
12934 _ACEOF
12935 if ac_fn_c_try_link "$LINENO"; then :
12936 ac_cv_lib_dld_shl_load=yes
12937 else
12938 ac_cv_lib_dld_shl_load=no
12939 fi
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12942 LIBS=$ac_check_lib_save_LIBS
12943 fi
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12945 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12946 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12947 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12948 else
12949 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12950 if test "x$ac_cv_func_dlopen" = xyes; then :
12951 lt_cv_dlopen=dlopen
12952 else
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12954 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12955 if ${ac_cv_lib_dl_dlopen+:} false; then :
12956 $as_echo_n "(cached) " >&6
12957 else
12958 ac_check_lib_save_LIBS=$LIBS
12959 LIBS="-ldl $LIBS"
12960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12961 /* end confdefs.h. */
12962
12963 /* Override any GCC internal prototype to avoid an error.
12964 Use char because int might match the return type of a GCC
12965 builtin and then its argument prototype would still apply. */
12966 #ifdef __cplusplus
12967 extern "C"
12968 #endif
12969 char dlopen ();
12970 int
12971 main ()
12972 {
12973 return dlopen ();
12974 ;
12975 return 0;
12976 }
12977 _ACEOF
12978 if ac_fn_c_try_link "$LINENO"; then :
12979 ac_cv_lib_dl_dlopen=yes
12980 else
12981 ac_cv_lib_dl_dlopen=no
12982 fi
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 LIBS=$ac_check_lib_save_LIBS
12986 fi
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12988 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12989 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12990 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12991 else
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12993 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12994 if ${ac_cv_lib_svld_dlopen+:} false; then :
12995 $as_echo_n "(cached) " >&6
12996 else
12997 ac_check_lib_save_LIBS=$LIBS
12998 LIBS="-lsvld $LIBS"
12999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13000 /* end confdefs.h. */
13001
13002 /* Override any GCC internal prototype to avoid an error.
13003 Use char because int might match the return type of a GCC
13004 builtin and then its argument prototype would still apply. */
13005 #ifdef __cplusplus
13006 extern "C"
13007 #endif
13008 char dlopen ();
13009 int
13010 main ()
13011 {
13012 return dlopen ();
13013 ;
13014 return 0;
13015 }
13016 _ACEOF
13017 if ac_fn_c_try_link "$LINENO"; then :
13018 ac_cv_lib_svld_dlopen=yes
13019 else
13020 ac_cv_lib_svld_dlopen=no
13021 fi
13022 rm -f core conftest.err conftest.$ac_objext \
13023 conftest$ac_exeext conftest.$ac_ext
13024 LIBS=$ac_check_lib_save_LIBS
13025 fi
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13027 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13028 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13029 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13030 else
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13032 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13033 if ${ac_cv_lib_dld_dld_link+:} false; then :
13034 $as_echo_n "(cached) " >&6
13035 else
13036 ac_check_lib_save_LIBS=$LIBS
13037 LIBS="-ldld $LIBS"
13038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13039 /* end confdefs.h. */
13040
13041 /* Override any GCC internal prototype to avoid an error.
13042 Use char because int might match the return type of a GCC
13043 builtin and then its argument prototype would still apply. */
13044 #ifdef __cplusplus
13045 extern "C"
13046 #endif
13047 char dld_link ();
13048 int
13049 main ()
13050 {
13051 return dld_link ();
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 if ac_fn_c_try_link "$LINENO"; then :
13057 ac_cv_lib_dld_dld_link=yes
13058 else
13059 ac_cv_lib_dld_dld_link=no
13060 fi
13061 rm -f core conftest.err conftest.$ac_objext \
13062 conftest$ac_exeext conftest.$ac_ext
13063 LIBS=$ac_check_lib_save_LIBS
13064 fi
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13066 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13067 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13068 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13069 fi
13070
13071
13072 fi
13073
13074
13075 fi
13076
13077
13078 fi
13079
13080
13081 fi
13082
13083
13084 fi
13085
13086 ;;
13087 esac
13088
13089 if test no = "$lt_cv_dlopen"; then
13090 enable_dlopen=no
13091 else
13092 enable_dlopen=yes
13093 fi
13094
13095 case $lt_cv_dlopen in
13096 dlopen)
13097 save_CPPFLAGS=$CPPFLAGS
13098 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13099
13100 save_LDFLAGS=$LDFLAGS
13101 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13102
13103 save_LIBS=$LIBS
13104 LIBS="$lt_cv_dlopen_libs $LIBS"
13105
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13107 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13108 if ${lt_cv_dlopen_self+:} false; then :
13109 $as_echo_n "(cached) " >&6
13110 else
13111 if test yes = "$cross_compiling"; then :
13112 lt_cv_dlopen_self=cross
13113 else
13114 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13115 lt_status=$lt_dlunknown
13116 cat > conftest.$ac_ext <<_LT_EOF
13117 #line $LINENO "configure"
13118 #include "confdefs.h"
13119
13120 #if HAVE_DLFCN_H
13121 #include <dlfcn.h>
13122 #endif
13123
13124 #include <stdio.h>
13125
13126 #ifdef RTLD_GLOBAL
13127 # define LT_DLGLOBAL RTLD_GLOBAL
13128 #else
13129 # ifdef DL_GLOBAL
13130 # define LT_DLGLOBAL DL_GLOBAL
13131 # else
13132 # define LT_DLGLOBAL 0
13133 # endif
13134 #endif
13135
13136 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13137 find out it does not work in some platform. */
13138 #ifndef LT_DLLAZY_OR_NOW
13139 # ifdef RTLD_LAZY
13140 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13141 # else
13142 # ifdef DL_LAZY
13143 # define LT_DLLAZY_OR_NOW DL_LAZY
13144 # else
13145 # ifdef RTLD_NOW
13146 # define LT_DLLAZY_OR_NOW RTLD_NOW
13147 # else
13148 # ifdef DL_NOW
13149 # define LT_DLLAZY_OR_NOW DL_NOW
13150 # else
13151 # define LT_DLLAZY_OR_NOW 0
13152 # endif
13153 # endif
13154 # endif
13155 # endif
13156 #endif
13157
13158 /* When -fvisibility=hidden is used, assume the code has been annotated
13159 correspondingly for the symbols needed. */
13160 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13161 int fnord () __attribute__((visibility("default")));
13162 #endif
13163
13164 int fnord () { return 42; }
13165 int main ()
13166 {
13167 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13168 int status = $lt_dlunknown;
13169
13170 if (self)
13171 {
13172 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13173 else
13174 {
13175 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13176 else puts (dlerror ());
13177 }
13178 /* dlclose (self); */
13179 }
13180 else
13181 puts (dlerror ());
13182
13183 return status;
13184 }
13185 _LT_EOF
13186 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13187 (eval $ac_link) 2>&5
13188 ac_status=$?
13189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13190 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13191 (./conftest; exit; ) >&5 2>/dev/null
13192 lt_status=$?
13193 case x$lt_status in
13194 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13195 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13196 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13197 esac
13198 else :
13199 # compilation failed
13200 lt_cv_dlopen_self=no
13201 fi
13202 fi
13203 rm -fr conftest*
13204
13205
13206 fi
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13208 $as_echo "$lt_cv_dlopen_self" >&6; }
13209
13210 if test yes = "$lt_cv_dlopen_self"; then
13211 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13213 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13214 if ${lt_cv_dlopen_self_static+:} false; then :
13215 $as_echo_n "(cached) " >&6
13216 else
13217 if test yes = "$cross_compiling"; then :
13218 lt_cv_dlopen_self_static=cross
13219 else
13220 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13221 lt_status=$lt_dlunknown
13222 cat > conftest.$ac_ext <<_LT_EOF
13223 #line $LINENO "configure"
13224 #include "confdefs.h"
13225
13226 #if HAVE_DLFCN_H
13227 #include <dlfcn.h>
13228 #endif
13229
13230 #include <stdio.h>
13231
13232 #ifdef RTLD_GLOBAL
13233 # define LT_DLGLOBAL RTLD_GLOBAL
13234 #else
13235 # ifdef DL_GLOBAL
13236 # define LT_DLGLOBAL DL_GLOBAL
13237 # else
13238 # define LT_DLGLOBAL 0
13239 # endif
13240 #endif
13241
13242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13243 find out it does not work in some platform. */
13244 #ifndef LT_DLLAZY_OR_NOW
13245 # ifdef RTLD_LAZY
13246 # define LT_DLLAZY_OR_NOW RTLD_LAZY
13247 # else
13248 # ifdef DL_LAZY
13249 # define LT_DLLAZY_OR_NOW DL_LAZY
13250 # else
13251 # ifdef RTLD_NOW
13252 # define LT_DLLAZY_OR_NOW RTLD_NOW
13253 # else
13254 # ifdef DL_NOW
13255 # define LT_DLLAZY_OR_NOW DL_NOW
13256 # else
13257 # define LT_DLLAZY_OR_NOW 0
13258 # endif
13259 # endif
13260 # endif
13261 # endif
13262 #endif
13263
13264 /* When -fvisibility=hidden is used, assume the code has been annotated
13265 correspondingly for the symbols needed. */
13266 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13267 int fnord () __attribute__((visibility("default")));
13268 #endif
13269
13270 int fnord () { return 42; }
13271 int main ()
13272 {
13273 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13274 int status = $lt_dlunknown;
13275
13276 if (self)
13277 {
13278 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
13279 else
13280 {
13281 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
13282 else puts (dlerror ());
13283 }
13284 /* dlclose (self); */
13285 }
13286 else
13287 puts (dlerror ());
13288
13289 return status;
13290 }
13291 _LT_EOF
13292 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13293 (eval $ac_link) 2>&5
13294 ac_status=$?
13295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13296 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13297 (./conftest; exit; ) >&5 2>/dev/null
13298 lt_status=$?
13299 case x$lt_status in
13300 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13301 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13302 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13303 esac
13304 else :
13305 # compilation failed
13306 lt_cv_dlopen_self_static=no
13307 fi
13308 fi
13309 rm -fr conftest*
13310
13311
13312 fi
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13314 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13315 fi
13316
13317 CPPFLAGS=$save_CPPFLAGS
13318 LDFLAGS=$save_LDFLAGS
13319 LIBS=$save_LIBS
13320 ;;
13321 esac
13322
13323 case $lt_cv_dlopen_self in
13324 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13325 *) enable_dlopen_self=unknown ;;
13326 esac
13327
13328 case $lt_cv_dlopen_self_static in
13329 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13330 *) enable_dlopen_self_static=unknown ;;
13331 esac
13332 fi
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348
13349
13350 striplib=
13351 old_striplib=
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13353 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13354 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13355 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13356 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13358 $as_echo "yes" >&6; }
13359 else
13360 # FIXME - insert some real tests, host_os isn't really good enough
13361 case $host_os in
13362 darwin*)
13363 if test -n "$STRIP"; then
13364 striplib="$STRIP -x"
13365 old_striplib="$STRIP -S"
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13367 $as_echo "yes" >&6; }
13368 else
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13370 $as_echo "no" >&6; }
13371 fi
13372 ;;
13373 *)
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13376 ;;
13377 esac
13378 fi
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389
13390
13391 # Report what library types will actually be built
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13393 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13395 $as_echo "$can_build_shared" >&6; }
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13398 $as_echo_n "checking whether to build shared libraries... " >&6; }
13399 test no = "$can_build_shared" && enable_shared=no
13400
13401 # On AIX, shared libraries and static libraries use the same namespace, and
13402 # are all built from PIC.
13403 case $host_os in
13404 aix3*)
13405 test yes = "$enable_shared" && enable_static=no
13406 if test -n "$RANLIB"; then
13407 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13408 postinstall_cmds='$RANLIB $lib'
13409 fi
13410 ;;
13411
13412 aix[4-9]*)
13413 if test ia64 != "$host_cpu"; then
13414 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13415 yes,aix,yes) ;; # shared object as lib.so file only
13416 yes,svr4,*) ;; # shared object as lib.so archive member only
13417 yes,*) enable_static=no ;; # shared object in lib.a archive as well
13418 esac
13419 fi
13420 ;;
13421 esac
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13423 $as_echo "$enable_shared" >&6; }
13424
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13426 $as_echo_n "checking whether to build static libraries... " >&6; }
13427 # Make sure either enable_shared or enable_static is yes.
13428 test yes = "$enable_shared" || enable_static=yes
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13430 $as_echo "$enable_static" >&6; }
13431
13432
13433
13434
13435 fi
13436 ac_ext=c
13437 ac_cpp='$CPP $CPPFLAGS'
13438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13441
13442 CC=$lt_save_CC
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456
13457
13458 ac_config_commands="$ac_config_commands libtool"
13459
13460
13461
13462
13463 # Only expand once:
13464
13465
13466
13467
13468 LIBT_CURRENT=10
13469 LIBT_REVISION=4
13470
13471
13472 LIBT_AGE=9
13473
13474 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13475
13476
13477 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13478
13479
13480 PKGCONFIG_REQUIRES=
13481 PKGCONFIG_REQUIRES_PRIVATELY=
13482
13483
13484 case "$host" in
13485 *-*-mingw*)
13486 os_win32=yes
13487 ;;
13488 *)
13489 os_win32=no
13490 esac
13491 if test "$os_win32" = "yes"; then
13492 OS_WIN32_TRUE=
13493 OS_WIN32_FALSE='#'
13494 else
13495 OS_WIN32_TRUE='#'
13496 OS_WIN32_FALSE=
13497 fi
13498
13499
13500 if test "$os_win32" = "yes"; then
13501 # Extract the first word of "lib.exe", so it can be a program name with args.
13502 set dummy lib.exe; ac_word=$2
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13504 $as_echo_n "checking for $ac_word... " >&6; }
13505 if ${ac_cv_prog_ms_librarian+:} false; then :
13506 $as_echo_n "(cached) " >&6
13507 else
13508 if test -n "$ms_librarian"; then
13509 ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
13510 else
13511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13512 for as_dir in $PATH
13513 do
13514 IFS=$as_save_IFS
13515 test -z "$as_dir" && as_dir=.
13516 for ac_exec_ext in '' $ac_executable_extensions; do
13517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13518 ac_cv_prog_ms_librarian="yes"
13519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13520 break 2
13521 fi
13522 done
13523 done
13524 IFS=$as_save_IFS
13525
13526 test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
13527 fi
13528 fi
13529 ms_librarian=$ac_cv_prog_ms_librarian
13530 if test -n "$ms_librarian"; then
13531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
13532 $as_echo "$ms_librarian" >&6; }
13533 else
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13535 $as_echo "no" >&6; }
13536 fi
13537
13538
13539 fi
13540 if test x$ms_librarian = xyes; then
13541 MS_LIB_AVAILABLE_TRUE=
13542 MS_LIB_AVAILABLE_FALSE='#'
13543 else
13544 MS_LIB_AVAILABLE_TRUE='#'
13545 MS_LIB_AVAILABLE_FALSE=
13546 fi
13547
13548
13549 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13550 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13551 SUNCC="yes"
13552 else
13553 SUNCC="no"
13554 fi
13555
13556 WARN_CFLAGS=""
13557 WARNING_CPP_DIRECTIVE="no"
13558 if test "x$GCC" = "xyes"; then
13559 WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
13560 -Wmissing-prototypes -Wmissing-declarations \
13561 -Wnested-externs -fno-strict-aliasing"
13562 WARNING_CPP_DIRECTIVE="yes"
13563 elif test "x$SUNCC" = "xyes"; then
13564 WARN_CFLAGS="-v -fd"
13565 WARNING_CPP_DIRECTIVE="yes"
13566 fi
13567 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
13568
13569 cat >>confdefs.h <<_ACEOF
13570 #define HAVE_WARNING_CPP_DIRECTIVE 1
13571 _ACEOF
13572
13573 fi
13574
13575
13576
13577
13578 # Put a plausible default for CC_FOR_BUILD in Makefile.
13579 if test -z "$CC_FOR_BUILD"; then
13580 if test "x$cross_compiling" = "xno"; then
13581 CC_FOR_BUILD='$(CC)'
13582 else
13583 CC_FOR_BUILD=gcc
13584 fi
13585 fi
13586
13587 # Also set EXEEXT_FOR_BUILD.
13588 if test "x$cross_compiling" = "xno"; then
13589 EXEEXT_FOR_BUILD='$(EXEEXT)'
13590 else
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13592 $as_echo_n "checking for build system executable suffix... " >&6; }
13593 if ${bfd_cv_build_exeext+:} false; then :
13594 $as_echo_n "(cached) " >&6
13595 else
13596 rm -f conftest*
13597 echo 'int main () { return 0; }' > conftest.c
13598 bfd_cv_build_exeext=
13599 ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13600 for file in conftest.*; do
13601 case $file in
13602 *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13603 *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13604 esac
13605 done
13606 rm -f conftest*
13607 test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13608 fi
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13610 $as_echo "$bfd_cv_build_exeext" >&6; }
13611 EXEEXT_FOR_BUILD=""
13612 test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13613 fi
13614
13615
13616 if test $cross_compiling = yes; then
13617 CROSS_COMPILING_TRUE=
13618 CROSS_COMPILING_FALSE='#'
13619 else
13620 CROSS_COMPILING_TRUE='#'
13621 CROSS_COMPILING_FALSE=
13622 fi
13623
13624 if test "$enable_shared" = "yes"; then
13625 ENABLE_SHARED_TRUE=
13626 ENABLE_SHARED_FALSE='#'
13627 else
13628 ENABLE_SHARED_TRUE='#'
13629 ENABLE_SHARED_FALSE=
13630 fi
13631
13632
13633
13634
13635 # Check whether --with-arch was given.
13636 if test "${with_arch+set}" = set; then :
13637 withval=$with_arch; arch="$withval"
13638 else
13639 arch=auto
13640 fi
13641
13642
13643 if test "x$arch" != xauto; then
13644
13645 cat >>confdefs.h <<_ACEOF
13646 #define FC_ARCHITECTURE "$arch"
13647 _ACEOF
13648
13649 fi
13650
13651
13652
13653 # Checks for header files.
13654 ac_header_dirent=no
13655 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13656 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13658 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13659 if eval \${$as_ac_Header+:} false; then :
13660 $as_echo_n "(cached) " >&6
13661 else
13662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13663 /* end confdefs.h. */
13664 #include <sys/types.h>
13665 #include <$ac_hdr>
13666
13667 int
13668 main ()
13669 {
13670 if ((DIR *) 0)
13671 return 0;
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"; then :
13677 eval "$as_ac_Header=yes"
13678 else
13679 eval "$as_ac_Header=no"
13680 fi
13681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13682 fi
13683 eval ac_res=\$$as_ac_Header
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13685 $as_echo "$ac_res" >&6; }
13686 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13687 cat >>confdefs.h <<_ACEOF
13688 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13689 _ACEOF
13690
13691 ac_header_dirent=$ac_hdr; break
13692 fi
13693
13694 done
13695 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13696 if test $ac_header_dirent = dirent.h; then
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13698 $as_echo_n "checking for library containing opendir... " >&6; }
13699 if ${ac_cv_search_opendir+:} false; then :
13700 $as_echo_n "(cached) " >&6
13701 else
13702 ac_func_search_save_LIBS=$LIBS
13703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13704 /* end confdefs.h. */
13705
13706 /* Override any GCC internal prototype to avoid an error.
13707 Use char because int might match the return type of a GCC
13708 builtin and then its argument prototype would still apply. */
13709 #ifdef __cplusplus
13710 extern "C"
13711 #endif
13712 char opendir ();
13713 int
13714 main ()
13715 {
13716 return opendir ();
13717 ;
13718 return 0;
13719 }
13720 _ACEOF
13721 for ac_lib in '' dir; do
13722 if test -z "$ac_lib"; then
13723 ac_res="none required"
13724 else
13725 ac_res=-l$ac_lib
13726 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13727 fi
13728 if ac_fn_c_try_link "$LINENO"; then :
13729 ac_cv_search_opendir=$ac_res
13730 fi
13731 rm -f core conftest.err conftest.$ac_objext \
13732 conftest$ac_exeext
13733 if ${ac_cv_search_opendir+:} false; then :
13734 break
13735 fi
13736 done
13737 if ${ac_cv_search_opendir+:} false; then :
13738
13739 else
13740 ac_cv_search_opendir=no
13741 fi
13742 rm conftest.$ac_ext
13743 LIBS=$ac_func_search_save_LIBS
13744 fi
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13746 $as_echo "$ac_cv_search_opendir" >&6; }
13747 ac_res=$ac_cv_search_opendir
13748 if test "$ac_res" != no; then :
13749 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13750
13751 fi
13752
13753 else
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13755 $as_echo_n "checking for library containing opendir... " >&6; }
13756 if ${ac_cv_search_opendir+:} false; then :
13757 $as_echo_n "(cached) " >&6
13758 else
13759 ac_func_search_save_LIBS=$LIBS
13760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13761 /* end confdefs.h. */
13762
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13766 #ifdef __cplusplus
13767 extern "C"
13768 #endif
13769 char opendir ();
13770 int
13771 main ()
13772 {
13773 return opendir ();
13774 ;
13775 return 0;
13776 }
13777 _ACEOF
13778 for ac_lib in '' x; do
13779 if test -z "$ac_lib"; then
13780 ac_res="none required"
13781 else
13782 ac_res=-l$ac_lib
13783 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13784 fi
13785 if ac_fn_c_try_link "$LINENO"; then :
13786 ac_cv_search_opendir=$ac_res
13787 fi
13788 rm -f core conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext
13790 if ${ac_cv_search_opendir+:} false; then :
13791 break
13792 fi
13793 done
13794 if ${ac_cv_search_opendir+:} false; then :
13795
13796 else
13797 ac_cv_search_opendir=no
13798 fi
13799 rm conftest.$ac_ext
13800 LIBS=$ac_func_search_save_LIBS
13801 fi
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13803 $as_echo "$ac_cv_search_opendir" >&6; }
13804 ac_res=$ac_cv_search_opendir
13805 if test "$ac_res" != no; then :
13806 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13807
13808 fi
13809
13810 fi
13811
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13813 $as_echo_n "checking for ANSI C header files... " >&6; }
13814 if ${ac_cv_header_stdc+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816 else
13817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13818 /* end confdefs.h. */
13819 #include <stdlib.h>
13820 #include <stdarg.h>
13821 #include <string.h>
13822 #include <float.h>
13823
13824 int
13825 main ()
13826 {
13827
13828 ;
13829 return 0;
13830 }
13831 _ACEOF
13832 if ac_fn_c_try_compile "$LINENO"; then :
13833 ac_cv_header_stdc=yes
13834 else
13835 ac_cv_header_stdc=no
13836 fi
13837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13838
13839 if test $ac_cv_header_stdc = yes; then
13840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13842 /* end confdefs.h. */
13843 #include <string.h>
13844
13845 _ACEOF
13846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13847 $EGREP "memchr" >/dev/null 2>&1; then :
13848
13849 else
13850 ac_cv_header_stdc=no
13851 fi
13852 rm -f conftest*
13853
13854 fi
13855
13856 if test $ac_cv_header_stdc = yes; then
13857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13859 /* end confdefs.h. */
13860 #include <stdlib.h>
13861
13862 _ACEOF
13863 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13864 $EGREP "free" >/dev/null 2>&1; then :
13865
13866 else
13867 ac_cv_header_stdc=no
13868 fi
13869 rm -f conftest*
13870
13871 fi
13872
13873 if test $ac_cv_header_stdc = yes; then
13874 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13875 if test "$cross_compiling" = yes; then :
13876 :
13877 else
13878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13879 /* end confdefs.h. */
13880 #include <ctype.h>
13881 #include <stdlib.h>
13882 #if ((' ' & 0x0FF) == 0x020)
13883 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13884 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13885 #else
13886 # define ISLOWER(c) \
13887 (('a' <= (c) && (c) <= 'i') \
13888 || ('j' <= (c) && (c) <= 'r') \
13889 || ('s' <= (c) && (c) <= 'z'))
13890 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13891 #endif
13892
13893 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13894 int
13895 main ()
13896 {
13897 int i;
13898 for (i = 0; i < 256; i++)
13899 if (XOR (islower (i), ISLOWER (i))
13900 || toupper (i) != TOUPPER (i))
13901 return 2;
13902 return 0;
13903 }
13904 _ACEOF
13905 if ac_fn_c_try_run "$LINENO"; then :
13906
13907 else
13908 ac_cv_header_stdc=no
13909 fi
13910 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13911 conftest.$ac_objext conftest.beam conftest.$ac_ext
13912 fi
13913
13914 fi
13915 fi
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13917 $as_echo "$ac_cv_header_stdc" >&6; }
13918 if test $ac_cv_header_stdc = yes; then
13919
13920 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13921
13922 fi
13923
13924 for ac_header in fcntl.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h
13925 do :
13926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13929 cat >>confdefs.h <<_ACEOF
13930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13931 _ACEOF
13932
13933 fi
13934
13935 done
13936
13937 # ------ AX CREATE STDINT H -------------------------------------
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13939 $as_echo_n "checking for stdint types... " >&6; }
13940 ac_stdint_h=`echo src/fcstdint.h`
13941 # try to shortcircuit - if the default include path of the compiler
13942 # can find a "stdint.h" header then we assume that all compilers can.
13943 if ${ac_cv_header_stdint_t+:} false; then :
13944 $as_echo_n "(cached) " >&6
13945 else
13946
13947 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13948 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13949 old_CFLAGS="$CFLAGS" ; CFLAGS=""
13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13952 #include <stdint.h>
13953 int
13954 main ()
13955 {
13956 int_least32_t v = 0;
13957 ;
13958 return 0;
13959 }
13960 _ACEOF
13961 if ac_fn_c_try_compile "$LINENO"; then :
13962 ac_cv_stdint_result="(assuming C99 compatible system)"
13963 ac_cv_header_stdint_t="stdint.h";
13964 else
13965 ac_cv_header_stdint_t=""
13966 fi
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13969 CFLAGS="-std=c99"
13970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13971 /* end confdefs.h. */
13972 #include <stdint.h>
13973 int
13974 main ()
13975 {
13976 int_least32_t v = 0;
13977 ;
13978 return 0;
13979 }
13980 _ACEOF
13981 if ac_fn_c_try_compile "$LINENO"; then :
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13983 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13986 fi
13987 CXXFLAGS="$old_CXXFLAGS"
13988 CPPFLAGS="$old_CPPFLAGS"
13989 CFLAGS="$old_CFLAGS"
13990 fi
13991
13992
13993 v="... $ac_cv_header_stdint_h"
13994 if test "$ac_stdint_h" = "stdint.h" ; then
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13996 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13997 elif test "$ac_stdint_h" = "inttypes.h" ; then
13998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13999 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
14000 elif test "_$ac_cv_header_stdint_t" = "_" ; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
14002 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
14003 else
14004 ac_cv_header_stdint="$ac_cv_header_stdint_t"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
14006 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
14007 fi
14008
14009 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14010
14011
14012 inttype_headers=`echo | sed -e 's/,/ /g'`
14013
14014 ac_cv_stdint_result="(no helpful system typedefs seen)"
14015
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14017 $as_echo_n "checking for stdint uintptr_t... " >&6; }
14018 if ${ac_cv_header_stdint_x+:} false; then :
14019 $as_echo_n "(cached) " >&6
14020 else
14021
14022 ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14024 $as_echo "(..)" >&6; }
14025 for i in stdint.h inttypes.h sys/inttypes.h $inttype_headers
14026 do
14027 unset ac_cv_type_uintptr_t
14028 unset ac_cv_type_uint64_t
14029 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
14030 "
14031 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14032 ac_cv_header_stdint_x=$i
14033 else
14034 continue
14035 fi
14036
14037 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14038 "
14039 if test "x$ac_cv_type_uint64_t" = xyes; then :
14040 and64="/uint64_t"
14041 else
14042 and64=""
14043 fi
14044
14045 ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
14046 break
14047 done
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14049 $as_echo_n "checking for stdint uintptr_t... " >&6; }
14050
14051 fi
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
14053 $as_echo "$ac_cv_header_stdint_x" >&6; }
14054
14055
14056 if test "_$ac_cv_header_stdint_x" = "_" ; then
14057
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14059 $as_echo_n "checking for stdint uint32_t... " >&6; }
14060 if ${ac_cv_header_stdint_o+:} false; then :
14061 $as_echo_n "(cached) " >&6
14062 else
14063
14064 ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14066 $as_echo "(..)" >&6; }
14067 for i in inttypes.h sys/inttypes.h stdint.h $inttype_headers
14068 do
14069 unset ac_cv_type_uint32_t
14070 unset ac_cv_type_uint64_t
14071 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
14072 "
14073 if test "x$ac_cv_type_uint32_t" = xyes; then :
14074 ac_cv_header_stdint_o=$i
14075 else
14076 continue
14077 fi
14078
14079 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14080 "
14081 if test "x$ac_cv_type_uint64_t" = xyes; then :
14082 and64="/uint64_t"
14083 else
14084 and64=""
14085 fi
14086
14087 ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
14088 break
14089 break;
14090 done
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14092 $as_echo_n "checking for stdint uint32_t... " >&6; }
14093
14094 fi
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
14096 $as_echo "$ac_cv_header_stdint_o" >&6; }
14097
14098 fi
14099
14100 if test "_$ac_cv_header_stdint_x" = "_" ; then
14101 if test "_$ac_cv_header_stdint_o" = "_" ; then
14102
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14104 $as_echo_n "checking for stdint u_int32_t... " >&6; }
14105 if ${ac_cv_header_stdint_u+:} false; then :
14106 $as_echo_n "(cached) " >&6
14107 else
14108
14109 ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14111 $as_echo "(..)" >&6; }
14112 for i in sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14113 unset ac_cv_type_u_int32_t
14114 unset ac_cv_type_u_int64_t
14115 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
14116 "
14117 if test "x$ac_cv_type_u_int32_t" = xyes; then :
14118 ac_cv_header_stdint_u=$i
14119 else
14120 continue
14121 fi
14122
14123 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
14124 "
14125 if test "x$ac_cv_type_u_int64_t" = xyes; then :
14126 and64="/u_int64_t"
14127 else
14128 and64=""
14129 fi
14130
14131 ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
14132 break
14133 break;
14134 done
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14136 $as_echo_n "checking for stdint u_int32_t... " >&6; }
14137
14138 fi
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
14140 $as_echo "$ac_cv_header_stdint_u" >&6; }
14141
14142 fi fi
14143
14144 if test "_$ac_cv_header_stdint_x" = "_" ; then
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
14146 $as_echo_n "checking for stdint datatype model... " >&6; }
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14148 $as_echo "(..)" >&6; }
14149
14150 # The cast to long int works around a bug in the HP C Compiler
14151 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14152 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14153 # This bug is HP SR number 8606223364.
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14155 $as_echo_n "checking size of char... " >&6; }
14156 if ${ac_cv_sizeof_char+:} false; then :
14157 $as_echo_n "(cached) " >&6
14158 else
14159 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
14160
14161 else
14162 if test "$ac_cv_type_char" = yes; then
14163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14164 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14165 as_fn_error 77 "cannot compute sizeof (char)
14166 See \`config.log' for more details" "$LINENO" 5; }
14167 else
14168 ac_cv_sizeof_char=0
14169 fi
14170 fi
14171
14172 fi
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14174 $as_echo "$ac_cv_sizeof_char" >&6; }
14175
14176
14177
14178 cat >>confdefs.h <<_ACEOF
14179 #define SIZEOF_CHAR $ac_cv_sizeof_char
14180 _ACEOF
14181
14182
14183 # The cast to long int works around a bug in the HP C Compiler
14184 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14185 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14186 # This bug is HP SR number 8606223364.
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14188 $as_echo_n "checking size of short... " >&6; }
14189 if ${ac_cv_sizeof_short+:} false; then :
14190 $as_echo_n "(cached) " >&6
14191 else
14192 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
14193
14194 else
14195 if test "$ac_cv_type_short" = yes; then
14196 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14197 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14198 as_fn_error 77 "cannot compute sizeof (short)
14199 See \`config.log' for more details" "$LINENO" 5; }
14200 else
14201 ac_cv_sizeof_short=0
14202 fi
14203 fi
14204
14205 fi
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14207 $as_echo "$ac_cv_sizeof_short" >&6; }
14208
14209
14210
14211 cat >>confdefs.h <<_ACEOF
14212 #define SIZEOF_SHORT $ac_cv_sizeof_short
14213 _ACEOF
14214
14215
14216 # The cast to long int works around a bug in the HP C Compiler
14217 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14218 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14219 # This bug is HP SR number 8606223364.
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14221 $as_echo_n "checking size of int... " >&6; }
14222 if ${ac_cv_sizeof_int+:} false; then :
14223 $as_echo_n "(cached) " >&6
14224 else
14225 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
14226
14227 else
14228 if test "$ac_cv_type_int" = yes; then
14229 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14230 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14231 as_fn_error 77 "cannot compute sizeof (int)
14232 See \`config.log' for more details" "$LINENO" 5; }
14233 else
14234 ac_cv_sizeof_int=0
14235 fi
14236 fi
14237
14238 fi
14239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14240 $as_echo "$ac_cv_sizeof_int" >&6; }
14241
14242
14243
14244 cat >>confdefs.h <<_ACEOF
14245 #define SIZEOF_INT $ac_cv_sizeof_int
14246 _ACEOF
14247
14248
14249 # The cast to long int works around a bug in the HP C Compiler
14250 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14251 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14252 # This bug is HP SR number 8606223364.
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14254 $as_echo_n "checking size of long... " >&6; }
14255 if ${ac_cv_sizeof_long+:} false; then :
14256 $as_echo_n "(cached) " >&6
14257 else
14258 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
14259
14260 else
14261 if test "$ac_cv_type_long" = yes; then
14262 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14263 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14264 as_fn_error 77 "cannot compute sizeof (long)
14265 See \`config.log' for more details" "$LINENO" 5; }
14266 else
14267 ac_cv_sizeof_long=0
14268 fi
14269 fi
14270
14271 fi
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14273 $as_echo "$ac_cv_sizeof_long" >&6; }
14274
14275
14276
14277 cat >>confdefs.h <<_ACEOF
14278 #define SIZEOF_LONG $ac_cv_sizeof_long
14279 _ACEOF
14280
14281
14282 # The cast to long int works around a bug in the HP C Compiler
14283 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14284 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14285 # This bug is HP SR number 8606223364.
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14287 $as_echo_n "checking size of void*... " >&6; }
14288 if ${ac_cv_sizeof_voidp+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
14292
14293 else
14294 if test "$ac_cv_type_voidp" = yes; then
14295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14297 as_fn_error 77 "cannot compute sizeof (void*)
14298 See \`config.log' for more details" "$LINENO" 5; }
14299 else
14300 ac_cv_sizeof_voidp=0
14301 fi
14302 fi
14303
14304 fi
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14306 $as_echo "$ac_cv_sizeof_voidp" >&6; }
14307
14308
14309
14310 cat >>confdefs.h <<_ACEOF
14311 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14312 _ACEOF
14313
14314
14315 ac_cv_char_data_model=""
14316 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
14317 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
14318 ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
14319 ac_cv_long_data_model=""
14320 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
14321 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
14322 ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
14324 $as_echo_n "checking data model... " >&6; }
14325 case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
14326 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
14327 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
14328 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
14329 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
14330 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
14331 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
14332 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
14333 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
14334 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
14335 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
14336 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
14337 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
14338 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
14339 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
14340 222/*|333/*|444/*|666/*|888/*) :
14341 ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
14342 *) ac_cv_data_model="none" ; n="very unusual model" ;;
14343 esac
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
14345 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
14346
14347 fi
14348
14349 if test "_$ac_cv_header_stdint_x" != "_" ; then
14350 ac_cv_header_stdint="$ac_cv_header_stdint_x"
14351 elif test "_$ac_cv_header_stdint_o" != "_" ; then
14352 ac_cv_header_stdint="$ac_cv_header_stdint_o"
14353 elif test "_$ac_cv_header_stdint_u" != "_" ; then
14354 ac_cv_header_stdint="$ac_cv_header_stdint_u"
14355 else
14356 ac_cv_header_stdint="stddef.h"
14357 fi
14358
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
14360 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
14362 $as_echo "($ac_cv_header_stdint)" >&6; }
14363 unset ac_cv_type_int_least32_t
14364 unset ac_cv_type_int_fast32_t
14365 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
14366 "
14367 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14368
14369 fi
14370
14371 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
14372 "
14373 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14374
14375 fi
14376
14377 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
14378 "
14379 if test "x$ac_cv_type_intmax_t" = xyes; then :
14380
14381 fi
14382
14383
14384 fi # shortcircut to system "stdint.h"
14385 # ------------------ PREPARE VARIABLES ------------------------------
14386 if test "$GCC" = "yes" ; then
14387 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
14388 else
14389 ac_cv_stdint_message="using $CC"
14390 fi
14391
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
14393 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
14394
14395 # ----------------- DONE inttypes.h checks START header -------------
14396 ac_config_commands="$ac_config_commands $ac_stdint_h"
14397
14398
14399
14400 # Checks for typedefs, structures, and compiler characteristics.
14401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14402 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14403 if ${ac_cv_c_const+:} false; then :
14404 $as_echo_n "(cached) " >&6
14405 else
14406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14407 /* end confdefs.h. */
14408
14409 int
14410 main ()
14411 {
14412
14413 #ifndef __cplusplus
14414 /* Ultrix mips cc rejects this sort of thing. */
14415 typedef int charset[2];
14416 const charset cs = { 0, 0 };
14417 /* SunOS 4.1.1 cc rejects this. */
14418 char const *const *pcpcc;
14419 char **ppc;
14420 /* NEC SVR4.0.2 mips cc rejects this. */
14421 struct point {int x, y;};
14422 static struct point const zero = {0,0};
14423 /* AIX XL C 1.02.0.0 rejects this.
14424 It does not let you subtract one const X* pointer from another in
14425 an arm of an if-expression whose if-part is not a constant
14426 expression */
14427 const char *g = "string";
14428 pcpcc = &g + (g ? g-g : 0);
14429 /* HPUX 7.0 cc rejects these. */
14430 ++pcpcc;
14431 ppc = (char**) pcpcc;
14432 pcpcc = (char const *const *) ppc;
14433 { /* SCO 3.2v4 cc rejects this sort of thing. */
14434 char tx;
14435 char *t = &tx;
14436 char const *s = 0 ? (char *) 0 : (char const *) 0;
14437
14438 *t++ = 0;
14439 if (s) return 0;
14440 }
14441 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
14442 int x[] = {25, 17};
14443 const int *foo = &x[0];
14444 ++foo;
14445 }
14446 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14447 typedef const int *iptr;
14448 iptr p = 0;
14449 ++p;
14450 }
14451 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14452 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14453 struct s { int j; const int *ap[3]; } bx;
14454 struct s *b = &bx; b->j = 5;
14455 }
14456 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14457 const int foo = 10;
14458 if (!foo) return 0;
14459 }
14460 return !cs[0] && !zero.x;
14461 #endif
14462
14463 ;
14464 return 0;
14465 }
14466 _ACEOF
14467 if ac_fn_c_try_compile "$LINENO"; then :
14468 ac_cv_c_const=yes
14469 else
14470 ac_cv_c_const=no
14471 fi
14472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 fi
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14475 $as_echo "$ac_cv_c_const" >&6; }
14476 if test $ac_cv_c_const = no; then
14477
14478 $as_echo "#define const /**/" >>confdefs.h
14479
14480 fi
14481
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14483 $as_echo_n "checking for inline... " >&6; }
14484 if ${ac_cv_c_inline+:} false; then :
14485 $as_echo_n "(cached) " >&6
14486 else
14487 ac_cv_c_inline=no
14488 for ac_kw in inline __inline__ __inline; do
14489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14490 /* end confdefs.h. */
14491 #ifndef __cplusplus
14492 typedef int foo_t;
14493 static $ac_kw foo_t static_foo () {return 0; }
14494 $ac_kw foo_t foo () {return 0; }
14495 #endif
14496
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14499 ac_cv_c_inline=$ac_kw
14500 fi
14501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14502 test "$ac_cv_c_inline" != no && break
14503 done
14504
14505 fi
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14507 $as_echo "$ac_cv_c_inline" >&6; }
14508
14509 case $ac_cv_c_inline in
14510 inline | yes) ;;
14511 *)
14512 case $ac_cv_c_inline in
14513 no) ac_val=;;
14514 *) ac_val=$ac_cv_c_inline;;
14515 esac
14516 cat >>confdefs.h <<_ACEOF
14517 #ifndef __cplusplus
14518 #define inline $ac_val
14519 #endif
14520 _ACEOF
14521 ;;
14522 esac
14523
14524
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14526 $as_echo_n "checking for flexible array members... " >&6; }
14527 if ${ac_cv_c_flexmember+:} false; then :
14528 $as_echo_n "(cached) " >&6
14529 else
14530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14531 /* end confdefs.h. */
14532 #include <stdlib.h>
14533 #include <stdio.h>
14534 #include <stddef.h>
14535 struct s { int n; double d[]; };
14536 int
14537 main ()
14538 {
14539 int m = getchar ();
14540 struct s *p = malloc (offsetof (struct s, d)
14541 + m * sizeof (double));
14542 p->d[0] = 0.0;
14543 return p->d != (double *) NULL;
14544 ;
14545 return 0;
14546 }
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"; then :
14549 ac_cv_c_flexmember=yes
14550 else
14551 ac_cv_c_flexmember=no
14552 fi
14553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14554 fi
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14556 $as_echo "$ac_cv_c_flexmember" >&6; }
14557 if test $ac_cv_c_flexmember = yes; then
14558
14559 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14560
14561 else
14562 $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14563
14564 fi
14565
14566 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14567 if test "x$ac_cv_type_pid_t" = xyes; then :
14568
14569 else
14570
14571 cat >>confdefs.h <<_ACEOF
14572 #define pid_t int
14573 _ACEOF
14574
14575 fi
14576
14577
14578 # Checks for library functions.
14579 for ac_func in vprintf
14580 do :
14581 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14582 if test "x$ac_cv_func_vprintf" = xyes; then :
14583 cat >>confdefs.h <<_ACEOF
14584 #define HAVE_VPRINTF 1
14585 _ACEOF
14586
14587 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14588 if test "x$ac_cv_func__doprnt" = xyes; then :
14589
14590 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14591
14592 fi
14593
14594 fi
14595 done
14596
14597
14598
14599
14600
14601 for ac_header in $ac_header_list
14602 do :
14603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14604 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14605 "
14606 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14607 cat >>confdefs.h <<_ACEOF
14608 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14609 _ACEOF
14610
14611 fi
14612
14613 done
14614
14615
14616
14617
14618
14619
14620
14621
14622 for ac_func in getpagesize
14623 do :
14624 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14625 if test "x$ac_cv_func_getpagesize" = xyes; then :
14626 cat >>confdefs.h <<_ACEOF
14627 #define HAVE_GETPAGESIZE 1
14628 _ACEOF
14629
14630 fi
14631 done
14632
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14634 $as_echo_n "checking for working mmap... " >&6; }
14635 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14636 $as_echo_n "(cached) " >&6
14637 else
14638 if test "$cross_compiling" = yes; then :
14639 ac_cv_func_mmap_fixed_mapped=no
14640 else
14641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14642 /* end confdefs.h. */
14643 $ac_includes_default
14644 /* malloc might have been renamed as rpl_malloc. */
14645 #undef malloc
14646
14647 /* Thanks to Mike Haertel and Jim Avera for this test.
14648 Here is a matrix of mmap possibilities:
14649 mmap private not fixed
14650 mmap private fixed at somewhere currently unmapped
14651 mmap private fixed at somewhere already mapped
14652 mmap shared not fixed
14653 mmap shared fixed at somewhere currently unmapped
14654 mmap shared fixed at somewhere already mapped
14655 For private mappings, we should verify that changes cannot be read()
14656 back from the file, nor mmap's back from the file at a different
14657 address. (There have been systems where private was not correctly
14658 implemented like the infamous i386 svr4.0, and systems where the
14659 VM page cache was not coherent with the file system buffer cache
14660 like early versions of FreeBSD and possibly contemporary NetBSD.)
14661 For shared mappings, we should conversely verify that changes get
14662 propagated back to all the places they're supposed to be.
14663
14664 Grep wants private fixed already mapped.
14665 The main things grep needs to know about mmap are:
14666 * does it exist and is it safe to write into the mmap'd area
14667 * how to use it (BSD variants) */
14668
14669 #include <fcntl.h>
14670 #include <sys/mman.h>
14671
14672 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14673 char *malloc ();
14674 #endif
14675
14676 /* This mess was copied from the GNU getpagesize.h. */
14677 #ifndef HAVE_GETPAGESIZE
14678 # ifdef _SC_PAGESIZE
14679 # define getpagesize() sysconf(_SC_PAGESIZE)
14680 # else /* no _SC_PAGESIZE */
14681 # ifdef HAVE_SYS_PARAM_H
14682 # include <sys/param.h>
14683 # ifdef EXEC_PAGESIZE
14684 # define getpagesize() EXEC_PAGESIZE
14685 # else /* no EXEC_PAGESIZE */
14686 # ifdef NBPG
14687 # define getpagesize() NBPG * CLSIZE
14688 # ifndef CLSIZE
14689 # define CLSIZE 1
14690 # endif /* no CLSIZE */
14691 # else /* no NBPG */
14692 # ifdef NBPC
14693 # define getpagesize() NBPC
14694 # else /* no NBPC */
14695 # ifdef PAGESIZE
14696 # define getpagesize() PAGESIZE
14697 # endif /* PAGESIZE */
14698 # endif /* no NBPC */
14699 # endif /* no NBPG */
14700 # endif /* no EXEC_PAGESIZE */
14701 # else /* no HAVE_SYS_PARAM_H */
14702 # define getpagesize() 8192 /* punt totally */
14703 # endif /* no HAVE_SYS_PARAM_H */
14704 # endif /* no _SC_PAGESIZE */
14705
14706 #endif /* no HAVE_GETPAGESIZE */
14707
14708 int
14709 main ()
14710 {
14711 char *data, *data2, *data3;
14712 const char *cdata2;
14713 int i, pagesize;
14714 int fd, fd2;
14715
14716 pagesize = getpagesize ();
14717
14718 /* First, make a file with some known garbage in it. */
14719 data = (char *) malloc (pagesize);
14720 if (!data)
14721 return 1;
14722 for (i = 0; i < pagesize; ++i)
14723 *(data + i) = rand ();
14724 umask (0);
14725 fd = creat ("conftest.mmap", 0600);
14726 if (fd < 0)
14727 return 2;
14728 if (write (fd, data, pagesize) != pagesize)
14729 return 3;
14730 close (fd);
14731
14732 /* Next, check that the tail of a page is zero-filled. File must have
14733 non-zero length, otherwise we risk SIGBUS for entire page. */
14734 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14735 if (fd2 < 0)
14736 return 4;
14737 cdata2 = "";
14738 if (write (fd2, cdata2, 1) != 1)
14739 return 5;
14740 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14741 if (data2 == MAP_FAILED)
14742 return 6;
14743 for (i = 0; i < pagesize; ++i)
14744 if (*(data2 + i))
14745 return 7;
14746 close (fd2);
14747 if (munmap (data2, pagesize))
14748 return 8;
14749
14750 /* Next, try to mmap the file at a fixed address which already has
14751 something else allocated at it. If we can, also make sure that
14752 we see the same garbage. */
14753 fd = open ("conftest.mmap", O_RDWR);
14754 if (fd < 0)
14755 return 9;
14756 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14757 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14758 return 10;
14759 for (i = 0; i < pagesize; ++i)
14760 if (*(data + i) != *(data2 + i))
14761 return 11;
14762
14763 /* Finally, make sure that changes to the mapped area do not
14764 percolate back to the file as seen by read(). (This is a bug on
14765 some variants of i386 svr4.0.) */
14766 for (i = 0; i < pagesize; ++i)
14767 *(data2 + i) = *(data2 + i) + 1;
14768 data3 = (char *) malloc (pagesize);
14769 if (!data3)
14770 return 12;
14771 if (read (fd, data3, pagesize) != pagesize)
14772 return 13;
14773 for (i = 0; i < pagesize; ++i)
14774 if (*(data + i) != *(data3 + i))
14775 return 14;
14776 close (fd);
14777 return 0;
14778 }
14779 _ACEOF
14780 if ac_fn_c_try_run "$LINENO"; then :
14781 ac_cv_func_mmap_fixed_mapped=yes
14782 else
14783 ac_cv_func_mmap_fixed_mapped=no
14784 fi
14785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14786 conftest.$ac_objext conftest.beam conftest.$ac_ext
14787 fi
14788
14789 fi
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14791 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14792 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14793
14794 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14795
14796 fi
14797 rm -f conftest.mmap conftest.txt
14798
14799 for ac_func in link mkstemp mkostemp _mktemp_s mkdtemp getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r readlink fstatvfs fstatfs lstat
14800 do :
14801 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14802 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14803 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14804 cat >>confdefs.h <<_ACEOF
14805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14806 _ACEOF
14807
14808 fi
14809 done
14810
14811
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
14813 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
14814 if ${ac_cv_func_posix_fadvise+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
14818 ac_found=no
14819 for ac_header in fcntl.h ; do
14820 ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
14821 if test $ac_found != "yes" ; then
14822 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14825 #include <$ac_header>
14826
14827 _ACEOF
14828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14829 $EGREP "$symbol" >/dev/null 2>&1; then :
14830 ac_found="$ac_header"
14831 fi
14832 rm -f conftest*
14833
14834 fi
14835 fi
14836 done
14837 if test "$ac_found" != "no" ; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
14839 $as_echo "$ac_found" >&6; }
14840 fc_func_posix_fadvise=1
14841 else
14842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14843 $as_echo "no" >&6; }
14844 fc_func_posix_fadvise=0
14845 fi
14846
14847 fi
14848
14849
14850 cat >>confdefs.h <<_ACEOF
14851 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
14852 _ACEOF
14853
14854
14855 #
14856 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
14857 "
14858 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14859
14860 cat >>confdefs.h <<_ACEOF
14861 #define HAVE_STRUCT_STAT_ST_MTIM 1
14862 _ACEOF
14863
14864
14865 fi
14866
14867
14868 #
14869 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
14870 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
14871 "
14872 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
14873
14874 cat >>confdefs.h <<_ACEOF
14875 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
14876 _ACEOF
14877
14878
14879 fi
14880 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
14881 "
14882 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
14883
14884 cat >>confdefs.h <<_ACEOF
14885 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
14886 _ACEOF
14887
14888
14889 fi
14890
14891 fi
14892 if test "x$ac_cv_func_fstatfs" = "xyes"; then
14893 ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
14894 #ifdef HAVE_SYS_VFS_H
14895 #include <sys/vfs.h>
14896 #endif
14897 #ifdef HAVE_SYS_STATFS_H
14898 #include <sys/statfs.h>
14899 #endif
14900 #ifdef HAVE_SYS_PARAM_H
14901 #include <sys/param.h>
14902 #endif
14903 #ifdef HAVE_SYS_MOUNT_H
14904 #include <sys/mount.h>
14905 #endif
14906 "
14907 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
14908
14909 cat >>confdefs.h <<_ACEOF
14910 #define HAVE_STRUCT_STATFS_F_FLAGS 1
14911 _ACEOF
14912
14913
14914 fi
14915 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
14916 #ifdef HAVE_SYS_VFS_H
14917 #include <sys/vfs.h>
14918 #endif
14919 #ifdef HAVE_SYS_STATFS_H
14920 #include <sys/statfs.h>
14921 #endif
14922 #ifdef HAVE_SYS_PARAM_H
14923 #include <sys/param.h>
14924 #endif
14925 #ifdef HAVE_SYS_MOUNT_H
14926 #include <sys/mount.h>
14927 #endif
14928 "
14929 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
14930
14931 cat >>confdefs.h <<_ACEOF
14932 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
14933 _ACEOF
14934
14935
14936 fi
14937
14938 fi
14939 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
14940 "
14941 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
14942
14943 cat >>confdefs.h <<_ACEOF
14944 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14945 _ACEOF
14946
14947
14948 fi
14949
14950
14951 # Check the argument type of the gperf hash/lookup function
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking The type of len parameter of gperf hash/lookup function" >&5
14953 $as_echo_n "checking The type of len parameter of gperf hash/lookup function... " >&6; }
14954 fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957
14958 #include <string.h>
14959
14960 const char *in_word_set(register const char *, register size_t);
14961 $fc_gperf_test
14962
14963 int
14964 main ()
14965 {
14966
14967 ;
14968 return 0;
14969 }
14970 _ACEOF
14971 if ac_fn_c_try_compile "$LINENO"; then :
14972 FC_GPERF_SIZE_T=size_t
14973 else
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976
14977 #include <string.h>
14978
14979 const char *in_word_set(register const char *, register unsigned int);
14980 $fc_gperf_test
14981
14982 int
14983 main ()
14984 {
14985
14986 ;
14987 return 0;
14988 }
14989 _ACEOF
14990 if ac_fn_c_try_compile "$LINENO"; then :
14991 FC_GPERF_SIZE_T="unsigned int"
14992 else
14993 as_fn_error $? "Unable to determine the type of the len parameter of the gperf hash/lookup function" "$LINENO" 5
14994
14995 fi
14996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14997 fi
14998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14999
15000 cat >>confdefs.h <<_ACEOF
15001 #define FC_GPERF_SIZE_T $FC_GPERF_SIZE_T
15002 _ACEOF
15003
15004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC_GPERF_SIZE_T" >&5
15005 $as_echo "$FC_GPERF_SIZE_T" >&6; }
15006
15007 #
15008 # Checks for iconv
15009 #
15010 # Check whether --enable-iconv was given.
15011 if test "${enable_iconv+set}" = set; then :
15012 enableval=$enable_iconv;
15013 else
15014 enable_iconv=no
15015 fi
15016
15017
15018 # Check whether --with-libiconv was given.
15019 if test "${with_libiconv+set}" = set; then :
15020 withval=$with_libiconv; if test "x$withval" = "xyes"; then
15021 libiconv_prefix=$prefix
15022 else
15023 libiconv_prefix=$withval
15024 fi
15025 else
15026 libiconv_prefix=auto
15027 fi
15028
15029
15030 # Check whether --with-libiconv-includes was given.
15031 if test "${with_libiconv_includes+set}" = set; then :
15032 withval=$with_libiconv_includes; libiconv_includes=$withval
15033 else
15034 libiconv_includes=auto
15035 fi
15036
15037
15038 # Check whether --with-libiconv-lib was given.
15039 if test "${with_libiconv_lib+set}" = set; then :
15040 withval=$with_libiconv_lib; libiconv_lib=$withval
15041 else
15042 libiconv_lib=auto
15043 fi
15044
15045
15046 # if no libiconv,libiconv-includes,libiconv-lib are specified,
15047 # libc's iconv has a priority.
15048 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
15049 libiconv_cflags="-I${libiconv_includes}"
15050 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
15051 libiconv_cflags="-I${libiconv_prefix}/include"
15052 else
15053 libiconv_cflags=""
15054 fi
15055 libiconv_libs=""
15056 if test "x$libiconv_cflags" != "x"; then
15057 if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
15058 libiconv_libs="-L${libiconv_lib} -liconv"
15059 elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
15060 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
15061 else
15062 libiconv_libs="-liconv"
15063 fi
15064 fi
15065
15066 use_iconv=0
15067 if test "x$enable_iconv" != "xno"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
15069 $as_echo_n "checking for a usable iconv... " >&6; }
15070 if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
15071 iconvsaved_CFLAGS="$CFLAGS"
15072 iconvsaved_LIBS="$LIBS"
15073 CFLAGS="$CFLAGS $libiconv_cflags"
15074 LIBS="$LIBS $libiconv_libs"
15075
15076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15077 /* end confdefs.h. */
15078 #include <iconv.h>
15079 int
15080 main ()
15081 {
15082 iconv_open ("from", "to");
15083 ;
15084 return 0;
15085 }
15086 _ACEOF
15087 if ac_fn_c_try_link "$LINENO"; then :
15088 iconv_type="libiconv"
15089 use_iconv=1
15090 ICONV_CFLAGS="$libiconv_cflags"
15091 ICONV_LIBS="$libiconv_libs"
15092
15093 else
15094 use_iconv=0
15095 fi
15096 rm -f core conftest.err conftest.$ac_objext \
15097 conftest$ac_exeext conftest.$ac_ext
15098
15099 CFLAGS="$iconvsaved_CFLAGS"
15100 LIBS="$iconvsaved_LIBS"
15101 fi
15102 if test "x$use_iconv" = "x0"; then
15103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15104 /* end confdefs.h. */
15105 #include <iconv.h>
15106 int
15107 main ()
15108 {
15109 iconv_open ("from", "to");
15110 ;
15111 return 0;
15112 }
15113 _ACEOF
15114 if ac_fn_c_try_link "$LINENO"; then :
15115 iconv_type="libc"
15116 use_iconv=1
15117 else
15118 iconv_type="not found"
15119 use_iconv=0
15120 fi
15121 rm -f core conftest.err conftest.$ac_objext \
15122 conftest$ac_exeext conftest.$ac_ext
15123 fi
15124
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
15126 $as_echo "$iconv_type" >&6; }
15127
15128
15129 fi
15130
15131 cat >>confdefs.h <<_ACEOF
15132 #define USE_ICONV $use_iconv
15133 _ACEOF
15134
15135 #
15136 # Checks for FreeType
15137 #
15138
15139 pkg_failed=no
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
15141 $as_echo_n "checking for FREETYPE... " >&6; }
15142
15143 if test -n "$FREETYPE_CFLAGS"; then
15144 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
15145 elif test -n "$PKG_CONFIG"; then
15146 if test -n "$PKG_CONFIG" && \
15147 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15148 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15149 ac_status=$?
15150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15151 test $ac_status = 0; }; then
15152 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
15153 test "x$?" != "x0" && pkg_failed=yes
15154 else
15155 pkg_failed=yes
15156 fi
15157 else
15158 pkg_failed=untried
15159 fi
15160 if test -n "$FREETYPE_LIBS"; then
15161 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
15162 elif test -n "$PKG_CONFIG"; then
15163 if test -n "$PKG_CONFIG" && \
15164 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15165 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15166 ac_status=$?
15167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15168 test $ac_status = 0; }; then
15169 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
15170 test "x$?" != "x0" && pkg_failed=yes
15171 else
15172 pkg_failed=yes
15173 fi
15174 else
15175 pkg_failed=untried
15176 fi
15177
15178
15179
15180 if test $pkg_failed = yes; then
15181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15182 $as_echo "no" >&6; }
15183
15184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15185 _pkg_short_errors_supported=yes
15186 else
15187 _pkg_short_errors_supported=no
15188 fi
15189 if test $_pkg_short_errors_supported = yes; then
15190 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
15191 else
15192 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
15193 fi
15194 # Put the nasty error message in config.log where it belongs
15195 echo "$FREETYPE_PKG_ERRORS" >&5
15196
15197 as_fn_error $? "Package requirements (freetype2) were not met:
15198
15199 $FREETYPE_PKG_ERRORS
15200
15201 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15202 installed software in a non-standard prefix.
15203
15204 Alternatively, you may set the environment variables FREETYPE_CFLAGS
15205 and FREETYPE_LIBS to avoid the need to call pkg-config.
15206 See the pkg-config man page for more details." "$LINENO" 5
15207 elif test $pkg_failed = untried; then
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15209 $as_echo "no" >&6; }
15210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15211 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15212 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15213 is in your PATH or set the PKG_CONFIG environment variable to the full
15214 path to pkg-config.
15215
15216 Alternatively, you may set the environment variables FREETYPE_CFLAGS
15217 and FREETYPE_LIBS to avoid the need to call pkg-config.
15218 See the pkg-config man page for more details.
15219
15220 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15221 See \`config.log' for more details" "$LINENO" 5; }
15222 else
15223 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
15224 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15226 $as_echo "yes" >&6; }
15227
15228 fi
15229 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
15230
15231
15232
15233
15234 fontconfig_save_libs="$LIBS"
15235 fontconfig_save_cflags="$CFLAGS"
15236 LIBS="$LIBS $FREETYPE_LIBS"
15237 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
15238
15239 if test -n "$PKG_CONFIG" && \
15240 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 = 19.0.13\""; } >&5
15241 ($PKG_CONFIG --exists --print-errors "freetype2 = 19.0.13") 2>&5
15242 ac_status=$?
15243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15244 test $ac_status = 0; }; then
15245 have_freetype_2_7_1=yes
15246 else
15247 have_freetype_2_7_1=no
15248 fi
15249 if test -n "$PKG_CONFIG" && \
15250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2 >= 20.0.14\""; } >&5
15251 ($PKG_CONFIG --exists --print-errors "freetype2 >= 20.0.14") 2>&5
15252 ac_status=$?
15253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15254 test $ac_status = 0; }; then
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257
15258 #include <ft2build.h>
15259 #include FT_CONFIG_OPTIONS_H
15260 #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
15261 # error "No pcf long family names support"
15262 #endif
15263
15264 _ACEOF
15265 if ac_fn_c_try_compile "$LINENO"; then :
15266 have_pcf_long_family_names=yes
15267 else
15268 have_pcf_long_family_names=no
15269 fi
15270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15271 else
15272 have_pcf_long_family_names=no
15273 fi
15274 if test "x$have_freetype_2_7_1" = xyes -o "x$have_pcf_long_family_names" = xyes; then
15275 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE=
15276 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE='#'
15277 else
15278 FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE='#'
15279 FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE=
15280 fi
15281
15282
15283 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
15284 do :
15285 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15286 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15287 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15288 cat >>confdefs.h <<_ACEOF
15289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15290 _ACEOF
15291
15292 fi
15293 done
15294
15295 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
15296 #include FT_FREETYPE_H
15297 "
15298 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
15299 HAVE_FT_BITMAP_SIZE_Y_PPEM=1
15300 else
15301 HAVE_FT_BITMAP_SIZE_Y_PPEM=0
15302 fi
15303
15304
15305 cat >>confdefs.h <<_ACEOF
15306 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
15307 _ACEOF
15308
15309 ac_fn_c_check_member "$LINENO" "TT_OS2" "usLowerOpticalPointSize" "ac_cv_member_TT_OS2_usLowerOpticalPointSize" "
15310 #include <ft2build.h>
15311 #include FT_FREETYPE_H
15312 #include FT_TRUETYPE_TABLES_H
15313 "
15314 if test "x$ac_cv_member_TT_OS2_usLowerOpticalPointSize" = xyes; then :
15315
15316 cat >>confdefs.h <<_ACEOF
15317 #define HAVE_TT_OS2_USLOWEROPTICALPOINTSIZE 1
15318 _ACEOF
15319
15320
15321 fi
15322 ac_fn_c_check_member "$LINENO" "TT_OS2" "usUpperOpticalPointSize" "ac_cv_member_TT_OS2_usUpperOpticalPointSize" "
15323 #include <ft2build.h>
15324 #include FT_FREETYPE_H
15325 #include FT_TRUETYPE_TABLES_H
15326 "
15327 if test "x$ac_cv_member_TT_OS2_usUpperOpticalPointSize" = xyes; then :
15328
15329 cat >>confdefs.h <<_ACEOF
15330 #define HAVE_TT_OS2_USUPPEROPTICALPOINTSIZE 1
15331 _ACEOF
15332
15333
15334 fi
15335
15336
15337 CFLAGS="$fontconfig_save_cflags"
15338 LIBS="$fontconfig_save_libs"
15339
15340 #
15341 # Check expat configuration
15342 #
15343
15344 # Check whether --with-expat was given.
15345 if test "${with_expat+set}" = set; then :
15346 withval=$with_expat; expat_prefix=$withval
15347 else
15348 expat_prefix=auto
15349 fi
15350
15351
15352 # Check whether --with-expat-includes was given.
15353 if test "${with_expat_includes+set}" = set; then :
15354 withval=$with_expat_includes; expat_includes=$withval
15355 else
15356 expat_includes=auto
15357 fi
15358
15359
15360 # Check whether --with-expat-lib was given.
15361 if test "${with_expat_lib+set}" = set; then :
15362 withval=$with_expat_lib; expat_lib=$withval
15363 else
15364 expat_lib=auto
15365 fi
15366
15367
15368 if test "$enable_libxml2" != "yes"; then
15369 use_pkgconfig_for_expat=yes
15370 if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
15371
15372 pkg_failed=no
15373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
15374 $as_echo_n "checking for EXPAT... " >&6; }
15375
15376 if test -n "$EXPAT_CFLAGS"; then
15377 pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
15378 elif test -n "$PKG_CONFIG"; then
15379 if test -n "$PKG_CONFIG" && \
15380 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15381 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15382 ac_status=$?
15383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15384 test $ac_status = 0; }; then
15385 pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
15386 test "x$?" != "x0" && pkg_failed=yes
15387 else
15388 pkg_failed=yes
15389 fi
15390 else
15391 pkg_failed=untried
15392 fi
15393 if test -n "$EXPAT_LIBS"; then
15394 pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
15395 elif test -n "$PKG_CONFIG"; then
15396 if test -n "$PKG_CONFIG" && \
15397 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15398 ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15399 ac_status=$?
15400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15401 test $ac_status = 0; }; then
15402 pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
15403 test "x$?" != "x0" && pkg_failed=yes
15404 else
15405 pkg_failed=yes
15406 fi
15407 else
15408 pkg_failed=untried
15409 fi
15410
15411
15412
15413 if test $pkg_failed = yes; then
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15415 $as_echo "no" >&6; }
15416
15417 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15418 _pkg_short_errors_supported=yes
15419 else
15420 _pkg_short_errors_supported=no
15421 fi
15422 if test $_pkg_short_errors_supported = yes; then
15423 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
15424 else
15425 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
15426 fi
15427 # Put the nasty error message in config.log where it belongs
15428 echo "$EXPAT_PKG_ERRORS" >&5
15429
15430 use_pkgconfig_for_expat=no
15431 elif test $pkg_failed = untried; then
15432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15433 $as_echo "no" >&6; }
15434 use_pkgconfig_for_expat=no
15435 else
15436 EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
15437 EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15439 $as_echo "yes" >&6; }
15440
15441 fi
15442 else
15443 use_pkgconfig_for_expat=no
15444 fi
15445 if test "x$use_pkgconfig_for_expat" = "xno"; then
15446 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
15447 EXPAT_CFLAGS="-I${expat_includes}"
15448 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
15449 EXPAT_CFLAGS="-I${expat_prefix}/include"
15450 else
15451 EXPAT_CFLAGS=""
15452 fi
15453 if test "$expat_lib" != "auto"; then
15454 EXPAT_LIBS="-L${expat_lib} -lexpat"
15455 elif test "$expat_prefix" != "auto"; then
15456 EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
15457 else
15458 EXPAT_LIBS="-lexpat"
15459 fi
15460 else
15461 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
15462 fi
15463
15464 expatsaved_CPPFLAGS="$CPPFLAGS"
15465 expatsaved_LIBS="$LIBS"
15466 CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
15467 LIBS="$LIBS $EXPAT_LIBS"
15468
15469 ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
15470 if test "x$ac_cv_header_expat_h" = xyes; then :
15471
15472 fi
15473
15474
15475 if test "$ac_cv_header_expat_h" = "no"; then
15476 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
15477 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
15478
15479 fi
15480
15481
15482 if test "$ac_cv_header_xmlparse_h" = "yes"; then
15483 HAVE_XMLPARSE_H=1
15484
15485
15486 cat >>confdefs.h <<_ACEOF
15487 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
15488 _ACEOF
15489
15490 else
15491 as_fn_error $? "
15492 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15493 fi
15494 fi
15495 for ac_func in XML_SetDoctypeDeclHandler
15496 do :
15497 ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
15498 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
15499 cat >>confdefs.h <<_ACEOF
15500 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
15501 _ACEOF
15502
15503 fi
15504 done
15505
15506 if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
15507 as_fn_error $? "
15508 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15509 fi
15510 CPPFLAGS="$expatsaved_CPPFLAGS"
15511 LIBS="$expatsaved_LIBS"
15512
15513
15514
15515 fi
15516
15517 #
15518 # Check libxml2 configuration
15519 #
15520 # Check whether --enable-libxml2 was given.
15521 if test "${enable_libxml2+set}" = set; then :
15522 enableval=$enable_libxml2;
15523 fi
15524
15525
15526 if test "$enable_libxml2" = "yes"; then
15527
15528 pkg_failed=no
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
15530 $as_echo_n "checking for LIBXML2... " >&6; }
15531
15532 if test -n "$LIBXML2_CFLAGS"; then
15533 pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
15534 elif test -n "$PKG_CONFIG"; then
15535 if test -n "$PKG_CONFIG" && \
15536 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15537 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15538 ac_status=$?
15539 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15540 test $ac_status = 0; }; then
15541 pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
15542 test "x$?" != "x0" && pkg_failed=yes
15543 else
15544 pkg_failed=yes
15545 fi
15546 else
15547 pkg_failed=untried
15548 fi
15549 if test -n "$LIBXML2_LIBS"; then
15550 pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
15551 elif test -n "$PKG_CONFIG"; then
15552 if test -n "$PKG_CONFIG" && \
15553 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15554 ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15555 ac_status=$?
15556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15557 test $ac_status = 0; }; then
15558 pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
15559 test "x$?" != "x0" && pkg_failed=yes
15560 else
15561 pkg_failed=yes
15562 fi
15563 else
15564 pkg_failed=untried
15565 fi
15566
15567
15568
15569 if test $pkg_failed = yes; then
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15571 $as_echo "no" >&6; }
15572
15573 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15574 _pkg_short_errors_supported=yes
15575 else
15576 _pkg_short_errors_supported=no
15577 fi
15578 if test $_pkg_short_errors_supported = yes; then
15579 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15580 else
15581 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15582 fi
15583 # Put the nasty error message in config.log where it belongs
15584 echo "$LIBXML2_PKG_ERRORS" >&5
15585
15586 as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
15587
15588 $LIBXML2_PKG_ERRORS
15589
15590 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15591 installed software in a non-standard prefix.
15592
15593 Alternatively, you may set the environment variables LIBXML2_CFLAGS
15594 and LIBXML2_LIBS to avoid the need to call pkg-config.
15595 See the pkg-config man page for more details." "$LINENO" 5
15596 elif test $pkg_failed = untried; then
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15598 $as_echo "no" >&6; }
15599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15601 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
15602 is in your PATH or set the PKG_CONFIG environment variable to the full
15603 path to pkg-config.
15604
15605 Alternatively, you may set the environment variables LIBXML2_CFLAGS
15606 and LIBXML2_LIBS to avoid the need to call pkg-config.
15607 See the pkg-config man page for more details.
15608
15609 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15610 See \`config.log' for more details" "$LINENO" 5; }
15611 else
15612 LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
15613 LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15615 $as_echo "yes" >&6; }
15616
15617 fi
15618 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0"
15619
15620 cat >>confdefs.h <<_ACEOF
15621 #define ENABLE_LIBXML2 1
15622 _ACEOF
15623
15624
15625
15626
15627
15628 fc_saved_CFLAGS="$CFLAGS"
15629 CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
15631 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
15632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15633 /* end confdefs.h. */
15634
15635 #include <libxml/xmlversion.h>
15636 #if !defined(LIBXML_SAX1_ENABLED)
15637 # include "error: No SAX1 support in libxml2"
15638 #endif
15639
15640 _ACEOF
15641 if ac_fn_c_try_compile "$LINENO"; then :
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15643 $as_echo "found" >&6; }
15644 else
15645 as_fn_error $? "
15646 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
15647 fi
15648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15649 CFLAGS="$fc_saved_CFLAGS"
15650 fi
15651
15652 #
15653 # Set default hinting
15654 #
15655
15656
15657 # Check whether --with-default-hinting was given.
15658 if test "${with_default_hinting+set}" = set; then :
15659 withval=$with_default_hinting; preferred_hinting="$withval"
15660 else
15661 preferred_hinting=slight
15662 fi
15663
15664
15665 case "$preferred_hinting" in
15666 none|slight|medium|full)
15667 PREFERRED_HINTING="$preferred_hinting"
15668
15669 ;;
15670 *)
15671 as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
15672 ;;
15673 esac
15674
15675 #
15676 # Set default font directory
15677 #
15678
15679
15680 # Check whether --with-default-fonts was given.
15681 if test "${with_default_fonts+set}" = set; then :
15682 withval=$with_default_fonts; default_fonts="$withval"
15683 else
15684 default_fonts=yes
15685 fi
15686
15687
15688 case "$default_fonts" in
15689 yes)
15690 if test "$os_win32" = "yes"; then
15691 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
15692
15693 cat >>confdefs.h <<_ACEOF
15694 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
15695 _ACEOF
15696
15697 else
15698 FC_DEFAULT_FONTS="/usr/share/fonts"
15699
15700 cat >>confdefs.h <<_ACEOF
15701 #define FC_DEFAULT_FONTS "/usr/share/fonts"
15702 _ACEOF
15703
15704 fi
15705 ;;
15706 *)
15707 FC_DEFAULT_FONTS="$default_fonts"
15708
15709 cat >>confdefs.h <<_ACEOF
15710 #define FC_DEFAULT_FONTS "$default_fonts"
15711 _ACEOF
15712
15713 ;;
15714 esac
15715
15716
15717
15718 #
15719 # Add more fonts if available. By default, add only the directories
15720 # with outline fonts; those with bitmaps can be added as desired in
15721 # local.conf or ~/.fonts.conf
15722 #
15723
15724 # Check whether --with-add-fonts was given.
15725 if test "${with_add_fonts+set}" = set; then :
15726 withval=$with_add_fonts; add_fonts="$withval"
15727 else
15728 add_fonts=yes
15729 fi
15730
15731
15732 case "$add_fonts" in
15733 yes)
15734 FC_ADD_FONTS=""
15735 for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
15736 case x"$FC_ADD_FONTS" in
15737 x)
15738 sub="$dir/fonts"
15739 if test -d "$sub"; then
15740 case x$FC_ADD_FONTS in
15741 x)
15742 FC_ADD_FONTS="$sub"
15743 ;;
15744 *)
15745 FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
15746 ;;
15747 esac
15748 fi
15749 ;;
15750 esac
15751 done
15752
15753 cat >>confdefs.h <<_ACEOF
15754 #define FC_ADD_FONTS "$add_fonts"
15755 _ACEOF
15756
15757 ;;
15758 no)
15759 FC_ADD_FONTS=""
15760 ;;
15761 *)
15762 FC_ADD_FONTS="$add_fonts"
15763
15764 cat >>confdefs.h <<_ACEOF
15765 #define FC_ADD_FONTS "$add_fonts"
15766 _ACEOF
15767
15768 ;;
15769 esac
15770
15771
15772
15773 FC_FONTPATH=""
15774
15775 case "$FC_ADD_FONTS" in
15776 "")
15777 ;;
15778 *)
15779 FC_FONTPATH=`echo $FC_ADD_FONTS |
15780 sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
15781 ;;
15782 esac
15783
15784
15785
15786 #
15787 # Set default cache directory path
15788 #
15789
15790 # Check whether --with-cache-dir was given.
15791 if test "${with_cache_dir+set}" = set; then :
15792 withval=$with_cache_dir; fc_cachedir="$withval"
15793 else
15794 fc_cachedir=yes
15795 fi
15796
15797
15798 case $fc_cachedir in
15799 no|yes)
15800 if test "$os_win32" = "yes"; then
15801 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
15802 else
15803 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
15804 fi
15805 ;;
15806 *)
15807 ;;
15808 esac
15809
15810 FC_CACHEDIR=${fc_cachedir}
15811
15812
15813 FC_FONTDATE=`LC_ALL=C date`
15814
15815
15816
15817 #
15818 # Set configuration paths
15819 #
15820
15821
15822 # Check whether --with-templatedir was given.
15823 if test "${with_templatedir+set}" = set; then :
15824 withval=$with_templatedir; templatedir="$withval"
15825 else
15826 templatedir=yes
15827 fi
15828
15829
15830 # Check whether --with-baseconfigdir was given.
15831 if test "${with_baseconfigdir+set}" = set; then :
15832 withval=$with_baseconfigdir; baseconfigdir="$withval"
15833 else
15834 baseconfigdir=yes
15835 fi
15836
15837
15838 # Check whether --with-configdir was given.
15839 if test "${with_configdir+set}" = set; then :
15840 withval=$with_configdir; configdir="$withval"
15841 else
15842 configdir=yes
15843 fi
15844
15845
15846 # Check whether --with-xmldir was given.
15847 if test "${with_xmldir+set}" = set; then :
15848 withval=$with_xmldir; xmldir="$withval"
15849 else
15850 xmldir=yes
15851 fi
15852
15853
15854 case "$templatedir" in
15855 no|yes)
15856 templatedir='${datadir}'/fontconfig/conf.avail
15857 ;;
15858 *)
15859 ;;
15860 esac
15861 case "$baseconfigdir" in
15862 no|yes)
15863 baseconfigdir='${sysconfdir}'/fonts
15864 ;;
15865 *)
15866 ;;
15867 esac
15868 case "$configdir" in
15869 no|yes)
15870 configdir='${BASECONFIGDIR}'/conf.d
15871 ;;
15872 *)
15873 ;;
15874 esac
15875 case "$xmldir" in
15876 no|yes)
15877 xmldir='${datadir}'/xml/fontconfig
15878 ;;
15879 *)
15880 ;;
15881 esac
15882
15883 TEMPLATEDIR=${templatedir}
15884 BASECONFIGDIR=${baseconfigdir}
15885 CONFIGDIR=${configdir}
15886 XMLDIR=${xmldir}
15887
15888
15889
15890
15891
15892
15893
15894 #
15895 # Thread-safety primitives
15896 #
15897
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
15899 $as_echo_n "checking for Intel atomic primitives... " >&6; }
15900 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
15901 $as_echo_n "(cached) " >&6
15902 else
15903
15904 fc_cv_have_intel_atomic_primitives=false
15905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15906 /* end confdefs.h. */
15907
15908 void memory_barrier (void) { __sync_synchronize (); }
15909 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
15910 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
15911 void mutex_unlock (int *m) { __sync_lock_release (m); }
15912
15913 int
15914 main ()
15915 {
15916
15917 ;
15918 return 0;
15919 }
15920 _ACEOF
15921 if ac_fn_c_try_link "$LINENO"; then :
15922 fc_cv_have_intel_atomic_primitives=true
15923
15924 fi
15925 rm -f core conftest.err conftest.$ac_objext \
15926 conftest$ac_exeext conftest.$ac_ext
15927
15928 fi
15929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
15930 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
15931 if $fc_cv_have_intel_atomic_primitives; then
15932
15933 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
15934
15935 fi
15936
15937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
15938 $as_echo_n "checking for Solaris atomic operations... " >&6; }
15939 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
15940 $as_echo_n "(cached) " >&6
15941 else
15942
15943 fc_cv_have_solaris_atomic_ops=false
15944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15945 /* end confdefs.h. */
15946
15947 #include <atomic.h>
15948 /* This requires Solaris Studio 12.2 or newer: */
15949 #include <mbarrier.h>
15950 void memory_barrier (void) { __machine_rw_barrier (); }
15951 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
15952 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
15953
15954 int
15955 main ()
15956 {
15957
15958 ;
15959 return 0;
15960 }
15961 _ACEOF
15962 if ac_fn_c_try_link "$LINENO"; then :
15963 fc_cv_have_solaris_atomic_ops=true
15964
15965 fi
15966 rm -f core conftest.err conftest.$ac_objext \
15967 conftest$ac_exeext conftest.$ac_ext
15968
15969 fi
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
15971 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
15972 if $fc_cv_have_solaris_atomic_ops; then
15973
15974 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
15975
15976 fi
15977
15978 if test "$os_win32" = no && ! $have_pthread; then
15979 for ac_header in sched.h
15980 do :
15981 ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15982 if test "x$ac_cv_header_sched_h" = xyes; then :
15983 cat >>confdefs.h <<_ACEOF
15984 #define HAVE_SCHED_H 1
15985 _ACEOF
15986
15987 fi
15988
15989 done
15990
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15992 $as_echo_n "checking for library containing sched_yield... " >&6; }
15993 if ${ac_cv_search_sched_yield+:} false; then :
15994 $as_echo_n "(cached) " >&6
15995 else
15996 ac_func_search_save_LIBS=$LIBS
15997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15998 /* end confdefs.h. */
15999
16000 /* Override any GCC internal prototype to avoid an error.
16001 Use char because int might match the return type of a GCC
16002 builtin and then its argument prototype would still apply. */
16003 #ifdef __cplusplus
16004 extern "C"
16005 #endif
16006 char sched_yield ();
16007 int
16008 main ()
16009 {
16010 return sched_yield ();
16011 ;
16012 return 0;
16013 }
16014 _ACEOF
16015 for ac_lib in '' rt; do
16016 if test -z "$ac_lib"; then
16017 ac_res="none required"
16018 else
16019 ac_res=-l$ac_lib
16020 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
16021 fi
16022 if ac_fn_c_try_link "$LINENO"; then :
16023 ac_cv_search_sched_yield=$ac_res
16024 fi
16025 rm -f core conftest.err conftest.$ac_objext \
16026 conftest$ac_exeext
16027 if ${ac_cv_search_sched_yield+:} false; then :
16028 break
16029 fi
16030 done
16031 if ${ac_cv_search_sched_yield+:} false; then :
16032
16033 else
16034 ac_cv_search_sched_yield=no
16035 fi
16036 rm conftest.$ac_ext
16037 LIBS=$ac_func_search_save_LIBS
16038 fi
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
16040 $as_echo "$ac_cv_search_sched_yield" >&6; }
16041 ac_res=$ac_cv_search_sched_yield
16042 if test "$ac_res" != no; then :
16043 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
16044
16045 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
16046
16047 fi
16048
16049 fi
16050
16051 have_pthread=false
16052 if test "$os_win32" = no; then
16053
16054
16055 ac_ext=c
16056 ac_cpp='$CPP $CPPFLAGS'
16057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16060
16061 ax_pthread_ok=no
16062
16063 # We used to check for pthread.h first, but this fails if pthread.h
16064 # requires special compiler flags (e.g. on True64 or Sequent).
16065 # It gets checked for in the link test anyway.
16066
16067 # First of all, check if the user has set any of the PTHREAD_LIBS,
16068 # etcetera environment variables, and if threads linking works using
16069 # them:
16070 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
16071 save_CFLAGS="$CFLAGS"
16072 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16073 save_LIBS="$LIBS"
16074 LIBS="$PTHREAD_LIBS $LIBS"
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
16076 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
16077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16078 /* end confdefs.h. */
16079
16080 /* Override any GCC internal prototype to avoid an error.
16081 Use char because int might match the return type of a GCC
16082 builtin and then its argument prototype would still apply. */
16083 #ifdef __cplusplus
16084 extern "C"
16085 #endif
16086 char pthread_join ();
16087 int
16088 main ()
16089 {
16090 return pthread_join ();
16091 ;
16092 return 0;
16093 }
16094 _ACEOF
16095 if ac_fn_c_try_link "$LINENO"; then :
16096 ax_pthread_ok=yes
16097 fi
16098 rm -f core conftest.err conftest.$ac_objext \
16099 conftest$ac_exeext conftest.$ac_ext
16100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16101 $as_echo "$ax_pthread_ok" >&6; }
16102 if test x"$ax_pthread_ok" = xno; then
16103 PTHREAD_LIBS=""
16104 PTHREAD_CFLAGS=""
16105 fi
16106 LIBS="$save_LIBS"
16107 CFLAGS="$save_CFLAGS"
16108 fi
16109
16110 # We must check for the threads library under a number of different
16111 # names; the ordering is very important because some systems
16112 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16113 # libraries is broken (non-POSIX).
16114
16115 # Create a list of thread flags to try. Items starting with a "-" are
16116 # C compiler flags, and other items are library names, except for "none"
16117 # which indicates that we try without any flags at all, and "pthread-config"
16118 # which is a program returning the flags for the Pth emulation library.
16119
16120 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16121
16122 # The ordering *is* (sometimes) important. Some notes on the
16123 # individual items follow:
16124
16125 # pthreads: AIX (must check this before -lpthread)
16126 # none: in case threads are in libc; should be tried before -Kthread and
16127 # other compiler flags to prevent continual compiler warnings
16128 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16129 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16130 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16131 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16132 # -pthreads: Solaris/gcc
16133 # -mthreads: Mingw32/gcc, Lynx/gcc
16134 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16135 # doesn't hurt to check since this sometimes defines pthreads too;
16136 # also defines -D_REENTRANT)
16137 # ... -mt is also the pthreads flag for HP/aCC
16138 # pthread: Linux, etcetera
16139 # --thread-safe: KAI C++
16140 # pthread-config: use pthread-config program (for GNU Pth library)
16141
16142 case ${host_os} in
16143 solaris*)
16144
16145 # On Solaris (at least, for some versions), libc contains stubbed
16146 # (non-functional) versions of the pthreads routines, so link-based
16147 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
16148 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
16149 # a function called by this macro, so we could check for that, but
16150 # who knows whether they'll stub that too in a future libc.) So,
16151 # we'll just look for -pthreads and -lpthread first:
16152
16153 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16154 ;;
16155
16156 darwin*)
16157 ax_pthread_flags="-pthread $ax_pthread_flags"
16158 ;;
16159 netbsd*)
16160 # use libc stubs, don't link against libpthread, to allow
16161 # dynamic loading
16162 ax_pthread_flags=""
16163 ;;
16164 esac
16165
16166 # Clang doesn't consider unrecognized options an error unless we specify
16167 # -Werror. We throw in some extra Clang-specific options to ensure that
16168 # this doesn't happen for GCC, which also accepts -Werror.
16169
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16171 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16172 save_CFLAGS="$CFLAGS"
16173 ax_pthread_extra_flags="-Werror"
16174 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16176 /* end confdefs.h. */
16177 int foo(void);
16178 int
16179 main ()
16180 {
16181 foo()
16182 ;
16183 return 0;
16184 }
16185 _ACEOF
16186 if ac_fn_c_try_compile "$LINENO"; then :
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16188 $as_echo "yes" >&6; }
16189 else
16190 ax_pthread_extra_flags=
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16192 $as_echo "no" >&6; }
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16195 CFLAGS="$save_CFLAGS"
16196
16197 if test x"$ax_pthread_ok" = xno; then
16198 for flag in $ax_pthread_flags; do
16199
16200 case $flag in
16201 none)
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16203 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16204 ;;
16205
16206 -*)
16207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16208 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16209 PTHREAD_CFLAGS="$flag"
16210 ;;
16211
16212 pthread-config)
16213 # Extract the first word of "pthread-config", so it can be a program name with args.
16214 set dummy pthread-config; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16216 $as_echo_n "checking for $ac_word... " >&6; }
16217 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16218 $as_echo_n "(cached) " >&6
16219 else
16220 if test -n "$ax_pthread_config"; then
16221 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16222 else
16223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16224 for as_dir in $PATH
16225 do
16226 IFS=$as_save_IFS
16227 test -z "$as_dir" && as_dir=.
16228 for ac_exec_ext in '' $ac_executable_extensions; do
16229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16230 ac_cv_prog_ax_pthread_config="yes"
16231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16232 break 2
16233 fi
16234 done
16235 done
16236 IFS=$as_save_IFS
16237
16238 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16239 fi
16240 fi
16241 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16242 if test -n "$ax_pthread_config"; then
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16244 $as_echo "$ax_pthread_config" >&6; }
16245 else
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16248 fi
16249
16250
16251 if test x"$ax_pthread_config" = xno; then continue; fi
16252 PTHREAD_CFLAGS="`pthread-config --cflags`"
16253 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16254 ;;
16255
16256 *)
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16258 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16259 PTHREAD_LIBS="-l$flag"
16260 ;;
16261 esac
16262
16263 save_LIBS="$LIBS"
16264 save_CFLAGS="$CFLAGS"
16265 LIBS="$PTHREAD_LIBS $LIBS"
16266 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16267
16268 # Check for various functions. We must include pthread.h,
16269 # since some functions may be macros. (On the Sequent, we
16270 # need a special flag -Kthread to make this header compile.)
16271 # We check for pthread_join because it is in -lpthread on IRIX
16272 # while pthread_create is in libc. We check for pthread_attr_init
16273 # due to DEC craziness with -lpthreads. We check for
16274 # pthread_cleanup_push because it is one of the few pthread
16275 # functions on Solaris that doesn't have a non-functional libc stub.
16276 # We try pthread_create on general principles.
16277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h. */
16279 #include <pthread.h>
16280 static void routine(void *a) { a = 0; }
16281 static void *start_routine(void *a) { return a; }
16282 int
16283 main ()
16284 {
16285 pthread_t th; pthread_attr_t attr;
16286 pthread_create(&th, 0, start_routine, 0);
16287 pthread_join(th, 0);
16288 pthread_attr_init(&attr);
16289 pthread_cleanup_push(routine, 0);
16290 pthread_cleanup_pop(0) /* ; */
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_c_try_link "$LINENO"; then :
16296 ax_pthread_ok=yes
16297 fi
16298 rm -f core conftest.err conftest.$ac_objext \
16299 conftest$ac_exeext conftest.$ac_ext
16300
16301 LIBS="$save_LIBS"
16302 CFLAGS="$save_CFLAGS"
16303
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16305 $as_echo "$ax_pthread_ok" >&6; }
16306 if test "x$ax_pthread_ok" = xyes; then
16307 break;
16308 fi
16309
16310 PTHREAD_LIBS=""
16311 PTHREAD_CFLAGS=""
16312 done
16313 fi
16314
16315 # Various other checks:
16316 if test "x$ax_pthread_ok" = xyes; then
16317 save_LIBS="$LIBS"
16318 LIBS="$PTHREAD_LIBS $LIBS"
16319 save_CFLAGS="$CFLAGS"
16320 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16321
16322 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16324 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16325 attr_name=unknown
16326 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16328 /* end confdefs.h. */
16329 #include <pthread.h>
16330 int
16331 main ()
16332 {
16333 int attr = $attr; return attr /* ; */
16334 ;
16335 return 0;
16336 }
16337 _ACEOF
16338 if ac_fn_c_try_link "$LINENO"; then :
16339 attr_name=$attr; break
16340 fi
16341 rm -f core conftest.err conftest.$ac_objext \
16342 conftest$ac_exeext conftest.$ac_ext
16343 done
16344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16345 $as_echo "$attr_name" >&6; }
16346 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16347
16348 cat >>confdefs.h <<_ACEOF
16349 #define PTHREAD_CREATE_JOINABLE $attr_name
16350 _ACEOF
16351
16352 fi
16353
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16355 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16356 flag=no
16357 case ${host_os} in
16358 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16359 osf* | hpux*) flag="-D_REENTRANT";;
16360 solaris*)
16361 if test "$GCC" = "yes"; then
16362 flag="-D_REENTRANT"
16363 else
16364 # TODO: What about Clang on Solaris?
16365 flag="-mt -D_REENTRANT"
16366 fi
16367 ;;
16368 esac
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16370 $as_echo "$flag" >&6; }
16371 if test "x$flag" != xno; then
16372 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16373 fi
16374
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16376 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16377 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16378 $as_echo_n "(cached) " >&6
16379 else
16380
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16383 #include <pthread.h>
16384 int
16385 main ()
16386 {
16387 int i = PTHREAD_PRIO_INHERIT;
16388 ;
16389 return 0;
16390 }
16391 _ACEOF
16392 if ac_fn_c_try_link "$LINENO"; then :
16393 ax_cv_PTHREAD_PRIO_INHERIT=yes
16394 else
16395 ax_cv_PTHREAD_PRIO_INHERIT=no
16396 fi
16397 rm -f core conftest.err conftest.$ac_objext \
16398 conftest$ac_exeext conftest.$ac_ext
16399
16400 fi
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16402 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16403 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16404
16405 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16406
16407 fi
16408
16409 LIBS="$save_LIBS"
16410 CFLAGS="$save_CFLAGS"
16411
16412 # More AIX lossage: compile with *_r variant
16413 if test "x$GCC" != xyes; then
16414 case $host_os in
16415 aix*)
16416 case "x/$CC" in #(
16417 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16418 #handle absolute path differently from PATH based program lookup
16419 case "x$CC" in #(
16420 x/*) :
16421 if as_fn_executable_p ${CC}_r; then :
16422 PTHREAD_CC="${CC}_r"
16423 fi ;; #(
16424 *) :
16425 for ac_prog in ${CC}_r
16426 do
16427 # Extract the first word of "$ac_prog", so it can be a program name with args.
16428 set dummy $ac_prog; ac_word=$2
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16430 $as_echo_n "checking for $ac_word... " >&6; }
16431 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16432 $as_echo_n "(cached) " >&6
16433 else
16434 if test -n "$PTHREAD_CC"; then
16435 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16436 else
16437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16438 for as_dir in $PATH
16439 do
16440 IFS=$as_save_IFS
16441 test -z "$as_dir" && as_dir=.
16442 for ac_exec_ext in '' $ac_executable_extensions; do
16443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16444 ac_cv_prog_PTHREAD_CC="$ac_prog"
16445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16446 break 2
16447 fi
16448 done
16449 done
16450 IFS=$as_save_IFS
16451
16452 fi
16453 fi
16454 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16455 if test -n "$PTHREAD_CC"; then
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16457 $as_echo "$PTHREAD_CC" >&6; }
16458 else
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16461 fi
16462
16463
16464 test -n "$PTHREAD_CC" && break
16465 done
16466 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16467 ;;
16468 esac ;; #(
16469 *) :
16470 ;;
16471 esac
16472 ;;
16473 esac
16474 fi
16475 fi
16476
16477 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16478
16479
16480
16481
16482
16483 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16484 if test x"$ax_pthread_ok" = xyes; then
16485 have_pthread=true
16486 :
16487 else
16488 ax_pthread_ok=no
16489
16490 fi
16491 ac_ext=c
16492 ac_cpp='$CPP $CPPFLAGS'
16493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16496
16497
16498 fi
16499 if $have_pthread; then
16500 LIBS="$PTHREAD_LIBS $LIBS"
16501 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16502 CC="$PTHREAD_CC"
16503
16504 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16505
16506 fi
16507 if $have_pthread; then
16508 HAVE_PTHREAD_TRUE=
16509 HAVE_PTHREAD_FALSE='#'
16510 else
16511 HAVE_PTHREAD_TRUE='#'
16512 HAVE_PTHREAD_FALSE=
16513 fi
16514
16515
16516
16517
16518 #
16519 # Let people not build/install docs if they don't have docbook
16520 #
16521
16522 # Extract the first word of "docbook2html", so it can be a program name with args.
16523 set dummy docbook2html; ac_word=$2
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16525 $as_echo_n "checking for $ac_word... " >&6; }
16526 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
16527 $as_echo_n "(cached) " >&6
16528 else
16529 if test -n "$HASDOCBOOK"; then
16530 ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
16531 else
16532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16533 for as_dir in $PATH
16534 do
16535 IFS=$as_save_IFS
16536 test -z "$as_dir" && as_dir=.
16537 for ac_exec_ext in '' $ac_executable_extensions; do
16538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16539 ac_cv_prog_HASDOCBOOK="yes"
16540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16541 break 2
16542 fi
16543 done
16544 done
16545 IFS=$as_save_IFS
16546
16547 test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
16548 fi
16549 fi
16550 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
16551 if test -n "$HASDOCBOOK"; then
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
16553 $as_echo "$HASDOCBOOK" >&6; }
16554 else
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16556 $as_echo "no" >&6; }
16557 fi
16558
16559
16560
16561 if test "x$HASDOCBOOK" = xyes; then
16562 USEDOCBOOK_TRUE=
16563 USEDOCBOOK_FALSE='#'
16564 else
16565 USEDOCBOOK_TRUE='#'
16566 USEDOCBOOK_FALSE=
16567 fi
16568
16569
16570 default_docs="yes"
16571 #
16572 # Check if docs exist or can be created
16573 #
16574 if test x$HASDOCBOOK = xno; then
16575 if test -f $srcdir/doc/fonts-conf.5; then
16576 :
16577 else
16578 default_docs="no"
16579 fi
16580 fi
16581
16582 # Check whether --enable-docs was given.
16583 if test "${enable_docs+set}" = set; then :
16584 enableval=$enable_docs;
16585 else
16586 enable_docs=$default_docs
16587 fi
16588
16589
16590 if test "x$enable_docs" = xyes; then
16591 ENABLE_DOCS_TRUE=
16592 ENABLE_DOCS_FALSE='#'
16593 else
16594 ENABLE_DOCS_TRUE='#'
16595 ENABLE_DOCS_FALSE=
16596 fi
16597
16598
16599 if test "x$enable_docs" = xyes; then
16600 tmp=funcs.$$
16601 cat $srcdir/doc/*.fncs | awk '
16602 /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
16603 /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
16604 /^@@/ { done = 0; }' > $tmp
16605 DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
16606 echo DOCMAN3 $DOCMAN3
16607 rm -f $tmp
16608 else
16609 DOCMAN3=""
16610 fi
16611
16612
16613
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16615 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16616 if ${ac_cv_c_bigendian+:} false; then :
16617 $as_echo_n "(cached) " >&6
16618 else
16619 ac_cv_c_bigendian=unknown
16620 # See if we're dealing with a universal compiler.
16621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16622 /* end confdefs.h. */
16623 #ifndef __APPLE_CC__
16624 not a universal capable compiler
16625 #endif
16626 typedef int dummy;
16627
16628 _ACEOF
16629 if ac_fn_c_try_compile "$LINENO"; then :
16630
16631 # Check for potential -arch flags. It is not universal unless
16632 # there are at least two -arch flags with different values.
16633 ac_arch=
16634 ac_prev=
16635 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16636 if test -n "$ac_prev"; then
16637 case $ac_word in
16638 i?86 | x86_64 | ppc | ppc64)
16639 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16640 ac_arch=$ac_word
16641 else
16642 ac_cv_c_bigendian=universal
16643 break
16644 fi
16645 ;;
16646 esac
16647 ac_prev=
16648 elif test "x$ac_word" = "x-arch"; then
16649 ac_prev=arch
16650 fi
16651 done
16652 fi
16653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16654 if test $ac_cv_c_bigendian = unknown; then
16655 # See if sys/param.h defines the BYTE_ORDER macro.
16656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16657 /* end confdefs.h. */
16658 #include <sys/types.h>
16659 #include <sys/param.h>
16660
16661 int
16662 main ()
16663 {
16664 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16665 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16666 && LITTLE_ENDIAN)
16667 bogus endian macros
16668 #endif
16669
16670 ;
16671 return 0;
16672 }
16673 _ACEOF
16674 if ac_fn_c_try_compile "$LINENO"; then :
16675 # It does; now see whether it defined to BIG_ENDIAN or not.
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16678 #include <sys/types.h>
16679 #include <sys/param.h>
16680
16681 int
16682 main ()
16683 {
16684 #if BYTE_ORDER != BIG_ENDIAN
16685 not big endian
16686 #endif
16687
16688 ;
16689 return 0;
16690 }
16691 _ACEOF
16692 if ac_fn_c_try_compile "$LINENO"; then :
16693 ac_cv_c_bigendian=yes
16694 else
16695 ac_cv_c_bigendian=no
16696 fi
16697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16698 fi
16699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16700 fi
16701 if test $ac_cv_c_bigendian = unknown; then
16702 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16704 /* end confdefs.h. */
16705 #include <limits.h>
16706
16707 int
16708 main ()
16709 {
16710 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16711 bogus endian macros
16712 #endif
16713
16714 ;
16715 return 0;
16716 }
16717 _ACEOF
16718 if ac_fn_c_try_compile "$LINENO"; then :
16719 # It does; now see whether it defined to _BIG_ENDIAN or not.
16720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16721 /* end confdefs.h. */
16722 #include <limits.h>
16723
16724 int
16725 main ()
16726 {
16727 #ifndef _BIG_ENDIAN
16728 not big endian
16729 #endif
16730
16731 ;
16732 return 0;
16733 }
16734 _ACEOF
16735 if ac_fn_c_try_compile "$LINENO"; then :
16736 ac_cv_c_bigendian=yes
16737 else
16738 ac_cv_c_bigendian=no
16739 fi
16740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741 fi
16742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16743 fi
16744 if test $ac_cv_c_bigendian = unknown; then
16745 # Compile a test program.
16746 if test "$cross_compiling" = yes; then :
16747 # Try to guess by grepping values from an object file.
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16750 short int ascii_mm[] =
16751 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16752 short int ascii_ii[] =
16753 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16754 int use_ascii (int i) {
16755 return ascii_mm[i] + ascii_ii[i];
16756 }
16757 short int ebcdic_ii[] =
16758 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16759 short int ebcdic_mm[] =
16760 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16761 int use_ebcdic (int i) {
16762 return ebcdic_mm[i] + ebcdic_ii[i];
16763 }
16764 extern int foo;
16765
16766 int
16767 main ()
16768 {
16769 return use_ascii (foo) == use_ebcdic (foo);
16770 ;
16771 return 0;
16772 }
16773 _ACEOF
16774 if ac_fn_c_try_compile "$LINENO"; then :
16775 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16776 ac_cv_c_bigendian=yes
16777 fi
16778 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16779 if test "$ac_cv_c_bigendian" = unknown; then
16780 ac_cv_c_bigendian=no
16781 else
16782 # finding both strings is unlikely to happen, but who knows?
16783 ac_cv_c_bigendian=unknown
16784 fi
16785 fi
16786 fi
16787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16788 else
16789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16790 /* end confdefs.h. */
16791 $ac_includes_default
16792 int
16793 main ()
16794 {
16795
16796 /* Are we little or big endian? From Harbison&Steele. */
16797 union
16798 {
16799 long int l;
16800 char c[sizeof (long int)];
16801 } u;
16802 u.l = 1;
16803 return u.c[sizeof (long int) - 1] == 1;
16804
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 if ac_fn_c_try_run "$LINENO"; then :
16810 ac_cv_c_bigendian=no
16811 else
16812 ac_cv_c_bigendian=yes
16813 fi
16814 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16815 conftest.$ac_objext conftest.beam conftest.$ac_ext
16816 fi
16817
16818 fi
16819 fi
16820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16821 $as_echo "$ac_cv_c_bigendian" >&6; }
16822 case $ac_cv_c_bigendian in #(
16823 yes)
16824 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16825 ;; #(
16826 no)
16827 ;; #(
16828 universal)
16829
16830 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16831
16832 ;; #(
16833 *)
16834 as_fn_error $? "unknown endianness
16835 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16836 esac
16837
16838 # The cast to long int works around a bug in the HP C Compiler
16839 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16840 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16841 # This bug is HP SR number 8606223364.
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16843 $as_echo_n "checking size of void *... " >&6; }
16844 if ${ac_cv_sizeof_void_p+:} false; then :
16845 $as_echo_n "(cached) " >&6
16846 else
16847 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16848
16849 else
16850 if test "$ac_cv_type_void_p" = yes; then
16851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16853 as_fn_error 77 "cannot compute sizeof (void *)
16854 See \`config.log' for more details" "$LINENO" 5; }
16855 else
16856 ac_cv_sizeof_void_p=0
16857 fi
16858 fi
16859
16860 fi
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16862 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16863
16864
16865
16866 cat >>confdefs.h <<_ACEOF
16867 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16868 _ACEOF
16869
16870
16871 # The cast to long int works around a bug in the HP C Compiler,
16872 # see AC_CHECK_SIZEOF for more information.
16873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16874 $as_echo_n "checking alignment of double... " >&6; }
16875 if ${ac_cv_alignof_double+:} false; then :
16876 $as_echo_n "(cached) " >&6
16877 else
16878 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double" "$ac_includes_default
16879 #ifndef offsetof
16880 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16881 #endif
16882 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16883
16884 else
16885 if test "$ac_cv_type_double" = yes; then
16886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16888 as_fn_error 77 "cannot compute alignment of double
16889 See \`config.log' for more details" "$LINENO" 5; }
16890 else
16891 ac_cv_alignof_double=0
16892 fi
16893 fi
16894
16895 fi
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16897 $as_echo "$ac_cv_alignof_double" >&6; }
16898
16899
16900
16901 cat >>confdefs.h <<_ACEOF
16902 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16903 _ACEOF
16904
16905
16906 # The cast to long int works around a bug in the HP C Compiler,
16907 # see AC_CHECK_SIZEOF for more information.
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
16909 $as_echo_n "checking alignment of void *... " >&6; }
16910 if ${ac_cv_alignof_void_p+:} false; then :
16911 $as_echo_n "(cached) " >&6
16912 else
16913 if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p" "$ac_includes_default
16914 #ifndef offsetof
16915 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16916 #endif
16917 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
16918
16919 else
16920 if test "$ac_cv_type_void_p" = yes; then
16921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16923 as_fn_error 77 "cannot compute alignment of void *
16924 See \`config.log' for more details" "$LINENO" 5; }
16925 else
16926 ac_cv_alignof_void_p=0
16927 fi
16928 fi
16929
16930 fi
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
16932 $as_echo "$ac_cv_alignof_void_p" >&6; }
16933
16934
16935
16936 cat >>confdefs.h <<_ACEOF
16937 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
16938 _ACEOF
16939
16940
16941
16942
16943
16944
16945
16946
16947 ac_config_files="$ac_config_files Makefile fontconfig/Makefile fc-lang/Makefile fc-glyphname/Makefile fc-blanks/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"
16948
16949 cat >confcache <<\_ACEOF
16950 # This file is a shell script that caches the results of configure
16951 # tests run on this system so they can be shared between configure
16952 # scripts and configure runs, see configure's option --config-cache.
16953 # It is not useful on other systems. If it contains results you don't
16954 # want to keep, you may remove or edit it.
16955 #
16956 # config.status only pays attention to the cache file if you give it
16957 # the --recheck option to rerun configure.
16958 #
16959 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16960 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16961 # following values.
16962
16963 _ACEOF
16964
16965 # The following way of writing the cache mishandles newlines in values,
16966 # but we know of no workaround that is simple, portable, and efficient.
16967 # So, we kill variables containing newlines.
16968 # Ultrix sh set writes to stderr and can't be redirected directly,
16969 # and sets the high bit in the cache file unless we assign to the vars.
16970 (
16971 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16972 eval ac_val=\$$ac_var
16973 case $ac_val in #(
16974 *${as_nl}*)
16975 case $ac_var in #(
16976 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16977 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16978 esac
16979 case $ac_var in #(
16980 _ | IFS | as_nl) ;; #(
16981 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16982 *) { eval $ac_var=; unset $ac_var;} ;;
16983 esac ;;
16984 esac
16985 done
16986
16987 (set) 2>&1 |
16988 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16989 *${as_nl}ac_space=\ *)
16990 # `set' does not quote correctly, so add quotes: double-quote
16991 # substitution turns \\\\ into \\, and sed turns \\ into \.
16992 sed -n \
16993 "s/'/'\\\\''/g;
16994 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16995 ;; #(
16996 *)
16997 # `set' quotes correctly as required by POSIX, so do not add quotes.
16998 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16999 ;;
17000 esac |
17001 sort
17002 ) |
17003 sed '
17004 /^ac_cv_env_/b end
17005 t clear
17006 :clear
17007 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17008 t end
17009 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17010 :end' >>confcache
17011 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17012 if test -w "$cache_file"; then
17013 if test "x$cache_file" != "x/dev/null"; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17015 $as_echo "$as_me: updating cache $cache_file" >&6;}
17016 if test ! -f "$cache_file" || test -h "$cache_file"; then
17017 cat confcache >"$cache_file"
17018 else
17019 case $cache_file in #(
17020 */* | ?:*)
17021 mv -f confcache "$cache_file"$$ &&
17022 mv -f "$cache_file"$$ "$cache_file" ;; #(
17023 *)
17024 mv -f confcache "$cache_file" ;;
17025 esac
17026 fi
17027 fi
17028 else
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17030 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17031 fi
17032 fi
17033 rm -f confcache
17034
17035 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17036 # Let make expand exec_prefix.
17037 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17038
17039 DEFS=-DHAVE_CONFIG_H
17040
17041 ac_libobjs=
17042 ac_ltlibobjs=
17043 U=
17044 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17045 # 1. Remove the extension, and $U if already installed.
17046 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17047 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17048 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17049 # will be set to the directory where LIBOBJS objects are built.
17050 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17051 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17052 done
17053 LIBOBJS=$ac_libobjs
17054
17055 LTLIBOBJS=$ac_ltlibobjs
17056
17057
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17059 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17060 if test -n "$am_sleep_pid"; then
17061 # Hide warnings about reused PIDs.
17062 wait $am_sleep_pid 2>/dev/null
17063 fi
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17065 $as_echo "done" >&6; }
17066 if test -n "$EXEEXT"; then
17067 am__EXEEXT_TRUE=
17068 am__EXEEXT_FALSE='#'
17069 else
17070 am__EXEEXT_TRUE='#'
17071 am__EXEEXT_FALSE=
17072 fi
17073
17074 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17075 as_fn_error $? "conditional \"AMDEP\" was never defined.
17076 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17077 fi
17078 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17079 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17080 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17081 fi
17082 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
17083 as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
17084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17085 fi
17086 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
17087 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
17088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17089 fi
17090 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
17091 as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
17092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17093 fi
17094 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
17095 as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
17096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17097 fi
17098 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
17099 as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
17100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17101 fi
17102 if test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_TRUE}" && test -z "${FREETYPE_PCF_LONG_FAMILY_NAMES_FALSE}"; then
17103 as_fn_error $? "conditional \"FREETYPE_PCF_LONG_FAMILY_NAMES\" was never defined.
17104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17105 fi
17106 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
17107 as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
17108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17109 fi
17110 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
17111 as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
17112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17113 fi
17114 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
17115 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
17116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17117 fi
17118
17119
17120 : "${CONFIG_STATUS=./config.status}"
17121 ac_write_fail=0
17122 ac_clean_files_save=$ac_clean_files
17123 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17125 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17126 as_write_fail=0
17127 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17128 #! $SHELL
17129 # Generated by $as_me.
17130 # Run this file to recreate the current configuration.
17131 # Compiler output produced by configure, useful for debugging
17132 # configure, is in config.log if it exists.
17133
17134 debug=false
17135 ac_cs_recheck=false
17136 ac_cs_silent=false
17137
17138 SHELL=\${CONFIG_SHELL-$SHELL}
17139 export SHELL
17140 _ASEOF
17141 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17142 ## -------------------- ##
17143 ## M4sh Initialization. ##
17144 ## -------------------- ##
17145
17146 # Be more Bourne compatible
17147 DUALCASE=1; export DUALCASE # for MKS sh
17148 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17149 emulate sh
17150 NULLCMD=:
17151 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17152 # is contrary to our usage. Disable this feature.
17153 alias -g '${1+"$@"}'='"$@"'
17154 setopt NO_GLOB_SUBST
17155 else
17156 case `(set -o) 2>/dev/null` in #(
17157 *posix*) :
17158 set -o posix ;; #(
17159 *) :
17160 ;;
17161 esac
17162 fi
17163
17164
17165 as_nl='
17166 '
17167 export as_nl
17168 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17169 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17171 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17172 # Prefer a ksh shell builtin over an external printf program on Solaris,
17173 # but without wasting forks for bash or zsh.
17174 if test -z "$BASH_VERSION$ZSH_VERSION" \
17175 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17176 as_echo='print -r --'
17177 as_echo_n='print -rn --'
17178 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17179 as_echo='printf %s\n'
17180 as_echo_n='printf %s'
17181 else
17182 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17183 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17184 as_echo_n='/usr/ucb/echo -n'
17185 else
17186 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17187 as_echo_n_body='eval
17188 arg=$1;
17189 case $arg in #(
17190 *"$as_nl"*)
17191 expr "X$arg" : "X\\(.*\\)$as_nl";
17192 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17193 esac;
17194 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17195 '
17196 export as_echo_n_body
17197 as_echo_n='sh -c $as_echo_n_body as_echo'
17198 fi
17199 export as_echo_body
17200 as_echo='sh -c $as_echo_body as_echo'
17201 fi
17202
17203 # The user is always right.
17204 if test "${PATH_SEPARATOR+set}" != set; then
17205 PATH_SEPARATOR=:
17206 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17207 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17208 PATH_SEPARATOR=';'
17209 }
17210 fi
17211
17212
17213 # IFS
17214 # We need space, tab and new line, in precisely that order. Quoting is
17215 # there to prevent editors from complaining about space-tab.
17216 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17217 # splitting by setting IFS to empty value.)
17218 IFS=" "" $as_nl"
17219
17220 # Find who we are. Look in the path if we contain no directory separator.
17221 as_myself=
17222 case $0 in #((
17223 *[\\/]* ) as_myself=$0 ;;
17224 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17225 for as_dir in $PATH
17226 do
17227 IFS=$as_save_IFS
17228 test -z "$as_dir" && as_dir=.
17229 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17230 done
17231 IFS=$as_save_IFS
17232
17233 ;;
17234 esac
17235 # We did not find ourselves, most probably we were run as `sh COMMAND'
17236 # in which case we are not to be found in the path.
17237 if test "x$as_myself" = x; then
17238 as_myself=$0
17239 fi
17240 if test ! -f "$as_myself"; then
17241 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17242 exit 1
17243 fi
17244
17245 # Unset variables that we do not need and which cause bugs (e.g. in
17246 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17247 # suppresses any "Segmentation fault" message there. '((' could
17248 # trigger a bug in pdksh 5.2.14.
17249 for as_var in BASH_ENV ENV MAIL MAILPATH
17250 do eval test x\${$as_var+set} = xset \
17251 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17252 done
17253 PS1='$ '
17254 PS2='> '
17255 PS4='+ '
17256
17257 # NLS nuisances.
17258 LC_ALL=C
17259 export LC_ALL
17260 LANGUAGE=C
17261 export LANGUAGE
17262
17263 # CDPATH.
17264 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17265
17266
17267 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17268 # ----------------------------------------
17269 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17270 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17271 # script with STATUS, using 1 if that was 0.
17272 as_fn_error ()
17273 {
17274 as_status=$1; test $as_status -eq 0 && as_status=1
17275 if test "$4"; then
17276 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17277 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17278 fi
17279 $as_echo "$as_me: error: $2" >&2
17280 as_fn_exit $as_status
17281 } # as_fn_error
17282
17283
17284 # as_fn_set_status STATUS
17285 # -----------------------
17286 # Set $? to STATUS, without forking.
17287 as_fn_set_status ()
17288 {
17289 return $1
17290 } # as_fn_set_status
17291
17292 # as_fn_exit STATUS
17293 # -----------------
17294 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17295 as_fn_exit ()
17296 {
17297 set +e
17298 as_fn_set_status $1
17299 exit $1
17300 } # as_fn_exit
17301
17302 # as_fn_unset VAR
17303 # ---------------
17304 # Portably unset VAR.
17305 as_fn_unset ()
17306 {
17307 { eval $1=; unset $1;}
17308 }
17309 as_unset=as_fn_unset
17310 # as_fn_append VAR VALUE
17311 # ----------------------
17312 # Append the text in VALUE to the end of the definition contained in VAR. Take
17313 # advantage of any shell optimizations that allow amortized linear growth over
17314 # repeated appends, instead of the typical quadratic growth present in naive
17315 # implementations.
17316 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17317 eval 'as_fn_append ()
17318 {
17319 eval $1+=\$2
17320 }'
17321 else
17322 as_fn_append ()
17323 {
17324 eval $1=\$$1\$2
17325 }
17326 fi # as_fn_append
17327
17328 # as_fn_arith ARG...
17329 # ------------------
17330 # Perform arithmetic evaluation on the ARGs, and store the result in the
17331 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17332 # must be portable across $(()) and expr.
17333 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17334 eval 'as_fn_arith ()
17335 {
17336 as_val=$(( $* ))
17337 }'
17338 else
17339 as_fn_arith ()
17340 {
17341 as_val=`expr "$@" || test $? -eq 1`
17342 }
17343 fi # as_fn_arith
17344
17345
17346 if expr a : '\(a\)' >/dev/null 2>&1 &&
17347 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17348 as_expr=expr
17349 else
17350 as_expr=false
17351 fi
17352
17353 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17354 as_basename=basename
17355 else
17356 as_basename=false
17357 fi
17358
17359 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17360 as_dirname=dirname
17361 else
17362 as_dirname=false
17363 fi
17364
17365 as_me=`$as_basename -- "$0" ||
17366 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17367 X"$0" : 'X\(//\)$' \| \
17368 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17369 $as_echo X/"$0" |
17370 sed '/^.*\/\([^/][^/]*\)\/*$/{
17371 s//\1/
17372 q
17373 }
17374 /^X\/\(\/\/\)$/{
17375 s//\1/
17376 q
17377 }
17378 /^X\/\(\/\).*/{
17379 s//\1/
17380 q
17381 }
17382 s/.*/./; q'`
17383
17384 # Avoid depending upon Character Ranges.
17385 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17386 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17387 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17388 as_cr_digits='0123456789'
17389 as_cr_alnum=$as_cr_Letters$as_cr_digits
17390
17391 ECHO_C= ECHO_N= ECHO_T=
17392 case `echo -n x` in #(((((
17393 -n*)
17394 case `echo 'xy\c'` in
17395 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17396 xy) ECHO_C='\c';;
17397 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17398 ECHO_T=' ';;
17399 esac;;
17400 *)
17401 ECHO_N='-n';;
17402 esac
17403
17404 rm -f conf$$ conf$$.exe conf$$.file
17405 if test -d conf$$.dir; then
17406 rm -f conf$$.dir/conf$$.file
17407 else
17408 rm -f conf$$.dir
17409 mkdir conf$$.dir 2>/dev/null
17410 fi
17411 if (echo >conf$$.file) 2>/dev/null; then
17412 if ln -s conf$$.file conf$$ 2>/dev/null; then
17413 as_ln_s='ln -s'
17414 # ... but there are two gotchas:
17415 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17416 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17417 # In both cases, we have to default to `cp -pR'.
17418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17419 as_ln_s='cp -pR'
17420 elif ln conf$$.file conf$$ 2>/dev/null; then
17421 as_ln_s=ln
17422 else
17423 as_ln_s='cp -pR'
17424 fi
17425 else
17426 as_ln_s='cp -pR'
17427 fi
17428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17429 rmdir conf$$.dir 2>/dev/null
17430
17431
17432 # as_fn_mkdir_p
17433 # -------------
17434 # Create "$as_dir" as a directory, including parents if necessary.
17435 as_fn_mkdir_p ()
17436 {
17437
17438 case $as_dir in #(
17439 -*) as_dir=./$as_dir;;
17440 esac
17441 test -d "$as_dir" || eval $as_mkdir_p || {
17442 as_dirs=
17443 while :; do
17444 case $as_dir in #(
17445 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17446 *) as_qdir=$as_dir;;
17447 esac
17448 as_dirs="'$as_qdir' $as_dirs"
17449 as_dir=`$as_dirname -- "$as_dir" ||
17450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17451 X"$as_dir" : 'X\(//\)[^/]' \| \
17452 X"$as_dir" : 'X\(//\)$' \| \
17453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17454 $as_echo X"$as_dir" |
17455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17456 s//\1/
17457 q
17458 }
17459 /^X\(\/\/\)[^/].*/{
17460 s//\1/
17461 q
17462 }
17463 /^X\(\/\/\)$/{
17464 s//\1/
17465 q
17466 }
17467 /^X\(\/\).*/{
17468 s//\1/
17469 q
17470 }
17471 s/.*/./; q'`
17472 test -d "$as_dir" && break
17473 done
17474 test -z "$as_dirs" || eval "mkdir $as_dirs"
17475 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17476
17477
17478 } # as_fn_mkdir_p
17479 if mkdir -p . 2>/dev/null; then
17480 as_mkdir_p='mkdir -p "$as_dir"'
17481 else
17482 test -d ./-p && rmdir ./-p
17483 as_mkdir_p=false
17484 fi
17485
17486
17487 # as_fn_executable_p FILE
17488 # -----------------------
17489 # Test if FILE is an executable regular file.
17490 as_fn_executable_p ()
17491 {
17492 test -f "$1" && test -x "$1"
17493 } # as_fn_executable_p
17494 as_test_x='test -x'
17495 as_executable_p=as_fn_executable_p
17496
17497 # Sed expression to map a string onto a valid CPP name.
17498 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17499
17500 # Sed expression to map a string onto a valid variable name.
17501 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17502
17503
17504 exec 6>&1
17505 ## ----------------------------------- ##
17506 ## Main body of $CONFIG_STATUS script. ##
17507 ## ----------------------------------- ##
17508 _ASEOF
17509 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17510
17511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17512 # Save the log message, to keep $0 and so on meaningful, and to
17513 # report actual input values of CONFIG_FILES etc. instead of their
17514 # values after options handling.
17515 ac_log="
17516 This file was extended by fontconfig $as_me 2.12.4, which was
17517 generated by GNU Autoconf 2.69. Invocation command line was
17518
17519 CONFIG_FILES = $CONFIG_FILES
17520 CONFIG_HEADERS = $CONFIG_HEADERS
17521 CONFIG_LINKS = $CONFIG_LINKS
17522 CONFIG_COMMANDS = $CONFIG_COMMANDS
17523 $ $0 $@
17524
17525 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17526 "
17527
17528 _ACEOF
17529
17530 case $ac_config_files in *"
17531 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17532 esac
17533
17534 case $ac_config_headers in *"
17535 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17536 esac
17537
17538
17539 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17540 # Files that config.status was made for.
17541 config_files="$ac_config_files"
17542 config_headers="$ac_config_headers"
17543 config_commands="$ac_config_commands"
17544
17545 _ACEOF
17546
17547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17548 ac_cs_usage="\
17549 \`$as_me' instantiates files and other configuration actions
17550 from templates according to the current configuration. Unless the files
17551 and actions are specified as TAGs, all are instantiated by default.
17552
17553 Usage: $0 [OPTION]... [TAG]...
17554
17555 -h, --help print this help, then exit
17556 -V, --version print version number and configuration settings, then exit
17557 --config print configuration, then exit
17558 -q, --quiet, --silent
17559 do not print progress messages
17560 -d, --debug don't remove temporary files
17561 --recheck update $as_me by reconfiguring in the same conditions
17562 --file=FILE[:TEMPLATE]
17563 instantiate the configuration file FILE
17564 --header=FILE[:TEMPLATE]
17565 instantiate the configuration header FILE
17566
17567 Configuration files:
17568 $config_files
17569
17570 Configuration headers:
17571 $config_headers
17572
17573 Configuration commands:
17574 $config_commands
17575
17576 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
17577
17578 _ACEOF
17579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17580 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17581 ac_cs_version="\\
17582 fontconfig config.status 2.12.4
17583 configured by $0, generated by GNU Autoconf 2.69,
17584 with options \\"\$ac_cs_config\\"
17585
17586 Copyright (C) 2012 Free Software Foundation, Inc.
17587 This config.status script is free software; the Free Software Foundation
17588 gives unlimited permission to copy, distribute and modify it."
17589
17590 ac_pwd='$ac_pwd'
17591 srcdir='$srcdir'
17592 INSTALL='$INSTALL'
17593 MKDIR_P='$MKDIR_P'
17594 AWK='$AWK'
17595 test -n "\$AWK" || AWK=awk
17596 _ACEOF
17597
17598 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17599 # The default lists apply if the user does not specify any file.
17600 ac_need_defaults=:
17601 while test $# != 0
17602 do
17603 case $1 in
17604 --*=?*)
17605 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17606 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17607 ac_shift=:
17608 ;;
17609 --*=)
17610 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17611 ac_optarg=
17612 ac_shift=:
17613 ;;
17614 *)
17615 ac_option=$1
17616 ac_optarg=$2
17617 ac_shift=shift
17618 ;;
17619 esac
17620
17621 case $ac_option in
17622 # Handling of the options.
17623 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17624 ac_cs_recheck=: ;;
17625 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17626 $as_echo "$ac_cs_version"; exit ;;
17627 --config | --confi | --conf | --con | --co | --c )
17628 $as_echo "$ac_cs_config"; exit ;;
17629 --debug | --debu | --deb | --de | --d | -d )
17630 debug=: ;;
17631 --file | --fil | --fi | --f )
17632 $ac_shift
17633 case $ac_optarg in
17634 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17635 '') as_fn_error $? "missing file argument" ;;
17636 esac
17637 as_fn_append CONFIG_FILES " '$ac_optarg'"
17638 ac_need_defaults=false;;
17639 --header | --heade | --head | --hea )
17640 $ac_shift
17641 case $ac_optarg in
17642 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17643 esac
17644 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17645 ac_need_defaults=false;;
17646 --he | --h)
17647 # Conflict between --help and --header
17648 as_fn_error $? "ambiguous option: \`$1'
17649 Try \`$0 --help' for more information.";;
17650 --help | --hel | -h )
17651 $as_echo "$ac_cs_usage"; exit ;;
17652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17653 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17654 ac_cs_silent=: ;;
17655
17656 # This is an error.
17657 -*) as_fn_error $? "unrecognized option: \`$1'
17658 Try \`$0 --help' for more information." ;;
17659
17660 *) as_fn_append ac_config_targets " $1"
17661 ac_need_defaults=false ;;
17662
17663 esac
17664 shift
17665 done
17666
17667 ac_configure_extra_args=
17668
17669 if $ac_cs_silent; then
17670 exec 6>/dev/null
17671 ac_configure_extra_args="$ac_configure_extra_args --silent"
17672 fi
17673
17674 _ACEOF
17675 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17676 if \$ac_cs_recheck; then
17677 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17678 shift
17679 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17680 CONFIG_SHELL='$SHELL'
17681 export CONFIG_SHELL
17682 exec "\$@"
17683 fi
17684
17685 _ACEOF
17686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17687 exec 5>>config.log
17688 {
17689 echo
17690 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17691 ## Running $as_me. ##
17692 _ASBOX
17693 $as_echo "$ac_log"
17694 } >&5
17695
17696 _ACEOF
17697 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17698 #
17699 # INIT-COMMANDS
17700 #
17701 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17702
17703
17704 # The HP-UX ksh and POSIX shell print the target directory to stdout
17705 # if CDPATH is set.
17706 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17707
17708 sed_quote_subst='$sed_quote_subst'
17709 double_quote_subst='$double_quote_subst'
17710 delay_variable_subst='$delay_variable_subst'
17711 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17712 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17713 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17714 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17715 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17716 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17717 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17718 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17719 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17720 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17721 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17722 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17723 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17724 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17725 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17726 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17727 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17728 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17729 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17730 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17731 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17732 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17733 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17734 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17735 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17736 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17737 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17738 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17739 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17740 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17741 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17742 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17743 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17744 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17745 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17746 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17747 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17748 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17749 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17750 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17751 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17752 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17753 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17754 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17755 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17756 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17757 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17758 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17759 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17760 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17761 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17762 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17763 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17764 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17765 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17766 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17767 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17768 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17769 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17770 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"`'
17771 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17772 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17773 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17774 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17775 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17776 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17777 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17778 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17779 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17780 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17781 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17782 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17783 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17784 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17785 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17786 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17787 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17788 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17789 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17790 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17791 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17792 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17793 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17794 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17795 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17796 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17797 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17798 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17799 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17800 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17801 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17802 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17803 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17804 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17805 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17806 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17807 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17808 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17809 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17810 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17811 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17812 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17813 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17814 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17815 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17816 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17817 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17818 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17819 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17820 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17821 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17822 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17823 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17824 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17825 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17826 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17827 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17828 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17829 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17830 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17831 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17832 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17833 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17834 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17835 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17836 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17837 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17838 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17839 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17840 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17841 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17842 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17843 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17844 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17845 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17846 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17847
17848 LTCC='$LTCC'
17849 LTCFLAGS='$LTCFLAGS'
17850 compiler='$compiler_DEFAULT'
17851
17852 # A function that is used when there is no print builtin or printf.
17853 func_fallback_echo ()
17854 {
17855 eval 'cat <<_LTECHO_EOF
17856 \$1
17857 _LTECHO_EOF'
17858 }
17859
17860 # Quote evaled strings.
17861 for var in AS \
17862 DLLTOOL \
17863 OBJDUMP \
17864 SHELL \
17865 ECHO \
17866 PATH_SEPARATOR \
17867 SED \
17868 GREP \
17869 EGREP \
17870 FGREP \
17871 LD \
17872 NM \
17873 LN_S \
17874 lt_SP2NL \
17875 lt_NL2SP \
17876 reload_flag \
17877 deplibs_check_method \
17878 file_magic_cmd \
17879 file_magic_glob \
17880 want_nocaseglob \
17881 sharedlib_from_linklib_cmd \
17882 AR \
17883 AR_FLAGS \
17884 archiver_list_spec \
17885 STRIP \
17886 RANLIB \
17887 CC \
17888 CFLAGS \
17889 compiler \
17890 lt_cv_sys_global_symbol_pipe \
17891 lt_cv_sys_global_symbol_to_cdecl \
17892 lt_cv_sys_global_symbol_to_import \
17893 lt_cv_sys_global_symbol_to_c_name_address \
17894 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17895 lt_cv_nm_interface \
17896 nm_file_list_spec \
17897 lt_cv_truncate_bin \
17898 lt_prog_compiler_no_builtin_flag \
17899 lt_prog_compiler_pic \
17900 lt_prog_compiler_wl \
17901 lt_prog_compiler_static \
17902 lt_cv_prog_compiler_c_o \
17903 need_locks \
17904 MANIFEST_TOOL \
17905 DSYMUTIL \
17906 NMEDIT \
17907 LIPO \
17908 OTOOL \
17909 OTOOL64 \
17910 shrext_cmds \
17911 export_dynamic_flag_spec \
17912 whole_archive_flag_spec \
17913 compiler_needs_object \
17914 with_gnu_ld \
17915 allow_undefined_flag \
17916 no_undefined_flag \
17917 hardcode_libdir_flag_spec \
17918 hardcode_libdir_separator \
17919 exclude_expsyms \
17920 include_expsyms \
17921 file_list_spec \
17922 variables_saved_for_relink \
17923 libname_spec \
17924 library_names_spec \
17925 soname_spec \
17926 install_override_mode \
17927 finish_eval \
17928 old_striplib \
17929 striplib; do
17930 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17931 *[\\\\\\\`\\"\\\$]*)
17932 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17933 ;;
17934 *)
17935 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17936 ;;
17937 esac
17938 done
17939
17940 # Double-quote double-evaled strings.
17941 for var in reload_cmds \
17942 old_postinstall_cmds \
17943 old_postuninstall_cmds \
17944 old_archive_cmds \
17945 extract_expsyms_cmds \
17946 old_archive_from_new_cmds \
17947 old_archive_from_expsyms_cmds \
17948 archive_cmds \
17949 archive_expsym_cmds \
17950 module_cmds \
17951 module_expsym_cmds \
17952 export_symbols_cmds \
17953 prelink_cmds \
17954 postlink_cmds \
17955 postinstall_cmds \
17956 postuninstall_cmds \
17957 finish_cmds \
17958 sys_lib_search_path_spec \
17959 configure_time_dlsearch_path \
17960 configure_time_lt_sys_library_path; do
17961 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17962 *[\\\\\\\`\\"\\\$]*)
17963 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17964 ;;
17965 *)
17966 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17967 ;;
17968 esac
17969 done
17970
17971 ac_aux_dir='$ac_aux_dir'
17972
17973 # See if we are running on zsh, and set the options that allow our
17974 # commands through without removal of \ escapes INIT.
17975 if test -n "\${ZSH_VERSION+set}"; then
17976 setopt NO_GLOB_SUBST
17977 fi
17978
17979
17980 PACKAGE='$PACKAGE'
17981 VERSION='$VERSION'
17982 RM='$RM'
17983 ofile='$ofile'
17984
17985
17986
17987 # variables for create stdint.h replacement
17988 PACKAGE="$PACKAGE"
17989 VERSION="$VERSION"
17990 ac_stdint_h="$ac_stdint_h"
17991 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
17992 ac_cv_stdint_message="$ac_cv_stdint_message"
17993 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
17994 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
17995 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
17996 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
17997 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17998 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17999 ac_cv_char_data_model="$ac_cv_char_data_model"
18000 ac_cv_long_data_model="$ac_cv_long_data_model"
18001 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18002 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18003 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
18004
18005
18006 _ACEOF
18007
18008 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18009
18010 # Handling of arguments.
18011 for ac_config_target in $ac_config_targets
18012 do
18013 case $ac_config_target in
18014 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18015 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18016 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18017 "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
18018 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18019 "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
18020 "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
18021 "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
18022 "fc-blanks/Makefile") CONFIG_FILES="$CONFIG_FILES fc-blanks/Makefile" ;;
18023 "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
18024 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
18025 "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
18026 "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
18027 "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
18028 "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
18029 "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
18030 "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
18031 "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
18032 "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
18033 "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
18034 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
18035 "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
18036 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
18037 "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
18038 "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
18039 "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
18040
18041 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18042 esac
18043 done
18044
18045
18046 # If the user did not use the arguments to specify the items to instantiate,
18047 # then the envvar interface is used. Set only those that are not.
18048 # We use the long form for the default assignment because of an extremely
18049 # bizarre bug on SunOS 4.1.3.
18050 if $ac_need_defaults; then
18051 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18052 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18053 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18054 fi
18055
18056 # Have a temporary directory for convenience. Make it in the build tree
18057 # simply because there is no reason against having it here, and in addition,
18058 # creating and moving files from /tmp can sometimes cause problems.
18059 # Hook for its removal unless debugging.
18060 # Note that there is a small window in which the directory will not be cleaned:
18061 # after its creation but before its name has been assigned to `$tmp'.
18062 $debug ||
18063 {
18064 tmp= ac_tmp=
18065 trap 'exit_status=$?
18066 : "${ac_tmp:=$tmp}"
18067 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18068 ' 0
18069 trap 'as_fn_exit 1' 1 2 13 15
18070 }
18071 # Create a (secure) tmp directory for tmp files.
18072
18073 {
18074 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18075 test -d "$tmp"
18076 } ||
18077 {
18078 tmp=./conf$$-$RANDOM
18079 (umask 077 && mkdir "$tmp")
18080 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18081 ac_tmp=$tmp
18082
18083 # Set up the scripts for CONFIG_FILES section.
18084 # No need to generate them if there are no CONFIG_FILES.
18085 # This happens for instance with `./config.status config.h'.
18086 if test -n "$CONFIG_FILES"; then
18087
18088
18089 ac_cr=`echo X | tr X '\015'`
18090 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18091 # But we know of no other shell where ac_cr would be empty at this
18092 # point, so we can use a bashism as a fallback.
18093 if test "x$ac_cr" = x; then
18094 eval ac_cr=\$\'\\r\'
18095 fi
18096 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18097 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18098 ac_cs_awk_cr='\\r'
18099 else
18100 ac_cs_awk_cr=$ac_cr
18101 fi
18102
18103 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18104 _ACEOF
18105
18106
18107 {
18108 echo "cat >conf$$subs.awk <<_ACEOF" &&
18109 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18110 echo "_ACEOF"
18111 } >conf$$subs.sh ||
18112 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18113 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18114 ac_delim='%!_!# '
18115 for ac_last_try in false false false false false :; do
18116 . ./conf$$subs.sh ||
18117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18118
18119 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18120 if test $ac_delim_n = $ac_delim_num; then
18121 break
18122 elif $ac_last_try; then
18123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18124 else
18125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18126 fi
18127 done
18128 rm -f conf$$subs.sh
18129
18130 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18131 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18132 _ACEOF
18133 sed -n '
18134 h
18135 s/^/S["/; s/!.*/"]=/
18136 p
18137 g
18138 s/^[^!]*!//
18139 :repl
18140 t repl
18141 s/'"$ac_delim"'$//
18142 t delim
18143 :nl
18144 h
18145 s/\(.\{148\}\)..*/\1/
18146 t more1
18147 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18148 p
18149 n
18150 b repl
18151 :more1
18152 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18153 p
18154 g
18155 s/.\{148\}//
18156 t nl
18157 :delim
18158 h
18159 s/\(.\{148\}\)..*/\1/
18160 t more2
18161 s/["\\]/\\&/g; s/^/"/; s/$/"/
18162 p
18163 b
18164 :more2
18165 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18166 p
18167 g
18168 s/.\{148\}//
18169 t delim
18170 ' <conf$$subs.awk | sed '
18171 /^[^""]/{
18172 N
18173 s/\n//
18174 }
18175 ' >>$CONFIG_STATUS || ac_write_fail=1
18176 rm -f conf$$subs.awk
18177 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18178 _ACAWK
18179 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18180 for (key in S) S_is_set[key] = 1
18181 FS = ""
18182
18183 }
18184 {
18185 line = $ 0
18186 nfields = split(line, field, "@")
18187 substed = 0
18188 len = length(field[1])
18189 for (i = 2; i < nfields; i++) {
18190 key = field[i]
18191 keylen = length(key)
18192 if (S_is_set[key]) {
18193 value = S[key]
18194 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18195 len += length(value) + length(field[++i])
18196 substed = 1
18197 } else
18198 len += 1 + keylen
18199 }
18200
18201 print line
18202 }
18203
18204 _ACAWK
18205 _ACEOF
18206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18207 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18208 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18209 else
18210 cat
18211 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18212 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18213 _ACEOF
18214
18215 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18216 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18217 # trailing colons and then remove the whole line if VPATH becomes empty
18218 # (actually we leave an empty line to preserve line numbers).
18219 if test "x$srcdir" = x.; then
18220 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18221 h
18222 s///
18223 s/^/:/
18224 s/[ ]*$/:/
18225 s/:\$(srcdir):/:/g
18226 s/:\${srcdir}:/:/g
18227 s/:@srcdir@:/:/g
18228 s/^:*//
18229 s/:*$//
18230 x
18231 s/\(=[ ]*\).*/\1/
18232 G
18233 s/\n//
18234 s/^[^=]*=[ ]*$//
18235 }'
18236 fi
18237
18238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18239 fi # test -n "$CONFIG_FILES"
18240
18241 # Set up the scripts for CONFIG_HEADERS section.
18242 # No need to generate them if there are no CONFIG_HEADERS.
18243 # This happens for instance with `./config.status Makefile'.
18244 if test -n "$CONFIG_HEADERS"; then
18245 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18246 BEGIN {
18247 _ACEOF
18248
18249 # Transform confdefs.h into an awk script `defines.awk', embedded as
18250 # here-document in config.status, that substitutes the proper values into
18251 # config.h.in to produce config.h.
18252
18253 # Create a delimiter string that does not exist in confdefs.h, to ease
18254 # handling of long lines.
18255 ac_delim='%!_!# '
18256 for ac_last_try in false false :; do
18257 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18258 if test -z "$ac_tt"; then
18259 break
18260 elif $ac_last_try; then
18261 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18262 else
18263 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18264 fi
18265 done
18266
18267 # For the awk script, D is an array of macro values keyed by name,
18268 # likewise P contains macro parameters if any. Preserve backslash
18269 # newline sequences.
18270
18271 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18272 sed -n '
18273 s/.\{148\}/&'"$ac_delim"'/g
18274 t rset
18275 :rset
18276 s/^[ ]*#[ ]*define[ ][ ]*/ /
18277 t def
18278 d
18279 :def
18280 s/\\$//
18281 t bsnl
18282 s/["\\]/\\&/g
18283 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18284 D["\1"]=" \3"/p
18285 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18286 d
18287 :bsnl
18288 s/["\\]/\\&/g
18289 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18290 D["\1"]=" \3\\\\\\n"\\/p
18291 t cont
18292 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18293 t cont
18294 d
18295 :cont
18296 n
18297 s/.\{148\}/&'"$ac_delim"'/g
18298 t clear
18299 :clear
18300 s/\\$//
18301 t bsnlc
18302 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18303 d
18304 :bsnlc
18305 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18306 b cont
18307 ' <confdefs.h | sed '
18308 s/'"$ac_delim"'/"\\\
18309 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18310
18311 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18312 for (key in D) D_is_set[key] = 1
18313 FS = ""
18314 }
18315 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18316 line = \$ 0
18317 split(line, arg, " ")
18318 if (arg[1] == "#") {
18319 defundef = arg[2]
18320 mac1 = arg[3]
18321 } else {
18322 defundef = substr(arg[1], 2)
18323 mac1 = arg[2]
18324 }
18325 split(mac1, mac2, "(") #)
18326 macro = mac2[1]
18327 prefix = substr(line, 1, index(line, defundef) - 1)
18328 if (D_is_set[macro]) {
18329 # Preserve the white space surrounding the "#".
18330 print prefix "define", macro P[macro] D[macro]
18331 next
18332 } else {
18333 # Replace #undef with comments. This is necessary, for example,
18334 # in the case of _POSIX_SOURCE, which is predefined and required
18335 # on some systems where configure will not decide to define it.
18336 if (defundef == "undef") {
18337 print "/*", prefix defundef, macro, "*/"
18338 next
18339 }
18340 }
18341 }
18342 { print }
18343 _ACAWK
18344 _ACEOF
18345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18346 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18347 fi # test -n "$CONFIG_HEADERS"
18348
18349
18350 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18351 shift
18352 for ac_tag
18353 do
18354 case $ac_tag in
18355 :[FHLC]) ac_mode=$ac_tag; continue;;
18356 esac
18357 case $ac_mode$ac_tag in
18358 :[FHL]*:*);;
18359 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18360 :[FH]-) ac_tag=-:-;;
18361 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18362 esac
18363 ac_save_IFS=$IFS
18364 IFS=:
18365 set x $ac_tag
18366 IFS=$ac_save_IFS
18367 shift
18368 ac_file=$1
18369 shift
18370
18371 case $ac_mode in
18372 :L) ac_source=$1;;
18373 :[FH])
18374 ac_file_inputs=
18375 for ac_f
18376 do
18377 case $ac_f in
18378 -) ac_f="$ac_tmp/stdin";;
18379 *) # Look for the file first in the build tree, then in the source tree
18380 # (if the path is not absolute). The absolute path cannot be DOS-style,
18381 # because $ac_f cannot contain `:'.
18382 test -f "$ac_f" ||
18383 case $ac_f in
18384 [\\/$]*) false;;
18385 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18386 esac ||
18387 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18388 esac
18389 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18390 as_fn_append ac_file_inputs " '$ac_f'"
18391 done
18392
18393 # Let's still pretend it is `configure' which instantiates (i.e., don't
18394 # use $as_me), people would be surprised to read:
18395 # /* config.h. Generated by config.status. */
18396 configure_input='Generated from '`
18397 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18398 `' by configure.'
18399 if test x"$ac_file" != x-; then
18400 configure_input="$ac_file. $configure_input"
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18402 $as_echo "$as_me: creating $ac_file" >&6;}
18403 fi
18404 # Neutralize special characters interpreted by sed in replacement strings.
18405 case $configure_input in #(
18406 *\&* | *\|* | *\\* )
18407 ac_sed_conf_input=`$as_echo "$configure_input" |
18408 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18409 *) ac_sed_conf_input=$configure_input;;
18410 esac
18411
18412 case $ac_tag in
18413 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18414 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18415 esac
18416 ;;
18417 esac
18418
18419 ac_dir=`$as_dirname -- "$ac_file" ||
18420 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18421 X"$ac_file" : 'X\(//\)[^/]' \| \
18422 X"$ac_file" : 'X\(//\)$' \| \
18423 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18424 $as_echo X"$ac_file" |
18425 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18426 s//\1/
18427 q
18428 }
18429 /^X\(\/\/\)[^/].*/{
18430 s//\1/
18431 q
18432 }
18433 /^X\(\/\/\)$/{
18434 s//\1/
18435 q
18436 }
18437 /^X\(\/\).*/{
18438 s//\1/
18439 q
18440 }
18441 s/.*/./; q'`
18442 as_dir="$ac_dir"; as_fn_mkdir_p
18443 ac_builddir=.
18444
18445 case "$ac_dir" in
18446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18447 *)
18448 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18449 # A ".." for each directory in $ac_dir_suffix.
18450 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18451 case $ac_top_builddir_sub in
18452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18454 esac ;;
18455 esac
18456 ac_abs_top_builddir=$ac_pwd
18457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18458 # for backward compatibility:
18459 ac_top_builddir=$ac_top_build_prefix
18460
18461 case $srcdir in
18462 .) # We are building in place.
18463 ac_srcdir=.
18464 ac_top_srcdir=$ac_top_builddir_sub
18465 ac_abs_top_srcdir=$ac_pwd ;;
18466 [\\/]* | ?:[\\/]* ) # Absolute name.
18467 ac_srcdir=$srcdir$ac_dir_suffix;
18468 ac_top_srcdir=$srcdir
18469 ac_abs_top_srcdir=$srcdir ;;
18470 *) # Relative name.
18471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18472 ac_top_srcdir=$ac_top_build_prefix$srcdir
18473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18474 esac
18475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18476
18477
18478 case $ac_mode in
18479 :F)
18480 #
18481 # CONFIG_FILE
18482 #
18483
18484 case $INSTALL in
18485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18487 esac
18488 ac_MKDIR_P=$MKDIR_P
18489 case $MKDIR_P in
18490 [\\/$]* | ?:[\\/]* ) ;;
18491 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18492 esac
18493 _ACEOF
18494
18495 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18496 # If the template does not know about datarootdir, expand it.
18497 # FIXME: This hack should be removed a few years after 2.60.
18498 ac_datarootdir_hack=; ac_datarootdir_seen=
18499 ac_sed_dataroot='
18500 /datarootdir/ {
18501 p
18502 q
18503 }
18504 /@datadir@/p
18505 /@docdir@/p
18506 /@infodir@/p
18507 /@localedir@/p
18508 /@mandir@/p'
18509 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18510 *datarootdir*) ac_datarootdir_seen=yes;;
18511 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18513 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18514 _ACEOF
18515 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18516 ac_datarootdir_hack='
18517 s&@datadir@&$datadir&g
18518 s&@docdir@&$docdir&g
18519 s&@infodir@&$infodir&g
18520 s&@localedir@&$localedir&g
18521 s&@mandir@&$mandir&g
18522 s&\\\${datarootdir}&$datarootdir&g' ;;
18523 esac
18524 _ACEOF
18525
18526 # Neutralize VPATH when `$srcdir' = `.'.
18527 # Shell code in configure.ac might set extrasub.
18528 # FIXME: do we really want to maintain this feature?
18529 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18530 ac_sed_extra="$ac_vpsub
18531 $extrasub
18532 _ACEOF
18533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18534 :t
18535 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18536 s|@configure_input@|$ac_sed_conf_input|;t t
18537 s&@top_builddir@&$ac_top_builddir_sub&;t t
18538 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18539 s&@srcdir@&$ac_srcdir&;t t
18540 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18541 s&@top_srcdir@&$ac_top_srcdir&;t t
18542 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18543 s&@builddir@&$ac_builddir&;t t
18544 s&@abs_builddir@&$ac_abs_builddir&;t t
18545 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18546 s&@INSTALL@&$ac_INSTALL&;t t
18547 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18548 $ac_datarootdir_hack
18549 "
18550 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18551 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18552
18553 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18554 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18555 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18556 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18558 which seems to be undefined. Please make sure it is defined" >&5
18559 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18560 which seems to be undefined. Please make sure it is defined" >&2;}
18561
18562 rm -f "$ac_tmp/stdin"
18563 case $ac_file in
18564 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18565 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18566 esac \
18567 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18568 ;;
18569 :H)
18570 #
18571 # CONFIG_HEADER
18572 #
18573 if test x"$ac_file" != x-; then
18574 {
18575 $as_echo "/* $configure_input */" \
18576 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18577 } >"$ac_tmp/config.h" \
18578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18579 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18580 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18581 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18582 else
18583 rm -f "$ac_file"
18584 mv "$ac_tmp/config.h" "$ac_file" \
18585 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18586 fi
18587 else
18588 $as_echo "/* $configure_input */" \
18589 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18590 || as_fn_error $? "could not create -" "$LINENO" 5
18591 fi
18592 # Compute "$ac_file"'s index in $config_headers.
18593 _am_arg="$ac_file"
18594 _am_stamp_count=1
18595 for _am_header in $config_headers :; do
18596 case $_am_header in
18597 $_am_arg | $_am_arg:* )
18598 break ;;
18599 * )
18600 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18601 esac
18602 done
18603 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18604 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18605 X"$_am_arg" : 'X\(//\)[^/]' \| \
18606 X"$_am_arg" : 'X\(//\)$' \| \
18607 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18608 $as_echo X"$_am_arg" |
18609 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18610 s//\1/
18611 q
18612 }
18613 /^X\(\/\/\)[^/].*/{
18614 s//\1/
18615 q
18616 }
18617 /^X\(\/\/\)$/{
18618 s//\1/
18619 q
18620 }
18621 /^X\(\/\).*/{
18622 s//\1/
18623 q
18624 }
18625 s/.*/./; q'`/stamp-h$_am_stamp_count
18626 ;;
18627
18628 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18629 $as_echo "$as_me: executing $ac_file commands" >&6;}
18630 ;;
18631 esac
18632
18633
18634 case $ac_file$ac_mode in
18635 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18636 # Older Autoconf quotes --file arguments for eval, but not when files
18637 # are listed without --file. Let's play safe and only enable the eval
18638 # if we detect the quoting.
18639 case $CONFIG_FILES in
18640 *\'*) eval set x "$CONFIG_FILES" ;;
18641 *) set x $CONFIG_FILES ;;
18642 esac
18643 shift
18644 for mf
18645 do
18646 # Strip MF so we end up with the name of the file.
18647 mf=`echo "$mf" | sed -e 's/:.*$//'`
18648 # Check whether this is an Automake generated Makefile or not.
18649 # We used to match only the files named 'Makefile.in', but
18650 # some people rename them; so instead we look at the file content.
18651 # Grep'ing the first line is not enough: some people post-process
18652 # each Makefile.in and add a new line on top of each file to say so.
18653 # Grep'ing the whole file is not good either: AIX grep has a line
18654 # limit of 2048, but all sed's we know have understand at least 4000.
18655 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18656 dirpart=`$as_dirname -- "$mf" ||
18657 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18658 X"$mf" : 'X\(//\)[^/]' \| \
18659 X"$mf" : 'X\(//\)$' \| \
18660 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18661 $as_echo X"$mf" |
18662 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18663 s//\1/
18664 q
18665 }
18666 /^X\(\/\/\)[^/].*/{
18667 s//\1/
18668 q
18669 }
18670 /^X\(\/\/\)$/{
18671 s//\1/
18672 q
18673 }
18674 /^X\(\/\).*/{
18675 s//\1/
18676 q
18677 }
18678 s/.*/./; q'`
18679 else
18680 continue
18681 fi
18682 # Extract the definition of DEPDIR, am__include, and am__quote
18683 # from the Makefile without running 'make'.
18684 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18685 test -z "$DEPDIR" && continue
18686 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18687 test -z "$am__include" && continue
18688 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18689 # Find all dependency output files, they are included files with
18690 # $(DEPDIR) in their names. We invoke sed twice because it is the
18691 # simplest approach to changing $(DEPDIR) to its actual value in the
18692 # expansion.
18693 for file in `sed -n "
18694 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18695 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18696 # Make sure the directory exists.
18697 test -f "$dirpart/$file" && continue
18698 fdir=`$as_dirname -- "$file" ||
18699 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18700 X"$file" : 'X\(//\)[^/]' \| \
18701 X"$file" : 'X\(//\)$' \| \
18702 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18703 $as_echo X"$file" |
18704 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18705 s//\1/
18706 q
18707 }
18708 /^X\(\/\/\)[^/].*/{
18709 s//\1/
18710 q
18711 }
18712 /^X\(\/\/\)$/{
18713 s//\1/
18714 q
18715 }
18716 /^X\(\/\).*/{
18717 s//\1/
18718 q
18719 }
18720 s/.*/./; q'`
18721 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18722 # echo "creating $dirpart/$file"
18723 echo '# dummy' > "$dirpart/$file"
18724 done
18725 done
18726 }
18727 ;;
18728 "libtool":C)
18729
18730 # See if we are running on zsh, and set the options that allow our
18731 # commands through without removal of \ escapes.
18732 if test -n "${ZSH_VERSION+set}"; then
18733 setopt NO_GLOB_SUBST
18734 fi
18735
18736 cfgfile=${ofile}T
18737 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18738 $RM "$cfgfile"
18739
18740 cat <<_LT_EOF >> "$cfgfile"
18741 #! $SHELL
18742 # Generated automatically by $as_me ($PACKAGE) $VERSION
18743 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18744 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18745
18746 # Provide generalized library-building support services.
18747 # Written by Gordon Matzigkeit, 1996
18748
18749 # Copyright (C) 2014 Free Software Foundation, Inc.
18750 # This is free software; see the source for copying conditions. There is NO
18751 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18752
18753 # GNU Libtool is free software; you can redistribute it and/or modify
18754 # it under the terms of the GNU General Public License as published by
18755 # the Free Software Foundation; either version 2 of of the License, or
18756 # (at your option) any later version.
18757 #
18758 # As a special exception to the GNU General Public License, if you
18759 # distribute this file as part of a program or library that is built
18760 # using GNU Libtool, you may include this file under the same
18761 # distribution terms that you use for the rest of that program.
18762 #
18763 # GNU Libtool is distributed in the hope that it will be useful, but
18764 # WITHOUT ANY WARRANTY; without even the implied warranty of
18765 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18766 # GNU General Public License for more details.
18767 #
18768 # You should have received a copy of the GNU General Public License
18769 # along with this program. If not, see <http://www.gnu.org/licenses/>.
18770
18771
18772 # The names of the tagged configurations supported by this script.
18773 available_tags=''
18774
18775 # Configured defaults for sys_lib_dlsearch_path munging.
18776 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18777
18778 # ### BEGIN LIBTOOL CONFIG
18779
18780 # Which release of libtool.m4 was used?
18781 macro_version=$macro_version
18782 macro_revision=$macro_revision
18783
18784 # Whether or not to build static libraries.
18785 build_old_libs=$enable_static
18786
18787 # Assembler program.
18788 AS=$lt_AS
18789
18790 # DLL creation program.
18791 DLLTOOL=$lt_DLLTOOL
18792
18793 # Object dumper program.
18794 OBJDUMP=$lt_OBJDUMP
18795
18796 # Whether or not to build shared libraries.
18797 build_libtool_libs=$enable_shared
18798
18799 # What type of objects to build.
18800 pic_mode=$pic_mode
18801
18802 # Whether or not to optimize for fast installation.
18803 fast_install=$enable_fast_install
18804
18805 # Shared archive member basename,for filename based shared library versioning on AIX.
18806 shared_archive_member_spec=$shared_archive_member_spec
18807
18808 # Shell to use when invoking shell scripts.
18809 SHELL=$lt_SHELL
18810
18811 # An echo program that protects backslashes.
18812 ECHO=$lt_ECHO
18813
18814 # The PATH separator for the build system.
18815 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18816
18817 # The host system.
18818 host_alias=$host_alias
18819 host=$host
18820 host_os=$host_os
18821
18822 # The build system.
18823 build_alias=$build_alias
18824 build=$build
18825 build_os=$build_os
18826
18827 # A sed program that does not truncate output.
18828 SED=$lt_SED
18829
18830 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18831 Xsed="\$SED -e 1s/^X//"
18832
18833 # A grep program that handles long lines.
18834 GREP=$lt_GREP
18835
18836 # An ERE matcher.
18837 EGREP=$lt_EGREP
18838
18839 # A literal string matcher.
18840 FGREP=$lt_FGREP
18841
18842 # A BSD- or MS-compatible name lister.
18843 NM=$lt_NM
18844
18845 # Whether we need soft or hard links.
18846 LN_S=$lt_LN_S
18847
18848 # What is the maximum length of a command?
18849 max_cmd_len=$max_cmd_len
18850
18851 # Object file suffix (normally "o").
18852 objext=$ac_objext
18853
18854 # Executable file suffix (normally "").
18855 exeext=$exeext
18856
18857 # whether the shell understands "unset".
18858 lt_unset=$lt_unset
18859
18860 # turn spaces into newlines.
18861 SP2NL=$lt_lt_SP2NL
18862
18863 # turn newlines into spaces.
18864 NL2SP=$lt_lt_NL2SP
18865
18866 # convert \$build file names to \$host format.
18867 to_host_file_cmd=$lt_cv_to_host_file_cmd
18868
18869 # convert \$build files to toolchain format.
18870 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18871
18872 # Method to check whether dependent libraries are shared objects.
18873 deplibs_check_method=$lt_deplibs_check_method
18874
18875 # Command to use when deplibs_check_method = "file_magic".
18876 file_magic_cmd=$lt_file_magic_cmd
18877
18878 # How to find potential files when deplibs_check_method = "file_magic".
18879 file_magic_glob=$lt_file_magic_glob
18880
18881 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18882 want_nocaseglob=$lt_want_nocaseglob
18883
18884 # Command to associate shared and link libraries.
18885 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18886
18887 # The archiver.
18888 AR=$lt_AR
18889
18890 # Flags to create an archive.
18891 AR_FLAGS=$lt_AR_FLAGS
18892
18893 # How to feed a file listing to the archiver.
18894 archiver_list_spec=$lt_archiver_list_spec
18895
18896 # A symbol stripping program.
18897 STRIP=$lt_STRIP
18898
18899 # Commands used to install an old-style archive.
18900 RANLIB=$lt_RANLIB
18901 old_postinstall_cmds=$lt_old_postinstall_cmds
18902 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18903
18904 # Whether to use a lock for old archive extraction.
18905 lock_old_archive_extraction=$lock_old_archive_extraction
18906
18907 # A C compiler.
18908 LTCC=$lt_CC
18909
18910 # LTCC compiler flags.
18911 LTCFLAGS=$lt_CFLAGS
18912
18913 # Take the output of nm and produce a listing of raw symbols and C names.
18914 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18915
18916 # Transform the output of nm in a proper C declaration.
18917 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18918
18919 # Transform the output of nm into a list of symbols to manually relocate.
18920 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18921
18922 # Transform the output of nm in a C name address pair.
18923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18924
18925 # Transform the output of nm in a C name address pair when lib prefix is needed.
18926 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18927
18928 # The name lister interface.
18929 nm_interface=$lt_lt_cv_nm_interface
18930
18931 # Specify filename containing input files for \$NM.
18932 nm_file_list_spec=$lt_nm_file_list_spec
18933
18934 # The root where to search for dependent libraries,and where our libraries should be installed.
18935 lt_sysroot=$lt_sysroot
18936
18937 # Command to truncate a binary pipe.
18938 lt_truncate_bin=$lt_lt_cv_truncate_bin
18939
18940 # The name of the directory that contains temporary libtool files.
18941 objdir=$objdir
18942
18943 # Used to examine libraries when file_magic_cmd begins with "file".
18944 MAGIC_CMD=$MAGIC_CMD
18945
18946 # Must we lock files when doing compilation?
18947 need_locks=$lt_need_locks
18948
18949 # Manifest tool.
18950 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18951
18952 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18953 DSYMUTIL=$lt_DSYMUTIL
18954
18955 # Tool to change global to local symbols on Mac OS X.
18956 NMEDIT=$lt_NMEDIT
18957
18958 # Tool to manipulate fat objects and archives on Mac OS X.
18959 LIPO=$lt_LIPO
18960
18961 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18962 OTOOL=$lt_OTOOL
18963
18964 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18965 OTOOL64=$lt_OTOOL64
18966
18967 # Old archive suffix (normally "a").
18968 libext=$libext
18969
18970 # Shared library suffix (normally ".so").
18971 shrext_cmds=$lt_shrext_cmds
18972
18973 # The commands to extract the exported symbol list from a shared archive.
18974 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18975
18976 # Variables whose values should be saved in libtool wrapper scripts and
18977 # restored at link time.
18978 variables_saved_for_relink=$lt_variables_saved_for_relink
18979
18980 # Do we need the "lib" prefix for modules?
18981 need_lib_prefix=$need_lib_prefix
18982
18983 # Do we need a version for libraries?
18984 need_version=$need_version
18985
18986 # Library versioning type.
18987 version_type=$version_type
18988
18989 # Shared library runtime path variable.
18990 runpath_var=$runpath_var
18991
18992 # Shared library path variable.
18993 shlibpath_var=$shlibpath_var
18994
18995 # Is shlibpath searched before the hard-coded library search path?
18996 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18997
18998 # Format of library name prefix.
18999 libname_spec=$lt_libname_spec
19000
19001 # List of archive names. First name is the real one, the rest are links.
19002 # The last name is the one that the linker finds with -lNAME
19003 library_names_spec=$lt_library_names_spec
19004
19005 # The coded name of the library, if different from the real name.
19006 soname_spec=$lt_soname_spec
19007
19008 # Permission mode override for installation of shared libraries.
19009 install_override_mode=$lt_install_override_mode
19010
19011 # Command to use after installation of a shared archive.
19012 postinstall_cmds=$lt_postinstall_cmds
19013
19014 # Command to use after uninstallation of a shared archive.
19015 postuninstall_cmds=$lt_postuninstall_cmds
19016
19017 # Commands used to finish a libtool library installation in a directory.
19018 finish_cmds=$lt_finish_cmds
19019
19020 # As "finish_cmds", except a single script fragment to be evaled but
19021 # not shown.
19022 finish_eval=$lt_finish_eval
19023
19024 # Whether we should hardcode library paths into libraries.
19025 hardcode_into_libs=$hardcode_into_libs
19026
19027 # Compile-time system search path for libraries.
19028 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19029
19030 # Detected run-time system search path for libraries.
19031 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
19032
19033 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
19034 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
19035
19036 # Whether dlopen is supported.
19037 dlopen_support=$enable_dlopen
19038
19039 # Whether dlopen of programs is supported.
19040 dlopen_self=$enable_dlopen_self
19041
19042 # Whether dlopen of statically linked programs is supported.
19043 dlopen_self_static=$enable_dlopen_self_static
19044
19045 # Commands to strip libraries.
19046 old_striplib=$lt_old_striplib
19047 striplib=$lt_striplib
19048
19049
19050 # The linker used to build libraries.
19051 LD=$lt_LD
19052
19053 # How to create reloadable object files.
19054 reload_flag=$lt_reload_flag
19055 reload_cmds=$lt_reload_cmds
19056
19057 # Commands used to build an old-style archive.
19058 old_archive_cmds=$lt_old_archive_cmds
19059
19060 # A language specific compiler.
19061 CC=$lt_compiler
19062
19063 # Is the compiler the GNU compiler?
19064 with_gcc=$GCC
19065
19066 # Compiler flag to turn off builtin functions.
19067 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19068
19069 # Additional compiler flags for building library objects.
19070 pic_flag=$lt_lt_prog_compiler_pic
19071
19072 # How to pass a linker flag through the compiler.
19073 wl=$lt_lt_prog_compiler_wl
19074
19075 # Compiler flag to prevent dynamic linking.
19076 link_static_flag=$lt_lt_prog_compiler_static
19077
19078 # Does compiler simultaneously support -c and -o options?
19079 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19080
19081 # Whether or not to add -lc for building shared libraries.
19082 build_libtool_need_lc=$archive_cmds_need_lc
19083
19084 # Whether or not to disallow shared libs when runtime libs are static.
19085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19086
19087 # Compiler flag to allow reflexive dlopens.
19088 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19089
19090 # Compiler flag to generate shared objects directly from archives.
19091 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19092
19093 # Whether the compiler copes with passing no objects directly.
19094 compiler_needs_object=$lt_compiler_needs_object
19095
19096 # Create an old-style archive from a shared archive.
19097 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19098
19099 # Create a temporary old-style archive to link instead of a shared archive.
19100 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19101
19102 # Commands used to build a shared archive.
19103 archive_cmds=$lt_archive_cmds
19104 archive_expsym_cmds=$lt_archive_expsym_cmds
19105
19106 # Commands used to build a loadable module if different from building
19107 # a shared archive.
19108 module_cmds=$lt_module_cmds
19109 module_expsym_cmds=$lt_module_expsym_cmds
19110
19111 # Whether we are building with GNU ld or not.
19112 with_gnu_ld=$lt_with_gnu_ld
19113
19114 # Flag that allows shared libraries with undefined symbols to be built.
19115 allow_undefined_flag=$lt_allow_undefined_flag
19116
19117 # Flag that enforces no undefined symbols.
19118 no_undefined_flag=$lt_no_undefined_flag
19119
19120 # Flag to hardcode \$libdir into a binary during linking.
19121 # This must work even if \$libdir does not exist
19122 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19123
19124 # Whether we need a single "-rpath" flag with a separated argument.
19125 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19126
19127 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19128 # DIR into the resulting binary.
19129 hardcode_direct=$hardcode_direct
19130
19131 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19132 # DIR into the resulting binary and the resulting library dependency is
19133 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19134 # library is relocated.
19135 hardcode_direct_absolute=$hardcode_direct_absolute
19136
19137 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19138 # into the resulting binary.
19139 hardcode_minus_L=$hardcode_minus_L
19140
19141 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19142 # into the resulting binary.
19143 hardcode_shlibpath_var=$hardcode_shlibpath_var
19144
19145 # Set to "yes" if building a shared library automatically hardcodes DIR
19146 # into the library and all subsequent libraries and executables linked
19147 # against it.
19148 hardcode_automatic=$hardcode_automatic
19149
19150 # Set to yes if linker adds runtime paths of dependent libraries
19151 # to runtime path list.
19152 inherit_rpath=$inherit_rpath
19153
19154 # Whether libtool must link a program against all its dependency libraries.
19155 link_all_deplibs=$link_all_deplibs
19156
19157 # Set to "yes" if exported symbols are required.
19158 always_export_symbols=$always_export_symbols
19159
19160 # The commands to list exported symbols.
19161 export_symbols_cmds=$lt_export_symbols_cmds
19162
19163 # Symbols that should not be listed in the preloaded symbols.
19164 exclude_expsyms=$lt_exclude_expsyms
19165
19166 # Symbols that must always be exported.
19167 include_expsyms=$lt_include_expsyms
19168
19169 # Commands necessary for linking programs (against libraries) with templates.
19170 prelink_cmds=$lt_prelink_cmds
19171
19172 # Commands necessary for finishing linking programs.
19173 postlink_cmds=$lt_postlink_cmds
19174
19175 # Specify filename containing input files.
19176 file_list_spec=$lt_file_list_spec
19177
19178 # How to hardcode a shared library path into an executable.
19179 hardcode_action=$hardcode_action
19180
19181 # ### END LIBTOOL CONFIG
19182
19183 _LT_EOF
19184
19185 cat <<'_LT_EOF' >> "$cfgfile"
19186
19187 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19188
19189 # func_munge_path_list VARIABLE PATH
19190 # -----------------------------------
19191 # VARIABLE is name of variable containing _space_ separated list of
19192 # directories to be munged by the contents of PATH, which is string
19193 # having a format:
19194 # "DIR[:DIR]:"
19195 # string "DIR[ DIR]" will be prepended to VARIABLE
19196 # ":DIR[:DIR]"
19197 # string "DIR[ DIR]" will be appended to VARIABLE
19198 # "DIRP[:DIRP]::[DIRA:]DIRA"
19199 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19200 # "DIRA[ DIRA]" will be appended to VARIABLE
19201 # "DIR[:DIR]"
19202 # VARIABLE will be replaced by "DIR[ DIR]"
19203 func_munge_path_list ()
19204 {
19205 case x$2 in
19206 x)
19207 ;;
19208 *:)
19209 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19210 ;;
19211 x:*)
19212 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19213 ;;
19214 *::*)
19215 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19216 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19217 ;;
19218 *)
19219 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19220 ;;
19221 esac
19222 }
19223
19224
19225 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
19226 func_cc_basename ()
19227 {
19228 for cc_temp in $*""; do
19229 case $cc_temp in
19230 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19231 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19232 \-*) ;;
19233 *) break;;
19234 esac
19235 done
19236 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19237 }
19238
19239
19240 # ### END FUNCTIONS SHARED WITH CONFIGURE
19241
19242 _LT_EOF
19243
19244 case $host_os in
19245 aix3*)
19246 cat <<\_LT_EOF >> "$cfgfile"
19247 # AIX sometimes has problems with the GCC collect2 program. For some
19248 # reason, if we set the COLLECT_NAMES environment variable, the problems
19249 # vanish in a puff of smoke.
19250 if test set != "${COLLECT_NAMES+set}"; then
19251 COLLECT_NAMES=
19252 export COLLECT_NAMES
19253 fi
19254 _LT_EOF
19255 ;;
19256 esac
19257
19258
19259 ltmain=$ac_aux_dir/ltmain.sh
19260
19261
19262 # We use sed instead of cat because bash on DJGPP gets confused if
19263 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19264 # text mode, it properly converts lines to CR/LF. This bash problem
19265 # is reportedly fixed, but why not run on old versions too?
19266 sed '$q' "$ltmain" >> "$cfgfile" \
19267 || (rm -f "$cfgfile"; exit 1)
19268
19269 mv -f "$cfgfile" "$ofile" ||
19270 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19271 chmod +x "$ofile"
19272
19273 ;;
19274 "$ac_stdint_h":C)
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
19276 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
19277 ac_stdint=$tmp/_stdint.h
19278
19279 echo "#ifndef" $_ac_stdint_h >$ac_stdint
19280 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
19281 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
19282 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
19283 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
19284 if test "_$ac_cv_header_stdint_t" != "_" ; then
19285 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
19286 echo "#include <stdint.h>" >>$ac_stdint
19287 echo "#endif" >>$ac_stdint
19288 echo "#endif" >>$ac_stdint
19289 else
19290
19291 cat >>$ac_stdint <<STDINT_EOF
19292
19293 /* ................... shortcircuit part ........................... */
19294
19295 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
19296 #include <stdint.h>
19297 #else
19298 #include <stddef.h>
19299
19300 /* .................... configured part ............................ */
19301
19302 STDINT_EOF
19303
19304 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
19305 if test "_$ac_cv_header_stdint_x" != "_" ; then
19306 ac_header="$ac_cv_header_stdint_x"
19307 echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
19308 else
19309 echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
19310 fi
19311
19312 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
19313 if test "_$ac_cv_header_stdint_o" != "_" ; then
19314 ac_header="$ac_cv_header_stdint_o"
19315 echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
19316 else
19317 echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
19318 fi
19319
19320 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
19321 if test "_$ac_cv_header_stdint_u" != "_" ; then
19322 ac_header="$ac_cv_header_stdint_u"
19323 echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
19324 else
19325 echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
19326 fi
19327
19328 echo "" >>$ac_stdint
19329
19330 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
19331 echo "#include <$ac_header>" >>$ac_stdint
19332 echo "" >>$ac_stdint
19333 fi fi
19334
19335 echo "/* which 64bit typedef has been found */" >>$ac_stdint
19336 if test "$ac_cv_type_uint64_t" = "yes" ; then
19337 echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
19338 else
19339 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
19340 fi
19341 if test "$ac_cv_type_u_int64_t" = "yes" ; then
19342 echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
19343 else
19344 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
19345 fi
19346 echo "" >>$ac_stdint
19347
19348 echo "/* which type model has been detected */" >>$ac_stdint
19349 if test "_$ac_cv_char_data_model" != "_" ; then
19350 echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
19351 echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
19352 else
19353 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
19354 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
19355 fi
19356 echo "" >>$ac_stdint
19357
19358 echo "/* whether int_least types were detected */" >>$ac_stdint
19359 if test "$ac_cv_type_int_least32_t" = "yes"; then
19360 echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
19361 else
19362 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
19363 fi
19364 echo "/* whether int_fast types were detected */" >>$ac_stdint
19365 if test "$ac_cv_type_int_fast32_t" = "yes"; then
19366 echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
19367 else
19368 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
19369 fi
19370 echo "/* whether intmax_t type was detected */" >>$ac_stdint
19371 if test "$ac_cv_type_intmax_t" = "yes"; then
19372 echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
19373 else
19374 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
19375 fi
19376 echo "" >>$ac_stdint
19377
19378 cat >>$ac_stdint <<STDINT_EOF
19379 /* .................... detections part ............................ */
19380
19381 /* whether we need to define bitspecific types from compiler base types */
19382 #ifndef _STDINT_HEADER_INTPTR
19383 #ifndef _STDINT_HEADER_UINT32
19384 #ifndef _STDINT_HEADER_U_INT32
19385 #define _STDINT_NEED_INT_MODEL_T
19386 #else
19387 #define _STDINT_HAVE_U_INT_TYPES
19388 #endif
19389 #endif
19390 #endif
19391
19392 #ifdef _STDINT_HAVE_U_INT_TYPES
19393 #undef _STDINT_NEED_INT_MODEL_T
19394 #endif
19395
19396 #ifdef _STDINT_CHAR_MODEL
19397 #if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
19398 #ifndef _STDINT_BYTE_MODEL
19399 #define _STDINT_BYTE_MODEL 12
19400 #endif
19401 #endif
19402 #endif
19403
19404 #ifndef _STDINT_HAVE_INT_LEAST32_T
19405 #define _STDINT_NEED_INT_LEAST_T
19406 #endif
19407
19408 #ifndef _STDINT_HAVE_INT_FAST32_T
19409 #define _STDINT_NEED_INT_FAST_T
19410 #endif
19411
19412 #ifndef _STDINT_HEADER_INTPTR
19413 #define _STDINT_NEED_INTPTR_T
19414 #ifndef _STDINT_HAVE_INTMAX_T
19415 #define _STDINT_NEED_INTMAX_T
19416 #endif
19417 #endif
19418
19419
19420 /* .................... definition part ............................ */
19421
19422 /* some system headers have good uint64_t */
19423 #ifndef _HAVE_UINT64_T
19424 #if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
19425 #define _HAVE_UINT64_T
19426 #elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
19427 #define _HAVE_UINT64_T
19428 typedef u_int64_t uint64_t;
19429 #endif
19430 #endif
19431
19432 #ifndef _HAVE_UINT64_T
19433 /* .. here are some common heuristics using compiler runtime specifics */
19434 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
19435 #define _HAVE_UINT64_T
19436 #define _HAVE_LONGLONG_UINT64_T
19437 typedef long long int64_t;
19438 typedef unsigned long long uint64_t;
19439
19440 #elif !defined __STRICT_ANSI__
19441 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19442 #define _HAVE_UINT64_T
19443 typedef __int64 int64_t;
19444 typedef unsigned __int64 uint64_t;
19445
19446 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
19447 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
19448 #if !defined _NO_LONGLONG
19449 #define _HAVE_UINT64_T
19450 #define _HAVE_LONGLONG_UINT64_T
19451 typedef long long int64_t;
19452 typedef unsigned long long uint64_t;
19453 #endif
19454
19455 #elif defined __alpha || (defined __mips && defined _ABIN32)
19456 #if !defined _NO_LONGLONG
19457 typedef long int64_t;
19458 typedef unsigned long uint64_t;
19459 #endif
19460 /* compiler/cpu type to define int64_t */
19461 #endif
19462 #endif
19463 #endif
19464
19465 #if defined _STDINT_HAVE_U_INT_TYPES
19466 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
19467 typedef u_int8_t uint8_t;
19468 typedef u_int16_t uint16_t;
19469 typedef u_int32_t uint32_t;
19470
19471 /* glibc compatibility */
19472 #ifndef __int8_t_defined
19473 #define __int8_t_defined
19474 #endif
19475 #endif
19476
19477 #ifdef _STDINT_NEED_INT_MODEL_T
19478 /* we must guess all the basic types. Apart from byte-adressable system, */
19479 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
19480 /* (btw, those nibble-addressable systems are way off, or so we assume) */
19481
19482
19483 #if defined _STDINT_BYTE_MODEL
19484 #if _STDINT_LONG_MODEL+0 == 242
19485 /* 2:4:2 = IP16 = a normal 16-bit system */
19486 typedef unsigned char uint8_t;
19487 typedef unsigned short uint16_t;
19488 typedef unsigned long uint32_t;
19489 #ifndef __int8_t_defined
19490 #define __int8_t_defined
19491 typedef char int8_t;
19492 typedef short int16_t;
19493 typedef long int32_t;
19494 #endif
19495 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
19496 /* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
19497 /* 4:4:4 = ILP32 = a normal 32-bit system */
19498 typedef unsigned char uint8_t;
19499 typedef unsigned short uint16_t;
19500 typedef unsigned int uint32_t;
19501 #ifndef __int8_t_defined
19502 #define __int8_t_defined
19503 typedef char int8_t;
19504 typedef short int16_t;
19505 typedef int int32_t;
19506 #endif
19507 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
19508 /* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
19509 /* 4:8:8 = LP64 = a normal 64-bit system */
19510 typedef unsigned char uint8_t;
19511 typedef unsigned short uint16_t;
19512 typedef unsigned int uint32_t;
19513 #ifndef __int8_t_defined
19514 #define __int8_t_defined
19515 typedef char int8_t;
19516 typedef short int16_t;
19517 typedef int int32_t;
19518 #endif
19519 /* this system has a "long" of 64bit */
19520 #ifndef _HAVE_UINT64_T
19521 #define _HAVE_UINT64_T
19522 typedef unsigned long uint64_t;
19523 typedef long int64_t;
19524 #endif
19525 #elif _STDINT_LONG_MODEL+0 == 448
19526 /* LLP64 a 64-bit system derived from a 32-bit system */
19527 typedef unsigned char uint8_t;
19528 typedef unsigned short uint16_t;
19529 typedef unsigned int uint32_t;
19530 #ifndef __int8_t_defined
19531 #define __int8_t_defined
19532 typedef char int8_t;
19533 typedef short int16_t;
19534 typedef int int32_t;
19535 #endif
19536 /* assuming the system has a "long long" */
19537 #ifndef _HAVE_UINT64_T
19538 #define _HAVE_UINT64_T
19539 #define _HAVE_LONGLONG_UINT64_T
19540 typedef unsigned long long uint64_t;
19541 typedef long long int64_t;
19542 #endif
19543 #else
19544 #define _STDINT_NO_INT32_T
19545 #endif
19546 #else
19547 #define _STDINT_NO_INT8_T
19548 #define _STDINT_NO_INT32_T
19549 #endif
19550 #endif
19551
19552 /*
19553 * quote from SunOS-5.8 sys/inttypes.h:
19554 * Use at your own risk. As of February 1996, the committee is squarely
19555 * behind the fixed sized types; the "least" and "fast" types are still being
19556 * discussed. The probability that the "fast" types may be removed before
19557 * the standard is finalized is high enough that they are not currently
19558 * implemented.
19559 */
19560
19561 #if defined _STDINT_NEED_INT_LEAST_T
19562 typedef int8_t int_least8_t;
19563 typedef int16_t int_least16_t;
19564 typedef int32_t int_least32_t;
19565 #ifdef _HAVE_UINT64_T
19566 typedef int64_t int_least64_t;
19567 #endif
19568
19569 typedef uint8_t uint_least8_t;
19570 typedef uint16_t uint_least16_t;
19571 typedef uint32_t uint_least32_t;
19572 #ifdef _HAVE_UINT64_T
19573 typedef uint64_t uint_least64_t;
19574 #endif
19575 /* least types */
19576 #endif
19577
19578 #if defined _STDINT_NEED_INT_FAST_T
19579 typedef int8_t int_fast8_t;
19580 typedef int int_fast16_t;
19581 typedef int32_t int_fast32_t;
19582 #ifdef _HAVE_UINT64_T
19583 typedef int64_t int_fast64_t;
19584 #endif
19585
19586 typedef uint8_t uint_fast8_t;
19587 typedef unsigned uint_fast16_t;
19588 typedef uint32_t uint_fast32_t;
19589 #ifdef _HAVE_UINT64_T
19590 typedef uint64_t uint_fast64_t;
19591 #endif
19592 /* fast types */
19593 #endif
19594
19595 #ifdef _STDINT_NEED_INTMAX_T
19596 #ifdef _HAVE_UINT64_T
19597 typedef int64_t intmax_t;
19598 typedef uint64_t uintmax_t;
19599 #else
19600 typedef long intmax_t;
19601 typedef unsigned long uintmax_t;
19602 #endif
19603 #endif
19604
19605 #ifdef _STDINT_NEED_INTPTR_T
19606 #ifndef __intptr_t_defined
19607 #define __intptr_t_defined
19608 /* we encourage using "long" to store pointer values, never use "int" ! */
19609 #if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19610 typedef unsigned int uintptr_t;
19611 typedef int intptr_t;
19612 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19613 typedef unsigned long uintptr_t;
19614 typedef long intptr_t;
19615 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19616 typedef uint64_t uintptr_t;
19617 typedef int64_t intptr_t;
19618 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19619 typedef unsigned long uintptr_t;
19620 typedef long intptr_t;
19621 #endif
19622 #endif
19623 #endif
19624
19625 /* The ISO C99 standard specifies that in C++ implementations these
19626 should only be defined if explicitly requested. */
19627 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19628 #ifndef UINT32_C
19629
19630 /* Signed. */
19631 # define INT8_C(c) c
19632 # define INT16_C(c) c
19633 # define INT32_C(c) c
19634 # ifdef _HAVE_LONGLONG_UINT64_T
19635 # define INT64_C(c) c ## L
19636 # else
19637 # define INT64_C(c) c ## LL
19638 # endif
19639
19640 /* Unsigned. */
19641 # define UINT8_C(c) c ## U
19642 # define UINT16_C(c) c ## U
19643 # define UINT32_C(c) c ## U
19644 # ifdef _HAVE_LONGLONG_UINT64_T
19645 # define UINT64_C(c) c ## UL
19646 # else
19647 # define UINT64_C(c) c ## ULL
19648 # endif
19649
19650 /* Maximal type. */
19651 # ifdef _HAVE_LONGLONG_UINT64_T
19652 # define INTMAX_C(c) c ## L
19653 # define UINTMAX_C(c) c ## UL
19654 # else
19655 # define INTMAX_C(c) c ## LL
19656 # define UINTMAX_C(c) c ## ULL
19657 # endif
19658
19659 /* literalnumbers */
19660 #endif
19661 #endif
19662
19663 /* These limits are merily those of a two complement byte-oriented system */
19664
19665 /* Minimum of signed integral types. */
19666 # define INT8_MIN (-128)
19667 # define INT16_MIN (-32767-1)
19668 # define INT32_MIN (-2147483647-1)
19669 # define INT64_MIN (-__INT64_C(9223372036854775807)-1)
19670 /* Maximum of signed integral types. */
19671 # define INT8_MAX (127)
19672 # define INT16_MAX (32767)
19673 # define INT32_MAX (2147483647)
19674 # define INT64_MAX (__INT64_C(9223372036854775807))
19675
19676 /* Maximum of unsigned integral types. */
19677 # define UINT8_MAX (255)
19678 # define UINT16_MAX (65535)
19679 # define UINT32_MAX (4294967295U)
19680 # define UINT64_MAX (__UINT64_C(18446744073709551615))
19681
19682 /* Minimum of signed integral types having a minimum size. */
19683 # define INT_LEAST8_MIN INT8_MIN
19684 # define INT_LEAST16_MIN INT16_MIN
19685 # define INT_LEAST32_MIN INT32_MIN
19686 # define INT_LEAST64_MIN INT64_MIN
19687 /* Maximum of signed integral types having a minimum size. */
19688 # define INT_LEAST8_MAX INT8_MAX
19689 # define INT_LEAST16_MAX INT16_MAX
19690 # define INT_LEAST32_MAX INT32_MAX
19691 # define INT_LEAST64_MAX INT64_MAX
19692
19693 /* Maximum of unsigned integral types having a minimum size. */
19694 # define UINT_LEAST8_MAX UINT8_MAX
19695 # define UINT_LEAST16_MAX UINT16_MAX
19696 # define UINT_LEAST32_MAX UINT32_MAX
19697 # define UINT_LEAST64_MAX UINT64_MAX
19698
19699 /* shortcircuit*/
19700 #endif
19701 /* once */
19702 #endif
19703 #endif
19704 STDINT_EOF
19705 fi
19706 if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
19708 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
19709 else
19710 ac_dir=`$as_dirname -- "$ac_stdint_h" ||
19711 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19712 X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
19713 X"$ac_stdint_h" : 'X\(//\)$' \| \
19714 X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
19715 $as_echo X"$ac_stdint_h" |
19716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19717 s//\1/
19718 q
19719 }
19720 /^X\(\/\/\)[^/].*/{
19721 s//\1/
19722 q
19723 }
19724 /^X\(\/\/\)$/{
19725 s//\1/
19726 q
19727 }
19728 /^X\(\/\).*/{
19729 s//\1/
19730 q
19731 }
19732 s/.*/./; q'`
19733 as_dir="$ac_dir"; as_fn_mkdir_p
19734 rm -f $ac_stdint_h
19735 mv $ac_stdint $ac_stdint_h
19736 fi
19737 ;;
19738
19739 esac
19740 done # for ac_tag
19741
19742
19743 as_fn_exit 0
19744 _ACEOF
19745 ac_clean_files=$ac_clean_files_save
19746
19747 test $ac_write_fail = 0 ||
19748 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19749
19750
19751 # configure is writing to config.log, and then calls config.status.
19752 # config.status does its own redirection, appending to config.log.
19753 # Unfortunately, on DOS this fails, as config.log is still kept open
19754 # by configure, so config.status won't be able to write to it; its
19755 # output is simply discarded. So we exec the FD to /dev/null,
19756 # effectively closing config.log, so it can be properly (re)opened and
19757 # appended to by config.status. When coming back to configure, we
19758 # need to make the FD available again.
19759 if test "$no_create" != yes; then
19760 ac_cs_success=:
19761 ac_config_status_args=
19762 test "$silent" = yes &&
19763 ac_config_status_args="$ac_config_status_args --quiet"
19764 exec 5>/dev/null
19765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19766 exec 5>>config.log
19767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19768 # would make configure fail if this is the last instruction.
19769 $ac_cs_success || as_fn_exit 1
19770 fi
19771 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19772 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19773 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19774 fi
19775
19776