update to 2.12.1
[platform/upstream/fontconfig.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for fontconfig 2.12.1.
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@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.1'
595 PACKAGE_STRING='fontconfig 2.12.1'
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_LIBS
671 FREETYPE_CFLAGS
672 ICONV_LIBS
673 ICONV_CFLAGS
674 ENABLE_SHARED_FALSE
675 ENABLE_SHARED_TRUE
676 CROSS_COMPILING_FALSE
677 CROSS_COMPILING_TRUE
678 EXEEXT_FOR_BUILD
679 CC_FOR_BUILD
680 WARN_CFLAGS
681 MS_LIB_AVAILABLE_FALSE
682 MS_LIB_AVAILABLE_TRUE
683 ms_librarian
684 OS_WIN32_FALSE
685 OS_WIN32_TRUE
686 LIBT_CURRENT_MINUS_AGE
687 LIBT_VERSION_INFO
688 LIBT_REVISION
689 LIBT_CURRENT
690 LT_SYS_LIBRARY_PATH
691 OTOOL64
692 OTOOL
693 LIPO
694 NMEDIT
695 DSYMUTIL
696 MANIFEST_TOOL
697 RANLIB
698 ac_ct_AR
699 AR
700 NM
701 ac_ct_DUMPBIN
702 DUMPBIN
703 LD
704 FGREP
705 SED
706 host_os
707 host_vendor
708 host_cpu
709 host
710 build_os
711 build_vendor
712 build_cpu
713 build
714 LIBTOOL
715 OBJDUMP
716 DLLTOOL
717 AS
718 RM
719 HAVE_PYTHON_FALSE
720 HAVE_PYTHON_TRUE
721 pkgpyexecdir
722 pyexecdir
723 pkgpythondir
724 pythondir
725 PYTHON_PLATFORM
726 PYTHON_EXEC_PREFIX
727 PYTHON_PREFIX
728 PYTHON_VERSION
729 PYTHON
730 GPERF
731 GIT
732 pkgconfigdir
733 PKG_CONFIG_LIBDIR
734 PKG_CONFIG_PATH
735 PKG_CONFIG
736 LN_S
737 EGREP
738 GREP
739 CPP
740 am__fastdepCC_FALSE
741 am__fastdepCC_TRUE
742 CCDEPMODE
743 am__nodep
744 AMDEPBACKSLASH
745 AMDEP_FALSE
746 AMDEP_TRUE
747 am__quote
748 am__include
749 DEPDIR
750 OBJEXT
751 EXEEXT
752 ac_ct_CC
753 CPPFLAGS
754 LDFLAGS
755 CFLAGS
756 CC
757 AM_BACKSLASH
758 AM_DEFAULT_VERBOSITY
759 AM_DEFAULT_V
760 AM_V
761 am__untar
762 am__tar
763 AMTAR
764 am__leading_dot
765 SET_MAKE
766 AWK
767 mkdir_p
768 MKDIR_P
769 INSTALL_STRIP_PROGRAM
770 STRIP
771 install_sh
772 MAKEINFO
773 AUTOHEADER
774 AUTOMAKE
775 AUTOCONF
776 ACLOCAL
777 VERSION
778 PACKAGE
779 CYGPATH_W
780 am__isrc
781 INSTALL_DATA
782 INSTALL_SCRIPT
783 INSTALL_PROGRAM
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_silent_rules
826 enable_dependency_tracking
827 enable_largefile
828 with_pkgconfigdir
829 enable_static
830 enable_shared
831 with_pic
832 enable_fast_install
833 with_aix_soname
834 with_gnu_ld
835 with_sysroot
836 enable_libtool_lock
837 with_arch
838 enable_iconv
839 with_libiconv
840 with_libiconv_includes
841 with_libiconv_lib
842 with_expat
843 with_expat_includes
844 with_expat_lib
845 enable_libxml2
846 with_default_hinting
847 with_default_fonts
848 with_add_fonts
849 with_cache_dir
850 with_templatedir
851 with_baseconfigdir
852 with_configdir
853 with_xmldir
854 enable_docs
855 '
856       ac_precious_vars='build_alias
857 host_alias
858 target_alias
859 CC
860 CFLAGS
861 LDFLAGS
862 LIBS
863 CPPFLAGS
864 CPP
865 PKG_CONFIG
866 PKG_CONFIG_PATH
867 PKG_CONFIG_LIBDIR
868 PYTHON
869 LT_SYS_LIBRARY_PATH
870 CC_FOR_BUILD
871 FREETYPE_CFLAGS
872 FREETYPE_LIBS
873 EXPAT_CFLAGS
874 EXPAT_LIBS
875 LIBXML2_CFLAGS
876 LIBXML2_LIBS'
877
878
879 # Initialize some variables set by options.
880 ac_init_help=
881 ac_init_version=false
882 ac_unrecognized_opts=
883 ac_unrecognized_sep=
884 # The variables have the same names as the options, with
885 # dashes changed to underlines.
886 cache_file=/dev/null
887 exec_prefix=NONE
888 no_create=
889 no_recursion=
890 prefix=NONE
891 program_prefix=NONE
892 program_suffix=NONE
893 program_transform_name=s,x,x,
894 silent=
895 site=
896 srcdir=
897 verbose=
898 x_includes=NONE
899 x_libraries=NONE
900
901 # Installation directory options.
902 # These are left unexpanded so users can "make install exec_prefix=/foo"
903 # and all the variables that are supposed to be based on exec_prefix
904 # by default will actually change.
905 # Use braces instead of parens because sh, perl, etc. also accept them.
906 # (The list follows the same order as the GNU Coding Standards.)
907 bindir='${exec_prefix}/bin'
908 sbindir='${exec_prefix}/sbin'
909 libexecdir='${exec_prefix}/libexec'
910 datarootdir='${prefix}/share'
911 datadir='${datarootdir}'
912 sysconfdir='${prefix}/etc'
913 sharedstatedir='${prefix}/com'
914 localstatedir='${prefix}/var'
915 includedir='${prefix}/include'
916 oldincludedir='/usr/include'
917 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
918 infodir='${datarootdir}/info'
919 htmldir='${docdir}'
920 dvidir='${docdir}'
921 pdfdir='${docdir}'
922 psdir='${docdir}'
923 libdir='${exec_prefix}/lib'
924 localedir='${datarootdir}/locale'
925 mandir='${datarootdir}/man'
926
927 ac_prev=
928 ac_dashdash=
929 for ac_option
930 do
931   # If the previous option needs an argument, assign it.
932   if test -n "$ac_prev"; then
933     eval $ac_prev=\$ac_option
934     ac_prev=
935     continue
936   fi
937
938   case $ac_option in
939   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
940   *=)   ac_optarg= ;;
941   *)    ac_optarg=yes ;;
942   esac
943
944   # Accept the important Cygnus configure options, so we can diagnose typos.
945
946   case $ac_dashdash$ac_option in
947   --)
948     ac_dashdash=yes ;;
949
950   -bindir | --bindir | --bindi | --bind | --bin | --bi)
951     ac_prev=bindir ;;
952   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
953     bindir=$ac_optarg ;;
954
955   -build | --build | --buil | --bui | --bu)
956     ac_prev=build_alias ;;
957   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
958     build_alias=$ac_optarg ;;
959
960   -cache-file | --cache-file | --cache-fil | --cache-fi \
961   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
962     ac_prev=cache_file ;;
963   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
964   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
965     cache_file=$ac_optarg ;;
966
967   --config-cache | -C)
968     cache_file=config.cache ;;
969
970   -datadir | --datadir | --datadi | --datad)
971     ac_prev=datadir ;;
972   -datadir=* | --datadir=* | --datadi=* | --datad=*)
973     datadir=$ac_optarg ;;
974
975   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
976   | --dataroo | --dataro | --datar)
977     ac_prev=datarootdir ;;
978   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
979   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
980     datarootdir=$ac_optarg ;;
981
982   -disable-* | --disable-*)
983     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
984     # Reject names that are not valid shell variable names.
985     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
986       as_fn_error $? "invalid feature name: $ac_useropt"
987     ac_useropt_orig=$ac_useropt
988     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
989     case $ac_user_opts in
990       *"
991 "enable_$ac_useropt"
992 "*) ;;
993       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
994          ac_unrecognized_sep=', ';;
995     esac
996     eval enable_$ac_useropt=no ;;
997
998   -docdir | --docdir | --docdi | --doc | --do)
999     ac_prev=docdir ;;
1000   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1001     docdir=$ac_optarg ;;
1002
1003   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1004     ac_prev=dvidir ;;
1005   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1006     dvidir=$ac_optarg ;;
1007
1008   -enable-* | --enable-*)
1009     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1010     # Reject names that are not valid shell variable names.
1011     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1012       as_fn_error $? "invalid feature name: $ac_useropt"
1013     ac_useropt_orig=$ac_useropt
1014     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1015     case $ac_user_opts in
1016       *"
1017 "enable_$ac_useropt"
1018 "*) ;;
1019       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1020          ac_unrecognized_sep=', ';;
1021     esac
1022     eval enable_$ac_useropt=\$ac_optarg ;;
1023
1024   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1025   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1026   | --exec | --exe | --ex)
1027     ac_prev=exec_prefix ;;
1028   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1029   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1030   | --exec=* | --exe=* | --ex=*)
1031     exec_prefix=$ac_optarg ;;
1032
1033   -gas | --gas | --ga | --g)
1034     # Obsolete; use --with-gas.
1035     with_gas=yes ;;
1036
1037   -help | --help | --hel | --he | -h)
1038     ac_init_help=long ;;
1039   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1040     ac_init_help=recursive ;;
1041   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1042     ac_init_help=short ;;
1043
1044   -host | --host | --hos | --ho)
1045     ac_prev=host_alias ;;
1046   -host=* | --host=* | --hos=* | --ho=*)
1047     host_alias=$ac_optarg ;;
1048
1049   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1050     ac_prev=htmldir ;;
1051   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1052   | --ht=*)
1053     htmldir=$ac_optarg ;;
1054
1055   -includedir | --includedir | --includedi | --included | --include \
1056   | --includ | --inclu | --incl | --inc)
1057     ac_prev=includedir ;;
1058   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1059   | --includ=* | --inclu=* | --incl=* | --inc=*)
1060     includedir=$ac_optarg ;;
1061
1062   -infodir | --infodir | --infodi | --infod | --info | --inf)
1063     ac_prev=infodir ;;
1064   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1065     infodir=$ac_optarg ;;
1066
1067   -libdir | --libdir | --libdi | --libd)
1068     ac_prev=libdir ;;
1069   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1070     libdir=$ac_optarg ;;
1071
1072   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1073   | --libexe | --libex | --libe)
1074     ac_prev=libexecdir ;;
1075   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1076   | --libexe=* | --libex=* | --libe=*)
1077     libexecdir=$ac_optarg ;;
1078
1079   -localedir | --localedir | --localedi | --localed | --locale)
1080     ac_prev=localedir ;;
1081   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1082     localedir=$ac_optarg ;;
1083
1084   -localstatedir | --localstatedir | --localstatedi | --localstated \
1085   | --localstate | --localstat | --localsta | --localst | --locals)
1086     ac_prev=localstatedir ;;
1087   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1088   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1089     localstatedir=$ac_optarg ;;
1090
1091   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1092     ac_prev=mandir ;;
1093   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1094     mandir=$ac_optarg ;;
1095
1096   -nfp | --nfp | --nf)
1097     # Obsolete; use --without-fp.
1098     with_fp=no ;;
1099
1100   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1101   | --no-cr | --no-c | -n)
1102     no_create=yes ;;
1103
1104   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1105   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1106     no_recursion=yes ;;
1107
1108   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1109   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1110   | --oldin | --oldi | --old | --ol | --o)
1111     ac_prev=oldincludedir ;;
1112   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1113   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1114   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1115     oldincludedir=$ac_optarg ;;
1116
1117   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1118     ac_prev=prefix ;;
1119   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1120     prefix=$ac_optarg ;;
1121
1122   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1123   | --program-pre | --program-pr | --program-p)
1124     ac_prev=program_prefix ;;
1125   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1126   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1127     program_prefix=$ac_optarg ;;
1128
1129   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1130   | --program-suf | --program-su | --program-s)
1131     ac_prev=program_suffix ;;
1132   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1133   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1134     program_suffix=$ac_optarg ;;
1135
1136   -program-transform-name | --program-transform-name \
1137   | --program-transform-nam | --program-transform-na \
1138   | --program-transform-n | --program-transform- \
1139   | --program-transform | --program-transfor \
1140   | --program-transfo | --program-transf \
1141   | --program-trans | --program-tran \
1142   | --progr-tra | --program-tr | --program-t)
1143     ac_prev=program_transform_name ;;
1144   -program-transform-name=* | --program-transform-name=* \
1145   | --program-transform-nam=* | --program-transform-na=* \
1146   | --program-transform-n=* | --program-transform-=* \
1147   | --program-transform=* | --program-transfor=* \
1148   | --program-transfo=* | --program-transf=* \
1149   | --program-trans=* | --program-tran=* \
1150   | --progr-tra=* | --program-tr=* | --program-t=*)
1151     program_transform_name=$ac_optarg ;;
1152
1153   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1154     ac_prev=pdfdir ;;
1155   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1156     pdfdir=$ac_optarg ;;
1157
1158   -psdir | --psdir | --psdi | --psd | --ps)
1159     ac_prev=psdir ;;
1160   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1161     psdir=$ac_optarg ;;
1162
1163   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1164   | -silent | --silent | --silen | --sile | --sil)
1165     silent=yes ;;
1166
1167   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1168     ac_prev=sbindir ;;
1169   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1170   | --sbi=* | --sb=*)
1171     sbindir=$ac_optarg ;;
1172
1173   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1174   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1175   | --sharedst | --shareds | --shared | --share | --shar \
1176   | --sha | --sh)
1177     ac_prev=sharedstatedir ;;
1178   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1179   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1180   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1181   | --sha=* | --sh=*)
1182     sharedstatedir=$ac_optarg ;;
1183
1184   -site | --site | --sit)
1185     ac_prev=site ;;
1186   -site=* | --site=* | --sit=*)
1187     site=$ac_optarg ;;
1188
1189   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1190     ac_prev=srcdir ;;
1191   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1192     srcdir=$ac_optarg ;;
1193
1194   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1195   | --syscon | --sysco | --sysc | --sys | --sy)
1196     ac_prev=sysconfdir ;;
1197   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1198   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1199     sysconfdir=$ac_optarg ;;
1200
1201   -target | --target | --targe | --targ | --tar | --ta | --t)
1202     ac_prev=target_alias ;;
1203   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1204     target_alias=$ac_optarg ;;
1205
1206   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1207     verbose=yes ;;
1208
1209   -version | --version | --versio | --versi | --vers | -V)
1210     ac_init_version=: ;;
1211
1212   -with-* | --with-*)
1213     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1214     # Reject names that are not valid shell variable names.
1215     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1216       as_fn_error $? "invalid package name: $ac_useropt"
1217     ac_useropt_orig=$ac_useropt
1218     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1219     case $ac_user_opts in
1220       *"
1221 "with_$ac_useropt"
1222 "*) ;;
1223       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1224          ac_unrecognized_sep=', ';;
1225     esac
1226     eval with_$ac_useropt=\$ac_optarg ;;
1227
1228   -without-* | --without-*)
1229     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1230     # Reject names that are not valid shell variable names.
1231     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1232       as_fn_error $? "invalid package name: $ac_useropt"
1233     ac_useropt_orig=$ac_useropt
1234     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235     case $ac_user_opts in
1236       *"
1237 "with_$ac_useropt"
1238 "*) ;;
1239       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1240          ac_unrecognized_sep=', ';;
1241     esac
1242     eval with_$ac_useropt=no ;;
1243
1244   --x)
1245     # Obsolete; use --with-x.
1246     with_x=yes ;;
1247
1248   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249   | --x-incl | --x-inc | --x-in | --x-i)
1250     ac_prev=x_includes ;;
1251   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253     x_includes=$ac_optarg ;;
1254
1255   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257     ac_prev=x_libraries ;;
1258   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260     x_libraries=$ac_optarg ;;
1261
1262   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1263 Try \`$0 --help' for more information"
1264     ;;
1265
1266   *=*)
1267     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1268     # Reject names that are not valid shell variable names.
1269     case $ac_envvar in #(
1270       '' | [0-9]* | *[!_$as_cr_alnum]* )
1271       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1272     esac
1273     eval $ac_envvar=\$ac_optarg
1274     export $ac_envvar ;;
1275
1276   *)
1277     # FIXME: should be removed in autoconf 3.0.
1278     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1282     ;;
1283
1284   esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289   as_fn_error $? "missing argument to $ac_option"
1290 fi
1291
1292 if test -n "$ac_unrecognized_opts"; then
1293   case $enable_option_checking in
1294     no) ;;
1295     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1296     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297   esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302                 datadir sysconfdir sharedstatedir localstatedir includedir \
1303                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304                 libdir localedir mandir
1305 do
1306   eval ac_val=\$$ac_var
1307   # Remove trailing slashes.
1308   case $ac_val in
1309     */ )
1310       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311       eval $ac_var=\$ac_val;;
1312   esac
1313   # Be sure to have absolute directory names.
1314   case $ac_val in
1315     [\\/$]* | ?:[\\/]* )  continue;;
1316     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317   esac
1318   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1319 done
1320
1321 # There might be people who depend on the old broken behavior: `$host'
1322 # used to hold the argument of --host etc.
1323 # FIXME: To remove some day.
1324 build=$build_alias
1325 host=$host_alias
1326 target=$target_alias
1327
1328 # FIXME: To remove some day.
1329 if test "x$host_alias" != x; then
1330   if test "x$build_alias" = x; then
1331     cross_compiling=maybe
1332   elif test "x$build_alias" != "x$host_alias"; then
1333     cross_compiling=yes
1334   fi
1335 fi
1336
1337 ac_tool_prefix=
1338 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1339
1340 test "$silent" = yes && exec 6>/dev/null
1341
1342
1343 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1344 ac_ls_di=`ls -di .` &&
1345 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1346   as_fn_error $? "working directory cannot be determined"
1347 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1348   as_fn_error $? "pwd does not report name of working directory"
1349
1350
1351 # Find the source files, if location was not specified.
1352 if test -z "$srcdir"; then
1353   ac_srcdir_defaulted=yes
1354   # Try the directory containing this script, then the parent directory.
1355   ac_confdir=`$as_dirname -- "$as_myself" ||
1356 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1357          X"$as_myself" : 'X\(//\)[^/]' \| \
1358          X"$as_myself" : 'X\(//\)$' \| \
1359          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1360 $as_echo X"$as_myself" |
1361     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1362             s//\1/
1363             q
1364           }
1365           /^X\(\/\/\)[^/].*/{
1366             s//\1/
1367             q
1368           }
1369           /^X\(\/\/\)$/{
1370             s//\1/
1371             q
1372           }
1373           /^X\(\/\).*/{
1374             s//\1/
1375             q
1376           }
1377           s/.*/./; q'`
1378   srcdir=$ac_confdir
1379   if test ! -r "$srcdir/$ac_unique_file"; then
1380     srcdir=..
1381   fi
1382 else
1383   ac_srcdir_defaulted=no
1384 fi
1385 if test ! -r "$srcdir/$ac_unique_file"; then
1386   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1387   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1388 fi
1389 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1390 ac_abs_confdir=`(
1391         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1392         pwd)`
1393 # When building in place, set srcdir=.
1394 if test "$ac_abs_confdir" = "$ac_pwd"; then
1395   srcdir=.
1396 fi
1397 # Remove unnecessary trailing slashes from srcdir.
1398 # Double slashes in file names in object file debugging info
1399 # mess up M-x gdb in Emacs.
1400 case $srcdir in
1401 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1402 esac
1403 for ac_var in $ac_precious_vars; do
1404   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1405   eval ac_env_${ac_var}_value=\$${ac_var}
1406   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1407   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1408 done
1409
1410 #
1411 # Report the --help message.
1412 #
1413 if test "$ac_init_help" = "long"; then
1414   # Omit some internal or obsolete options to make the list less imposing.
1415   # This message is too long to be a string in the A/UX 3.1 sh.
1416   cat <<_ACEOF
1417 \`configure' configures fontconfig 2.12.1 to adapt to many kinds of systems.
1418
1419 Usage: $0 [OPTION]... [VAR=VALUE]...
1420
1421 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1422 VAR=VALUE.  See below for descriptions of some of the useful variables.
1423
1424 Defaults for the options are specified in brackets.
1425
1426 Configuration:
1427   -h, --help              display this help and exit
1428       --help=short        display options specific to this package
1429       --help=recursive    display the short help of all the included packages
1430   -V, --version           display version information and exit
1431   -q, --quiet, --silent   do not print \`checking ...' messages
1432       --cache-file=FILE   cache test results in FILE [disabled]
1433   -C, --config-cache      alias for \`--cache-file=config.cache'
1434   -n, --no-create         do not create output files
1435       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1436
1437 Installation directories:
1438   --prefix=PREFIX         install architecture-independent files in PREFIX
1439                           [$ac_default_prefix]
1440   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1441                           [PREFIX]
1442
1443 By default, \`make install' will install all the files in
1444 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1445 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1446 for instance \`--prefix=\$HOME'.
1447
1448 For better control, use the options below.
1449
1450 Fine tuning of the installation directories:
1451   --bindir=DIR            user executables [EPREFIX/bin]
1452   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1453   --libexecdir=DIR        program executables [EPREFIX/libexec]
1454   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1455   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1456   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1457   --libdir=DIR            object code libraries [EPREFIX/lib]
1458   --includedir=DIR        C header files [PREFIX/include]
1459   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1460   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1461   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1462   --infodir=DIR           info documentation [DATAROOTDIR/info]
1463   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1464   --mandir=DIR            man documentation [DATAROOTDIR/man]
1465   --docdir=DIR            documentation root [DATAROOTDIR/doc/fontconfig]
1466   --htmldir=DIR           html documentation [DOCDIR]
1467   --dvidir=DIR            dvi documentation [DOCDIR]
1468   --pdfdir=DIR            pdf documentation [DOCDIR]
1469   --psdir=DIR             ps documentation [DOCDIR]
1470 _ACEOF
1471
1472   cat <<\_ACEOF
1473
1474 Program names:
1475   --program-prefix=PREFIX            prepend PREFIX to installed program names
1476   --program-suffix=SUFFIX            append SUFFIX to installed program names
1477   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1478
1479 System types:
1480   --build=BUILD     configure for building on BUILD [guessed]
1481   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1482 _ACEOF
1483 fi
1484
1485 if test -n "$ac_init_help"; then
1486   case $ac_init_help in
1487      short | recursive ) echo "Configuration of fontconfig 2.12.1:";;
1488    esac
1489   cat <<\_ACEOF
1490
1491 Optional Features:
1492   --disable-option-checking  ignore unrecognized --enable/--with options
1493   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1494   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1495   --enable-silent-rules   less verbose build output (undo: "make V=1")
1496   --disable-silent-rules  verbose build output (undo: "make V=0")
1497   --enable-dependency-tracking
1498                           do not reject slow dependency extractors
1499   --disable-dependency-tracking
1500                           speeds up one-time build
1501   --disable-largefile     omit support for large files
1502   --enable-static[=PKGS]  build static libraries [default=no]
1503   --enable-shared[=PKGS]  build shared libraries [default=yes]
1504   --enable-fast-install[=PKGS]
1505                           optimize for fast installation [default=yes]
1506   --disable-libtool-lock  avoid locking (might break parallel builds)
1507   --enable-iconv          Use iconv to support non-Unicode SFNT name
1508   --enable-libxml2        Use libxml2 instead of Expat
1509   --disable-docs          Don't build and install documentation
1510
1511 Optional Packages:
1512   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1513   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1514   --with-pkgconfigdir     pkg-config installation directory
1515                           ['${libdir}/pkgconfig']
1516   --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1517                           both]
1518   --with-aix-soname=aix|svr4|both
1519                           shared library versioning (aka "SONAME") variant to
1520                           provide on AIX, [default=aix].
1521   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1522   --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1523                           compiler's sysroot if not specified).
1524   --with-arch=ARCH        Force architecture to ARCH
1525   --with-libiconv=DIR     Use libiconv in DIR
1526   --with-libiconv-includes=DIR
1527                           Use libiconv includes in DIR
1528   --with-libiconv-lib=DIR Use libiconv library in DIR
1529   --with-expat=DIR        Use Expat in DIR
1530   --with-expat-includes=DIR
1531                           Use Expat includes in DIR
1532   --with-expat-lib=DIR
1533   --with-default-hinting=NAME
1534                           Enable your preferred hinting configuration
1535                           (none/slight/medium/full) [default=slight]
1536   --with-default-fonts=DIR
1537                           Use fonts from DIR when config is busted
1538   --with-add-fonts=DIR1,DIR2,...
1539                           Find additional fonts in DIR1,DIR2,...
1540   --with-cache-dir=DIR    Use DIR to store cache files
1541                           [default=LOCALSTATEDIR/cache/fontconfig]
1542   --with-templatedir=DIR  Use DIR to store the configuration template files
1543                           [default=DATADIR/fontconfig/conf.avail]
1544   --with-baseconfigdir=DIR
1545                           Use DIR to store the base configuration files
1546                           [default=SYSCONFDIR/fonts]
1547   --with-configdir=DIR    Use DIR to store active configuration files
1548                           [default=BASECONFIGDIR/conf.d]
1549   --with-xmldir=DIR       Use DIR to store XML schema files
1550                           [default=DATADIR/xml/fontconfig]
1551
1552 Some influential environment variables:
1553   CC          C compiler command
1554   CFLAGS      C compiler flags
1555   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1556               nonstandard directory <lib dir>
1557   LIBS        libraries to pass to the linker, e.g. -l<library>
1558   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559               you have headers in a nonstandard directory <include dir>
1560   CPP         C preprocessor
1561   PKG_CONFIG  path to pkg-config utility
1562   PKG_CONFIG_PATH
1563               directories to add to pkg-config's search path
1564   PKG_CONFIG_LIBDIR
1565               path overriding pkg-config's built-in search path
1566   PYTHON      the Python interpreter
1567   LT_SYS_LIBRARY_PATH
1568               User-defined run-time library search path.
1569   CC_FOR_BUILD
1570               build system C compiler
1571   FREETYPE_CFLAGS
1572               C compiler flags for FREETYPE, overriding pkg-config
1573   FREETYPE_LIBS
1574               linker flags for FREETYPE, overriding pkg-config
1575   EXPAT_CFLAGS
1576               C compiler flags for EXPAT, overriding pkg-config
1577   EXPAT_LIBS  linker flags for EXPAT, overriding pkg-config
1578   LIBXML2_CFLAGS
1579               C compiler flags for LIBXML2, overriding pkg-config
1580   LIBXML2_LIBS
1581               linker flags for LIBXML2, overriding pkg-config
1582
1583 Use these variables to override the choices made by `configure' or to help
1584 it to find libraries and programs with nonstandard names/locations.
1585
1586 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>.
1587 _ACEOF
1588 ac_status=$?
1589 fi
1590
1591 if test "$ac_init_help" = "recursive"; then
1592   # If there are subdirs, report their specific --help.
1593   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1594     test -d "$ac_dir" ||
1595       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1596       continue
1597     ac_builddir=.
1598
1599 case "$ac_dir" in
1600 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *)
1602   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1603   # A ".." for each directory in $ac_dir_suffix.
1604   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1605   case $ac_top_builddir_sub in
1606   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1607   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1608   esac ;;
1609 esac
1610 ac_abs_top_builddir=$ac_pwd
1611 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1612 # for backward compatibility:
1613 ac_top_builddir=$ac_top_build_prefix
1614
1615 case $srcdir in
1616   .)  # We are building in place.
1617     ac_srcdir=.
1618     ac_top_srcdir=$ac_top_builddir_sub
1619     ac_abs_top_srcdir=$ac_pwd ;;
1620   [\\/]* | ?:[\\/]* )  # Absolute name.
1621     ac_srcdir=$srcdir$ac_dir_suffix;
1622     ac_top_srcdir=$srcdir
1623     ac_abs_top_srcdir=$srcdir ;;
1624   *) # Relative name.
1625     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1626     ac_top_srcdir=$ac_top_build_prefix$srcdir
1627     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1628 esac
1629 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1630
1631     cd "$ac_dir" || { ac_status=$?; continue; }
1632     # Check for guested configure.
1633     if test -f "$ac_srcdir/configure.gnu"; then
1634       echo &&
1635       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1636     elif test -f "$ac_srcdir/configure"; then
1637       echo &&
1638       $SHELL "$ac_srcdir/configure" --help=recursive
1639     else
1640       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1641     fi || ac_status=$?
1642     cd "$ac_pwd" || { ac_status=$?; break; }
1643   done
1644 fi
1645
1646 test -n "$ac_init_help" && exit $ac_status
1647 if $ac_init_version; then
1648   cat <<\_ACEOF
1649 fontconfig configure 2.12.1
1650 generated by GNU Autoconf 2.69
1651
1652 Copyright (C) 2012 Free Software Foundation, Inc.
1653 This configure script is free software; the Free Software Foundation
1654 gives unlimited permission to copy, distribute and modify it.
1655 _ACEOF
1656   exit
1657 fi
1658
1659 ## ------------------------ ##
1660 ## Autoconf initialization. ##
1661 ## ------------------------ ##
1662
1663 # ac_fn_c_try_compile LINENO
1664 # --------------------------
1665 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1666 ac_fn_c_try_compile ()
1667 {
1668   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1669   rm -f conftest.$ac_objext
1670   if { { ac_try="$ac_compile"
1671 case "(($ac_try" in
1672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673   *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677   (eval "$ac_compile") 2>conftest.err
1678   ac_status=$?
1679   if test -s conftest.err; then
1680     grep -v '^ *+' conftest.err >conftest.er1
1681     cat conftest.er1 >&5
1682     mv -f conftest.er1 conftest.err
1683   fi
1684   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685   test $ac_status = 0; } && {
1686          test -z "$ac_c_werror_flag" ||
1687          test ! -s conftest.err
1688        } && test -s conftest.$ac_objext; then :
1689   ac_retval=0
1690 else
1691   $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694         ac_retval=1
1695 fi
1696   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697   as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_compile
1700
1701 # ac_fn_c_try_cpp LINENO
1702 # ----------------------
1703 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1704 ac_fn_c_try_cpp ()
1705 {
1706   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707   if { { ac_try="$ac_cpp conftest.$ac_ext"
1708 case "(($ac_try" in
1709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710   *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1715   ac_status=$?
1716   if test -s conftest.err; then
1717     grep -v '^ *+' conftest.err >conftest.er1
1718     cat conftest.er1 >&5
1719     mv -f conftest.er1 conftest.err
1720   fi
1721   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1722   test $ac_status = 0; } > conftest.i && {
1723          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1724          test ! -s conftest.err
1725        }; then :
1726   ac_retval=0
1727 else
1728   $as_echo "$as_me: failed program was:" >&5
1729 sed 's/^/| /' conftest.$ac_ext >&5
1730
1731     ac_retval=1
1732 fi
1733   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1734   as_fn_set_status $ac_retval
1735
1736 } # ac_fn_c_try_cpp
1737
1738 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1739 # -------------------------------------------------------
1740 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1741 # the include files in INCLUDES and setting the cache variable VAR
1742 # accordingly.
1743 ac_fn_c_check_header_mongrel ()
1744 {
1745   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1746   if eval \${$3+:} false; then :
1747   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1748 $as_echo_n "checking for $2... " >&6; }
1749 if eval \${$3+:} false; then :
1750   $as_echo_n "(cached) " >&6
1751 fi
1752 eval ac_res=\$$3
1753                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1754 $as_echo "$ac_res" >&6; }
1755 else
1756   # Is the header compilable?
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1758 $as_echo_n "checking $2 usability... " >&6; }
1759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1760 /* end confdefs.h.  */
1761 $4
1762 #include <$2>
1763 _ACEOF
1764 if ac_fn_c_try_compile "$LINENO"; then :
1765   ac_header_compiler=yes
1766 else
1767   ac_header_compiler=no
1768 fi
1769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1771 $as_echo "$ac_header_compiler" >&6; }
1772
1773 # Is the header present?
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1775 $as_echo_n "checking $2 presence... " >&6; }
1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h.  */
1778 #include <$2>
1779 _ACEOF
1780 if ac_fn_c_try_cpp "$LINENO"; then :
1781   ac_header_preproc=yes
1782 else
1783   ac_header_preproc=no
1784 fi
1785 rm -f conftest.err conftest.i conftest.$ac_ext
1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1787 $as_echo "$ac_header_preproc" >&6; }
1788
1789 # So?  What about this header?
1790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1791   yes:no: )
1792     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1793 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1794     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1795 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1796     ;;
1797   no:yes:* )
1798     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1799 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1800     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1801 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1802     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1803 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1804     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1805 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1806     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1807 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1808 ( $as_echo "## ---------------------------------------------------------------------------- ##
1809 ## Report this to https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig ##
1810 ## ---------------------------------------------------------------------------- ##"
1811      ) | sed "s/^/$as_me: WARNING:     /" >&2
1812     ;;
1813 esac
1814   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1815 $as_echo_n "checking for $2... " >&6; }
1816 if eval \${$3+:} false; then :
1817   $as_echo_n "(cached) " >&6
1818 else
1819   eval "$3=\$ac_header_compiler"
1820 fi
1821 eval ac_res=\$$3
1822                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823 $as_echo "$ac_res" >&6; }
1824 fi
1825   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1826
1827 } # ac_fn_c_check_header_mongrel
1828
1829 # ac_fn_c_try_run LINENO
1830 # ----------------------
1831 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1832 # that executables *can* be run.
1833 ac_fn_c_try_run ()
1834 {
1835   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836   if { { ac_try="$ac_link"
1837 case "(($ac_try" in
1838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839   *) ac_try_echo=$ac_try;;
1840 esac
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843   (eval "$ac_link") 2>&5
1844   ac_status=$?
1845   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1847   { { case "(($ac_try" in
1848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849   *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853   (eval "$ac_try") 2>&5
1854   ac_status=$?
1855   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856   test $ac_status = 0; }; }; then :
1857   ac_retval=0
1858 else
1859   $as_echo "$as_me: program exited with status $ac_status" >&5
1860        $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1862
1863        ac_retval=$ac_status
1864 fi
1865   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1866   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867   as_fn_set_status $ac_retval
1868
1869 } # ac_fn_c_try_run
1870
1871 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1872 # -------------------------------------------------------
1873 # Tests whether HEADER exists and can be compiled using the include files in
1874 # INCLUDES, setting the cache variable VAR accordingly.
1875 ac_fn_c_check_header_compile ()
1876 {
1877   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881   $as_echo_n "(cached) " >&6
1882 else
1883   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1884 /* end confdefs.h.  */
1885 $4
1886 #include <$2>
1887 _ACEOF
1888 if ac_fn_c_try_compile "$LINENO"; then :
1889   eval "$3=yes"
1890 else
1891   eval "$3=no"
1892 fi
1893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894 fi
1895 eval ac_res=\$$3
1896                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1897 $as_echo "$ac_res" >&6; }
1898   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899
1900 } # ac_fn_c_check_header_compile
1901
1902 # ac_fn_c_try_link LINENO
1903 # -----------------------
1904 # Try to link conftest.$ac_ext, and return whether this succeeded.
1905 ac_fn_c_try_link ()
1906 {
1907   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908   rm -f conftest.$ac_objext conftest$ac_exeext
1909   if { { ac_try="$ac_link"
1910 case "(($ac_try" in
1911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912   *) ac_try_echo=$ac_try;;
1913 esac
1914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915 $as_echo "$ac_try_echo"; } >&5
1916   (eval "$ac_link") 2>conftest.err
1917   ac_status=$?
1918   if test -s conftest.err; then
1919     grep -v '^ *+' conftest.err >conftest.er1
1920     cat conftest.er1 >&5
1921     mv -f conftest.er1 conftest.err
1922   fi
1923   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924   test $ac_status = 0; } && {
1925          test -z "$ac_c_werror_flag" ||
1926          test ! -s conftest.err
1927        } && test -s conftest$ac_exeext && {
1928          test "$cross_compiling" = yes ||
1929          test -x conftest$ac_exeext
1930        }; then :
1931   ac_retval=0
1932 else
1933   $as_echo "$as_me: failed program was:" >&5
1934 sed 's/^/| /' conftest.$ac_ext >&5
1935
1936         ac_retval=1
1937 fi
1938   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1939   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1940   # interfere with the next link command; also delete a directory that is
1941   # left behind by Apple's compiler.  We do this before executing the actions.
1942   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1943   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944   as_fn_set_status $ac_retval
1945
1946 } # ac_fn_c_try_link
1947
1948 # ac_fn_c_check_func LINENO FUNC VAR
1949 # ----------------------------------
1950 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1951 ac_fn_c_check_func ()
1952 {
1953   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957   $as_echo_n "(cached) " >&6
1958 else
1959   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h.  */
1961 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1962    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1963 #define $2 innocuous_$2
1964
1965 /* System header to define __stub macros and hopefully few prototypes,
1966     which can conflict with char $2 (); below.
1967     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1968     <limits.h> exists even on freestanding compilers.  */
1969
1970 #ifdef __STDC__
1971 # include <limits.h>
1972 #else
1973 # include <assert.h>
1974 #endif
1975
1976 #undef $2
1977
1978 /* Override any GCC internal prototype to avoid an error.
1979    Use char because int might match the return type of a GCC
1980    builtin and then its argument prototype would still apply.  */
1981 #ifdef __cplusplus
1982 extern "C"
1983 #endif
1984 char $2 ();
1985 /* The GNU C library defines this for functions which it implements
1986     to always fail with ENOSYS.  Some functions are actually named
1987     something starting with __ and the normal name is an alias.  */
1988 #if defined __stub_$2 || defined __stub___$2
1989 choke me
1990 #endif
1991
1992 int
1993 main ()
1994 {
1995 return $2 ();
1996   ;
1997   return 0;
1998 }
1999 _ACEOF
2000 if ac_fn_c_try_link "$LINENO"; then :
2001   eval "$3=yes"
2002 else
2003   eval "$3=no"
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext \
2006     conftest$ac_exeext conftest.$ac_ext
2007 fi
2008 eval ac_res=\$$3
2009                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010 $as_echo "$ac_res" >&6; }
2011   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013 } # ac_fn_c_check_func
2014
2015 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2016 # ---------------------------------------------
2017 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2018 # accordingly.
2019 ac_fn_c_check_decl ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   as_decl_name=`echo $2|sed 's/ *(.*//'`
2023   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2024   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2025 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2026 if eval \${$3+:} false; then :
2027   $as_echo_n "(cached) " >&6
2028 else
2029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h.  */
2031 $4
2032 int
2033 main ()
2034 {
2035 #ifndef $as_decl_name
2036 #ifdef __cplusplus
2037   (void) $as_decl_use;
2038 #else
2039   (void) $as_decl_name;
2040 #endif
2041 #endif
2042
2043   ;
2044   return 0;
2045 }
2046 _ACEOF
2047 if ac_fn_c_try_compile "$LINENO"; then :
2048   eval "$3=yes"
2049 else
2050   eval "$3=no"
2051 fi
2052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2053 fi
2054 eval ac_res=\$$3
2055                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2057   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058
2059 } # ac_fn_c_check_decl
2060
2061 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2062 # -------------------------------------------
2063 # Tests whether TYPE exists after having included INCLUDES, setting cache
2064 # variable VAR accordingly.
2065 ac_fn_c_check_type ()
2066 {
2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if eval \${$3+:} false; then :
2071   $as_echo_n "(cached) " >&6
2072 else
2073   eval "$3=no"
2074   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075 /* end confdefs.h.  */
2076 $4
2077 int
2078 main ()
2079 {
2080 if (sizeof ($2))
2081          return 0;
2082   ;
2083   return 0;
2084 }
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h.  */
2089 $4
2090 int
2091 main ()
2092 {
2093 if (sizeof (($2)))
2094             return 0;
2095   ;
2096   return 0;
2097 }
2098 _ACEOF
2099 if ac_fn_c_try_compile "$LINENO"; then :
2100
2101 else
2102   eval "$3=yes"
2103 fi
2104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 eval ac_res=\$$3
2109                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110 $as_echo "$ac_res" >&6; }
2111   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112
2113 } # ac_fn_c_check_type
2114
2115 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2116 # --------------------------------------------
2117 # Tries to find the compile-time value of EXPR in a program that includes
2118 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2119 # computed
2120 ac_fn_c_compute_int ()
2121 {
2122   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123   if test "$cross_compiling" = yes; then
2124     # Depending upon the size, compute the lo and hi bounds.
2125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2126 /* end confdefs.h.  */
2127 $4
2128 int
2129 main ()
2130 {
2131 static int test_array [1 - 2 * !(($2) >= 0)];
2132 test_array [0] = 0;
2133 return test_array [0];
2134
2135   ;
2136   return 0;
2137 }
2138 _ACEOF
2139 if ac_fn_c_try_compile "$LINENO"; then :
2140   ac_lo=0 ac_mid=0
2141   while :; do
2142     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143 /* end confdefs.h.  */
2144 $4
2145 int
2146 main ()
2147 {
2148 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2149 test_array [0] = 0;
2150 return test_array [0];
2151
2152   ;
2153   return 0;
2154 }
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157   ac_hi=$ac_mid; break
2158 else
2159   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2160                         if test $ac_lo -le $ac_mid; then
2161                           ac_lo= ac_hi=
2162                           break
2163                         fi
2164                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2165 fi
2166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2167   done
2168 else
2169   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2170 /* end confdefs.h.  */
2171 $4
2172 int
2173 main ()
2174 {
2175 static int test_array [1 - 2 * !(($2) < 0)];
2176 test_array [0] = 0;
2177 return test_array [0];
2178
2179   ;
2180   return 0;
2181 }
2182 _ACEOF
2183 if ac_fn_c_try_compile "$LINENO"; then :
2184   ac_hi=-1 ac_mid=-1
2185   while :; do
2186     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2187 /* end confdefs.h.  */
2188 $4
2189 int
2190 main ()
2191 {
2192 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2193 test_array [0] = 0;
2194 return test_array [0];
2195
2196   ;
2197   return 0;
2198 }
2199 _ACEOF
2200 if ac_fn_c_try_compile "$LINENO"; then :
2201   ac_lo=$ac_mid; break
2202 else
2203   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2204                         if test $ac_mid -le $ac_hi; then
2205                           ac_lo= ac_hi=
2206                           break
2207                         fi
2208                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2209 fi
2210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2211   done
2212 else
2213   ac_lo= ac_hi=
2214 fi
2215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 fi
2217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 # Binary search between lo and hi bounds.
2219 while test "x$ac_lo" != "x$ac_hi"; do
2220   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2221   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222 /* end confdefs.h.  */
2223 $4
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 test_array [0] = 0;
2229 return test_array [0];
2230
2231   ;
2232   return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236   ac_hi=$ac_mid
2237 else
2238   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2239 fi
2240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2241 done
2242 case $ac_lo in #((
2243 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2244 '') ac_retval=1 ;;
2245 esac
2246   else
2247     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248 /* end confdefs.h.  */
2249 $4
2250 static long int longval () { return $2; }
2251 static unsigned long int ulongval () { return $2; }
2252 #include <stdio.h>
2253 #include <stdlib.h>
2254 int
2255 main ()
2256 {
2257
2258   FILE *f = fopen ("conftest.val", "w");
2259   if (! f)
2260     return 1;
2261   if (($2) < 0)
2262     {
2263       long int i = longval ();
2264       if (i != ($2))
2265         return 1;
2266       fprintf (f, "%ld", i);
2267     }
2268   else
2269     {
2270       unsigned long int i = ulongval ();
2271       if (i != ($2))
2272         return 1;
2273       fprintf (f, "%lu", i);
2274     }
2275   /* Do not output a trailing newline, as this causes \r\n confusion
2276      on some platforms.  */
2277   return ferror (f) || fclose (f) != 0;
2278
2279   ;
2280   return 0;
2281 }
2282 _ACEOF
2283 if ac_fn_c_try_run "$LINENO"; then :
2284   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2285 else
2286   ac_retval=1
2287 fi
2288 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2289   conftest.$ac_objext conftest.beam conftest.$ac_ext
2290 rm -f conftest.val
2291
2292   fi
2293   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2294   as_fn_set_status $ac_retval
2295
2296 } # ac_fn_c_compute_int
2297
2298 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2299 # ----------------------------------------------------
2300 # Tries to find if the field MEMBER exists in type AGGR, after including
2301 # INCLUDES, setting cache variable VAR accordingly.
2302 ac_fn_c_check_member ()
2303 {
2304   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2306 $as_echo_n "checking for $2.$3... " >&6; }
2307 if eval \${$4+:} false; then :
2308   $as_echo_n "(cached) " >&6
2309 else
2310   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311 /* end confdefs.h.  */
2312 $5
2313 int
2314 main ()
2315 {
2316 static $2 ac_aggr;
2317 if (ac_aggr.$3)
2318 return 0;
2319   ;
2320   return 0;
2321 }
2322 _ACEOF
2323 if ac_fn_c_try_compile "$LINENO"; then :
2324   eval "$4=yes"
2325 else
2326   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h.  */
2328 $5
2329 int
2330 main ()
2331 {
2332 static $2 ac_aggr;
2333 if (sizeof ac_aggr.$3)
2334 return 0;
2335   ;
2336   return 0;
2337 }
2338 _ACEOF
2339 if ac_fn_c_try_compile "$LINENO"; then :
2340   eval "$4=yes"
2341 else
2342   eval "$4=no"
2343 fi
2344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 eval ac_res=\$$4
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2352
2353 } # ac_fn_c_check_member
2354 cat >config.log <<_ACEOF
2355 This file contains any messages produced by compilers while
2356 running configure, to aid debugging if configure makes a mistake.
2357
2358 It was created by fontconfig $as_me 2.12.1, which was
2359 generated by GNU Autoconf 2.69.  Invocation command line was
2360
2361   $ $0 $@
2362
2363 _ACEOF
2364 exec 5>>config.log
2365 {
2366 cat <<_ASUNAME
2367 ## --------- ##
2368 ## Platform. ##
2369 ## --------- ##
2370
2371 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2372 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2373 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2374 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2375 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2376
2377 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2378 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2379
2380 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2381 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2382 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2383 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2384 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2385 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2386 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2387
2388 _ASUNAME
2389
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2392 do
2393   IFS=$as_save_IFS
2394   test -z "$as_dir" && as_dir=.
2395     $as_echo "PATH: $as_dir"
2396   done
2397 IFS=$as_save_IFS
2398
2399 } >&5
2400
2401 cat >&5 <<_ACEOF
2402
2403
2404 ## ----------- ##
2405 ## Core tests. ##
2406 ## ----------- ##
2407
2408 _ACEOF
2409
2410
2411 # Keep a trace of the command line.
2412 # Strip out --no-create and --no-recursion so they do not pile up.
2413 # Strip out --silent because we don't want to record it for future runs.
2414 # Also quote any args containing shell meta-characters.
2415 # Make two passes to allow for proper duplicate-argument suppression.
2416 ac_configure_args=
2417 ac_configure_args0=
2418 ac_configure_args1=
2419 ac_must_keep_next=false
2420 for ac_pass in 1 2
2421 do
2422   for ac_arg
2423   do
2424     case $ac_arg in
2425     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2426     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2427     | -silent | --silent | --silen | --sile | --sil)
2428       continue ;;
2429     *\'*)
2430       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2431     esac
2432     case $ac_pass in
2433     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2434     2)
2435       as_fn_append ac_configure_args1 " '$ac_arg'"
2436       if test $ac_must_keep_next = true; then
2437         ac_must_keep_next=false # Got value, back to normal.
2438       else
2439         case $ac_arg in
2440           *=* | --config-cache | -C | -disable-* | --disable-* \
2441           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2442           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2443           | -with-* | --with-* | -without-* | --without-* | --x)
2444             case "$ac_configure_args0 " in
2445               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2446             esac
2447             ;;
2448           -* ) ac_must_keep_next=true ;;
2449         esac
2450       fi
2451       as_fn_append ac_configure_args " '$ac_arg'"
2452       ;;
2453     esac
2454   done
2455 done
2456 { ac_configure_args0=; unset ac_configure_args0;}
2457 { ac_configure_args1=; unset ac_configure_args1;}
2458
2459 # When interrupted or exit'd, cleanup temporary files, and complete
2460 # config.log.  We remove comments because anyway the quotes in there
2461 # would cause problems or look ugly.
2462 # WARNING: Use '\'' to represent an apostrophe within the trap.
2463 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2464 trap 'exit_status=$?
2465   # Save into config.log some information that might help in debugging.
2466   {
2467     echo
2468
2469     $as_echo "## ---------------- ##
2470 ## Cache variables. ##
2471 ## ---------------- ##"
2472     echo
2473     # The following way of writing the cache mishandles newlines in values,
2474 (
2475   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2476     eval ac_val=\$$ac_var
2477     case $ac_val in #(
2478     *${as_nl}*)
2479       case $ac_var in #(
2480       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2482       esac
2483       case $ac_var in #(
2484       _ | IFS | as_nl) ;; #(
2485       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2486       *) { eval $ac_var=; unset $ac_var;} ;;
2487       esac ;;
2488     esac
2489   done
2490   (set) 2>&1 |
2491     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2492     *${as_nl}ac_space=\ *)
2493       sed -n \
2494         "s/'\''/'\''\\\\'\'''\''/g;
2495           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2496       ;; #(
2497     *)
2498       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2499       ;;
2500     esac |
2501     sort
2502 )
2503     echo
2504
2505     $as_echo "## ----------------- ##
2506 ## Output variables. ##
2507 ## ----------------- ##"
2508     echo
2509     for ac_var in $ac_subst_vars
2510     do
2511       eval ac_val=\$$ac_var
2512       case $ac_val in
2513       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2514       esac
2515       $as_echo "$ac_var='\''$ac_val'\''"
2516     done | sort
2517     echo
2518
2519     if test -n "$ac_subst_files"; then
2520       $as_echo "## ------------------- ##
2521 ## File substitutions. ##
2522 ## ------------------- ##"
2523       echo
2524       for ac_var in $ac_subst_files
2525       do
2526         eval ac_val=\$$ac_var
2527         case $ac_val in
2528         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2529         esac
2530         $as_echo "$ac_var='\''$ac_val'\''"
2531       done | sort
2532       echo
2533     fi
2534
2535     if test -s confdefs.h; then
2536       $as_echo "## ----------- ##
2537 ## confdefs.h. ##
2538 ## ----------- ##"
2539       echo
2540       cat confdefs.h
2541       echo
2542     fi
2543     test "$ac_signal" != 0 &&
2544       $as_echo "$as_me: caught signal $ac_signal"
2545     $as_echo "$as_me: exit $exit_status"
2546   } >&5
2547   rm -f core *.core core.conftest.* &&
2548     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2549     exit $exit_status
2550 ' 0
2551 for ac_signal in 1 2 13 15; do
2552   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2553 done
2554 ac_signal=0
2555
2556 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2557 rm -f -r conftest* confdefs.h
2558
2559 $as_echo "/* confdefs.h */" > confdefs.h
2560
2561 # Predefined preprocessor variables.
2562
2563 cat >>confdefs.h <<_ACEOF
2564 #define PACKAGE_NAME "$PACKAGE_NAME"
2565 _ACEOF
2566
2567 cat >>confdefs.h <<_ACEOF
2568 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2569 _ACEOF
2570
2571 cat >>confdefs.h <<_ACEOF
2572 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2573 _ACEOF
2574
2575 cat >>confdefs.h <<_ACEOF
2576 #define PACKAGE_STRING "$PACKAGE_STRING"
2577 _ACEOF
2578
2579 cat >>confdefs.h <<_ACEOF
2580 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2581 _ACEOF
2582
2583 cat >>confdefs.h <<_ACEOF
2584 #define PACKAGE_URL "$PACKAGE_URL"
2585 _ACEOF
2586
2587
2588 # Let the site file select an alternate cache file if it wants to.
2589 # Prefer an explicitly selected file to automatically selected ones.
2590 ac_site_file1=NONE
2591 ac_site_file2=NONE
2592 if test -n "$CONFIG_SITE"; then
2593   # We do not want a PATH search for config.site.
2594   case $CONFIG_SITE in #((
2595     -*)  ac_site_file1=./$CONFIG_SITE;;
2596     */*) ac_site_file1=$CONFIG_SITE;;
2597     *)   ac_site_file1=./$CONFIG_SITE;;
2598   esac
2599 elif test "x$prefix" != xNONE; then
2600   ac_site_file1=$prefix/share/config.site
2601   ac_site_file2=$prefix/etc/config.site
2602 else
2603   ac_site_file1=$ac_default_prefix/share/config.site
2604   ac_site_file2=$ac_default_prefix/etc/config.site
2605 fi
2606 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2607 do
2608   test "x$ac_site_file" = xNONE && continue
2609   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2610     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2611 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2612     sed 's/^/| /' "$ac_site_file" >&5
2613     . "$ac_site_file" \
2614       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2616 as_fn_error $? "failed to load site script $ac_site_file
2617 See \`config.log' for more details" "$LINENO" 5; }
2618   fi
2619 done
2620
2621 if test -r "$cache_file"; then
2622   # Some versions of bash will fail to source /dev/null (special files
2623   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2624   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2625     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2626 $as_echo "$as_me: loading cache $cache_file" >&6;}
2627     case $cache_file in
2628       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2629       *)                      . "./$cache_file";;
2630     esac
2631   fi
2632 else
2633   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2634 $as_echo "$as_me: creating cache $cache_file" >&6;}
2635   >$cache_file
2636 fi
2637
2638 as_fn_append ac_header_list " stdlib.h"
2639 as_fn_append ac_header_list " unistd.h"
2640 as_fn_append ac_header_list " sys/param.h"
2641 # Check that the precious variables saved in the cache have kept the same
2642 # value.
2643 ac_cache_corrupted=false
2644 for ac_var in $ac_precious_vars; do
2645   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2646   eval ac_new_set=\$ac_env_${ac_var}_set
2647   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2648   eval ac_new_val=\$ac_env_${ac_var}_value
2649   case $ac_old_set,$ac_new_set in
2650     set,)
2651       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2652 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2653       ac_cache_corrupted=: ;;
2654     ,set)
2655       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2656 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2657       ac_cache_corrupted=: ;;
2658     ,);;
2659     *)
2660       if test "x$ac_old_val" != "x$ac_new_val"; then
2661         # differences in whitespace do not lead to failure.
2662         ac_old_val_w=`echo x $ac_old_val`
2663         ac_new_val_w=`echo x $ac_new_val`
2664         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2665           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2666 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2667           ac_cache_corrupted=:
2668         else
2669           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2670 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2671           eval $ac_var=\$ac_old_val
2672         fi
2673         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2674 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2675         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2676 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2677       fi;;
2678   esac
2679   # Pass precious variables to config.status.
2680   if test "$ac_new_set" = set; then
2681     case $ac_new_val in
2682     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2683     *) ac_arg=$ac_var=$ac_new_val ;;
2684     esac
2685     case " $ac_configure_args " in
2686       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2687       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2688     esac
2689   fi
2690 done
2691 if $ac_cache_corrupted; then
2692   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2694   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2695 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2696   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2697 fi
2698 ## -------------------- ##
2699 ## Main body of script. ##
2700 ## -------------------- ##
2701
2702 ac_ext=c
2703 ac_cpp='$CPP $CPPFLAGS'
2704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2707
2708
2709 am__api_version='1.15'
2710
2711 ac_aux_dir=
2712 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2713   if test -f "$ac_dir/install-sh"; then
2714     ac_aux_dir=$ac_dir
2715     ac_install_sh="$ac_aux_dir/install-sh -c"
2716     break
2717   elif test -f "$ac_dir/install.sh"; then
2718     ac_aux_dir=$ac_dir
2719     ac_install_sh="$ac_aux_dir/install.sh -c"
2720     break
2721   elif test -f "$ac_dir/shtool"; then
2722     ac_aux_dir=$ac_dir
2723     ac_install_sh="$ac_aux_dir/shtool install -c"
2724     break
2725   fi
2726 done
2727 if test -z "$ac_aux_dir"; then
2728   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2729 fi
2730
2731 # These three variables are undocumented and unsupported,
2732 # and are intended to be withdrawn in a future Autoconf release.
2733 # They can cause serious problems if a builder's source tree is in a directory
2734 # whose full name contains unusual characters.
2735 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2736 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2737 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2738
2739
2740 # Find a good install program.  We prefer a C program (faster),
2741 # so one script is as good as another.  But avoid the broken or
2742 # incompatible versions:
2743 # SysV /etc/install, /usr/sbin/install
2744 # SunOS /usr/etc/install
2745 # IRIX /sbin/install
2746 # AIX /bin/install
2747 # AmigaOS /C/install, which installs bootblocks on floppy discs
2748 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2749 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2750 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2751 # OS/2's system install, which has a completely different semantic
2752 # ./install, which can be erroneously created by make from ./install.sh.
2753 # Reject install programs that cannot install multiple files.
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2755 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2756 if test -z "$INSTALL"; then
2757 if ${ac_cv_path_install+:} false; then :
2758   $as_echo_n "(cached) " >&6
2759 else
2760   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2761 for as_dir in $PATH
2762 do
2763   IFS=$as_save_IFS
2764   test -z "$as_dir" && as_dir=.
2765     # Account for people who put trailing slashes in PATH elements.
2766 case $as_dir/ in #((
2767   ./ | .// | /[cC]/* | \
2768   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2769   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2770   /usr/ucb/* ) ;;
2771   *)
2772     # OSF1 and SCO ODT 3.0 have their own names for install.
2773     # Don't use installbsd from OSF since it installs stuff as root
2774     # by default.
2775     for ac_prog in ginstall scoinst install; do
2776       for ac_exec_ext in '' $ac_executable_extensions; do
2777         if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2778           if test $ac_prog = install &&
2779             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2780             # AIX install.  It has an incompatible calling convention.
2781             :
2782           elif test $ac_prog = install &&
2783             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2784             # program-specific install script used by HP pwplus--don't use.
2785             :
2786           else
2787             rm -rf conftest.one conftest.two conftest.dir
2788             echo one > conftest.one
2789             echo two > conftest.two
2790             mkdir conftest.dir
2791             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2792               test -s conftest.one && test -s conftest.two &&
2793               test -s conftest.dir/conftest.one &&
2794               test -s conftest.dir/conftest.two
2795             then
2796               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2797               break 3
2798             fi
2799           fi
2800         fi
2801       done
2802     done
2803     ;;
2804 esac
2805
2806   done
2807 IFS=$as_save_IFS
2808
2809 rm -rf conftest.one conftest.two conftest.dir
2810
2811 fi
2812   if test "${ac_cv_path_install+set}" = set; then
2813     INSTALL=$ac_cv_path_install
2814   else
2815     # As a last resort, use the slow shell script.  Don't cache a
2816     # value for INSTALL within a source directory, because that will
2817     # break other packages using the cache if that directory is
2818     # removed, or if the value is a relative name.
2819     INSTALL=$ac_install_sh
2820   fi
2821 fi
2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2823 $as_echo "$INSTALL" >&6; }
2824
2825 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2826 # It thinks the first close brace ends the variable substitution.
2827 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2828
2829 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2830
2831 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2832
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2834 $as_echo_n "checking whether build environment is sane... " >&6; }
2835 # Reject unsafe characters in $srcdir or the absolute working directory
2836 # name.  Accept space and tab only in the latter.
2837 am_lf='
2838 '
2839 case `pwd` in
2840   *[\\\"\#\$\&\'\`$am_lf]*)
2841     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2842 esac
2843 case $srcdir in
2844   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2845     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2846 esac
2847
2848 # Do 'set' in a subshell so we don't clobber the current shell's
2849 # arguments.  Must try -L first in case configure is actually a
2850 # symlink; some systems play weird games with the mod time of symlinks
2851 # (eg FreeBSD returns the mod time of the symlink's containing
2852 # directory).
2853 if (
2854    am_has_slept=no
2855    for am_try in 1 2; do
2856      echo "timestamp, slept: $am_has_slept" > conftest.file
2857      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2858      if test "$*" = "X"; then
2859         # -L didn't work.
2860         set X `ls -t "$srcdir/configure" conftest.file`
2861      fi
2862      if test "$*" != "X $srcdir/configure conftest.file" \
2863         && test "$*" != "X conftest.file $srcdir/configure"; then
2864
2865         # If neither matched, then we have a broken ls.  This can happen
2866         # if, for instance, CONFIG_SHELL is bash and it inherits a
2867         # broken ls alias from the environment.  This has actually
2868         # happened.  Such a system could not be considered "sane".
2869         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2870   alias in your environment" "$LINENO" 5
2871      fi
2872      if test "$2" = conftest.file || test $am_try -eq 2; then
2873        break
2874      fi
2875      # Just in case.
2876      sleep 1
2877      am_has_slept=yes
2878    done
2879    test "$2" = conftest.file
2880    )
2881 then
2882    # Ok.
2883    :
2884 else
2885    as_fn_error $? "newly created file is older than distributed files!
2886 Check your system clock" "$LINENO" 5
2887 fi
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 # If we didn't sleep, we still need to ensure time stamps of config.status and
2891 # generated files are strictly newer.
2892 am_sleep_pid=
2893 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2894   ( sleep 1 ) &
2895   am_sleep_pid=$!
2896 fi
2897
2898 rm -f conftest.file
2899
2900 test "$program_prefix" != NONE &&
2901   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2902 # Use a double $ so make ignores it.
2903 test "$program_suffix" != NONE &&
2904   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2905 # Double any \ or $.
2906 # By default was `s,x,x', remove it if useless.
2907 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2908 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2909
2910 # Expand $ac_aux_dir to an absolute path.
2911 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2912
2913 if test x"${MISSING+set}" != xset; then
2914   case $am_aux_dir in
2915   *\ * | *\     *)
2916     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2917   *)
2918     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2919   esac
2920 fi
2921 # Use eval to expand $SHELL
2922 if eval "$MISSING --is-lightweight"; then
2923   am_missing_run="$MISSING "
2924 else
2925   am_missing_run=
2926   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2927 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2928 fi
2929
2930 if test x"${install_sh+set}" != xset; then
2931   case $am_aux_dir in
2932   *\ * | *\     *)
2933     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2934   *)
2935     install_sh="\${SHELL} $am_aux_dir/install-sh"
2936   esac
2937 fi
2938
2939 # Installed binaries are usually stripped using 'strip' when the user
2940 # run "make install-strip".  However 'strip' might not be the right
2941 # tool to use in cross-compilation environments, therefore Automake
2942 # will honor the 'STRIP' environment variable to overrule this program.
2943 if test "$cross_compiling" != no; then
2944   if test -n "$ac_tool_prefix"; then
2945   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2946 set dummy ${ac_tool_prefix}strip; ac_word=$2
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2948 $as_echo_n "checking for $ac_word... " >&6; }
2949 if ${ac_cv_prog_STRIP+:} false; then :
2950   $as_echo_n "(cached) " >&6
2951 else
2952   if test -n "$STRIP"; then
2953   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2954 else
2955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2956 for as_dir in $PATH
2957 do
2958   IFS=$as_save_IFS
2959   test -z "$as_dir" && as_dir=.
2960     for ac_exec_ext in '' $ac_executable_extensions; do
2961   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2962     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964     break 2
2965   fi
2966 done
2967   done
2968 IFS=$as_save_IFS
2969
2970 fi
2971 fi
2972 STRIP=$ac_cv_prog_STRIP
2973 if test -n "$STRIP"; then
2974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2975 $as_echo "$STRIP" >&6; }
2976 else
2977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2978 $as_echo "no" >&6; }
2979 fi
2980
2981
2982 fi
2983 if test -z "$ac_cv_prog_STRIP"; then
2984   ac_ct_STRIP=$STRIP
2985   # Extract the first word of "strip", so it can be a program name with args.
2986 set dummy strip; ac_word=$2
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2988 $as_echo_n "checking for $ac_word... " >&6; }
2989 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2990   $as_echo_n "(cached) " >&6
2991 else
2992   if test -n "$ac_ct_STRIP"; then
2993   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH
2997 do
2998   IFS=$as_save_IFS
2999   test -z "$as_dir" && as_dir=.
3000     for ac_exec_ext in '' $ac_executable_extensions; do
3001   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3002     ac_cv_prog_ac_ct_STRIP="strip"
3003     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3004     break 2
3005   fi
3006 done
3007   done
3008 IFS=$as_save_IFS
3009
3010 fi
3011 fi
3012 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3013 if test -n "$ac_ct_STRIP"; then
3014   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3015 $as_echo "$ac_ct_STRIP" >&6; }
3016 else
3017   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3018 $as_echo "no" >&6; }
3019 fi
3020
3021   if test "x$ac_ct_STRIP" = x; then
3022     STRIP=":"
3023   else
3024     case $cross_compiling:$ac_tool_warned in
3025 yes:)
3026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3027 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3028 ac_tool_warned=yes ;;
3029 esac
3030     STRIP=$ac_ct_STRIP
3031   fi
3032 else
3033   STRIP="$ac_cv_prog_STRIP"
3034 fi
3035
3036 fi
3037 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3038
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3040 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3041 if test -z "$MKDIR_P"; then
3042   if ${ac_cv_path_mkdir+:} false; then :
3043   $as_echo_n "(cached) " >&6
3044 else
3045   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3046 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3047 do
3048   IFS=$as_save_IFS
3049   test -z "$as_dir" && as_dir=.
3050     for ac_prog in mkdir gmkdir; do
3051          for ac_exec_ext in '' $ac_executable_extensions; do
3052            as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3053            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3054              'mkdir (GNU coreutils) '* | \
3055              'mkdir (coreutils) '* | \
3056              'mkdir (fileutils) '4.1*)
3057                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3058                break 3;;
3059            esac
3060          done
3061        done
3062   done
3063 IFS=$as_save_IFS
3064
3065 fi
3066
3067   test -d ./--version && rmdir ./--version
3068   if test "${ac_cv_path_mkdir+set}" = set; then
3069     MKDIR_P="$ac_cv_path_mkdir -p"
3070   else
3071     # As a last resort, use the slow shell script.  Don't cache a
3072     # value for MKDIR_P within a source directory, because that will
3073     # break other packages using the cache if that directory is
3074     # removed, or if the value is a relative name.
3075     MKDIR_P="$ac_install_sh -d"
3076   fi
3077 fi
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3079 $as_echo "$MKDIR_P" >&6; }
3080
3081 for ac_prog in gawk mawk nawk awk
3082 do
3083   # Extract the first word of "$ac_prog", so it can be a program name with args.
3084 set dummy $ac_prog; ac_word=$2
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3086 $as_echo_n "checking for $ac_word... " >&6; }
3087 if ${ac_cv_prog_AWK+:} false; then :
3088   $as_echo_n "(cached) " >&6
3089 else
3090   if test -n "$AWK"; then
3091   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3092 else
3093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3094 for as_dir in $PATH
3095 do
3096   IFS=$as_save_IFS
3097   test -z "$as_dir" && as_dir=.
3098     for ac_exec_ext in '' $ac_executable_extensions; do
3099   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3100     ac_cv_prog_AWK="$ac_prog"
3101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3102     break 2
3103   fi
3104 done
3105   done
3106 IFS=$as_save_IFS
3107
3108 fi
3109 fi
3110 AWK=$ac_cv_prog_AWK
3111 if test -n "$AWK"; then
3112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3113 $as_echo "$AWK" >&6; }
3114 else
3115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3116 $as_echo "no" >&6; }
3117 fi
3118
3119
3120   test -n "$AWK" && break
3121 done
3122
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3124 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3125 set x ${MAKE-make}
3126 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3127 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3128   $as_echo_n "(cached) " >&6
3129 else
3130   cat >conftest.make <<\_ACEOF
3131 SHELL = /bin/sh
3132 all:
3133         @echo '@@@%%%=$(MAKE)=@@@%%%'
3134 _ACEOF
3135 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3136 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3137   *@@@%%%=?*=@@@%%%*)
3138     eval ac_cv_prog_make_${ac_make}_set=yes;;
3139   *)
3140     eval ac_cv_prog_make_${ac_make}_set=no;;
3141 esac
3142 rm -f conftest.make
3143 fi
3144 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3146 $as_echo "yes" >&6; }
3147   SET_MAKE=
3148 else
3149   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3150 $as_echo "no" >&6; }
3151   SET_MAKE="MAKE=${MAKE-make}"
3152 fi
3153
3154 rm -rf .tst 2>/dev/null
3155 mkdir .tst 2>/dev/null
3156 if test -d .tst; then
3157   am__leading_dot=.
3158 else
3159   am__leading_dot=_
3160 fi
3161 rmdir .tst 2>/dev/null
3162
3163 # Check whether --enable-silent-rules was given.
3164 if test "${enable_silent_rules+set}" = set; then :
3165   enableval=$enable_silent_rules;
3166 fi
3167
3168 case $enable_silent_rules in # (((
3169   yes) AM_DEFAULT_VERBOSITY=0;;
3170    no) AM_DEFAULT_VERBOSITY=1;;
3171     *) AM_DEFAULT_VERBOSITY=1;;
3172 esac
3173 am_make=${MAKE-make}
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3175 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3176 if ${am_cv_make_support_nested_variables+:} false; then :
3177   $as_echo_n "(cached) " >&6
3178 else
3179   if $as_echo 'TRUE=$(BAR$(V))
3180 BAR0=false
3181 BAR1=true
3182 V=1
3183 am__doit:
3184         @$(TRUE)
3185 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3186   am_cv_make_support_nested_variables=yes
3187 else
3188   am_cv_make_support_nested_variables=no
3189 fi
3190 fi
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3192 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3193 if test $am_cv_make_support_nested_variables = yes; then
3194     AM_V='$(V)'
3195   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3196 else
3197   AM_V=$AM_DEFAULT_VERBOSITY
3198   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3199 fi
3200 AM_BACKSLASH='\'
3201
3202 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3203   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3204   # is not polluted with repeated "-I."
3205   am__isrc=' -I$(srcdir)'
3206   # test to see if srcdir already configured
3207   if test -f $srcdir/config.status; then
3208     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3209   fi
3210 fi
3211
3212 # test whether we have cygpath
3213 if test -z "$CYGPATH_W"; then
3214   if (cygpath --version) >/dev/null 2>/dev/null; then
3215     CYGPATH_W='cygpath -w'
3216   else
3217     CYGPATH_W=echo
3218   fi
3219 fi
3220
3221
3222 # Define the identity of the package.
3223  PACKAGE='fontconfig'
3224  VERSION='2.12.1'
3225
3226
3227 cat >>confdefs.h <<_ACEOF
3228 #define PACKAGE "$PACKAGE"
3229 _ACEOF
3230
3231
3232 cat >>confdefs.h <<_ACEOF
3233 #define VERSION "$VERSION"
3234 _ACEOF
3235
3236 # Some tools Automake needs.
3237
3238 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3239
3240
3241 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3242
3243
3244 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3245
3246
3247 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3248
3249
3250 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3251
3252 # For better backward compatibility.  To be removed once Automake 1.9.x
3253 # dies out for good.  For more background, see:
3254 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3255 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3256 mkdir_p='$(MKDIR_P)'
3257
3258 # We need awk for the "check" target (and possibly the TAP driver).  The
3259 # system "awk" is bad on some platforms.
3260 # Always define AMTAR for backward compatibility.  Yes, it's still used
3261 # in the wild :-(  We should find a proper way to deprecate it ...
3262 AMTAR='$${TAR-tar}'
3263
3264
3265 # We'll loop over all known methods to create a tar archive until one works.
3266 _am_tools='gnutar  pax cpio none'
3267
3268 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3269
3270
3271
3272
3273
3274
3275 # POSIX will say in a future version that running "rm -f" with no argument
3276 # is OK; and we want to be able to make that assumption in our Makefile
3277 # recipes.  So use an aggressive probe to check that the usage we want is
3278 # actually supported "in the wild" to an acceptable degree.
3279 # See automake bug#10828.
3280 # To make any issue more visible, cause the running configure to be aborted
3281 # by default if the 'rm' program in use doesn't match our expectations; the
3282 # user can still override this though.
3283 if rm -f && rm -fr && rm -rf; then : OK; else
3284   cat >&2 <<'END'
3285 Oops!
3286
3287 Your 'rm' program seems unable to run without file operands specified
3288 on the command line, even when the '-f' option is present.  This is contrary
3289 to the behaviour of most rm programs out there, and not conforming with
3290 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3291
3292 Please tell bug-automake@gnu.org about your system, including the value
3293 of your $PATH and any error possibly output before this message.  This
3294 can help us improve future automake versions.
3295
3296 END
3297   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3298     echo 'Configuration will proceed anyway, since you have set the' >&2
3299     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3300     echo >&2
3301   else
3302     cat >&2 <<'END'
3303 Aborting the configuration process, to ensure you take notice of the issue.
3304
3305 You can download and install GNU coreutils to get an 'rm' implementation
3306 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3307
3308 If you want to complete the configuration process using your problematic
3309 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3310 to "yes", and re-run configure.
3311
3312 END
3313     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3314   fi
3315 fi
3316
3317 # Check whether --enable-silent-rules was given.
3318 if test "${enable_silent_rules+set}" = set; then :
3319   enableval=$enable_silent_rules;
3320 fi
3321
3322 case $enable_silent_rules in # (((
3323   yes) AM_DEFAULT_VERBOSITY=0;;
3324    no) AM_DEFAULT_VERBOSITY=1;;
3325     *) AM_DEFAULT_VERBOSITY=0;;
3326 esac
3327 am_make=${MAKE-make}
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3329 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3330 if ${am_cv_make_support_nested_variables+:} false; then :
3331   $as_echo_n "(cached) " >&6
3332 else
3333   if $as_echo 'TRUE=$(BAR$(V))
3334 BAR0=false
3335 BAR1=true
3336 V=1
3337 am__doit:
3338         @$(TRUE)
3339 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3340   am_cv_make_support_nested_variables=yes
3341 else
3342   am_cv_make_support_nested_variables=no
3343 fi
3344 fi
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3346 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3347 if test $am_cv_make_support_nested_variables = yes; then
3348     AM_V='$(V)'
3349   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3350 else
3351   AM_V=$AM_DEFAULT_VERBOSITY
3352   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3353 fi
3354 AM_BACKSLASH='\'
3355
3356
3357
3358 ac_config_headers="$ac_config_headers config.h"
3359
3360
3361
3362 ac_ext=c
3363 ac_cpp='$CPP $CPPFLAGS'
3364 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3365 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3366 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3367 if test -n "$ac_tool_prefix"; then
3368   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3371 $as_echo_n "checking for $ac_word... " >&6; }
3372 if ${ac_cv_prog_CC+:} false; then :
3373   $as_echo_n "(cached) " >&6
3374 else
3375   if test -n "$CC"; then
3376   ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381   IFS=$as_save_IFS
3382   test -z "$as_dir" && as_dir=.
3383     for ac_exec_ext in '' $ac_executable_extensions; do
3384   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3385     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3386     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3387     break 2
3388   fi
3389 done
3390   done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3398 $as_echo "$CC" >&6; }
3399 else
3400   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3401 $as_echo "no" >&6; }
3402 fi
3403
3404
3405 fi
3406 if test -z "$ac_cv_prog_CC"; then
3407   ac_ct_CC=$CC
3408   # Extract the first word of "gcc", so it can be a program name with args.
3409 set dummy gcc; ac_word=$2
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3411 $as_echo_n "checking for $ac_word... " >&6; }
3412 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3413   $as_echo_n "(cached) " >&6
3414 else
3415   if test -n "$ac_ct_CC"; then
3416   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3417 else
3418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3419 for as_dir in $PATH
3420 do
3421   IFS=$as_save_IFS
3422   test -z "$as_dir" && as_dir=.
3423     for ac_exec_ext in '' $ac_executable_extensions; do
3424   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3425     ac_cv_prog_ac_ct_CC="gcc"
3426     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3427     break 2
3428   fi
3429 done
3430   done
3431 IFS=$as_save_IFS
3432
3433 fi
3434 fi
3435 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3436 if test -n "$ac_ct_CC"; then
3437   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3438 $as_echo "$ac_ct_CC" >&6; }
3439 else
3440   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3441 $as_echo "no" >&6; }
3442 fi
3443
3444   if test "x$ac_ct_CC" = x; then
3445     CC=""
3446   else
3447     case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453     CC=$ac_ct_CC
3454   fi
3455 else
3456   CC="$ac_cv_prog_CC"
3457 fi
3458
3459 if test -z "$CC"; then
3460           if test -n "$ac_tool_prefix"; then
3461     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3462 set dummy ${ac_tool_prefix}cc; ac_word=$2
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3464 $as_echo_n "checking for $ac_word... " >&6; }
3465 if ${ac_cv_prog_CC+:} false; then :
3466   $as_echo_n "(cached) " >&6
3467 else
3468   if test -n "$CC"; then
3469   ac_cv_prog_CC="$CC" # Let the user override the test.
3470 else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472 for as_dir in $PATH
3473 do
3474   IFS=$as_save_IFS
3475   test -z "$as_dir" && as_dir=.
3476     for ac_exec_ext in '' $ac_executable_extensions; do
3477   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3478     ac_cv_prog_CC="${ac_tool_prefix}cc"
3479     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3480     break 2
3481   fi
3482 done
3483   done
3484 IFS=$as_save_IFS
3485
3486 fi
3487 fi
3488 CC=$ac_cv_prog_CC
3489 if test -n "$CC"; then
3490   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3491 $as_echo "$CC" >&6; }
3492 else
3493   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3494 $as_echo "no" >&6; }
3495 fi
3496
3497
3498   fi
3499 fi
3500 if test -z "$CC"; then
3501   # Extract the first word of "cc", so it can be a program name with args.
3502 set dummy cc; ac_word=$2
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3504 $as_echo_n "checking for $ac_word... " >&6; }
3505 if ${ac_cv_prog_CC+:} false; then :
3506   $as_echo_n "(cached) " >&6
3507 else
3508   if test -n "$CC"; then
3509   ac_cv_prog_CC="$CC" # Let the user override the test.
3510 else
3511   ac_prog_rejected=no
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515   IFS=$as_save_IFS
3516   test -z "$as_dir" && as_dir=.
3517     for ac_exec_ext in '' $ac_executable_extensions; do
3518   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3520        ac_prog_rejected=yes
3521        continue
3522      fi
3523     ac_cv_prog_CC="cc"
3524     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525     break 2
3526   fi
3527 done
3528   done
3529 IFS=$as_save_IFS
3530
3531 if test $ac_prog_rejected = yes; then
3532   # We found a bogon in the path, so make sure we never use it.
3533   set dummy $ac_cv_prog_CC
3534   shift
3535   if test $# != 0; then
3536     # We chose a different compiler from the bogus one.
3537     # However, it has the same basename, so the bogon will be chosen
3538     # first if we set CC to just the basename; use the full file name.
3539     shift
3540     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3541   fi
3542 fi
3543 fi
3544 fi
3545 CC=$ac_cv_prog_CC
3546 if test -n "$CC"; then
3547   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3548 $as_echo "$CC" >&6; }
3549 else
3550   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3551 $as_echo "no" >&6; }
3552 fi
3553
3554
3555 fi
3556 if test -z "$CC"; then
3557   if test -n "$ac_tool_prefix"; then
3558   for ac_prog in cl.exe
3559   do
3560     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3561 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3563 $as_echo_n "checking for $ac_word... " >&6; }
3564 if ${ac_cv_prog_CC+:} false; then :
3565   $as_echo_n "(cached) " >&6
3566 else
3567   if test -n "$CC"; then
3568   ac_cv_prog_CC="$CC" # Let the user override the test.
3569 else
3570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3571 for as_dir in $PATH
3572 do
3573   IFS=$as_save_IFS
3574   test -z "$as_dir" && as_dir=.
3575     for ac_exec_ext in '' $ac_executable_extensions; do
3576   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3577     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3578     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3579     break 2
3580   fi
3581 done
3582   done
3583 IFS=$as_save_IFS
3584
3585 fi
3586 fi
3587 CC=$ac_cv_prog_CC
3588 if test -n "$CC"; then
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3590 $as_echo "$CC" >&6; }
3591 else
3592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3593 $as_echo "no" >&6; }
3594 fi
3595
3596
3597     test -n "$CC" && break
3598   done
3599 fi
3600 if test -z "$CC"; then
3601   ac_ct_CC=$CC
3602   for ac_prog in cl.exe
3603 do
3604   # Extract the first word of "$ac_prog", so it can be a program name with args.
3605 set dummy $ac_prog; ac_word=$2
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3607 $as_echo_n "checking for $ac_word... " >&6; }
3608 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3609   $as_echo_n "(cached) " >&6
3610 else
3611   if test -n "$ac_ct_CC"; then
3612   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3613 else
3614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3615 for as_dir in $PATH
3616 do
3617   IFS=$as_save_IFS
3618   test -z "$as_dir" && as_dir=.
3619     for ac_exec_ext in '' $ac_executable_extensions; do
3620   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3621     ac_cv_prog_ac_ct_CC="$ac_prog"
3622     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623     break 2
3624   fi
3625 done
3626   done
3627 IFS=$as_save_IFS
3628
3629 fi
3630 fi
3631 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3632 if test -n "$ac_ct_CC"; then
3633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3634 $as_echo "$ac_ct_CC" >&6; }
3635 else
3636   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3637 $as_echo "no" >&6; }
3638 fi
3639
3640
3641   test -n "$ac_ct_CC" && break
3642 done
3643
3644   if test "x$ac_ct_CC" = x; then
3645     CC=""
3646   else
3647     case $cross_compiling:$ac_tool_warned in
3648 yes:)
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3651 ac_tool_warned=yes ;;
3652 esac
3653     CC=$ac_ct_CC
3654   fi
3655 fi
3656
3657 fi
3658
3659
3660 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3661 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3662 as_fn_error $? "no acceptable C compiler found in \$PATH
3663 See \`config.log' for more details" "$LINENO" 5; }
3664
3665 # Provide some information about the compiler.
3666 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3667 set X $ac_compile
3668 ac_compiler=$2
3669 for ac_option in --version -v -V -qversion; do
3670   { { ac_try="$ac_compiler $ac_option >&5"
3671 case "(($ac_try" in
3672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3673   *) ac_try_echo=$ac_try;;
3674 esac
3675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3676 $as_echo "$ac_try_echo"; } >&5
3677   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3678   ac_status=$?
3679   if test -s conftest.err; then
3680     sed '10a\
3681 ... rest of stderr output deleted ...
3682          10q' conftest.err >conftest.er1
3683     cat conftest.er1 >&5
3684   fi
3685   rm -f conftest.er1 conftest.err
3686   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3687   test $ac_status = 0; }
3688 done
3689
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h.  */
3692
3693 int
3694 main ()
3695 {
3696
3697   ;
3698   return 0;
3699 }
3700 _ACEOF
3701 ac_clean_files_save=$ac_clean_files
3702 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3703 # Try to create an executable without -o first, disregard a.out.
3704 # It will help us diagnose broken compilers, and finding out an intuition
3705 # of exeext.
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3707 $as_echo_n "checking whether the C compiler works... " >&6; }
3708 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3709
3710 # The possible output files:
3711 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3712
3713 ac_rmfiles=
3714 for ac_file in $ac_files
3715 do
3716   case $ac_file in
3717     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3718     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3719   esac
3720 done
3721 rm -f $ac_rmfiles
3722
3723 if { { ac_try="$ac_link_default"
3724 case "(($ac_try" in
3725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726   *) ac_try_echo=$ac_try;;
3727 esac
3728 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3729 $as_echo "$ac_try_echo"; } >&5
3730   (eval "$ac_link_default") 2>&5
3731   ac_status=$?
3732   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3733   test $ac_status = 0; }; then :
3734   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3735 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3736 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3737 # so that the user can short-circuit this test for compilers unknown to
3738 # Autoconf.
3739 for ac_file in $ac_files ''
3740 do
3741   test -f "$ac_file" || continue
3742   case $ac_file in
3743     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3744         ;;
3745     [ab].out )
3746         # We found the default executable, but exeext='' is most
3747         # certainly right.
3748         break;;
3749     *.* )
3750         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3751         then :; else
3752            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3753         fi
3754         # We set ac_cv_exeext here because the later test for it is not
3755         # safe: cross compilers may not add the suffix if given an `-o'
3756         # argument, so we may need to know it at that point already.
3757         # Even if this section looks crufty: it has the advantage of
3758         # actually working.
3759         break;;
3760     * )
3761         break;;
3762   esac
3763 done
3764 test "$ac_cv_exeext" = no && ac_cv_exeext=
3765
3766 else
3767   ac_file=''
3768 fi
3769 if test -z "$ac_file"; then :
3770   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3772 $as_echo "$as_me: failed program was:" >&5
3773 sed 's/^/| /' conftest.$ac_ext >&5
3774
3775 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3776 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3777 as_fn_error 77 "C compiler cannot create executables
3778 See \`config.log' for more details" "$LINENO" 5; }
3779 else
3780   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3781 $as_echo "yes" >&6; }
3782 fi
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3784 $as_echo_n "checking for C compiler default output file name... " >&6; }
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3786 $as_echo "$ac_file" >&6; }
3787 ac_exeext=$ac_cv_exeext
3788
3789 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3790 ac_clean_files=$ac_clean_files_save
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3792 $as_echo_n "checking for suffix of executables... " >&6; }
3793 if { { ac_try="$ac_link"
3794 case "(($ac_try" in
3795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3796   *) ac_try_echo=$ac_try;;
3797 esac
3798 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3799 $as_echo "$ac_try_echo"; } >&5
3800   (eval "$ac_link") 2>&5
3801   ac_status=$?
3802   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3803   test $ac_status = 0; }; then :
3804   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3805 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3806 # work properly (i.e., refer to `conftest.exe'), while it won't with
3807 # `rm'.
3808 for ac_file in conftest.exe conftest conftest.*; do
3809   test -f "$ac_file" || continue
3810   case $ac_file in
3811     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3812     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813           break;;
3814     * ) break;;
3815   esac
3816 done
3817 else
3818   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3819 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3820 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3821 See \`config.log' for more details" "$LINENO" 5; }
3822 fi
3823 rm -f conftest conftest$ac_cv_exeext
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3825 $as_echo "$ac_cv_exeext" >&6; }
3826
3827 rm -f conftest.$ac_ext
3828 EXEEXT=$ac_cv_exeext
3829 ac_exeext=$EXEEXT
3830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831 /* end confdefs.h.  */
3832 #include <stdio.h>
3833 int
3834 main ()
3835 {
3836 FILE *f = fopen ("conftest.out", "w");
3837  return ferror (f) || fclose (f) != 0;
3838
3839   ;
3840   return 0;
3841 }
3842 _ACEOF
3843 ac_clean_files="$ac_clean_files conftest.out"
3844 # Check that the compiler produces executables we can run.  If not, either
3845 # the compiler is broken, or we cross compile.
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3847 $as_echo_n "checking whether we are cross compiling... " >&6; }
3848 if test "$cross_compiling" != yes; then
3849   { { ac_try="$ac_link"
3850 case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856   (eval "$ac_link") 2>&5
3857   ac_status=$?
3858   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859   test $ac_status = 0; }
3860   if { ac_try='./conftest$ac_cv_exeext'
3861   { { case "(($ac_try" in
3862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863   *) ac_try_echo=$ac_try;;
3864 esac
3865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3866 $as_echo "$ac_try_echo"; } >&5
3867   (eval "$ac_try") 2>&5
3868   ac_status=$?
3869   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870   test $ac_status = 0; }; }; then
3871     cross_compiling=no
3872   else
3873     if test "$cross_compiling" = maybe; then
3874         cross_compiling=yes
3875     else
3876         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3878 as_fn_error $? "cannot run C compiled programs.
3879 If you meant to cross compile, use \`--host'.
3880 See \`config.log' for more details" "$LINENO" 5; }
3881     fi
3882   fi
3883 fi
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3885 $as_echo "$cross_compiling" >&6; }
3886
3887 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3888 ac_clean_files=$ac_clean_files_save
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3890 $as_echo_n "checking for suffix of object files... " >&6; }
3891 if ${ac_cv_objext+:} false; then :
3892   $as_echo_n "(cached) " >&6
3893 else
3894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3895 /* end confdefs.h.  */
3896
3897 int
3898 main ()
3899 {
3900
3901   ;
3902   return 0;
3903 }
3904 _ACEOF
3905 rm -f conftest.o conftest.obj
3906 if { { ac_try="$ac_compile"
3907 case "(($ac_try" in
3908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3909   *) ac_try_echo=$ac_try;;
3910 esac
3911 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3912 $as_echo "$ac_try_echo"; } >&5
3913   (eval "$ac_compile") 2>&5
3914   ac_status=$?
3915   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3916   test $ac_status = 0; }; then :
3917   for ac_file in conftest.o conftest.obj conftest.*; do
3918   test -f "$ac_file" || continue;
3919   case $ac_file in
3920     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3921     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3922        break;;
3923   esac
3924 done
3925 else
3926   $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "cannot compute suffix of object files: cannot compile
3932 See \`config.log' for more details" "$LINENO" 5; }
3933 fi
3934 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3935 fi
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3937 $as_echo "$ac_cv_objext" >&6; }
3938 OBJEXT=$ac_cv_objext
3939 ac_objext=$OBJEXT
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3941 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3942 if ${ac_cv_c_compiler_gnu+:} false; then :
3943   $as_echo_n "(cached) " >&6
3944 else
3945   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h.  */
3947
3948 int
3949 main ()
3950 {
3951 #ifndef __GNUC__
3952        choke me
3953 #endif
3954
3955   ;
3956   return 0;
3957 }
3958 _ACEOF
3959 if ac_fn_c_try_compile "$LINENO"; then :
3960   ac_compiler_gnu=yes
3961 else
3962   ac_compiler_gnu=no
3963 fi
3964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3966
3967 fi
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3969 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3970 if test $ac_compiler_gnu = yes; then
3971   GCC=yes
3972 else
3973   GCC=
3974 fi
3975 ac_test_CFLAGS=${CFLAGS+set}
3976 ac_save_CFLAGS=$CFLAGS
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3978 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3979 if ${ac_cv_prog_cc_g+:} false; then :
3980   $as_echo_n "(cached) " >&6
3981 else
3982   ac_save_c_werror_flag=$ac_c_werror_flag
3983    ac_c_werror_flag=yes
3984    ac_cv_prog_cc_g=no
3985    CFLAGS="-g"
3986    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3987 /* end confdefs.h.  */
3988
3989 int
3990 main ()
3991 {
3992
3993   ;
3994   return 0;
3995 }
3996 _ACEOF
3997 if ac_fn_c_try_compile "$LINENO"; then :
3998   ac_cv_prog_cc_g=yes
3999 else
4000   CFLAGS=""
4001       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 if ac_fn_c_try_compile "$LINENO"; then :
4013
4014 else
4015   ac_c_werror_flag=$ac_save_c_werror_flag
4016          CFLAGS="-g"
4017          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4018 /* end confdefs.h.  */
4019
4020 int
4021 main ()
4022 {
4023
4024   ;
4025   return 0;
4026 }
4027 _ACEOF
4028 if ac_fn_c_try_compile "$LINENO"; then :
4029   ac_cv_prog_cc_g=yes
4030 fi
4031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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    ac_c_werror_flag=$ac_save_c_werror_flag
4037 fi
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4039 $as_echo "$ac_cv_prog_cc_g" >&6; }
4040 if test "$ac_test_CFLAGS" = set; then
4041   CFLAGS=$ac_save_CFLAGS
4042 elif test $ac_cv_prog_cc_g = yes; then
4043   if test "$GCC" = yes; then
4044     CFLAGS="-g -O2"
4045   else
4046     CFLAGS="-g"
4047   fi
4048 else
4049   if test "$GCC" = yes; then
4050     CFLAGS="-O2"
4051   else
4052     CFLAGS=
4053   fi
4054 fi
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4056 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4057 if ${ac_cv_prog_cc_c89+:} false; then :
4058   $as_echo_n "(cached) " >&6
4059 else
4060   ac_cv_prog_cc_c89=no
4061 ac_save_CC=$CC
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4063 /* end confdefs.h.  */
4064 #include <stdarg.h>
4065 #include <stdio.h>
4066 struct stat;
4067 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4068 struct buf { int x; };
4069 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4070 static char *e (p, i)
4071      char **p;
4072      int i;
4073 {
4074   return p[i];
4075 }
4076 static char *f (char * (*g) (char **, int), char **p, ...)
4077 {
4078   char *s;
4079   va_list v;
4080   va_start (v,p);
4081   s = g (p, va_arg (v,int));
4082   va_end (v);
4083   return s;
4084 }
4085
4086 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4087    function prototypes and stuff, but not '\xHH' hex character constants.
4088    These don't provoke an error unfortunately, instead are silently treated
4089    as 'x'.  The following induces an error, until -std is added to get
4090    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4091    array size at least.  It's necessary to write '\x00'==0 to get something
4092    that's true only with -std.  */
4093 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4094
4095 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4096    inside strings and character constants.  */
4097 #define FOO(x) 'x'
4098 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4099
4100 int test (int i, double x);
4101 struct s1 {int (*f) (int a);};
4102 struct s2 {int (*f) (double a);};
4103 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4104 int argc;
4105 char **argv;
4106 int
4107 main ()
4108 {
4109 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4115         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4116 do
4117   CC="$ac_save_CC $ac_arg"
4118   if ac_fn_c_try_compile "$LINENO"; then :
4119   ac_cv_prog_cc_c89=$ac_arg
4120 fi
4121 rm -f core conftest.err conftest.$ac_objext
4122   test "x$ac_cv_prog_cc_c89" != "xno" && break
4123 done
4124 rm -f conftest.$ac_ext
4125 CC=$ac_save_CC
4126
4127 fi
4128 # AC_CACHE_VAL
4129 case "x$ac_cv_prog_cc_c89" in
4130   x)
4131     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4132 $as_echo "none needed" >&6; } ;;
4133   xno)
4134     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4135 $as_echo "unsupported" >&6; } ;;
4136   *)
4137     CC="$CC $ac_cv_prog_cc_c89"
4138     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4139 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4140 esac
4141 if test "x$ac_cv_prog_cc_c89" != xno; then :
4142
4143 fi
4144
4145 ac_ext=c
4146 ac_cpp='$CPP $CPPFLAGS'
4147 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4148 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4149 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4150
4151 ac_ext=c
4152 ac_cpp='$CPP $CPPFLAGS'
4153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4157 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4158 if ${am_cv_prog_cc_c_o+:} false; then :
4159   $as_echo_n "(cached) " >&6
4160 else
4161   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h.  */
4163
4164 int
4165 main ()
4166 {
4167
4168   ;
4169   return 0;
4170 }
4171 _ACEOF
4172   # Make sure it works both with $CC and with simple cc.
4173   # Following AC_PROG_CC_C_O, we do the test twice because some
4174   # compilers refuse to overwrite an existing .o file with -o,
4175   # though they will create one.
4176   am_cv_prog_cc_c_o=yes
4177   for am_i in 1 2; do
4178     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4179    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4180    ac_status=$?
4181    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182    (exit $ac_status); } \
4183          && test -f conftest2.$ac_objext; then
4184       : OK
4185     else
4186       am_cv_prog_cc_c_o=no
4187       break
4188     fi
4189   done
4190   rm -f core conftest*
4191   unset am_i
4192 fi
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4194 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4195 if test "$am_cv_prog_cc_c_o" != yes; then
4196    # Losing compiler, so override with the script.
4197    # FIXME: It is wrong to rewrite CC.
4198    # But if we don't then we get into trouble of one sort or another.
4199    # A longer-term fix would be to have automake use am__CC in this case,
4200    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4201    CC="$am_aux_dir/compile $CC"
4202 fi
4203 ac_ext=c
4204 ac_cpp='$CPP $CPPFLAGS'
4205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4208
4209 DEPDIR="${am__leading_dot}deps"
4210
4211 ac_config_commands="$ac_config_commands depfiles"
4212
4213
4214 am_make=${MAKE-make}
4215 cat > confinc << 'END'
4216 am__doit:
4217         @echo this is the am__doit target
4218 .PHONY: am__doit
4219 END
4220 # If we don't find an include directive, just comment out the code.
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4222 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4223 am__include="#"
4224 am__quote=
4225 _am_result=none
4226 # First try GNU make style include.
4227 echo "include confinc" > confmf
4228 # Ignore all kinds of additional output from 'make'.
4229 case `$am_make -s -f confmf 2> /dev/null` in #(
4230 *the\ am__doit\ target*)
4231   am__include=include
4232   am__quote=
4233   _am_result=GNU
4234   ;;
4235 esac
4236 # Now try BSD make style include.
4237 if test "$am__include" = "#"; then
4238    echo '.include "confinc"' > confmf
4239    case `$am_make -s -f confmf 2> /dev/null` in #(
4240    *the\ am__doit\ target*)
4241      am__include=.include
4242      am__quote="\""
4243      _am_result=BSD
4244      ;;
4245    esac
4246 fi
4247
4248
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4250 $as_echo "$_am_result" >&6; }
4251 rm -f confinc confmf
4252
4253 # Check whether --enable-dependency-tracking was given.
4254 if test "${enable_dependency_tracking+set}" = set; then :
4255   enableval=$enable_dependency_tracking;
4256 fi
4257
4258 if test "x$enable_dependency_tracking" != xno; then
4259   am_depcomp="$ac_aux_dir/depcomp"
4260   AMDEPBACKSLASH='\'
4261   am__nodep='_no'
4262 fi
4263  if test "x$enable_dependency_tracking" != xno; then
4264   AMDEP_TRUE=
4265   AMDEP_FALSE='#'
4266 else
4267   AMDEP_TRUE='#'
4268   AMDEP_FALSE=
4269 fi
4270
4271
4272
4273 depcc="$CC"   am_compiler_list=
4274
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4276 $as_echo_n "checking dependency style of $depcc... " >&6; }
4277 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4278   $as_echo_n "(cached) " >&6
4279 else
4280   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4281   # We make a subdir and do the tests there.  Otherwise we can end up
4282   # making bogus files that we don't know about and never remove.  For
4283   # instance it was reported that on HP-UX the gcc test will end up
4284   # making a dummy file named 'D' -- because '-MD' means "put the output
4285   # in D".
4286   rm -rf conftest.dir
4287   mkdir conftest.dir
4288   # Copy depcomp to subdir because otherwise we won't find it if we're
4289   # using a relative directory.
4290   cp "$am_depcomp" conftest.dir
4291   cd conftest.dir
4292   # We will build objects and dependencies in a subdirectory because
4293   # it helps to detect inapplicable dependency modes.  For instance
4294   # both Tru64's cc and ICC support -MD to output dependencies as a
4295   # side effect of compilation, but ICC will put the dependencies in
4296   # the current directory while Tru64 will put them in the object
4297   # directory.
4298   mkdir sub
4299
4300   am_cv_CC_dependencies_compiler_type=none
4301   if test "$am_compiler_list" = ""; then
4302      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4303   fi
4304   am__universal=false
4305   case " $depcc " in #(
4306      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4307      esac
4308
4309   for depmode in $am_compiler_list; do
4310     # Setup a source with many dependencies, because some compilers
4311     # like to wrap large dependency lists on column 80 (with \), and
4312     # we should not choose a depcomp mode which is confused by this.
4313     #
4314     # We need to recreate these files for each test, as the compiler may
4315     # overwrite some of them when testing with obscure command lines.
4316     # This happens at least with the AIX C compiler.
4317     : > sub/conftest.c
4318     for i in 1 2 3 4 5 6; do
4319       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4320       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4321       # Solaris 10 /bin/sh.
4322       echo '/* dummy */' > sub/conftst$i.h
4323     done
4324     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4325
4326     # We check with '-c' and '-o' for the sake of the "dashmstdout"
4327     # mode.  It turns out that the SunPro C++ compiler does not properly
4328     # handle '-M -o', and we need to detect this.  Also, some Intel
4329     # versions had trouble with output in subdirs.
4330     am__obj=sub/conftest.${OBJEXT-o}
4331     am__minus_obj="-o $am__obj"
4332     case $depmode in
4333     gcc)
4334       # This depmode causes a compiler race in universal mode.
4335       test "$am__universal" = false || continue
4336       ;;
4337     nosideeffect)
4338       # After this tag, mechanisms are not by side-effect, so they'll
4339       # only be used when explicitly requested.
4340       if test "x$enable_dependency_tracking" = xyes; then
4341         continue
4342       else
4343         break
4344       fi
4345       ;;
4346     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4347       # This compiler won't grok '-c -o', but also, the minuso test has
4348       # not run yet.  These depmodes are late enough in the game, and
4349       # so weak that their functioning should not be impacted.
4350       am__obj=conftest.${OBJEXT-o}
4351       am__minus_obj=
4352       ;;
4353     none) break ;;
4354     esac
4355     if depmode=$depmode \
4356        source=sub/conftest.c object=$am__obj \
4357        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4358        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4359          >/dev/null 2>conftest.err &&
4360        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4361        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4362        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4363        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4364       # icc doesn't choke on unknown options, it will just issue warnings
4365       # or remarks (even with -Werror).  So we grep stderr for any message
4366       # that says an option was ignored or not supported.
4367       # When given -MP, icc 7.0 and 7.1 complain thusly:
4368       #   icc: Command line warning: ignoring option '-M'; no argument required
4369       # The diagnosis changed in icc 8.0:
4370       #   icc: Command line remark: option '-MP' not supported
4371       if (grep 'ignoring option' conftest.err ||
4372           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4373         am_cv_CC_dependencies_compiler_type=$depmode
4374         break
4375       fi
4376     fi
4377   done
4378
4379   cd ..
4380   rm -rf conftest.dir
4381 else
4382   am_cv_CC_dependencies_compiler_type=none
4383 fi
4384
4385 fi
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4387 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4388 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4389
4390  if
4391   test "x$enable_dependency_tracking" != xno \
4392   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4393   am__fastdepCC_TRUE=
4394   am__fastdepCC_FALSE='#'
4395 else
4396   am__fastdepCC_TRUE='#'
4397   am__fastdepCC_FALSE=
4398 fi
4399
4400
4401
4402 ac_ext=c
4403 ac_cpp='$CPP $CPPFLAGS'
4404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4408 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4409 # On Suns, sometimes $CPP names a directory.
4410 if test -n "$CPP" && test -d "$CPP"; then
4411   CPP=
4412 fi
4413 if test -z "$CPP"; then
4414   if ${ac_cv_prog_CPP+:} false; then :
4415   $as_echo_n "(cached) " >&6
4416 else
4417       # Double quotes because CPP needs to be expanded
4418     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4419     do
4420       ac_preproc_ok=false
4421 for ac_c_preproc_warn_flag in '' yes
4422 do
4423   # Use a header file that comes with gcc, so configuring glibc
4424   # with a fresh cross-compiler works.
4425   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4426   # <limits.h> exists even on freestanding compilers.
4427   # On the NeXT, cc -E runs the code through the compiler's parser,
4428   # not just through cpp. "Syntax error" is here to catch this case.
4429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4430 /* end confdefs.h.  */
4431 #ifdef __STDC__
4432 # include <limits.h>
4433 #else
4434 # include <assert.h>
4435 #endif
4436                      Syntax error
4437 _ACEOF
4438 if ac_fn_c_try_cpp "$LINENO"; then :
4439
4440 else
4441   # Broken: fails on valid input.
4442 continue
4443 fi
4444 rm -f conftest.err conftest.i conftest.$ac_ext
4445
4446   # OK, works on sane cases.  Now check whether nonexistent headers
4447   # can be detected and how.
4448   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h.  */
4450 #include <ac_nonexistent.h>
4451 _ACEOF
4452 if ac_fn_c_try_cpp "$LINENO"; then :
4453   # Broken: success on invalid input.
4454 continue
4455 else
4456   # Passes both tests.
4457 ac_preproc_ok=:
4458 break
4459 fi
4460 rm -f conftest.err conftest.i conftest.$ac_ext
4461
4462 done
4463 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4464 rm -f conftest.i conftest.err conftest.$ac_ext
4465 if $ac_preproc_ok; then :
4466   break
4467 fi
4468
4469     done
4470     ac_cv_prog_CPP=$CPP
4471
4472 fi
4473   CPP=$ac_cv_prog_CPP
4474 else
4475   ac_cv_prog_CPP=$CPP
4476 fi
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4478 $as_echo "$CPP" >&6; }
4479 ac_preproc_ok=false
4480 for ac_c_preproc_warn_flag in '' yes
4481 do
4482   # Use a header file that comes with gcc, so configuring glibc
4483   # with a fresh cross-compiler works.
4484   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4485   # <limits.h> exists even on freestanding compilers.
4486   # On the NeXT, cc -E runs the code through the compiler's parser,
4487   # not just through cpp. "Syntax error" is here to catch this case.
4488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489 /* end confdefs.h.  */
4490 #ifdef __STDC__
4491 # include <limits.h>
4492 #else
4493 # include <assert.h>
4494 #endif
4495                      Syntax error
4496 _ACEOF
4497 if ac_fn_c_try_cpp "$LINENO"; then :
4498
4499 else
4500   # Broken: fails on valid input.
4501 continue
4502 fi
4503 rm -f conftest.err conftest.i conftest.$ac_ext
4504
4505   # OK, works on sane cases.  Now check whether nonexistent headers
4506   # can be detected and how.
4507   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h.  */
4509 #include <ac_nonexistent.h>
4510 _ACEOF
4511 if ac_fn_c_try_cpp "$LINENO"; then :
4512   # Broken: success on invalid input.
4513 continue
4514 else
4515   # Passes both tests.
4516 ac_preproc_ok=:
4517 break
4518 fi
4519 rm -f conftest.err conftest.i conftest.$ac_ext
4520
4521 done
4522 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4523 rm -f conftest.i conftest.err conftest.$ac_ext
4524 if $ac_preproc_ok; then :
4525
4526 else
4527   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4529 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4530 See \`config.log' for more details" "$LINENO" 5; }
4531 fi
4532
4533 ac_ext=c
4534 ac_cpp='$CPP $CPPFLAGS'
4535 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4536 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4537 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4538
4539
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4541 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4542 if ${ac_cv_path_GREP+:} false; then :
4543   $as_echo_n "(cached) " >&6
4544 else
4545   if test -z "$GREP"; then
4546   ac_path_GREP_found=false
4547   # Loop through the user's path and test for each of PROGNAME-LIST
4548   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550 do
4551   IFS=$as_save_IFS
4552   test -z "$as_dir" && as_dir=.
4553     for ac_prog in grep ggrep; do
4554     for ac_exec_ext in '' $ac_executable_extensions; do
4555       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556       as_fn_executable_p "$ac_path_GREP" || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558   # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4560 *GNU*)
4561   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4562 *)
4563   ac_count=0
4564   $as_echo_n 0123456789 >"conftest.in"
4565   while :
4566   do
4567     cat "conftest.in" "conftest.in" >"conftest.tmp"
4568     mv "conftest.tmp" "conftest.in"
4569     cp "conftest.in" "conftest.nl"
4570     $as_echo 'GREP' >> "conftest.nl"
4571     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573     as_fn_arith $ac_count + 1 && ac_count=$as_val
4574     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575       # Best one so far, save it but keep looking for a better one
4576       ac_cv_path_GREP="$ac_path_GREP"
4577       ac_path_GREP_max=$ac_count
4578     fi
4579     # 10*(2^10) chars as input seems more than enough
4580     test $ac_count -gt 10 && break
4581   done
4582   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583 esac
4584
4585       $ac_path_GREP_found && break 3
4586     done
4587   done
4588   done
4589 IFS=$as_save_IFS
4590   if test -z "$ac_cv_path_GREP"; then
4591     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4592   fi
4593 else
4594   ac_cv_path_GREP=$GREP
4595 fi
4596
4597 fi
4598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4599 $as_echo "$ac_cv_path_GREP" >&6; }
4600  GREP="$ac_cv_path_GREP"
4601
4602
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4604 $as_echo_n "checking for egrep... " >&6; }
4605 if ${ac_cv_path_EGREP+:} false; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4609    then ac_cv_path_EGREP="$GREP -E"
4610    else
4611      if test -z "$EGREP"; then
4612   ac_path_EGREP_found=false
4613   # Loop through the user's path and test for each of PROGNAME-LIST
4614   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4616 do
4617   IFS=$as_save_IFS
4618   test -z "$as_dir" && as_dir=.
4619     for ac_prog in egrep; do
4620     for ac_exec_ext in '' $ac_executable_extensions; do
4621       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4622       as_fn_executable_p "$ac_path_EGREP" || continue
4623 # Check for GNU ac_path_EGREP and select it if it is found.
4624   # Check for GNU $ac_path_EGREP
4625 case `"$ac_path_EGREP" --version 2>&1` in
4626 *GNU*)
4627   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4628 *)
4629   ac_count=0
4630   $as_echo_n 0123456789 >"conftest.in"
4631   while :
4632   do
4633     cat "conftest.in" "conftest.in" >"conftest.tmp"
4634     mv "conftest.tmp" "conftest.in"
4635     cp "conftest.in" "conftest.nl"
4636     $as_echo 'EGREP' >> "conftest.nl"
4637     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639     as_fn_arith $ac_count + 1 && ac_count=$as_val
4640     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4641       # Best one so far, save it but keep looking for a better one
4642       ac_cv_path_EGREP="$ac_path_EGREP"
4643       ac_path_EGREP_max=$ac_count
4644     fi
4645     # 10*(2^10) chars as input seems more than enough
4646     test $ac_count -gt 10 && break
4647   done
4648   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4650
4651       $ac_path_EGREP_found && break 3
4652     done
4653   done
4654   done
4655 IFS=$as_save_IFS
4656   if test -z "$ac_cv_path_EGREP"; then
4657     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4658   fi
4659 else
4660   ac_cv_path_EGREP=$EGREP
4661 fi
4662
4663    fi
4664 fi
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4666 $as_echo "$ac_cv_path_EGREP" >&6; }
4667  EGREP="$ac_cv_path_EGREP"
4668
4669
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4671 $as_echo_n "checking for ANSI C header files... " >&6; }
4672 if ${ac_cv_header_stdc+:} false; then :
4673   $as_echo_n "(cached) " >&6
4674 else
4675   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4676 /* end confdefs.h.  */
4677 #include <stdlib.h>
4678 #include <stdarg.h>
4679 #include <string.h>
4680 #include <float.h>
4681
4682 int
4683 main ()
4684 {
4685
4686   ;
4687   return 0;
4688 }
4689 _ACEOF
4690 if ac_fn_c_try_compile "$LINENO"; then :
4691   ac_cv_header_stdc=yes
4692 else
4693   ac_cv_header_stdc=no
4694 fi
4695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4696
4697 if test $ac_cv_header_stdc = yes; then
4698   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4699   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4700 /* end confdefs.h.  */
4701 #include <string.h>
4702
4703 _ACEOF
4704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4705   $EGREP "memchr" >/dev/null 2>&1; then :
4706
4707 else
4708   ac_cv_header_stdc=no
4709 fi
4710 rm -f conftest*
4711
4712 fi
4713
4714 if test $ac_cv_header_stdc = yes; then
4715   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4716   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h.  */
4718 #include <stdlib.h>
4719
4720 _ACEOF
4721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4722   $EGREP "free" >/dev/null 2>&1; then :
4723
4724 else
4725   ac_cv_header_stdc=no
4726 fi
4727 rm -f conftest*
4728
4729 fi
4730
4731 if test $ac_cv_header_stdc = yes; then
4732   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4733   if test "$cross_compiling" = yes; then :
4734   :
4735 else
4736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h.  */
4738 #include <ctype.h>
4739 #include <stdlib.h>
4740 #if ((' ' & 0x0FF) == 0x020)
4741 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4742 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4743 #else
4744 # define ISLOWER(c) \
4745                    (('a' <= (c) && (c) <= 'i') \
4746                      || ('j' <= (c) && (c) <= 'r') \
4747                      || ('s' <= (c) && (c) <= 'z'))
4748 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4749 #endif
4750
4751 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4752 int
4753 main ()
4754 {
4755   int i;
4756   for (i = 0; i < 256; i++)
4757     if (XOR (islower (i), ISLOWER (i))
4758         || toupper (i) != TOUPPER (i))
4759       return 2;
4760   return 0;
4761 }
4762 _ACEOF
4763 if ac_fn_c_try_run "$LINENO"; then :
4764
4765 else
4766   ac_cv_header_stdc=no
4767 fi
4768 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4769   conftest.$ac_objext conftest.beam conftest.$ac_ext
4770 fi
4771
4772 fi
4773 fi
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4775 $as_echo "$ac_cv_header_stdc" >&6; }
4776 if test $ac_cv_header_stdc = yes; then
4777
4778 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4779
4780 fi
4781
4782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4783 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4784                   inttypes.h stdint.h unistd.h
4785 do :
4786   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4787 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4788 "
4789 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4790   cat >>confdefs.h <<_ACEOF
4791 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4792 _ACEOF
4793
4794 fi
4795
4796 done
4797
4798
4799
4800   ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4801 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4802   MINIX=yes
4803 else
4804   MINIX=
4805 fi
4806
4807
4808   if test "$MINIX" = yes; then
4809
4810 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4811
4812
4813 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4814
4815
4816 $as_echo "#define _MINIX 1" >>confdefs.h
4817
4818   fi
4819
4820
4821   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4822 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4823 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4824   $as_echo_n "(cached) " >&6
4825 else
4826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4827 /* end confdefs.h.  */
4828
4829 #         define __EXTENSIONS__ 1
4830           $ac_includes_default
4831 int
4832 main ()
4833 {
4834
4835   ;
4836   return 0;
4837 }
4838 _ACEOF
4839 if ac_fn_c_try_compile "$LINENO"; then :
4840   ac_cv_safe_to_define___extensions__=yes
4841 else
4842   ac_cv_safe_to_define___extensions__=no
4843 fi
4844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4845 fi
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4847 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4848   test $ac_cv_safe_to_define___extensions__ = yes &&
4849     $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4850
4851   $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4852
4853   $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4854
4855   $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4856
4857   $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4858
4859
4860 # Check whether --enable-largefile was given.
4861 if test "${enable_largefile+set}" = set; then :
4862   enableval=$enable_largefile;
4863 fi
4864
4865 if test "$enable_largefile" != no; then
4866
4867   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4868 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4869 if ${ac_cv_sys_largefile_CC+:} false; then :
4870   $as_echo_n "(cached) " >&6
4871 else
4872   ac_cv_sys_largefile_CC=no
4873      if test "$GCC" != yes; then
4874        ac_save_CC=$CC
4875        while :; do
4876          # IRIX 6.2 and later do not support large files by default,
4877          # so use the C compiler's -n32 option if that helps.
4878          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h.  */
4880 #include <sys/types.h>
4881  /* Check that off_t can represent 2**63 - 1 correctly.
4882     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4883     since some C++ compilers masquerading as C compilers
4884     incorrectly reject 9223372036854775807.  */
4885 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4886   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4887                        && LARGE_OFF_T % 2147483647 == 1)
4888                       ? 1 : -1];
4889 int
4890 main ()
4891 {
4892
4893   ;
4894   return 0;
4895 }
4896 _ACEOF
4897          if ac_fn_c_try_compile "$LINENO"; then :
4898   break
4899 fi
4900 rm -f core conftest.err conftest.$ac_objext
4901          CC="$CC -n32"
4902          if ac_fn_c_try_compile "$LINENO"; then :
4903   ac_cv_sys_largefile_CC=' -n32'; break
4904 fi
4905 rm -f core conftest.err conftest.$ac_objext
4906          break
4907        done
4908        CC=$ac_save_CC
4909        rm -f conftest.$ac_ext
4910     fi
4911 fi
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4913 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4914   if test "$ac_cv_sys_largefile_CC" != no; then
4915     CC=$CC$ac_cv_sys_largefile_CC
4916   fi
4917
4918   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4919 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4920 if ${ac_cv_sys_file_offset_bits+:} false; then :
4921   $as_echo_n "(cached) " >&6
4922 else
4923   while :; do
4924   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h.  */
4926 #include <sys/types.h>
4927  /* Check that off_t can represent 2**63 - 1 correctly.
4928     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4929     since some C++ compilers masquerading as C compilers
4930     incorrectly reject 9223372036854775807.  */
4931 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4932   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4933                        && LARGE_OFF_T % 2147483647 == 1)
4934                       ? 1 : -1];
4935 int
4936 main ()
4937 {
4938
4939   ;
4940   return 0;
4941 }
4942 _ACEOF
4943 if ac_fn_c_try_compile "$LINENO"; then :
4944   ac_cv_sys_file_offset_bits=no; break
4945 fi
4946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h.  */
4949 #define _FILE_OFFSET_BITS 64
4950 #include <sys/types.h>
4951  /* Check that off_t can represent 2**63 - 1 correctly.
4952     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4953     since some C++ compilers masquerading as C compilers
4954     incorrectly reject 9223372036854775807.  */
4955 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4956   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4957                        && LARGE_OFF_T % 2147483647 == 1)
4958                       ? 1 : -1];
4959 int
4960 main ()
4961 {
4962
4963   ;
4964   return 0;
4965 }
4966 _ACEOF
4967 if ac_fn_c_try_compile "$LINENO"; then :
4968   ac_cv_sys_file_offset_bits=64; break
4969 fi
4970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4971   ac_cv_sys_file_offset_bits=unknown
4972   break
4973 done
4974 fi
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4976 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4977 case $ac_cv_sys_file_offset_bits in #(
4978   no | unknown) ;;
4979   *)
4980 cat >>confdefs.h <<_ACEOF
4981 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4982 _ACEOF
4983 ;;
4984 esac
4985 rm -rf conftest*
4986   if test $ac_cv_sys_file_offset_bits = unknown; then
4987     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4988 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4989 if ${ac_cv_sys_large_files+:} false; then :
4990   $as_echo_n "(cached) " >&6
4991 else
4992   while :; do
4993   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4994 /* end confdefs.h.  */
4995 #include <sys/types.h>
4996  /* Check that off_t can represent 2**63 - 1 correctly.
4997     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4998     since some C++ compilers masquerading as C compilers
4999     incorrectly reject 9223372036854775807.  */
5000 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5001   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5002                        && LARGE_OFF_T % 2147483647 == 1)
5003                       ? 1 : -1];
5004 int
5005 main ()
5006 {
5007
5008   ;
5009   return 0;
5010 }
5011 _ACEOF
5012 if ac_fn_c_try_compile "$LINENO"; then :
5013   ac_cv_sys_large_files=no; break
5014 fi
5015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5016   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5017 /* end confdefs.h.  */
5018 #define _LARGE_FILES 1
5019 #include <sys/types.h>
5020  /* Check that off_t can represent 2**63 - 1 correctly.
5021     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5022     since some C++ compilers masquerading as C compilers
5023     incorrectly reject 9223372036854775807.  */
5024 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5025   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5026                        && LARGE_OFF_T % 2147483647 == 1)
5027                       ? 1 : -1];
5028 int
5029 main ()
5030 {
5031
5032   ;
5033   return 0;
5034 }
5035 _ACEOF
5036 if ac_fn_c_try_compile "$LINENO"; then :
5037   ac_cv_sys_large_files=1; break
5038 fi
5039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5040   ac_cv_sys_large_files=unknown
5041   break
5042 done
5043 fi
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5045 $as_echo "$ac_cv_sys_large_files" >&6; }
5046 case $ac_cv_sys_large_files in #(
5047   no | unknown) ;;
5048   *)
5049 cat >>confdefs.h <<_ACEOF
5050 #define _LARGE_FILES $ac_cv_sys_large_files
5051 _ACEOF
5052 ;;
5053 esac
5054 rm -rf conftest*
5055   fi
5056
5057
5058 fi
5059
5060
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5062 $as_echo_n "checking whether ln -s works... " >&6; }
5063 LN_S=$as_ln_s
5064 if test "$LN_S" = "ln -s"; then
5065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5066 $as_echo "yes" >&6; }
5067 else
5068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5069 $as_echo "no, using $LN_S" >&6; }
5070 fi
5071
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5073 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5074 set x ${MAKE-make}
5075 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5076 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5077   $as_echo_n "(cached) " >&6
5078 else
5079   cat >conftest.make <<\_ACEOF
5080 SHELL = /bin/sh
5081 all:
5082         @echo '@@@%%%=$(MAKE)=@@@%%%'
5083 _ACEOF
5084 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5085 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5086   *@@@%%%=?*=@@@%%%*)
5087     eval ac_cv_prog_make_${ac_make}_set=yes;;
5088   *)
5089     eval ac_cv_prog_make_${ac_make}_set=no;;
5090 esac
5091 rm -f conftest.make
5092 fi
5093 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5095 $as_echo "yes" >&6; }
5096   SET_MAKE=
5097 else
5098   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5100   SET_MAKE="MAKE=${MAKE-make}"
5101 fi
5102
5103
5104
5105
5106
5107
5108
5109
5110 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
5111         if test -n "$ac_tool_prefix"; then
5112   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5113 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_path_PKG_CONFIG+:} false; then :
5117   $as_echo_n "(cached) " >&6
5118 else
5119   case $PKG_CONFIG in
5120   [\\/]* | ?:[\\/]*)
5121   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5122   ;;
5123   *)
5124   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127   IFS=$as_save_IFS
5128   test -z "$as_dir" && as_dir=.
5129     for ac_exec_ext in '' $ac_executable_extensions; do
5130   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5131     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5132     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5133     break 2
5134   fi
5135 done
5136   done
5137 IFS=$as_save_IFS
5138
5139   ;;
5140 esac
5141 fi
5142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5143 if test -n "$PKG_CONFIG"; then
5144   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5145 $as_echo "$PKG_CONFIG" >&6; }
5146 else
5147   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5148 $as_echo "no" >&6; }
5149 fi
5150
5151
5152 fi
5153 if test -z "$ac_cv_path_PKG_CONFIG"; then
5154   ac_pt_PKG_CONFIG=$PKG_CONFIG
5155   # Extract the first word of "pkg-config", so it can be a program name with args.
5156 set dummy pkg-config; ac_word=$2
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5158 $as_echo_n "checking for $ac_word... " >&6; }
5159 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
5160   $as_echo_n "(cached) " >&6
5161 else
5162   case $ac_pt_PKG_CONFIG in
5163   [\\/]* | ?:[\\/]*)
5164   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5165   ;;
5166   *)
5167   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170   IFS=$as_save_IFS
5171   test -z "$as_dir" && as_dir=.
5172     for ac_exec_ext in '' $ac_executable_extensions; do
5173   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5175     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5176     break 2
5177   fi
5178 done
5179   done
5180 IFS=$as_save_IFS
5181
5182   ;;
5183 esac
5184 fi
5185 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5186 if test -n "$ac_pt_PKG_CONFIG"; then
5187   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5188 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
5189 else
5190   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5191 $as_echo "no" >&6; }
5192 fi
5193
5194   if test "x$ac_pt_PKG_CONFIG" = x; then
5195     PKG_CONFIG=""
5196   else
5197     case $cross_compiling:$ac_tool_warned in
5198 yes:)
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5201 ac_tool_warned=yes ;;
5202 esac
5203     PKG_CONFIG=$ac_pt_PKG_CONFIG
5204   fi
5205 else
5206   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5207 fi
5208
5209 fi
5210 if test -n "$PKG_CONFIG"; then
5211         _pkg_min_version=0.9.0
5212         { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
5213 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
5214         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5215                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5216 $as_echo "yes" >&6; }
5217         else
5218                 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219 $as_echo "no" >&6; }
5220                 PKG_CONFIG=""
5221         fi
5222 fi
5223
5224
5225
5226 # Check whether --with-pkgconfigdir was given.
5227 if test "${with_pkgconfigdir+set}" = set; then :
5228   withval=$with_pkgconfigdir;
5229 else
5230   with_pkgconfigdir='${libdir}/pkgconfig'
5231 fi
5232
5233 pkgconfigdir=$with_pkgconfigdir
5234
5235
5236
5237
5238
5239
5240 GIT=${GIT-"${am_missing_run}git"}
5241
5242
5243 GPERF=${GPERF-"${am_missing_run}gperf"}
5244
5245
5246
5247
5248
5249
5250
5251         # Find any Python interpreter.
5252     if test -z "$PYTHON"; then
5253       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
5254 do
5255   # Extract the first word of "$ac_prog", so it can be a program name with args.
5256 set dummy $ac_prog; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_path_PYTHON+:} false; then :
5260   $as_echo_n "(cached) " >&6
5261 else
5262   case $PYTHON in
5263   [\\/]* | ?:[\\/]*)
5264   ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
5265   ;;
5266   *)
5267   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5268 for as_dir in $PATH
5269 do
5270   IFS=$as_save_IFS
5271   test -z "$as_dir" && as_dir=.
5272     for ac_exec_ext in '' $ac_executable_extensions; do
5273   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5274     ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
5275     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5276     break 2
5277   fi
5278 done
5279   done
5280 IFS=$as_save_IFS
5281
5282   ;;
5283 esac
5284 fi
5285 PYTHON=$ac_cv_path_PYTHON
5286 if test -n "$PYTHON"; then
5287   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
5288 $as_echo "$PYTHON" >&6; }
5289 else
5290   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5292 fi
5293
5294
5295   test -n "$PYTHON" && break
5296 done
5297 test -n "$PYTHON" || PYTHON=":"
5298
5299     fi
5300     am_display_PYTHON=python
5301
5302
5303   if test "$PYTHON" = :; then
5304       :
5305   else
5306
5307
5308   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
5309 $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
5310 if ${am_cv_python_version+:} false; then :
5311   $as_echo_n "(cached) " >&6
5312 else
5313   am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
5314 fi
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
5316 $as_echo "$am_cv_python_version" >&6; }
5317   PYTHON_VERSION=$am_cv_python_version
5318
5319
5320
5321   PYTHON_PREFIX='${prefix}'
5322
5323   PYTHON_EXEC_PREFIX='${exec_prefix}'
5324
5325
5326
5327   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
5328 $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
5329 if ${am_cv_python_platform+:} false; then :
5330   $as_echo_n "(cached) " >&6
5331 else
5332   am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
5333 fi
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
5335 $as_echo "$am_cv_python_platform" >&6; }
5336   PYTHON_PLATFORM=$am_cv_python_platform
5337
5338
5339   # Just factor out some code duplication.
5340   am_python_setup_sysconfig="\
5341 import sys
5342 # Prefer sysconfig over distutils.sysconfig, for better compatibility
5343 # with python 3.x.  See automake bug#10227.
5344 try:
5345     import sysconfig
5346 except ImportError:
5347     can_use_sysconfig = 0
5348 else:
5349     can_use_sysconfig = 1
5350 # Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
5351 # <https://github.com/pypa/virtualenv/issues/118>
5352 try:
5353     from platform import python_implementation
5354     if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
5355         can_use_sysconfig = 0
5356 except ImportError:
5357     pass"
5358
5359
5360             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
5361 $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
5362 if ${am_cv_python_pythondir+:} false; then :
5363   $as_echo_n "(cached) " >&6
5364 else
5365   if test "x$prefix" = xNONE
5366      then
5367        am_py_prefix=$ac_default_prefix
5368      else
5369        am_py_prefix=$prefix
5370      fi
5371      am_cv_python_pythondir=`$PYTHON -c "
5372 $am_python_setup_sysconfig
5373 if can_use_sysconfig:
5374     sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5375 else:
5376     from distutils import sysconfig
5377     sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5378 sys.stdout.write(sitedir)"`
5379      case $am_cv_python_pythondir in
5380      $am_py_prefix*)
5381        am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
5382        am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
5383        ;;
5384      *)
5385        case $am_py_prefix in
5386          /usr|/System*) ;;
5387          *)
5388           am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
5389           ;;
5390        esac
5391        ;;
5392      esac
5393
5394 fi
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
5396 $as_echo "$am_cv_python_pythondir" >&6; }
5397   pythondir=$am_cv_python_pythondir
5398
5399
5400
5401   pkgpythondir=\${pythondir}/$PACKAGE
5402
5403
5404         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
5405 $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
5406 if ${am_cv_python_pyexecdir+:} false; then :
5407   $as_echo_n "(cached) " >&6
5408 else
5409   if test "x$exec_prefix" = xNONE
5410      then
5411        am_py_exec_prefix=$am_py_prefix
5412      else
5413        am_py_exec_prefix=$exec_prefix
5414      fi
5415      am_cv_python_pyexecdir=`$PYTHON -c "
5416 $am_python_setup_sysconfig
5417 if can_use_sysconfig:
5418     sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_prefix'})
5419 else:
5420     from distutils import sysconfig
5421     sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_prefix')
5422 sys.stdout.write(sitedir)"`
5423      case $am_cv_python_pyexecdir in
5424      $am_py_exec_prefix*)
5425        am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
5426        am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
5427        ;;
5428      *)
5429        case $am_py_exec_prefix in
5430          /usr|/System*) ;;
5431          *)
5432            am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
5433            ;;
5434        esac
5435        ;;
5436      esac
5437
5438 fi
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
5440 $as_echo "$am_cv_python_pyexecdir" >&6; }
5441   pyexecdir=$am_cv_python_pyexecdir
5442
5443
5444
5445   pkgpyexecdir=\${pyexecdir}/$PACKAGE
5446
5447
5448
5449   fi
5450
5451
5452  if test "$PYTHON" != :; then
5453   HAVE_PYTHON_TRUE=
5454   HAVE_PYTHON_FALSE='#'
5455 else
5456   HAVE_PYTHON_TRUE='#'
5457   HAVE_PYTHON_FALSE=
5458 fi
5459
5460
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM macro" >&5
5462 $as_echo_n "checking for RM macro... " >&6; }
5463 _predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
5464 if test "x$_predefined_rm" = "x"; then
5465         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no predefined RM" >&5
5466 $as_echo "no predefined RM" >&6; }
5467         # Extract the first word of "rm", so it can be a program name with args.
5468 set dummy rm; ac_word=$2
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5470 $as_echo_n "checking for $ac_word... " >&6; }
5471 if ${ac_cv_prog_RM+:} false; then :
5472   $as_echo_n "(cached) " >&6
5473 else
5474   if test -n "$RM"; then
5475   ac_cv_prog_RM="$RM" # Let the user override the test.
5476 else
5477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5478 for as_dir in $PATH
5479 do
5480   IFS=$as_save_IFS
5481   test -z "$as_dir" && as_dir=.
5482     for ac_exec_ext in '' $ac_executable_extensions; do
5483   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5484     ac_cv_prog_RM="rm -f"
5485     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5486     break 2
5487   fi
5488 done
5489   done
5490 IFS=$as_save_IFS
5491
5492 fi
5493 fi
5494 RM=$ac_cv_prog_RM
5495 if test -n "$RM"; then
5496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5497 $as_echo "$RM" >&6; }
5498 else
5499   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5500 $as_echo "no" >&6; }
5501 fi
5502
5503
5504 else
5505         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_predefined_rm" >&5
5506 $as_echo "$_predefined_rm" >&6; }
5507 fi
5508
5509
5510 case `pwd` in
5511   *\ * | *\     *)
5512     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5513 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5514 esac
5515
5516
5517
5518 macro_version='2.4.6'
5519 macro_revision='2.4.6'
5520
5521
5522
5523
5524
5525
5526
5527
5528
5529
5530
5531
5532
5533 ltmain=$ac_aux_dir/ltmain.sh
5534
5535 # Make sure we can run config.sub.
5536 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5537   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5538
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5540 $as_echo_n "checking build system type... " >&6; }
5541 if ${ac_cv_build+:} false; then :
5542   $as_echo_n "(cached) " >&6
5543 else
5544   ac_build_alias=$build_alias
5545 test "x$ac_build_alias" = x &&
5546   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5547 test "x$ac_build_alias" = x &&
5548   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5549 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5550   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5551
5552 fi
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5554 $as_echo "$ac_cv_build" >&6; }
5555 case $ac_cv_build in
5556 *-*-*) ;;
5557 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5558 esac
5559 build=$ac_cv_build
5560 ac_save_IFS=$IFS; IFS='-'
5561 set x $ac_cv_build
5562 shift
5563 build_cpu=$1
5564 build_vendor=$2
5565 shift; shift
5566 # Remember, the first character of IFS is used to create $*,
5567 # except with old shells:
5568 build_os=$*
5569 IFS=$ac_save_IFS
5570 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5571
5572
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5574 $as_echo_n "checking host system type... " >&6; }
5575 if ${ac_cv_host+:} false; then :
5576   $as_echo_n "(cached) " >&6
5577 else
5578   if test "x$host_alias" = x; then
5579   ac_cv_host=$ac_cv_build
5580 else
5581   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5582     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5583 fi
5584
5585 fi
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5587 $as_echo "$ac_cv_host" >&6; }
5588 case $ac_cv_host in
5589 *-*-*) ;;
5590 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5591 esac
5592 host=$ac_cv_host
5593 ac_save_IFS=$IFS; IFS='-'
5594 set x $ac_cv_host
5595 shift
5596 host_cpu=$1
5597 host_vendor=$2
5598 shift; shift
5599 # Remember, the first character of IFS is used to create $*,
5600 # except with old shells:
5601 host_os=$*
5602 IFS=$ac_save_IFS
5603 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5604
5605
5606 # Backslashify metacharacters that are still active within
5607 # double-quoted strings.
5608 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5609
5610 # Same as above, but do not quote variable references.
5611 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5612
5613 # Sed substitution to delay expansion of an escaped shell variable in a
5614 # double_quote_subst'ed string.
5615 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5616
5617 # Sed substitution to delay expansion of an escaped single quote.
5618 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5619
5620 # Sed substitution to avoid accidental globbing in evaled expressions
5621 no_glob_subst='s/\*/\\\*/g'
5622
5623 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5624 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5625 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5626
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5628 $as_echo_n "checking how to print strings... " >&6; }
5629 # Test print first, because it will be a builtin if present.
5630 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5631    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5632   ECHO='print -r --'
5633 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5634   ECHO='printf %s\n'
5635 else
5636   # Use this function as a fallback that always works.
5637   func_fallback_echo ()
5638   {
5639     eval 'cat <<_LTECHO_EOF
5640 $1
5641 _LTECHO_EOF'
5642   }
5643   ECHO='func_fallback_echo'
5644 fi
5645
5646 # func_echo_all arg...
5647 # Invoke $ECHO with all args, space-separated.
5648 func_echo_all ()
5649 {
5650     $ECHO ""
5651 }
5652
5653 case $ECHO in
5654   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5655 $as_echo "printf" >&6; } ;;
5656   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5657 $as_echo "print -r" >&6; } ;;
5658   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5659 $as_echo "cat" >&6; } ;;
5660 esac
5661
5662
5663
5664
5665
5666
5667
5668
5669
5670
5671
5672
5673
5674
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5676 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5677 if ${ac_cv_path_SED+:} false; then :
5678   $as_echo_n "(cached) " >&6
5679 else
5680             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5681      for ac_i in 1 2 3 4 5 6 7; do
5682        ac_script="$ac_script$as_nl$ac_script"
5683      done
5684      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5685      { ac_script=; unset ac_script;}
5686      if test -z "$SED"; then
5687   ac_path_SED_found=false
5688   # Loop through the user's path and test for each of PROGNAME-LIST
5689   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5690 for as_dir in $PATH
5691 do
5692   IFS=$as_save_IFS
5693   test -z "$as_dir" && as_dir=.
5694     for ac_prog in sed gsed; do
5695     for ac_exec_ext in '' $ac_executable_extensions; do
5696       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5697       as_fn_executable_p "$ac_path_SED" || continue
5698 # Check for GNU ac_path_SED and select it if it is found.
5699   # Check for GNU $ac_path_SED
5700 case `"$ac_path_SED" --version 2>&1` in
5701 *GNU*)
5702   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5703 *)
5704   ac_count=0
5705   $as_echo_n 0123456789 >"conftest.in"
5706   while :
5707   do
5708     cat "conftest.in" "conftest.in" >"conftest.tmp"
5709     mv "conftest.tmp" "conftest.in"
5710     cp "conftest.in" "conftest.nl"
5711     $as_echo '' >> "conftest.nl"
5712     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5713     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5714     as_fn_arith $ac_count + 1 && ac_count=$as_val
5715     if test $ac_count -gt ${ac_path_SED_max-0}; then
5716       # Best one so far, save it but keep looking for a better one
5717       ac_cv_path_SED="$ac_path_SED"
5718       ac_path_SED_max=$ac_count
5719     fi
5720     # 10*(2^10) chars as input seems more than enough
5721     test $ac_count -gt 10 && break
5722   done
5723   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5724 esac
5725
5726       $ac_path_SED_found && break 3
5727     done
5728   done
5729   done
5730 IFS=$as_save_IFS
5731   if test -z "$ac_cv_path_SED"; then
5732     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5733   fi
5734 else
5735   ac_cv_path_SED=$SED
5736 fi
5737
5738 fi
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5740 $as_echo "$ac_cv_path_SED" >&6; }
5741  SED="$ac_cv_path_SED"
5742   rm -f conftest.sed
5743
5744 test -z "$SED" && SED=sed
5745 Xsed="$SED -e 1s/^X//"
5746
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5758 $as_echo_n "checking for fgrep... " >&6; }
5759 if ${ac_cv_path_FGREP+:} false; then :
5760   $as_echo_n "(cached) " >&6
5761 else
5762   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5763    then ac_cv_path_FGREP="$GREP -F"
5764    else
5765      if test -z "$FGREP"; then
5766   ac_path_FGREP_found=false
5767   # Loop through the user's path and test for each of PROGNAME-LIST
5768   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5770 do
5771   IFS=$as_save_IFS
5772   test -z "$as_dir" && as_dir=.
5773     for ac_prog in fgrep; do
5774     for ac_exec_ext in '' $ac_executable_extensions; do
5775       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5776       as_fn_executable_p "$ac_path_FGREP" || continue
5777 # Check for GNU ac_path_FGREP and select it if it is found.
5778   # Check for GNU $ac_path_FGREP
5779 case `"$ac_path_FGREP" --version 2>&1` in
5780 *GNU*)
5781   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5782 *)
5783   ac_count=0
5784   $as_echo_n 0123456789 >"conftest.in"
5785   while :
5786   do
5787     cat "conftest.in" "conftest.in" >"conftest.tmp"
5788     mv "conftest.tmp" "conftest.in"
5789     cp "conftest.in" "conftest.nl"
5790     $as_echo 'FGREP' >> "conftest.nl"
5791     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5792     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5793     as_fn_arith $ac_count + 1 && ac_count=$as_val
5794     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5795       # Best one so far, save it but keep looking for a better one
5796       ac_cv_path_FGREP="$ac_path_FGREP"
5797       ac_path_FGREP_max=$ac_count
5798     fi
5799     # 10*(2^10) chars as input seems more than enough
5800     test $ac_count -gt 10 && break
5801   done
5802   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5803 esac
5804
5805       $ac_path_FGREP_found && break 3
5806     done
5807   done
5808   done
5809 IFS=$as_save_IFS
5810   if test -z "$ac_cv_path_FGREP"; then
5811     as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5812   fi
5813 else
5814   ac_cv_path_FGREP=$FGREP
5815 fi
5816
5817    fi
5818 fi
5819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5820 $as_echo "$ac_cv_path_FGREP" >&6; }
5821  FGREP="$ac_cv_path_FGREP"
5822
5823
5824 test -z "$GREP" && GREP=grep
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838
5839
5840
5841
5842
5843
5844 # Check whether --with-gnu-ld was given.
5845 if test "${with_gnu_ld+set}" = set; then :
5846   withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
5847 else
5848   with_gnu_ld=no
5849 fi
5850
5851 ac_prog=ld
5852 if test yes = "$GCC"; then
5853   # Check if gcc -print-prog-name=ld gives a path.
5854   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5855 $as_echo_n "checking for ld used by $CC... " >&6; }
5856   case $host in
5857   *-*-mingw*)
5858     # gcc leaves a trailing carriage return, which upsets mingw
5859     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5860   *)
5861     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5862   esac
5863   case $ac_prog in
5864     # Accept absolute paths.
5865     [\\/]* | ?:[\\/]*)
5866       re_direlt='/[^/][^/]*/\.\./'
5867       # Canonicalize the pathname of ld
5868       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5869       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5870         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5871       done
5872       test -z "$LD" && LD=$ac_prog
5873       ;;
5874   "")
5875     # If it fails, then pretend we aren't using GCC.
5876     ac_prog=ld
5877     ;;
5878   *)
5879     # If it is relative, then search for the first ld in PATH.
5880     with_gnu_ld=unknown
5881     ;;
5882   esac
5883 elif test yes = "$with_gnu_ld"; then
5884   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5885 $as_echo_n "checking for GNU ld... " >&6; }
5886 else
5887   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5888 $as_echo_n "checking for non-GNU ld... " >&6; }
5889 fi
5890 if ${lt_cv_path_LD+:} false; then :
5891   $as_echo_n "(cached) " >&6
5892 else
5893   if test -z "$LD"; then
5894   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5895   for ac_dir in $PATH; do
5896     IFS=$lt_save_ifs
5897     test -z "$ac_dir" && ac_dir=.
5898     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5899       lt_cv_path_LD=$ac_dir/$ac_prog
5900       # Check to see if the program is GNU ld.  I'd rather use --version,
5901       # but apparently some variants of GNU ld only accept -v.
5902       # Break only if it was the GNU/non-GNU ld that we prefer.
5903       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5904       *GNU* | *'with BFD'*)
5905         test no != "$with_gnu_ld" && break
5906         ;;
5907       *)
5908         test yes != "$with_gnu_ld" && break
5909         ;;
5910       esac
5911     fi
5912   done
5913   IFS=$lt_save_ifs
5914 else
5915   lt_cv_path_LD=$LD # Let the user override the test with a path.
5916 fi
5917 fi
5918
5919 LD=$lt_cv_path_LD
5920 if test -n "$LD"; then
5921   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5922 $as_echo "$LD" >&6; }
5923 else
5924   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5925 $as_echo "no" >&6; }
5926 fi
5927 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5929 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5930 if ${lt_cv_prog_gnu_ld+:} false; then :
5931   $as_echo_n "(cached) " >&6
5932 else
5933   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5934 case `$LD -v 2>&1 </dev/null` in
5935 *GNU* | *'with BFD'*)
5936   lt_cv_prog_gnu_ld=yes
5937   ;;
5938 *)
5939   lt_cv_prog_gnu_ld=no
5940   ;;
5941 esac
5942 fi
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5944 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5945 with_gnu_ld=$lt_cv_prog_gnu_ld
5946
5947
5948
5949
5950
5951
5952
5953
5954
5955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5956 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5957 if ${lt_cv_path_NM+:} false; then :
5958   $as_echo_n "(cached) " >&6
5959 else
5960   if test -n "$NM"; then
5961   # Let the user override the test.
5962   lt_cv_path_NM=$NM
5963 else
5964   lt_nm_to_check=${ac_tool_prefix}nm
5965   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5966     lt_nm_to_check="$lt_nm_to_check nm"
5967   fi
5968   for lt_tmp_nm in $lt_nm_to_check; do
5969     lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
5970     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5971       IFS=$lt_save_ifs
5972       test -z "$ac_dir" && ac_dir=.
5973       tmp_nm=$ac_dir/$lt_tmp_nm
5974       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
5975         # Check to see if the nm accepts a BSD-compat flag.
5976         # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
5977         #   nm: unknown option "B" ignored
5978         # Tru64's nm complains that /dev/null is an invalid object file
5979         # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
5980         case $build_os in
5981         mingw*) lt_bad_file=conftest.nm/nofile ;;
5982         *) lt_bad_file=/dev/null ;;
5983         esac
5984         case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
5985         *$lt_bad_file* | *'Invalid file or object type'*)
5986           lt_cv_path_NM="$tmp_nm -B"
5987           break 2
5988           ;;
5989         *)
5990           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5991           */dev/null*)
5992             lt_cv_path_NM="$tmp_nm -p"
5993             break 2
5994             ;;
5995           *)
5996             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5997             continue # so that we can try to find one that supports BSD flags
5998             ;;
5999           esac
6000           ;;
6001         esac
6002       fi
6003     done
6004     IFS=$lt_save_ifs
6005   done
6006   : ${lt_cv_path_NM=no}
6007 fi
6008 fi
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6010 $as_echo "$lt_cv_path_NM" >&6; }
6011 if test no != "$lt_cv_path_NM"; then
6012   NM=$lt_cv_path_NM
6013 else
6014   # Didn't find any BSD compatible name lister, look for dumpbin.
6015   if test -n "$DUMPBIN"; then :
6016     # Let the user override the test.
6017   else
6018     if test -n "$ac_tool_prefix"; then
6019   for ac_prog in dumpbin "link -dump"
6020   do
6021     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6022 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6024 $as_echo_n "checking for $ac_word... " >&6; }
6025 if ${ac_cv_prog_DUMPBIN+:} false; then :
6026   $as_echo_n "(cached) " >&6
6027 else
6028   if test -n "$DUMPBIN"; then
6029   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6030 else
6031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6032 for as_dir in $PATH
6033 do
6034   IFS=$as_save_IFS
6035   test -z "$as_dir" && as_dir=.
6036     for ac_exec_ext in '' $ac_executable_extensions; do
6037   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6038     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6039     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6040     break 2
6041   fi
6042 done
6043   done
6044 IFS=$as_save_IFS
6045
6046 fi
6047 fi
6048 DUMPBIN=$ac_cv_prog_DUMPBIN
6049 if test -n "$DUMPBIN"; then
6050   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6051 $as_echo "$DUMPBIN" >&6; }
6052 else
6053   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6054 $as_echo "no" >&6; }
6055 fi
6056
6057
6058     test -n "$DUMPBIN" && break
6059   done
6060 fi
6061 if test -z "$DUMPBIN"; then
6062   ac_ct_DUMPBIN=$DUMPBIN
6063   for ac_prog in dumpbin "link -dump"
6064 do
6065   # Extract the first word of "$ac_prog", so it can be a program name with args.
6066 set dummy $ac_prog; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
6070   $as_echo_n "(cached) " >&6
6071 else
6072   if test -n "$ac_ct_DUMPBIN"; then
6073   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6077 do
6078   IFS=$as_save_IFS
6079   test -z "$as_dir" && as_dir=.
6080     for ac_exec_ext in '' $ac_executable_extensions; do
6081   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6082     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6083     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084     break 2
6085   fi
6086 done
6087   done
6088 IFS=$as_save_IFS
6089
6090 fi
6091 fi
6092 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6093 if test -n "$ac_ct_DUMPBIN"; then
6094   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6095 $as_echo "$ac_ct_DUMPBIN" >&6; }
6096 else
6097   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6099 fi
6100
6101
6102   test -n "$ac_ct_DUMPBIN" && break
6103 done
6104
6105   if test "x$ac_ct_DUMPBIN" = x; then
6106     DUMPBIN=":"
6107   else
6108     case $cross_compiling:$ac_tool_warned in
6109 yes:)
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6111 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6112 ac_tool_warned=yes ;;
6113 esac
6114     DUMPBIN=$ac_ct_DUMPBIN
6115   fi
6116 fi
6117
6118     case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
6119     *COFF*)
6120       DUMPBIN="$DUMPBIN -symbols -headers"
6121       ;;
6122     *)
6123       DUMPBIN=:
6124       ;;
6125     esac
6126   fi
6127
6128   if test : != "$DUMPBIN"; then
6129     NM=$DUMPBIN
6130   fi
6131 fi
6132 test -z "$NM" && NM=nm
6133
6134
6135
6136
6137
6138
6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6140 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6141 if ${lt_cv_nm_interface+:} false; then :
6142   $as_echo_n "(cached) " >&6
6143 else
6144   lt_cv_nm_interface="BSD nm"
6145   echo "int some_variable = 0;" > conftest.$ac_ext
6146   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6147   (eval "$ac_compile" 2>conftest.err)
6148   cat conftest.err >&5
6149   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6150   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6151   cat conftest.err >&5
6152   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6153   cat conftest.out >&5
6154   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6155     lt_cv_nm_interface="MS dumpbin"
6156   fi
6157   rm -f conftest*
6158 fi
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6160 $as_echo "$lt_cv_nm_interface" >&6; }
6161
6162 # find the maximum length of command line arguments
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6164 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6165 if ${lt_cv_sys_max_cmd_len+:} false; then :
6166   $as_echo_n "(cached) " >&6
6167 else
6168     i=0
6169   teststring=ABCD
6170
6171   case $build_os in
6172   msdosdjgpp*)
6173     # On DJGPP, this test can blow up pretty badly due to problems in libc
6174     # (any single argument exceeding 2000 bytes causes a buffer overrun
6175     # during glob expansion).  Even if it were fixed, the result of this
6176     # check would be larger than it should be.
6177     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6178     ;;
6179
6180   gnu*)
6181     # Under GNU Hurd, this test is not required because there is
6182     # no limit to the length of command line arguments.
6183     # Libtool will interpret -1 as no limit whatsoever
6184     lt_cv_sys_max_cmd_len=-1;
6185     ;;
6186
6187   cygwin* | mingw* | cegcc*)
6188     # On Win9x/ME, this test blows up -- it succeeds, but takes
6189     # about 5 minutes as the teststring grows exponentially.
6190     # Worse, since 9x/ME are not pre-emptively multitasking,
6191     # you end up with a "frozen" computer, even though with patience
6192     # the test eventually succeeds (with a max line length of 256k).
6193     # Instead, let's just punt: use the minimum linelength reported by
6194     # all of the supported platforms: 8192 (on NT/2K/XP).
6195     lt_cv_sys_max_cmd_len=8192;
6196     ;;
6197
6198   mint*)
6199     # On MiNT this can take a long time and run out of memory.
6200     lt_cv_sys_max_cmd_len=8192;
6201     ;;
6202
6203   amigaos*)
6204     # On AmigaOS with pdksh, this test takes hours, literally.
6205     # So we just punt and use a minimum line length of 8192.
6206     lt_cv_sys_max_cmd_len=8192;
6207     ;;
6208
6209   bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
6210     # This has been around since 386BSD, at least.  Likely further.
6211     if test -x /sbin/sysctl; then
6212       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6213     elif test -x /usr/sbin/sysctl; then
6214       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6215     else
6216       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6217     fi
6218     # And add a safety zone
6219     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6220     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6221     ;;
6222
6223   interix*)
6224     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6225     lt_cv_sys_max_cmd_len=196608
6226     ;;
6227
6228   os2*)
6229     # The test takes a long time on OS/2.
6230     lt_cv_sys_max_cmd_len=8192
6231     ;;
6232
6233   osf*)
6234     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6235     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6236     # nice to cause kernel panics so lets avoid the loop below.
6237     # First set a reasonable default.
6238     lt_cv_sys_max_cmd_len=16384
6239     #
6240     if test -x /sbin/sysconfig; then
6241       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6242         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6243       esac
6244     fi
6245     ;;
6246   sco3.2v5*)
6247     lt_cv_sys_max_cmd_len=102400
6248     ;;
6249   sysv5* | sco5v6* | sysv4.2uw2*)
6250     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6251     if test -n "$kargmax"; then
6252       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6253     else
6254       lt_cv_sys_max_cmd_len=32768
6255     fi
6256     ;;
6257   *)
6258     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6259     if test -n "$lt_cv_sys_max_cmd_len" && \
6260        test undefined != "$lt_cv_sys_max_cmd_len"; then
6261       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6262       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6263     else
6264       # Make teststring a little bigger before we do anything with it.
6265       # a 1K string should be a reasonable start.
6266       for i in 1 2 3 4 5 6 7 8; do
6267         teststring=$teststring$teststring
6268       done
6269       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6270       # If test is not a shell built-in, we'll probably end up computing a
6271       # maximum length that is only half of the actual maximum length, but
6272       # we can't tell.
6273       while { test X`env echo "$teststring$teststring" 2>/dev/null` \
6274                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6275               test 17 != "$i" # 1/2 MB should be enough
6276       do
6277         i=`expr $i + 1`
6278         teststring=$teststring$teststring
6279       done
6280       # Only check the string length outside the loop.
6281       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6282       teststring=
6283       # Add a significant safety factor because C++ compilers can tack on
6284       # massive amounts of additional arguments before passing them to the
6285       # linker.  It appears as though 1/2 is a usable value.
6286       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6287     fi
6288     ;;
6289   esac
6290
6291 fi
6292
6293 if test -n "$lt_cv_sys_max_cmd_len"; then
6294   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6295 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6296 else
6297   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6298 $as_echo "none" >&6; }
6299 fi
6300 max_cmd_len=$lt_cv_sys_max_cmd_len
6301
6302
6303
6304
6305
6306
6307 : ${CP="cp -f"}
6308 : ${MV="mv -f"}
6309 : ${RM="rm -f"}
6310
6311 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6312   lt_unset=unset
6313 else
6314   lt_unset=false
6315 fi
6316
6317
6318
6319
6320
6321 # test EBCDIC or ASCII
6322 case `echo X|tr X '\101'` in
6323  A) # ASCII based system
6324     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6325   lt_SP2NL='tr \040 \012'
6326   lt_NL2SP='tr \015\012 \040\040'
6327   ;;
6328  *) # EBCDIC based system
6329   lt_SP2NL='tr \100 \n'
6330   lt_NL2SP='tr \r\n \100\100'
6331   ;;
6332 esac
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6343 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6344 if ${lt_cv_to_host_file_cmd+:} false; then :
6345   $as_echo_n "(cached) " >&6
6346 else
6347   case $host in
6348   *-*-mingw* )
6349     case $build in
6350       *-*-mingw* ) # actually msys
6351         lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
6352         ;;
6353       *-*-cygwin* )
6354         lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
6355         ;;
6356       * ) # otherwise, assume *nix
6357         lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
6358         ;;
6359     esac
6360     ;;
6361   *-*-cygwin* )
6362     case $build in
6363       *-*-mingw* ) # actually msys
6364         lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
6365         ;;
6366       *-*-cygwin* )
6367         lt_cv_to_host_file_cmd=func_convert_file_noop
6368         ;;
6369       * ) # otherwise, assume *nix
6370         lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
6371         ;;
6372     esac
6373     ;;
6374   * ) # unhandled hosts (and "normal" native builds)
6375     lt_cv_to_host_file_cmd=func_convert_file_noop
6376     ;;
6377 esac
6378
6379 fi
6380
6381 to_host_file_cmd=$lt_cv_to_host_file_cmd
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6383 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6384
6385
6386
6387
6388
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6390 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6391 if ${lt_cv_to_tool_file_cmd+:} false; then :
6392   $as_echo_n "(cached) " >&6
6393 else
6394   #assume ordinary cross tools, or native build.
6395 lt_cv_to_tool_file_cmd=func_convert_file_noop
6396 case $host in
6397   *-*-mingw* )
6398     case $build in
6399       *-*-mingw* ) # actually msys
6400         lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
6401         ;;
6402     esac
6403     ;;
6404 esac
6405
6406 fi
6407
6408 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6410 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6411
6412
6413
6414
6415
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6417 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6418 if ${lt_cv_ld_reload_flag+:} false; then :
6419   $as_echo_n "(cached) " >&6
6420 else
6421   lt_cv_ld_reload_flag='-r'
6422 fi
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6424 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6425 reload_flag=$lt_cv_ld_reload_flag
6426 case $reload_flag in
6427 "" | " "*) ;;
6428 *) reload_flag=" $reload_flag" ;;
6429 esac
6430 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6431 case $host_os in
6432   cygwin* | mingw* | pw32* | cegcc*)
6433     if test yes != "$GCC"; then
6434       reload_cmds=false
6435     fi
6436     ;;
6437   darwin*)
6438     if test yes = "$GCC"; then
6439       reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
6440     else
6441       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6442     fi
6443     ;;
6444 esac
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454 if test -n "$ac_tool_prefix"; then
6455   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6456 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if ${ac_cv_prog_OBJDUMP+:} false; then :
6460   $as_echo_n "(cached) " >&6
6461 else
6462   if test -n "$OBJDUMP"; then
6463   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6464 else
6465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466 for as_dir in $PATH
6467 do
6468   IFS=$as_save_IFS
6469   test -z "$as_dir" && as_dir=.
6470     for ac_exec_ext in '' $ac_executable_extensions; do
6471   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6472     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6473     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6474     break 2
6475   fi
6476 done
6477   done
6478 IFS=$as_save_IFS
6479
6480 fi
6481 fi
6482 OBJDUMP=$ac_cv_prog_OBJDUMP
6483 if test -n "$OBJDUMP"; then
6484   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6485 $as_echo "$OBJDUMP" >&6; }
6486 else
6487   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488 $as_echo "no" >&6; }
6489 fi
6490
6491
6492 fi
6493 if test -z "$ac_cv_prog_OBJDUMP"; then
6494   ac_ct_OBJDUMP=$OBJDUMP
6495   # Extract the first word of "objdump", so it can be a program name with args.
6496 set dummy objdump; ac_word=$2
6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6498 $as_echo_n "checking for $ac_word... " >&6; }
6499 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
6500   $as_echo_n "(cached) " >&6
6501 else
6502   if test -n "$ac_ct_OBJDUMP"; then
6503   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6504 else
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6506 for as_dir in $PATH
6507 do
6508   IFS=$as_save_IFS
6509   test -z "$as_dir" && as_dir=.
6510     for ac_exec_ext in '' $ac_executable_extensions; do
6511   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6513     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6514     break 2
6515   fi
6516 done
6517   done
6518 IFS=$as_save_IFS
6519
6520 fi
6521 fi
6522 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6523 if test -n "$ac_ct_OBJDUMP"; then
6524   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6525 $as_echo "$ac_ct_OBJDUMP" >&6; }
6526 else
6527   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6528 $as_echo "no" >&6; }
6529 fi
6530
6531   if test "x$ac_ct_OBJDUMP" = x; then
6532     OBJDUMP="false"
6533   else
6534     case $cross_compiling:$ac_tool_warned in
6535 yes:)
6536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6538 ac_tool_warned=yes ;;
6539 esac
6540     OBJDUMP=$ac_ct_OBJDUMP
6541   fi
6542 else
6543   OBJDUMP="$ac_cv_prog_OBJDUMP"
6544 fi
6545
6546 test -z "$OBJDUMP" && OBJDUMP=objdump
6547
6548
6549
6550
6551
6552
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6554 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6555 if ${lt_cv_deplibs_check_method+:} false; then :
6556   $as_echo_n "(cached) " >&6
6557 else
6558   lt_cv_file_magic_cmd='$MAGIC_CMD'
6559 lt_cv_file_magic_test_file=
6560 lt_cv_deplibs_check_method='unknown'
6561 # Need to set the preceding variable on all platforms that support
6562 # interlibrary dependencies.
6563 # 'none' -- dependencies not supported.
6564 # 'unknown' -- same as none, but documents that we really don't know.
6565 # 'pass_all' -- all dependencies passed with no checks.
6566 # 'test_compile' -- check by making test program.
6567 # 'file_magic [[regex]]' -- check by looking for files in library path
6568 # that responds to the $file_magic_cmd with a given extended regex.
6569 # If you have 'file' or equivalent on your system and you're not sure
6570 # whether 'pass_all' will *always* work, you probably want this one.
6571
6572 case $host_os in
6573 aix[4-9]*)
6574   lt_cv_deplibs_check_method=pass_all
6575   ;;
6576
6577 beos*)
6578   lt_cv_deplibs_check_method=pass_all
6579   ;;
6580
6581 bsdi[45]*)
6582   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6583   lt_cv_file_magic_cmd='/usr/bin/file -L'
6584   lt_cv_file_magic_test_file=/shlib/libc.so
6585   ;;
6586
6587 cygwin*)
6588   # func_win32_libid is a shell function defined in ltmain.sh
6589   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6590   lt_cv_file_magic_cmd='func_win32_libid'
6591   ;;
6592
6593 mingw* | pw32*)
6594   # Base MSYS/MinGW do not provide the 'file' command needed by
6595   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6596   # unless we find 'file', for example because we are cross-compiling.
6597   if ( file / ) >/dev/null 2>&1; then
6598     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6599     lt_cv_file_magic_cmd='func_win32_libid'
6600   else
6601     # Keep this pattern in sync with the one in func_win32_libid.
6602     lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6603     lt_cv_file_magic_cmd='$OBJDUMP -f'
6604   fi
6605   ;;
6606
6607 cegcc*)
6608   # use the weaker test based on 'objdump'. See mingw*.
6609   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6610   lt_cv_file_magic_cmd='$OBJDUMP -f'
6611   ;;
6612
6613 darwin* | rhapsody*)
6614   lt_cv_deplibs_check_method=pass_all
6615   ;;
6616
6617 freebsd* | dragonfly*)
6618   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6619     case $host_cpu in
6620     i*86 )
6621       # Not sure whether the presence of OpenBSD here was a mistake.
6622       # Let's accept both of them until this is cleared up.
6623       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6624       lt_cv_file_magic_cmd=/usr/bin/file
6625       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6626       ;;
6627     esac
6628   else
6629     lt_cv_deplibs_check_method=pass_all
6630   fi
6631   ;;
6632
6633 haiku*)
6634   lt_cv_deplibs_check_method=pass_all
6635   ;;
6636
6637 hpux10.20* | hpux11*)
6638   lt_cv_file_magic_cmd=/usr/bin/file
6639   case $host_cpu in
6640   ia64*)
6641     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6642     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6643     ;;
6644   hppa*64*)
6645     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]'
6646     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6647     ;;
6648   *)
6649     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6650     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6651     ;;
6652   esac
6653   ;;
6654
6655 interix[3-9]*)
6656   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6657   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6658   ;;
6659
6660 irix5* | irix6* | nonstopux*)
6661   case $LD in
6662   *-32|*"-32 ") libmagic=32-bit;;
6663   *-n32|*"-n32 ") libmagic=N32;;
6664   *-64|*"-64 ") libmagic=64-bit;;
6665   *) libmagic=never-match;;
6666   esac
6667   lt_cv_deplibs_check_method=pass_all
6668   ;;
6669
6670 # This must be glibc/ELF.
6671 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
6672   lt_cv_deplibs_check_method=pass_all
6673   ;;
6674
6675 netbsd*)
6676   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6677     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6678   else
6679     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6680   fi
6681   ;;
6682
6683 newos6*)
6684   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6685   lt_cv_file_magic_cmd=/usr/bin/file
6686   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6687   ;;
6688
6689 *nto* | *qnx*)
6690   lt_cv_deplibs_check_method=pass_all
6691   ;;
6692
6693 openbsd* | bitrig*)
6694   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
6695     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6696   else
6697     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6698   fi
6699   ;;
6700
6701 osf3* | osf4* | osf5*)
6702   lt_cv_deplibs_check_method=pass_all
6703   ;;
6704
6705 rdos*)
6706   lt_cv_deplibs_check_method=pass_all
6707   ;;
6708
6709 solaris*)
6710   lt_cv_deplibs_check_method=pass_all
6711   ;;
6712
6713 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6714   lt_cv_deplibs_check_method=pass_all
6715   ;;
6716
6717 sysv4 | sysv4.3*)
6718   case $host_vendor in
6719   motorola)
6720     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]'
6721     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6722     ;;
6723   ncr)
6724     lt_cv_deplibs_check_method=pass_all
6725     ;;
6726   sequent)
6727     lt_cv_file_magic_cmd='/bin/file'
6728     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6729     ;;
6730   sni)
6731     lt_cv_file_magic_cmd='/bin/file'
6732     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6733     lt_cv_file_magic_test_file=/lib/libc.so
6734     ;;
6735   siemens)
6736     lt_cv_deplibs_check_method=pass_all
6737     ;;
6738   pc)
6739     lt_cv_deplibs_check_method=pass_all
6740     ;;
6741   esac
6742   ;;
6743
6744 tpf*)
6745   lt_cv_deplibs_check_method=pass_all
6746   ;;
6747 os2*)
6748   lt_cv_deplibs_check_method=pass_all
6749   ;;
6750 esac
6751
6752 fi
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6754 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6755
6756 file_magic_glob=
6757 want_nocaseglob=no
6758 if test "$build" = "$host"; then
6759   case $host_os in
6760   mingw* | pw32*)
6761     if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6762       want_nocaseglob=yes
6763     else
6764       file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6765     fi
6766     ;;
6767   esac
6768 fi
6769
6770 file_magic_cmd=$lt_cv_file_magic_cmd
6771 deplibs_check_method=$lt_cv_deplibs_check_method
6772 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786
6787
6788
6789
6790
6791
6792
6793
6794
6795 if test -n "$ac_tool_prefix"; then
6796   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6797 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6799 $as_echo_n "checking for $ac_word... " >&6; }
6800 if ${ac_cv_prog_DLLTOOL+:} false; then :
6801   $as_echo_n "(cached) " >&6
6802 else
6803   if test -n "$DLLTOOL"; then
6804   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   test -z "$as_dir" && as_dir=.
6811     for ac_exec_ext in '' $ac_executable_extensions; do
6812   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6813     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6814     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6815     break 2
6816   fi
6817 done
6818   done
6819 IFS=$as_save_IFS
6820
6821 fi
6822 fi
6823 DLLTOOL=$ac_cv_prog_DLLTOOL
6824 if test -n "$DLLTOOL"; then
6825   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6826 $as_echo "$DLLTOOL" >&6; }
6827 else
6828   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6829 $as_echo "no" >&6; }
6830 fi
6831
6832
6833 fi
6834 if test -z "$ac_cv_prog_DLLTOOL"; then
6835   ac_ct_DLLTOOL=$DLLTOOL
6836   # Extract the first word of "dlltool", so it can be a program name with args.
6837 set dummy dlltool; ac_word=$2
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6839 $as_echo_n "checking for $ac_word... " >&6; }
6840 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6841   $as_echo_n "(cached) " >&6
6842 else
6843   if test -n "$ac_ct_DLLTOOL"; then
6844   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6845 else
6846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6847 for as_dir in $PATH
6848 do
6849   IFS=$as_save_IFS
6850   test -z "$as_dir" && as_dir=.
6851     for ac_exec_ext in '' $ac_executable_extensions; do
6852   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6853     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6854     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6855     break 2
6856   fi
6857 done
6858   done
6859 IFS=$as_save_IFS
6860
6861 fi
6862 fi
6863 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6864 if test -n "$ac_ct_DLLTOOL"; then
6865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6866 $as_echo "$ac_ct_DLLTOOL" >&6; }
6867 else
6868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6869 $as_echo "no" >&6; }
6870 fi
6871
6872   if test "x$ac_ct_DLLTOOL" = x; then
6873     DLLTOOL="false"
6874   else
6875     case $cross_compiling:$ac_tool_warned in
6876 yes:)
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6879 ac_tool_warned=yes ;;
6880 esac
6881     DLLTOOL=$ac_ct_DLLTOOL
6882   fi
6883 else
6884   DLLTOOL="$ac_cv_prog_DLLTOOL"
6885 fi
6886
6887 test -z "$DLLTOOL" && DLLTOOL=dlltool
6888
6889
6890
6891
6892
6893
6894
6895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6896 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6897 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6898   $as_echo_n "(cached) " >&6
6899 else
6900   lt_cv_sharedlib_from_linklib_cmd='unknown'
6901
6902 case $host_os in
6903 cygwin* | mingw* | pw32* | cegcc*)
6904   # two different shell functions defined in ltmain.sh;
6905   # decide which one to use based on capabilities of $DLLTOOL
6906   case `$DLLTOOL --help 2>&1` in
6907   *--identify-strict*)
6908     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6909     ;;
6910   *)
6911     lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6912     ;;
6913   esac
6914   ;;
6915 *)
6916   # fallback: assume linklib IS sharedlib
6917   lt_cv_sharedlib_from_linklib_cmd=$ECHO
6918   ;;
6919 esac
6920
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6923 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6924 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6925 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6926
6927
6928
6929
6930
6931
6932
6933 if test -n "$ac_tool_prefix"; then
6934   for ac_prog in ar
6935   do
6936     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6937 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_AR+:} false; then :
6941   $as_echo_n "(cached) " >&6
6942 else
6943   if test -n "$AR"; then
6944   ac_cv_prog_AR="$AR" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949   IFS=$as_save_IFS
6950   test -z "$as_dir" && as_dir=.
6951     for ac_exec_ext in '' $ac_executable_extensions; do
6952   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953     ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6954     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955     break 2
6956   fi
6957 done
6958   done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 AR=$ac_cv_prog_AR
6964 if test -n "$AR"; then
6965   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6966 $as_echo "$AR" >&6; }
6967 else
6968   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972
6973     test -n "$AR" && break
6974   done
6975 fi
6976 if test -z "$AR"; then
6977   ac_ct_AR=$AR
6978   for ac_prog in ar
6979 do
6980   # Extract the first word of "$ac_prog", so it can be a program name with args.
6981 set dummy $ac_prog; ac_word=$2
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6983 $as_echo_n "checking for $ac_word... " >&6; }
6984 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6985   $as_echo_n "(cached) " >&6
6986 else
6987   if test -n "$ac_ct_AR"; then
6988   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6989 else
6990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6991 for as_dir in $PATH
6992 do
6993   IFS=$as_save_IFS
6994   test -z "$as_dir" && as_dir=.
6995     for ac_exec_ext in '' $ac_executable_extensions; do
6996   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6997     ac_cv_prog_ac_ct_AR="$ac_prog"
6998     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6999     break 2
7000   fi
7001 done
7002   done
7003 IFS=$as_save_IFS
7004
7005 fi
7006 fi
7007 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7008 if test -n "$ac_ct_AR"; then
7009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7010 $as_echo "$ac_ct_AR" >&6; }
7011 else
7012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7013 $as_echo "no" >&6; }
7014 fi
7015
7016
7017   test -n "$ac_ct_AR" && break
7018 done
7019
7020   if test "x$ac_ct_AR" = x; then
7021     AR="false"
7022   else
7023     case $cross_compiling:$ac_tool_warned in
7024 yes:)
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7027 ac_tool_warned=yes ;;
7028 esac
7029     AR=$ac_ct_AR
7030   fi
7031 fi
7032
7033 : ${AR=ar}
7034 : ${AR_FLAGS=cru}
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7047 $as_echo_n "checking for archiver @FILE support... " >&6; }
7048 if ${lt_cv_ar_at_file+:} false; then :
7049   $as_echo_n "(cached) " >&6
7050 else
7051   lt_cv_ar_at_file=no
7052    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7053 /* end confdefs.h.  */
7054
7055 int
7056 main ()
7057 {
7058
7059   ;
7060   return 0;
7061 }
7062 _ACEOF
7063 if ac_fn_c_try_compile "$LINENO"; then :
7064   echo conftest.$ac_objext > conftest.lst
7065       lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7066       { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7067   (eval $lt_ar_try) 2>&5
7068   ac_status=$?
7069   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7070   test $ac_status = 0; }
7071       if test 0 -eq "$ac_status"; then
7072         # Ensure the archiver fails upon bogus file names.
7073         rm -f conftest.$ac_objext libconftest.a
7074         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7075   (eval $lt_ar_try) 2>&5
7076   ac_status=$?
7077   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7078   test $ac_status = 0; }
7079         if test 0 -ne "$ac_status"; then
7080           lt_cv_ar_at_file=@
7081         fi
7082       fi
7083       rm -f conftest.* libconftest.a
7084
7085 fi
7086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7087
7088 fi
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7090 $as_echo "$lt_cv_ar_at_file" >&6; }
7091
7092 if test no = "$lt_cv_ar_at_file"; then
7093   archiver_list_spec=
7094 else
7095   archiver_list_spec=$lt_cv_ar_at_file
7096 fi
7097
7098
7099
7100
7101
7102
7103
7104 if test -n "$ac_tool_prefix"; then
7105   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7106 set dummy ${ac_tool_prefix}strip; ac_word=$2
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7108 $as_echo_n "checking for $ac_word... " >&6; }
7109 if ${ac_cv_prog_STRIP+:} false; then :
7110   $as_echo_n "(cached) " >&6
7111 else
7112   if test -n "$STRIP"; then
7113   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7114 else
7115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7116 for as_dir in $PATH
7117 do
7118   IFS=$as_save_IFS
7119   test -z "$as_dir" && as_dir=.
7120     for ac_exec_ext in '' $ac_executable_extensions; do
7121   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7122     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7123     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7124     break 2
7125   fi
7126 done
7127   done
7128 IFS=$as_save_IFS
7129
7130 fi
7131 fi
7132 STRIP=$ac_cv_prog_STRIP
7133 if test -n "$STRIP"; then
7134   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7135 $as_echo "$STRIP" >&6; }
7136 else
7137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7138 $as_echo "no" >&6; }
7139 fi
7140
7141
7142 fi
7143 if test -z "$ac_cv_prog_STRIP"; then
7144   ac_ct_STRIP=$STRIP
7145   # Extract the first word of "strip", so it can be a program name with args.
7146 set dummy strip; ac_word=$2
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7148 $as_echo_n "checking for $ac_word... " >&6; }
7149 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7150   $as_echo_n "(cached) " >&6
7151 else
7152   if test -n "$ac_ct_STRIP"; then
7153   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7154 else
7155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7156 for as_dir in $PATH
7157 do
7158   IFS=$as_save_IFS
7159   test -z "$as_dir" && as_dir=.
7160     for ac_exec_ext in '' $ac_executable_extensions; do
7161   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7162     ac_cv_prog_ac_ct_STRIP="strip"
7163     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7164     break 2
7165   fi
7166 done
7167   done
7168 IFS=$as_save_IFS
7169
7170 fi
7171 fi
7172 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7173 if test -n "$ac_ct_STRIP"; then
7174   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7175 $as_echo "$ac_ct_STRIP" >&6; }
7176 else
7177   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7178 $as_echo "no" >&6; }
7179 fi
7180
7181   if test "x$ac_ct_STRIP" = x; then
7182     STRIP=":"
7183   else
7184     case $cross_compiling:$ac_tool_warned in
7185 yes:)
7186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7188 ac_tool_warned=yes ;;
7189 esac
7190     STRIP=$ac_ct_STRIP
7191   fi
7192 else
7193   STRIP="$ac_cv_prog_STRIP"
7194 fi
7195
7196 test -z "$STRIP" && STRIP=:
7197
7198
7199
7200
7201
7202
7203 if test -n "$ac_tool_prefix"; then
7204   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7205 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7207 $as_echo_n "checking for $ac_word... " >&6; }
7208 if ${ac_cv_prog_RANLIB+:} false; then :
7209   $as_echo_n "(cached) " >&6
7210 else
7211   if test -n "$RANLIB"; then
7212   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7213 else
7214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7215 for as_dir in $PATH
7216 do
7217   IFS=$as_save_IFS
7218   test -z "$as_dir" && as_dir=.
7219     for ac_exec_ext in '' $ac_executable_extensions; do
7220   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7221     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7222     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7223     break 2
7224   fi
7225 done
7226   done
7227 IFS=$as_save_IFS
7228
7229 fi
7230 fi
7231 RANLIB=$ac_cv_prog_RANLIB
7232 if test -n "$RANLIB"; then
7233   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7234 $as_echo "$RANLIB" >&6; }
7235 else
7236   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 fi
7239
7240
7241 fi
7242 if test -z "$ac_cv_prog_RANLIB"; then
7243   ac_ct_RANLIB=$RANLIB
7244   # Extract the first word of "ranlib", so it can be a program name with args.
7245 set dummy ranlib; ac_word=$2
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7247 $as_echo_n "checking for $ac_word... " >&6; }
7248 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7249   $as_echo_n "(cached) " >&6
7250 else
7251   if test -n "$ac_ct_RANLIB"; then
7252   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7253 else
7254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 for as_dir in $PATH
7256 do
7257   IFS=$as_save_IFS
7258   test -z "$as_dir" && as_dir=.
7259     for ac_exec_ext in '' $ac_executable_extensions; do
7260   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7261     ac_cv_prog_ac_ct_RANLIB="ranlib"
7262     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7263     break 2
7264   fi
7265 done
7266   done
7267 IFS=$as_save_IFS
7268
7269 fi
7270 fi
7271 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7272 if test -n "$ac_ct_RANLIB"; then
7273   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7274 $as_echo "$ac_ct_RANLIB" >&6; }
7275 else
7276   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277 $as_echo "no" >&6; }
7278 fi
7279
7280   if test "x$ac_ct_RANLIB" = x; then
7281     RANLIB=":"
7282   else
7283     case $cross_compiling:$ac_tool_warned in
7284 yes:)
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7287 ac_tool_warned=yes ;;
7288 esac
7289     RANLIB=$ac_ct_RANLIB
7290   fi
7291 else
7292   RANLIB="$ac_cv_prog_RANLIB"
7293 fi
7294
7295 test -z "$RANLIB" && RANLIB=:
7296
7297
7298
7299
7300
7301
7302 # Determine commands to create old-style static archives.
7303 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7304 old_postinstall_cmds='chmod 644 $oldlib'
7305 old_postuninstall_cmds=
7306
7307 if test -n "$RANLIB"; then
7308   case $host_os in
7309   bitrig* | openbsd*)
7310     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7311     ;;
7312   *)
7313     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7314     ;;
7315   esac
7316   old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7317 fi
7318
7319 case $host_os in
7320   darwin*)
7321     lock_old_archive_extraction=yes ;;
7322   *)
7323     lock_old_archive_extraction=no ;;
7324 esac
7325
7326
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 # If no C compiler was specified, use CC.
7365 LTCC=${LTCC-"$CC"}
7366
7367 # If no C compiler flags were specified, use CFLAGS.
7368 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7369
7370 # Allow CC to be a program name with arguments.
7371 compiler=$CC
7372
7373
7374 # Check for command to grab the raw symbol name followed by C symbol from nm.
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7376 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7377 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
7378   $as_echo_n "(cached) " >&6
7379 else
7380
7381 # These are sane defaults that work on at least a few old systems.
7382 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7383
7384 # Character class describing NM global symbol codes.
7385 symcode='[BCDEGRST]'
7386
7387 # Regexp to match symbols that can be accessed directly from C.
7388 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7389
7390 # Define system-specific variables.
7391 case $host_os in
7392 aix*)
7393   symcode='[BCDT]'
7394   ;;
7395 cygwin* | mingw* | pw32* | cegcc*)
7396   symcode='[ABCDGISTW]'
7397   ;;
7398 hpux*)
7399   if test ia64 = "$host_cpu"; then
7400     symcode='[ABCDEGRST]'
7401   fi
7402   ;;
7403 irix* | nonstopux*)
7404   symcode='[BCDEGRST]'
7405   ;;
7406 osf*)
7407   symcode='[BCDEGQRST]'
7408   ;;
7409 solaris*)
7410   symcode='[BDRT]'
7411   ;;
7412 sco3.2v5*)
7413   symcode='[DT]'
7414   ;;
7415 sysv4.2uw2*)
7416   symcode='[DT]'
7417   ;;
7418 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7419   symcode='[ABDT]'
7420   ;;
7421 sysv4)
7422   symcode='[DFNSTU]'
7423   ;;
7424 esac
7425
7426 # If we're using GNU nm, then use its standard symbol codes.
7427 case `$NM -V 2>&1` in
7428 *GNU* | *'with BFD'*)
7429   symcode='[ABCDGIRSTW]' ;;
7430 esac
7431
7432 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7433   # Gets list of data symbols to import.
7434   lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
7435   # Adjust the below global symbol transforms to fixup imported variables.
7436   lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
7437   lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
7438   lt_c_name_lib_hook="\
7439   -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
7440   -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
7441 else
7442   # Disable hooks by default.
7443   lt_cv_sys_global_symbol_to_import=
7444   lt_cdecl_hook=
7445   lt_c_name_hook=
7446   lt_c_name_lib_hook=
7447 fi
7448
7449 # Transform an extracted symbol line into a proper C declaration.
7450 # Some systems (esp. on ia64) link data and code symbols differently,
7451 # so use this general approach.
7452 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
7453 $lt_cdecl_hook\
7454 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
7455 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
7456
7457 # Transform an extracted symbol line into symbol name and symbol address
7458 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
7459 $lt_c_name_hook\
7460 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7461 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
7462
7463 # Transform an extracted symbol line into symbol name with lib prefix and
7464 # symbol address.
7465 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
7466 $lt_c_name_lib_hook\
7467 " -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
7468 " -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
7469 " -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
7470
7471 # Handle CRLF in mingw tool chain
7472 opt_cr=
7473 case $build_os in
7474 mingw*)
7475   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7476   ;;
7477 esac
7478
7479 # Try without a prefix underscore, then with it.
7480 for ac_symprfx in "" "_"; do
7481
7482   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7483   symxfrm="\\1 $ac_symprfx\\2 \\2"
7484
7485   # Write the raw and C identifiers.
7486   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7487     # Fake it for dumpbin and say T for any non-static function,
7488     # D for any global variable and I for any imported variable.
7489     # Also find C++ and __fastcall symbols from MSVC++,
7490     # which start with @ or ?.
7491     lt_cv_sys_global_symbol_pipe="$AWK '"\
7492 "     {last_section=section; section=\$ 3};"\
7493 "     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7494 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7495 "     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
7496 "     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
7497 "     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
7498 "     \$ 0!~/External *\|/{next};"\
7499 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7500 "     {if(hide[section]) next};"\
7501 "     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
7502 "     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
7503 "     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
7504 "     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
7505 "     ' prfx=^$ac_symprfx"
7506   else
7507     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7508   fi
7509   lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7510
7511   # Check to see that the pipe works correctly.
7512   pipe_works=no
7513
7514   rm -f conftest*
7515   cat > conftest.$ac_ext <<_LT_EOF
7516 #ifdef __cplusplus
7517 extern "C" {
7518 #endif
7519 char nm_test_var;
7520 void nm_test_func(void);
7521 void nm_test_func(void){}
7522 #ifdef __cplusplus
7523 }
7524 #endif
7525 int main(){nm_test_var='a';nm_test_func();return(0);}
7526 _LT_EOF
7527
7528   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7529   (eval $ac_compile) 2>&5
7530   ac_status=$?
7531   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532   test $ac_status = 0; }; then
7533     # Now try to grab the symbols.
7534     nlist=conftest.nm
7535     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7536   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7537   ac_status=$?
7538   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7539   test $ac_status = 0; } && test -s "$nlist"; then
7540       # Try sorting and uniquifying the output.
7541       if sort "$nlist" | uniq > "$nlist"T; then
7542         mv -f "$nlist"T "$nlist"
7543       else
7544         rm -f "$nlist"T
7545       fi
7546
7547       # Make sure that we snagged all the symbols we need.
7548       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7549         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7550           cat <<_LT_EOF > conftest.$ac_ext
7551 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
7552 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
7553 /* DATA imports from DLLs on WIN32 can't be const, because runtime
7554    relocations are performed -- see ld's documentation on pseudo-relocs.  */
7555 # define LT_DLSYM_CONST
7556 #elif defined __osf__
7557 /* This system does not cope well with relocations in const data.  */
7558 # define LT_DLSYM_CONST
7559 #else
7560 # define LT_DLSYM_CONST const
7561 #endif
7562
7563 #ifdef __cplusplus
7564 extern "C" {
7565 #endif
7566
7567 _LT_EOF
7568           # Now generate the symbol file.
7569           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7570
7571           cat <<_LT_EOF >> conftest.$ac_ext
7572
7573 /* The mapping between symbol names and symbols.  */
7574 LT_DLSYM_CONST struct {
7575   const char *name;
7576   void       *address;
7577 }
7578 lt__PROGRAM__LTX_preloaded_symbols[] =
7579 {
7580   { "@PROGRAM@", (void *) 0 },
7581 _LT_EOF
7582           $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7583           cat <<\_LT_EOF >> conftest.$ac_ext
7584   {0, (void *) 0}
7585 };
7586
7587 /* This works around a problem in FreeBSD linker */
7588 #ifdef FREEBSD_WORKAROUND
7589 static const void *lt_preloaded_setup() {
7590   return lt__PROGRAM__LTX_preloaded_symbols;
7591 }
7592 #endif
7593
7594 #ifdef __cplusplus
7595 }
7596 #endif
7597 _LT_EOF
7598           # Now try linking the two files.
7599           mv conftest.$ac_objext conftstm.$ac_objext
7600           lt_globsym_save_LIBS=$LIBS
7601           lt_globsym_save_CFLAGS=$CFLAGS
7602           LIBS=conftstm.$ac_objext
7603           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7604           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7605   (eval $ac_link) 2>&5
7606   ac_status=$?
7607   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7608   test $ac_status = 0; } && test -s conftest$ac_exeext; then
7609             pipe_works=yes
7610           fi
7611           LIBS=$lt_globsym_save_LIBS
7612           CFLAGS=$lt_globsym_save_CFLAGS
7613         else
7614           echo "cannot find nm_test_func in $nlist" >&5
7615         fi
7616       else
7617         echo "cannot find nm_test_var in $nlist" >&5
7618       fi
7619     else
7620       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7621     fi
7622   else
7623     echo "$progname: failed program was:" >&5
7624     cat conftest.$ac_ext >&5
7625   fi
7626   rm -rf conftest* conftst*
7627
7628   # Do not use the global_symbol_pipe unless it works.
7629   if test yes = "$pipe_works"; then
7630     break
7631   else
7632     lt_cv_sys_global_symbol_pipe=
7633   fi
7634 done
7635
7636 fi
7637
7638 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7639   lt_cv_sys_global_symbol_to_cdecl=
7640 fi
7641 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7642   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7643 $as_echo "failed" >&6; }
7644 else
7645   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7646 $as_echo "ok" >&6; }
7647 fi
7648
7649 # Response file support.
7650 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7651   nm_file_list_spec='@'
7652 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
7653   nm_file_list_spec='@'
7654 fi
7655
7656
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7693 $as_echo_n "checking for sysroot... " >&6; }
7694
7695 # Check whether --with-sysroot was given.
7696 if test "${with_sysroot+set}" = set; then :
7697   withval=$with_sysroot;
7698 else
7699   with_sysroot=no
7700 fi
7701
7702
7703 lt_sysroot=
7704 case $with_sysroot in #(
7705  yes)
7706    if test yes = "$GCC"; then
7707      lt_sysroot=`$CC --print-sysroot 2>/dev/null`
7708    fi
7709    ;; #(
7710  /*)
7711    lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7712    ;; #(
7713  no|'')
7714    ;; #(
7715  *)
7716    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
7717 $as_echo "$with_sysroot" >&6; }
7718    as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
7719    ;;
7720 esac
7721
7722  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7723 $as_echo "${lt_sysroot:-no}" >&6; }
7724
7725
7726
7727
7728
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
7730 $as_echo_n "checking for a working dd... " >&6; }
7731 if ${ac_cv_path_lt_DD+:} false; then :
7732   $as_echo_n "(cached) " >&6
7733 else
7734   printf 0123456789abcdef0123456789abcdef >conftest.i
7735 cat conftest.i conftest.i >conftest2.i
7736 : ${lt_DD:=$DD}
7737 if test -z "$lt_DD"; then
7738   ac_path_lt_DD_found=false
7739   # Loop through the user's path and test for each of PROGNAME-LIST
7740   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7742 do
7743   IFS=$as_save_IFS
7744   test -z "$as_dir" && as_dir=.
7745     for ac_prog in dd; do
7746     for ac_exec_ext in '' $ac_executable_extensions; do
7747       ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
7748       as_fn_executable_p "$ac_path_lt_DD" || continue
7749 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7750   cmp -s conftest.i conftest.out \
7751   && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
7752 fi
7753       $ac_path_lt_DD_found && break 3
7754     done
7755   done
7756   done
7757 IFS=$as_save_IFS
7758   if test -z "$ac_cv_path_lt_DD"; then
7759     :
7760   fi
7761 else
7762   ac_cv_path_lt_DD=$lt_DD
7763 fi
7764
7765 rm -f conftest.i conftest2.i conftest.out
7766 fi
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
7768 $as_echo "$ac_cv_path_lt_DD" >&6; }
7769
7770
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
7772 $as_echo_n "checking how to truncate binary pipes... " >&6; }
7773 if ${lt_cv_truncate_bin+:} false; then :
7774   $as_echo_n "(cached) " >&6
7775 else
7776   printf 0123456789abcdef0123456789abcdef >conftest.i
7777 cat conftest.i conftest.i >conftest2.i
7778 lt_cv_truncate_bin=
7779 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
7780   cmp -s conftest.i conftest.out \
7781   && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
7782 fi
7783 rm -f conftest.i conftest2.i conftest.out
7784 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
7785 fi
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
7787 $as_echo "$lt_cv_truncate_bin" >&6; }
7788
7789
7790
7791
7792
7793
7794
7795 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
7796 func_cc_basename ()
7797 {
7798     for cc_temp in $*""; do
7799       case $cc_temp in
7800         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7801         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7802         \-*) ;;
7803         *) break;;
7804       esac
7805     done
7806     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7807 }
7808
7809 # Check whether --enable-libtool-lock was given.
7810 if test "${enable_libtool_lock+set}" = set; then :
7811   enableval=$enable_libtool_lock;
7812 fi
7813
7814 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
7815
7816 # Some flags need to be propagated to the compiler or linker for good
7817 # libtool support.
7818 case $host in
7819 ia64-*-hpux*)
7820   # Find out what ABI is being produced by ac_compile, and set mode
7821   # options accordingly.
7822   echo 'int i;' > conftest.$ac_ext
7823   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7824   (eval $ac_compile) 2>&5
7825   ac_status=$?
7826   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7827   test $ac_status = 0; }; then
7828     case `/usr/bin/file conftest.$ac_objext` in
7829       *ELF-32*)
7830         HPUX_IA64_MODE=32
7831         ;;
7832       *ELF-64*)
7833         HPUX_IA64_MODE=64
7834         ;;
7835     esac
7836   fi
7837   rm -rf conftest*
7838   ;;
7839 *-*-irix6*)
7840   # Find out what ABI is being produced by ac_compile, and set linker
7841   # options accordingly.
7842   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7843   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7844   (eval $ac_compile) 2>&5
7845   ac_status=$?
7846   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847   test $ac_status = 0; }; then
7848     if test yes = "$lt_cv_prog_gnu_ld"; then
7849       case `/usr/bin/file conftest.$ac_objext` in
7850         *32-bit*)
7851           LD="${LD-ld} -melf32bsmip"
7852           ;;
7853         *N32*)
7854           LD="${LD-ld} -melf32bmipn32"
7855           ;;
7856         *64-bit*)
7857           LD="${LD-ld} -melf64bmip"
7858         ;;
7859       esac
7860     else
7861       case `/usr/bin/file conftest.$ac_objext` in
7862         *32-bit*)
7863           LD="${LD-ld} -32"
7864           ;;
7865         *N32*)
7866           LD="${LD-ld} -n32"
7867           ;;
7868         *64-bit*)
7869           LD="${LD-ld} -64"
7870           ;;
7871       esac
7872     fi
7873   fi
7874   rm -rf conftest*
7875   ;;
7876
7877 mips64*-*linux*)
7878   # Find out what ABI is being produced by ac_compile, and set linker
7879   # options accordingly.
7880   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7881   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7882   (eval $ac_compile) 2>&5
7883   ac_status=$?
7884   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7885   test $ac_status = 0; }; then
7886     emul=elf
7887     case `/usr/bin/file conftest.$ac_objext` in
7888       *32-bit*)
7889         emul="${emul}32"
7890         ;;
7891       *64-bit*)
7892         emul="${emul}64"
7893         ;;
7894     esac
7895     case `/usr/bin/file conftest.$ac_objext` in
7896       *MSB*)
7897         emul="${emul}btsmip"
7898         ;;
7899       *LSB*)
7900         emul="${emul}ltsmip"
7901         ;;
7902     esac
7903     case `/usr/bin/file conftest.$ac_objext` in
7904       *N32*)
7905         emul="${emul}n32"
7906         ;;
7907     esac
7908     LD="${LD-ld} -m $emul"
7909   fi
7910   rm -rf conftest*
7911   ;;
7912
7913 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
7914 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7915   # Find out what ABI is being produced by ac_compile, and set linker
7916   # options accordingly.  Note that the listed cases only cover the
7917   # situations where additional linker options are needed (such as when
7918   # doing 32-bit compilation for a host where ld defaults to 64-bit, or
7919   # vice versa); the common cases where no linker options are needed do
7920   # not appear in the list.
7921   echo 'int i;' > conftest.$ac_ext
7922   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7923   (eval $ac_compile) 2>&5
7924   ac_status=$?
7925   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7926   test $ac_status = 0; }; then
7927     case `/usr/bin/file conftest.o` in
7928       *32-bit*)
7929         case $host in
7930           x86_64-*kfreebsd*-gnu)
7931             LD="${LD-ld} -m elf_i386_fbsd"
7932             ;;
7933           x86_64-*linux*)
7934             case `/usr/bin/file conftest.o` in
7935               *x86-64*)
7936                 LD="${LD-ld} -m elf32_x86_64"
7937                 ;;
7938               *)
7939                 LD="${LD-ld} -m elf_i386"
7940                 ;;
7941             esac
7942             ;;
7943           powerpc64le-*linux*)
7944             LD="${LD-ld} -m elf32lppclinux"
7945             ;;
7946           powerpc64-*linux*)
7947             LD="${LD-ld} -m elf32ppclinux"
7948             ;;
7949           s390x-*linux*)
7950             LD="${LD-ld} -m elf_s390"
7951             ;;
7952           sparc64-*linux*)
7953             LD="${LD-ld} -m elf32_sparc"
7954             ;;
7955         esac
7956         ;;
7957       *64-bit*)
7958         case $host in
7959           x86_64-*kfreebsd*-gnu)
7960             LD="${LD-ld} -m elf_x86_64_fbsd"
7961             ;;
7962           x86_64-*linux*)
7963             LD="${LD-ld} -m elf_x86_64"
7964             ;;
7965           powerpcle-*linux*)
7966             LD="${LD-ld} -m elf64lppc"
7967             ;;
7968           powerpc-*linux*)
7969             LD="${LD-ld} -m elf64ppc"
7970             ;;
7971           s390*-*linux*|s390*-*tpf*)
7972             LD="${LD-ld} -m elf64_s390"
7973             ;;
7974           sparc*-*linux*)
7975             LD="${LD-ld} -m elf64_sparc"
7976             ;;
7977         esac
7978         ;;
7979     esac
7980   fi
7981   rm -rf conftest*
7982   ;;
7983
7984 *-*-sco3.2v5*)
7985   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7986   SAVE_CFLAGS=$CFLAGS
7987   CFLAGS="$CFLAGS -belf"
7988   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7989 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7990 if ${lt_cv_cc_needs_belf+:} false; then :
7991   $as_echo_n "(cached) " >&6
7992 else
7993   ac_ext=c
7994 ac_cpp='$CPP $CPPFLAGS'
7995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7998
7999      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h.  */
8001
8002 int
8003 main ()
8004 {
8005
8006   ;
8007   return 0;
8008 }
8009 _ACEOF
8010 if ac_fn_c_try_link "$LINENO"; then :
8011   lt_cv_cc_needs_belf=yes
8012 else
8013   lt_cv_cc_needs_belf=no
8014 fi
8015 rm -f core conftest.err conftest.$ac_objext \
8016     conftest$ac_exeext conftest.$ac_ext
8017      ac_ext=c
8018 ac_cpp='$CPP $CPPFLAGS'
8019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8022
8023 fi
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8025 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8026   if test yes != "$lt_cv_cc_needs_belf"; then
8027     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8028     CFLAGS=$SAVE_CFLAGS
8029   fi
8030   ;;
8031 *-*solaris*)
8032   # Find out what ABI is being produced by ac_compile, and set linker
8033   # options accordingly.
8034   echo 'int i;' > conftest.$ac_ext
8035   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8036   (eval $ac_compile) 2>&5
8037   ac_status=$?
8038   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8039   test $ac_status = 0; }; then
8040     case `/usr/bin/file conftest.o` in
8041     *64-bit*)
8042       case $lt_cv_prog_gnu_ld in
8043       yes*)
8044         case $host in
8045         i?86-*-solaris*|x86_64-*-solaris*)
8046           LD="${LD-ld} -m elf_x86_64"
8047           ;;
8048         sparc*-*-solaris*)
8049           LD="${LD-ld} -m elf64_sparc"
8050           ;;
8051         esac
8052         # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
8053         if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
8054           LD=${LD-ld}_sol2
8055         fi
8056         ;;
8057       *)
8058         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8059           LD="${LD-ld} -64"
8060         fi
8061         ;;
8062       esac
8063       ;;
8064     esac
8065   fi
8066   rm -rf conftest*
8067   ;;
8068 esac
8069
8070 need_locks=$enable_libtool_lock
8071
8072 if test -n "$ac_tool_prefix"; then
8073   # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8074 set dummy ${ac_tool_prefix}mt; ac_word=$2
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8076 $as_echo_n "checking for $ac_word... " >&6; }
8077 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
8078   $as_echo_n "(cached) " >&6
8079 else
8080   if test -n "$MANIFEST_TOOL"; then
8081   ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8082 else
8083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8084 for as_dir in $PATH
8085 do
8086   IFS=$as_save_IFS
8087   test -z "$as_dir" && as_dir=.
8088     for ac_exec_ext in '' $ac_executable_extensions; do
8089   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8090     ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
8091     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8092     break 2
8093   fi
8094 done
8095   done
8096 IFS=$as_save_IFS
8097
8098 fi
8099 fi
8100 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
8101 if test -n "$MANIFEST_TOOL"; then
8102   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8103 $as_echo "$MANIFEST_TOOL" >&6; }
8104 else
8105   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8107 fi
8108
8109
8110 fi
8111 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8112   ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
8113   # Extract the first word of "mt", so it can be a program name with args.
8114 set dummy mt; ac_word=$2
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8116 $as_echo_n "checking for $ac_word... " >&6; }
8117 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
8118   $as_echo_n "(cached) " >&6
8119 else
8120   if test -n "$ac_ct_MANIFEST_TOOL"; then
8121   ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8122 else
8123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8124 for as_dir in $PATH
8125 do
8126   IFS=$as_save_IFS
8127   test -z "$as_dir" && as_dir=.
8128     for ac_exec_ext in '' $ac_executable_extensions; do
8129   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8130     ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
8131     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8132     break 2
8133   fi
8134 done
8135   done
8136 IFS=$as_save_IFS
8137
8138 fi
8139 fi
8140 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8141 if test -n "$ac_ct_MANIFEST_TOOL"; then
8142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8143 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8144 else
8145   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8146 $as_echo "no" >&6; }
8147 fi
8148
8149   if test "x$ac_ct_MANIFEST_TOOL" = x; then
8150     MANIFEST_TOOL=":"
8151   else
8152     case $cross_compiling:$ac_tool_warned in
8153 yes:)
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8155 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8156 ac_tool_warned=yes ;;
8157 esac
8158     MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
8159   fi
8160 else
8161   MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
8162 fi
8163
8164 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8166 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8167 if ${lt_cv_path_mainfest_tool+:} false; then :
8168   $as_echo_n "(cached) " >&6
8169 else
8170   lt_cv_path_mainfest_tool=no
8171   echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8172   $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
8173   cat conftest.err >&5
8174   if $GREP 'Manifest Tool' conftest.out > /dev/null; then
8175     lt_cv_path_mainfest_tool=yes
8176   fi
8177   rm -f conftest*
8178 fi
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8180 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8181 if test yes != "$lt_cv_path_mainfest_tool"; then
8182   MANIFEST_TOOL=:
8183 fi
8184
8185
8186
8187
8188
8189
8190   case $host_os in
8191     rhapsody* | darwin*)
8192     if test -n "$ac_tool_prefix"; then
8193   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8198   $as_echo_n "(cached) " >&6
8199 else
8200   if test -n "$DSYMUTIL"; then
8201   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8202 else
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8204 for as_dir in $PATH
8205 do
8206   IFS=$as_save_IFS
8207   test -z "$as_dir" && as_dir=.
8208     for ac_exec_ext in '' $ac_executable_extensions; do
8209   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8211     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8212     break 2
8213   fi
8214 done
8215   done
8216 IFS=$as_save_IFS
8217
8218 fi
8219 fi
8220 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8221 if test -n "$DSYMUTIL"; then
8222   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8223 $as_echo "$DSYMUTIL" >&6; }
8224 else
8225   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8227 fi
8228
8229
8230 fi
8231 if test -z "$ac_cv_prog_DSYMUTIL"; then
8232   ac_ct_DSYMUTIL=$DSYMUTIL
8233   # Extract the first word of "dsymutil", so it can be a program name with args.
8234 set dummy dsymutil; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   if test -n "$ac_ct_DSYMUTIL"; then
8241   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8242 else
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8244 for as_dir in $PATH
8245 do
8246   IFS=$as_save_IFS
8247   test -z "$as_dir" && as_dir=.
8248     for ac_exec_ext in '' $ac_executable_extensions; do
8249   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8251     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8252     break 2
8253   fi
8254 done
8255   done
8256 IFS=$as_save_IFS
8257
8258 fi
8259 fi
8260 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8261 if test -n "$ac_ct_DSYMUTIL"; then
8262   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8263 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8264 else
8265   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8267 fi
8268
8269   if test "x$ac_ct_DSYMUTIL" = x; then
8270     DSYMUTIL=":"
8271   else
8272     case $cross_compiling:$ac_tool_warned in
8273 yes:)
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8277 esac
8278     DSYMUTIL=$ac_ct_DSYMUTIL
8279   fi
8280 else
8281   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8282 fi
8283
8284     if test -n "$ac_tool_prefix"; then
8285   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8286 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8288 $as_echo_n "checking for $ac_word... " >&6; }
8289 if ${ac_cv_prog_NMEDIT+:} false; then :
8290   $as_echo_n "(cached) " >&6
8291 else
8292   if test -n "$NMEDIT"; then
8293   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8294 else
8295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 for as_dir in $PATH
8297 do
8298   IFS=$as_save_IFS
8299   test -z "$as_dir" && as_dir=.
8300     for ac_exec_ext in '' $ac_executable_extensions; do
8301   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8302     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8303     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8304     break 2
8305   fi
8306 done
8307   done
8308 IFS=$as_save_IFS
8309
8310 fi
8311 fi
8312 NMEDIT=$ac_cv_prog_NMEDIT
8313 if test -n "$NMEDIT"; then
8314   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8315 $as_echo "$NMEDIT" >&6; }
8316 else
8317   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8318 $as_echo "no" >&6; }
8319 fi
8320
8321
8322 fi
8323 if test -z "$ac_cv_prog_NMEDIT"; then
8324   ac_ct_NMEDIT=$NMEDIT
8325   # Extract the first word of "nmedit", so it can be a program name with args.
8326 set dummy nmedit; ac_word=$2
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8328 $as_echo_n "checking for $ac_word... " >&6; }
8329 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8330   $as_echo_n "(cached) " >&6
8331 else
8332   if test -n "$ac_ct_NMEDIT"; then
8333   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8334 else
8335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8336 for as_dir in $PATH
8337 do
8338   IFS=$as_save_IFS
8339   test -z "$as_dir" && as_dir=.
8340     for ac_exec_ext in '' $ac_executable_extensions; do
8341   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8342     ac_cv_prog_ac_ct_NMEDIT="nmedit"
8343     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8344     break 2
8345   fi
8346 done
8347   done
8348 IFS=$as_save_IFS
8349
8350 fi
8351 fi
8352 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8353 if test -n "$ac_ct_NMEDIT"; then
8354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8355 $as_echo "$ac_ct_NMEDIT" >&6; }
8356 else
8357   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8358 $as_echo "no" >&6; }
8359 fi
8360
8361   if test "x$ac_ct_NMEDIT" = x; then
8362     NMEDIT=":"
8363   else
8364     case $cross_compiling:$ac_tool_warned in
8365 yes:)
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8367 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8368 ac_tool_warned=yes ;;
8369 esac
8370     NMEDIT=$ac_ct_NMEDIT
8371   fi
8372 else
8373   NMEDIT="$ac_cv_prog_NMEDIT"
8374 fi
8375
8376     if test -n "$ac_tool_prefix"; then
8377   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8378 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8380 $as_echo_n "checking for $ac_word... " >&6; }
8381 if ${ac_cv_prog_LIPO+:} false; then :
8382   $as_echo_n "(cached) " >&6
8383 else
8384   if test -n "$LIPO"; then
8385   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8386 else
8387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8388 for as_dir in $PATH
8389 do
8390   IFS=$as_save_IFS
8391   test -z "$as_dir" && as_dir=.
8392     for ac_exec_ext in '' $ac_executable_extensions; do
8393   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8394     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8396     break 2
8397   fi
8398 done
8399   done
8400 IFS=$as_save_IFS
8401
8402 fi
8403 fi
8404 LIPO=$ac_cv_prog_LIPO
8405 if test -n "$LIPO"; then
8406   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8407 $as_echo "$LIPO" >&6; }
8408 else
8409   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8410 $as_echo "no" >&6; }
8411 fi
8412
8413
8414 fi
8415 if test -z "$ac_cv_prog_LIPO"; then
8416   ac_ct_LIPO=$LIPO
8417   # Extract the first word of "lipo", so it can be a program name with args.
8418 set dummy lipo; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8422   $as_echo_n "(cached) " >&6
8423 else
8424   if test -n "$ac_ct_LIPO"; then
8425   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8426 else
8427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8428 for as_dir in $PATH
8429 do
8430   IFS=$as_save_IFS
8431   test -z "$as_dir" && as_dir=.
8432     for ac_exec_ext in '' $ac_executable_extensions; do
8433   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8434     ac_cv_prog_ac_ct_LIPO="lipo"
8435     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8436     break 2
8437   fi
8438 done
8439   done
8440 IFS=$as_save_IFS
8441
8442 fi
8443 fi
8444 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8445 if test -n "$ac_ct_LIPO"; then
8446   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8447 $as_echo "$ac_ct_LIPO" >&6; }
8448 else
8449   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450 $as_echo "no" >&6; }
8451 fi
8452
8453   if test "x$ac_ct_LIPO" = x; then
8454     LIPO=":"
8455   else
8456     case $cross_compiling:$ac_tool_warned in
8457 yes:)
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8460 ac_tool_warned=yes ;;
8461 esac
8462     LIPO=$ac_ct_LIPO
8463   fi
8464 else
8465   LIPO="$ac_cv_prog_LIPO"
8466 fi
8467
8468     if test -n "$ac_tool_prefix"; then
8469   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8470 set dummy ${ac_tool_prefix}otool; ac_word=$2
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8472 $as_echo_n "checking for $ac_word... " >&6; }
8473 if ${ac_cv_prog_OTOOL+:} false; then :
8474   $as_echo_n "(cached) " >&6
8475 else
8476   if test -n "$OTOOL"; then
8477   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8478 else
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8480 for as_dir in $PATH
8481 do
8482   IFS=$as_save_IFS
8483   test -z "$as_dir" && as_dir=.
8484     for ac_exec_ext in '' $ac_executable_extensions; do
8485   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8486     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8487     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8488     break 2
8489   fi
8490 done
8491   done
8492 IFS=$as_save_IFS
8493
8494 fi
8495 fi
8496 OTOOL=$ac_cv_prog_OTOOL
8497 if test -n "$OTOOL"; then
8498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8499 $as_echo "$OTOOL" >&6; }
8500 else
8501   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8503 fi
8504
8505
8506 fi
8507 if test -z "$ac_cv_prog_OTOOL"; then
8508   ac_ct_OTOOL=$OTOOL
8509   # Extract the first word of "otool", so it can be a program name with args.
8510 set dummy otool; ac_word=$2
8511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8512 $as_echo_n "checking for $ac_word... " >&6; }
8513 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8514   $as_echo_n "(cached) " >&6
8515 else
8516   if test -n "$ac_ct_OTOOL"; then
8517   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8518 else
8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8520 for as_dir in $PATH
8521 do
8522   IFS=$as_save_IFS
8523   test -z "$as_dir" && as_dir=.
8524     for ac_exec_ext in '' $ac_executable_extensions; do
8525   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8526     ac_cv_prog_ac_ct_OTOOL="otool"
8527     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8528     break 2
8529   fi
8530 done
8531   done
8532 IFS=$as_save_IFS
8533
8534 fi
8535 fi
8536 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8537 if test -n "$ac_ct_OTOOL"; then
8538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8539 $as_echo "$ac_ct_OTOOL" >&6; }
8540 else
8541   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8543 fi
8544
8545   if test "x$ac_ct_OTOOL" = x; then
8546     OTOOL=":"
8547   else
8548     case $cross_compiling:$ac_tool_warned in
8549 yes:)
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8552 ac_tool_warned=yes ;;
8553 esac
8554     OTOOL=$ac_ct_OTOOL
8555   fi
8556 else
8557   OTOOL="$ac_cv_prog_OTOOL"
8558 fi
8559
8560     if test -n "$ac_tool_prefix"; then
8561   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8562 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8564 $as_echo_n "checking for $ac_word... " >&6; }
8565 if ${ac_cv_prog_OTOOL64+:} false; then :
8566   $as_echo_n "(cached) " >&6
8567 else
8568   if test -n "$OTOOL64"; then
8569   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8570 else
8571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 for as_dir in $PATH
8573 do
8574   IFS=$as_save_IFS
8575   test -z "$as_dir" && as_dir=.
8576     for ac_exec_ext in '' $ac_executable_extensions; do
8577   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8578     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8579     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8580     break 2
8581   fi
8582 done
8583   done
8584 IFS=$as_save_IFS
8585
8586 fi
8587 fi
8588 OTOOL64=$ac_cv_prog_OTOOL64
8589 if test -n "$OTOOL64"; then
8590   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8591 $as_echo "$OTOOL64" >&6; }
8592 else
8593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8594 $as_echo "no" >&6; }
8595 fi
8596
8597
8598 fi
8599 if test -z "$ac_cv_prog_OTOOL64"; then
8600   ac_ct_OTOOL64=$OTOOL64
8601   # Extract the first word of "otool64", so it can be a program name with args.
8602 set dummy otool64; ac_word=$2
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8604 $as_echo_n "checking for $ac_word... " >&6; }
8605 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8606   $as_echo_n "(cached) " >&6
8607 else
8608   if test -n "$ac_ct_OTOOL64"; then
8609   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8610 else
8611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8612 for as_dir in $PATH
8613 do
8614   IFS=$as_save_IFS
8615   test -z "$as_dir" && as_dir=.
8616     for ac_exec_ext in '' $ac_executable_extensions; do
8617   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8618     ac_cv_prog_ac_ct_OTOOL64="otool64"
8619     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8620     break 2
8621   fi
8622 done
8623   done
8624 IFS=$as_save_IFS
8625
8626 fi
8627 fi
8628 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8629 if test -n "$ac_ct_OTOOL64"; then
8630   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8631 $as_echo "$ac_ct_OTOOL64" >&6; }
8632 else
8633   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8634 $as_echo "no" >&6; }
8635 fi
8636
8637   if test "x$ac_ct_OTOOL64" = x; then
8638     OTOOL64=":"
8639   else
8640     case $cross_compiling:$ac_tool_warned in
8641 yes:)
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8644 ac_tool_warned=yes ;;
8645 esac
8646     OTOOL64=$ac_ct_OTOOL64
8647   fi
8648 else
8649   OTOOL64="$ac_cv_prog_OTOOL64"
8650 fi
8651
8652
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     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8679 $as_echo_n "checking for -single_module linker flag... " >&6; }
8680 if ${lt_cv_apple_cc_single_mod+:} false; then :
8681   $as_echo_n "(cached) " >&6
8682 else
8683   lt_cv_apple_cc_single_mod=no
8684       if test -z "$LT_MULTI_MODULE"; then
8685         # By default we will add the -single_module flag. You can override
8686         # by either setting the environment variable LT_MULTI_MODULE
8687         # non-empty at configure time, or by adding -multi_module to the
8688         # link flags.
8689         rm -rf libconftest.dylib*
8690         echo "int foo(void){return 1;}" > conftest.c
8691         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8692 -dynamiclib -Wl,-single_module conftest.c" >&5
8693         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8694           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8695         _lt_result=$?
8696         # If there is a non-empty error log, and "single_module"
8697         # appears in it, assume the flag caused a linker warning
8698         if test -s conftest.err && $GREP single_module conftest.err; then
8699           cat conftest.err >&5
8700         # Otherwise, if the output was created with a 0 exit code from
8701         # the compiler, it worked.
8702         elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
8703           lt_cv_apple_cc_single_mod=yes
8704         else
8705           cat conftest.err >&5
8706         fi
8707         rm -rf libconftest.dylib*
8708         rm -f conftest.*
8709       fi
8710 fi
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8712 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8713
8714     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8715 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8716 if ${lt_cv_ld_exported_symbols_list+:} false; then :
8717   $as_echo_n "(cached) " >&6
8718 else
8719   lt_cv_ld_exported_symbols_list=no
8720       save_LDFLAGS=$LDFLAGS
8721       echo "_main" > conftest.sym
8722       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8723       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8724 /* end confdefs.h.  */
8725
8726 int
8727 main ()
8728 {
8729
8730   ;
8731   return 0;
8732 }
8733 _ACEOF
8734 if ac_fn_c_try_link "$LINENO"; then :
8735   lt_cv_ld_exported_symbols_list=yes
8736 else
8737   lt_cv_ld_exported_symbols_list=no
8738 fi
8739 rm -f core conftest.err conftest.$ac_objext \
8740     conftest$ac_exeext conftest.$ac_ext
8741         LDFLAGS=$save_LDFLAGS
8742
8743 fi
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8745 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8746
8747     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8748 $as_echo_n "checking for -force_load linker flag... " >&6; }
8749 if ${lt_cv_ld_force_load+:} false; then :
8750   $as_echo_n "(cached) " >&6
8751 else
8752   lt_cv_ld_force_load=no
8753       cat > conftest.c << _LT_EOF
8754 int forced_loaded() { return 2;}
8755 _LT_EOF
8756       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8757       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8758       echo "$AR cru libconftest.a conftest.o" >&5
8759       $AR cru libconftest.a conftest.o 2>&5
8760       echo "$RANLIB libconftest.a" >&5
8761       $RANLIB libconftest.a 2>&5
8762       cat > conftest.c << _LT_EOF
8763 int main() { return 0;}
8764 _LT_EOF
8765       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8766       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8767       _lt_result=$?
8768       if test -s conftest.err && $GREP force_load conftest.err; then
8769         cat conftest.err >&5
8770       elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
8771         lt_cv_ld_force_load=yes
8772       else
8773         cat conftest.err >&5
8774       fi
8775         rm -f conftest.err libconftest.a conftest conftest.c
8776         rm -rf conftest.dSYM
8777
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8780 $as_echo "$lt_cv_ld_force_load" >&6; }
8781     case $host_os in
8782     rhapsody* | darwin1.[012])
8783       _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
8784     darwin1.*)
8785       _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8786     darwin*) # darwin 5.x on
8787       # if running on 10.5 or later, the deployment target defaults
8788       # to the OS version, if on x86, and 10.4, the deployment
8789       # target defaults to 10.4. Don't you love it?
8790       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8791         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8792           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8793         10.[012][,.]*)
8794           _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
8795         10.*)
8796           _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
8797       esac
8798     ;;
8799   esac
8800     if test yes = "$lt_cv_apple_cc_single_mod"; then
8801       _lt_dar_single_mod='$single_module'
8802     fi
8803     if test yes = "$lt_cv_ld_exported_symbols_list"; then
8804       _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
8805     else
8806       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
8807     fi
8808     if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
8809       _lt_dsymutil='~$DSYMUTIL $lib || :'
8810     else
8811       _lt_dsymutil=
8812     fi
8813     ;;
8814   esac
8815
8816 # func_munge_path_list VARIABLE PATH
8817 # -----------------------------------
8818 # VARIABLE is name of variable containing _space_ separated list of
8819 # directories to be munged by the contents of PATH, which is string
8820 # having a format:
8821 # "DIR[:DIR]:"
8822 #       string "DIR[ DIR]" will be prepended to VARIABLE
8823 # ":DIR[:DIR]"
8824 #       string "DIR[ DIR]" will be appended to VARIABLE
8825 # "DIRP[:DIRP]::[DIRA:]DIRA"
8826 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
8827 #       "DIRA[ DIRA]" will be appended to VARIABLE
8828 # "DIR[:DIR]"
8829 #       VARIABLE will be replaced by "DIR[ DIR]"
8830 func_munge_path_list ()
8831 {
8832     case x$2 in
8833     x)
8834         ;;
8835     *:)
8836         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
8837         ;;
8838     x:*)
8839         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
8840         ;;
8841     *::*)
8842         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
8843         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
8844         ;;
8845     *)
8846         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
8847         ;;
8848     esac
8849 }
8850
8851 for ac_header in dlfcn.h
8852 do :
8853   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8854 "
8855 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8856   cat >>confdefs.h <<_ACEOF
8857 #define HAVE_DLFCN_H 1
8858 _ACEOF
8859
8860 fi
8861
8862 done
8863
8864
8865
8866
8867
8868 # Set options
8869 # Check whether --enable-static was given.
8870 if test "${enable_static+set}" = set; then :
8871   enableval=$enable_static; p=${PACKAGE-default}
8872     case $enableval in
8873     yes) enable_static=yes ;;
8874     no) enable_static=no ;;
8875     *)
8876      enable_static=no
8877       # Look at the argument we got.  We use all the common list separators.
8878       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
8879       for pkg in $enableval; do
8880         IFS=$lt_save_ifs
8881         if test "X$pkg" = "X$p"; then
8882           enable_static=yes
8883         fi
8884       done
8885       IFS=$lt_save_ifs
8886       ;;
8887     esac
8888 else
8889   enable_static=no
8890 fi
8891
8892
8893
8894
8895
8896
8897
8898 enable_win32_dll=yes
8899
8900 case $host in
8901 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8902   if test -n "$ac_tool_prefix"; then
8903   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8904 set dummy ${ac_tool_prefix}as; ac_word=$2
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8906 $as_echo_n "checking for $ac_word... " >&6; }
8907 if ${ac_cv_prog_AS+:} false; then :
8908   $as_echo_n "(cached) " >&6
8909 else
8910   if test -n "$AS"; then
8911   ac_cv_prog_AS="$AS" # Let the user override the test.
8912 else
8913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 for as_dir in $PATH
8915 do
8916   IFS=$as_save_IFS
8917   test -z "$as_dir" && as_dir=.
8918     for ac_exec_ext in '' $ac_executable_extensions; do
8919   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8920     ac_cv_prog_AS="${ac_tool_prefix}as"
8921     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8922     break 2
8923   fi
8924 done
8925   done
8926 IFS=$as_save_IFS
8927
8928 fi
8929 fi
8930 AS=$ac_cv_prog_AS
8931 if test -n "$AS"; then
8932   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8933 $as_echo "$AS" >&6; }
8934 else
8935   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8936 $as_echo "no" >&6; }
8937 fi
8938
8939
8940 fi
8941 if test -z "$ac_cv_prog_AS"; then
8942   ac_ct_AS=$AS
8943   # Extract the first word of "as", so it can be a program name with args.
8944 set dummy as; ac_word=$2
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8946 $as_echo_n "checking for $ac_word... " >&6; }
8947 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8948   $as_echo_n "(cached) " >&6
8949 else
8950   if test -n "$ac_ct_AS"; then
8951   ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8952 else
8953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8954 for as_dir in $PATH
8955 do
8956   IFS=$as_save_IFS
8957   test -z "$as_dir" && as_dir=.
8958     for ac_exec_ext in '' $ac_executable_extensions; do
8959   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8960     ac_cv_prog_ac_ct_AS="as"
8961     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8962     break 2
8963   fi
8964 done
8965   done
8966 IFS=$as_save_IFS
8967
8968 fi
8969 fi
8970 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8971 if test -n "$ac_ct_AS"; then
8972   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8973 $as_echo "$ac_ct_AS" >&6; }
8974 else
8975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 $as_echo "no" >&6; }
8977 fi
8978
8979   if test "x$ac_ct_AS" = x; then
8980     AS="false"
8981   else
8982     case $cross_compiling:$ac_tool_warned in
8983 yes:)
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8986 ac_tool_warned=yes ;;
8987 esac
8988     AS=$ac_ct_AS
8989   fi
8990 else
8991   AS="$ac_cv_prog_AS"
8992 fi
8993
8994   if test -n "$ac_tool_prefix"; then
8995   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8996 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8998 $as_echo_n "checking for $ac_word... " >&6; }
8999 if ${ac_cv_prog_DLLTOOL+:} false; then :
9000   $as_echo_n "(cached) " >&6
9001 else
9002   if test -n "$DLLTOOL"; then
9003   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9004 else
9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008   IFS=$as_save_IFS
9009   test -z "$as_dir" && as_dir=.
9010     for ac_exec_ext in '' $ac_executable_extensions; do
9011   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9012     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9013     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9014     break 2
9015   fi
9016 done
9017   done
9018 IFS=$as_save_IFS
9019
9020 fi
9021 fi
9022 DLLTOOL=$ac_cv_prog_DLLTOOL
9023 if test -n "$DLLTOOL"; then
9024   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9025 $as_echo "$DLLTOOL" >&6; }
9026 else
9027   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9028 $as_echo "no" >&6; }
9029 fi
9030
9031
9032 fi
9033 if test -z "$ac_cv_prog_DLLTOOL"; then
9034   ac_ct_DLLTOOL=$DLLTOOL
9035   # Extract the first word of "dlltool", so it can be a program name with args.
9036 set dummy dlltool; ac_word=$2
9037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038 $as_echo_n "checking for $ac_word... " >&6; }
9039 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9040   $as_echo_n "(cached) " >&6
9041 else
9042   if test -n "$ac_ct_DLLTOOL"; then
9043   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9044 else
9045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9046 for as_dir in $PATH
9047 do
9048   IFS=$as_save_IFS
9049   test -z "$as_dir" && as_dir=.
9050     for ac_exec_ext in '' $ac_executable_extensions; do
9051   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9052     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9053     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9054     break 2
9055   fi
9056 done
9057   done
9058 IFS=$as_save_IFS
9059
9060 fi
9061 fi
9062 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9063 if test -n "$ac_ct_DLLTOOL"; then
9064   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9065 $as_echo "$ac_ct_DLLTOOL" >&6; }
9066 else
9067   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9068 $as_echo "no" >&6; }
9069 fi
9070
9071   if test "x$ac_ct_DLLTOOL" = x; then
9072     DLLTOOL="false"
9073   else
9074     case $cross_compiling:$ac_tool_warned in
9075 yes:)
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9077 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9078 ac_tool_warned=yes ;;
9079 esac
9080     DLLTOOL=$ac_ct_DLLTOOL
9081   fi
9082 else
9083   DLLTOOL="$ac_cv_prog_DLLTOOL"
9084 fi
9085
9086   if test -n "$ac_tool_prefix"; then
9087   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9088 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_prog_OBJDUMP+:} false; then :
9092   $as_echo_n "(cached) " >&6
9093 else
9094   if test -n "$OBJDUMP"; then
9095   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9096 else
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9098 for as_dir in $PATH
9099 do
9100   IFS=$as_save_IFS
9101   test -z "$as_dir" && as_dir=.
9102     for ac_exec_ext in '' $ac_executable_extensions; do
9103   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9105     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9106     break 2
9107   fi
9108 done
9109   done
9110 IFS=$as_save_IFS
9111
9112 fi
9113 fi
9114 OBJDUMP=$ac_cv_prog_OBJDUMP
9115 if test -n "$OBJDUMP"; then
9116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9117 $as_echo "$OBJDUMP" >&6; }
9118 else
9119   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9121 fi
9122
9123
9124 fi
9125 if test -z "$ac_cv_prog_OBJDUMP"; then
9126   ac_ct_OBJDUMP=$OBJDUMP
9127   # Extract the first word of "objdump", so it can be a program name with args.
9128 set dummy objdump; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9132   $as_echo_n "(cached) " >&6
9133 else
9134   if test -n "$ac_ct_OBJDUMP"; then
9135   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9136 else
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9138 for as_dir in $PATH
9139 do
9140   IFS=$as_save_IFS
9141   test -z "$as_dir" && as_dir=.
9142     for ac_exec_ext in '' $ac_executable_extensions; do
9143   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144     ac_cv_prog_ac_ct_OBJDUMP="objdump"
9145     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9146     break 2
9147   fi
9148 done
9149   done
9150 IFS=$as_save_IFS
9151
9152 fi
9153 fi
9154 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9155 if test -n "$ac_ct_OBJDUMP"; then
9156   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9157 $as_echo "$ac_ct_OBJDUMP" >&6; }
9158 else
9159   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9161 fi
9162
9163   if test "x$ac_ct_OBJDUMP" = x; then
9164     OBJDUMP="false"
9165   else
9166     case $cross_compiling:$ac_tool_warned in
9167 yes:)
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170 ac_tool_warned=yes ;;
9171 esac
9172     OBJDUMP=$ac_ct_OBJDUMP
9173   fi
9174 else
9175   OBJDUMP="$ac_cv_prog_OBJDUMP"
9176 fi
9177
9178   ;;
9179 esac
9180
9181 test -z "$AS" && AS=as
9182
9183
9184
9185
9186
9187 test -z "$DLLTOOL" && DLLTOOL=dlltool
9188
9189
9190
9191
9192
9193 test -z "$OBJDUMP" && OBJDUMP=objdump
9194
9195
9196
9197
9198
9199
9200
9201         enable_dlopen=no
9202
9203
9204
9205             # Check whether --enable-shared was given.
9206 if test "${enable_shared+set}" = set; then :
9207   enableval=$enable_shared; p=${PACKAGE-default}
9208     case $enableval in
9209     yes) enable_shared=yes ;;
9210     no) enable_shared=no ;;
9211     *)
9212       enable_shared=no
9213       # Look at the argument we got.  We use all the common list separators.
9214       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9215       for pkg in $enableval; do
9216         IFS=$lt_save_ifs
9217         if test "X$pkg" = "X$p"; then
9218           enable_shared=yes
9219         fi
9220       done
9221       IFS=$lt_save_ifs
9222       ;;
9223     esac
9224 else
9225   enable_shared=yes
9226 fi
9227
9228
9229
9230
9231
9232
9233
9234
9235
9236
9237
9238 # Check whether --with-pic was given.
9239 if test "${with_pic+set}" = set; then :
9240   withval=$with_pic; lt_p=${PACKAGE-default}
9241     case $withval in
9242     yes|no) pic_mode=$withval ;;
9243     *)
9244       pic_mode=default
9245       # Look at the argument we got.  We use all the common list separators.
9246       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9247       for lt_pkg in $withval; do
9248         IFS=$lt_save_ifs
9249         if test "X$lt_pkg" = "X$lt_p"; then
9250           pic_mode=yes
9251         fi
9252       done
9253       IFS=$lt_save_ifs
9254       ;;
9255     esac
9256 else
9257   pic_mode=default
9258 fi
9259
9260
9261
9262
9263
9264
9265
9266
9267   # Check whether --enable-fast-install was given.
9268 if test "${enable_fast_install+set}" = set; then :
9269   enableval=$enable_fast_install; p=${PACKAGE-default}
9270     case $enableval in
9271     yes) enable_fast_install=yes ;;
9272     no) enable_fast_install=no ;;
9273     *)
9274       enable_fast_install=no
9275       # Look at the argument we got.  We use all the common list separators.
9276       lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
9277       for pkg in $enableval; do
9278         IFS=$lt_save_ifs
9279         if test "X$pkg" = "X$p"; then
9280           enable_fast_install=yes
9281         fi
9282       done
9283       IFS=$lt_save_ifs
9284       ;;
9285     esac
9286 else
9287   enable_fast_install=yes
9288 fi
9289
9290
9291
9292
9293
9294
9295
9296
9297   shared_archive_member_spec=
9298 case $host,$enable_shared in
9299 power*-*-aix[5-9]*,yes)
9300   { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
9301 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
9302
9303 # Check whether --with-aix-soname was given.
9304 if test "${with_aix_soname+set}" = set; then :
9305   withval=$with_aix_soname; case $withval in
9306     aix|svr4|both)
9307       ;;
9308     *)
9309       as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
9310       ;;
9311     esac
9312     lt_cv_with_aix_soname=$with_aix_soname
9313 else
9314   if ${lt_cv_with_aix_soname+:} false; then :
9315   $as_echo_n "(cached) " >&6
9316 else
9317   lt_cv_with_aix_soname=aix
9318 fi
9319
9320     with_aix_soname=$lt_cv_with_aix_soname
9321 fi
9322
9323   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
9324 $as_echo "$with_aix_soname" >&6; }
9325   if test aix != "$with_aix_soname"; then
9326     # For the AIX way of multilib, we name the shared archive member
9327     # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
9328     # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
9329     # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
9330     # the AIX toolchain works better with OBJECT_MODE set (default 32).
9331     if test 64 = "${OBJECT_MODE-32}"; then
9332       shared_archive_member_spec=shr_64
9333     else
9334       shared_archive_member_spec=shr
9335     fi
9336   fi
9337   ;;
9338 *)
9339   with_aix_soname=aix
9340   ;;
9341 esac
9342
9343
9344
9345
9346
9347
9348
9349
9350
9351
9352 # This can be used to rebuild libtool when needed
9353 LIBTOOL_DEPS=$ltmain
9354
9355 # Always use our own libtool.
9356 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9357
9358
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 test -z "$LN_S" && LN_S="ln -s"
9388
9389
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402 if test -n "${ZSH_VERSION+set}"; then
9403    setopt NO_GLOB_SUBST
9404 fi
9405
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9407 $as_echo_n "checking for objdir... " >&6; }
9408 if ${lt_cv_objdir+:} false; then :
9409   $as_echo_n "(cached) " >&6
9410 else
9411   rm -f .libs 2>/dev/null
9412 mkdir .libs 2>/dev/null
9413 if test -d .libs; then
9414   lt_cv_objdir=.libs
9415 else
9416   # MS-DOS does not allow filenames that begin with a dot.
9417   lt_cv_objdir=_libs
9418 fi
9419 rmdir .libs 2>/dev/null
9420 fi
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9422 $as_echo "$lt_cv_objdir" >&6; }
9423 objdir=$lt_cv_objdir
9424
9425
9426
9427
9428
9429 cat >>confdefs.h <<_ACEOF
9430 #define LT_OBJDIR "$lt_cv_objdir/"
9431 _ACEOF
9432
9433
9434
9435
9436 case $host_os in
9437 aix3*)
9438   # AIX sometimes has problems with the GCC collect2 program.  For some
9439   # reason, if we set the COLLECT_NAMES environment variable, the problems
9440   # vanish in a puff of smoke.
9441   if test set != "${COLLECT_NAMES+set}"; then
9442     COLLECT_NAMES=
9443     export COLLECT_NAMES
9444   fi
9445   ;;
9446 esac
9447
9448 # Global variables:
9449 ofile=libtool
9450 can_build_shared=yes
9451
9452 # All known linkers require a '.a' archive for static linking (except MSVC,
9453 # which needs '.lib').
9454 libext=a
9455
9456 with_gnu_ld=$lt_cv_prog_gnu_ld
9457
9458 old_CC=$CC
9459 old_CFLAGS=$CFLAGS
9460
9461 # Set sane defaults for various variables
9462 test -z "$CC" && CC=cc
9463 test -z "$LTCC" && LTCC=$CC
9464 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9465 test -z "$LD" && LD=ld
9466 test -z "$ac_objext" && ac_objext=o
9467
9468 func_cc_basename $compiler
9469 cc_basename=$func_cc_basename_result
9470
9471
9472 # Only perform the check for file, if the check method requires it
9473 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9474 case $deplibs_check_method in
9475 file_magic*)
9476   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9477     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9478 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9479 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9480   $as_echo_n "(cached) " >&6
9481 else
9482   case $MAGIC_CMD in
9483 [\\/*] |  ?:[\\/]*)
9484   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9485   ;;
9486 *)
9487   lt_save_MAGIC_CMD=$MAGIC_CMD
9488   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9489   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9490   for ac_dir in $ac_dummy; do
9491     IFS=$lt_save_ifs
9492     test -z "$ac_dir" && ac_dir=.
9493     if test -f "$ac_dir/${ac_tool_prefix}file"; then
9494       lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
9495       if test -n "$file_magic_test_file"; then
9496         case $deplibs_check_method in
9497         "file_magic "*)
9498           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9499           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9500           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9501             $EGREP "$file_magic_regex" > /dev/null; then
9502             :
9503           else
9504             cat <<_LT_EOF 1>&2
9505
9506 *** Warning: the command libtool uses to detect shared libraries,
9507 *** $file_magic_cmd, produces output that libtool cannot recognize.
9508 *** The result is that libtool may fail to recognize shared libraries
9509 *** as such.  This will affect the creation of libtool libraries that
9510 *** depend on shared libraries, but programs linked with such libtool
9511 *** libraries will work regardless of this problem.  Nevertheless, you
9512 *** may want to report the problem to your system manager and/or to
9513 *** bug-libtool@gnu.org
9514
9515 _LT_EOF
9516           fi ;;
9517         esac
9518       fi
9519       break
9520     fi
9521   done
9522   IFS=$lt_save_ifs
9523   MAGIC_CMD=$lt_save_MAGIC_CMD
9524   ;;
9525 esac
9526 fi
9527
9528 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9529 if test -n "$MAGIC_CMD"; then
9530   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9531 $as_echo "$MAGIC_CMD" >&6; }
9532 else
9533   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9534 $as_echo "no" >&6; }
9535 fi
9536
9537
9538
9539
9540
9541 if test -z "$lt_cv_path_MAGIC_CMD"; then
9542   if test -n "$ac_tool_prefix"; then
9543     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9544 $as_echo_n "checking for file... " >&6; }
9545 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9546   $as_echo_n "(cached) " >&6
9547 else
9548   case $MAGIC_CMD in
9549 [\\/*] |  ?:[\\/]*)
9550   lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
9551   ;;
9552 *)
9553   lt_save_MAGIC_CMD=$MAGIC_CMD
9554   lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
9555   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9556   for ac_dir in $ac_dummy; do
9557     IFS=$lt_save_ifs
9558     test -z "$ac_dir" && ac_dir=.
9559     if test -f "$ac_dir/file"; then
9560       lt_cv_path_MAGIC_CMD=$ac_dir/"file"
9561       if test -n "$file_magic_test_file"; then
9562         case $deplibs_check_method in
9563         "file_magic "*)
9564           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9565           MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9566           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9567             $EGREP "$file_magic_regex" > /dev/null; then
9568             :
9569           else
9570             cat <<_LT_EOF 1>&2
9571
9572 *** Warning: the command libtool uses to detect shared libraries,
9573 *** $file_magic_cmd, produces output that libtool cannot recognize.
9574 *** The result is that libtool may fail to recognize shared libraries
9575 *** as such.  This will affect the creation of libtool libraries that
9576 *** depend on shared libraries, but programs linked with such libtool
9577 *** libraries will work regardless of this problem.  Nevertheless, you
9578 *** may want to report the problem to your system manager and/or to
9579 *** bug-libtool@gnu.org
9580
9581 _LT_EOF
9582           fi ;;
9583         esac
9584       fi
9585       break
9586     fi
9587   done
9588   IFS=$lt_save_ifs
9589   MAGIC_CMD=$lt_save_MAGIC_CMD
9590   ;;
9591 esac
9592 fi
9593
9594 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
9595 if test -n "$MAGIC_CMD"; then
9596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9597 $as_echo "$MAGIC_CMD" >&6; }
9598 else
9599   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9600 $as_echo "no" >&6; }
9601 fi
9602
9603
9604   else
9605     MAGIC_CMD=:
9606   fi
9607 fi
9608
9609   fi
9610   ;;
9611 esac
9612
9613 # Use C for the default configuration in the libtool script
9614
9615 lt_save_CC=$CC
9616 ac_ext=c
9617 ac_cpp='$CPP $CPPFLAGS'
9618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9621
9622
9623 # Source file extension for C test sources.
9624 ac_ext=c
9625
9626 # Object file extension for compiled C test sources.
9627 objext=o
9628 objext=$objext
9629
9630 # Code to be used in simple compile tests
9631 lt_simple_compile_test_code="int some_variable = 0;"
9632
9633 # Code to be used in simple link tests
9634 lt_simple_link_test_code='int main(){return(0);}'
9635
9636
9637
9638
9639
9640
9641
9642 # If no C compiler was specified, use CC.
9643 LTCC=${LTCC-"$CC"}
9644
9645 # If no C compiler flags were specified, use CFLAGS.
9646 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9647
9648 # Allow CC to be a program name with arguments.
9649 compiler=$CC
9650
9651 # Save the default compiler, since it gets overwritten when the other
9652 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9653 compiler_DEFAULT=$CC
9654
9655 # save warnings/boilerplate of simple test code
9656 ac_outfile=conftest.$ac_objext
9657 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9658 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9659 _lt_compiler_boilerplate=`cat conftest.err`
9660 $RM conftest*
9661
9662 ac_outfile=conftest.$ac_objext
9663 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9664 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9665 _lt_linker_boilerplate=`cat conftest.err`
9666 $RM -r conftest*
9667
9668
9669 ## CAVEAT EMPTOR:
9670 ## There is no encapsulation within the following macros, do not change
9671 ## the running order or otherwise move them around unless you know exactly
9672 ## what you are doing...
9673 if test -n "$compiler"; then
9674
9675 lt_prog_compiler_no_builtin_flag=
9676
9677 if test yes = "$GCC"; then
9678   case $cc_basename in
9679   nvcc*)
9680     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9681   *)
9682     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9683   esac
9684
9685   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9686 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9687 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9688   $as_echo_n "(cached) " >&6
9689 else
9690   lt_cv_prog_compiler_rtti_exceptions=no
9691    ac_outfile=conftest.$ac_objext
9692    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9693    lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
9694    # Insert the option either (1) after the last *FLAGS variable, or
9695    # (2) before a word containing "conftest.", or (3) at the end.
9696    # Note that $ac_compile itself does not contain backslashes and begins
9697    # with a dollar sign (not a hyphen), so the echo should work correctly.
9698    # The option is referenced via a variable to avoid confusing sed.
9699    lt_compile=`echo "$ac_compile" | $SED \
9700    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9701    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9702    -e 's:$: $lt_compiler_flag:'`
9703    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9704    (eval "$lt_compile" 2>conftest.err)
9705    ac_status=$?
9706    cat conftest.err >&5
9707    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9708    if (exit $ac_status) && test -s "$ac_outfile"; then
9709      # The compiler can only warn and ignore the option if not recognized
9710      # So say no if there are warnings other than the usual output.
9711      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9712      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9713      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9714        lt_cv_prog_compiler_rtti_exceptions=yes
9715      fi
9716    fi
9717    $RM conftest*
9718
9719 fi
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9721 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9722
9723 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
9724     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9725 else
9726     :
9727 fi
9728
9729 fi
9730
9731
9732
9733
9734
9735
9736   lt_prog_compiler_wl=
9737 lt_prog_compiler_pic=
9738 lt_prog_compiler_static=
9739
9740
9741   if test yes = "$GCC"; then
9742     lt_prog_compiler_wl='-Wl,'
9743     lt_prog_compiler_static='-static'
9744
9745     case $host_os in
9746       aix*)
9747       # All AIX code is PIC.
9748       if test ia64 = "$host_cpu"; then
9749         # AIX 5 now supports IA64 processor
9750         lt_prog_compiler_static='-Bstatic'
9751       fi
9752       lt_prog_compiler_pic='-fPIC'
9753       ;;
9754
9755     amigaos*)
9756       case $host_cpu in
9757       powerpc)
9758             # see comment about AmigaOS4 .so support
9759             lt_prog_compiler_pic='-fPIC'
9760         ;;
9761       m68k)
9762             # FIXME: we need at least 68020 code to build shared libraries, but
9763             # adding the '-m68020' flag to GCC prevents building anything better,
9764             # like '-m68040'.
9765             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9766         ;;
9767       esac
9768       ;;
9769
9770     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9771       # PIC is the default for these OSes.
9772       ;;
9773
9774     mingw* | cygwin* | pw32* | os2* | cegcc*)
9775       # This hack is so that the source file can tell whether it is being
9776       # built for inclusion in a dll (and should export symbols for example).
9777       # Although the cygwin gcc ignores -fPIC, still need this for old-style
9778       # (--disable-auto-import) libraries
9779       lt_prog_compiler_pic='-DDLL_EXPORT'
9780       case $host_os in
9781       os2*)
9782         lt_prog_compiler_static='$wl-static'
9783         ;;
9784       esac
9785       ;;
9786
9787     darwin* | rhapsody*)
9788       # PIC is the default on this platform
9789       # Common symbols not allowed in MH_DYLIB files
9790       lt_prog_compiler_pic='-fno-common'
9791       ;;
9792
9793     haiku*)
9794       # PIC is the default for Haiku.
9795       # The "-static" flag exists, but is broken.
9796       lt_prog_compiler_static=
9797       ;;
9798
9799     hpux*)
9800       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9801       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
9802       # sets the default TLS model and affects inlining.
9803       case $host_cpu in
9804       hppa*64*)
9805         # +Z the default
9806         ;;
9807       *)
9808         lt_prog_compiler_pic='-fPIC'
9809         ;;
9810       esac
9811       ;;
9812
9813     interix[3-9]*)
9814       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9815       # Instead, we relocate shared libraries at runtime.
9816       ;;
9817
9818     msdosdjgpp*)
9819       # Just because we use GCC doesn't mean we suddenly get shared libraries
9820       # on systems that don't support them.
9821       lt_prog_compiler_can_build_shared=no
9822       enable_shared=no
9823       ;;
9824
9825     *nto* | *qnx*)
9826       # QNX uses GNU C++, but need to define -shared option too, otherwise
9827       # it will coredump.
9828       lt_prog_compiler_pic='-fPIC -shared'
9829       ;;
9830
9831     sysv4*MP*)
9832       if test -d /usr/nec; then
9833         lt_prog_compiler_pic=-Kconform_pic
9834       fi
9835       ;;
9836
9837     *)
9838       lt_prog_compiler_pic='-fPIC'
9839       ;;
9840     esac
9841
9842     case $cc_basename in
9843     nvcc*) # Cuda Compiler Driver 2.2
9844       lt_prog_compiler_wl='-Xlinker '
9845       if test -n "$lt_prog_compiler_pic"; then
9846         lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9847       fi
9848       ;;
9849     esac
9850   else
9851     # PORTME Check for flag to pass linker flags through the system compiler.
9852     case $host_os in
9853     aix*)
9854       lt_prog_compiler_wl='-Wl,'
9855       if test ia64 = "$host_cpu"; then
9856         # AIX 5 now supports IA64 processor
9857         lt_prog_compiler_static='-Bstatic'
9858       else
9859         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9860       fi
9861       ;;
9862
9863     darwin* | rhapsody*)
9864       # PIC is the default on this platform
9865       # Common symbols not allowed in MH_DYLIB files
9866       lt_prog_compiler_pic='-fno-common'
9867       case $cc_basename in
9868       nagfor*)
9869         # NAG Fortran compiler
9870         lt_prog_compiler_wl='-Wl,-Wl,,'
9871         lt_prog_compiler_pic='-PIC'
9872         lt_prog_compiler_static='-Bstatic'
9873         ;;
9874       esac
9875       ;;
9876
9877     mingw* | cygwin* | pw32* | os2* | cegcc*)
9878       # This hack is so that the source file can tell whether it is being
9879       # built for inclusion in a dll (and should export symbols for example).
9880       lt_prog_compiler_pic='-DDLL_EXPORT'
9881       case $host_os in
9882       os2*)
9883         lt_prog_compiler_static='$wl-static'
9884         ;;
9885       esac
9886       ;;
9887
9888     hpux9* | hpux10* | hpux11*)
9889       lt_prog_compiler_wl='-Wl,'
9890       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9891       # not for PA HP-UX.
9892       case $host_cpu in
9893       hppa*64*|ia64*)
9894         # +Z the default
9895         ;;
9896       *)
9897         lt_prog_compiler_pic='+Z'
9898         ;;
9899       esac
9900       # Is there a better lt_prog_compiler_static that works with the bundled CC?
9901       lt_prog_compiler_static='$wl-a ${wl}archive'
9902       ;;
9903
9904     irix5* | irix6* | nonstopux*)
9905       lt_prog_compiler_wl='-Wl,'
9906       # PIC (with -KPIC) is the default.
9907       lt_prog_compiler_static='-non_shared'
9908       ;;
9909
9910     linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9911       case $cc_basename in
9912       # old Intel for x86_64, which still supported -KPIC.
9913       ecc*)
9914         lt_prog_compiler_wl='-Wl,'
9915         lt_prog_compiler_pic='-KPIC'
9916         lt_prog_compiler_static='-static'
9917         ;;
9918       # icc used to be incompatible with GCC.
9919       # ICC 10 doesn't accept -KPIC any more.
9920       icc* | ifort*)
9921         lt_prog_compiler_wl='-Wl,'
9922         lt_prog_compiler_pic='-fPIC'
9923         lt_prog_compiler_static='-static'
9924         ;;
9925       # Lahey Fortran 8.1.
9926       lf95*)
9927         lt_prog_compiler_wl='-Wl,'
9928         lt_prog_compiler_pic='--shared'
9929         lt_prog_compiler_static='--static'
9930         ;;
9931       nagfor*)
9932         # NAG Fortran compiler
9933         lt_prog_compiler_wl='-Wl,-Wl,,'
9934         lt_prog_compiler_pic='-PIC'
9935         lt_prog_compiler_static='-Bstatic'
9936         ;;
9937       tcc*)
9938         # Fabrice Bellard et al's Tiny C Compiler
9939         lt_prog_compiler_wl='-Wl,'
9940         lt_prog_compiler_pic='-fPIC'
9941         lt_prog_compiler_static='-static'
9942         ;;
9943       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9944         # Portland Group compilers (*not* the Pentium gcc compiler,
9945         # which looks to be a dead project)
9946         lt_prog_compiler_wl='-Wl,'
9947         lt_prog_compiler_pic='-fpic'
9948         lt_prog_compiler_static='-Bstatic'
9949         ;;
9950       ccc*)
9951         lt_prog_compiler_wl='-Wl,'
9952         # All Alpha code is PIC.
9953         lt_prog_compiler_static='-non_shared'
9954         ;;
9955       xl* | bgxl* | bgf* | mpixl*)
9956         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9957         lt_prog_compiler_wl='-Wl,'
9958         lt_prog_compiler_pic='-qpic'
9959         lt_prog_compiler_static='-qstaticlink'
9960         ;;
9961       *)
9962         case `$CC -V 2>&1 | sed 5q` in
9963         *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9964           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9965           lt_prog_compiler_pic='-KPIC'
9966           lt_prog_compiler_static='-Bstatic'
9967           lt_prog_compiler_wl=''
9968           ;;
9969         *Sun\ F* | *Sun*Fortran*)
9970           lt_prog_compiler_pic='-KPIC'
9971           lt_prog_compiler_static='-Bstatic'
9972           lt_prog_compiler_wl='-Qoption ld '
9973           ;;
9974         *Sun\ C*)
9975           # Sun C 5.9
9976           lt_prog_compiler_pic='-KPIC'
9977           lt_prog_compiler_static='-Bstatic'
9978           lt_prog_compiler_wl='-Wl,'
9979           ;;
9980         *Intel*\ [CF]*Compiler*)
9981           lt_prog_compiler_wl='-Wl,'
9982           lt_prog_compiler_pic='-fPIC'
9983           lt_prog_compiler_static='-static'
9984           ;;
9985         *Portland\ Group*)
9986           lt_prog_compiler_wl='-Wl,'
9987           lt_prog_compiler_pic='-fpic'
9988           lt_prog_compiler_static='-Bstatic'
9989           ;;
9990         esac
9991         ;;
9992       esac
9993       ;;
9994
9995     newsos6)
9996       lt_prog_compiler_pic='-KPIC'
9997       lt_prog_compiler_static='-Bstatic'
9998       ;;
9999
10000     *nto* | *qnx*)
10001       # QNX uses GNU C++, but need to define -shared option too, otherwise
10002       # it will coredump.
10003       lt_prog_compiler_pic='-fPIC -shared'
10004       ;;
10005
10006     osf3* | osf4* | osf5*)
10007       lt_prog_compiler_wl='-Wl,'
10008       # All OSF/1 code is PIC.
10009       lt_prog_compiler_static='-non_shared'
10010       ;;
10011
10012     rdos*)
10013       lt_prog_compiler_static='-non_shared'
10014       ;;
10015
10016     solaris*)
10017       lt_prog_compiler_pic='-KPIC'
10018       lt_prog_compiler_static='-Bstatic'
10019       case $cc_basename in
10020       f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
10021         lt_prog_compiler_wl='-Qoption ld ';;
10022       *)
10023         lt_prog_compiler_wl='-Wl,';;
10024       esac
10025       ;;
10026
10027     sunos4*)
10028       lt_prog_compiler_wl='-Qoption ld '
10029       lt_prog_compiler_pic='-PIC'
10030       lt_prog_compiler_static='-Bstatic'
10031       ;;
10032
10033     sysv4 | sysv4.2uw2* | sysv4.3*)
10034       lt_prog_compiler_wl='-Wl,'
10035       lt_prog_compiler_pic='-KPIC'
10036       lt_prog_compiler_static='-Bstatic'
10037       ;;
10038
10039     sysv4*MP*)
10040       if test -d /usr/nec; then
10041         lt_prog_compiler_pic='-Kconform_pic'
10042         lt_prog_compiler_static='-Bstatic'
10043       fi
10044       ;;
10045
10046     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
10047       lt_prog_compiler_wl='-Wl,'
10048       lt_prog_compiler_pic='-KPIC'
10049       lt_prog_compiler_static='-Bstatic'
10050       ;;
10051
10052     unicos*)
10053       lt_prog_compiler_wl='-Wl,'
10054       lt_prog_compiler_can_build_shared=no
10055       ;;
10056
10057     uts4*)
10058       lt_prog_compiler_pic='-pic'
10059       lt_prog_compiler_static='-Bstatic'
10060       ;;
10061
10062     *)
10063       lt_prog_compiler_can_build_shared=no
10064       ;;
10065     esac
10066   fi
10067
10068 case $host_os in
10069   # For platforms that do not support PIC, -DPIC is meaningless:
10070   *djgpp*)
10071     lt_prog_compiler_pic=
10072     ;;
10073   *)
10074     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10075     ;;
10076 esac
10077
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
10079 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
10080 if ${lt_cv_prog_compiler_pic+:} false; then :
10081   $as_echo_n "(cached) " >&6
10082 else
10083   lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
10084 fi
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
10086 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
10087 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
10088
10089 #
10090 # Check to make sure the PIC flag actually works.
10091 #
10092 if test -n "$lt_prog_compiler_pic"; then
10093   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10094 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10095 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10096   $as_echo_n "(cached) " >&6
10097 else
10098   lt_cv_prog_compiler_pic_works=no
10099    ac_outfile=conftest.$ac_objext
10100    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10101    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
10102    # Insert the option either (1) after the last *FLAGS variable, or
10103    # (2) before a word containing "conftest.", or (3) at the end.
10104    # Note that $ac_compile itself does not contain backslashes and begins
10105    # with a dollar sign (not a hyphen), so the echo should work correctly.
10106    # The option is referenced via a variable to avoid confusing sed.
10107    lt_compile=`echo "$ac_compile" | $SED \
10108    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10109    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10110    -e 's:$: $lt_compiler_flag:'`
10111    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10112    (eval "$lt_compile" 2>conftest.err)
10113    ac_status=$?
10114    cat conftest.err >&5
10115    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116    if (exit $ac_status) && test -s "$ac_outfile"; then
10117      # The compiler can only warn and ignore the option if not recognized
10118      # So say no if there are warnings other than the usual output.
10119      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10120      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10121      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10122        lt_cv_prog_compiler_pic_works=yes
10123      fi
10124    fi
10125    $RM conftest*
10126
10127 fi
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10129 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10130
10131 if test yes = "$lt_cv_prog_compiler_pic_works"; then
10132     case $lt_prog_compiler_pic in
10133      "" | " "*) ;;
10134      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10135      esac
10136 else
10137     lt_prog_compiler_pic=
10138      lt_prog_compiler_can_build_shared=no
10139 fi
10140
10141 fi
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153 #
10154 # Check to make sure the static flag actually works.
10155 #
10156 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10158 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10159 if ${lt_cv_prog_compiler_static_works+:} false; then :
10160   $as_echo_n "(cached) " >&6
10161 else
10162   lt_cv_prog_compiler_static_works=no
10163    save_LDFLAGS=$LDFLAGS
10164    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10165    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10166    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10167      # The linker can only warn and ignore the option if not recognized
10168      # So say no if there are warnings
10169      if test -s conftest.err; then
10170        # Append any errors to the config.log.
10171        cat conftest.err 1>&5
10172        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10173        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10174        if diff conftest.exp conftest.er2 >/dev/null; then
10175          lt_cv_prog_compiler_static_works=yes
10176        fi
10177      else
10178        lt_cv_prog_compiler_static_works=yes
10179      fi
10180    fi
10181    $RM -r conftest*
10182    LDFLAGS=$save_LDFLAGS
10183
10184 fi
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10186 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10187
10188 if test yes = "$lt_cv_prog_compiler_static_works"; then
10189     :
10190 else
10191     lt_prog_compiler_static=
10192 fi
10193
10194
10195
10196
10197
10198
10199
10200   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10201 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10202 if ${lt_cv_prog_compiler_c_o+:} false; then :
10203   $as_echo_n "(cached) " >&6
10204 else
10205   lt_cv_prog_compiler_c_o=no
10206    $RM -r conftest 2>/dev/null
10207    mkdir conftest
10208    cd conftest
10209    mkdir out
10210    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10211
10212    lt_compiler_flag="-o out/conftest2.$ac_objext"
10213    # Insert the option either (1) after the last *FLAGS variable, or
10214    # (2) before a word containing "conftest.", or (3) at the end.
10215    # Note that $ac_compile itself does not contain backslashes and begins
10216    # with a dollar sign (not a hyphen), so the echo should work correctly.
10217    lt_compile=`echo "$ac_compile" | $SED \
10218    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10219    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10220    -e 's:$: $lt_compiler_flag:'`
10221    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10222    (eval "$lt_compile" 2>out/conftest.err)
10223    ac_status=$?
10224    cat out/conftest.err >&5
10225    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10226    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10227    then
10228      # The compiler can only warn and ignore the option if not recognized
10229      # So say no if there are warnings
10230      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10231      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10232      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10233        lt_cv_prog_compiler_c_o=yes
10234      fi
10235    fi
10236    chmod u+w . 2>&5
10237    $RM conftest*
10238    # SGI C++ compiler will create directory out/ii_files/ for
10239    # template instantiation
10240    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10241    $RM out/* && rmdir out
10242    cd ..
10243    $RM -r conftest
10244    $RM conftest*
10245
10246 fi
10247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10248 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10249
10250
10251
10252
10253
10254
10255   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10256 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10257 if ${lt_cv_prog_compiler_c_o+:} false; then :
10258   $as_echo_n "(cached) " >&6
10259 else
10260   lt_cv_prog_compiler_c_o=no
10261    $RM -r conftest 2>/dev/null
10262    mkdir conftest
10263    cd conftest
10264    mkdir out
10265    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10266
10267    lt_compiler_flag="-o out/conftest2.$ac_objext"
10268    # Insert the option either (1) after the last *FLAGS variable, or
10269    # (2) before a word containing "conftest.", or (3) at the end.
10270    # Note that $ac_compile itself does not contain backslashes and begins
10271    # with a dollar sign (not a hyphen), so the echo should work correctly.
10272    lt_compile=`echo "$ac_compile" | $SED \
10273    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10274    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10275    -e 's:$: $lt_compiler_flag:'`
10276    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10277    (eval "$lt_compile" 2>out/conftest.err)
10278    ac_status=$?
10279    cat out/conftest.err >&5
10280    echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10282    then
10283      # The compiler can only warn and ignore the option if not recognized
10284      # So say no if there are warnings
10285      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10286      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10287      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10288        lt_cv_prog_compiler_c_o=yes
10289      fi
10290    fi
10291    chmod u+w . 2>&5
10292    $RM conftest*
10293    # SGI C++ compiler will create directory out/ii_files/ for
10294    # template instantiation
10295    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10296    $RM out/* && rmdir out
10297    cd ..
10298    $RM -r conftest
10299    $RM conftest*
10300
10301 fi
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10303 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10304
10305
10306
10307
10308 hard_links=nottested
10309 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
10310   # do not overwrite the value of need_locks provided by the user
10311   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10312 $as_echo_n "checking if we can lock with hard links... " >&6; }
10313   hard_links=yes
10314   $RM conftest*
10315   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10316   touch conftest.a
10317   ln conftest.a conftest.b 2>&5 || hard_links=no
10318   ln conftest.a conftest.b 2>/dev/null && hard_links=no
10319   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10320 $as_echo "$hard_links" >&6; }
10321   if test no = "$hard_links"; then
10322     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
10323 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
10324     need_locks=warn
10325   fi
10326 else
10327   need_locks=no
10328 fi
10329
10330
10331
10332
10333
10334
10335   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10336 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10337
10338   runpath_var=
10339   allow_undefined_flag=
10340   always_export_symbols=no
10341   archive_cmds=
10342   archive_expsym_cmds=
10343   compiler_needs_object=no
10344   enable_shared_with_static_runtimes=no
10345   export_dynamic_flag_spec=
10346   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10347   hardcode_automatic=no
10348   hardcode_direct=no
10349   hardcode_direct_absolute=no
10350   hardcode_libdir_flag_spec=
10351   hardcode_libdir_separator=
10352   hardcode_minus_L=no
10353   hardcode_shlibpath_var=unsupported
10354   inherit_rpath=no
10355   link_all_deplibs=unknown
10356   module_cmds=
10357   module_expsym_cmds=
10358   old_archive_from_new_cmds=
10359   old_archive_from_expsyms_cmds=
10360   thread_safe_flag_spec=
10361   whole_archive_flag_spec=
10362   # include_expsyms should be a list of space-separated symbols to be *always*
10363   # included in the symbol list
10364   include_expsyms=
10365   # exclude_expsyms can be an extended regexp of symbols to exclude
10366   # it will be wrapped by ' (' and ')$', so one must not match beginning or
10367   # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
10368   # as well as any symbol that contains 'd'.
10369   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10370   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10371   # platforms (ab)use it in PIC code, but their linkers get confused if
10372   # the symbol is explicitly referenced.  Since portable code cannot
10373   # rely on this symbol name, it's probably fine to never include it in
10374   # preloaded symbol tables.
10375   # Exclude shared library initialization/finalization symbols.
10376   extract_expsyms_cmds=
10377
10378   case $host_os in
10379   cygwin* | mingw* | pw32* | cegcc*)
10380     # FIXME: the MSVC++ port hasn't been tested in a loooong time
10381     # When not using gcc, we currently assume that we are using
10382     # Microsoft Visual C++.
10383     if test yes != "$GCC"; then
10384       with_gnu_ld=no
10385     fi
10386     ;;
10387   interix*)
10388     # we just hope/assume this is gcc and not c89 (= MSVC++)
10389     with_gnu_ld=yes
10390     ;;
10391   openbsd* | bitrig*)
10392     with_gnu_ld=no
10393     ;;
10394   esac
10395
10396   ld_shlibs=yes
10397
10398   # On some targets, GNU ld is compatible enough with the native linker
10399   # that we're better off using the native interface for both.
10400   lt_use_gnu_ld_interface=no
10401   if test yes = "$with_gnu_ld"; then
10402     case $host_os in
10403       aix*)
10404         # The AIX port of GNU ld has always aspired to compatibility
10405         # with the native linker.  However, as the warning in the GNU ld
10406         # block says, versions before 2.19.5* couldn't really create working
10407         # shared libraries, regardless of the interface used.
10408         case `$LD -v 2>&1` in
10409           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10410           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10411           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10412           *)
10413             lt_use_gnu_ld_interface=yes
10414             ;;
10415         esac
10416         ;;
10417       *)
10418         lt_use_gnu_ld_interface=yes
10419         ;;
10420     esac
10421   fi
10422
10423   if test yes = "$lt_use_gnu_ld_interface"; then
10424     # If archive_cmds runs LD, not CC, wlarc should be empty
10425     wlarc='$wl'
10426
10427     # Set some defaults for GNU ld with shared library support. These
10428     # are reset later if shared libraries are not supported. Putting them
10429     # here allows them to be overridden if necessary.
10430     runpath_var=LD_RUN_PATH
10431     hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10432     export_dynamic_flag_spec='$wl--export-dynamic'
10433     # ancient GNU ld didn't support --whole-archive et. al.
10434     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10435       whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
10436     else
10437       whole_archive_flag_spec=
10438     fi
10439     supports_anon_versioning=no
10440     case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
10441       *GNU\ gold*) supports_anon_versioning=yes ;;
10442       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10443       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10444       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10445       *\ 2.11.*) ;; # other 2.11 versions
10446       *) supports_anon_versioning=yes ;;
10447     esac
10448
10449     # See if GNU ld supports shared libraries.
10450     case $host_os in
10451     aix[3-9]*)
10452       # On AIX/PPC, the GNU linker is very broken
10453       if test ia64 != "$host_cpu"; then
10454         ld_shlibs=no
10455         cat <<_LT_EOF 1>&2
10456
10457 *** Warning: the GNU linker, at least up to release 2.19, is reported
10458 *** to be unable to reliably create shared libraries on AIX.
10459 *** Therefore, libtool is disabling shared libraries support.  If you
10460 *** really care for shared libraries, you may want to install binutils
10461 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10462 *** You will then need to restart the configuration process.
10463
10464 _LT_EOF
10465       fi
10466       ;;
10467
10468     amigaos*)
10469       case $host_cpu in
10470       powerpc)
10471             # see comment about AmigaOS4 .so support
10472             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10473             archive_expsym_cmds=''
10474         ;;
10475       m68k)
10476             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)'
10477             hardcode_libdir_flag_spec='-L$libdir'
10478             hardcode_minus_L=yes
10479         ;;
10480       esac
10481       ;;
10482
10483     beos*)
10484       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10485         allow_undefined_flag=unsupported
10486         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10487         # support --undefined.  This deserves some investigation.  FIXME
10488         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10489       else
10490         ld_shlibs=no
10491       fi
10492       ;;
10493
10494     cygwin* | mingw* | pw32* | cegcc*)
10495       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10496       # as there is no search path for DLLs.
10497       hardcode_libdir_flag_spec='-L$libdir'
10498       export_dynamic_flag_spec='$wl--export-all-symbols'
10499       allow_undefined_flag=unsupported
10500       always_export_symbols=no
10501       enable_shared_with_static_runtimes=yes
10502       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'
10503       exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10504
10505       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10506         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10507         # If the export-symbols file already is a .def file, use it as
10508         # is; otherwise, prepend EXPORTS...
10509         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
10510           cp $export_symbols $output_objdir/$soname.def;
10511         else
10512           echo EXPORTS > $output_objdir/$soname.def;
10513           cat $export_symbols >> $output_objdir/$soname.def;
10514         fi~
10515         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10516       else
10517         ld_shlibs=no
10518       fi
10519       ;;
10520
10521     haiku*)
10522       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10523       link_all_deplibs=yes
10524       ;;
10525
10526     os2*)
10527       hardcode_libdir_flag_spec='-L$libdir'
10528       hardcode_minus_L=yes
10529       allow_undefined_flag=unsupported
10530       shrext_cmds=.dll
10531       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10532         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10533         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10534         $ECHO EXPORTS >> $output_objdir/$libname.def~
10535         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
10536         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10537         emximp -o $lib $output_objdir/$libname.def'
10538       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
10539         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
10540         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
10541         $ECHO EXPORTS >> $output_objdir/$libname.def~
10542         prefix_cmds="$SED"~
10543         if test EXPORTS = "`$SED 1q $export_symbols`"; then
10544           prefix_cmds="$prefix_cmds -e 1d";
10545         fi~
10546         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
10547         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
10548         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
10549         emximp -o $lib $output_objdir/$libname.def'
10550       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
10551       enable_shared_with_static_runtimes=yes
10552       ;;
10553
10554     interix[3-9]*)
10555       hardcode_direct=no
10556       hardcode_shlibpath_var=no
10557       hardcode_libdir_flag_spec='$wl-rpath,$libdir'
10558       export_dynamic_flag_spec='$wl-E'
10559       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10560       # Instead, shared libraries are loaded at an image base (0x10000000 by
10561       # default) and relocated if they conflict, which is a slow very memory
10562       # consuming and fragmenting process.  To avoid this, we pick a random,
10563       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10564       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10565       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10566       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'
10567       ;;
10568
10569     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10570       tmp_diet=no
10571       if test linux-dietlibc = "$host_os"; then
10572         case $cc_basename in
10573           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
10574         esac
10575       fi
10576       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10577          && test no = "$tmp_diet"
10578       then
10579         tmp_addflag=' $pic_flag'
10580         tmp_sharedflag='-shared'
10581         case $cc_basename,$host_cpu in
10582         pgcc*)                          # Portland Group C compiler
10583           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'
10584           tmp_addflag=' $pic_flag'
10585           ;;
10586         pgf77* | pgf90* | pgf95* | pgfortran*)
10587                                         # Portland Group f77 and f90 compilers
10588           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'
10589           tmp_addflag=' $pic_flag -Mnomain' ;;
10590         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
10591           tmp_addflag=' -i_dynamic' ;;
10592         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
10593           tmp_addflag=' -i_dynamic -nofor_main' ;;
10594         ifc* | ifort*)                  # Intel Fortran compiler
10595           tmp_addflag=' -nofor_main' ;;
10596         lf95*)                          # Lahey Fortran 8.1
10597           whole_archive_flag_spec=
10598           tmp_sharedflag='--shared' ;;
10599         nagfor*)                        # NAGFOR 5.3
10600           tmp_sharedflag='-Wl,-shared' ;;
10601         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10602           tmp_sharedflag='-qmkshrobj'
10603           tmp_addflag= ;;
10604         nvcc*)  # Cuda Compiler Driver 2.2
10605           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'
10606           compiler_needs_object=yes
10607           ;;
10608         esac
10609         case `$CC -V 2>&1 | sed 5q` in
10610         *Sun\ C*)                       # Sun C 5.9
10611           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'
10612           compiler_needs_object=yes
10613           tmp_sharedflag='-G' ;;
10614         *Sun\ F*)                       # Sun Fortran 8.3
10615           tmp_sharedflag='-G' ;;
10616         esac
10617         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10618
10619         if test yes = "$supports_anon_versioning"; then
10620           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10621             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10622             echo "local: *; };" >> $output_objdir/$libname.ver~
10623             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
10624         fi
10625
10626         case $cc_basename in
10627         tcc*)
10628           export_dynamic_flag_spec='-rdynamic'
10629           ;;
10630         xlf* | bgf* | bgxlf* | mpixlf*)
10631           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10632           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10633           hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10634           archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10635           if test yes = "$supports_anon_versioning"; then
10636             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10637               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10638               echo "local: *; };" >> $output_objdir/$libname.ver~
10639               $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10640           fi
10641           ;;
10642         esac
10643       else
10644         ld_shlibs=no
10645       fi
10646       ;;
10647
10648     netbsd*)
10649       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10650         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10651         wlarc=
10652       else
10653         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10654         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10655       fi
10656       ;;
10657
10658     solaris*)
10659       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10660         ld_shlibs=no
10661         cat <<_LT_EOF 1>&2
10662
10663 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10664 *** create shared libraries on Solaris systems.  Therefore, libtool
10665 *** is disabling shared libraries support.  We urge you to upgrade GNU
10666 *** binutils to release 2.9.1 or newer.  Another option is to modify
10667 *** your PATH or compiler configuration so that the native linker is
10668 *** used, and then restart.
10669
10670 _LT_EOF
10671       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10672         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10673         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10674       else
10675         ld_shlibs=no
10676       fi
10677       ;;
10678
10679     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10680       case `$LD -v 2>&1` in
10681         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10682         ld_shlibs=no
10683         cat <<_LT_EOF 1>&2
10684
10685 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
10686 *** reliably create shared libraries on SCO systems.  Therefore, libtool
10687 *** is disabling shared libraries support.  We urge you to upgrade GNU
10688 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
10689 *** your PATH or compiler configuration so that the native linker is
10690 *** used, and then restart.
10691
10692 _LT_EOF
10693         ;;
10694         *)
10695           # For security reasons, it is highly recommended that you always
10696           # use absolute paths for naming shared libraries, and exclude the
10697           # DT_RUNPATH tag from executables and libraries.  But doing so
10698           # requires that you compile everything twice, which is a pain.
10699           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10700             hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
10701             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10702             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10703           else
10704             ld_shlibs=no
10705           fi
10706         ;;
10707       esac
10708       ;;
10709
10710     sunos4*)
10711       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10712       wlarc=
10713       hardcode_direct=yes
10714       hardcode_shlibpath_var=no
10715       ;;
10716
10717     *)
10718       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10719         archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
10720         archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
10721       else
10722         ld_shlibs=no
10723       fi
10724       ;;
10725     esac
10726
10727     if test no = "$ld_shlibs"; then
10728       runpath_var=
10729       hardcode_libdir_flag_spec=
10730       export_dynamic_flag_spec=
10731       whole_archive_flag_spec=
10732     fi
10733   else
10734     # PORTME fill in a description of your system's linker (not GNU ld)
10735     case $host_os in
10736     aix3*)
10737       allow_undefined_flag=unsupported
10738       always_export_symbols=yes
10739       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'
10740       # Note: this linker hardcodes the directories in LIBPATH if there
10741       # are no directories specified by -L.
10742       hardcode_minus_L=yes
10743       if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
10744         # Neither direct hardcoding nor static linking is supported with a
10745         # broken collect2.
10746         hardcode_direct=unsupported
10747       fi
10748       ;;
10749
10750     aix[4-9]*)
10751       if test ia64 = "$host_cpu"; then
10752         # On IA64, the linker does run time linking by default, so we don't
10753         # have to do anything special.
10754         aix_use_runtimelinking=no
10755         exp_sym_flag='-Bexport'
10756         no_entry_flag=
10757       else
10758         # If we're using GNU nm, then we don't want the "-C" option.
10759         # -C means demangle to GNU nm, but means don't demangle to AIX nm.
10760         # Without the "-l" option, or with the "-B" option, AIX nm treats
10761         # weak defined symbols like other global defined symbols, whereas
10762         # GNU nm marks them as "W".
10763         # While the 'weak' keyword is ignored in the Export File, we need
10764         # it in the Import File for the 'aix-soname' feature, so we have
10765         # to replace the "-B" option with "-P" for AIX nm.
10766         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10767           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'
10768         else
10769           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'
10770         fi
10771         aix_use_runtimelinking=no
10772
10773         # Test if we are trying to use run time linking or normal
10774         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10775         # have runtime linking enabled, and use it for executables.
10776         # For shared libraries, we enable/disable runtime linking
10777         # depending on the kind of the shared library created -
10778         # when "with_aix_soname,aix_use_runtimelinking" is:
10779         # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
10780         # "aix,yes"  lib.so          shared, rtl:yes, for executables
10781         #            lib.a           static archive
10782         # "both,no"  lib.so.V(shr.o) shared, rtl:yes
10783         #            lib.a(lib.so.V) shared, rtl:no,  for executables
10784         # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
10785         #            lib.a(lib.so.V) shared, rtl:no
10786         # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
10787         #            lib.a           static archive
10788         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10789           for ld_flag in $LDFLAGS; do
10790           if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
10791             aix_use_runtimelinking=yes
10792             break
10793           fi
10794           done
10795           if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
10796             # With aix-soname=svr4, we create the lib.so.V shared archives only,
10797             # so we don't have lib.a shared libs to link our executables.
10798             # We have to force runtime linking in this case.
10799             aix_use_runtimelinking=yes
10800             LDFLAGS="$LDFLAGS -Wl,-brtl"
10801           fi
10802           ;;
10803         esac
10804
10805         exp_sym_flag='-bexport'
10806         no_entry_flag='-bnoentry'
10807       fi
10808
10809       # When large executables or shared objects are built, AIX ld can
10810       # have problems creating the table of contents.  If linking a library
10811       # or program results in "error TOC overflow" add -mminimal-toc to
10812       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10813       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10814
10815       archive_cmds=''
10816       hardcode_direct=yes
10817       hardcode_direct_absolute=yes
10818       hardcode_libdir_separator=':'
10819       link_all_deplibs=yes
10820       file_list_spec='$wl-f,'
10821       case $with_aix_soname,$aix_use_runtimelinking in
10822       aix,*) ;; # traditional, no import file
10823       svr4,* | *,yes) # use import file
10824         # The Import File defines what to hardcode.
10825         hardcode_direct=no
10826         hardcode_direct_absolute=no
10827         ;;
10828       esac
10829
10830       if test yes = "$GCC"; then
10831         case $host_os in aix4.[012]|aix4.[012].*)
10832         # We only want to do this on AIX 4.2 and lower, the check
10833         # below for broken collect2 doesn't work under 4.3+
10834           collect2name=`$CC -print-prog-name=collect2`
10835           if test -f "$collect2name" &&
10836            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10837           then
10838           # We have reworked collect2
10839           :
10840           else
10841           # We have old collect2
10842           hardcode_direct=unsupported
10843           # It fails to find uninstalled libraries when the uninstalled
10844           # path is not listed in the libpath.  Setting hardcode_minus_L
10845           # to unsupported forces relinking
10846           hardcode_minus_L=yes
10847           hardcode_libdir_flag_spec='-L$libdir'
10848           hardcode_libdir_separator=
10849           fi
10850           ;;
10851         esac
10852         shared_flag='-shared'
10853         if test yes = "$aix_use_runtimelinking"; then
10854           shared_flag="$shared_flag "'$wl-G'
10855         fi
10856         # Need to ensure runtime linking is disabled for the traditional
10857         # shared library, or the linker may eventually find shared libraries
10858         # /with/ Import File - we do not want to mix them.
10859         shared_flag_aix='-shared'
10860         shared_flag_svr4='-shared $wl-G'
10861       else
10862         # not using gcc
10863         if test ia64 = "$host_cpu"; then
10864         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10865         # chokes on -Wl,-G. The following line is correct:
10866           shared_flag='-G'
10867         else
10868           if test yes = "$aix_use_runtimelinking"; then
10869             shared_flag='$wl-G'
10870           else
10871             shared_flag='$wl-bM:SRE'
10872           fi
10873           shared_flag_aix='$wl-bM:SRE'
10874           shared_flag_svr4='$wl-G'
10875         fi
10876       fi
10877
10878       export_dynamic_flag_spec='$wl-bexpall'
10879       # It seems that -bexpall does not export symbols beginning with
10880       # underscore (_), so it is better to generate a list of symbols to export.
10881       always_export_symbols=yes
10882       if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
10883         # Warning - without using the other runtime loading flags (-brtl),
10884         # -berok will link without error, but may produce a broken library.
10885         allow_undefined_flag='-berok'
10886         # Determine the default libpath from the value encoded in an
10887         # empty executable.
10888         if test set = "${lt_cv_aix_libpath+set}"; then
10889   aix_libpath=$lt_cv_aix_libpath
10890 else
10891   if ${lt_cv_aix_libpath_+:} false; then :
10892   $as_echo_n "(cached) " >&6
10893 else
10894   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10895 /* end confdefs.h.  */
10896
10897 int
10898 main ()
10899 {
10900
10901   ;
10902   return 0;
10903 }
10904 _ACEOF
10905 if ac_fn_c_try_link "$LINENO"; then :
10906
10907   lt_aix_libpath_sed='
10908       /Import File Strings/,/^$/ {
10909           /^0/ {
10910               s/^0  *\([^ ]*\) *$/\1/
10911               p
10912           }
10913       }'
10914   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10915   # Check for a 64-bit object if we didn't find anything.
10916   if test -z "$lt_cv_aix_libpath_"; then
10917     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10918   fi
10919 fi
10920 rm -f core conftest.err conftest.$ac_objext \
10921     conftest$ac_exeext conftest.$ac_ext
10922   if test -z "$lt_cv_aix_libpath_"; then
10923     lt_cv_aix_libpath_=/usr/lib:/lib
10924   fi
10925
10926 fi
10927
10928   aix_libpath=$lt_cv_aix_libpath_
10929 fi
10930
10931         hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10932         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
10933       else
10934         if test ia64 = "$host_cpu"; then
10935           hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
10936           allow_undefined_flag="-z nodefs"
10937           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"
10938         else
10939          # Determine the default libpath from the value encoded in an
10940          # empty executable.
10941          if test set = "${lt_cv_aix_libpath+set}"; then
10942   aix_libpath=$lt_cv_aix_libpath
10943 else
10944   if ${lt_cv_aix_libpath_+:} false; then :
10945   $as_echo_n "(cached) " >&6
10946 else
10947   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10948 /* end confdefs.h.  */
10949
10950 int
10951 main ()
10952 {
10953
10954   ;
10955   return 0;
10956 }
10957 _ACEOF
10958 if ac_fn_c_try_link "$LINENO"; then :
10959
10960   lt_aix_libpath_sed='
10961       /Import File Strings/,/^$/ {
10962           /^0/ {
10963               s/^0  *\([^ ]*\) *$/\1/
10964               p
10965           }
10966       }'
10967   lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10968   # Check for a 64-bit object if we didn't find anything.
10969   if test -z "$lt_cv_aix_libpath_"; then
10970     lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10971   fi
10972 fi
10973 rm -f core conftest.err conftest.$ac_objext \
10974     conftest$ac_exeext conftest.$ac_ext
10975   if test -z "$lt_cv_aix_libpath_"; then
10976     lt_cv_aix_libpath_=/usr/lib:/lib
10977   fi
10978
10979 fi
10980
10981   aix_libpath=$lt_cv_aix_libpath_
10982 fi
10983
10984          hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
10985           # Warning - without using the other run time loading flags,
10986           # -berok will link without error, but may produce a broken library.
10987           no_undefined_flag=' $wl-bernotok'
10988           allow_undefined_flag=' $wl-berok'
10989           if test yes = "$with_gnu_ld"; then
10990             # We only use this code for GNU lds that support --whole-archive.
10991             whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
10992           else
10993             # Exported symbols can be pulled into shared objects from archives
10994             whole_archive_flag_spec='$convenience'
10995           fi
10996           archive_cmds_need_lc=yes
10997           archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
10998           # -brtl affects multiple linker settings, -berok does not and is overridden later
10999           compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
11000           if test svr4 != "$with_aix_soname"; then
11001             # This is similar to how AIX traditionally builds its shared libraries.
11002             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'
11003           fi
11004           if test aix != "$with_aix_soname"; then
11005             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'
11006           else
11007             # used by -dlpreopen to get the symbols
11008             archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
11009           fi
11010           archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
11011         fi
11012       fi
11013       ;;
11014
11015     amigaos*)
11016       case $host_cpu in
11017       powerpc)
11018             # see comment about AmigaOS4 .so support
11019             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
11020             archive_expsym_cmds=''
11021         ;;
11022       m68k)
11023             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)'
11024             hardcode_libdir_flag_spec='-L$libdir'
11025             hardcode_minus_L=yes
11026         ;;
11027       esac
11028       ;;
11029
11030     bsdi[45]*)
11031       export_dynamic_flag_spec=-rdynamic
11032       ;;
11033
11034     cygwin* | mingw* | pw32* | cegcc*)
11035       # When not using gcc, we currently assume that we are using
11036       # Microsoft Visual C++.
11037       # hardcode_libdir_flag_spec is actually meaningless, as there is
11038       # no search path for DLLs.
11039       case $cc_basename in
11040       cl*)
11041         # Native MSVC
11042         hardcode_libdir_flag_spec=' '
11043         allow_undefined_flag=unsupported
11044         always_export_symbols=yes
11045         file_list_spec='@'
11046         # Tell ltmain to make .lib files, not .a files.
11047         libext=lib
11048         # Tell ltmain to make .dll files, not .so files.
11049         shrext_cmds=.dll
11050         # FIXME: Setting linknames here is a bad hack.
11051         archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
11052         archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[   ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([     ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
11053             cp "$export_symbols" "$output_objdir/$soname.def";
11054             echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
11055           else
11056             $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
11057           fi~
11058           $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
11059           linknames='
11060         # The linker will not automatically build a static lib if we build a DLL.
11061         # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
11062         enable_shared_with_static_runtimes=yes
11063         exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
11064         export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
11065         # Don't use ranlib
11066         old_postinstall_cmds='chmod 644 $oldlib'
11067         postlink_cmds='lt_outputfile="@OUTPUT@"~
11068           lt_tool_outputfile="@TOOL_OUTPUT@"~
11069           case $lt_outputfile in
11070             *.exe|*.EXE) ;;
11071             *)
11072               lt_outputfile=$lt_outputfile.exe
11073               lt_tool_outputfile=$lt_tool_outputfile.exe
11074               ;;
11075           esac~
11076           if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
11077             $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
11078             $RM "$lt_outputfile.manifest";
11079           fi'
11080         ;;
11081       *)
11082         # Assume MSVC wrapper
11083         hardcode_libdir_flag_spec=' '
11084         allow_undefined_flag=unsupported
11085         # Tell ltmain to make .lib files, not .a files.
11086         libext=lib
11087         # Tell ltmain to make .dll files, not .so files.
11088         shrext_cmds=.dll
11089         # FIXME: Setting linknames here is a bad hack.
11090         archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
11091         # The linker will automatically build a .lib file if we build a DLL.
11092         old_archive_from_new_cmds='true'
11093         # FIXME: Should let the user specify the lib program.
11094         old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
11095         enable_shared_with_static_runtimes=yes
11096         ;;
11097       esac
11098       ;;
11099
11100     darwin* | rhapsody*)
11101
11102
11103   archive_cmds_need_lc=no
11104   hardcode_direct=no
11105   hardcode_automatic=yes
11106   hardcode_shlibpath_var=unsupported
11107   if test yes = "$lt_cv_ld_force_load"; then
11108     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\"`'
11109
11110   else
11111     whole_archive_flag_spec=''
11112   fi
11113   link_all_deplibs=yes
11114   allow_undefined_flag=$_lt_dar_allow_undefined
11115   case $cc_basename in
11116      ifort*|nagfor*) _lt_dar_can_shared=yes ;;
11117      *) _lt_dar_can_shared=$GCC ;;
11118   esac
11119   if test yes = "$_lt_dar_can_shared"; then
11120     output_verbose_link_cmd=func_echo_all
11121     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
11122     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
11123     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"
11124     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"
11125
11126   else
11127   ld_shlibs=no
11128   fi
11129
11130       ;;
11131
11132     dgux*)
11133       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11134       hardcode_libdir_flag_spec='-L$libdir'
11135       hardcode_shlibpath_var=no
11136       ;;
11137
11138     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
11139     # support.  Future versions do this automatically, but an explicit c++rt0.o
11140     # does not break anything, and helps significantly (at the cost of a little
11141     # extra space).
11142     freebsd2.2*)
11143       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
11144       hardcode_libdir_flag_spec='-R$libdir'
11145       hardcode_direct=yes
11146       hardcode_shlibpath_var=no
11147       ;;
11148
11149     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
11150     freebsd2.*)
11151       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11152       hardcode_direct=yes
11153       hardcode_minus_L=yes
11154       hardcode_shlibpath_var=no
11155       ;;
11156
11157     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
11158     freebsd* | dragonfly*)
11159       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11160       hardcode_libdir_flag_spec='-R$libdir'
11161       hardcode_direct=yes
11162       hardcode_shlibpath_var=no
11163       ;;
11164
11165     hpux9*)
11166       if test yes = "$GCC"; then
11167         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'
11168       else
11169         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'
11170       fi
11171       hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11172       hardcode_libdir_separator=:
11173       hardcode_direct=yes
11174
11175       # hardcode_minus_L: Not really in the search PATH,
11176       # but as the default location of the library.
11177       hardcode_minus_L=yes
11178       export_dynamic_flag_spec='$wl-E'
11179       ;;
11180
11181     hpux10*)
11182       if test yes,no = "$GCC,$with_gnu_ld"; then
11183         archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11184       else
11185         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11186       fi
11187       if test no = "$with_gnu_ld"; then
11188         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11189         hardcode_libdir_separator=:
11190         hardcode_direct=yes
11191         hardcode_direct_absolute=yes
11192         export_dynamic_flag_spec='$wl-E'
11193         # hardcode_minus_L: Not really in the search PATH,
11194         # but as the default location of the library.
11195         hardcode_minus_L=yes
11196       fi
11197       ;;
11198
11199     hpux11*)
11200       if test yes,no = "$GCC,$with_gnu_ld"; then
11201         case $host_cpu in
11202         hppa*64*)
11203           archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11204           ;;
11205         ia64*)
11206           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11207           ;;
11208         *)
11209           archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11210           ;;
11211         esac
11212       else
11213         case $host_cpu in
11214         hppa*64*)
11215           archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11216           ;;
11217         ia64*)
11218           archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11219           ;;
11220         *)
11221
11222           # Older versions of the 11.00 compiler do not understand -b yet
11223           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11224           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11225 $as_echo_n "checking if $CC understands -b... " >&6; }
11226 if ${lt_cv_prog_compiler__b+:} false; then :
11227   $as_echo_n "(cached) " >&6
11228 else
11229   lt_cv_prog_compiler__b=no
11230    save_LDFLAGS=$LDFLAGS
11231    LDFLAGS="$LDFLAGS -b"
11232    echo "$lt_simple_link_test_code" > conftest.$ac_ext
11233    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11234      # The linker can only warn and ignore the option if not recognized
11235      # So say no if there are warnings
11236      if test -s conftest.err; then
11237        # Append any errors to the config.log.
11238        cat conftest.err 1>&5
11239        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11240        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11241        if diff conftest.exp conftest.er2 >/dev/null; then
11242          lt_cv_prog_compiler__b=yes
11243        fi
11244      else
11245        lt_cv_prog_compiler__b=yes
11246      fi
11247    fi
11248    $RM -r conftest*
11249    LDFLAGS=$save_LDFLAGS
11250
11251 fi
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11253 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11254
11255 if test yes = "$lt_cv_prog_compiler__b"; then
11256     archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11257 else
11258     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11259 fi
11260
11261           ;;
11262         esac
11263       fi
11264       if test no = "$with_gnu_ld"; then
11265         hardcode_libdir_flag_spec='$wl+b $wl$libdir'
11266         hardcode_libdir_separator=:
11267
11268         case $host_cpu in
11269         hppa*64*|ia64*)
11270           hardcode_direct=no
11271           hardcode_shlibpath_var=no
11272           ;;
11273         *)
11274           hardcode_direct=yes
11275           hardcode_direct_absolute=yes
11276           export_dynamic_flag_spec='$wl-E'
11277
11278           # hardcode_minus_L: Not really in the search PATH,
11279           # but as the default location of the library.
11280           hardcode_minus_L=yes
11281           ;;
11282         esac
11283       fi
11284       ;;
11285
11286     irix5* | irix6* | nonstopux*)
11287       if test yes = "$GCC"; then
11288         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'
11289         # Try to use the -exported_symbol ld option, if it does not
11290         # work, assume that -exports_file does not work either and
11291         # implicitly export all symbols.
11292         # This should be the same for all languages, so no per-tag cache variable.
11293         { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
11294 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
11295 if ${lt_cv_irix_exported_symbol+:} false; then :
11296   $as_echo_n "(cached) " >&6
11297 else
11298   save_LDFLAGS=$LDFLAGS
11299            LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
11300            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301 /* end confdefs.h.  */
11302 int foo (void) { return 0; }
11303 _ACEOF
11304 if ac_fn_c_try_link "$LINENO"; then :
11305   lt_cv_irix_exported_symbol=yes
11306 else
11307   lt_cv_irix_exported_symbol=no
11308 fi
11309 rm -f core conftest.err conftest.$ac_objext \
11310     conftest$ac_exeext conftest.$ac_ext
11311            LDFLAGS=$save_LDFLAGS
11312 fi
11313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
11314 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
11315         if test yes = "$lt_cv_irix_exported_symbol"; then
11316           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'
11317         fi
11318       else
11319         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'
11320         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'
11321       fi
11322       archive_cmds_need_lc='no'
11323       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11324       hardcode_libdir_separator=:
11325       inherit_rpath=yes
11326       link_all_deplibs=yes
11327       ;;
11328
11329     linux*)
11330       case $cc_basename in
11331       tcc*)
11332         # Fabrice Bellard et al's Tiny C Compiler
11333         ld_shlibs=yes
11334         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11335         ;;
11336       esac
11337       ;;
11338
11339     netbsd*)
11340       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11341         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
11342       else
11343         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
11344       fi
11345       hardcode_libdir_flag_spec='-R$libdir'
11346       hardcode_direct=yes
11347       hardcode_shlibpath_var=no
11348       ;;
11349
11350     newsos6)
11351       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11352       hardcode_direct=yes
11353       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11354       hardcode_libdir_separator=:
11355       hardcode_shlibpath_var=no
11356       ;;
11357
11358     *nto* | *qnx*)
11359       ;;
11360
11361     openbsd* | bitrig*)
11362       if test -f /usr/libexec/ld.so; then
11363         hardcode_direct=yes
11364         hardcode_shlibpath_var=no
11365         hardcode_direct_absolute=yes
11366         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
11367           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11368           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
11369           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11370           export_dynamic_flag_spec='$wl-E'
11371         else
11372           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11373           hardcode_libdir_flag_spec='$wl-rpath,$libdir'
11374         fi
11375       else
11376         ld_shlibs=no
11377       fi
11378       ;;
11379
11380     os2*)
11381       hardcode_libdir_flag_spec='-L$libdir'
11382       hardcode_minus_L=yes
11383       allow_undefined_flag=unsupported
11384       shrext_cmds=.dll
11385       archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11386         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11387         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11388         $ECHO EXPORTS >> $output_objdir/$libname.def~
11389         emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
11390         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11391         emximp -o $lib $output_objdir/$libname.def'
11392       archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
11393         $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
11394         $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
11395         $ECHO EXPORTS >> $output_objdir/$libname.def~
11396         prefix_cmds="$SED"~
11397         if test EXPORTS = "`$SED 1q $export_symbols`"; then
11398           prefix_cmds="$prefix_cmds -e 1d";
11399         fi~
11400         prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
11401         cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
11402         $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
11403         emximp -o $lib $output_objdir/$libname.def'
11404       old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
11405       enable_shared_with_static_runtimes=yes
11406       ;;
11407
11408     osf3*)
11409       if test yes = "$GCC"; then
11410         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11411         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'
11412       else
11413         allow_undefined_flag=' -expect_unresolved \*'
11414         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'
11415       fi
11416       archive_cmds_need_lc='no'
11417       hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11418       hardcode_libdir_separator=:
11419       ;;
11420
11421     osf4* | osf5*)      # as osf3* with the addition of -msym flag
11422       if test yes = "$GCC"; then
11423         allow_undefined_flag=' $wl-expect_unresolved $wl\*'
11424         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'
11425         hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
11426       else
11427         allow_undefined_flag=' -expect_unresolved \*'
11428         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'
11429         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~
11430           $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'
11431
11432         # Both c and cxx compiler support -rpath directly
11433         hardcode_libdir_flag_spec='-rpath $libdir'
11434       fi
11435       archive_cmds_need_lc='no'
11436       hardcode_libdir_separator=:
11437       ;;
11438
11439     solaris*)
11440       no_undefined_flag=' -z defs'
11441       if test yes = "$GCC"; then
11442         wlarc='$wl'
11443         archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
11444         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11445           $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'
11446       else
11447         case `$CC -V 2>&1` in
11448         *"Compilers 5.0"*)
11449           wlarc=''
11450           archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
11451           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11452             $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11453           ;;
11454         *)
11455           wlarc='$wl'
11456           archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11457           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11458             $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11459           ;;
11460         esac
11461       fi
11462       hardcode_libdir_flag_spec='-R$libdir'
11463       hardcode_shlibpath_var=no
11464       case $host_os in
11465       solaris2.[0-5] | solaris2.[0-5].*) ;;
11466       *)
11467         # The compiler driver will combine and reorder linker options,
11468         # but understands '-z linker_flag'.  GCC discards it without '$wl',
11469         # but is careful enough not to reorder.
11470         # Supported since Solaris 2.6 (maybe 2.5.1?)
11471         if test yes = "$GCC"; then
11472           whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
11473         else
11474           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11475         fi
11476         ;;
11477       esac
11478       link_all_deplibs=yes
11479       ;;
11480
11481     sunos4*)
11482       if test sequent = "$host_vendor"; then
11483         # Use $CC to link under sequent, because it throws in some extra .o
11484         # files that make .init and .fini sections work.
11485         archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11486       else
11487         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11488       fi
11489       hardcode_libdir_flag_spec='-L$libdir'
11490       hardcode_direct=yes
11491       hardcode_minus_L=yes
11492       hardcode_shlibpath_var=no
11493       ;;
11494
11495     sysv4)
11496       case $host_vendor in
11497         sni)
11498           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11499           hardcode_direct=yes # is this really true???
11500         ;;
11501         siemens)
11502           ## LD is ld it makes a PLAMLIB
11503           ## CC just makes a GrossModule.
11504           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11505           reload_cmds='$CC -r -o $output$reload_objs'
11506           hardcode_direct=no
11507         ;;
11508         motorola)
11509           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11510           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11511         ;;
11512       esac
11513       runpath_var='LD_RUN_PATH'
11514       hardcode_shlibpath_var=no
11515       ;;
11516
11517     sysv4.3*)
11518       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11519       hardcode_shlibpath_var=no
11520       export_dynamic_flag_spec='-Bexport'
11521       ;;
11522
11523     sysv4*MP*)
11524       if test -d /usr/nec; then
11525         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11526         hardcode_shlibpath_var=no
11527         runpath_var=LD_RUN_PATH
11528         hardcode_runpath_var=yes
11529         ld_shlibs=yes
11530       fi
11531       ;;
11532
11533     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11534       no_undefined_flag='$wl-z,text'
11535       archive_cmds_need_lc=no
11536       hardcode_shlibpath_var=no
11537       runpath_var='LD_RUN_PATH'
11538
11539       if test yes = "$GCC"; then
11540         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11541         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11542       else
11543         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11544         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11545       fi
11546       ;;
11547
11548     sysv5* | sco3.2v5* | sco5v6*)
11549       # Note: We CANNOT use -z defs as we might desire, because we do not
11550       # link with -lc, and that would cause any symbols used from libc to
11551       # always be unresolved, which means just about no library would
11552       # ever link correctly.  If we're not using GNU ld we use -z text
11553       # though, which does catch some bad symbols but isn't as heavy-handed
11554       # as -z defs.
11555       no_undefined_flag='$wl-z,text'
11556       allow_undefined_flag='$wl-z,nodefs'
11557       archive_cmds_need_lc=no
11558       hardcode_shlibpath_var=no
11559       hardcode_libdir_flag_spec='$wl-R,$libdir'
11560       hardcode_libdir_separator=':'
11561       link_all_deplibs=yes
11562       export_dynamic_flag_spec='$wl-Bexport'
11563       runpath_var='LD_RUN_PATH'
11564
11565       if test yes = "$GCC"; then
11566         archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11567         archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11568       else
11569         archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11570         archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11571       fi
11572       ;;
11573
11574     uts4*)
11575       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11576       hardcode_libdir_flag_spec='-L$libdir'
11577       hardcode_shlibpath_var=no
11578       ;;
11579
11580     *)
11581       ld_shlibs=no
11582       ;;
11583     esac
11584
11585     if test sni = "$host_vendor"; then
11586       case $host in
11587       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11588         export_dynamic_flag_spec='$wl-Blargedynsym'
11589         ;;
11590       esac
11591     fi
11592   fi
11593
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11595 $as_echo "$ld_shlibs" >&6; }
11596 test no = "$ld_shlibs" && can_build_shared=no
11597
11598 with_gnu_ld=$with_gnu_ld
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614 #
11615 # Do we need to explicitly link libc?
11616 #
11617 case "x$archive_cmds_need_lc" in
11618 x|xyes)
11619   # Assume -lc should be added
11620   archive_cmds_need_lc=yes
11621
11622   if test yes,yes = "$GCC,$enable_shared"; then
11623     case $archive_cmds in
11624     *'~'*)
11625       # FIXME: we may have to deal with multi-command sequences.
11626       ;;
11627     '$CC '*)
11628       # Test whether the compiler implicitly links with -lc since on some
11629       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11630       # to ld, don't add -lc before -lgcc.
11631       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11632 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11633 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11634   $as_echo_n "(cached) " >&6
11635 else
11636   $RM conftest*
11637         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11638
11639         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11640   (eval $ac_compile) 2>&5
11641   ac_status=$?
11642   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11643   test $ac_status = 0; } 2>conftest.err; then
11644           soname=conftest
11645           lib=conftest
11646           libobjs=conftest.$ac_objext
11647           deplibs=
11648           wl=$lt_prog_compiler_wl
11649           pic_flag=$lt_prog_compiler_pic
11650           compiler_flags=-v
11651           linker_flags=-v
11652           verstring=
11653           output_objdir=.
11654           libname=conftest
11655           lt_save_allow_undefined_flag=$allow_undefined_flag
11656           allow_undefined_flag=
11657           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11658   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11659   ac_status=$?
11660   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11661   test $ac_status = 0; }
11662           then
11663             lt_cv_archive_cmds_need_lc=no
11664           else
11665             lt_cv_archive_cmds_need_lc=yes
11666           fi
11667           allow_undefined_flag=$lt_save_allow_undefined_flag
11668         else
11669           cat conftest.err 1>&5
11670         fi
11671         $RM conftest*
11672
11673 fi
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11675 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11676       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11677       ;;
11678     esac
11679   fi
11680   ;;
11681 esac
11682
11683
11684
11685
11686
11687
11688
11689
11690
11691
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11835 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11836
11837 if test yes = "$GCC"; then
11838   case $host_os in
11839     darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
11840     *) lt_awk_arg='/^libraries:/' ;;
11841   esac
11842   case $host_os in
11843     mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
11844     *) lt_sed_strip_eq='s|=/|/|g' ;;
11845   esac
11846   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11847   case $lt_search_path_spec in
11848   *\;*)
11849     # if the path contains ";" then we assume it to be the separator
11850     # otherwise default to the standard path separator (i.e. ":") - it is
11851     # assumed that no part of a normal pathname contains ";" but that should
11852     # okay in the real world where ";" in dirpaths is itself problematic.
11853     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11854     ;;
11855   *)
11856     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11857     ;;
11858   esac
11859   # Ok, now we have the path, separated by spaces, we can step through it
11860   # and add multilib dir if necessary...
11861   lt_tmp_lt_search_path_spec=
11862   lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11863   # ...but if some path component already ends with the multilib dir we assume
11864   # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
11865   case "$lt_multi_os_dir; $lt_search_path_spec " in
11866   "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
11867     lt_multi_os_dir=
11868     ;;
11869   esac
11870   for lt_sys_path in $lt_search_path_spec; do
11871     if test -d "$lt_sys_path$lt_multi_os_dir"; then
11872       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
11873     elif test -n "$lt_multi_os_dir"; then
11874       test -d "$lt_sys_path" && \
11875         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11876     fi
11877   done
11878   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11879 BEGIN {RS = " "; FS = "/|\n";} {
11880   lt_foo = "";
11881   lt_count = 0;
11882   for (lt_i = NF; lt_i > 0; lt_i--) {
11883     if ($lt_i != "" && $lt_i != ".") {
11884       if ($lt_i == "..") {
11885         lt_count++;
11886       } else {
11887         if (lt_count == 0) {
11888           lt_foo = "/" $lt_i lt_foo;
11889         } else {
11890           lt_count--;
11891         }
11892       }
11893     }
11894   }
11895   if (lt_foo != "") { lt_freq[lt_foo]++; }
11896   if (lt_freq[lt_foo] == 1) { print lt_foo; }
11897 }'`
11898   # AWK program above erroneously prepends '/' to C:/dos/paths
11899   # for these hosts.
11900   case $host_os in
11901     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11902       $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
11903   esac
11904   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11905 else
11906   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11907 fi
11908 library_names_spec=
11909 libname_spec='lib$name'
11910 soname_spec=
11911 shrext_cmds=.so
11912 postinstall_cmds=
11913 postuninstall_cmds=
11914 finish_cmds=
11915 finish_eval=
11916 shlibpath_var=
11917 shlibpath_overrides_runpath=unknown
11918 version_type=none
11919 dynamic_linker="$host_os ld.so"
11920 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11921 need_lib_prefix=unknown
11922 hardcode_into_libs=no
11923
11924 # when you set need_version to no, make sure it does not cause -set_version
11925 # flags to be left without arguments
11926 need_version=unknown
11927
11928
11929
11930 case $host_os in
11931 aix3*)
11932   version_type=linux # correct to gnu/linux during the next big refactor
11933   library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
11934   shlibpath_var=LIBPATH
11935
11936   # AIX 3 has no versioning support, so we append a major version to the name.
11937   soname_spec='$libname$release$shared_ext$major'
11938   ;;
11939
11940 aix[4-9]*)
11941   version_type=linux # correct to gnu/linux during the next big refactor
11942   need_lib_prefix=no
11943   need_version=no
11944   hardcode_into_libs=yes
11945   if test ia64 = "$host_cpu"; then
11946     # AIX 5 supports IA64
11947     library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
11948     shlibpath_var=LD_LIBRARY_PATH
11949   else
11950     # With GCC up to 2.95.x, collect2 would create an import file
11951     # for dependence libraries.  The import file would start with
11952     # the line '#! .'.  This would cause the generated library to
11953     # depend on '.', always an invalid library.  This was fixed in
11954     # development snapshots of GCC prior to 3.0.
11955     case $host_os in
11956       aix4 | aix4.[01] | aix4.[01].*)
11957       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11958            echo ' yes '
11959            echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
11960         :
11961       else
11962         can_build_shared=no
11963       fi
11964       ;;
11965     esac
11966     # Using Import Files as archive members, it is possible to support
11967     # filename-based versioning of shared library archives on AIX. While
11968     # this would work for both with and without runtime linking, it will
11969     # prevent static linking of such archives. So we do filename-based
11970     # shared library versioning with .so extension only, which is used
11971     # when both runtime linking and shared linking is enabled.
11972     # Unfortunately, runtime linking may impact performance, so we do
11973     # not want this to be the default eventually. Also, we use the
11974     # versioned .so libs for executables only if there is the -brtl
11975     # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
11976     # To allow for filename-based versioning support, we need to create
11977     # libNAME.so.V as an archive file, containing:
11978     # *) an Import File, referring to the versioned filename of the
11979     #    archive as well as the shared archive member, telling the
11980     #    bitwidth (32 or 64) of that shared object, and providing the
11981     #    list of exported symbols of that shared object, eventually
11982     #    decorated with the 'weak' keyword
11983     # *) the shared object with the F_LOADONLY flag set, to really avoid
11984     #    it being seen by the linker.
11985     # At run time we better use the real file rather than another symlink,
11986     # but for link time we create the symlink libNAME.so -> libNAME.so.V
11987
11988     case $with_aix_soname,$aix_use_runtimelinking in
11989     # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
11990     # soname into executable. Probably we can add versioning support to
11991     # collect2, so additional links can be useful in future.
11992     aix,yes) # traditional libtool
11993       dynamic_linker='AIX unversionable lib.so'
11994       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11995       # instead of lib<name>.a to let people know that these are not
11996       # typical AIX shared libraries.
11997       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
11998       ;;
11999     aix,no) # traditional AIX only
12000       dynamic_linker='AIX lib.a(lib.so.V)'
12001       # We preserve .a as extension for shared libraries through AIX4.2
12002       # and later when we are not doing run time linking.
12003       library_names_spec='$libname$release.a $libname.a'
12004       soname_spec='$libname$release$shared_ext$major'
12005       ;;
12006     svr4,*) # full svr4 only
12007       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
12008       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12009       # We do not specify a path in Import Files, so LIBPATH fires.
12010       shlibpath_overrides_runpath=yes
12011       ;;
12012     *,yes) # both, prefer svr4
12013       dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
12014       library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
12015       # unpreferred sharedlib libNAME.a needs extra handling
12016       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"'
12017       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"'
12018       # We do not specify a path in Import Files, so LIBPATH fires.
12019       shlibpath_overrides_runpath=yes
12020       ;;
12021     *,no) # both, prefer aix
12022       dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
12023       library_names_spec='$libname$release.a $libname.a'
12024       soname_spec='$libname$release$shared_ext$major'
12025       # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
12026       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)'
12027       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"'
12028       ;;
12029     esac
12030     shlibpath_var=LIBPATH
12031   fi
12032   ;;
12033
12034 amigaos*)
12035   case $host_cpu in
12036   powerpc)
12037     # Since July 2007 AmigaOS4 officially supports .so libraries.
12038     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
12039     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12040     ;;
12041   m68k)
12042     library_names_spec='$libname.ixlibrary $libname.a'
12043     # Create ${libname}_ixlibrary.a entries in /sys/libs.
12044     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'
12045     ;;
12046   esac
12047   ;;
12048
12049 beos*)
12050   library_names_spec='$libname$shared_ext'
12051   dynamic_linker="$host_os ld.so"
12052   shlibpath_var=LIBRARY_PATH
12053   ;;
12054
12055 bsdi[45]*)
12056   version_type=linux # correct to gnu/linux during the next big refactor
12057   need_version=no
12058   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12059   soname_spec='$libname$release$shared_ext$major'
12060   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12061   shlibpath_var=LD_LIBRARY_PATH
12062   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12063   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12064   # the default ld.so.conf also contains /usr/contrib/lib and
12065   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12066   # libtool to hard-code these into programs
12067   ;;
12068
12069 cygwin* | mingw* | pw32* | cegcc*)
12070   version_type=windows
12071   shrext_cmds=.dll
12072   need_version=no
12073   need_lib_prefix=no
12074
12075   case $GCC,$cc_basename in
12076   yes,*)
12077     # gcc
12078     library_names_spec='$libname.dll.a'
12079     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12080     postinstall_cmds='base_file=`basename \$file`~
12081       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12082       dldir=$destdir/`dirname \$dlpath`~
12083       test -d \$dldir || mkdir -p \$dldir~
12084       $install_prog $dir/$dlname \$dldir/$dlname~
12085       chmod a+x \$dldir/$dlname~
12086       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12087         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12088       fi'
12089     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12090       dlpath=$dir/\$dldll~
12091        $RM \$dlpath'
12092     shlibpath_overrides_runpath=yes
12093
12094     case $host_os in
12095     cygwin*)
12096       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12097       soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12098
12099       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
12100       ;;
12101     mingw* | cegcc*)
12102       # MinGW DLLs use traditional 'lib' prefix
12103       soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12104       ;;
12105     pw32*)
12106       # pw32 DLLs use 'pw' prefix rather than 'lib'
12107       library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12108       ;;
12109     esac
12110     dynamic_linker='Win32 ld.exe'
12111     ;;
12112
12113   *,cl*)
12114     # Native MSVC
12115     libname_spec='$name'
12116     soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
12117     library_names_spec='$libname.dll.lib'
12118
12119     case $build_os in
12120     mingw*)
12121       sys_lib_search_path_spec=
12122       lt_save_ifs=$IFS
12123       IFS=';'
12124       for lt_path in $LIB
12125       do
12126         IFS=$lt_save_ifs
12127         # Let DOS variable expansion print the short 8.3 style file name.
12128         lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
12129         sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
12130       done
12131       IFS=$lt_save_ifs
12132       # Convert to MSYS style.
12133       sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
12134       ;;
12135     cygwin*)
12136       # Convert to unix form, then to dos form, then back to unix form
12137       # but this time dos style (no spaces!) so that the unix form looks
12138       # like /cygdrive/c/PROGRA~1:/cygdr...
12139       sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
12140       sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
12141       sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12142       ;;
12143     *)
12144       sys_lib_search_path_spec=$LIB
12145       if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
12146         # It is most probably a Windows format PATH.
12147         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12148       else
12149         sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12150       fi
12151       # FIXME: find the short name or the path components, as spaces are
12152       # common. (e.g. "Program Files" -> "PROGRA~1")
12153       ;;
12154     esac
12155
12156     # DLL is installed to $(libdir)/../bin by postinstall_cmds
12157     postinstall_cmds='base_file=`basename \$file`~
12158       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
12159       dldir=$destdir/`dirname \$dlpath`~
12160       test -d \$dldir || mkdir -p \$dldir~
12161       $install_prog $dir/$dlname \$dldir/$dlname'
12162     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12163       dlpath=$dir/\$dldll~
12164        $RM \$dlpath'
12165     shlibpath_overrides_runpath=yes
12166     dynamic_linker='Win32 link.exe'
12167     ;;
12168
12169   *)
12170     # Assume MSVC wrapper
12171     library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
12172     dynamic_linker='Win32 ld.exe'
12173     ;;
12174   esac
12175   # FIXME: first we should search . and the directory the executable is in
12176   shlibpath_var=PATH
12177   ;;
12178
12179 darwin* | rhapsody*)
12180   dynamic_linker="$host_os dyld"
12181   version_type=darwin
12182   need_lib_prefix=no
12183   need_version=no
12184   library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
12185   soname_spec='$libname$release$major$shared_ext'
12186   shlibpath_overrides_runpath=yes
12187   shlibpath_var=DYLD_LIBRARY_PATH
12188   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12189
12190   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
12191   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12192   ;;
12193
12194 dgux*)
12195   version_type=linux # correct to gnu/linux during the next big refactor
12196   need_lib_prefix=no
12197   need_version=no
12198   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12199   soname_spec='$libname$release$shared_ext$major'
12200   shlibpath_var=LD_LIBRARY_PATH
12201   ;;
12202
12203 freebsd* | dragonfly*)
12204   # DragonFly does not have aout.  When/if they implement a new
12205   # versioning mechanism, adjust this.
12206   if test -x /usr/bin/objformat; then
12207     objformat=`/usr/bin/objformat`
12208   else
12209     case $host_os in
12210     freebsd[23].*) objformat=aout ;;
12211     *) objformat=elf ;;
12212     esac
12213   fi
12214   version_type=freebsd-$objformat
12215   case $version_type in
12216     freebsd-elf*)
12217       library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12218       soname_spec='$libname$release$shared_ext$major'
12219       need_version=no
12220       need_lib_prefix=no
12221       ;;
12222     freebsd-*)
12223       library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12224       need_version=yes
12225       ;;
12226   esac
12227   shlibpath_var=LD_LIBRARY_PATH
12228   case $host_os in
12229   freebsd2.*)
12230     shlibpath_overrides_runpath=yes
12231     ;;
12232   freebsd3.[01]* | freebsdelf3.[01]*)
12233     shlibpath_overrides_runpath=yes
12234     hardcode_into_libs=yes
12235     ;;
12236   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12237   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12238     shlibpath_overrides_runpath=no
12239     hardcode_into_libs=yes
12240     ;;
12241   *) # from 4.6 on, and DragonFly
12242     shlibpath_overrides_runpath=yes
12243     hardcode_into_libs=yes
12244     ;;
12245   esac
12246   ;;
12247
12248 haiku*)
12249   version_type=linux # correct to gnu/linux during the next big refactor
12250   need_lib_prefix=no
12251   need_version=no
12252   dynamic_linker="$host_os runtime_loader"
12253   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12254   soname_spec='$libname$release$shared_ext$major'
12255   shlibpath_var=LIBRARY_PATH
12256   shlibpath_overrides_runpath=no
12257   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
12258   hardcode_into_libs=yes
12259   ;;
12260
12261 hpux9* | hpux10* | hpux11*)
12262   # Give a soname corresponding to the major version so that dld.sl refuses to
12263   # link against other versions.
12264   version_type=sunos
12265   need_lib_prefix=no
12266   need_version=no
12267   case $host_cpu in
12268   ia64*)
12269     shrext_cmds='.so'
12270     hardcode_into_libs=yes
12271     dynamic_linker="$host_os dld.so"
12272     shlibpath_var=LD_LIBRARY_PATH
12273     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12274     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12275     soname_spec='$libname$release$shared_ext$major'
12276     if test 32 = "$HPUX_IA64_MODE"; then
12277       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12278       sys_lib_dlsearch_path_spec=/usr/lib/hpux32
12279     else
12280       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12281       sys_lib_dlsearch_path_spec=/usr/lib/hpux64
12282     fi
12283     ;;
12284   hppa*64*)
12285     shrext_cmds='.sl'
12286     hardcode_into_libs=yes
12287     dynamic_linker="$host_os dld.sl"
12288     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12289     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12290     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12291     soname_spec='$libname$release$shared_ext$major'
12292     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12293     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12294     ;;
12295   *)
12296     shrext_cmds='.sl'
12297     dynamic_linker="$host_os dld.sl"
12298     shlibpath_var=SHLIB_PATH
12299     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12300     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12301     soname_spec='$libname$release$shared_ext$major'
12302     ;;
12303   esac
12304   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12305   postinstall_cmds='chmod 555 $lib'
12306   # or fails outright, so override atomically:
12307   install_override_mode=555
12308   ;;
12309
12310 interix[3-9]*)
12311   version_type=linux # correct to gnu/linux during the next big refactor
12312   need_lib_prefix=no
12313   need_version=no
12314   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12315   soname_spec='$libname$release$shared_ext$major'
12316   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12317   shlibpath_var=LD_LIBRARY_PATH
12318   shlibpath_overrides_runpath=no
12319   hardcode_into_libs=yes
12320   ;;
12321
12322 irix5* | irix6* | nonstopux*)
12323   case $host_os in
12324     nonstopux*) version_type=nonstopux ;;
12325     *)
12326         if test yes = "$lt_cv_prog_gnu_ld"; then
12327                 version_type=linux # correct to gnu/linux during the next big refactor
12328         else
12329                 version_type=irix
12330         fi ;;
12331   esac
12332   need_lib_prefix=no
12333   need_version=no
12334   soname_spec='$libname$release$shared_ext$major'
12335   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
12336   case $host_os in
12337   irix5* | nonstopux*)
12338     libsuff= shlibsuff=
12339     ;;
12340   *)
12341     case $LD in # libtool.m4 will add one of these switches to LD
12342     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12343       libsuff= shlibsuff= libmagic=32-bit;;
12344     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12345       libsuff=32 shlibsuff=N32 libmagic=N32;;
12346     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12347       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12348     *) libsuff= shlibsuff= libmagic=never-match;;
12349     esac
12350     ;;
12351   esac
12352   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12353   shlibpath_overrides_runpath=no
12354   sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
12355   sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
12356   hardcode_into_libs=yes
12357   ;;
12358
12359 # No shared lib support for Linux oldld, aout, or coff.
12360 linux*oldld* | linux*aout* | linux*coff*)
12361   dynamic_linker=no
12362   ;;
12363
12364 linux*android*)
12365   version_type=none # Android doesn't support versioned libraries.
12366   need_lib_prefix=no
12367   need_version=no
12368   library_names_spec='$libname$release$shared_ext'
12369   soname_spec='$libname$release$shared_ext'
12370   finish_cmds=
12371   shlibpath_var=LD_LIBRARY_PATH
12372   shlibpath_overrides_runpath=yes
12373
12374   # This implies no fast_install, which is unacceptable.
12375   # Some rework will be needed to allow for fast_install
12376   # before this can be enabled.
12377   hardcode_into_libs=yes
12378
12379   dynamic_linker='Android linker'
12380   # Don't embed -rpath directories since the linker doesn't support them.
12381   hardcode_libdir_flag_spec='-L$libdir'
12382   ;;
12383
12384 # This must be glibc/ELF.
12385 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12386   version_type=linux # correct to gnu/linux during the next big refactor
12387   need_lib_prefix=no
12388   need_version=no
12389   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12390   soname_spec='$libname$release$shared_ext$major'
12391   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12392   shlibpath_var=LD_LIBRARY_PATH
12393   shlibpath_overrides_runpath=no
12394
12395   # Some binutils ld are patched to set DT_RUNPATH
12396   if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12397   $as_echo_n "(cached) " >&6
12398 else
12399   lt_cv_shlibpath_overrides_runpath=no
12400     save_LDFLAGS=$LDFLAGS
12401     save_libdir=$libdir
12402     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12403          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12404     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12405 /* end confdefs.h.  */
12406
12407 int
12408 main ()
12409 {
12410
12411   ;
12412   return 0;
12413 }
12414 _ACEOF
12415 if ac_fn_c_try_link "$LINENO"; then :
12416   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12417   lt_cv_shlibpath_overrides_runpath=yes
12418 fi
12419 fi
12420 rm -f core conftest.err conftest.$ac_objext \
12421     conftest$ac_exeext conftest.$ac_ext
12422     LDFLAGS=$save_LDFLAGS
12423     libdir=$save_libdir
12424
12425 fi
12426
12427   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12428
12429   # This implies no fast_install, which is unacceptable.
12430   # Some rework will be needed to allow for fast_install
12431   # before this can be enabled.
12432   hardcode_into_libs=yes
12433
12434   # Add ABI-specific directories to the system library path.
12435   sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
12436
12437   # Ideally, we could use ldconfig to report *all* directores which are
12438   # searched for libraries, however this is still not possible.  Aside from not
12439   # being certain /sbin/ldconfig is available, command
12440   # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
12441   # even though it is searched at run-time.  Try to do the best guess by
12442   # appending ld.so.conf contents (and includes) to the search path.
12443   if test -f /etc/ld.so.conf; then
12444     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' ' '`
12445     sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12446   fi
12447
12448   # We used to test for /lib/ld.so.1 and disable shared libraries on
12449   # powerpc, because MkLinux only supported shared libraries with the
12450   # GNU dynamic linker.  Since this was broken with cross compilers,
12451   # most powerpc-linux boxes support dynamic linking these days and
12452   # people can always --disable-shared, the test was removed, and we
12453   # assume the GNU/Linux dynamic linker is in use.
12454   dynamic_linker='GNU/Linux ld.so'
12455   ;;
12456
12457 netbsd*)
12458   version_type=sunos
12459   need_lib_prefix=no
12460   need_version=no
12461   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12462     library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12463     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12464     dynamic_linker='NetBSD (a.out) ld.so'
12465   else
12466     library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12467     soname_spec='$libname$release$shared_ext$major'
12468     dynamic_linker='NetBSD ld.elf_so'
12469   fi
12470   shlibpath_var=LD_LIBRARY_PATH
12471   shlibpath_overrides_runpath=yes
12472   hardcode_into_libs=yes
12473   ;;
12474
12475 newsos6)
12476   version_type=linux # correct to gnu/linux during the next big refactor
12477   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12478   shlibpath_var=LD_LIBRARY_PATH
12479   shlibpath_overrides_runpath=yes
12480   ;;
12481
12482 *nto* | *qnx*)
12483   version_type=qnx
12484   need_lib_prefix=no
12485   need_version=no
12486   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12487   soname_spec='$libname$release$shared_ext$major'
12488   shlibpath_var=LD_LIBRARY_PATH
12489   shlibpath_overrides_runpath=no
12490   hardcode_into_libs=yes
12491   dynamic_linker='ldqnx.so'
12492   ;;
12493
12494 openbsd* | bitrig*)
12495   version_type=sunos
12496   sys_lib_dlsearch_path_spec=/usr/lib
12497   need_lib_prefix=no
12498   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
12499     need_version=no
12500   else
12501     need_version=yes
12502   fi
12503   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12504   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12505   shlibpath_var=LD_LIBRARY_PATH
12506   shlibpath_overrides_runpath=yes
12507   ;;
12508
12509 os2*)
12510   libname_spec='$name'
12511   version_type=windows
12512   shrext_cmds=.dll
12513   need_version=no
12514   need_lib_prefix=no
12515   # OS/2 can only load a DLL with a base name of 8 characters or less.
12516   soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
12517     v=$($ECHO $release$versuffix | tr -d .-);
12518     n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
12519     $ECHO $n$v`$shared_ext'
12520   library_names_spec='${libname}_dll.$libext'
12521   dynamic_linker='OS/2 ld.exe'
12522   shlibpath_var=BEGINLIBPATH
12523   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12524   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12525   postinstall_cmds='base_file=`basename \$file`~
12526     dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
12527     dldir=$destdir/`dirname \$dlpath`~
12528     test -d \$dldir || mkdir -p \$dldir~
12529     $install_prog $dir/$dlname \$dldir/$dlname~
12530     chmod a+x \$dldir/$dlname~
12531     if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
12532       eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
12533     fi'
12534   postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
12535     dlpath=$dir/\$dldll~
12536     $RM \$dlpath'
12537   ;;
12538
12539 osf3* | osf4* | osf5*)
12540   version_type=osf
12541   need_lib_prefix=no
12542   need_version=no
12543   soname_spec='$libname$release$shared_ext$major'
12544   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12545   shlibpath_var=LD_LIBRARY_PATH
12546   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12547   sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12548   ;;
12549
12550 rdos*)
12551   dynamic_linker=no
12552   ;;
12553
12554 solaris*)
12555   version_type=linux # correct to gnu/linux during the next big refactor
12556   need_lib_prefix=no
12557   need_version=no
12558   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12559   soname_spec='$libname$release$shared_ext$major'
12560   shlibpath_var=LD_LIBRARY_PATH
12561   shlibpath_overrides_runpath=yes
12562   hardcode_into_libs=yes
12563   # ldd complains unless libraries are executable
12564   postinstall_cmds='chmod +x $lib'
12565   ;;
12566
12567 sunos4*)
12568   version_type=sunos
12569   library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
12570   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12571   shlibpath_var=LD_LIBRARY_PATH
12572   shlibpath_overrides_runpath=yes
12573   if test yes = "$with_gnu_ld"; then
12574     need_lib_prefix=no
12575   fi
12576   need_version=yes
12577   ;;
12578
12579 sysv4 | sysv4.3*)
12580   version_type=linux # correct to gnu/linux during the next big refactor
12581   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12582   soname_spec='$libname$release$shared_ext$major'
12583   shlibpath_var=LD_LIBRARY_PATH
12584   case $host_vendor in
12585     sni)
12586       shlibpath_overrides_runpath=no
12587       need_lib_prefix=no
12588       runpath_var=LD_RUN_PATH
12589       ;;
12590     siemens)
12591       need_lib_prefix=no
12592       ;;
12593     motorola)
12594       need_lib_prefix=no
12595       need_version=no
12596       shlibpath_overrides_runpath=no
12597       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12598       ;;
12599   esac
12600   ;;
12601
12602 sysv4*MP*)
12603   if test -d /usr/nec; then
12604     version_type=linux # correct to gnu/linux during the next big refactor
12605     library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
12606     soname_spec='$libname$shared_ext.$major'
12607     shlibpath_var=LD_LIBRARY_PATH
12608   fi
12609   ;;
12610
12611 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12612   version_type=sco
12613   need_lib_prefix=no
12614   need_version=no
12615   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
12616   soname_spec='$libname$release$shared_ext$major'
12617   shlibpath_var=LD_LIBRARY_PATH
12618   shlibpath_overrides_runpath=yes
12619   hardcode_into_libs=yes
12620   if test yes = "$with_gnu_ld"; then
12621     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12622   else
12623     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12624     case $host_os in
12625       sco3.2v5*)
12626         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12627         ;;
12628     esac
12629   fi
12630   sys_lib_dlsearch_path_spec='/usr/lib'
12631   ;;
12632
12633 tpf*)
12634   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
12635   version_type=linux # correct to gnu/linux during the next big refactor
12636   need_lib_prefix=no
12637   need_version=no
12638   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12639   shlibpath_var=LD_LIBRARY_PATH
12640   shlibpath_overrides_runpath=no
12641   hardcode_into_libs=yes
12642   ;;
12643
12644 uts4*)
12645   version_type=linux # correct to gnu/linux during the next big refactor
12646   library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
12647   soname_spec='$libname$release$shared_ext$major'
12648   shlibpath_var=LD_LIBRARY_PATH
12649   ;;
12650
12651 *)
12652   dynamic_linker=no
12653   ;;
12654 esac
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12656 $as_echo "$dynamic_linker" >&6; }
12657 test no = "$dynamic_linker" && can_build_shared=no
12658
12659 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12660 if test yes = "$GCC"; then
12661   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12662 fi
12663
12664 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
12665   sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
12666 fi
12667
12668 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
12669   sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
12670 fi
12671
12672 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
12673 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
12674
12675 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
12676 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
12677
12678 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
12679 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
12680
12681
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   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12778 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12779 hardcode_action=
12780 if test -n "$hardcode_libdir_flag_spec" ||
12781    test -n "$runpath_var" ||
12782    test yes = "$hardcode_automatic"; then
12783
12784   # We can hardcode non-existent directories.
12785   if test no != "$hardcode_direct" &&
12786      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12787      # have to relink, otherwise we might link with an installed library
12788      # when we should be linking with a yet-to-be-installed one
12789      ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
12790      test no != "$hardcode_minus_L"; then
12791     # Linking always hardcodes the temporary library directory.
12792     hardcode_action=relink
12793   else
12794     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12795     hardcode_action=immediate
12796   fi
12797 else
12798   # We cannot hardcode anything, or else we can only hardcode existing
12799   # directories.
12800   hardcode_action=unsupported
12801 fi
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12803 $as_echo "$hardcode_action" >&6; }
12804
12805 if test relink = "$hardcode_action" ||
12806    test yes = "$inherit_rpath"; then
12807   # Fast installation is not supported
12808   enable_fast_install=no
12809 elif test yes = "$shlibpath_overrides_runpath" ||
12810      test no = "$enable_shared"; then
12811   # Fast installation is not necessary
12812   enable_fast_install=needless
12813 fi
12814
12815
12816
12817
12818
12819
12820   if test yes != "$enable_dlopen"; then
12821   enable_dlopen=unknown
12822   enable_dlopen_self=unknown
12823   enable_dlopen_self_static=unknown
12824 else
12825   lt_cv_dlopen=no
12826   lt_cv_dlopen_libs=
12827
12828   case $host_os in
12829   beos*)
12830     lt_cv_dlopen=load_add_on
12831     lt_cv_dlopen_libs=
12832     lt_cv_dlopen_self=yes
12833     ;;
12834
12835   mingw* | pw32* | cegcc*)
12836     lt_cv_dlopen=LoadLibrary
12837     lt_cv_dlopen_libs=
12838     ;;
12839
12840   cygwin*)
12841     lt_cv_dlopen=dlopen
12842     lt_cv_dlopen_libs=
12843     ;;
12844
12845   darwin*)
12846     # if libdl is installed we need to link against it
12847     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12848 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12849 if ${ac_cv_lib_dl_dlopen+:} false; then :
12850   $as_echo_n "(cached) " >&6
12851 else
12852   ac_check_lib_save_LIBS=$LIBS
12853 LIBS="-ldl  $LIBS"
12854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12855 /* end confdefs.h.  */
12856
12857 /* Override any GCC internal prototype to avoid an error.
12858    Use char because int might match the return type of a GCC
12859    builtin and then its argument prototype would still apply.  */
12860 #ifdef __cplusplus
12861 extern "C"
12862 #endif
12863 char dlopen ();
12864 int
12865 main ()
12866 {
12867 return dlopen ();
12868   ;
12869   return 0;
12870 }
12871 _ACEOF
12872 if ac_fn_c_try_link "$LINENO"; then :
12873   ac_cv_lib_dl_dlopen=yes
12874 else
12875   ac_cv_lib_dl_dlopen=no
12876 fi
12877 rm -f core conftest.err conftest.$ac_objext \
12878     conftest$ac_exeext conftest.$ac_ext
12879 LIBS=$ac_check_lib_save_LIBS
12880 fi
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12882 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12883 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12884   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12885 else
12886
12887     lt_cv_dlopen=dyld
12888     lt_cv_dlopen_libs=
12889     lt_cv_dlopen_self=yes
12890
12891 fi
12892
12893     ;;
12894
12895   tpf*)
12896     # Don't try to run any link tests for TPF.  We know it's impossible
12897     # because TPF is a cross-compiler, and we know how we open DSOs.
12898     lt_cv_dlopen=dlopen
12899     lt_cv_dlopen_libs=
12900     lt_cv_dlopen_self=no
12901     ;;
12902
12903   *)
12904     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12905 if test "x$ac_cv_func_shl_load" = xyes; then :
12906   lt_cv_dlopen=shl_load
12907 else
12908   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12909 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12910 if ${ac_cv_lib_dld_shl_load+:} false; then :
12911   $as_echo_n "(cached) " >&6
12912 else
12913   ac_check_lib_save_LIBS=$LIBS
12914 LIBS="-ldld  $LIBS"
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h.  */
12917
12918 /* Override any GCC internal prototype to avoid an error.
12919    Use char because int might match the return type of a GCC
12920    builtin and then its argument prototype would still apply.  */
12921 #ifdef __cplusplus
12922 extern "C"
12923 #endif
12924 char shl_load ();
12925 int
12926 main ()
12927 {
12928 return shl_load ();
12929   ;
12930   return 0;
12931 }
12932 _ACEOF
12933 if ac_fn_c_try_link "$LINENO"; then :
12934   ac_cv_lib_dld_shl_load=yes
12935 else
12936   ac_cv_lib_dld_shl_load=no
12937 fi
12938 rm -f core conftest.err conftest.$ac_objext \
12939     conftest$ac_exeext conftest.$ac_ext
12940 LIBS=$ac_check_lib_save_LIBS
12941 fi
12942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12943 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12944 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12945   lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
12946 else
12947   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12948 if test "x$ac_cv_func_dlopen" = xyes; then :
12949   lt_cv_dlopen=dlopen
12950 else
12951   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12952 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12953 if ${ac_cv_lib_dl_dlopen+:} false; then :
12954   $as_echo_n "(cached) " >&6
12955 else
12956   ac_check_lib_save_LIBS=$LIBS
12957 LIBS="-ldl  $LIBS"
12958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12959 /* end confdefs.h.  */
12960
12961 /* Override any GCC internal prototype to avoid an error.
12962    Use char because int might match the return type of a GCC
12963    builtin and then its argument prototype would still apply.  */
12964 #ifdef __cplusplus
12965 extern "C"
12966 #endif
12967 char dlopen ();
12968 int
12969 main ()
12970 {
12971 return dlopen ();
12972   ;
12973   return 0;
12974 }
12975 _ACEOF
12976 if ac_fn_c_try_link "$LINENO"; then :
12977   ac_cv_lib_dl_dlopen=yes
12978 else
12979   ac_cv_lib_dl_dlopen=no
12980 fi
12981 rm -f core conftest.err conftest.$ac_objext \
12982     conftest$ac_exeext conftest.$ac_ext
12983 LIBS=$ac_check_lib_save_LIBS
12984 fi
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12986 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12987 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12988   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
12989 else
12990   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12991 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12992 if ${ac_cv_lib_svld_dlopen+:} false; then :
12993   $as_echo_n "(cached) " >&6
12994 else
12995   ac_check_lib_save_LIBS=$LIBS
12996 LIBS="-lsvld  $LIBS"
12997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12998 /* end confdefs.h.  */
12999
13000 /* Override any GCC internal prototype to avoid an error.
13001    Use char because int might match the return type of a GCC
13002    builtin and then its argument prototype would still apply.  */
13003 #ifdef __cplusplus
13004 extern "C"
13005 #endif
13006 char dlopen ();
13007 int
13008 main ()
13009 {
13010 return dlopen ();
13011   ;
13012   return 0;
13013 }
13014 _ACEOF
13015 if ac_fn_c_try_link "$LINENO"; then :
13016   ac_cv_lib_svld_dlopen=yes
13017 else
13018   ac_cv_lib_svld_dlopen=no
13019 fi
13020 rm -f core conftest.err conftest.$ac_objext \
13021     conftest$ac_exeext conftest.$ac_ext
13022 LIBS=$ac_check_lib_save_LIBS
13023 fi
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
13025 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
13026 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
13027   lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
13028 else
13029   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
13030 $as_echo_n "checking for dld_link in -ldld... " >&6; }
13031 if ${ac_cv_lib_dld_dld_link+:} false; then :
13032   $as_echo_n "(cached) " >&6
13033 else
13034   ac_check_lib_save_LIBS=$LIBS
13035 LIBS="-ldld  $LIBS"
13036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13037 /* end confdefs.h.  */
13038
13039 /* Override any GCC internal prototype to avoid an error.
13040    Use char because int might match the return type of a GCC
13041    builtin and then its argument prototype would still apply.  */
13042 #ifdef __cplusplus
13043 extern "C"
13044 #endif
13045 char dld_link ();
13046 int
13047 main ()
13048 {
13049 return dld_link ();
13050   ;
13051   return 0;
13052 }
13053 _ACEOF
13054 if ac_fn_c_try_link "$LINENO"; then :
13055   ac_cv_lib_dld_dld_link=yes
13056 else
13057   ac_cv_lib_dld_dld_link=no
13058 fi
13059 rm -f core conftest.err conftest.$ac_objext \
13060     conftest$ac_exeext conftest.$ac_ext
13061 LIBS=$ac_check_lib_save_LIBS
13062 fi
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
13064 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
13065 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
13066   lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
13067 fi
13068
13069
13070 fi
13071
13072
13073 fi
13074
13075
13076 fi
13077
13078
13079 fi
13080
13081
13082 fi
13083
13084     ;;
13085   esac
13086
13087   if test no = "$lt_cv_dlopen"; then
13088     enable_dlopen=no
13089   else
13090     enable_dlopen=yes
13091   fi
13092
13093   case $lt_cv_dlopen in
13094   dlopen)
13095     save_CPPFLAGS=$CPPFLAGS
13096     test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
13097
13098     save_LDFLAGS=$LDFLAGS
13099     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
13100
13101     save_LIBS=$LIBS
13102     LIBS="$lt_cv_dlopen_libs $LIBS"
13103
13104     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
13105 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
13106 if ${lt_cv_dlopen_self+:} false; then :
13107   $as_echo_n "(cached) " >&6
13108 else
13109           if test yes = "$cross_compiling"; then :
13110   lt_cv_dlopen_self=cross
13111 else
13112   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13113   lt_status=$lt_dlunknown
13114   cat > conftest.$ac_ext <<_LT_EOF
13115 #line $LINENO "configure"
13116 #include "confdefs.h"
13117
13118 #if HAVE_DLFCN_H
13119 #include <dlfcn.h>
13120 #endif
13121
13122 #include <stdio.h>
13123
13124 #ifdef RTLD_GLOBAL
13125 #  define LT_DLGLOBAL           RTLD_GLOBAL
13126 #else
13127 #  ifdef DL_GLOBAL
13128 #    define LT_DLGLOBAL         DL_GLOBAL
13129 #  else
13130 #    define LT_DLGLOBAL         0
13131 #  endif
13132 #endif
13133
13134 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13135    find out it does not work in some platform. */
13136 #ifndef LT_DLLAZY_OR_NOW
13137 #  ifdef RTLD_LAZY
13138 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13139 #  else
13140 #    ifdef DL_LAZY
13141 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13142 #    else
13143 #      ifdef RTLD_NOW
13144 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13145 #      else
13146 #        ifdef DL_NOW
13147 #          define LT_DLLAZY_OR_NOW      DL_NOW
13148 #        else
13149 #          define LT_DLLAZY_OR_NOW      0
13150 #        endif
13151 #      endif
13152 #    endif
13153 #  endif
13154 #endif
13155
13156 /* When -fvisibility=hidden is used, assume the code has been annotated
13157    correspondingly for the symbols needed.  */
13158 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13159 int fnord () __attribute__((visibility("default")));
13160 #endif
13161
13162 int fnord () { return 42; }
13163 int main ()
13164 {
13165   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13166   int status = $lt_dlunknown;
13167
13168   if (self)
13169     {
13170       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13171       else
13172         {
13173           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13174           else puts (dlerror ());
13175         }
13176       /* dlclose (self); */
13177     }
13178   else
13179     puts (dlerror ());
13180
13181   return status;
13182 }
13183 _LT_EOF
13184   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13185   (eval $ac_link) 2>&5
13186   ac_status=$?
13187   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13188   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13189     (./conftest; exit; ) >&5 2>/dev/null
13190     lt_status=$?
13191     case x$lt_status in
13192       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
13193       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
13194       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
13195     esac
13196   else :
13197     # compilation failed
13198     lt_cv_dlopen_self=no
13199   fi
13200 fi
13201 rm -fr conftest*
13202
13203
13204 fi
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
13206 $as_echo "$lt_cv_dlopen_self" >&6; }
13207
13208     if test yes = "$lt_cv_dlopen_self"; then
13209       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
13210       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
13211 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
13212 if ${lt_cv_dlopen_self_static+:} false; then :
13213   $as_echo_n "(cached) " >&6
13214 else
13215           if test yes = "$cross_compiling"; then :
13216   lt_cv_dlopen_self_static=cross
13217 else
13218   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
13219   lt_status=$lt_dlunknown
13220   cat > conftest.$ac_ext <<_LT_EOF
13221 #line $LINENO "configure"
13222 #include "confdefs.h"
13223
13224 #if HAVE_DLFCN_H
13225 #include <dlfcn.h>
13226 #endif
13227
13228 #include <stdio.h>
13229
13230 #ifdef RTLD_GLOBAL
13231 #  define LT_DLGLOBAL           RTLD_GLOBAL
13232 #else
13233 #  ifdef DL_GLOBAL
13234 #    define LT_DLGLOBAL         DL_GLOBAL
13235 #  else
13236 #    define LT_DLGLOBAL         0
13237 #  endif
13238 #endif
13239
13240 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
13241    find out it does not work in some platform. */
13242 #ifndef LT_DLLAZY_OR_NOW
13243 #  ifdef RTLD_LAZY
13244 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
13245 #  else
13246 #    ifdef DL_LAZY
13247 #      define LT_DLLAZY_OR_NOW          DL_LAZY
13248 #    else
13249 #      ifdef RTLD_NOW
13250 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
13251 #      else
13252 #        ifdef DL_NOW
13253 #          define LT_DLLAZY_OR_NOW      DL_NOW
13254 #        else
13255 #          define LT_DLLAZY_OR_NOW      0
13256 #        endif
13257 #      endif
13258 #    endif
13259 #  endif
13260 #endif
13261
13262 /* When -fvisibility=hidden is used, assume the code has been annotated
13263    correspondingly for the symbols needed.  */
13264 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
13265 int fnord () __attribute__((visibility("default")));
13266 #endif
13267
13268 int fnord () { return 42; }
13269 int main ()
13270 {
13271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
13272   int status = $lt_dlunknown;
13273
13274   if (self)
13275     {
13276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
13277       else
13278         {
13279           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
13280           else puts (dlerror ());
13281         }
13282       /* dlclose (self); */
13283     }
13284   else
13285     puts (dlerror ());
13286
13287   return status;
13288 }
13289 _LT_EOF
13290   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13291   (eval $ac_link) 2>&5
13292   ac_status=$?
13293   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13294   test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
13295     (./conftest; exit; ) >&5 2>/dev/null
13296     lt_status=$?
13297     case x$lt_status in
13298       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
13299       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
13300       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
13301     esac
13302   else :
13303     # compilation failed
13304     lt_cv_dlopen_self_static=no
13305   fi
13306 fi
13307 rm -fr conftest*
13308
13309
13310 fi
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
13312 $as_echo "$lt_cv_dlopen_self_static" >&6; }
13313     fi
13314
13315     CPPFLAGS=$save_CPPFLAGS
13316     LDFLAGS=$save_LDFLAGS
13317     LIBS=$save_LIBS
13318     ;;
13319   esac
13320
13321   case $lt_cv_dlopen_self in
13322   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
13323   *) enable_dlopen_self=unknown ;;
13324   esac
13325
13326   case $lt_cv_dlopen_self_static in
13327   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13328   *) enable_dlopen_self_static=unknown ;;
13329   esac
13330 fi
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341
13342
13343
13344
13345
13346
13347
13348 striplib=
13349 old_striplib=
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13351 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13352 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13353   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13354   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13356 $as_echo "yes" >&6; }
13357 else
13358 # FIXME - insert some real tests, host_os isn't really good enough
13359   case $host_os in
13360   darwin*)
13361     if test -n "$STRIP"; then
13362       striplib="$STRIP -x"
13363       old_striplib="$STRIP -S"
13364       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13365 $as_echo "yes" >&6; }
13366     else
13367       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368 $as_echo "no" >&6; }
13369     fi
13370     ;;
13371   *)
13372     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13373 $as_echo "no" >&6; }
13374     ;;
13375   esac
13376 fi
13377
13378
13379
13380
13381
13382
13383
13384
13385
13386
13387
13388
13389   # Report what library types will actually be built
13390   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13391 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13392   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13393 $as_echo "$can_build_shared" >&6; }
13394
13395   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13396 $as_echo_n "checking whether to build shared libraries... " >&6; }
13397   test no = "$can_build_shared" && enable_shared=no
13398
13399   # On AIX, shared libraries and static libraries use the same namespace, and
13400   # are all built from PIC.
13401   case $host_os in
13402   aix3*)
13403     test yes = "$enable_shared" && enable_static=no
13404     if test -n "$RANLIB"; then
13405       archive_cmds="$archive_cmds~\$RANLIB \$lib"
13406       postinstall_cmds='$RANLIB $lib'
13407     fi
13408     ;;
13409
13410   aix[4-9]*)
13411     if test ia64 != "$host_cpu"; then
13412       case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
13413       yes,aix,yes) ;;                   # shared object as lib.so file only
13414       yes,svr4,*) ;;                    # shared object as lib.so archive member only
13415       yes,*) enable_static=no ;;        # shared object in lib.a archive as well
13416       esac
13417     fi
13418     ;;
13419   esac
13420   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13421 $as_echo "$enable_shared" >&6; }
13422
13423   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13424 $as_echo_n "checking whether to build static libraries... " >&6; }
13425   # Make sure either enable_shared or enable_static is yes.
13426   test yes = "$enable_shared" || enable_static=yes
13427   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13428 $as_echo "$enable_static" >&6; }
13429
13430
13431
13432
13433 fi
13434 ac_ext=c
13435 ac_cpp='$CPP $CPPFLAGS'
13436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13439
13440 CC=$lt_save_CC
13441
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453
13454
13455
13456         ac_config_commands="$ac_config_commands libtool"
13457
13458
13459
13460
13461 # Only expand once:
13462
13463
13464
13465
13466 LIBT_CURRENT=10
13467 LIBT_REVISION=2
13468
13469
13470 LIBT_AGE=9
13471
13472 LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
13473
13474
13475 LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
13476
13477
13478 PKGCONFIG_REQUIRES=
13479 PKGCONFIG_REQUIRES_PRIVATELY=
13480
13481
13482 case "$host" in
13483   *-*-mingw*)
13484     os_win32=yes
13485     ;;
13486   *)
13487     os_win32=no
13488 esac
13489  if test "$os_win32" = "yes"; then
13490   OS_WIN32_TRUE=
13491   OS_WIN32_FALSE='#'
13492 else
13493   OS_WIN32_TRUE='#'
13494   OS_WIN32_FALSE=
13495 fi
13496
13497
13498 if test "$os_win32" = "yes"; then
13499   # Extract the first word of "lib.exe", so it can be a program name with args.
13500 set dummy lib.exe; ac_word=$2
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13502 $as_echo_n "checking for $ac_word... " >&6; }
13503 if ${ac_cv_prog_ms_librarian+:} false; then :
13504   $as_echo_n "(cached) " >&6
13505 else
13506   if test -n "$ms_librarian"; then
13507   ac_cv_prog_ms_librarian="$ms_librarian" # Let the user override the test.
13508 else
13509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13510 for as_dir in $PATH
13511 do
13512   IFS=$as_save_IFS
13513   test -z "$as_dir" && as_dir=.
13514     for ac_exec_ext in '' $ac_executable_extensions; do
13515   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13516     ac_cv_prog_ms_librarian="yes"
13517     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13518     break 2
13519   fi
13520 done
13521   done
13522 IFS=$as_save_IFS
13523
13524   test -z "$ac_cv_prog_ms_librarian" && ac_cv_prog_ms_librarian="no"
13525 fi
13526 fi
13527 ms_librarian=$ac_cv_prog_ms_librarian
13528 if test -n "$ms_librarian"; then
13529   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ms_librarian" >&5
13530 $as_echo "$ms_librarian" >&6; }
13531 else
13532   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13533 $as_echo "no" >&6; }
13534 fi
13535
13536
13537 fi
13538  if test x$ms_librarian = xyes; then
13539   MS_LIB_AVAILABLE_TRUE=
13540   MS_LIB_AVAILABLE_FALSE='#'
13541 else
13542   MS_LIB_AVAILABLE_TRUE='#'
13543   MS_LIB_AVAILABLE_FALSE=
13544 fi
13545
13546
13547 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default"
13548 if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then :
13549   SUNCC="yes"
13550 else
13551   SUNCC="no"
13552 fi
13553
13554 WARN_CFLAGS=""
13555 WARNING_CPP_DIRECTIVE="no"
13556 if test "x$GCC" = "xyes"; then
13557         WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
13558         -Wmissing-prototypes -Wmissing-declarations \
13559         -Wnested-externs -fno-strict-aliasing"
13560         WARNING_CPP_DIRECTIVE="yes"
13561 elif test "x$SUNCC" = "xyes"; then
13562         WARN_CFLAGS="-v -fd"
13563         WARNING_CPP_DIRECTIVE="yes"
13564 fi
13565 if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
13566
13567 cat >>confdefs.h <<_ACEOF
13568 #define HAVE_WARNING_CPP_DIRECTIVE 1
13569 _ACEOF
13570
13571 fi
13572
13573
13574
13575
13576 # Put a plausible default for CC_FOR_BUILD in Makefile.
13577 if test -z "$CC_FOR_BUILD"; then
13578   if test "x$cross_compiling" = "xno"; then
13579     CC_FOR_BUILD='$(CC)'
13580   else
13581     CC_FOR_BUILD=gcc
13582   fi
13583 fi
13584
13585 # Also set EXEEXT_FOR_BUILD.
13586 if test "x$cross_compiling" = "xno"; then
13587   EXEEXT_FOR_BUILD='$(EXEEXT)'
13588 else
13589   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
13590 $as_echo_n "checking for build system executable suffix... " >&6; }
13591 if ${bfd_cv_build_exeext+:} false; then :
13592   $as_echo_n "(cached) " >&6
13593 else
13594   rm -f conftest*
13595      echo 'int main () { return 0; }' > conftest.c
13596      bfd_cv_build_exeext=
13597      ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
13598      for file in conftest.*; do
13599        case $file in
13600        *.c | *.o | *.obj | *.ilk | *.pdb) ;;
13601        *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
13602        esac
13603      done
13604      rm -f conftest*
13605      test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no
13606 fi
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5
13608 $as_echo "$bfd_cv_build_exeext" >&6; }
13609   EXEEXT_FOR_BUILD=""
13610   test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
13611 fi
13612
13613
13614  if test $cross_compiling = yes; then
13615   CROSS_COMPILING_TRUE=
13616   CROSS_COMPILING_FALSE='#'
13617 else
13618   CROSS_COMPILING_TRUE='#'
13619   CROSS_COMPILING_FALSE=
13620 fi
13621
13622  if test "$enable_shared" = "yes"; then
13623   ENABLE_SHARED_TRUE=
13624   ENABLE_SHARED_FALSE='#'
13625 else
13626   ENABLE_SHARED_TRUE='#'
13627   ENABLE_SHARED_FALSE=
13628 fi
13629
13630
13631
13632
13633 # Check whether --with-arch was given.
13634 if test "${with_arch+set}" = set; then :
13635   withval=$with_arch; arch="$withval"
13636 else
13637   arch=auto
13638 fi
13639
13640
13641 if test "x$arch" != xauto; then
13642
13643 cat >>confdefs.h <<_ACEOF
13644 #define FC_ARCHITECTURE "$arch"
13645 _ACEOF
13646
13647 fi
13648
13649
13650
13651 # Checks for header files.
13652 ac_header_dirent=no
13653 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13654   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
13656 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
13657 if eval \${$as_ac_Header+:} false; then :
13658   $as_echo_n "(cached) " >&6
13659 else
13660   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13661 /* end confdefs.h.  */
13662 #include <sys/types.h>
13663 #include <$ac_hdr>
13664
13665 int
13666 main ()
13667 {
13668 if ((DIR *) 0)
13669 return 0;
13670   ;
13671   return 0;
13672 }
13673 _ACEOF
13674 if ac_fn_c_try_compile "$LINENO"; then :
13675   eval "$as_ac_Header=yes"
13676 else
13677   eval "$as_ac_Header=no"
13678 fi
13679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13680 fi
13681 eval ac_res=\$$as_ac_Header
13682                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13683 $as_echo "$ac_res" >&6; }
13684 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13685   cat >>confdefs.h <<_ACEOF
13686 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13687 _ACEOF
13688
13689 ac_header_dirent=$ac_hdr; break
13690 fi
13691
13692 done
13693 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13694 if test $ac_header_dirent = dirent.h; then
13695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13696 $as_echo_n "checking for library containing opendir... " >&6; }
13697 if ${ac_cv_search_opendir+:} false; then :
13698   $as_echo_n "(cached) " >&6
13699 else
13700   ac_func_search_save_LIBS=$LIBS
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h.  */
13703
13704 /* Override any GCC internal prototype to avoid an error.
13705    Use char because int might match the return type of a GCC
13706    builtin and then its argument prototype would still apply.  */
13707 #ifdef __cplusplus
13708 extern "C"
13709 #endif
13710 char opendir ();
13711 int
13712 main ()
13713 {
13714 return opendir ();
13715   ;
13716   return 0;
13717 }
13718 _ACEOF
13719 for ac_lib in '' dir; do
13720   if test -z "$ac_lib"; then
13721     ac_res="none required"
13722   else
13723     ac_res=-l$ac_lib
13724     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13725   fi
13726   if ac_fn_c_try_link "$LINENO"; then :
13727   ac_cv_search_opendir=$ac_res
13728 fi
13729 rm -f core conftest.err conftest.$ac_objext \
13730     conftest$ac_exeext
13731   if ${ac_cv_search_opendir+:} false; then :
13732   break
13733 fi
13734 done
13735 if ${ac_cv_search_opendir+:} false; then :
13736
13737 else
13738   ac_cv_search_opendir=no
13739 fi
13740 rm conftest.$ac_ext
13741 LIBS=$ac_func_search_save_LIBS
13742 fi
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13744 $as_echo "$ac_cv_search_opendir" >&6; }
13745 ac_res=$ac_cv_search_opendir
13746 if test "$ac_res" != no; then :
13747   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13748
13749 fi
13750
13751 else
13752   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
13753 $as_echo_n "checking for library containing opendir... " >&6; }
13754 if ${ac_cv_search_opendir+:} false; then :
13755   $as_echo_n "(cached) " >&6
13756 else
13757   ac_func_search_save_LIBS=$LIBS
13758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13759 /* end confdefs.h.  */
13760
13761 /* Override any GCC internal prototype to avoid an error.
13762    Use char because int might match the return type of a GCC
13763    builtin and then its argument prototype would still apply.  */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char opendir ();
13768 int
13769 main ()
13770 {
13771 return opendir ();
13772   ;
13773   return 0;
13774 }
13775 _ACEOF
13776 for ac_lib in '' x; do
13777   if test -z "$ac_lib"; then
13778     ac_res="none required"
13779   else
13780     ac_res=-l$ac_lib
13781     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13782   fi
13783   if ac_fn_c_try_link "$LINENO"; then :
13784   ac_cv_search_opendir=$ac_res
13785 fi
13786 rm -f core conftest.err conftest.$ac_objext \
13787     conftest$ac_exeext
13788   if ${ac_cv_search_opendir+:} false; then :
13789   break
13790 fi
13791 done
13792 if ${ac_cv_search_opendir+:} false; then :
13793
13794 else
13795   ac_cv_search_opendir=no
13796 fi
13797 rm conftest.$ac_ext
13798 LIBS=$ac_func_search_save_LIBS
13799 fi
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
13801 $as_echo "$ac_cv_search_opendir" >&6; }
13802 ac_res=$ac_cv_search_opendir
13803 if test "$ac_res" != no; then :
13804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13805
13806 fi
13807
13808 fi
13809
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
13811 $as_echo_n "checking for ANSI C header files... " >&6; }
13812 if ${ac_cv_header_stdc+:} false; then :
13813   $as_echo_n "(cached) " >&6
13814 else
13815   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13816 /* end confdefs.h.  */
13817 #include <stdlib.h>
13818 #include <stdarg.h>
13819 #include <string.h>
13820 #include <float.h>
13821
13822 int
13823 main ()
13824 {
13825
13826   ;
13827   return 0;
13828 }
13829 _ACEOF
13830 if ac_fn_c_try_compile "$LINENO"; then :
13831   ac_cv_header_stdc=yes
13832 else
13833   ac_cv_header_stdc=no
13834 fi
13835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13836
13837 if test $ac_cv_header_stdc = yes; then
13838   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
13839   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13840 /* end confdefs.h.  */
13841 #include <string.h>
13842
13843 _ACEOF
13844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13845   $EGREP "memchr" >/dev/null 2>&1; then :
13846
13847 else
13848   ac_cv_header_stdc=no
13849 fi
13850 rm -f conftest*
13851
13852 fi
13853
13854 if test $ac_cv_header_stdc = yes; then
13855   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13856   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13857 /* end confdefs.h.  */
13858 #include <stdlib.h>
13859
13860 _ACEOF
13861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13862   $EGREP "free" >/dev/null 2>&1; then :
13863
13864 else
13865   ac_cv_header_stdc=no
13866 fi
13867 rm -f conftest*
13868
13869 fi
13870
13871 if test $ac_cv_header_stdc = yes; then
13872   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13873   if test "$cross_compiling" = yes; then :
13874   :
13875 else
13876   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13877 /* end confdefs.h.  */
13878 #include <ctype.h>
13879 #include <stdlib.h>
13880 #if ((' ' & 0x0FF) == 0x020)
13881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13883 #else
13884 # define ISLOWER(c) \
13885                    (('a' <= (c) && (c) <= 'i') \
13886                      || ('j' <= (c) && (c) <= 'r') \
13887                      || ('s' <= (c) && (c) <= 'z'))
13888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13889 #endif
13890
13891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13892 int
13893 main ()
13894 {
13895   int i;
13896   for (i = 0; i < 256; i++)
13897     if (XOR (islower (i), ISLOWER (i))
13898         || toupper (i) != TOUPPER (i))
13899       return 2;
13900   return 0;
13901 }
13902 _ACEOF
13903 if ac_fn_c_try_run "$LINENO"; then :
13904
13905 else
13906   ac_cv_header_stdc=no
13907 fi
13908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13909   conftest.$ac_objext conftest.beam conftest.$ac_ext
13910 fi
13911
13912 fi
13913 fi
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13915 $as_echo "$ac_cv_header_stdc" >&6; }
13916 if test $ac_cv_header_stdc = yes; then
13917
13918 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13919
13920 fi
13921
13922 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
13923 do :
13924   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13925 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13926 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13927   cat >>confdefs.h <<_ACEOF
13928 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13929 _ACEOF
13930
13931 fi
13932
13933 done
13934
13935 # ------ AX CREATE STDINT H -------------------------------------
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
13937 $as_echo_n "checking for stdint types... " >&6; }
13938 ac_stdint_h=`echo src/fcstdint.h`
13939 # try to shortcircuit - if the default include path of the compiler
13940 # can find a "stdint.h" header then we assume that all compilers can.
13941 if ${ac_cv_header_stdint_t+:} false; then :
13942   $as_echo_n "(cached) " >&6
13943 else
13944
13945 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
13946 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
13947 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
13948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13949 /* end confdefs.h.  */
13950 #include <stdint.h>
13951 int
13952 main ()
13953 {
13954 int_least32_t v = 0;
13955   ;
13956   return 0;
13957 }
13958 _ACEOF
13959 if ac_fn_c_try_compile "$LINENO"; then :
13960   ac_cv_stdint_result="(assuming C99 compatible system)"
13961  ac_cv_header_stdint_t="stdint.h";
13962 else
13963   ac_cv_header_stdint_t=""
13964 fi
13965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13966 if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
13967 CFLAGS="-std=c99"
13968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13969 /* end confdefs.h.  */
13970 #include <stdint.h>
13971 int
13972 main ()
13973 {
13974 int_least32_t v = 0;
13975   ;
13976   return 0;
13977 }
13978 _ACEOF
13979 if ac_fn_c_try_compile "$LINENO"; then :
13980   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&5
13981 $as_echo "$as_me: WARNING: your GCC compiler has a defunct stdint.h for its default-mode" >&2;}
13982 fi
13983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13984 fi
13985 CXXFLAGS="$old_CXXFLAGS"
13986 CPPFLAGS="$old_CPPFLAGS"
13987 CFLAGS="$old_CFLAGS"
13988 fi
13989
13990
13991 v="... $ac_cv_header_stdint_h"
13992 if test "$ac_stdint_h" = "stdint.h" ; then
13993  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
13994 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
13995 elif test "$ac_stdint_h" = "inttypes.h" ; then
13996  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
13997 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
13998 elif test "_$ac_cv_header_stdint_t" = "_" ; then
13999  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
14000 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
14001 else
14002  ac_cv_header_stdint="$ac_cv_header_stdint_t"
14003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
14004 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
14005 fi
14006
14007 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
14008
14009
14010 inttype_headers=`echo  | sed -e 's/,/ /g'`
14011
14012 ac_cv_stdint_result="(no helpful system typedefs seen)"
14013
14014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14015 $as_echo_n "checking for stdint uintptr_t... " >&6; }
14016 if ${ac_cv_header_stdint_x+:} false; then :
14017   $as_echo_n "(cached) " >&6
14018 else
14019
14020  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
14021   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14022 $as_echo "(..)" >&6; }
14023   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers
14024   do
14025    unset ac_cv_type_uintptr_t
14026    unset ac_cv_type_uint64_t
14027    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
14028 "
14029 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14030   ac_cv_header_stdint_x=$i
14031 else
14032   continue
14033 fi
14034
14035    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14036 "
14037 if test "x$ac_cv_type_uint64_t" = xyes; then :
14038   and64="/uint64_t"
14039 else
14040   and64=""
14041 fi
14042
14043    ac_cv_stdint_result="(seen uintptr_t$and64 in $i)"
14044  break
14045   done
14046   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
14047 $as_echo_n "checking for stdint uintptr_t... " >&6; }
14048
14049 fi
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
14051 $as_echo "$ac_cv_header_stdint_x" >&6; }
14052
14053
14054 if test "_$ac_cv_header_stdint_x" = "_" ; then
14055
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14057 $as_echo_n "checking for stdint uint32_t... " >&6; }
14058 if ${ac_cv_header_stdint_o+:} false; then :
14059   $as_echo_n "(cached) " >&6
14060 else
14061
14062  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
14063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14064 $as_echo "(..)" >&6; }
14065   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers
14066   do
14067    unset ac_cv_type_uint32_t
14068    unset ac_cv_type_uint64_t
14069    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
14070 "
14071 if test "x$ac_cv_type_uint32_t" = xyes; then :
14072   ac_cv_header_stdint_o=$i
14073 else
14074   continue
14075 fi
14076
14077    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
14078 "
14079 if test "x$ac_cv_type_uint64_t" = xyes; then :
14080   and64="/uint64_t"
14081 else
14082   and64=""
14083 fi
14084
14085    ac_cv_stdint_result="(seen uint32_t$and64 in $i)"
14086  break
14087    break;
14088   done
14089   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
14090 $as_echo_n "checking for stdint uint32_t... " >&6; }
14091
14092 fi
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
14094 $as_echo "$ac_cv_header_stdint_o" >&6; }
14095
14096 fi
14097
14098 if test "_$ac_cv_header_stdint_x" = "_" ; then
14099 if test "_$ac_cv_header_stdint_o" = "_" ; then
14100
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14102 $as_echo_n "checking for stdint u_int32_t... " >&6; }
14103 if ${ac_cv_header_stdint_u+:} false; then :
14104   $as_echo_n "(cached) " >&6
14105 else
14106
14107  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
14108   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14109 $as_echo "(..)" >&6; }
14110   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
14111    unset ac_cv_type_u_int32_t
14112    unset ac_cv_type_u_int64_t
14113    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
14114 "
14115 if test "x$ac_cv_type_u_int32_t" = xyes; then :
14116   ac_cv_header_stdint_u=$i
14117 else
14118   continue
14119 fi
14120
14121    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
14122 "
14123 if test "x$ac_cv_type_u_int64_t" = xyes; then :
14124   and64="/u_int64_t"
14125 else
14126   and64=""
14127 fi
14128
14129    ac_cv_stdint_result="(seen u_int32_t$and64 in $i)"
14130  break
14131    break;
14132   done
14133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
14134 $as_echo_n "checking for stdint u_int32_t... " >&6; }
14135
14136 fi
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
14138 $as_echo "$ac_cv_header_stdint_u" >&6; }
14139
14140 fi fi
14141
14142 if test "_$ac_cv_header_stdint_x" = "_" ; then
14143    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
14144 $as_echo_n "checking for stdint datatype model... " >&6; }
14145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
14146 $as_echo "(..)" >&6; }
14147
14148    # The cast to long int works around a bug in the HP C Compiler
14149 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14150 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14151 # This bug is HP SR number 8606223364.
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
14153 $as_echo_n "checking size of char... " >&6; }
14154 if ${ac_cv_sizeof_char+:} false; then :
14155   $as_echo_n "(cached) " >&6
14156 else
14157   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
14158
14159 else
14160   if test "$ac_cv_type_char" = yes; then
14161      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14162 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14163 as_fn_error 77 "cannot compute sizeof (char)
14164 See \`config.log' for more details" "$LINENO" 5; }
14165    else
14166      ac_cv_sizeof_char=0
14167    fi
14168 fi
14169
14170 fi
14171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
14172 $as_echo "$ac_cv_sizeof_char" >&6; }
14173
14174
14175
14176 cat >>confdefs.h <<_ACEOF
14177 #define SIZEOF_CHAR $ac_cv_sizeof_char
14178 _ACEOF
14179
14180
14181    # The cast to long int works around a bug in the HP C Compiler
14182 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14183 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14184 # This bug is HP SR number 8606223364.
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
14186 $as_echo_n "checking size of short... " >&6; }
14187 if ${ac_cv_sizeof_short+:} false; then :
14188   $as_echo_n "(cached) " >&6
14189 else
14190   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
14191
14192 else
14193   if test "$ac_cv_type_short" = yes; then
14194      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14196 as_fn_error 77 "cannot compute sizeof (short)
14197 See \`config.log' for more details" "$LINENO" 5; }
14198    else
14199      ac_cv_sizeof_short=0
14200    fi
14201 fi
14202
14203 fi
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
14205 $as_echo "$ac_cv_sizeof_short" >&6; }
14206
14207
14208
14209 cat >>confdefs.h <<_ACEOF
14210 #define SIZEOF_SHORT $ac_cv_sizeof_short
14211 _ACEOF
14212
14213
14214    # The cast to long int works around a bug in the HP C Compiler
14215 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14216 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14217 # This bug is HP SR number 8606223364.
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
14219 $as_echo_n "checking size of int... " >&6; }
14220 if ${ac_cv_sizeof_int+:} false; then :
14221   $as_echo_n "(cached) " >&6
14222 else
14223   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
14224
14225 else
14226   if test "$ac_cv_type_int" = yes; then
14227      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14229 as_fn_error 77 "cannot compute sizeof (int)
14230 See \`config.log' for more details" "$LINENO" 5; }
14231    else
14232      ac_cv_sizeof_int=0
14233    fi
14234 fi
14235
14236 fi
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
14238 $as_echo "$ac_cv_sizeof_int" >&6; }
14239
14240
14241
14242 cat >>confdefs.h <<_ACEOF
14243 #define SIZEOF_INT $ac_cv_sizeof_int
14244 _ACEOF
14245
14246
14247    # The cast to long int works around a bug in the HP C Compiler
14248 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14249 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14250 # This bug is HP SR number 8606223364.
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
14252 $as_echo_n "checking size of long... " >&6; }
14253 if ${ac_cv_sizeof_long+:} false; then :
14254   $as_echo_n "(cached) " >&6
14255 else
14256   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
14257
14258 else
14259   if test "$ac_cv_type_long" = yes; then
14260      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14261 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14262 as_fn_error 77 "cannot compute sizeof (long)
14263 See \`config.log' for more details" "$LINENO" 5; }
14264    else
14265      ac_cv_sizeof_long=0
14266    fi
14267 fi
14268
14269 fi
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
14271 $as_echo "$ac_cv_sizeof_long" >&6; }
14272
14273
14274
14275 cat >>confdefs.h <<_ACEOF
14276 #define SIZEOF_LONG $ac_cv_sizeof_long
14277 _ACEOF
14278
14279
14280    # The cast to long int works around a bug in the HP C Compiler
14281 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
14282 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
14283 # This bug is HP SR number 8606223364.
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
14285 $as_echo_n "checking size of void*... " >&6; }
14286 if ${ac_cv_sizeof_voidp+:} false; then :
14287   $as_echo_n "(cached) " >&6
14288 else
14289   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
14290
14291 else
14292   if test "$ac_cv_type_voidp" = yes; then
14293      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14295 as_fn_error 77 "cannot compute sizeof (void*)
14296 See \`config.log' for more details" "$LINENO" 5; }
14297    else
14298      ac_cv_sizeof_voidp=0
14299    fi
14300 fi
14301
14302 fi
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
14304 $as_echo "$ac_cv_sizeof_voidp" >&6; }
14305
14306
14307
14308 cat >>confdefs.h <<_ACEOF
14309 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
14310 _ACEOF
14311
14312
14313    ac_cv_char_data_model=""
14314    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
14315    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
14316    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
14317    ac_cv_long_data_model=""
14318    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
14319    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
14320    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
14321    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
14322 $as_echo_n "checking data model... " >&6; }
14323    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
14324     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
14325     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
14326     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
14327     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
14328     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
14329     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
14330     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
14331     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
14332     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
14333     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
14334     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
14335     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
14336     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
14337     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
14338     222/*|333/*|444/*|666/*|888/*) :
14339                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
14340      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
14341    esac
14342    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
14343 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
14344
14345 fi
14346
14347 if test "_$ac_cv_header_stdint_x" != "_" ; then
14348    ac_cv_header_stdint="$ac_cv_header_stdint_x"
14349 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
14350    ac_cv_header_stdint="$ac_cv_header_stdint_o"
14351 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
14352    ac_cv_header_stdint="$ac_cv_header_stdint_u"
14353 else
14354    ac_cv_header_stdint="stddef.h"
14355 fi
14356
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
14358 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
14360 $as_echo "($ac_cv_header_stdint)" >&6; }
14361 unset ac_cv_type_int_least32_t
14362 unset ac_cv_type_int_fast32_t
14363 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
14364 "
14365 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14366
14367 fi
14368
14369 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
14370 "
14371 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14372
14373 fi
14374
14375 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
14376 "
14377 if test "x$ac_cv_type_intmax_t" = xyes; then :
14378
14379 fi
14380
14381
14382 fi # shortcircut to system "stdint.h"
14383 # ------------------ PREPARE VARIABLES ------------------------------
14384 if test "$GCC" = "yes" ; then
14385 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
14386 else
14387 ac_cv_stdint_message="using $CC"
14388 fi
14389
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
14391 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
14392
14393 # ----------------- DONE inttypes.h checks START header -------------
14394 ac_config_commands="$ac_config_commands $ac_stdint_h"
14395
14396
14397
14398 # Checks for typedefs, structures, and compiler characteristics.
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
14400 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
14401 if ${ac_cv_c_const+:} false; then :
14402   $as_echo_n "(cached) " >&6
14403 else
14404   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14405 /* end confdefs.h.  */
14406
14407 int
14408 main ()
14409 {
14410
14411 #ifndef __cplusplus
14412   /* Ultrix mips cc rejects this sort of thing.  */
14413   typedef int charset[2];
14414   const charset cs = { 0, 0 };
14415   /* SunOS 4.1.1 cc rejects this.  */
14416   char const *const *pcpcc;
14417   char **ppc;
14418   /* NEC SVR4.0.2 mips cc rejects this.  */
14419   struct point {int x, y;};
14420   static struct point const zero = {0,0};
14421   /* AIX XL C 1.02.0.0 rejects this.
14422      It does not let you subtract one const X* pointer from another in
14423      an arm of an if-expression whose if-part is not a constant
14424      expression */
14425   const char *g = "string";
14426   pcpcc = &g + (g ? g-g : 0);
14427   /* HPUX 7.0 cc rejects these. */
14428   ++pcpcc;
14429   ppc = (char**) pcpcc;
14430   pcpcc = (char const *const *) ppc;
14431   { /* SCO 3.2v4 cc rejects this sort of thing.  */
14432     char tx;
14433     char *t = &tx;
14434     char const *s = 0 ? (char *) 0 : (char const *) 0;
14435
14436     *t++ = 0;
14437     if (s) return 0;
14438   }
14439   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
14440     int x[] = {25, 17};
14441     const int *foo = &x[0];
14442     ++foo;
14443   }
14444   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
14445     typedef const int *iptr;
14446     iptr p = 0;
14447     ++p;
14448   }
14449   { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
14450        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
14451     struct s { int j; const int *ap[3]; } bx;
14452     struct s *b = &bx; b->j = 5;
14453   }
14454   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
14455     const int foo = 10;
14456     if (!foo) return 0;
14457   }
14458   return !cs[0] && !zero.x;
14459 #endif
14460
14461   ;
14462   return 0;
14463 }
14464 _ACEOF
14465 if ac_fn_c_try_compile "$LINENO"; then :
14466   ac_cv_c_const=yes
14467 else
14468   ac_cv_c_const=no
14469 fi
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14471 fi
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
14473 $as_echo "$ac_cv_c_const" >&6; }
14474 if test $ac_cv_c_const = no; then
14475
14476 $as_echo "#define const /**/" >>confdefs.h
14477
14478 fi
14479
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
14481 $as_echo_n "checking for inline... " >&6; }
14482 if ${ac_cv_c_inline+:} false; then :
14483   $as_echo_n "(cached) " >&6
14484 else
14485   ac_cv_c_inline=no
14486 for ac_kw in inline __inline__ __inline; do
14487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h.  */
14489 #ifndef __cplusplus
14490 typedef int foo_t;
14491 static $ac_kw foo_t static_foo () {return 0; }
14492 $ac_kw foo_t foo () {return 0; }
14493 #endif
14494
14495 _ACEOF
14496 if ac_fn_c_try_compile "$LINENO"; then :
14497   ac_cv_c_inline=$ac_kw
14498 fi
14499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14500   test "$ac_cv_c_inline" != no && break
14501 done
14502
14503 fi
14504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
14505 $as_echo "$ac_cv_c_inline" >&6; }
14506
14507 case $ac_cv_c_inline in
14508   inline | yes) ;;
14509   *)
14510     case $ac_cv_c_inline in
14511       no) ac_val=;;
14512       *) ac_val=$ac_cv_c_inline;;
14513     esac
14514     cat >>confdefs.h <<_ACEOF
14515 #ifndef __cplusplus
14516 #define inline $ac_val
14517 #endif
14518 _ACEOF
14519     ;;
14520 esac
14521
14522
14523   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flexible array members" >&5
14524 $as_echo_n "checking for flexible array members... " >&6; }
14525 if ${ac_cv_c_flexmember+:} false; then :
14526   $as_echo_n "(cached) " >&6
14527 else
14528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14529 /* end confdefs.h.  */
14530 #include <stdlib.h>
14531             #include <stdio.h>
14532             #include <stddef.h>
14533             struct s { int n; double d[]; };
14534 int
14535 main ()
14536 {
14537 int m = getchar ();
14538             struct s *p = malloc (offsetof (struct s, d)
14539                                   + m * sizeof (double));
14540             p->d[0] = 0.0;
14541             return p->d != (double *) NULL;
14542   ;
14543   return 0;
14544 }
14545 _ACEOF
14546 if ac_fn_c_try_compile "$LINENO"; then :
14547   ac_cv_c_flexmember=yes
14548 else
14549   ac_cv_c_flexmember=no
14550 fi
14551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14552 fi
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_flexmember" >&5
14554 $as_echo "$ac_cv_c_flexmember" >&6; }
14555   if test $ac_cv_c_flexmember = yes; then
14556
14557 $as_echo "#define FLEXIBLE_ARRAY_MEMBER /**/" >>confdefs.h
14558
14559   else
14560     $as_echo "#define FLEXIBLE_ARRAY_MEMBER 1" >>confdefs.h
14561
14562   fi
14563
14564 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
14565 if test "x$ac_cv_type_pid_t" = xyes; then :
14566
14567 else
14568
14569 cat >>confdefs.h <<_ACEOF
14570 #define pid_t int
14571 _ACEOF
14572
14573 fi
14574
14575
14576 # Checks for library functions.
14577 for ac_func in vprintf
14578 do :
14579   ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
14580 if test "x$ac_cv_func_vprintf" = xyes; then :
14581   cat >>confdefs.h <<_ACEOF
14582 #define HAVE_VPRINTF 1
14583 _ACEOF
14584
14585 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
14586 if test "x$ac_cv_func__doprnt" = xyes; then :
14587
14588 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
14589
14590 fi
14591
14592 fi
14593 done
14594
14595
14596
14597
14598
14599   for ac_header in $ac_header_list
14600 do :
14601   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14602 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14603 "
14604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14605   cat >>confdefs.h <<_ACEOF
14606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14607 _ACEOF
14608
14609 fi
14610
14611 done
14612
14613
14614
14615
14616
14617
14618
14619
14620 for ac_func in getpagesize
14621 do :
14622   ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14623 if test "x$ac_cv_func_getpagesize" = xyes; then :
14624   cat >>confdefs.h <<_ACEOF
14625 #define HAVE_GETPAGESIZE 1
14626 _ACEOF
14627
14628 fi
14629 done
14630
14631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14632 $as_echo_n "checking for working mmap... " >&6; }
14633 if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
14634   $as_echo_n "(cached) " >&6
14635 else
14636   if test "$cross_compiling" = yes; then :
14637   ac_cv_func_mmap_fixed_mapped=no
14638 else
14639   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h.  */
14641 $ac_includes_default
14642 /* malloc might have been renamed as rpl_malloc. */
14643 #undef malloc
14644
14645 /* Thanks to Mike Haertel and Jim Avera for this test.
14646    Here is a matrix of mmap possibilities:
14647         mmap private not fixed
14648         mmap private fixed at somewhere currently unmapped
14649         mmap private fixed at somewhere already mapped
14650         mmap shared not fixed
14651         mmap shared fixed at somewhere currently unmapped
14652         mmap shared fixed at somewhere already mapped
14653    For private mappings, we should verify that changes cannot be read()
14654    back from the file, nor mmap's back from the file at a different
14655    address.  (There have been systems where private was not correctly
14656    implemented like the infamous i386 svr4.0, and systems where the
14657    VM page cache was not coherent with the file system buffer cache
14658    like early versions of FreeBSD and possibly contemporary NetBSD.)
14659    For shared mappings, we should conversely verify that changes get
14660    propagated back to all the places they're supposed to be.
14661
14662    Grep wants private fixed already mapped.
14663    The main things grep needs to know about mmap are:
14664    * does it exist and is it safe to write into the mmap'd area
14665    * how to use it (BSD variants)  */
14666
14667 #include <fcntl.h>
14668 #include <sys/mman.h>
14669
14670 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14671 char *malloc ();
14672 #endif
14673
14674 /* This mess was copied from the GNU getpagesize.h.  */
14675 #ifndef HAVE_GETPAGESIZE
14676 # ifdef _SC_PAGESIZE
14677 #  define getpagesize() sysconf(_SC_PAGESIZE)
14678 # else /* no _SC_PAGESIZE */
14679 #  ifdef HAVE_SYS_PARAM_H
14680 #   include <sys/param.h>
14681 #   ifdef EXEC_PAGESIZE
14682 #    define getpagesize() EXEC_PAGESIZE
14683 #   else /* no EXEC_PAGESIZE */
14684 #    ifdef NBPG
14685 #     define getpagesize() NBPG * CLSIZE
14686 #     ifndef CLSIZE
14687 #      define CLSIZE 1
14688 #     endif /* no CLSIZE */
14689 #    else /* no NBPG */
14690 #     ifdef NBPC
14691 #      define getpagesize() NBPC
14692 #     else /* no NBPC */
14693 #      ifdef PAGESIZE
14694 #       define getpagesize() PAGESIZE
14695 #      endif /* PAGESIZE */
14696 #     endif /* no NBPC */
14697 #    endif /* no NBPG */
14698 #   endif /* no EXEC_PAGESIZE */
14699 #  else /* no HAVE_SYS_PARAM_H */
14700 #   define getpagesize() 8192   /* punt totally */
14701 #  endif /* no HAVE_SYS_PARAM_H */
14702 # endif /* no _SC_PAGESIZE */
14703
14704 #endif /* no HAVE_GETPAGESIZE */
14705
14706 int
14707 main ()
14708 {
14709   char *data, *data2, *data3;
14710   const char *cdata2;
14711   int i, pagesize;
14712   int fd, fd2;
14713
14714   pagesize = getpagesize ();
14715
14716   /* First, make a file with some known garbage in it. */
14717   data = (char *) malloc (pagesize);
14718   if (!data)
14719     return 1;
14720   for (i = 0; i < pagesize; ++i)
14721     *(data + i) = rand ();
14722   umask (0);
14723   fd = creat ("conftest.mmap", 0600);
14724   if (fd < 0)
14725     return 2;
14726   if (write (fd, data, pagesize) != pagesize)
14727     return 3;
14728   close (fd);
14729
14730   /* Next, check that the tail of a page is zero-filled.  File must have
14731      non-zero length, otherwise we risk SIGBUS for entire page.  */
14732   fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14733   if (fd2 < 0)
14734     return 4;
14735   cdata2 = "";
14736   if (write (fd2, cdata2, 1) != 1)
14737     return 5;
14738   data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14739   if (data2 == MAP_FAILED)
14740     return 6;
14741   for (i = 0; i < pagesize; ++i)
14742     if (*(data2 + i))
14743       return 7;
14744   close (fd2);
14745   if (munmap (data2, pagesize))
14746     return 8;
14747
14748   /* Next, try to mmap the file at a fixed address which already has
14749      something else allocated at it.  If we can, also make sure that
14750      we see the same garbage.  */
14751   fd = open ("conftest.mmap", O_RDWR);
14752   if (fd < 0)
14753     return 9;
14754   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14755                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
14756     return 10;
14757   for (i = 0; i < pagesize; ++i)
14758     if (*(data + i) != *(data2 + i))
14759       return 11;
14760
14761   /* Finally, make sure that changes to the mapped area do not
14762      percolate back to the file as seen by read().  (This is a bug on
14763      some variants of i386 svr4.0.)  */
14764   for (i = 0; i < pagesize; ++i)
14765     *(data2 + i) = *(data2 + i) + 1;
14766   data3 = (char *) malloc (pagesize);
14767   if (!data3)
14768     return 12;
14769   if (read (fd, data3, pagesize) != pagesize)
14770     return 13;
14771   for (i = 0; i < pagesize; ++i)
14772     if (*(data + i) != *(data3 + i))
14773       return 14;
14774   close (fd);
14775   return 0;
14776 }
14777 _ACEOF
14778 if ac_fn_c_try_run "$LINENO"; then :
14779   ac_cv_func_mmap_fixed_mapped=yes
14780 else
14781   ac_cv_func_mmap_fixed_mapped=no
14782 fi
14783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14784   conftest.$ac_objext conftest.beam conftest.$ac_ext
14785 fi
14786
14787 fi
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14789 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14790 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14791
14792 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14793
14794 fi
14795 rm -f conftest.mmap conftest.txt
14796
14797 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
14798 do :
14799   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
14800 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
14801 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
14802   cat >>confdefs.h <<_ACEOF
14803 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
14804 _ACEOF
14805
14806 fi
14807 done
14808
14809
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for posix_fadvise in fcntl.h" >&5
14811 $as_echo_n "checking for posix_fadvise in fcntl.h... " >&6; }
14812 if ${ac_cv_func_posix_fadvise+:} false; then :
14813   $as_echo_n "(cached) " >&6
14814 else
14815   symbol="[^a-zA-Z_0-9]posix_fadvise[^a-zA-Z_0-9]"
14816 ac_found=no
14817 for ac_header in fcntl.h ; do
14818   ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
14819   if test $ac_found != "yes" ; then
14820       if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
14821             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14822 /* end confdefs.h.  */
14823 #include <$ac_header>
14824
14825 _ACEOF
14826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14827   $EGREP "$symbol" >/dev/null 2>&1; then :
14828   ac_found="$ac_header"
14829 fi
14830 rm -f conftest*
14831
14832       fi
14833   fi
14834 done
14835 if test "$ac_found" != "no" ; then
14836   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_found" >&5
14837 $as_echo "$ac_found" >&6; }
14838   fc_func_posix_fadvise=1
14839 else
14840   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14841 $as_echo "no" >&6; }
14842   fc_func_posix_fadvise=0
14843 fi
14844
14845 fi
14846
14847
14848 cat >>confdefs.h <<_ACEOF
14849 #define HAVE_POSIX_FADVISE $fc_func_posix_fadvise
14850 _ACEOF
14851
14852
14853 #
14854 ac_fn_c_check_member "$LINENO" "struct stat" "st_mtim" "ac_cv_member_struct_stat_st_mtim" "#include <sys/stat.h>
14855 "
14856 if test "x$ac_cv_member_struct_stat_st_mtim" = xyes; then :
14857
14858 cat >>confdefs.h <<_ACEOF
14859 #define HAVE_STRUCT_STAT_ST_MTIM 1
14860 _ACEOF
14861
14862
14863 fi
14864
14865
14866 #
14867 if test "x$ac_cv_func_fstatvfs" = "xyes"; then
14868         ac_fn_c_check_member "$LINENO" "struct statvfs" "f_basetype" "ac_cv_member_struct_statvfs_f_basetype" "#include <sys/statvfs.h>
14869 "
14870 if test "x$ac_cv_member_struct_statvfs_f_basetype" = xyes; then :
14871
14872 cat >>confdefs.h <<_ACEOF
14873 #define HAVE_STRUCT_STATVFS_F_BASETYPE 1
14874 _ACEOF
14875
14876
14877 fi
14878 ac_fn_c_check_member "$LINENO" "struct statvfs" "f_fstypename" "ac_cv_member_struct_statvfs_f_fstypename" "#include <sys/statvfs.h>
14879 "
14880 if test "x$ac_cv_member_struct_statvfs_f_fstypename" = xyes; then :
14881
14882 cat >>confdefs.h <<_ACEOF
14883 #define HAVE_STRUCT_STATVFS_F_FSTYPENAME 1
14884 _ACEOF
14885
14886
14887 fi
14888
14889 fi
14890 if test "x$ac_cv_func_fstatfs" = "xyes"; then
14891         ac_fn_c_check_member "$LINENO" "struct statfs" "f_flags" "ac_cv_member_struct_statfs_f_flags" "
14892 #ifdef HAVE_SYS_VFS_H
14893 #include <sys/vfs.h>
14894 #endif
14895 #ifdef HAVE_SYS_STATFS_H
14896 #include <sys/statfs.h>
14897 #endif
14898 #ifdef HAVE_SYS_PARAM_H
14899 #include <sys/param.h>
14900 #endif
14901 #ifdef HAVE_SYS_MOUNT_H
14902 #include <sys/mount.h>
14903 #endif
14904 "
14905 if test "x$ac_cv_member_struct_statfs_f_flags" = xyes; then :
14906
14907 cat >>confdefs.h <<_ACEOF
14908 #define HAVE_STRUCT_STATFS_F_FLAGS 1
14909 _ACEOF
14910
14911
14912 fi
14913 ac_fn_c_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" "
14914 #ifdef HAVE_SYS_VFS_H
14915 #include <sys/vfs.h>
14916 #endif
14917 #ifdef HAVE_SYS_STATFS_H
14918 #include <sys/statfs.h>
14919 #endif
14920 #ifdef HAVE_SYS_PARAM_H
14921 #include <sys/param.h>
14922 #endif
14923 #ifdef HAVE_SYS_MOUNT_H
14924 #include <sys/mount.h>
14925 #endif
14926 "
14927 if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then :
14928
14929 cat >>confdefs.h <<_ACEOF
14930 #define HAVE_STRUCT_STATFS_F_FSTYPENAME 1
14931 _ACEOF
14932
14933
14934 fi
14935
14936 fi
14937 ac_fn_c_check_member "$LINENO" "struct dirent" "d_type" "ac_cv_member_struct_dirent_d_type" "#include <dirent.h>
14938 "
14939 if test "x$ac_cv_member_struct_dirent_d_type" = xyes; then :
14940
14941 cat >>confdefs.h <<_ACEOF
14942 #define HAVE_STRUCT_DIRENT_D_TYPE 1
14943 _ACEOF
14944
14945
14946 fi
14947
14948
14949 #
14950 # Checks for iconv
14951 #
14952 # Check whether --enable-iconv was given.
14953 if test "${enable_iconv+set}" = set; then :
14954   enableval=$enable_iconv;
14955 else
14956   enable_iconv=no
14957 fi
14958
14959
14960 # Check whether --with-libiconv was given.
14961 if test "${with_libiconv+set}" = set; then :
14962   withval=$with_libiconv; if test "x$withval" = "xyes"; then
14963                 libiconv_prefix=$prefix
14964          else
14965                 libiconv_prefix=$withval
14966          fi
14967 else
14968   libiconv_prefix=auto
14969 fi
14970
14971
14972 # Check whether --with-libiconv-includes was given.
14973 if test "${with_libiconv_includes+set}" = set; then :
14974   withval=$with_libiconv_includes; libiconv_includes=$withval
14975 else
14976   libiconv_includes=auto
14977 fi
14978
14979
14980 # Check whether --with-libiconv-lib was given.
14981 if test "${with_libiconv_lib+set}" = set; then :
14982   withval=$with_libiconv_lib; libiconv_lib=$withval
14983 else
14984   libiconv_lib=auto
14985 fi
14986
14987
14988 # if no libiconv,libiconv-includes,libiconv-lib are specified,
14989 # libc's iconv has a priority.
14990 if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
14991         libiconv_cflags="-I${libiconv_includes}"
14992 elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
14993         libiconv_cflags="-I${libiconv_prefix}/include"
14994 else
14995         libiconv_cflags=""
14996 fi
14997 libiconv_libs=""
14998 if test "x$libiconv_cflags" != "x"; then
14999         if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
15000                 libiconv_libs="-L${libiconv_lib} -liconv"
15001         elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
15002                 libiconv_libs="-L${libiconv_prefix}/lib -liconv"
15003         else
15004                 libiconv_libs="-liconv"
15005         fi
15006 fi
15007
15008 use_iconv=0
15009 if test "x$enable_iconv" != "xno"; then
15010         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a usable iconv" >&5
15011 $as_echo_n "checking for a usable iconv... " >&6; }
15012         if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
15013                 iconvsaved_CFLAGS="$CFLAGS"
15014                 iconvsaved_LIBS="$LIBS"
15015                 CFLAGS="$CFLAGS $libiconv_cflags"
15016                 LIBS="$LIBS $libiconv_libs"
15017
15018                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15019 /* end confdefs.h.  */
15020 #include <iconv.h>
15021 int
15022 main ()
15023 {
15024 iconv_open ("from", "to");
15025   ;
15026   return 0;
15027 }
15028 _ACEOF
15029 if ac_fn_c_try_link "$LINENO"; then :
15030   iconv_type="libiconv"
15031                          use_iconv=1
15032                          ICONV_CFLAGS="$libiconv_cflags"
15033                          ICONV_LIBS="$libiconv_libs"
15034
15035 else
15036   use_iconv=0
15037 fi
15038 rm -f core conftest.err conftest.$ac_objext \
15039     conftest$ac_exeext conftest.$ac_ext
15040
15041                 CFLAGS="$iconvsaved_CFLAGS"
15042                 LIBS="$iconvsaved_LIBS"
15043         fi
15044         if test "x$use_iconv" = "x0"; then
15045                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15046 /* end confdefs.h.  */
15047 #include <iconv.h>
15048 int
15049 main ()
15050 {
15051 iconv_open ("from", "to");
15052   ;
15053   return 0;
15054 }
15055 _ACEOF
15056 if ac_fn_c_try_link "$LINENO"; then :
15057   iconv_type="libc"
15058                          use_iconv=1
15059 else
15060   iconv_type="not found"
15061                          use_iconv=0
15062 fi
15063 rm -f core conftest.err conftest.$ac_objext \
15064     conftest$ac_exeext conftest.$ac_ext
15065         fi
15066
15067         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $iconv_type" >&5
15068 $as_echo "$iconv_type" >&6; }
15069
15070
15071 fi
15072
15073 cat >>confdefs.h <<_ACEOF
15074 #define USE_ICONV $use_iconv
15075 _ACEOF
15076
15077 #
15078 # Checks for FreeType
15079 #
15080
15081 pkg_failed=no
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5
15083 $as_echo_n "checking for FREETYPE... " >&6; }
15084
15085 if test -n "$FREETYPE_CFLAGS"; then
15086     pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS"
15087  elif test -n "$PKG_CONFIG"; then
15088     if test -n "$PKG_CONFIG" && \
15089     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15090   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15091   ac_status=$?
15092   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15093   test $ac_status = 0; }; then
15094   pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
15095                       test "x$?" != "x0" && pkg_failed=yes
15096 else
15097   pkg_failed=yes
15098 fi
15099  else
15100     pkg_failed=untried
15101 fi
15102 if test -n "$FREETYPE_LIBS"; then
15103     pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS"
15104  elif test -n "$PKG_CONFIG"; then
15105     if test -n "$PKG_CONFIG" && \
15106     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
15107   ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
15108   ac_status=$?
15109   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15110   test $ac_status = 0; }; then
15111   pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
15112                       test "x$?" != "x0" && pkg_failed=yes
15113 else
15114   pkg_failed=yes
15115 fi
15116  else
15117     pkg_failed=untried
15118 fi
15119
15120
15121
15122 if test $pkg_failed = yes; then
15123         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15124 $as_echo "no" >&6; }
15125
15126 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15127         _pkg_short_errors_supported=yes
15128 else
15129         _pkg_short_errors_supported=no
15130 fi
15131         if test $_pkg_short_errors_supported = yes; then
15132                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "freetype2" 2>&1`
15133         else
15134                 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "freetype2" 2>&1`
15135         fi
15136         # Put the nasty error message in config.log where it belongs
15137         echo "$FREETYPE_PKG_ERRORS" >&5
15138
15139         as_fn_error $? "Package requirements (freetype2) were not met:
15140
15141 $FREETYPE_PKG_ERRORS
15142
15143 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15144 installed software in a non-standard prefix.
15145
15146 Alternatively, you may set the environment variables FREETYPE_CFLAGS
15147 and FREETYPE_LIBS to avoid the need to call pkg-config.
15148 See the pkg-config man page for more details." "$LINENO" 5
15149 elif test $pkg_failed = untried; then
15150         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15151 $as_echo "no" >&6; }
15152         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15154 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15155 is in your PATH or set the PKG_CONFIG environment variable to the full
15156 path to pkg-config.
15157
15158 Alternatively, you may set the environment variables FREETYPE_CFLAGS
15159 and FREETYPE_LIBS to avoid the need to call pkg-config.
15160 See the pkg-config man page for more details.
15161
15162 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15163 See \`config.log' for more details" "$LINENO" 5; }
15164 else
15165         FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS
15166         FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS
15167         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15168 $as_echo "yes" >&6; }
15169
15170 fi
15171 PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2"
15172
15173
15174
15175
15176 fontconfig_save_libs="$LIBS"
15177 fontconfig_save_cflags="$CFLAGS"
15178 LIBS="$LIBS $FREETYPE_LIBS"
15179 CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
15180 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
15181 do :
15182   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15183 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15184 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15185   cat >>confdefs.h <<_ACEOF
15186 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15187 _ACEOF
15188
15189 fi
15190 done
15191
15192 ac_fn_c_check_member "$LINENO" "FT_Bitmap_Size" "y_ppem" "ac_cv_member_FT_Bitmap_Size_y_ppem" "#include <ft2build.h>
15193 #include FT_FREETYPE_H
15194 "
15195 if test "x$ac_cv_member_FT_Bitmap_Size_y_ppem" = xyes; then :
15196   HAVE_FT_BITMAP_SIZE_Y_PPEM=1
15197 else
15198   HAVE_FT_BITMAP_SIZE_Y_PPEM=0
15199 fi
15200
15201
15202 cat >>confdefs.h <<_ACEOF
15203 #define HAVE_FT_BITMAP_SIZE_Y_PPEM $HAVE_FT_BITMAP_SIZE_Y_PPEM
15204 _ACEOF
15205
15206 ac_fn_c_check_member "$LINENO" "TT_OS2" "usLowerOpticalPointSize" "ac_cv_member_TT_OS2_usLowerOpticalPointSize" "
15207 #include <ft2build.h>
15208 #include FT_FREETYPE_H
15209 #include FT_TRUETYPE_TABLES_H
15210 "
15211 if test "x$ac_cv_member_TT_OS2_usLowerOpticalPointSize" = xyes; then :
15212
15213 cat >>confdefs.h <<_ACEOF
15214 #define HAVE_TT_OS2_USLOWEROPTICALPOINTSIZE 1
15215 _ACEOF
15216
15217
15218 fi
15219 ac_fn_c_check_member "$LINENO" "TT_OS2" "usUpperOpticalPointSize" "ac_cv_member_TT_OS2_usUpperOpticalPointSize" "
15220 #include <ft2build.h>
15221 #include FT_FREETYPE_H
15222 #include FT_TRUETYPE_TABLES_H
15223 "
15224 if test "x$ac_cv_member_TT_OS2_usUpperOpticalPointSize" = xyes; then :
15225
15226 cat >>confdefs.h <<_ACEOF
15227 #define HAVE_TT_OS2_USUPPEROPTICALPOINTSIZE 1
15228 _ACEOF
15229
15230
15231 fi
15232
15233 CFLAGS="$fontconfig_save_cflags"
15234 LIBS="$fontconfig_save_libs"
15235
15236 #
15237 # Check expat configuration
15238 #
15239
15240 # Check whether --with-expat was given.
15241 if test "${with_expat+set}" = set; then :
15242   withval=$with_expat; expat_prefix=$withval
15243 else
15244   expat_prefix=auto
15245 fi
15246
15247
15248 # Check whether --with-expat-includes was given.
15249 if test "${with_expat_includes+set}" = set; then :
15250   withval=$with_expat_includes; expat_includes=$withval
15251 else
15252   expat_includes=auto
15253 fi
15254
15255
15256 # Check whether --with-expat-lib was given.
15257 if test "${with_expat_lib+set}" = set; then :
15258   withval=$with_expat_lib; expat_lib=$withval
15259 else
15260   expat_lib=auto
15261 fi
15262
15263
15264 if test "$enable_libxml2" != "yes"; then
15265         use_pkgconfig_for_expat=yes
15266         if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
15267
15268 pkg_failed=no
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPAT" >&5
15270 $as_echo_n "checking for EXPAT... " >&6; }
15271
15272 if test -n "$EXPAT_CFLAGS"; then
15273     pkg_cv_EXPAT_CFLAGS="$EXPAT_CFLAGS"
15274  elif test -n "$PKG_CONFIG"; then
15275     if test -n "$PKG_CONFIG" && \
15276     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15277   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15278   ac_status=$?
15279   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15280   test $ac_status = 0; }; then
15281   pkg_cv_EXPAT_CFLAGS=`$PKG_CONFIG --cflags "expat" 2>/dev/null`
15282                       test "x$?" != "x0" && pkg_failed=yes
15283 else
15284   pkg_failed=yes
15285 fi
15286  else
15287     pkg_failed=untried
15288 fi
15289 if test -n "$EXPAT_LIBS"; then
15290     pkg_cv_EXPAT_LIBS="$EXPAT_LIBS"
15291  elif test -n "$PKG_CONFIG"; then
15292     if test -n "$PKG_CONFIG" && \
15293     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"expat\""; } >&5
15294   ($PKG_CONFIG --exists --print-errors "expat") 2>&5
15295   ac_status=$?
15296   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15297   test $ac_status = 0; }; then
15298   pkg_cv_EXPAT_LIBS=`$PKG_CONFIG --libs "expat" 2>/dev/null`
15299                       test "x$?" != "x0" && pkg_failed=yes
15300 else
15301   pkg_failed=yes
15302 fi
15303  else
15304     pkg_failed=untried
15305 fi
15306
15307
15308
15309 if test $pkg_failed = yes; then
15310         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15311 $as_echo "no" >&6; }
15312
15313 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15314         _pkg_short_errors_supported=yes
15315 else
15316         _pkg_short_errors_supported=no
15317 fi
15318         if test $_pkg_short_errors_supported = yes; then
15319                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "expat" 2>&1`
15320         else
15321                 EXPAT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "expat" 2>&1`
15322         fi
15323         # Put the nasty error message in config.log where it belongs
15324         echo "$EXPAT_PKG_ERRORS" >&5
15325
15326         use_pkgconfig_for_expat=no
15327 elif test $pkg_failed = untried; then
15328         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15329 $as_echo "no" >&6; }
15330         use_pkgconfig_for_expat=no
15331 else
15332         EXPAT_CFLAGS=$pkg_cv_EXPAT_CFLAGS
15333         EXPAT_LIBS=$pkg_cv_EXPAT_LIBS
15334         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15335 $as_echo "yes" >&6; }
15336
15337 fi
15338         else
15339                 use_pkgconfig_for_expat=no
15340         fi
15341         if test "x$use_pkgconfig_for_expat" = "xno"; then
15342                 if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
15343                         EXPAT_CFLAGS="-I${expat_includes}"
15344                 elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
15345                         EXPAT_CFLAGS="-I${expat_prefix}/include"
15346                 else
15347                         EXPAT_CFLAGS=""
15348                 fi
15349                 if test "$expat_lib" != "auto"; then
15350                         EXPAT_LIBS="-L${expat_lib} -lexpat"
15351                 elif test "$expat_prefix" != "auto"; then
15352                         EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
15353                 else
15354                         EXPAT_LIBS="-lexpat"
15355                 fi
15356         else
15357                 PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
15358         fi
15359
15360         expatsaved_CPPFLAGS="$CPPFLAGS"
15361         expatsaved_LIBS="$LIBS"
15362         CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
15363         LIBS="$LIBS $EXPAT_LIBS"
15364
15365         ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
15366 if test "x$ac_cv_header_expat_h" = xyes; then :
15367
15368 fi
15369
15370
15371         if test "$ac_cv_header_expat_h" = "no"; then
15372                 ac_fn_c_check_header_mongrel "$LINENO" "xmlparse.h" "ac_cv_header_xmlparse_h" "$ac_includes_default"
15373 if test "x$ac_cv_header_xmlparse_h" = xyes; then :
15374
15375 fi
15376
15377
15378                 if test "$ac_cv_header_xmlparse_h" = "yes"; then
15379                         HAVE_XMLPARSE_H=1
15380
15381
15382 cat >>confdefs.h <<_ACEOF
15383 #define HAVE_XMLPARSE_H $HAVE_XMLPARSE_H
15384 _ACEOF
15385
15386                 else
15387                         as_fn_error $? "
15388 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15389                 fi
15390         fi
15391         for ac_func in XML_SetDoctypeDeclHandler
15392 do :
15393   ac_fn_c_check_func "$LINENO" "XML_SetDoctypeDeclHandler" "ac_cv_func_XML_SetDoctypeDeclHandler"
15394 if test "x$ac_cv_func_XML_SetDoctypeDeclHandler" = xyes; then :
15395   cat >>confdefs.h <<_ACEOF
15396 #define HAVE_XML_SETDOCTYPEDECLHANDLER 1
15397 _ACEOF
15398
15399 fi
15400 done
15401
15402         if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
15403                 as_fn_error $? "
15404 *** expat is required. or try to use --enable-libxml2" "$LINENO" 5
15405         fi
15406         CPPFLAGS="$expatsaved_CPPFLAGS"
15407         LIBS="$expatsaved_LIBS"
15408
15409
15410
15411 fi
15412
15413 #
15414 # Check libxml2 configuration
15415 #
15416 # Check whether --enable-libxml2 was given.
15417 if test "${enable_libxml2+set}" = set; then :
15418   enableval=$enable_libxml2;
15419 fi
15420
15421
15422 if test "$enable_libxml2" = "yes"; then
15423
15424 pkg_failed=no
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBXML2" >&5
15426 $as_echo_n "checking for LIBXML2... " >&6; }
15427
15428 if test -n "$LIBXML2_CFLAGS"; then
15429     pkg_cv_LIBXML2_CFLAGS="$LIBXML2_CFLAGS"
15430  elif test -n "$PKG_CONFIG"; then
15431     if test -n "$PKG_CONFIG" && \
15432     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15433   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15434   ac_status=$?
15435   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15436   test $ac_status = 0; }; then
15437   pkg_cv_LIBXML2_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6" 2>/dev/null`
15438                       test "x$?" != "x0" && pkg_failed=yes
15439 else
15440   pkg_failed=yes
15441 fi
15442  else
15443     pkg_failed=untried
15444 fi
15445 if test -n "$LIBXML2_LIBS"; then
15446     pkg_cv_LIBXML2_LIBS="$LIBXML2_LIBS"
15447  elif test -n "$PKG_CONFIG"; then
15448     if test -n "$PKG_CONFIG" && \
15449     { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libxml-2.0 >= 2.6\""; } >&5
15450   ($PKG_CONFIG --exists --print-errors "libxml-2.0 >= 2.6") 2>&5
15451   ac_status=$?
15452   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15453   test $ac_status = 0; }; then
15454   pkg_cv_LIBXML2_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6" 2>/dev/null`
15455                       test "x$?" != "x0" && pkg_failed=yes
15456 else
15457   pkg_failed=yes
15458 fi
15459  else
15460     pkg_failed=untried
15461 fi
15462
15463
15464
15465 if test $pkg_failed = yes; then
15466         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15467 $as_echo "no" >&6; }
15468
15469 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15470         _pkg_short_errors_supported=yes
15471 else
15472         _pkg_short_errors_supported=no
15473 fi
15474         if test $_pkg_short_errors_supported = yes; then
15475                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15476         else
15477                 LIBXML2_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libxml-2.0 >= 2.6" 2>&1`
15478         fi
15479         # Put the nasty error message in config.log where it belongs
15480         echo "$LIBXML2_PKG_ERRORS" >&5
15481
15482         as_fn_error $? "Package requirements (libxml-2.0 >= 2.6) were not met:
15483
15484 $LIBXML2_PKG_ERRORS
15485
15486 Consider adjusting the PKG_CONFIG_PATH environment variable if you
15487 installed software in a non-standard prefix.
15488
15489 Alternatively, you may set the environment variables LIBXML2_CFLAGS
15490 and LIBXML2_LIBS to avoid the need to call pkg-config.
15491 See the pkg-config man page for more details." "$LINENO" 5
15492 elif test $pkg_failed = untried; then
15493         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15494 $as_echo "no" >&6; }
15495         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15496 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15497 as_fn_error $? "The pkg-config script could not be found or is too old.  Make sure it
15498 is in your PATH or set the PKG_CONFIG environment variable to the full
15499 path to pkg-config.
15500
15501 Alternatively, you may set the environment variables LIBXML2_CFLAGS
15502 and LIBXML2_LIBS to avoid the need to call pkg-config.
15503 See the pkg-config man page for more details.
15504
15505 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
15506 See \`config.log' for more details" "$LINENO" 5; }
15507 else
15508         LIBXML2_CFLAGS=$pkg_cv_LIBXML2_CFLAGS
15509         LIBXML2_LIBS=$pkg_cv_LIBXML2_LIBS
15510         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15511 $as_echo "yes" >&6; }
15512
15513 fi
15514     PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0"
15515
15516 cat >>confdefs.h <<_ACEOF
15517 #define ENABLE_LIBXML2 1
15518 _ACEOF
15519
15520
15521
15522
15523
15524     fc_saved_CFLAGS="$CFLAGS"
15525     CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
15526     { $as_echo "$as_me:${as_lineno-$LINENO}: checking SAX1 support in libxml2" >&5
15527 $as_echo_n "checking SAX1 support in libxml2... " >&6; }
15528     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15529 /* end confdefs.h.  */
15530
15531         #include <libxml/xmlversion.h>
15532         #if !defined(LIBXML_SAX1_ENABLED)
15533         #  include "error: No SAX1 support in libxml2"
15534         #endif
15535
15536 _ACEOF
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538   { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
15539 $as_echo "found" >&6; }
15540 else
15541   as_fn_error $? "
15542 *** SAX1 support in libxml2 is required. enable it or use expat instead." "$LINENO" 5
15543 fi
15544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15545     CFLAGS="$fc_saved_CFLAGS"
15546 fi
15547
15548 #
15549 # Set default hinting
15550 #
15551
15552
15553 # Check whether --with-default-hinting was given.
15554 if test "${with_default_hinting+set}" = set; then :
15555   withval=$with_default_hinting; preferred_hinting="$withval"
15556 else
15557   preferred_hinting=slight
15558 fi
15559
15560
15561 case "$preferred_hinting" in
15562 none|slight|medium|full)
15563         PREFERRED_HINTING="$preferred_hinting"
15564
15565         ;;
15566 *)
15567         as_fn_error $? "Invalid hinting. please choose one of none, slight, medium, or full" "$LINENO" 5
15568         ;;
15569 esac
15570
15571 #
15572 # Set default font directory
15573 #
15574
15575
15576 # Check whether --with-default-fonts was given.
15577 if test "${with_default_fonts+set}" = set; then :
15578   withval=$with_default_fonts; default_fonts="$withval"
15579 else
15580   default_fonts=yes
15581 fi
15582
15583
15584 case "$default_fonts" in
15585 yes)
15586         if test "$os_win32" = "yes"; then
15587                 FC_DEFAULT_FONTS="WINDOWSFONTDIR"
15588
15589 cat >>confdefs.h <<_ACEOF
15590 #define FC_DEFAULT_FONTS "WINDOWSFONTDIR"
15591 _ACEOF
15592
15593         else
15594                 FC_DEFAULT_FONTS="/usr/share/fonts"
15595
15596 cat >>confdefs.h <<_ACEOF
15597 #define FC_DEFAULT_FONTS "/usr/share/fonts"
15598 _ACEOF
15599
15600         fi
15601         ;;
15602 *)
15603         FC_DEFAULT_FONTS="$default_fonts"
15604
15605 cat >>confdefs.h <<_ACEOF
15606 #define FC_DEFAULT_FONTS "$default_fonts"
15607 _ACEOF
15608
15609         ;;
15610 esac
15611
15612
15613
15614 #
15615 # Add more fonts if available.  By default, add only the directories
15616 # with outline fonts; those with bitmaps can be added as desired in
15617 # local.conf or ~/.fonts.conf
15618 #
15619
15620 # Check whether --with-add-fonts was given.
15621 if test "${with_add_fonts+set}" = set; then :
15622   withval=$with_add_fonts; add_fonts="$withval"
15623 else
15624   add_fonts=yes
15625 fi
15626
15627
15628 case "$add_fonts" in
15629 yes)
15630         FC_ADD_FONTS=""
15631         for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
15632                 case x"$FC_ADD_FONTS" in
15633                 x)
15634                         sub="$dir/fonts"
15635                         if test -d "$sub"; then
15636                                 case x$FC_ADD_FONTS in
15637                                 x)
15638                                         FC_ADD_FONTS="$sub"
15639                                         ;;
15640                                 *)
15641                                         FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
15642                                         ;;
15643                                 esac
15644                         fi
15645                         ;;
15646                 esac
15647         done
15648
15649 cat >>confdefs.h <<_ACEOF
15650 #define FC_ADD_FONTS "$add_fonts"
15651 _ACEOF
15652
15653         ;;
15654 no)
15655         FC_ADD_FONTS=""
15656         ;;
15657 *)
15658         FC_ADD_FONTS="$add_fonts"
15659
15660 cat >>confdefs.h <<_ACEOF
15661 #define FC_ADD_FONTS "$add_fonts"
15662 _ACEOF
15663
15664         ;;
15665 esac
15666
15667
15668
15669 FC_FONTPATH=""
15670
15671 case "$FC_ADD_FONTS" in
15672 "")
15673         ;;
15674 *)
15675         FC_FONTPATH=`echo $FC_ADD_FONTS |
15676                         sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
15677         ;;
15678 esac
15679
15680
15681
15682 #
15683 # Set default cache directory path
15684 #
15685
15686 # Check whether --with-cache-dir was given.
15687 if test "${with_cache_dir+set}" = set; then :
15688   withval=$with_cache_dir; fc_cachedir="$withval"
15689 else
15690   fc_cachedir=yes
15691 fi
15692
15693
15694 case $fc_cachedir in
15695 no|yes)
15696         if test "$os_win32" = "yes"; then
15697                 fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
15698         else
15699                 fc_cachedir='${localstatedir}/cache/${PACKAGE}'
15700         fi
15701         ;;
15702 *)
15703         ;;
15704 esac
15705
15706 FC_CACHEDIR=${fc_cachedir}
15707
15708
15709 FC_FONTDATE=`LC_ALL=C date`
15710
15711
15712
15713 #
15714 # Set configuration paths
15715 #
15716
15717
15718 # Check whether --with-templatedir was given.
15719 if test "${with_templatedir+set}" = set; then :
15720   withval=$with_templatedir; templatedir="$withval"
15721 else
15722   templatedir=yes
15723 fi
15724
15725
15726 # Check whether --with-baseconfigdir was given.
15727 if test "${with_baseconfigdir+set}" = set; then :
15728   withval=$with_baseconfigdir; baseconfigdir="$withval"
15729 else
15730   baseconfigdir=yes
15731 fi
15732
15733
15734 # Check whether --with-configdir was given.
15735 if test "${with_configdir+set}" = set; then :
15736   withval=$with_configdir; configdir="$withval"
15737 else
15738   configdir=yes
15739 fi
15740
15741
15742 # Check whether --with-xmldir was given.
15743 if test "${with_xmldir+set}" = set; then :
15744   withval=$with_xmldir; xmldir="$withval"
15745 else
15746   xmldir=yes
15747 fi
15748
15749
15750 case "$templatedir" in
15751 no|yes)
15752         templatedir='${datadir}'/fontconfig/conf.avail
15753         ;;
15754 *)
15755         ;;
15756 esac
15757 case "$baseconfigdir" in
15758 no|yes)
15759         baseconfigdir='${sysconfdir}'/fonts
15760         ;;
15761 *)
15762         ;;
15763 esac
15764 case "$configdir" in
15765 no|yes)
15766         configdir='${BASECONFIGDIR}'/conf.d
15767         ;;
15768 *)
15769         ;;
15770 esac
15771 case "$xmldir" in
15772 no|yes)
15773         xmldir='${datadir}'/xml/fontconfig
15774         ;;
15775 *)
15776         ;;
15777 esac
15778
15779 TEMPLATEDIR=${templatedir}
15780 BASECONFIGDIR=${baseconfigdir}
15781 CONFIGDIR=${configdir}
15782 XMLDIR=${xmldir}
15783
15784
15785
15786
15787
15788
15789
15790 #
15791 # Thread-safety primitives
15792 #
15793
15794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Intel atomic primitives" >&5
15795 $as_echo_n "checking for Intel atomic primitives... " >&6; }
15796 if ${fc_cv_have_intel_atomic_primitives+:} false; then :
15797   $as_echo_n "(cached) " >&6
15798 else
15799
15800         fc_cv_have_intel_atomic_primitives=false
15801         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15802 /* end confdefs.h.  */
15803
15804                 void memory_barrier (void) { __sync_synchronize (); }
15805                 int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
15806                 int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
15807                 void mutex_unlock (int *m) { __sync_lock_release (m); }
15808
15809 int
15810 main ()
15811 {
15812
15813   ;
15814   return 0;
15815 }
15816 _ACEOF
15817 if ac_fn_c_try_link "$LINENO"; then :
15818   fc_cv_have_intel_atomic_primitives=true
15819
15820 fi
15821 rm -f core conftest.err conftest.$ac_objext \
15822     conftest$ac_exeext conftest.$ac_ext
15823
15824 fi
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_intel_atomic_primitives" >&5
15826 $as_echo "$fc_cv_have_intel_atomic_primitives" >&6; }
15827 if $fc_cv_have_intel_atomic_primitives; then
15828
15829 $as_echo "#define HAVE_INTEL_ATOMIC_PRIMITIVES 1" >>confdefs.h
15830
15831 fi
15832
15833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Solaris atomic operations" >&5
15834 $as_echo_n "checking for Solaris atomic operations... " >&6; }
15835 if ${fc_cv_have_solaris_atomic_ops+:} false; then :
15836   $as_echo_n "(cached) " >&6
15837 else
15838
15839         fc_cv_have_solaris_atomic_ops=false
15840         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h.  */
15842
15843                 #include <atomic.h>
15844                 /* This requires Solaris Studio 12.2 or newer: */
15845                 #include <mbarrier.h>
15846                 void memory_barrier (void) { __machine_rw_barrier (); }
15847                 int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
15848                 void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
15849
15850 int
15851 main ()
15852 {
15853
15854   ;
15855   return 0;
15856 }
15857 _ACEOF
15858 if ac_fn_c_try_link "$LINENO"; then :
15859   fc_cv_have_solaris_atomic_ops=true
15860
15861 fi
15862 rm -f core conftest.err conftest.$ac_objext \
15863     conftest$ac_exeext conftest.$ac_ext
15864
15865 fi
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fc_cv_have_solaris_atomic_ops" >&5
15867 $as_echo "$fc_cv_have_solaris_atomic_ops" >&6; }
15868 if $fc_cv_have_solaris_atomic_ops; then
15869
15870 $as_echo "#define HAVE_SOLARIS_ATOMIC_OPS 1" >>confdefs.h
15871
15872 fi
15873
15874 if test "$os_win32" = no && ! $have_pthread; then
15875         for ac_header in sched.h
15876 do :
15877   ac_fn_c_check_header_mongrel "$LINENO" "sched.h" "ac_cv_header_sched_h" "$ac_includes_default"
15878 if test "x$ac_cv_header_sched_h" = xyes; then :
15879   cat >>confdefs.h <<_ACEOF
15880 #define HAVE_SCHED_H 1
15881 _ACEOF
15882
15883 fi
15884
15885 done
15886
15887         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
15888 $as_echo_n "checking for library containing sched_yield... " >&6; }
15889 if ${ac_cv_search_sched_yield+:} false; then :
15890   $as_echo_n "(cached) " >&6
15891 else
15892   ac_func_search_save_LIBS=$LIBS
15893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15894 /* end confdefs.h.  */
15895
15896 /* Override any GCC internal prototype to avoid an error.
15897    Use char because int might match the return type of a GCC
15898    builtin and then its argument prototype would still apply.  */
15899 #ifdef __cplusplus
15900 extern "C"
15901 #endif
15902 char sched_yield ();
15903 int
15904 main ()
15905 {
15906 return sched_yield ();
15907   ;
15908   return 0;
15909 }
15910 _ACEOF
15911 for ac_lib in '' rt; do
15912   if test -z "$ac_lib"; then
15913     ac_res="none required"
15914   else
15915     ac_res=-l$ac_lib
15916     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15917   fi
15918   if ac_fn_c_try_link "$LINENO"; then :
15919   ac_cv_search_sched_yield=$ac_res
15920 fi
15921 rm -f core conftest.err conftest.$ac_objext \
15922     conftest$ac_exeext
15923   if ${ac_cv_search_sched_yield+:} false; then :
15924   break
15925 fi
15926 done
15927 if ${ac_cv_search_sched_yield+:} false; then :
15928
15929 else
15930   ac_cv_search_sched_yield=no
15931 fi
15932 rm conftest.$ac_ext
15933 LIBS=$ac_func_search_save_LIBS
15934 fi
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
15936 $as_echo "$ac_cv_search_sched_yield" >&6; }
15937 ac_res=$ac_cv_search_sched_yield
15938 if test "$ac_res" != no; then :
15939   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15940
15941 $as_echo "#define HAVE_SCHED_YIELD 1" >>confdefs.h
15942
15943 fi
15944
15945 fi
15946
15947 have_pthread=false
15948 if test "$os_win32" = no; then
15949
15950
15951 ac_ext=c
15952 ac_cpp='$CPP $CPPFLAGS'
15953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15956
15957 ax_pthread_ok=no
15958
15959 # We used to check for pthread.h first, but this fails if pthread.h
15960 # requires special compiler flags (e.g. on True64 or Sequent).
15961 # It gets checked for in the link test anyway.
15962
15963 # First of all, check if the user has set any of the PTHREAD_LIBS,
15964 # etcetera environment variables, and if threads linking works using
15965 # them:
15966 if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
15967         save_CFLAGS="$CFLAGS"
15968         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
15969         save_LIBS="$LIBS"
15970         LIBS="$PTHREAD_LIBS $LIBS"
15971         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
15972 $as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
15973         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15974 /* end confdefs.h.  */
15975
15976 /* Override any GCC internal prototype to avoid an error.
15977    Use char because int might match the return type of a GCC
15978    builtin and then its argument prototype would still apply.  */
15979 #ifdef __cplusplus
15980 extern "C"
15981 #endif
15982 char pthread_join ();
15983 int
15984 main ()
15985 {
15986 return pthread_join ();
15987   ;
15988   return 0;
15989 }
15990 _ACEOF
15991 if ac_fn_c_try_link "$LINENO"; then :
15992   ax_pthread_ok=yes
15993 fi
15994 rm -f core conftest.err conftest.$ac_objext \
15995     conftest$ac_exeext conftest.$ac_ext
15996         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
15997 $as_echo "$ax_pthread_ok" >&6; }
15998         if test x"$ax_pthread_ok" = xno; then
15999                 PTHREAD_LIBS=""
16000                 PTHREAD_CFLAGS=""
16001         fi
16002         LIBS="$save_LIBS"
16003         CFLAGS="$save_CFLAGS"
16004 fi
16005
16006 # We must check for the threads library under a number of different
16007 # names; the ordering is very important because some systems
16008 # (e.g. DEC) have both -lpthread and -lpthreads, where one of the
16009 # libraries is broken (non-POSIX).
16010
16011 # Create a list of thread flags to try.  Items starting with a "-" are
16012 # C compiler flags, and other items are library names, except for "none"
16013 # which indicates that we try without any flags at all, and "pthread-config"
16014 # which is a program returning the flags for the Pth emulation library.
16015
16016 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
16017
16018 # The ordering *is* (sometimes) important.  Some notes on the
16019 # individual items follow:
16020
16021 # pthreads: AIX (must check this before -lpthread)
16022 # none: in case threads are in libc; should be tried before -Kthread and
16023 #       other compiler flags to prevent continual compiler warnings
16024 # -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
16025 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
16026 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
16027 # -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
16028 # -pthreads: Solaris/gcc
16029 # -mthreads: Mingw32/gcc, Lynx/gcc
16030 # -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
16031 #      doesn't hurt to check since this sometimes defines pthreads too;
16032 #      also defines -D_REENTRANT)
16033 #      ... -mt is also the pthreads flag for HP/aCC
16034 # pthread: Linux, etcetera
16035 # --thread-safe: KAI C++
16036 # pthread-config: use pthread-config program (for GNU Pth library)
16037
16038 case ${host_os} in
16039         solaris*)
16040
16041         # On Solaris (at least, for some versions), libc contains stubbed
16042         # (non-functional) versions of the pthreads routines, so link-based
16043         # tests will erroneously succeed.  (We need to link with -pthreads/-mt/
16044         # -lpthread.)  (The stubs are missing pthread_cleanup_push, or rather
16045         # a function called by this macro, so we could check for that, but
16046         # who knows whether they'll stub that too in a future libc.)  So,
16047         # we'll just look for -pthreads and -lpthread first:
16048
16049         ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
16050         ;;
16051
16052         darwin*)
16053         ax_pthread_flags="-pthread $ax_pthread_flags"
16054         ;;
16055         netbsd*)
16056         # use libc stubs, don't link against libpthread, to allow
16057         # dynamic loading
16058         ax_pthread_flags=""
16059         ;;
16060 esac
16061
16062 # Clang doesn't consider unrecognized options an error unless we specify
16063 # -Werror. We throw in some extra Clang-specific options to ensure that
16064 # this doesn't happen for GCC, which also accepts -Werror.
16065
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5
16067 $as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; }
16068 save_CFLAGS="$CFLAGS"
16069 ax_pthread_extra_flags="-Werror"
16070 CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
16071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16072 /* end confdefs.h.  */
16073 int foo(void);
16074 int
16075 main ()
16076 {
16077 foo()
16078   ;
16079   return 0;
16080 }
16081 _ACEOF
16082 if ac_fn_c_try_compile "$LINENO"; then :
16083   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16084 $as_echo "yes" >&6; }
16085 else
16086   ax_pthread_extra_flags=
16087                    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16088 $as_echo "no" >&6; }
16089 fi
16090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16091 CFLAGS="$save_CFLAGS"
16092
16093 if test x"$ax_pthread_ok" = xno; then
16094 for flag in $ax_pthread_flags; do
16095
16096         case $flag in
16097                 none)
16098                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
16099 $as_echo_n "checking whether pthreads work without any flags... " >&6; }
16100                 ;;
16101
16102                 -*)
16103                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
16104 $as_echo_n "checking whether pthreads work with $flag... " >&6; }
16105                 PTHREAD_CFLAGS="$flag"
16106                 ;;
16107
16108                 pthread-config)
16109                 # Extract the first word of "pthread-config", so it can be a program name with args.
16110 set dummy pthread-config; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16112 $as_echo_n "checking for $ac_word... " >&6; }
16113 if ${ac_cv_prog_ax_pthread_config+:} false; then :
16114   $as_echo_n "(cached) " >&6
16115 else
16116   if test -n "$ax_pthread_config"; then
16117   ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
16118 else
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16121 do
16122   IFS=$as_save_IFS
16123   test -z "$as_dir" && as_dir=.
16124     for ac_exec_ext in '' $ac_executable_extensions; do
16125   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16126     ac_cv_prog_ax_pthread_config="yes"
16127     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16128     break 2
16129   fi
16130 done
16131   done
16132 IFS=$as_save_IFS
16133
16134   test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
16135 fi
16136 fi
16137 ax_pthread_config=$ac_cv_prog_ax_pthread_config
16138 if test -n "$ax_pthread_config"; then
16139   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
16140 $as_echo "$ax_pthread_config" >&6; }
16141 else
16142   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16143 $as_echo "no" >&6; }
16144 fi
16145
16146
16147                 if test x"$ax_pthread_config" = xno; then continue; fi
16148                 PTHREAD_CFLAGS="`pthread-config --cflags`"
16149                 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
16150                 ;;
16151
16152                 *)
16153                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
16154 $as_echo_n "checking for the pthreads library -l$flag... " >&6; }
16155                 PTHREAD_LIBS="-l$flag"
16156                 ;;
16157         esac
16158
16159         save_LIBS="$LIBS"
16160         save_CFLAGS="$CFLAGS"
16161         LIBS="$PTHREAD_LIBS $LIBS"
16162         CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
16163
16164         # Check for various functions.  We must include pthread.h,
16165         # since some functions may be macros.  (On the Sequent, we
16166         # need a special flag -Kthread to make this header compile.)
16167         # We check for pthread_join because it is in -lpthread on IRIX
16168         # while pthread_create is in libc.  We check for pthread_attr_init
16169         # due to DEC craziness with -lpthreads.  We check for
16170         # pthread_cleanup_push because it is one of the few pthread
16171         # functions on Solaris that doesn't have a non-functional libc stub.
16172         # We try pthread_create on general principles.
16173         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16174 /* end confdefs.h.  */
16175 #include <pthread.h>
16176                         static void routine(void *a) { a = 0; }
16177                         static void *start_routine(void *a) { return a; }
16178 int
16179 main ()
16180 {
16181 pthread_t th; pthread_attr_t attr;
16182                         pthread_create(&th, 0, start_routine, 0);
16183                         pthread_join(th, 0);
16184                         pthread_attr_init(&attr);
16185                         pthread_cleanup_push(routine, 0);
16186                         pthread_cleanup_pop(0) /* ; */
16187   ;
16188   return 0;
16189 }
16190 _ACEOF
16191 if ac_fn_c_try_link "$LINENO"; then :
16192   ax_pthread_ok=yes
16193 fi
16194 rm -f core conftest.err conftest.$ac_objext \
16195     conftest$ac_exeext conftest.$ac_ext
16196
16197         LIBS="$save_LIBS"
16198         CFLAGS="$save_CFLAGS"
16199
16200         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
16201 $as_echo "$ax_pthread_ok" >&6; }
16202         if test "x$ax_pthread_ok" = xyes; then
16203                 break;
16204         fi
16205
16206         PTHREAD_LIBS=""
16207         PTHREAD_CFLAGS=""
16208 done
16209 fi
16210
16211 # Various other checks:
16212 if test "x$ax_pthread_ok" = xyes; then
16213         save_LIBS="$LIBS"
16214         LIBS="$PTHREAD_LIBS $LIBS"
16215         save_CFLAGS="$CFLAGS"
16216         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16217
16218         # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
16219         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
16220 $as_echo_n "checking for joinable pthread attribute... " >&6; }
16221         attr_name=unknown
16222         for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
16223             cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16224 /* end confdefs.h.  */
16225 #include <pthread.h>
16226 int
16227 main ()
16228 {
16229 int attr = $attr; return attr /* ; */
16230   ;
16231   return 0;
16232 }
16233 _ACEOF
16234 if ac_fn_c_try_link "$LINENO"; then :
16235   attr_name=$attr; break
16236 fi
16237 rm -f core conftest.err conftest.$ac_objext \
16238     conftest$ac_exeext conftest.$ac_ext
16239         done
16240         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
16241 $as_echo "$attr_name" >&6; }
16242         if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
16243
16244 cat >>confdefs.h <<_ACEOF
16245 #define PTHREAD_CREATE_JOINABLE $attr_name
16246 _ACEOF
16247
16248         fi
16249
16250         { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
16251 $as_echo_n "checking if more special flags are required for pthreads... " >&6; }
16252         flag=no
16253         case ${host_os} in
16254             aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
16255             osf* | hpux*) flag="-D_REENTRANT";;
16256             solaris*)
16257             if test "$GCC" = "yes"; then
16258                 flag="-D_REENTRANT"
16259             else
16260                 # TODO: What about Clang on Solaris?
16261                 flag="-mt -D_REENTRANT"
16262             fi
16263             ;;
16264         esac
16265         { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5
16266 $as_echo "$flag" >&6; }
16267         if test "x$flag" != xno; then
16268             PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
16269         fi
16270
16271         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
16272 $as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
16273 if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
16274   $as_echo_n "(cached) " >&6
16275 else
16276
16277                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16278 /* end confdefs.h.  */
16279 #include <pthread.h>
16280 int
16281 main ()
16282 {
16283 int i = PTHREAD_PRIO_INHERIT;
16284   ;
16285   return 0;
16286 }
16287 _ACEOF
16288 if ac_fn_c_try_link "$LINENO"; then :
16289   ax_cv_PTHREAD_PRIO_INHERIT=yes
16290 else
16291   ax_cv_PTHREAD_PRIO_INHERIT=no
16292 fi
16293 rm -f core conftest.err conftest.$ac_objext \
16294     conftest$ac_exeext conftest.$ac_ext
16295
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
16298 $as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
16299         if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
16300
16301 $as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
16302
16303 fi
16304
16305         LIBS="$save_LIBS"
16306         CFLAGS="$save_CFLAGS"
16307
16308         # More AIX lossage: compile with *_r variant
16309         if test "x$GCC" != xyes; then
16310             case $host_os in
16311                 aix*)
16312                 case "x/$CC" in #(
16313   x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
16314     #handle absolute path differently from PATH based program lookup
16315                    case "x$CC" in #(
16316   x/*) :
16317     if as_fn_executable_p ${CC}_r; then :
16318   PTHREAD_CC="${CC}_r"
16319 fi ;; #(
16320   *) :
16321     for ac_prog in ${CC}_r
16322 do
16323   # Extract the first word of "$ac_prog", so it can be a program name with args.
16324 set dummy $ac_prog; ac_word=$2
16325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16326 $as_echo_n "checking for $ac_word... " >&6; }
16327 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
16328   $as_echo_n "(cached) " >&6
16329 else
16330   if test -n "$PTHREAD_CC"; then
16331   ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
16332 else
16333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16334 for as_dir in $PATH
16335 do
16336   IFS=$as_save_IFS
16337   test -z "$as_dir" && as_dir=.
16338     for ac_exec_ext in '' $ac_executable_extensions; do
16339   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16340     ac_cv_prog_PTHREAD_CC="$ac_prog"
16341     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16342     break 2
16343   fi
16344 done
16345   done
16346 IFS=$as_save_IFS
16347
16348 fi
16349 fi
16350 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
16351 if test -n "$PTHREAD_CC"; then
16352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
16353 $as_echo "$PTHREAD_CC" >&6; }
16354 else
16355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16356 $as_echo "no" >&6; }
16357 fi
16358
16359
16360   test -n "$PTHREAD_CC" && break
16361 done
16362 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16363  ;;
16364 esac ;; #(
16365   *) :
16366      ;;
16367 esac
16368                 ;;
16369             esac
16370         fi
16371 fi
16372
16373 test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
16374
16375
16376
16377
16378
16379 # Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
16380 if test x"$ax_pthread_ok" = xyes; then
16381         have_pthread=true
16382         :
16383 else
16384         ax_pthread_ok=no
16385
16386 fi
16387 ac_ext=c
16388 ac_cpp='$CPP $CPPFLAGS'
16389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16392
16393
16394 fi
16395 if $have_pthread; then
16396         LIBS="$PTHREAD_LIBS $LIBS"
16397         CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
16398         CC="$PTHREAD_CC"
16399
16400 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
16401
16402 fi
16403  if $have_pthread; then
16404   HAVE_PTHREAD_TRUE=
16405   HAVE_PTHREAD_FALSE='#'
16406 else
16407   HAVE_PTHREAD_TRUE='#'
16408   HAVE_PTHREAD_FALSE=
16409 fi
16410
16411
16412
16413
16414 #
16415 # Let people not build/install docs if they don't have docbook
16416 #
16417
16418 # Extract the first word of "docbook2html", so it can be a program name with args.
16419 set dummy docbook2html; ac_word=$2
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16421 $as_echo_n "checking for $ac_word... " >&6; }
16422 if ${ac_cv_prog_HASDOCBOOK+:} false; then :
16423   $as_echo_n "(cached) " >&6
16424 else
16425   if test -n "$HASDOCBOOK"; then
16426   ac_cv_prog_HASDOCBOOK="$HASDOCBOOK" # Let the user override the test.
16427 else
16428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16429 for as_dir in $PATH
16430 do
16431   IFS=$as_save_IFS
16432   test -z "$as_dir" && as_dir=.
16433     for ac_exec_ext in '' $ac_executable_extensions; do
16434   if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16435     ac_cv_prog_HASDOCBOOK="yes"
16436     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16437     break 2
16438   fi
16439 done
16440   done
16441 IFS=$as_save_IFS
16442
16443   test -z "$ac_cv_prog_HASDOCBOOK" && ac_cv_prog_HASDOCBOOK="no"
16444 fi
16445 fi
16446 HASDOCBOOK=$ac_cv_prog_HASDOCBOOK
16447 if test -n "$HASDOCBOOK"; then
16448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HASDOCBOOK" >&5
16449 $as_echo "$HASDOCBOOK" >&6; }
16450 else
16451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16452 $as_echo "no" >&6; }
16453 fi
16454
16455
16456
16457  if test "x$HASDOCBOOK" = xyes; then
16458   USEDOCBOOK_TRUE=
16459   USEDOCBOOK_FALSE='#'
16460 else
16461   USEDOCBOOK_TRUE='#'
16462   USEDOCBOOK_FALSE=
16463 fi
16464
16465
16466 default_docs="yes"
16467 #
16468 # Check if docs exist or can be created
16469 #
16470 if test x$HASDOCBOOK = xno; then
16471         if test -f $srcdir/doc/fonts-conf.5; then
16472                 :
16473         else
16474                 default_docs="no"
16475         fi
16476 fi
16477
16478 # Check whether --enable-docs was given.
16479 if test "${enable_docs+set}" = set; then :
16480   enableval=$enable_docs;
16481 else
16482   enable_docs=$default_docs
16483 fi
16484
16485
16486  if test "x$enable_docs" = xyes; then
16487   ENABLE_DOCS_TRUE=
16488   ENABLE_DOCS_FALSE='#'
16489 else
16490   ENABLE_DOCS_TRUE='#'
16491   ENABLE_DOCS_FALSE=
16492 fi
16493
16494
16495 if test "x$enable_docs" = xyes; then
16496         tmp=funcs.$$
16497         cat $srcdir/doc/*.fncs | awk '
16498         /^@TITLE@/      { if (!done) { printf ("%s\n", $2); done = 1; } }
16499         /^@FUNC@/       { if (!done) { printf ("%s\n", $2); done = 1; } }
16500         /^@@/           { done = 0; }' > $tmp
16501         DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
16502         echo DOCMAN3 $DOCMAN3
16503         rm -f $tmp
16504 else
16505         DOCMAN3=""
16506 fi
16507
16508
16509
16510  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16511 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16512 if ${ac_cv_c_bigendian+:} false; then :
16513   $as_echo_n "(cached) " >&6
16514 else
16515   ac_cv_c_bigendian=unknown
16516     # See if we're dealing with a universal compiler.
16517     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h.  */
16519 #ifndef __APPLE_CC__
16520                not a universal capable compiler
16521              #endif
16522              typedef int dummy;
16523
16524 _ACEOF
16525 if ac_fn_c_try_compile "$LINENO"; then :
16526
16527         # Check for potential -arch flags.  It is not universal unless
16528         # there are at least two -arch flags with different values.
16529         ac_arch=
16530         ac_prev=
16531         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16532          if test -n "$ac_prev"; then
16533            case $ac_word in
16534              i?86 | x86_64 | ppc | ppc64)
16535                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16536                  ac_arch=$ac_word
16537                else
16538                  ac_cv_c_bigendian=universal
16539                  break
16540                fi
16541                ;;
16542            esac
16543            ac_prev=
16544          elif test "x$ac_word" = "x-arch"; then
16545            ac_prev=arch
16546          fi
16547        done
16548 fi
16549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16550     if test $ac_cv_c_bigendian = unknown; then
16551       # See if sys/param.h defines the BYTE_ORDER macro.
16552       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h.  */
16554 #include <sys/types.h>
16555              #include <sys/param.h>
16556
16557 int
16558 main ()
16559 {
16560 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16561                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16562                      && LITTLE_ENDIAN)
16563               bogus endian macros
16564              #endif
16565
16566   ;
16567   return 0;
16568 }
16569 _ACEOF
16570 if ac_fn_c_try_compile "$LINENO"; then :
16571   # It does; now see whether it defined to BIG_ENDIAN or not.
16572          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16573 /* end confdefs.h.  */
16574 #include <sys/types.h>
16575                 #include <sys/param.h>
16576
16577 int
16578 main ()
16579 {
16580 #if BYTE_ORDER != BIG_ENDIAN
16581                  not big endian
16582                 #endif
16583
16584   ;
16585   return 0;
16586 }
16587 _ACEOF
16588 if ac_fn_c_try_compile "$LINENO"; then :
16589   ac_cv_c_bigendian=yes
16590 else
16591   ac_cv_c_bigendian=no
16592 fi
16593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16594 fi
16595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16596     fi
16597     if test $ac_cv_c_bigendian = unknown; then
16598       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16599       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16600 /* end confdefs.h.  */
16601 #include <limits.h>
16602
16603 int
16604 main ()
16605 {
16606 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16607               bogus endian macros
16608              #endif
16609
16610   ;
16611   return 0;
16612 }
16613 _ACEOF
16614 if ac_fn_c_try_compile "$LINENO"; then :
16615   # It does; now see whether it defined to _BIG_ENDIAN or not.
16616          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16617 /* end confdefs.h.  */
16618 #include <limits.h>
16619
16620 int
16621 main ()
16622 {
16623 #ifndef _BIG_ENDIAN
16624                  not big endian
16625                 #endif
16626
16627   ;
16628   return 0;
16629 }
16630 _ACEOF
16631 if ac_fn_c_try_compile "$LINENO"; then :
16632   ac_cv_c_bigendian=yes
16633 else
16634   ac_cv_c_bigendian=no
16635 fi
16636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16637 fi
16638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16639     fi
16640     if test $ac_cv_c_bigendian = unknown; then
16641       # Compile a test program.
16642       if test "$cross_compiling" = yes; then :
16643   # Try to guess by grepping values from an object file.
16644          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16645 /* end confdefs.h.  */
16646 short int ascii_mm[] =
16647                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16648                 short int ascii_ii[] =
16649                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16650                 int use_ascii (int i) {
16651                   return ascii_mm[i] + ascii_ii[i];
16652                 }
16653                 short int ebcdic_ii[] =
16654                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16655                 short int ebcdic_mm[] =
16656                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16657                 int use_ebcdic (int i) {
16658                   return ebcdic_mm[i] + ebcdic_ii[i];
16659                 }
16660                 extern int foo;
16661
16662 int
16663 main ()
16664 {
16665 return use_ascii (foo) == use_ebcdic (foo);
16666   ;
16667   return 0;
16668 }
16669 _ACEOF
16670 if ac_fn_c_try_compile "$LINENO"; then :
16671   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16672               ac_cv_c_bigendian=yes
16673             fi
16674             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16675               if test "$ac_cv_c_bigendian" = unknown; then
16676                 ac_cv_c_bigendian=no
16677               else
16678                 # finding both strings is unlikely to happen, but who knows?
16679                 ac_cv_c_bigendian=unknown
16680               fi
16681             fi
16682 fi
16683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 else
16685   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h.  */
16687 $ac_includes_default
16688 int
16689 main ()
16690 {
16691
16692              /* Are we little or big endian?  From Harbison&Steele.  */
16693              union
16694              {
16695                long int l;
16696                char c[sizeof (long int)];
16697              } u;
16698              u.l = 1;
16699              return u.c[sizeof (long int) - 1] == 1;
16700
16701   ;
16702   return 0;
16703 }
16704 _ACEOF
16705 if ac_fn_c_try_run "$LINENO"; then :
16706   ac_cv_c_bigendian=no
16707 else
16708   ac_cv_c_bigendian=yes
16709 fi
16710 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16711   conftest.$ac_objext conftest.beam conftest.$ac_ext
16712 fi
16713
16714     fi
16715 fi
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16717 $as_echo "$ac_cv_c_bigendian" >&6; }
16718  case $ac_cv_c_bigendian in #(
16719    yes)
16720      $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16721 ;; #(
16722    no)
16723       ;; #(
16724    universal)
16725
16726 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16727
16728      ;; #(
16729    *)
16730      as_fn_error $? "unknown endianness
16731  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16732  esac
16733
16734 # The cast to long int works around a bug in the HP C Compiler
16735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16737 # This bug is HP SR number 8606223364.
16738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16739 $as_echo_n "checking size of void *... " >&6; }
16740 if ${ac_cv_sizeof_void_p+:} false; then :
16741   $as_echo_n "(cached) " >&6
16742 else
16743   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p"        "$ac_includes_default"; then :
16744
16745 else
16746   if test "$ac_cv_type_void_p" = yes; then
16747      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16748 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16749 as_fn_error 77 "cannot compute sizeof (void *)
16750 See \`config.log' for more details" "$LINENO" 5; }
16751    else
16752      ac_cv_sizeof_void_p=0
16753    fi
16754 fi
16755
16756 fi
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16758 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16759
16760
16761
16762 cat >>confdefs.h <<_ACEOF
16763 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16764 _ACEOF
16765
16766
16767 # The cast to long int works around a bug in the HP C Compiler,
16768 # see AC_CHECK_SIZEOF for more information.
16769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of double" >&5
16770 $as_echo_n "checking alignment of double... " >&6; }
16771 if ${ac_cv_alignof_double+:} false; then :
16772   $as_echo_n "(cached) " >&6
16773 else
16774   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_double"        "$ac_includes_default
16775 #ifndef offsetof
16776 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16777 #endif
16778 typedef struct { char x; double y; } ac__type_alignof_;"; then :
16779
16780 else
16781   if test "$ac_cv_type_double" = yes; then
16782      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16783 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16784 as_fn_error 77 "cannot compute alignment of double
16785 See \`config.log' for more details" "$LINENO" 5; }
16786    else
16787      ac_cv_alignof_double=0
16788    fi
16789 fi
16790
16791 fi
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_double" >&5
16793 $as_echo "$ac_cv_alignof_double" >&6; }
16794
16795
16796
16797 cat >>confdefs.h <<_ACEOF
16798 #define ALIGNOF_DOUBLE $ac_cv_alignof_double
16799 _ACEOF
16800
16801
16802 # The cast to long int works around a bug in the HP C Compiler,
16803 # see AC_CHECK_SIZEOF for more information.
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking alignment of void *" >&5
16805 $as_echo_n "checking alignment of void *... " >&6; }
16806 if ${ac_cv_alignof_void_p+:} false; then :
16807   $as_echo_n "(cached) " >&6
16808 else
16809   if ac_fn_c_compute_int "$LINENO" "(long int) offsetof (ac__type_alignof_, y)" "ac_cv_alignof_void_p"        "$ac_includes_default
16810 #ifndef offsetof
16811 # define offsetof(type, member) ((char *) &((type *) 0)->member - (char *) 0)
16812 #endif
16813 typedef struct { char x; void * y; } ac__type_alignof_;"; then :
16814
16815 else
16816   if test "$ac_cv_type_void_p" = yes; then
16817      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16818 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16819 as_fn_error 77 "cannot compute alignment of void *
16820 See \`config.log' for more details" "$LINENO" 5; }
16821    else
16822      ac_cv_alignof_void_p=0
16823    fi
16824 fi
16825
16826 fi
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_alignof_void_p" >&5
16828 $as_echo "$ac_cv_alignof_void_p" >&6; }
16829
16830
16831
16832 cat >>confdefs.h <<_ACEOF
16833 #define ALIGNOF_VOID_P $ac_cv_alignof_void_p
16834 _ACEOF
16835
16836
16837
16838
16839
16840
16841
16842
16843 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"
16844
16845 cat >confcache <<\_ACEOF
16846 # This file is a shell script that caches the results of configure
16847 # tests run on this system so they can be shared between configure
16848 # scripts and configure runs, see configure's option --config-cache.
16849 # It is not useful on other systems.  If it contains results you don't
16850 # want to keep, you may remove or edit it.
16851 #
16852 # config.status only pays attention to the cache file if you give it
16853 # the --recheck option to rerun configure.
16854 #
16855 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16856 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16857 # following values.
16858
16859 _ACEOF
16860
16861 # The following way of writing the cache mishandles newlines in values,
16862 # but we know of no workaround that is simple, portable, and efficient.
16863 # So, we kill variables containing newlines.
16864 # Ultrix sh set writes to stderr and can't be redirected directly,
16865 # and sets the high bit in the cache file unless we assign to the vars.
16866 (
16867   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16868     eval ac_val=\$$ac_var
16869     case $ac_val in #(
16870     *${as_nl}*)
16871       case $ac_var in #(
16872       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16873 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16874       esac
16875       case $ac_var in #(
16876       _ | IFS | as_nl) ;; #(
16877       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16878       *) { eval $ac_var=; unset $ac_var;} ;;
16879       esac ;;
16880     esac
16881   done
16882
16883   (set) 2>&1 |
16884     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16885     *${as_nl}ac_space=\ *)
16886       # `set' does not quote correctly, so add quotes: double-quote
16887       # substitution turns \\\\ into \\, and sed turns \\ into \.
16888       sed -n \
16889         "s/'/'\\\\''/g;
16890           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16891       ;; #(
16892     *)
16893       # `set' quotes correctly as required by POSIX, so do not add quotes.
16894       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16895       ;;
16896     esac |
16897     sort
16898 ) |
16899   sed '
16900      /^ac_cv_env_/b end
16901      t clear
16902      :clear
16903      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16904      t end
16905      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16906      :end' >>confcache
16907 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16908   if test -w "$cache_file"; then
16909     if test "x$cache_file" != "x/dev/null"; then
16910       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16911 $as_echo "$as_me: updating cache $cache_file" >&6;}
16912       if test ! -f "$cache_file" || test -h "$cache_file"; then
16913         cat confcache >"$cache_file"
16914       else
16915         case $cache_file in #(
16916         */* | ?:*)
16917           mv -f confcache "$cache_file"$$ &&
16918           mv -f "$cache_file"$$ "$cache_file" ;; #(
16919         *)
16920           mv -f confcache "$cache_file" ;;
16921         esac
16922       fi
16923     fi
16924   else
16925     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16926 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16927   fi
16928 fi
16929 rm -f confcache
16930
16931 test "x$prefix" = xNONE && prefix=$ac_default_prefix
16932 # Let make expand exec_prefix.
16933 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16934
16935 DEFS=-DHAVE_CONFIG_H
16936
16937 ac_libobjs=
16938 ac_ltlibobjs=
16939 U=
16940 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16941   # 1. Remove the extension, and $U if already installed.
16942   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
16943   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
16944   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
16945   #    will be set to the directory where LIBOBJS objects are built.
16946   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16947   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
16948 done
16949 LIBOBJS=$ac_libobjs
16950
16951 LTLIBOBJS=$ac_ltlibobjs
16952
16953
16954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
16955 $as_echo_n "checking that generated files are newer than configure... " >&6; }
16956    if test -n "$am_sleep_pid"; then
16957      # Hide warnings about reused PIDs.
16958      wait $am_sleep_pid 2>/dev/null
16959    fi
16960    { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
16961 $as_echo "done" >&6; }
16962  if test -n "$EXEEXT"; then
16963   am__EXEEXT_TRUE=
16964   am__EXEEXT_FALSE='#'
16965 else
16966   am__EXEEXT_TRUE='#'
16967   am__EXEEXT_FALSE=
16968 fi
16969
16970 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
16971   as_fn_error $? "conditional \"AMDEP\" was never defined.
16972 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16973 fi
16974 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
16975   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
16976 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16977 fi
16978 if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
16979   as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
16980 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16981 fi
16982 if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
16983   as_fn_error $? "conditional \"OS_WIN32\" was never defined.
16984 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16985 fi
16986 if test -z "${MS_LIB_AVAILABLE_TRUE}" && test -z "${MS_LIB_AVAILABLE_FALSE}"; then
16987   as_fn_error $? "conditional \"MS_LIB_AVAILABLE\" was never defined.
16988 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16989 fi
16990 if test -z "${CROSS_COMPILING_TRUE}" && test -z "${CROSS_COMPILING_FALSE}"; then
16991   as_fn_error $? "conditional \"CROSS_COMPILING\" was never defined.
16992 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16993 fi
16994 if test -z "${ENABLE_SHARED_TRUE}" && test -z "${ENABLE_SHARED_FALSE}"; then
16995   as_fn_error $? "conditional \"ENABLE_SHARED\" was never defined.
16996 Usually this means the macro was only invoked conditionally." "$LINENO" 5
16997 fi
16998 if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
16999   as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
17000 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17001 fi
17002 if test -z "${USEDOCBOOK_TRUE}" && test -z "${USEDOCBOOK_FALSE}"; then
17003   as_fn_error $? "conditional \"USEDOCBOOK\" was never defined.
17004 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17005 fi
17006 if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then
17007   as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined.
17008 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17009 fi
17010
17011
17012 : "${CONFIG_STATUS=./config.status}"
17013 ac_write_fail=0
17014 ac_clean_files_save=$ac_clean_files
17015 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17017 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17018 as_write_fail=0
17019 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17020 #! $SHELL
17021 # Generated by $as_me.
17022 # Run this file to recreate the current configuration.
17023 # Compiler output produced by configure, useful for debugging
17024 # configure, is in config.log if it exists.
17025
17026 debug=false
17027 ac_cs_recheck=false
17028 ac_cs_silent=false
17029
17030 SHELL=\${CONFIG_SHELL-$SHELL}
17031 export SHELL
17032 _ASEOF
17033 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17034 ## -------------------- ##
17035 ## M4sh Initialization. ##
17036 ## -------------------- ##
17037
17038 # Be more Bourne compatible
17039 DUALCASE=1; export DUALCASE # for MKS sh
17040 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17041   emulate sh
17042   NULLCMD=:
17043   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17044   # is contrary to our usage.  Disable this feature.
17045   alias -g '${1+"$@"}'='"$@"'
17046   setopt NO_GLOB_SUBST
17047 else
17048   case `(set -o) 2>/dev/null` in #(
17049   *posix*) :
17050     set -o posix ;; #(
17051   *) :
17052      ;;
17053 esac
17054 fi
17055
17056
17057 as_nl='
17058 '
17059 export as_nl
17060 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17061 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17062 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17063 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17064 # Prefer a ksh shell builtin over an external printf program on Solaris,
17065 # but without wasting forks for bash or zsh.
17066 if test -z "$BASH_VERSION$ZSH_VERSION" \
17067     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17068   as_echo='print -r --'
17069   as_echo_n='print -rn --'
17070 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17071   as_echo='printf %s\n'
17072   as_echo_n='printf %s'
17073 else
17074   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17075     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17076     as_echo_n='/usr/ucb/echo -n'
17077   else
17078     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17079     as_echo_n_body='eval
17080       arg=$1;
17081       case $arg in #(
17082       *"$as_nl"*)
17083         expr "X$arg" : "X\\(.*\\)$as_nl";
17084         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17085       esac;
17086       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17087     '
17088     export as_echo_n_body
17089     as_echo_n='sh -c $as_echo_n_body as_echo'
17090   fi
17091   export as_echo_body
17092   as_echo='sh -c $as_echo_body as_echo'
17093 fi
17094
17095 # The user is always right.
17096 if test "${PATH_SEPARATOR+set}" != set; then
17097   PATH_SEPARATOR=:
17098   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17099     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17100       PATH_SEPARATOR=';'
17101   }
17102 fi
17103
17104
17105 # IFS
17106 # We need space, tab and new line, in precisely that order.  Quoting is
17107 # there to prevent editors from complaining about space-tab.
17108 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17109 # splitting by setting IFS to empty value.)
17110 IFS=" ""        $as_nl"
17111
17112 # Find who we are.  Look in the path if we contain no directory separator.
17113 as_myself=
17114 case $0 in #((
17115   *[\\/]* ) as_myself=$0 ;;
17116   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17117 for as_dir in $PATH
17118 do
17119   IFS=$as_save_IFS
17120   test -z "$as_dir" && as_dir=.
17121     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17122   done
17123 IFS=$as_save_IFS
17124
17125      ;;
17126 esac
17127 # We did not find ourselves, most probably we were run as `sh COMMAND'
17128 # in which case we are not to be found in the path.
17129 if test "x$as_myself" = x; then
17130   as_myself=$0
17131 fi
17132 if test ! -f "$as_myself"; then
17133   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17134   exit 1
17135 fi
17136
17137 # Unset variables that we do not need and which cause bugs (e.g. in
17138 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
17139 # suppresses any "Segmentation fault" message there.  '((' could
17140 # trigger a bug in pdksh 5.2.14.
17141 for as_var in BASH_ENV ENV MAIL MAILPATH
17142 do eval test x\${$as_var+set} = xset \
17143   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17144 done
17145 PS1='$ '
17146 PS2='> '
17147 PS4='+ '
17148
17149 # NLS nuisances.
17150 LC_ALL=C
17151 export LC_ALL
17152 LANGUAGE=C
17153 export LANGUAGE
17154
17155 # CDPATH.
17156 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17157
17158
17159 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17160 # ----------------------------------------
17161 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17162 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17163 # script with STATUS, using 1 if that was 0.
17164 as_fn_error ()
17165 {
17166   as_status=$1; test $as_status -eq 0 && as_status=1
17167   if test "$4"; then
17168     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17169     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17170   fi
17171   $as_echo "$as_me: error: $2" >&2
17172   as_fn_exit $as_status
17173 } # as_fn_error
17174
17175
17176 # as_fn_set_status STATUS
17177 # -----------------------
17178 # Set $? to STATUS, without forking.
17179 as_fn_set_status ()
17180 {
17181   return $1
17182 } # as_fn_set_status
17183
17184 # as_fn_exit STATUS
17185 # -----------------
17186 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17187 as_fn_exit ()
17188 {
17189   set +e
17190   as_fn_set_status $1
17191   exit $1
17192 } # as_fn_exit
17193
17194 # as_fn_unset VAR
17195 # ---------------
17196 # Portably unset VAR.
17197 as_fn_unset ()
17198 {
17199   { eval $1=; unset $1;}
17200 }
17201 as_unset=as_fn_unset
17202 # as_fn_append VAR VALUE
17203 # ----------------------
17204 # Append the text in VALUE to the end of the definition contained in VAR. Take
17205 # advantage of any shell optimizations that allow amortized linear growth over
17206 # repeated appends, instead of the typical quadratic growth present in naive
17207 # implementations.
17208 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17209   eval 'as_fn_append ()
17210   {
17211     eval $1+=\$2
17212   }'
17213 else
17214   as_fn_append ()
17215   {
17216     eval $1=\$$1\$2
17217   }
17218 fi # as_fn_append
17219
17220 # as_fn_arith ARG...
17221 # ------------------
17222 # Perform arithmetic evaluation on the ARGs, and store the result in the
17223 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17224 # must be portable across $(()) and expr.
17225 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17226   eval 'as_fn_arith ()
17227   {
17228     as_val=$(( $* ))
17229   }'
17230 else
17231   as_fn_arith ()
17232   {
17233     as_val=`expr "$@" || test $? -eq 1`
17234   }
17235 fi # as_fn_arith
17236
17237
17238 if expr a : '\(a\)' >/dev/null 2>&1 &&
17239    test "X`expr 00001 : '.*\(...\)'`" = X001; then
17240   as_expr=expr
17241 else
17242   as_expr=false
17243 fi
17244
17245 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17246   as_basename=basename
17247 else
17248   as_basename=false
17249 fi
17250
17251 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17252   as_dirname=dirname
17253 else
17254   as_dirname=false
17255 fi
17256
17257 as_me=`$as_basename -- "$0" ||
17258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17259          X"$0" : 'X\(//\)$' \| \
17260          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17261 $as_echo X/"$0" |
17262     sed '/^.*\/\([^/][^/]*\)\/*$/{
17263             s//\1/
17264             q
17265           }
17266           /^X\/\(\/\/\)$/{
17267             s//\1/
17268             q
17269           }
17270           /^X\/\(\/\).*/{
17271             s//\1/
17272             q
17273           }
17274           s/.*/./; q'`
17275
17276 # Avoid depending upon Character Ranges.
17277 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17278 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17279 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17280 as_cr_digits='0123456789'
17281 as_cr_alnum=$as_cr_Letters$as_cr_digits
17282
17283 ECHO_C= ECHO_N= ECHO_T=
17284 case `echo -n x` in #(((((
17285 -n*)
17286   case `echo 'xy\c'` in
17287   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
17288   xy)  ECHO_C='\c';;
17289   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
17290        ECHO_T=' ';;
17291   esac;;
17292 *)
17293   ECHO_N='-n';;
17294 esac
17295
17296 rm -f conf$$ conf$$.exe conf$$.file
17297 if test -d conf$$.dir; then
17298   rm -f conf$$.dir/conf$$.file
17299 else
17300   rm -f conf$$.dir
17301   mkdir conf$$.dir 2>/dev/null
17302 fi
17303 if (echo >conf$$.file) 2>/dev/null; then
17304   if ln -s conf$$.file conf$$ 2>/dev/null; then
17305     as_ln_s='ln -s'
17306     # ... but there are two gotchas:
17307     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17308     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17309     # In both cases, we have to default to `cp -pR'.
17310     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17311       as_ln_s='cp -pR'
17312   elif ln conf$$.file conf$$ 2>/dev/null; then
17313     as_ln_s=ln
17314   else
17315     as_ln_s='cp -pR'
17316   fi
17317 else
17318   as_ln_s='cp -pR'
17319 fi
17320 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17321 rmdir conf$$.dir 2>/dev/null
17322
17323
17324 # as_fn_mkdir_p
17325 # -------------
17326 # Create "$as_dir" as a directory, including parents if necessary.
17327 as_fn_mkdir_p ()
17328 {
17329
17330   case $as_dir in #(
17331   -*) as_dir=./$as_dir;;
17332   esac
17333   test -d "$as_dir" || eval $as_mkdir_p || {
17334     as_dirs=
17335     while :; do
17336       case $as_dir in #(
17337       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17338       *) as_qdir=$as_dir;;
17339       esac
17340       as_dirs="'$as_qdir' $as_dirs"
17341       as_dir=`$as_dirname -- "$as_dir" ||
17342 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17343          X"$as_dir" : 'X\(//\)[^/]' \| \
17344          X"$as_dir" : 'X\(//\)$' \| \
17345          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17346 $as_echo X"$as_dir" |
17347     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17348             s//\1/
17349             q
17350           }
17351           /^X\(\/\/\)[^/].*/{
17352             s//\1/
17353             q
17354           }
17355           /^X\(\/\/\)$/{
17356             s//\1/
17357             q
17358           }
17359           /^X\(\/\).*/{
17360             s//\1/
17361             q
17362           }
17363           s/.*/./; q'`
17364       test -d "$as_dir" && break
17365     done
17366     test -z "$as_dirs" || eval "mkdir $as_dirs"
17367   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17368
17369
17370 } # as_fn_mkdir_p
17371 if mkdir -p . 2>/dev/null; then
17372   as_mkdir_p='mkdir -p "$as_dir"'
17373 else
17374   test -d ./-p && rmdir ./-p
17375   as_mkdir_p=false
17376 fi
17377
17378
17379 # as_fn_executable_p FILE
17380 # -----------------------
17381 # Test if FILE is an executable regular file.
17382 as_fn_executable_p ()
17383 {
17384   test -f "$1" && test -x "$1"
17385 } # as_fn_executable_p
17386 as_test_x='test -x'
17387 as_executable_p=as_fn_executable_p
17388
17389 # Sed expression to map a string onto a valid CPP name.
17390 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17391
17392 # Sed expression to map a string onto a valid variable name.
17393 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17394
17395
17396 exec 6>&1
17397 ## ----------------------------------- ##
17398 ## Main body of $CONFIG_STATUS script. ##
17399 ## ----------------------------------- ##
17400 _ASEOF
17401 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17402
17403 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17404 # Save the log message, to keep $0 and so on meaningful, and to
17405 # report actual input values of CONFIG_FILES etc. instead of their
17406 # values after options handling.
17407 ac_log="
17408 This file was extended by fontconfig $as_me 2.12.1, which was
17409 generated by GNU Autoconf 2.69.  Invocation command line was
17410
17411   CONFIG_FILES    = $CONFIG_FILES
17412   CONFIG_HEADERS  = $CONFIG_HEADERS
17413   CONFIG_LINKS    = $CONFIG_LINKS
17414   CONFIG_COMMANDS = $CONFIG_COMMANDS
17415   $ $0 $@
17416
17417 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17418 "
17419
17420 _ACEOF
17421
17422 case $ac_config_files in *"
17423 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17424 esac
17425
17426 case $ac_config_headers in *"
17427 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17428 esac
17429
17430
17431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17432 # Files that config.status was made for.
17433 config_files="$ac_config_files"
17434 config_headers="$ac_config_headers"
17435 config_commands="$ac_config_commands"
17436
17437 _ACEOF
17438
17439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17440 ac_cs_usage="\
17441 \`$as_me' instantiates files and other configuration actions
17442 from templates according to the current configuration.  Unless the files
17443 and actions are specified as TAGs, all are instantiated by default.
17444
17445 Usage: $0 [OPTION]... [TAG]...
17446
17447   -h, --help       print this help, then exit
17448   -V, --version    print version number and configuration settings, then exit
17449       --config     print configuration, then exit
17450   -q, --quiet, --silent
17451                    do not print progress messages
17452   -d, --debug      don't remove temporary files
17453       --recheck    update $as_me by reconfiguring in the same conditions
17454       --file=FILE[:TEMPLATE]
17455                    instantiate the configuration file FILE
17456       --header=FILE[:TEMPLATE]
17457                    instantiate the configuration header FILE
17458
17459 Configuration files:
17460 $config_files
17461
17462 Configuration headers:
17463 $config_headers
17464
17465 Configuration commands:
17466 $config_commands
17467
17468 Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=fontconfig>."
17469
17470 _ACEOF
17471 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17472 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17473 ac_cs_version="\\
17474 fontconfig config.status 2.12.1
17475 configured by $0, generated by GNU Autoconf 2.69,
17476   with options \\"\$ac_cs_config\\"
17477
17478 Copyright (C) 2012 Free Software Foundation, Inc.
17479 This config.status script is free software; the Free Software Foundation
17480 gives unlimited permission to copy, distribute and modify it."
17481
17482 ac_pwd='$ac_pwd'
17483 srcdir='$srcdir'
17484 INSTALL='$INSTALL'
17485 MKDIR_P='$MKDIR_P'
17486 AWK='$AWK'
17487 test -n "\$AWK" || AWK=awk
17488 _ACEOF
17489
17490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17491 # The default lists apply if the user does not specify any file.
17492 ac_need_defaults=:
17493 while test $# != 0
17494 do
17495   case $1 in
17496   --*=?*)
17497     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17498     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17499     ac_shift=:
17500     ;;
17501   --*=)
17502     ac_option=`expr "X$1" : 'X\([^=]*\)='`
17503     ac_optarg=
17504     ac_shift=:
17505     ;;
17506   *)
17507     ac_option=$1
17508     ac_optarg=$2
17509     ac_shift=shift
17510     ;;
17511   esac
17512
17513   case $ac_option in
17514   # Handling of the options.
17515   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17516     ac_cs_recheck=: ;;
17517   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17518     $as_echo "$ac_cs_version"; exit ;;
17519   --config | --confi | --conf | --con | --co | --c )
17520     $as_echo "$ac_cs_config"; exit ;;
17521   --debug | --debu | --deb | --de | --d | -d )
17522     debug=: ;;
17523   --file | --fil | --fi | --f )
17524     $ac_shift
17525     case $ac_optarg in
17526     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17527     '') as_fn_error $? "missing file argument" ;;
17528     esac
17529     as_fn_append CONFIG_FILES " '$ac_optarg'"
17530     ac_need_defaults=false;;
17531   --header | --heade | --head | --hea )
17532     $ac_shift
17533     case $ac_optarg in
17534     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17535     esac
17536     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17537     ac_need_defaults=false;;
17538   --he | --h)
17539     # Conflict between --help and --header
17540     as_fn_error $? "ambiguous option: \`$1'
17541 Try \`$0 --help' for more information.";;
17542   --help | --hel | -h )
17543     $as_echo "$ac_cs_usage"; exit ;;
17544   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17545   | -silent | --silent | --silen | --sile | --sil | --si | --s)
17546     ac_cs_silent=: ;;
17547
17548   # This is an error.
17549   -*) as_fn_error $? "unrecognized option: \`$1'
17550 Try \`$0 --help' for more information." ;;
17551
17552   *) as_fn_append ac_config_targets " $1"
17553      ac_need_defaults=false ;;
17554
17555   esac
17556   shift
17557 done
17558
17559 ac_configure_extra_args=
17560
17561 if $ac_cs_silent; then
17562   exec 6>/dev/null
17563   ac_configure_extra_args="$ac_configure_extra_args --silent"
17564 fi
17565
17566 _ACEOF
17567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17568 if \$ac_cs_recheck; then
17569   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17570   shift
17571   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17572   CONFIG_SHELL='$SHELL'
17573   export CONFIG_SHELL
17574   exec "\$@"
17575 fi
17576
17577 _ACEOF
17578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17579 exec 5>>config.log
17580 {
17581   echo
17582   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17583 ## Running $as_me. ##
17584 _ASBOX
17585   $as_echo "$ac_log"
17586 } >&5
17587
17588 _ACEOF
17589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17590 #
17591 # INIT-COMMANDS
17592 #
17593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17594
17595
17596 # The HP-UX ksh and POSIX shell print the target directory to stdout
17597 # if CDPATH is set.
17598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17599
17600 sed_quote_subst='$sed_quote_subst'
17601 double_quote_subst='$double_quote_subst'
17602 delay_variable_subst='$delay_variable_subst'
17603 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17604 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17605 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17606 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
17607 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
17608 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17609 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17610 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17611 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17612 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
17613 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17614 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17615 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
17616 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17617 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17618 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17619 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17620 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17621 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17622 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17623 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17624 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17625 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17626 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17627 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17628 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17629 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17630 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17631 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17632 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17633 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17634 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17635 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17636 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
17637 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
17638 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17639 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17640 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17641 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17642 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
17643 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
17644 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
17645 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17646 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17647 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
17648 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17649 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17650 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17651 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17652 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17653 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17654 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17655 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17656 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17657 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17658 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17659 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17660 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
17661 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17662 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"`'
17663 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
17664 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
17665 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
17666 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
17667 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17668 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17669 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17670 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17671 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17672 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17673 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17674 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17675 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
17676 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17677 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17678 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17679 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17680 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17681 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17682 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17683 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17684 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17685 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17686 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17687 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17688 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17689 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17690 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17691 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17692 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17693 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17694 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17695 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17696 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17697 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17698 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17699 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17700 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17701 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17702 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17703 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17704 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17705 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17706 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17707 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17708 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17709 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17710 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17711 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17712 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
17713 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17714 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17715 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17716 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17717 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17718 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17719 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17720 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17721 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17722 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17723 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17724 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17725 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17726 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17727 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17728 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17729 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17730 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17731 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
17732 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
17733 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17734 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17735 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17736 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17737 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17738 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17739
17740 LTCC='$LTCC'
17741 LTCFLAGS='$LTCFLAGS'
17742 compiler='$compiler_DEFAULT'
17743
17744 # A function that is used when there is no print builtin or printf.
17745 func_fallback_echo ()
17746 {
17747   eval 'cat <<_LTECHO_EOF
17748 \$1
17749 _LTECHO_EOF'
17750 }
17751
17752 # Quote evaled strings.
17753 for var in AS \
17754 DLLTOOL \
17755 OBJDUMP \
17756 SHELL \
17757 ECHO \
17758 PATH_SEPARATOR \
17759 SED \
17760 GREP \
17761 EGREP \
17762 FGREP \
17763 LD \
17764 NM \
17765 LN_S \
17766 lt_SP2NL \
17767 lt_NL2SP \
17768 reload_flag \
17769 deplibs_check_method \
17770 file_magic_cmd \
17771 file_magic_glob \
17772 want_nocaseglob \
17773 sharedlib_from_linklib_cmd \
17774 AR \
17775 AR_FLAGS \
17776 archiver_list_spec \
17777 STRIP \
17778 RANLIB \
17779 CC \
17780 CFLAGS \
17781 compiler \
17782 lt_cv_sys_global_symbol_pipe \
17783 lt_cv_sys_global_symbol_to_cdecl \
17784 lt_cv_sys_global_symbol_to_import \
17785 lt_cv_sys_global_symbol_to_c_name_address \
17786 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
17787 lt_cv_nm_interface \
17788 nm_file_list_spec \
17789 lt_cv_truncate_bin \
17790 lt_prog_compiler_no_builtin_flag \
17791 lt_prog_compiler_pic \
17792 lt_prog_compiler_wl \
17793 lt_prog_compiler_static \
17794 lt_cv_prog_compiler_c_o \
17795 need_locks \
17796 MANIFEST_TOOL \
17797 DSYMUTIL \
17798 NMEDIT \
17799 LIPO \
17800 OTOOL \
17801 OTOOL64 \
17802 shrext_cmds \
17803 export_dynamic_flag_spec \
17804 whole_archive_flag_spec \
17805 compiler_needs_object \
17806 with_gnu_ld \
17807 allow_undefined_flag \
17808 no_undefined_flag \
17809 hardcode_libdir_flag_spec \
17810 hardcode_libdir_separator \
17811 exclude_expsyms \
17812 include_expsyms \
17813 file_list_spec \
17814 variables_saved_for_relink \
17815 libname_spec \
17816 library_names_spec \
17817 soname_spec \
17818 install_override_mode \
17819 finish_eval \
17820 old_striplib \
17821 striplib; do
17822     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17823     *[\\\\\\\`\\"\\\$]*)
17824       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17825       ;;
17826     *)
17827       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17828       ;;
17829     esac
17830 done
17831
17832 # Double-quote double-evaled strings.
17833 for var in reload_cmds \
17834 old_postinstall_cmds \
17835 old_postuninstall_cmds \
17836 old_archive_cmds \
17837 extract_expsyms_cmds \
17838 old_archive_from_new_cmds \
17839 old_archive_from_expsyms_cmds \
17840 archive_cmds \
17841 archive_expsym_cmds \
17842 module_cmds \
17843 module_expsym_cmds \
17844 export_symbols_cmds \
17845 prelink_cmds \
17846 postlink_cmds \
17847 postinstall_cmds \
17848 postuninstall_cmds \
17849 finish_cmds \
17850 sys_lib_search_path_spec \
17851 configure_time_dlsearch_path \
17852 configure_time_lt_sys_library_path; do
17853     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
17854     *[\\\\\\\`\\"\\\$]*)
17855       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
17856       ;;
17857     *)
17858       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
17859       ;;
17860     esac
17861 done
17862
17863 ac_aux_dir='$ac_aux_dir'
17864
17865 # See if we are running on zsh, and set the options that allow our
17866 # commands through without removal of \ escapes INIT.
17867 if test -n "\${ZSH_VERSION+set}"; then
17868    setopt NO_GLOB_SUBST
17869 fi
17870
17871
17872     PACKAGE='$PACKAGE'
17873     VERSION='$VERSION'
17874     RM='$RM'
17875     ofile='$ofile'
17876
17877
17878
17879 # variables for create stdint.h replacement
17880 PACKAGE="$PACKAGE"
17881 VERSION="$VERSION"
17882 ac_stdint_h="$ac_stdint_h"
17883 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
17884 ac_cv_stdint_message="$ac_cv_stdint_message"
17885 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
17886 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
17887 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
17888 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
17889 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
17890 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
17891 ac_cv_char_data_model="$ac_cv_char_data_model"
17892 ac_cv_long_data_model="$ac_cv_long_data_model"
17893 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
17894 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
17895 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
17896
17897
17898 _ACEOF
17899
17900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17901
17902 # Handling of arguments.
17903 for ac_config_target in $ac_config_targets
17904 do
17905   case $ac_config_target in
17906     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
17907     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
17908     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
17909     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
17910     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17911     "fontconfig/Makefile") CONFIG_FILES="$CONFIG_FILES fontconfig/Makefile" ;;
17912     "fc-lang/Makefile") CONFIG_FILES="$CONFIG_FILES fc-lang/Makefile" ;;
17913     "fc-glyphname/Makefile") CONFIG_FILES="$CONFIG_FILES fc-glyphname/Makefile" ;;
17914     "fc-blanks/Makefile") CONFIG_FILES="$CONFIG_FILES fc-blanks/Makefile" ;;
17915     "fc-case/Makefile") CONFIG_FILES="$CONFIG_FILES fc-case/Makefile" ;;
17916     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
17917     "conf.d/Makefile") CONFIG_FILES="$CONFIG_FILES conf.d/Makefile" ;;
17918     "fc-cache/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cache/Makefile" ;;
17919     "fc-cat/Makefile") CONFIG_FILES="$CONFIG_FILES fc-cat/Makefile" ;;
17920     "fc-list/Makefile") CONFIG_FILES="$CONFIG_FILES fc-list/Makefile" ;;
17921     "fc-match/Makefile") CONFIG_FILES="$CONFIG_FILES fc-match/Makefile" ;;
17922     "fc-pattern/Makefile") CONFIG_FILES="$CONFIG_FILES fc-pattern/Makefile" ;;
17923     "fc-query/Makefile") CONFIG_FILES="$CONFIG_FILES fc-query/Makefile" ;;
17924     "fc-scan/Makefile") CONFIG_FILES="$CONFIG_FILES fc-scan/Makefile" ;;
17925     "fc-validate/Makefile") CONFIG_FILES="$CONFIG_FILES fc-validate/Makefile" ;;
17926     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
17927     "doc/version.sgml") CONFIG_FILES="$CONFIG_FILES doc/version.sgml" ;;
17928     "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
17929     "fontconfig.spec") CONFIG_FILES="$CONFIG_FILES fontconfig.spec" ;;
17930     "fontconfig.pc") CONFIG_FILES="$CONFIG_FILES fontconfig.pc" ;;
17931     "fontconfig-zip") CONFIG_FILES="$CONFIG_FILES fontconfig-zip" ;;
17932
17933   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
17934   esac
17935 done
17936
17937
17938 # If the user did not use the arguments to specify the items to instantiate,
17939 # then the envvar interface is used.  Set only those that are not.
17940 # We use the long form for the default assignment because of an extremely
17941 # bizarre bug on SunOS 4.1.3.
17942 if $ac_need_defaults; then
17943   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
17944   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
17945   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
17946 fi
17947
17948 # Have a temporary directory for convenience.  Make it in the build tree
17949 # simply because there is no reason against having it here, and in addition,
17950 # creating and moving files from /tmp can sometimes cause problems.
17951 # Hook for its removal unless debugging.
17952 # Note that there is a small window in which the directory will not be cleaned:
17953 # after its creation but before its name has been assigned to `$tmp'.
17954 $debug ||
17955 {
17956   tmp= ac_tmp=
17957   trap 'exit_status=$?
17958   : "${ac_tmp:=$tmp}"
17959   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
17960 ' 0
17961   trap 'as_fn_exit 1' 1 2 13 15
17962 }
17963 # Create a (secure) tmp directory for tmp files.
17964
17965 {
17966   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
17967   test -d "$tmp"
17968 }  ||
17969 {
17970   tmp=./conf$$-$RANDOM
17971   (umask 077 && mkdir "$tmp")
17972 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
17973 ac_tmp=$tmp
17974
17975 # Set up the scripts for CONFIG_FILES section.
17976 # No need to generate them if there are no CONFIG_FILES.
17977 # This happens for instance with `./config.status config.h'.
17978 if test -n "$CONFIG_FILES"; then
17979
17980
17981 ac_cr=`echo X | tr X '\015'`
17982 # On cygwin, bash can eat \r inside `` if the user requested igncr.
17983 # But we know of no other shell where ac_cr would be empty at this
17984 # point, so we can use a bashism as a fallback.
17985 if test "x$ac_cr" = x; then
17986   eval ac_cr=\$\'\\r\'
17987 fi
17988 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17989 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17990   ac_cs_awk_cr='\\r'
17991 else
17992   ac_cs_awk_cr=$ac_cr
17993 fi
17994
17995 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
17996 _ACEOF
17997
17998
17999 {
18000   echo "cat >conf$$subs.awk <<_ACEOF" &&
18001   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18002   echo "_ACEOF"
18003 } >conf$$subs.sh ||
18004   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18005 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18006 ac_delim='%!_!# '
18007 for ac_last_try in false false false false false :; do
18008   . ./conf$$subs.sh ||
18009     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18010
18011   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18012   if test $ac_delim_n = $ac_delim_num; then
18013     break
18014   elif $ac_last_try; then
18015     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18016   else
18017     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18018   fi
18019 done
18020 rm -f conf$$subs.sh
18021
18022 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18023 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18024 _ACEOF
18025 sed -n '
18026 h
18027 s/^/S["/; s/!.*/"]=/
18028 p
18029 g
18030 s/^[^!]*!//
18031 :repl
18032 t repl
18033 s/'"$ac_delim"'$//
18034 t delim
18035 :nl
18036 h
18037 s/\(.\{148\}\)..*/\1/
18038 t more1
18039 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18040 p
18041 n
18042 b repl
18043 :more1
18044 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18045 p
18046 g
18047 s/.\{148\}//
18048 t nl
18049 :delim
18050 h
18051 s/\(.\{148\}\)..*/\1/
18052 t more2
18053 s/["\\]/\\&/g; s/^/"/; s/$/"/
18054 p
18055 b
18056 :more2
18057 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18058 p
18059 g
18060 s/.\{148\}//
18061 t delim
18062 ' <conf$$subs.awk | sed '
18063 /^[^""]/{
18064   N
18065   s/\n//
18066 }
18067 ' >>$CONFIG_STATUS || ac_write_fail=1
18068 rm -f conf$$subs.awk
18069 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18070 _ACAWK
18071 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18072   for (key in S) S_is_set[key] = 1
18073   FS = "\a"
18074
18075 }
18076 {
18077   line = $ 0
18078   nfields = split(line, field, "@")
18079   substed = 0
18080   len = length(field[1])
18081   for (i = 2; i < nfields; i++) {
18082     key = field[i]
18083     keylen = length(key)
18084     if (S_is_set[key]) {
18085       value = S[key]
18086       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18087       len += length(value) + length(field[++i])
18088       substed = 1
18089     } else
18090       len += 1 + keylen
18091   }
18092
18093   print line
18094 }
18095
18096 _ACAWK
18097 _ACEOF
18098 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18099 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18100   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18101 else
18102   cat
18103 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18104   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18105 _ACEOF
18106
18107 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18108 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18109 # trailing colons and then remove the whole line if VPATH becomes empty
18110 # (actually we leave an empty line to preserve line numbers).
18111 if test "x$srcdir" = x.; then
18112   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
18113 h
18114 s///
18115 s/^/:/
18116 s/[      ]*$/:/
18117 s/:\$(srcdir):/:/g
18118 s/:\${srcdir}:/:/g
18119 s/:@srcdir@:/:/g
18120 s/^:*//
18121 s/:*$//
18122 x
18123 s/\(=[   ]*\).*/\1/
18124 G
18125 s/\n//
18126 s/^[^=]*=[       ]*$//
18127 }'
18128 fi
18129
18130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18131 fi # test -n "$CONFIG_FILES"
18132
18133 # Set up the scripts for CONFIG_HEADERS section.
18134 # No need to generate them if there are no CONFIG_HEADERS.
18135 # This happens for instance with `./config.status Makefile'.
18136 if test -n "$CONFIG_HEADERS"; then
18137 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18138 BEGIN {
18139 _ACEOF
18140
18141 # Transform confdefs.h into an awk script `defines.awk', embedded as
18142 # here-document in config.status, that substitutes the proper values into
18143 # config.h.in to produce config.h.
18144
18145 # Create a delimiter string that does not exist in confdefs.h, to ease
18146 # handling of long lines.
18147 ac_delim='%!_!# '
18148 for ac_last_try in false false :; do
18149   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18150   if test -z "$ac_tt"; then
18151     break
18152   elif $ac_last_try; then
18153     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18154   else
18155     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18156   fi
18157 done
18158
18159 # For the awk script, D is an array of macro values keyed by name,
18160 # likewise P contains macro parameters if any.  Preserve backslash
18161 # newline sequences.
18162
18163 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18164 sed -n '
18165 s/.\{148\}/&'"$ac_delim"'/g
18166 t rset
18167 :rset
18168 s/^[     ]*#[    ]*define[       ][      ]*/ /
18169 t def
18170 d
18171 :def
18172 s/\\$//
18173 t bsnl
18174 s/["\\]/\\&/g
18175 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18176 D["\1"]=" \3"/p
18177 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
18178 d
18179 :bsnl
18180 s/["\\]/\\&/g
18181 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
18182 D["\1"]=" \3\\\\\\n"\\/p
18183 t cont
18184 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18185 t cont
18186 d
18187 :cont
18188 n
18189 s/.\{148\}/&'"$ac_delim"'/g
18190 t clear
18191 :clear
18192 s/\\$//
18193 t bsnlc
18194 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18195 d
18196 :bsnlc
18197 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18198 b cont
18199 ' <confdefs.h | sed '
18200 s/'"$ac_delim"'/"\\\
18201 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18202
18203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18204   for (key in D) D_is_set[key] = 1
18205   FS = "\a"
18206 }
18207 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18208   line = \$ 0
18209   split(line, arg, " ")
18210   if (arg[1] == "#") {
18211     defundef = arg[2]
18212     mac1 = arg[3]
18213   } else {
18214     defundef = substr(arg[1], 2)
18215     mac1 = arg[2]
18216   }
18217   split(mac1, mac2, "(") #)
18218   macro = mac2[1]
18219   prefix = substr(line, 1, index(line, defundef) - 1)
18220   if (D_is_set[macro]) {
18221     # Preserve the white space surrounding the "#".
18222     print prefix "define", macro P[macro] D[macro]
18223     next
18224   } else {
18225     # Replace #undef with comments.  This is necessary, for example,
18226     # in the case of _POSIX_SOURCE, which is predefined and required
18227     # on some systems where configure will not decide to define it.
18228     if (defundef == "undef") {
18229       print "/*", prefix defundef, macro, "*/"
18230       next
18231     }
18232   }
18233 }
18234 { print }
18235 _ACAWK
18236 _ACEOF
18237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18238   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18239 fi # test -n "$CONFIG_HEADERS"
18240
18241
18242 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
18243 shift
18244 for ac_tag
18245 do
18246   case $ac_tag in
18247   :[FHLC]) ac_mode=$ac_tag; continue;;
18248   esac
18249   case $ac_mode$ac_tag in
18250   :[FHL]*:*);;
18251   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18252   :[FH]-) ac_tag=-:-;;
18253   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18254   esac
18255   ac_save_IFS=$IFS
18256   IFS=:
18257   set x $ac_tag
18258   IFS=$ac_save_IFS
18259   shift
18260   ac_file=$1
18261   shift
18262
18263   case $ac_mode in
18264   :L) ac_source=$1;;
18265   :[FH])
18266     ac_file_inputs=
18267     for ac_f
18268     do
18269       case $ac_f in
18270       -) ac_f="$ac_tmp/stdin";;
18271       *) # Look for the file first in the build tree, then in the source tree
18272          # (if the path is not absolute).  The absolute path cannot be DOS-style,
18273          # because $ac_f cannot contain `:'.
18274          test -f "$ac_f" ||
18275            case $ac_f in
18276            [\\/$]*) false;;
18277            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18278            esac ||
18279            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18280       esac
18281       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18282       as_fn_append ac_file_inputs " '$ac_f'"
18283     done
18284
18285     # Let's still pretend it is `configure' which instantiates (i.e., don't
18286     # use $as_me), people would be surprised to read:
18287     #    /* config.h.  Generated by config.status.  */
18288     configure_input='Generated from '`
18289           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18290         `' by configure.'
18291     if test x"$ac_file" != x-; then
18292       configure_input="$ac_file.  $configure_input"
18293       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18294 $as_echo "$as_me: creating $ac_file" >&6;}
18295     fi
18296     # Neutralize special characters interpreted by sed in replacement strings.
18297     case $configure_input in #(
18298     *\&* | *\|* | *\\* )
18299        ac_sed_conf_input=`$as_echo "$configure_input" |
18300        sed 's/[\\\\&|]/\\\\&/g'`;; #(
18301     *) ac_sed_conf_input=$configure_input;;
18302     esac
18303
18304     case $ac_tag in
18305     *:-:* | *:-) cat >"$ac_tmp/stdin" \
18306       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18307     esac
18308     ;;
18309   esac
18310
18311   ac_dir=`$as_dirname -- "$ac_file" ||
18312 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18313          X"$ac_file" : 'X\(//\)[^/]' \| \
18314          X"$ac_file" : 'X\(//\)$' \| \
18315          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18316 $as_echo X"$ac_file" |
18317     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18318             s//\1/
18319             q
18320           }
18321           /^X\(\/\/\)[^/].*/{
18322             s//\1/
18323             q
18324           }
18325           /^X\(\/\/\)$/{
18326             s//\1/
18327             q
18328           }
18329           /^X\(\/\).*/{
18330             s//\1/
18331             q
18332           }
18333           s/.*/./; q'`
18334   as_dir="$ac_dir"; as_fn_mkdir_p
18335   ac_builddir=.
18336
18337 case "$ac_dir" in
18338 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18339 *)
18340   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18341   # A ".." for each directory in $ac_dir_suffix.
18342   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18343   case $ac_top_builddir_sub in
18344   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18345   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18346   esac ;;
18347 esac
18348 ac_abs_top_builddir=$ac_pwd
18349 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18350 # for backward compatibility:
18351 ac_top_builddir=$ac_top_build_prefix
18352
18353 case $srcdir in
18354   .)  # We are building in place.
18355     ac_srcdir=.
18356     ac_top_srcdir=$ac_top_builddir_sub
18357     ac_abs_top_srcdir=$ac_pwd ;;
18358   [\\/]* | ?:[\\/]* )  # Absolute name.
18359     ac_srcdir=$srcdir$ac_dir_suffix;
18360     ac_top_srcdir=$srcdir
18361     ac_abs_top_srcdir=$srcdir ;;
18362   *) # Relative name.
18363     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18364     ac_top_srcdir=$ac_top_build_prefix$srcdir
18365     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18366 esac
18367 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18368
18369
18370   case $ac_mode in
18371   :F)
18372   #
18373   # CONFIG_FILE
18374   #
18375
18376   case $INSTALL in
18377   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18378   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18379   esac
18380   ac_MKDIR_P=$MKDIR_P
18381   case $MKDIR_P in
18382   [\\/$]* | ?:[\\/]* ) ;;
18383   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18384   esac
18385 _ACEOF
18386
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18388 # If the template does not know about datarootdir, expand it.
18389 # FIXME: This hack should be removed a few years after 2.60.
18390 ac_datarootdir_hack=; ac_datarootdir_seen=
18391 ac_sed_dataroot='
18392 /datarootdir/ {
18393   p
18394   q
18395 }
18396 /@datadir@/p
18397 /@docdir@/p
18398 /@infodir@/p
18399 /@localedir@/p
18400 /@mandir@/p'
18401 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18402 *datarootdir*) ac_datarootdir_seen=yes;;
18403 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18404   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18405 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18406 _ACEOF
18407 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18408   ac_datarootdir_hack='
18409   s&@datadir@&$datadir&g
18410   s&@docdir@&$docdir&g
18411   s&@infodir@&$infodir&g
18412   s&@localedir@&$localedir&g
18413   s&@mandir@&$mandir&g
18414   s&\\\${datarootdir}&$datarootdir&g' ;;
18415 esac
18416 _ACEOF
18417
18418 # Neutralize VPATH when `$srcdir' = `.'.
18419 # Shell code in configure.ac might set extrasub.
18420 # FIXME: do we really want to maintain this feature?
18421 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18422 ac_sed_extra="$ac_vpsub
18423 $extrasub
18424 _ACEOF
18425 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18426 :t
18427 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18428 s|@configure_input@|$ac_sed_conf_input|;t t
18429 s&@top_builddir@&$ac_top_builddir_sub&;t t
18430 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18431 s&@srcdir@&$ac_srcdir&;t t
18432 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18433 s&@top_srcdir@&$ac_top_srcdir&;t t
18434 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18435 s&@builddir@&$ac_builddir&;t t
18436 s&@abs_builddir@&$ac_abs_builddir&;t t
18437 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18438 s&@INSTALL@&$ac_INSTALL&;t t
18439 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18440 $ac_datarootdir_hack
18441 "
18442 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18443   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18444
18445 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18446   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18447   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
18448       "$ac_tmp/out"`; test -z "$ac_out"; } &&
18449   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18450 which seems to be undefined.  Please make sure it is defined" >&5
18451 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18452 which seems to be undefined.  Please make sure it is defined" >&2;}
18453
18454   rm -f "$ac_tmp/stdin"
18455   case $ac_file in
18456   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18457   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18458   esac \
18459   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18460  ;;
18461   :H)
18462   #
18463   # CONFIG_HEADER
18464   #
18465   if test x"$ac_file" != x-; then
18466     {
18467       $as_echo "/* $configure_input  */" \
18468       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18469     } >"$ac_tmp/config.h" \
18470       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18471     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18472       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18473 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18474     else
18475       rm -f "$ac_file"
18476       mv "$ac_tmp/config.h" "$ac_file" \
18477         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18478     fi
18479   else
18480     $as_echo "/* $configure_input  */" \
18481       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18482       || as_fn_error $? "could not create -" "$LINENO" 5
18483   fi
18484 # Compute "$ac_file"'s index in $config_headers.
18485 _am_arg="$ac_file"
18486 _am_stamp_count=1
18487 for _am_header in $config_headers :; do
18488   case $_am_header in
18489     $_am_arg | $_am_arg:* )
18490       break ;;
18491     * )
18492       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18493   esac
18494 done
18495 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18496 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18497          X"$_am_arg" : 'X\(//\)[^/]' \| \
18498          X"$_am_arg" : 'X\(//\)$' \| \
18499          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18500 $as_echo X"$_am_arg" |
18501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18502             s//\1/
18503             q
18504           }
18505           /^X\(\/\/\)[^/].*/{
18506             s//\1/
18507             q
18508           }
18509           /^X\(\/\/\)$/{
18510             s//\1/
18511             q
18512           }
18513           /^X\(\/\).*/{
18514             s//\1/
18515             q
18516           }
18517           s/.*/./; q'`/stamp-h$_am_stamp_count
18518  ;;
18519
18520   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18521 $as_echo "$as_me: executing $ac_file commands" >&6;}
18522  ;;
18523   esac
18524
18525
18526   case $ac_file$ac_mode in
18527     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18528   # Older Autoconf quotes --file arguments for eval, but not when files
18529   # are listed without --file.  Let's play safe and only enable the eval
18530   # if we detect the quoting.
18531   case $CONFIG_FILES in
18532   *\'*) eval set x "$CONFIG_FILES" ;;
18533   *)   set x $CONFIG_FILES ;;
18534   esac
18535   shift
18536   for mf
18537   do
18538     # Strip MF so we end up with the name of the file.
18539     mf=`echo "$mf" | sed -e 's/:.*$//'`
18540     # Check whether this is an Automake generated Makefile or not.
18541     # We used to match only the files named 'Makefile.in', but
18542     # some people rename them; so instead we look at the file content.
18543     # Grep'ing the first line is not enough: some people post-process
18544     # each Makefile.in and add a new line on top of each file to say so.
18545     # Grep'ing the whole file is not good either: AIX grep has a line
18546     # limit of 2048, but all sed's we know have understand at least 4000.
18547     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18548       dirpart=`$as_dirname -- "$mf" ||
18549 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18550          X"$mf" : 'X\(//\)[^/]' \| \
18551          X"$mf" : 'X\(//\)$' \| \
18552          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18553 $as_echo X"$mf" |
18554     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18555             s//\1/
18556             q
18557           }
18558           /^X\(\/\/\)[^/].*/{
18559             s//\1/
18560             q
18561           }
18562           /^X\(\/\/\)$/{
18563             s//\1/
18564             q
18565           }
18566           /^X\(\/\).*/{
18567             s//\1/
18568             q
18569           }
18570           s/.*/./; q'`
18571     else
18572       continue
18573     fi
18574     # Extract the definition of DEPDIR, am__include, and am__quote
18575     # from the Makefile without running 'make'.
18576     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18577     test -z "$DEPDIR" && continue
18578     am__include=`sed -n 's/^am__include = //p' < "$mf"`
18579     test -z "$am__include" && continue
18580     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18581     # Find all dependency output files, they are included files with
18582     # $(DEPDIR) in their names.  We invoke sed twice because it is the
18583     # simplest approach to changing $(DEPDIR) to its actual value in the
18584     # expansion.
18585     for file in `sed -n "
18586       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18587          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18588       # Make sure the directory exists.
18589       test -f "$dirpart/$file" && continue
18590       fdir=`$as_dirname -- "$file" ||
18591 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18592          X"$file" : 'X\(//\)[^/]' \| \
18593          X"$file" : 'X\(//\)$' \| \
18594          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18595 $as_echo X"$file" |
18596     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18597             s//\1/
18598             q
18599           }
18600           /^X\(\/\/\)[^/].*/{
18601             s//\1/
18602             q
18603           }
18604           /^X\(\/\/\)$/{
18605             s//\1/
18606             q
18607           }
18608           /^X\(\/\).*/{
18609             s//\1/
18610             q
18611           }
18612           s/.*/./; q'`
18613       as_dir=$dirpart/$fdir; as_fn_mkdir_p
18614       # echo "creating $dirpart/$file"
18615       echo '# dummy' > "$dirpart/$file"
18616     done
18617   done
18618 }
18619  ;;
18620     "libtool":C)
18621
18622     # See if we are running on zsh, and set the options that allow our
18623     # commands through without removal of \ escapes.
18624     if test -n "${ZSH_VERSION+set}"; then
18625       setopt NO_GLOB_SUBST
18626     fi
18627
18628     cfgfile=${ofile}T
18629     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18630     $RM "$cfgfile"
18631
18632     cat <<_LT_EOF >> "$cfgfile"
18633 #! $SHELL
18634 # Generated automatically by $as_me ($PACKAGE) $VERSION
18635 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18636 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18637
18638 # Provide generalized library-building support services.
18639 # Written by Gordon Matzigkeit, 1996
18640
18641 # Copyright (C) 2014 Free Software Foundation, Inc.
18642 # This is free software; see the source for copying conditions.  There is NO
18643 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18644
18645 # GNU Libtool is free software; you can redistribute it and/or modify
18646 # it under the terms of the GNU General Public License as published by
18647 # the Free Software Foundation; either version 2 of of the License, or
18648 # (at your option) any later version.
18649 #
18650 # As a special exception to the GNU General Public License, if you
18651 # distribute this file as part of a program or library that is built
18652 # using GNU Libtool, you may include this file under the  same
18653 # distribution terms that you use for the rest of that program.
18654 #
18655 # GNU Libtool is distributed in the hope that it will be useful, but
18656 # WITHOUT ANY WARRANTY; without even the implied warranty of
18657 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18658 # GNU General Public License for more details.
18659 #
18660 # You should have received a copy of the GNU General Public License
18661 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
18662
18663
18664 # The names of the tagged configurations supported by this script.
18665 available_tags=''
18666
18667 # Configured defaults for sys_lib_dlsearch_path munging.
18668 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
18669
18670 # ### BEGIN LIBTOOL CONFIG
18671
18672 # Which release of libtool.m4 was used?
18673 macro_version=$macro_version
18674 macro_revision=$macro_revision
18675
18676 # Whether or not to build static libraries.
18677 build_old_libs=$enable_static
18678
18679 # Assembler program.
18680 AS=$lt_AS
18681
18682 # DLL creation program.
18683 DLLTOOL=$lt_DLLTOOL
18684
18685 # Object dumper program.
18686 OBJDUMP=$lt_OBJDUMP
18687
18688 # Whether or not to build shared libraries.
18689 build_libtool_libs=$enable_shared
18690
18691 # What type of objects to build.
18692 pic_mode=$pic_mode
18693
18694 # Whether or not to optimize for fast installation.
18695 fast_install=$enable_fast_install
18696
18697 # Shared archive member basename,for filename based shared library versioning on AIX.
18698 shared_archive_member_spec=$shared_archive_member_spec
18699
18700 # Shell to use when invoking shell scripts.
18701 SHELL=$lt_SHELL
18702
18703 # An echo program that protects backslashes.
18704 ECHO=$lt_ECHO
18705
18706 # The PATH separator for the build system.
18707 PATH_SEPARATOR=$lt_PATH_SEPARATOR
18708
18709 # The host system.
18710 host_alias=$host_alias
18711 host=$host
18712 host_os=$host_os
18713
18714 # The build system.
18715 build_alias=$build_alias
18716 build=$build
18717 build_os=$build_os
18718
18719 # A sed program that does not truncate output.
18720 SED=$lt_SED
18721
18722 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18723 Xsed="\$SED -e 1s/^X//"
18724
18725 # A grep program that handles long lines.
18726 GREP=$lt_GREP
18727
18728 # An ERE matcher.
18729 EGREP=$lt_EGREP
18730
18731 # A literal string matcher.
18732 FGREP=$lt_FGREP
18733
18734 # A BSD- or MS-compatible name lister.
18735 NM=$lt_NM
18736
18737 # Whether we need soft or hard links.
18738 LN_S=$lt_LN_S
18739
18740 # What is the maximum length of a command?
18741 max_cmd_len=$max_cmd_len
18742
18743 # Object file suffix (normally "o").
18744 objext=$ac_objext
18745
18746 # Executable file suffix (normally "").
18747 exeext=$exeext
18748
18749 # whether the shell understands "unset".
18750 lt_unset=$lt_unset
18751
18752 # turn spaces into newlines.
18753 SP2NL=$lt_lt_SP2NL
18754
18755 # turn newlines into spaces.
18756 NL2SP=$lt_lt_NL2SP
18757
18758 # convert \$build file names to \$host format.
18759 to_host_file_cmd=$lt_cv_to_host_file_cmd
18760
18761 # convert \$build files to toolchain format.
18762 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
18763
18764 # Method to check whether dependent libraries are shared objects.
18765 deplibs_check_method=$lt_deplibs_check_method
18766
18767 # Command to use when deplibs_check_method = "file_magic".
18768 file_magic_cmd=$lt_file_magic_cmd
18769
18770 # How to find potential files when deplibs_check_method = "file_magic".
18771 file_magic_glob=$lt_file_magic_glob
18772
18773 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
18774 want_nocaseglob=$lt_want_nocaseglob
18775
18776 # Command to associate shared and link libraries.
18777 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
18778
18779 # The archiver.
18780 AR=$lt_AR
18781
18782 # Flags to create an archive.
18783 AR_FLAGS=$lt_AR_FLAGS
18784
18785 # How to feed a file listing to the archiver.
18786 archiver_list_spec=$lt_archiver_list_spec
18787
18788 # A symbol stripping program.
18789 STRIP=$lt_STRIP
18790
18791 # Commands used to install an old-style archive.
18792 RANLIB=$lt_RANLIB
18793 old_postinstall_cmds=$lt_old_postinstall_cmds
18794 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18795
18796 # Whether to use a lock for old archive extraction.
18797 lock_old_archive_extraction=$lock_old_archive_extraction
18798
18799 # A C compiler.
18800 LTCC=$lt_CC
18801
18802 # LTCC compiler flags.
18803 LTCFLAGS=$lt_CFLAGS
18804
18805 # Take the output of nm and produce a listing of raw symbols and C names.
18806 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18807
18808 # Transform the output of nm in a proper C declaration.
18809 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18810
18811 # Transform the output of nm into a list of symbols to manually relocate.
18812 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
18813
18814 # Transform the output of nm in a C name address pair.
18815 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18816
18817 # Transform the output of nm in a C name address pair when lib prefix is needed.
18818 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
18819
18820 # The name lister interface.
18821 nm_interface=$lt_lt_cv_nm_interface
18822
18823 # Specify filename containing input files for \$NM.
18824 nm_file_list_spec=$lt_nm_file_list_spec
18825
18826 # The root where to search for dependent libraries,and where our libraries should be installed.
18827 lt_sysroot=$lt_sysroot
18828
18829 # Command to truncate a binary pipe.
18830 lt_truncate_bin=$lt_lt_cv_truncate_bin
18831
18832 # The name of the directory that contains temporary libtool files.
18833 objdir=$objdir
18834
18835 # Used to examine libraries when file_magic_cmd begins with "file".
18836 MAGIC_CMD=$MAGIC_CMD
18837
18838 # Must we lock files when doing compilation?
18839 need_locks=$lt_need_locks
18840
18841 # Manifest tool.
18842 MANIFEST_TOOL=$lt_MANIFEST_TOOL
18843
18844 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
18845 DSYMUTIL=$lt_DSYMUTIL
18846
18847 # Tool to change global to local symbols on Mac OS X.
18848 NMEDIT=$lt_NMEDIT
18849
18850 # Tool to manipulate fat objects and archives on Mac OS X.
18851 LIPO=$lt_LIPO
18852
18853 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
18854 OTOOL=$lt_OTOOL
18855
18856 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
18857 OTOOL64=$lt_OTOOL64
18858
18859 # Old archive suffix (normally "a").
18860 libext=$libext
18861
18862 # Shared library suffix (normally ".so").
18863 shrext_cmds=$lt_shrext_cmds
18864
18865 # The commands to extract the exported symbol list from a shared archive.
18866 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18867
18868 # Variables whose values should be saved in libtool wrapper scripts and
18869 # restored at link time.
18870 variables_saved_for_relink=$lt_variables_saved_for_relink
18871
18872 # Do we need the "lib" prefix for modules?
18873 need_lib_prefix=$need_lib_prefix
18874
18875 # Do we need a version for libraries?
18876 need_version=$need_version
18877
18878 # Library versioning type.
18879 version_type=$version_type
18880
18881 # Shared library runtime path variable.
18882 runpath_var=$runpath_var
18883
18884 # Shared library path variable.
18885 shlibpath_var=$shlibpath_var
18886
18887 # Is shlibpath searched before the hard-coded library search path?
18888 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18889
18890 # Format of library name prefix.
18891 libname_spec=$lt_libname_spec
18892
18893 # List of archive names.  First name is the real one, the rest are links.
18894 # The last name is the one that the linker finds with -lNAME
18895 library_names_spec=$lt_library_names_spec
18896
18897 # The coded name of the library, if different from the real name.
18898 soname_spec=$lt_soname_spec
18899
18900 # Permission mode override for installation of shared libraries.
18901 install_override_mode=$lt_install_override_mode
18902
18903 # Command to use after installation of a shared archive.
18904 postinstall_cmds=$lt_postinstall_cmds
18905
18906 # Command to use after uninstallation of a shared archive.
18907 postuninstall_cmds=$lt_postuninstall_cmds
18908
18909 # Commands used to finish a libtool library installation in a directory.
18910 finish_cmds=$lt_finish_cmds
18911
18912 # As "finish_cmds", except a single script fragment to be evaled but
18913 # not shown.
18914 finish_eval=$lt_finish_eval
18915
18916 # Whether we should hardcode library paths into libraries.
18917 hardcode_into_libs=$hardcode_into_libs
18918
18919 # Compile-time system search path for libraries.
18920 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18921
18922 # Detected run-time system search path for libraries.
18923 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
18924
18925 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
18926 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
18927
18928 # Whether dlopen is supported.
18929 dlopen_support=$enable_dlopen
18930
18931 # Whether dlopen of programs is supported.
18932 dlopen_self=$enable_dlopen_self
18933
18934 # Whether dlopen of statically linked programs is supported.
18935 dlopen_self_static=$enable_dlopen_self_static
18936
18937 # Commands to strip libraries.
18938 old_striplib=$lt_old_striplib
18939 striplib=$lt_striplib
18940
18941
18942 # The linker used to build libraries.
18943 LD=$lt_LD
18944
18945 # How to create reloadable object files.
18946 reload_flag=$lt_reload_flag
18947 reload_cmds=$lt_reload_cmds
18948
18949 # Commands used to build an old-style archive.
18950 old_archive_cmds=$lt_old_archive_cmds
18951
18952 # A language specific compiler.
18953 CC=$lt_compiler
18954
18955 # Is the compiler the GNU compiler?
18956 with_gcc=$GCC
18957
18958 # Compiler flag to turn off builtin functions.
18959 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
18960
18961 # Additional compiler flags for building library objects.
18962 pic_flag=$lt_lt_prog_compiler_pic
18963
18964 # How to pass a linker flag through the compiler.
18965 wl=$lt_lt_prog_compiler_wl
18966
18967 # Compiler flag to prevent dynamic linking.
18968 link_static_flag=$lt_lt_prog_compiler_static
18969
18970 # Does compiler simultaneously support -c and -o options?
18971 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
18972
18973 # Whether or not to add -lc for building shared libraries.
18974 build_libtool_need_lc=$archive_cmds_need_lc
18975
18976 # Whether or not to disallow shared libs when runtime libs are static.
18977 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
18978
18979 # Compiler flag to allow reflexive dlopens.
18980 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
18981
18982 # Compiler flag to generate shared objects directly from archives.
18983 whole_archive_flag_spec=$lt_whole_archive_flag_spec
18984
18985 # Whether the compiler copes with passing no objects directly.
18986 compiler_needs_object=$lt_compiler_needs_object
18987
18988 # Create an old-style archive from a shared archive.
18989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
18990
18991 # Create a temporary old-style archive to link instead of a shared archive.
18992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
18993
18994 # Commands used to build a shared archive.
18995 archive_cmds=$lt_archive_cmds
18996 archive_expsym_cmds=$lt_archive_expsym_cmds
18997
18998 # Commands used to build a loadable module if different from building
18999 # a shared archive.
19000 module_cmds=$lt_module_cmds
19001 module_expsym_cmds=$lt_module_expsym_cmds
19002
19003 # Whether we are building with GNU ld or not.
19004 with_gnu_ld=$lt_with_gnu_ld
19005
19006 # Flag that allows shared libraries with undefined symbols to be built.
19007 allow_undefined_flag=$lt_allow_undefined_flag
19008
19009 # Flag that enforces no undefined symbols.
19010 no_undefined_flag=$lt_no_undefined_flag
19011
19012 # Flag to hardcode \$libdir into a binary during linking.
19013 # This must work even if \$libdir does not exist
19014 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19015
19016 # Whether we need a single "-rpath" flag with a separated argument.
19017 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19018
19019 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19020 # DIR into the resulting binary.
19021 hardcode_direct=$hardcode_direct
19022
19023 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
19024 # DIR into the resulting binary and the resulting library dependency is
19025 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
19026 # library is relocated.
19027 hardcode_direct_absolute=$hardcode_direct_absolute
19028
19029 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19030 # into the resulting binary.
19031 hardcode_minus_L=$hardcode_minus_L
19032
19033 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19034 # into the resulting binary.
19035 hardcode_shlibpath_var=$hardcode_shlibpath_var
19036
19037 # Set to "yes" if building a shared library automatically hardcodes DIR
19038 # into the library and all subsequent libraries and executables linked
19039 # against it.
19040 hardcode_automatic=$hardcode_automatic
19041
19042 # Set to yes if linker adds runtime paths of dependent libraries
19043 # to runtime path list.
19044 inherit_rpath=$inherit_rpath
19045
19046 # Whether libtool must link a program against all its dependency libraries.
19047 link_all_deplibs=$link_all_deplibs
19048
19049 # Set to "yes" if exported symbols are required.
19050 always_export_symbols=$always_export_symbols
19051
19052 # The commands to list exported symbols.
19053 export_symbols_cmds=$lt_export_symbols_cmds
19054
19055 # Symbols that should not be listed in the preloaded symbols.
19056 exclude_expsyms=$lt_exclude_expsyms
19057
19058 # Symbols that must always be exported.
19059 include_expsyms=$lt_include_expsyms
19060
19061 # Commands necessary for linking programs (against libraries) with templates.
19062 prelink_cmds=$lt_prelink_cmds
19063
19064 # Commands necessary for finishing linking programs.
19065 postlink_cmds=$lt_postlink_cmds
19066
19067 # Specify filename containing input files.
19068 file_list_spec=$lt_file_list_spec
19069
19070 # How to hardcode a shared library path into an executable.
19071 hardcode_action=$hardcode_action
19072
19073 # ### END LIBTOOL CONFIG
19074
19075 _LT_EOF
19076
19077     cat <<'_LT_EOF' >> "$cfgfile"
19078
19079 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
19080
19081 # func_munge_path_list VARIABLE PATH
19082 # -----------------------------------
19083 # VARIABLE is name of variable containing _space_ separated list of
19084 # directories to be munged by the contents of PATH, which is string
19085 # having a format:
19086 # "DIR[:DIR]:"
19087 #       string "DIR[ DIR]" will be prepended to VARIABLE
19088 # ":DIR[:DIR]"
19089 #       string "DIR[ DIR]" will be appended to VARIABLE
19090 # "DIRP[:DIRP]::[DIRA:]DIRA"
19091 #       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
19092 #       "DIRA[ DIRA]" will be appended to VARIABLE
19093 # "DIR[:DIR]"
19094 #       VARIABLE will be replaced by "DIR[ DIR]"
19095 func_munge_path_list ()
19096 {
19097     case x$2 in
19098     x)
19099         ;;
19100     *:)
19101         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
19102         ;;
19103     x:*)
19104         eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
19105         ;;
19106     *::*)
19107         eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
19108         eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
19109         ;;
19110     *)
19111         eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
19112         ;;
19113     esac
19114 }
19115
19116
19117 # Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
19118 func_cc_basename ()
19119 {
19120     for cc_temp in $*""; do
19121       case $cc_temp in
19122         compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19123         distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19124         \-*) ;;
19125         *) break;;
19126       esac
19127     done
19128     func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
19129 }
19130
19131
19132 # ### END FUNCTIONS SHARED WITH CONFIGURE
19133
19134 _LT_EOF
19135
19136   case $host_os in
19137   aix3*)
19138     cat <<\_LT_EOF >> "$cfgfile"
19139 # AIX sometimes has problems with the GCC collect2 program.  For some
19140 # reason, if we set the COLLECT_NAMES environment variable, the problems
19141 # vanish in a puff of smoke.
19142 if test set != "${COLLECT_NAMES+set}"; then
19143   COLLECT_NAMES=
19144   export COLLECT_NAMES
19145 fi
19146 _LT_EOF
19147     ;;
19148   esac
19149
19150
19151 ltmain=$ac_aux_dir/ltmain.sh
19152
19153
19154   # We use sed instead of cat because bash on DJGPP gets confused if
19155   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
19156   # text mode, it properly converts lines to CR/LF.  This bash problem
19157   # is reportedly fixed, but why not run on old versions too?
19158   sed '$q' "$ltmain" >> "$cfgfile" \
19159      || (rm -f "$cfgfile"; exit 1)
19160
19161    mv -f "$cfgfile" "$ofile" ||
19162     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19163   chmod +x "$ofile"
19164
19165  ;;
19166     "$ac_stdint_h":C)
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
19168 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
19169 ac_stdint=$tmp/_stdint.h
19170
19171 echo "#ifndef" $_ac_stdint_h >$ac_stdint
19172 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
19173 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
19174 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
19175 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
19176 if test "_$ac_cv_header_stdint_t" != "_" ; then
19177 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
19178 echo "#include <stdint.h>" >>$ac_stdint
19179 echo "#endif" >>$ac_stdint
19180 echo "#endif" >>$ac_stdint
19181 else
19182
19183 cat >>$ac_stdint <<STDINT_EOF
19184
19185 /* ................... shortcircuit part ........................... */
19186
19187 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
19188 #include <stdint.h>
19189 #else
19190 #include <stddef.h>
19191
19192 /* .................... configured part ............................ */
19193
19194 STDINT_EOF
19195
19196 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
19197 if test "_$ac_cv_header_stdint_x" != "_" ; then
19198   ac_header="$ac_cv_header_stdint_x"
19199   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
19200 else
19201   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
19202 fi
19203
19204 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
19205 if  test "_$ac_cv_header_stdint_o" != "_" ; then
19206   ac_header="$ac_cv_header_stdint_o"
19207   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
19208 else
19209   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
19210 fi
19211
19212 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
19213 if  test "_$ac_cv_header_stdint_u" != "_" ; then
19214   ac_header="$ac_cv_header_stdint_u"
19215   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
19216 else
19217   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
19218 fi
19219
19220 echo "" >>$ac_stdint
19221
19222 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
19223   echo "#include <$ac_header>" >>$ac_stdint
19224   echo "" >>$ac_stdint
19225 fi fi
19226
19227 echo "/* which 64bit typedef has been found */" >>$ac_stdint
19228 if test "$ac_cv_type_uint64_t" = "yes" ; then
19229 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
19230 else
19231 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
19232 fi
19233 if test "$ac_cv_type_u_int64_t" = "yes" ; then
19234 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
19235 else
19236 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
19237 fi
19238 echo "" >>$ac_stdint
19239
19240 echo "/* which type model has been detected */" >>$ac_stdint
19241 if test "_$ac_cv_char_data_model" != "_" ; then
19242 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
19243 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
19244 else
19245 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
19246 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
19247 fi
19248 echo "" >>$ac_stdint
19249
19250 echo "/* whether int_least types were detected */" >>$ac_stdint
19251 if test "$ac_cv_type_int_least32_t" = "yes"; then
19252 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
19253 else
19254 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
19255 fi
19256 echo "/* whether int_fast types were detected */" >>$ac_stdint
19257 if test "$ac_cv_type_int_fast32_t" = "yes"; then
19258 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
19259 else
19260 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
19261 fi
19262 echo "/* whether intmax_t type was detected */" >>$ac_stdint
19263 if test "$ac_cv_type_intmax_t" = "yes"; then
19264 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
19265 else
19266 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
19267 fi
19268 echo "" >>$ac_stdint
19269
19270   cat >>$ac_stdint <<STDINT_EOF
19271 /* .................... detections part ............................ */
19272
19273 /* whether we need to define bitspecific types from compiler base types */
19274 #ifndef _STDINT_HEADER_INTPTR
19275 #ifndef _STDINT_HEADER_UINT32
19276 #ifndef _STDINT_HEADER_U_INT32
19277 #define _STDINT_NEED_INT_MODEL_T
19278 #else
19279 #define _STDINT_HAVE_U_INT_TYPES
19280 #endif
19281 #endif
19282 #endif
19283
19284 #ifdef _STDINT_HAVE_U_INT_TYPES
19285 #undef _STDINT_NEED_INT_MODEL_T
19286 #endif
19287
19288 #ifdef  _STDINT_CHAR_MODEL
19289 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
19290 #ifndef _STDINT_BYTE_MODEL
19291 #define _STDINT_BYTE_MODEL 12
19292 #endif
19293 #endif
19294 #endif
19295
19296 #ifndef _STDINT_HAVE_INT_LEAST32_T
19297 #define _STDINT_NEED_INT_LEAST_T
19298 #endif
19299
19300 #ifndef _STDINT_HAVE_INT_FAST32_T
19301 #define _STDINT_NEED_INT_FAST_T
19302 #endif
19303
19304 #ifndef _STDINT_HEADER_INTPTR
19305 #define _STDINT_NEED_INTPTR_T
19306 #ifndef _STDINT_HAVE_INTMAX_T
19307 #define _STDINT_NEED_INTMAX_T
19308 #endif
19309 #endif
19310
19311
19312 /* .................... definition part ............................ */
19313
19314 /* some system headers have good uint64_t */
19315 #ifndef _HAVE_UINT64_T
19316 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
19317 #define _HAVE_UINT64_T
19318 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
19319 #define _HAVE_UINT64_T
19320 typedef u_int64_t uint64_t;
19321 #endif
19322 #endif
19323
19324 #ifndef _HAVE_UINT64_T
19325 /* .. here are some common heuristics using compiler runtime specifics */
19326 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
19327 #define _HAVE_UINT64_T
19328 #define _HAVE_LONGLONG_UINT64_T
19329 typedef long long int64_t;
19330 typedef unsigned long long uint64_t;
19331
19332 #elif !defined __STRICT_ANSI__
19333 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
19334 #define _HAVE_UINT64_T
19335 typedef __int64 int64_t;
19336 typedef unsigned __int64 uint64_t;
19337
19338 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
19339 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
19340 #if !defined _NO_LONGLONG
19341 #define _HAVE_UINT64_T
19342 #define _HAVE_LONGLONG_UINT64_T
19343 typedef long long int64_t;
19344 typedef unsigned long long uint64_t;
19345 #endif
19346
19347 #elif defined __alpha || (defined __mips && defined _ABIN32)
19348 #if !defined _NO_LONGLONG
19349 typedef long int64_t;
19350 typedef unsigned long uint64_t;
19351 #endif
19352   /* compiler/cpu type to define int64_t */
19353 #endif
19354 #endif
19355 #endif
19356
19357 #if defined _STDINT_HAVE_U_INT_TYPES
19358 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
19359 typedef u_int8_t uint8_t;
19360 typedef u_int16_t uint16_t;
19361 typedef u_int32_t uint32_t;
19362
19363 /* glibc compatibility */
19364 #ifndef __int8_t_defined
19365 #define __int8_t_defined
19366 #endif
19367 #endif
19368
19369 #ifdef _STDINT_NEED_INT_MODEL_T
19370 /* we must guess all the basic types. Apart from byte-adressable system, */
19371 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
19372 /* (btw, those nibble-addressable systems are way off, or so we assume) */
19373
19374
19375 #if defined _STDINT_BYTE_MODEL
19376 #if _STDINT_LONG_MODEL+0 == 242
19377 /* 2:4:2 =  IP16 = a normal 16-bit system                */
19378 typedef unsigned char   uint8_t;
19379 typedef unsigned short  uint16_t;
19380 typedef unsigned long   uint32_t;
19381 #ifndef __int8_t_defined
19382 #define __int8_t_defined
19383 typedef          char    int8_t;
19384 typedef          short   int16_t;
19385 typedef          long    int32_t;
19386 #endif
19387 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
19388 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
19389 /* 4:4:4 = ILP32 = a normal 32-bit system                */
19390 typedef unsigned char   uint8_t;
19391 typedef unsigned short  uint16_t;
19392 typedef unsigned int    uint32_t;
19393 #ifndef __int8_t_defined
19394 #define __int8_t_defined
19395 typedef          char    int8_t;
19396 typedef          short   int16_t;
19397 typedef          int     int32_t;
19398 #endif
19399 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
19400 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
19401 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
19402 typedef unsigned char   uint8_t;
19403 typedef unsigned short  uint16_t;
19404 typedef unsigned int    uint32_t;
19405 #ifndef __int8_t_defined
19406 #define __int8_t_defined
19407 typedef          char    int8_t;
19408 typedef          short   int16_t;
19409 typedef          int     int32_t;
19410 #endif
19411 /* this system has a "long" of 64bit */
19412 #ifndef _HAVE_UINT64_T
19413 #define _HAVE_UINT64_T
19414 typedef unsigned long   uint64_t;
19415 typedef          long    int64_t;
19416 #endif
19417 #elif _STDINT_LONG_MODEL+0 == 448
19418 /*      LLP64   a 64-bit system derived from a 32-bit system */
19419 typedef unsigned char   uint8_t;
19420 typedef unsigned short  uint16_t;
19421 typedef unsigned int    uint32_t;
19422 #ifndef __int8_t_defined
19423 #define __int8_t_defined
19424 typedef          char    int8_t;
19425 typedef          short   int16_t;
19426 typedef          int     int32_t;
19427 #endif
19428 /* assuming the system has a "long long" */
19429 #ifndef _HAVE_UINT64_T
19430 #define _HAVE_UINT64_T
19431 #define _HAVE_LONGLONG_UINT64_T
19432 typedef unsigned long long uint64_t;
19433 typedef          long long  int64_t;
19434 #endif
19435 #else
19436 #define _STDINT_NO_INT32_T
19437 #endif
19438 #else
19439 #define _STDINT_NO_INT8_T
19440 #define _STDINT_NO_INT32_T
19441 #endif
19442 #endif
19443
19444 /*
19445  * quote from SunOS-5.8 sys/inttypes.h:
19446  * Use at your own risk.  As of February 1996, the committee is squarely
19447  * behind the fixed sized types; the "least" and "fast" types are still being
19448  * discussed.  The probability that the "fast" types may be removed before
19449  * the standard is finalized is high enough that they are not currently
19450  * implemented.
19451  */
19452
19453 #if defined _STDINT_NEED_INT_LEAST_T
19454 typedef  int8_t    int_least8_t;
19455 typedef  int16_t   int_least16_t;
19456 typedef  int32_t   int_least32_t;
19457 #ifdef _HAVE_UINT64_T
19458 typedef  int64_t   int_least64_t;
19459 #endif
19460
19461 typedef uint8_t   uint_least8_t;
19462 typedef uint16_t  uint_least16_t;
19463 typedef uint32_t  uint_least32_t;
19464 #ifdef _HAVE_UINT64_T
19465 typedef uint64_t  uint_least64_t;
19466 #endif
19467   /* least types */
19468 #endif
19469
19470 #if defined _STDINT_NEED_INT_FAST_T
19471 typedef  int8_t    int_fast8_t;
19472 typedef  int       int_fast16_t;
19473 typedef  int32_t   int_fast32_t;
19474 #ifdef _HAVE_UINT64_T
19475 typedef  int64_t   int_fast64_t;
19476 #endif
19477
19478 typedef uint8_t   uint_fast8_t;
19479 typedef unsigned  uint_fast16_t;
19480 typedef uint32_t  uint_fast32_t;
19481 #ifdef _HAVE_UINT64_T
19482 typedef uint64_t  uint_fast64_t;
19483 #endif
19484   /* fast types */
19485 #endif
19486
19487 #ifdef _STDINT_NEED_INTMAX_T
19488 #ifdef _HAVE_UINT64_T
19489 typedef  int64_t       intmax_t;
19490 typedef uint64_t      uintmax_t;
19491 #else
19492 typedef          long  intmax_t;
19493 typedef unsigned long uintmax_t;
19494 #endif
19495 #endif
19496
19497 #ifdef _STDINT_NEED_INTPTR_T
19498 #ifndef __intptr_t_defined
19499 #define __intptr_t_defined
19500 /* we encourage using "long" to store pointer values, never use "int" ! */
19501 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
19502 typedef  unsigned int   uintptr_t;
19503 typedef           int    intptr_t;
19504 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
19505 typedef  unsigned long  uintptr_t;
19506 typedef           long   intptr_t;
19507 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
19508 typedef        uint64_t uintptr_t;
19509 typedef         int64_t  intptr_t;
19510 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
19511 typedef  unsigned long  uintptr_t;
19512 typedef           long   intptr_t;
19513 #endif
19514 #endif
19515 #endif
19516
19517 /* The ISO C99 standard specifies that in C++ implementations these
19518    should only be defined if explicitly requested.  */
19519 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
19520 #ifndef UINT32_C
19521
19522 /* Signed.  */
19523 # define INT8_C(c)      c
19524 # define INT16_C(c)     c
19525 # define INT32_C(c)     c
19526 # ifdef _HAVE_LONGLONG_UINT64_T
19527 #  define INT64_C(c)    c ## L
19528 # else
19529 #  define INT64_C(c)    c ## LL
19530 # endif
19531
19532 /* Unsigned.  */
19533 # define UINT8_C(c)     c ## U
19534 # define UINT16_C(c)    c ## U
19535 # define UINT32_C(c)    c ## U
19536 # ifdef _HAVE_LONGLONG_UINT64_T
19537 #  define UINT64_C(c)   c ## UL
19538 # else
19539 #  define UINT64_C(c)   c ## ULL
19540 # endif
19541
19542 /* Maximal type.  */
19543 # ifdef _HAVE_LONGLONG_UINT64_T
19544 #  define INTMAX_C(c)   c ## L
19545 #  define UINTMAX_C(c)  c ## UL
19546 # else
19547 #  define INTMAX_C(c)   c ## LL
19548 #  define UINTMAX_C(c)  c ## ULL
19549 # endif
19550
19551   /* literalnumbers */
19552 #endif
19553 #endif
19554
19555 /* These limits are merily those of a two complement byte-oriented system */
19556
19557 /* Minimum of signed integral types.  */
19558 # define INT8_MIN               (-128)
19559 # define INT16_MIN              (-32767-1)
19560 # define INT32_MIN              (-2147483647-1)
19561 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
19562 /* Maximum of signed integral types.  */
19563 # define INT8_MAX               (127)
19564 # define INT16_MAX              (32767)
19565 # define INT32_MAX              (2147483647)
19566 # define INT64_MAX              (__INT64_C(9223372036854775807))
19567
19568 /* Maximum of unsigned integral types.  */
19569 # define UINT8_MAX              (255)
19570 # define UINT16_MAX             (65535)
19571 # define UINT32_MAX             (4294967295U)
19572 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
19573
19574 /* Minimum of signed integral types having a minimum size.  */
19575 # define INT_LEAST8_MIN         INT8_MIN
19576 # define INT_LEAST16_MIN        INT16_MIN
19577 # define INT_LEAST32_MIN        INT32_MIN
19578 # define INT_LEAST64_MIN        INT64_MIN
19579 /* Maximum of signed integral types having a minimum size.  */
19580 # define INT_LEAST8_MAX         INT8_MAX
19581 # define INT_LEAST16_MAX        INT16_MAX
19582 # define INT_LEAST32_MAX        INT32_MAX
19583 # define INT_LEAST64_MAX        INT64_MAX
19584
19585 /* Maximum of unsigned integral types having a minimum size.  */
19586 # define UINT_LEAST8_MAX        UINT8_MAX
19587 # define UINT_LEAST16_MAX       UINT16_MAX
19588 # define UINT_LEAST32_MAX       UINT32_MAX
19589 # define UINT_LEAST64_MAX       UINT64_MAX
19590
19591   /* shortcircuit*/
19592 #endif
19593   /* once */
19594 #endif
19595 #endif
19596 STDINT_EOF
19597 fi
19598     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
19599       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
19600 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
19601     else
19602       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
19603 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19604          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
19605          X"$ac_stdint_h" : 'X\(//\)$' \| \
19606          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
19607 $as_echo X"$ac_stdint_h" |
19608     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19609             s//\1/
19610             q
19611           }
19612           /^X\(\/\/\)[^/].*/{
19613             s//\1/
19614             q
19615           }
19616           /^X\(\/\/\)$/{
19617             s//\1/
19618             q
19619           }
19620           /^X\(\/\).*/{
19621             s//\1/
19622             q
19623           }
19624           s/.*/./; q'`
19625       as_dir="$ac_dir"; as_fn_mkdir_p
19626       rm -f $ac_stdint_h
19627       mv $ac_stdint $ac_stdint_h
19628     fi
19629  ;;
19630
19631   esac
19632 done # for ac_tag
19633
19634
19635 as_fn_exit 0
19636 _ACEOF
19637 ac_clean_files=$ac_clean_files_save
19638
19639 test $ac_write_fail = 0 ||
19640   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19641
19642
19643 # configure is writing to config.log, and then calls config.status.
19644 # config.status does its own redirection, appending to config.log.
19645 # Unfortunately, on DOS this fails, as config.log is still kept open
19646 # by configure, so config.status won't be able to write to it; its
19647 # output is simply discarded.  So we exec the FD to /dev/null,
19648 # effectively closing config.log, so it can be properly (re)opened and
19649 # appended to by config.status.  When coming back to configure, we
19650 # need to make the FD available again.
19651 if test "$no_create" != yes; then
19652   ac_cs_success=:
19653   ac_config_status_args=
19654   test "$silent" = yes &&
19655     ac_config_status_args="$ac_config_status_args --quiet"
19656   exec 5>/dev/null
19657   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19658   exec 5>>config.log
19659   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19660   # would make configure fail if this is the last instruction.
19661   $ac_cs_success || as_fn_exit 1
19662 fi
19663 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19664   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19665 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19666 fi
19667